{"version":3,"sources":["webpack:///./node_modules/@ckeditor/ckeditor5-clipboard/src/utils/normalizeclipboarddata.js","webpack:///./node_modules/@ckeditor/ckeditor5-clipboard/src/utils/plaintexttohtml.js","webpack:///./node_modules/@ckeditor/ckeditor5-clipboard/src/utils/viewtoplaintext.js","webpack:///./node_modules/@ckeditor/ckeditor5-clipboard/src/pasteplaintext.js"],"names":["normalizeClipboardData","data","replace","fullMatch","spaces","length","plainTextToHtml","text","includes","concat","smallPaddingElements","viewToPlainText","viewItem","is","hasAttribute","getAttribute","_step","prev","_iterator","_createForOfIteratorHelper","getChildren","s","n","done","child","value","childText","name","err","e","f","PastePlainText","editor","this","model","view","editing","viewDocument","document","selection","shiftPressed","addObserver","ClipboardObserver","listenTo","evt","shiftKey","plugins","get","ClipboardPipeline","on","isPlainTextFragment","content","schema","change","writer","textAttributes","Array","from","getAttributes","filter","_ref","_ref2","Object","D_Projects_UA_repo_Source_Client_UA_User_Web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_6__","key","getAttributeProperties","isFormatting","isCollapsed","deleteContent","doNotAutoparagraph","push","apply","D_Projects_UA_repo_Source_Client_UA_User_Web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__","range","createRangeIn","getItems","item","setAttributes","Plugin","documentFragment","childCount","getChild","isObject","getAttributeKeys"],"mappings":";;;;;AAgBe,SAASA,EAAwBC,GAC/C,OAAOA,EACLC,QAAS,0DAA2D,SAAEC,EAAWC,GAGjF,OAAsB,GAAjBA,EAAOC,OACJ,IAGDD,IAGPF,QAAS,mBAAoB;;;;;ACbjB,SAASI,EAAiBC,GAuBxC,OAtBAA,EAAOA,EAELL,QAAS,KAAM,QACfA,QAAS,KAAM,QAEfA,QAAS,cAAe,WAExBA,QAAS,SAAU,QAEnBA,QAAS,MAAO,UAChBA,QAAS,MAAO,UAEhBA,QAAS,QAAS,YAEfK,EAAKC,SAAU,YAAeD,EAAKC,S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AA,KAAAD,CAAAF,EAAA,GAAII,EAAJH,EAAA,UAAe3B,EAAMkB,OAAOa,uBAAwBD,GAAME,eAE9D3B,EAAU4B,aACfjC,EAAMkC,cAAe7B,GAAa8B,oBAAoB,IAMvDd,EAAee,KAAfC,MAAAhB,EAAcO,OAAAU,EAAA,KAAAV,CAAUvB,EAAUmB,kBAElC,IAduB1C,EAcjByD,EAAQnB,EAAOoB,cAAezE,EAAKkD,SAdlBjC,EAAAC,EAgBHsD,EAAME,YAhBH,IAgBvB,IAAAzD,EAAAG,MAAAL,EAAAE,EAAAI,KAAAC,MAAuC,KAA3BqD,EAA2B5D,EAAAS,MACjCmD,EAAK/D,GAAI,eACbyC,EAAOuB,cAAetB,EAAgBqB,IAlBjB,MAAAhD,GAAAV,EAAAW,EAAAD,GAAA,QAAAV,EAAAY,mCApC1B,WACC,MAAO,uCAMR,WACC,OAASkB,eAZiC8B,QAuE5C,SAAS5B,EAAqB6B,EAAkB3B,GAC/C,GAAK2B,EAAiBC,WAAa,EAClC,OAAO,EAGR,IAAMxD,EAAQuD,EAAiBE,SAAU,GAEzC,OAAK7B,EAAO8B,SAAU1D,IAI2B,GAA1CsC,OAAAU,EAAA,KAAAV,CAAKtC,EAAM2D,oBAAqB9E","file":"js/chunk-c83d43f0.1d1bcaba.js","sourcesContent":["/**\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module clipboard/utils/normalizeclipboarddata\n */\n\n/**\n * Removes some popular browser quirks out of the clipboard data (HTML).\n * Removes all HTML comments. Comments are considered as an internal thing and it makes little sense if they leak to editor data.\n *\n * @param {String} data The HTML data to normalize.\n * @returns {String} Normalized HTML.\n */\nexport default function normalizeClipboardData( data ) {\n\treturn data\n\t\t.replace( /(\\s+)<\\/span>/g, ( fullMatch, spaces ) => {\n\t\t\t// Handle the most popular and problematic case when even a single space becomes an nbsp;.\n\t\t\t// Decode those to normal spaces. Read more in https://github.com/ckeditor/ckeditor5-clipboard/issues/2.\n\t\t\tif ( spaces.length == 1 ) {\n\t\t\t\treturn ' ';\n\t\t\t}\n\n\t\t\treturn spaces;\n\t\t} )\n\t\t// Remove all HTML comments.\n\t\t.replace( //g, '' );\n}\n","/**\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module clipboard/utils/plaintexttohtml\n */\n\n/**\n * Converts plain text to its HTML-ized version.\n *\n * @param {String} text The plain text to convert.\n * @returns {String} HTML generated from the plain text.\n */\nexport default function plainTextToHtml( text ) {\n\ttext = text\n\t\t// Encode <>.\n\t\t.replace( //g, '>' )\n\t\t// Creates a paragraph for each double line break.\n\t\t.replace( /\\r?\\n\\r?\\n/g, '
' )\n\t\t// Creates a line break for each single line break.\n\t\t.replace( /\\r?\\n/g, '
' )\n\t\t// Preserve trailing spaces (only the first and last one – the rest is handled below).\n\t\t.replace( /^\\s/, ' ' )\n\t\t.replace( /\\s$/, ' ' )\n\t\t// Preserve other subsequent spaces now.\n\t\t.replace( /\\s\\s/g, ' ' );\n\n\tif ( text.includes( '
' ) || text.includes( '
' ) ) {\n\t\t// If we created paragraphs above, add the trailing ones.\n\t\ttext = `
${ text }
`;\n\t}\n\n\t// TODO:\n\t// * What about '\\nfoo' vs ' foo'?\n\n\treturn text;\n}\n","/**\n * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * @module clipboard/utils/viewtoplaintext\n */\n\n// Elements which should not have empty-line padding.\n// Most `view.ContainerElement` want to be separate by new-line, but some are creating one structure\n// together (like `