1 line
19 KiB
Plaintext
1 line
19 KiB
Plaintext
{"version":3,"sources":["webpack://wp.[name]/webpack/bootstrap","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/defaultSettings.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/index.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripConnectors.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripHTMLComments.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripHTMLEntities.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripRemovables.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripShortcodes.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripSpaces.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/stripTags.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/transposeAstralsToCountableChar.js","webpack://wp.[name]//Users/gziolo/PhpstormProjects/gutenberg/packages/wordcount/src/transposeHTMLEntitiesToCountableChars.js","webpack://wp.[name]/external \"lodash\""],"names":["defaultSettings","HTMLRegExp","HTMLcommentRegExp","spaceRegExp","HTMLEntityRegExp","connectorRegExp","removeRegExp","RegExp","join","astralRegExp","wordsRegExp","characters_excluding_spacesRegExp","characters_including_spacesRegExp","l10n","type","loadSettings","userSettings","settings","extend","shortcodes","length","shortcodesRegExp","matchWords","text","regex","flow","stripTags","bind","stripHTMLComments","stripShortcodes","stripSpaces","stripHTMLEntities","stripConnectors","stripRemovables","match","matchCharacters","transposeAstralsToCountableChar","transposeHTMLEntitiesToCountableChars","count","matchRegExp","results","replace"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA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;AACD,SAAOE,IAAP;AACA;;;;;;;;;;;;;ACbD;AAAA;;;;;;;;AAQe,yEAAUN,QAAV,EAAoBM,IAApB,EAA2B;AACzC,MAAKN,QAAQ,CAACd,WAAd,EAA4B;AAC3B,WAAOoB,IAAI,CAACkB,OAAL,CAAcxB,QAAQ,CAACd,WAAvB,EAAoC,GAApC,CAAP;AACA;AACD;;;;;;;;;;;;;ACZD;AAAA;;;;;;;;AAQe,yEAAUc,QAAV,EAAoBM,IAApB,EAA2B;AACzC,MAAKN,QAAQ,CAAChB,UAAd,EAA2B;AAC1B,WAAOsB,IAAI,CAACkB,OAAL,CAAcxB,QAAQ,CAAChB,UAAvB,EAAmC,IAAnC,CAAP;AACA;AACD;;;;;;;;;;;;;ACZD;AAAA;;;;;;;;AAQe,yEAAUgB,QAAV,EAAoBM,IAApB,EAA2B;AACzC,MAAKN,QAAQ,CAACR,YAAd,EAA6B;AAC5B,WAAOc,IAAI,CAACkB,OAAL,CAAcxB,QAAQ,CAACR,YAAvB,EAAqC,GAArC,CAAP;AACA;;AACD,SAAOc,IAAP;AACA;;;;;;;;;;;;;ACbD;AAAA;;;;;;;;AAQe,yEAAUN,QAAV,EAAoBM,IAApB,EAA2B;AACzC,MAAKN,QAAQ,CAACb,gBAAd,EAAiC;AAChC,WAAOmB,IAAI,CAACkB,OAAL,CAAcxB,QAAQ,CAACb,gBAAvB,EAAyC,GAAzC,CAAP;AACA;;AACD,SAAOmB,IAAP;AACA;;;;;;;;;;;;ACbD,aAAa,iCAAiC,EAAE,I","file":"wordcount.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./node_modules/@wordpress/wordcount/build-module/index.js\");\n","export const defaultSettings = {\n\tHTMLRegExp: /<\\/?[a-z][^>]*?>/gi,\n\tHTMLcommentRegExp: /<!--[\\s\\S]*?-->/g,\n\tspaceRegExp: / | /gi,\n\tHTMLEntityRegExp: /&\\S+?;/g,\n\n\t// \\u2014 = em-dash\n\tconnectorRegExp: /--|\\u2014/g,\n\n\t// Characters to be removed from input text.\n\tremoveRegExp: new RegExp( [\n\t\t'[',\n\n\t\t// Basic Latin (extract)\n\t\t'\\u0021-\\u0040\\u005B-\\u0060\\u007B-\\u007E',\n\n\t\t// Latin-1 Supplement (extract)\n\t\t'\\u0080-\\u00BF\\u00D7\\u00F7',\n\n\t\t/*\n\t\t * The following range consists of:\n\t\t * General Punctuation\n\t\t * Superscripts and Subscripts\n\t\t * Currency Symbols\n\t\t * Combining Diacritical Marks for Symbols\n\t\t * Letterlike Symbols\n\t\t * Number Forms\n\t\t * Arrows\n\t\t * Mathematical Operators\n\t\t * Miscellaneous Technical\n\t\t * Control Pictures\n\t\t * Optical Character Recognition\n\t\t * Enclosed Alphanumerics\n\t\t * Box Drawing\n\t\t * Block Elements\n\t\t * Geometric Shapes\n\t\t * Miscellaneous Symbols\n\t\t * Dingbats\n\t\t * Miscellaneous Mathematical Symbols-A\n\t\t * Supplemental Arrows-A\n\t\t * Braille Patterns\n\t\t * Supplemental Arrows-B\n\t\t * Miscellaneous Mathematical Symbols-B\n\t\t * Supplemental Mathematical Operators\n\t\t * Miscellaneous Symbols and Arrows\n\t\t */\n\t\t'\\u2000-\\u2BFF',\n\n\t\t// Supplemental Punctuation\n\t\t'\\u2E00-\\u2E7F',\n\t\t']',\n\t].join( '' ), 'g' ),\n\n\t// Remove UTF-16 surrogate points, see https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF\n\tastralRegExp: /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,\n\twordsRegExp: /\\S\\s+/g,\n\tcharacters_excluding_spacesRegExp: /\\S/g,\n\n\t/*\n\t * Match anything that is not a formatting character, excluding:\n\t * \\f = form feed\n\t * \\n = new line\n\t * \\r = carriage return\n\t * \\t = tab\n\t * \\v = vertical tab\n\t * \\u00AD = soft hyphen\n\t * \\u2028 = line separator\n\t * \\u2029 = paragraph separator\n\t */\n\tcharacters_including_spacesRegExp: /[^\\f\\n\\r\\t\\v\\u00AD\\u2028\\u2029]/g,\n\tl10n: {\n\t\ttype: 'words',\n\t},\n};\n","import { extend, flow } from 'lodash';\nimport { defaultSettings } from './defaultSettings';\nimport stripTags from './stripTags';\nimport transposeAstralsToCountableChar from './transposeAstralsToCountableChar';\nimport stripHTMLEntities from './stripHTMLEntities';\nimport stripConnectors from './stripConnectors';\nimport stripRemovables from './stripRemovables';\nimport stripHTMLComments from './stripHTMLComments';\nimport stripShortcodes from './stripShortcodes';\nimport stripSpaces from './stripSpaces';\nimport transposeHTMLEntitiesToCountableChars from './transposeHTMLEntitiesToCountableChars';\n\n/**\n * Private function to manage the settings.\n *\n * @param {string} type The type of count to be done.\n * @param {Object} userSettings Custom settings for the count.\n *\n * @return {void|Object|*} The combined settings object to be used.\n */\nfunction loadSettings( type, userSettings ) {\n\tconst settings = extend( defaultSettings, userSettings );\n\n\tsettings.shortcodes = settings.l10n.shortcodes || {};\n\n\tif ( settings.shortcodes && settings.shortcodes.length ) {\n\t\tsettings.shortcodesRegExp = new RegExp( '\\\\[\\\\/?(?:' + settings.shortcodes.join( '|' ) + ')[^\\\\]]*?\\\\]', 'g' );\n\t}\n\n\tsettings.type = type || settings.l10n.type;\n\n\tif ( settings.type !== 'characters_excluding_spaces' && settings.type !== 'characters_including_spaces' ) {\n\t\tsettings.type = 'words';\n\t}\n\n\treturn settings;\n}\n\n/**\n * Match the regex for the type 'words'\n *\n * @param {string} text The text being processed\n * @param {string} regex The regular expression pattern being matched\n * @param {Object} settings Settings object containing regular expressions for each strip function\n *\n * @return {Array|{index: number, input: string}} The matched string.\n */\nfunction matchWords( text, regex, settings ) {\n\ttext = flow(\n\t\tstripTags.bind( this, settings ),\n\t\tstripHTMLComments.bind( this, settings ),\n\t\tstripShortcodes.bind( this, settings ),\n\t\tstripSpaces.bind( this, settings ),\n\t\tstripHTMLEntities.bind( this, settings ),\n\t\tstripConnectors.bind( this, settings ),\n\t\tstripRemovables.bind( this, settings ),\n\t)( text );\n\ttext = text + '\\n';\n\treturn text.match( regex );\n}\n\n/**\n * Match the regex for either 'characters_excluding_spaces' or 'characters_including_spaces'\n *\n * @param {string} text The text being processed\n * @param {string} regex The regular expression pattern being matched\n * @param {Object} settings Settings object containing regular expressions for each strip function\n *\n * @return {Array|{index: number, input: string}} The matched string.\n */\nfunction matchCharacters( text, regex, settings ) {\n\ttext = flow(\n\t\tstripTags.bind( this, settings ),\n\t\tstripHTMLComments.bind( this, settings ),\n\t\tstripShortcodes.bind( this, settings ),\n\t\tstripSpaces.bind( this, settings ),\n\t\ttransposeAstralsToCountableChar.bind( this, settings ),\n\t\ttransposeHTMLEntitiesToCountableChars.bind( this, settings ),\n\t)( text );\n\ttext = text + '\\n';\n\treturn text.match( regex );\n}\n\n/**\n * Count some words.\n *\n * @param {String} text The text being processed\n * @param {String} type The type of count. Accepts ;words', 'characters_excluding_spaces', or 'characters_including_spaces'.\n * @param {Object} userSettings Custom settings object.\n *\n * @return {Number} The word or character count.\n */\n\nexport function count( text, type, userSettings ) {\n\tconst settings = loadSettings( type, userSettings );\n\tif ( text ) {\n\t\tconst matchRegExp = settings[ type + 'RegExp' ];\n\t\tconst results = ( 'words' === settings.type ) ?\n\t\t\tmatchWords( text, matchRegExp, settings ) :\n\t\t\tmatchCharacters( text, matchRegExp, settings );\n\n\t\treturn results ? results.length : 0;\n\t}\n}\n","/**\n * Replaces items matched in the regex with spaces.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.connectorRegExp ) {\n\t\treturn text.replace( settings.connectorRegExp, ' ' );\n\t}\n\treturn text;\n}\n","/**\n * Removes items matched in the regex.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.HTMLcommentRegExp ) {\n\t\treturn text.replace( settings.HTMLcommentRegExp, '' );\n\t}\n\treturn text;\n}\n","/**\n * Removes items matched in the regex.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.HTMLEntityRegExp ) {\n\t\treturn text.replace( settings.HTMLEntityRegExp, '' );\n\t}\n\treturn text;\n}\n","/**\n * Removes items matched in the regex.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.removeRegExp ) {\n\t\treturn text.replace( settings.removeRegExp, '' );\n\t}\n\treturn text;\n}\n","/**\n * Replaces items matched in the regex with a new line.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.shortcodesRegExp ) {\n\t\treturn text.replace( settings.shortcodesRegExp, '\\n' );\n\t}\n\treturn text;\n}\n","/**\n * Replaces items matched in the regex with spaces.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.spaceRegExp ) {\n\t\treturn text.replace( settings.spaceRegExp, ' ' );\n\t}\n}\n","/**\n * Replaces items matched in the regex with new line\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.HTMLRegExp ) {\n\t\treturn text.replace( settings.HTMLRegExp, '\\n' );\n\t}\n}\n","/**\n * Replaces items matched in the regex with character.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.astralRegExp ) {\n\t\treturn text.replace( settings.astralRegExp, 'a' );\n\t}\n\treturn text;\n}\n","/**\n * Replaces items matched in the regex with a single character.\n *\n * @param {Object} settings The main settings object containing regular expressions\n * @param {string} text The string being counted.\n *\n * @return {string} The manipulated text.\n */\nexport default function( settings, text ) {\n\tif ( settings.HTMLEntityRegExp ) {\n\t\treturn text.replace( settings.HTMLEntityRegExp, 'a' );\n\t}\n\treturn text;\n}\n","(function() { module.exports = this[\"lodash\"]; }());"],"sourceRoot":""} |