WordPress/wp-includes/js/dist/block-serialization-default-parser.min.js
Peter Wilson 5a721be794 Build: Use hashed/deterministic moduleIDs in webpack config
Props peterwilsoncc, desrosj, gziolo.
Merges [50940] in to the 5.7 branch.
Fixes #53192.


Built from https://develop.svn.wordpress.org/branches/5.7@50990


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-25 05:22:08 +00:00

2 lines
5.1 KiB
JavaScript

/*! This file is auto-generated */
this.wp=this.wp||{},this.wp.blockSerializationDefaultParser=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s="./node_modules/@wordpress/block-serialization-default-parser/build-module/index.js")}({"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,r,t){"use strict";function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":function(e,r,t){"use strict";function n(e){if(Array.isArray(e))return e}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":function(e,r,t){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.d(r,"a",(function(){return n}))},"./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":function(e,r,t){"use strict";t.d(r,"a",(function(){return s}));var n=t("./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");var o=t("./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"),u=t("./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");function s(e,r){return Object(n.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,o=!1,u=void 0;try{for(var s,l=e[Symbol.iterator]();!(n=(s=l.next()).done)&&(t.push(s.value),!r||t.length!==r);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw u}}return t}}(e,r)||Object(o.a)(e,r)||Object(u.a)()}},"./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":function(e,r,t){"use strict";t.d(r,"a",(function(){return o}));var n=t("./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");function o(e,r){if(e){if("string"==typeof e)return Object(n.a)(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Object(n.a)(e,r):void 0}}},"./node_modules/@wordpress/block-serialization-default-parser/build-module/index.js":function(e,r,t){"use strict";t.r(r),t.d(r,"parse",(function(){return f}));var n,o,u,s,l=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=/<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function a(e,r,t,n,o){return{blockName:e,attrs:r,innerBlocks:t,innerHTML:n,innerContent:o}}function c(e){return a(null,{},[],e,[e])}var f=function(e){n=e,o=0,u=[],s=[],i.lastIndex=0;do{}while(b());return u};function b(){var e=function(){var e=i.exec(n);if(null===e)return["no-more-tokens"];var r=e.index,t=Object(l.a)(e,7),o=t[0],u=t[1],s=t[2],a=t[3],c=t[4],f=t[6],b=o.length,d=!!u,p=!!f,m=(s||"core/")+a,h=!!c,y=h?function(e){try{return JSON.parse(e)}catch(e){return null}}(c):{};if(p)return["void-block",m,y,r,b];if(d)return["block-closer",m,null,r,b];return["block-opener",m,y,r,b]}(),r=Object(l.a)(e,5),t=r[0],f=r[1],b=r[2],h=r[3],y=r[4],v=s.length,j=h>o?o:null;switch(t){case"no-more-tokens":if(0===v)return d(),!1;if(1===v)return m(),!1;for(;0<s.length;)m();return!1;case"void-block":return 0===v?(null!==j&&u.push(c(n.substr(j,h-j))),u.push(a(f,b,[],"",[])),o=h+y,!0):(p(a(f,b,[],"",[]),h,y),o=h+y,!0);case"block-opener":return s.push(function(e,r,t,n,o){return{block:e,tokenStart:r,tokenLength:t,prevOffset:n||r+t,leadingHtmlStart:o}}(a(f,b,[],"",[]),h,y,h+y,j)),o=h+y,!0;case"block-closer":if(0===v)return d(),!1;if(1===v)return m(h),o=h+y,!0;var k=s.pop(),O=n.substr(k.prevOffset,h-k.prevOffset);return k.block.innerHTML+=O,k.block.innerContent.push(O),k.prevOffset=h+y,p(k.block,k.tokenStart,k.tokenLength,h+y),o=h+y,!0;default:return d(),!1}}function d(e){var r=e||n.length-o;0!==r&&u.push(c(n.substr(o,r)))}function p(e,r,t,o){var u=s[s.length-1];u.block.innerBlocks.push(e);var l=n.substr(u.prevOffset,r-u.prevOffset);l&&(u.block.innerHTML+=l,u.block.innerContent.push(l)),u.block.innerContent.push(null),u.prevOffset=o||r+t}function m(e){var r=s.pop(),t=r.block,o=r.leadingHtmlStart,l=r.prevOffset,i=r.tokenStart,a=e?n.substr(l,e-l):n.substr(l);a&&(t.innerHTML+=a,t.innerContent.push(a)),null!==o&&u.push(c(n.substr(o,i-o))),u.push(t)}}});