File "index.min.js"

Full Path: /home/pumpbmko/public_html/wp-content/plugins/gutenberg/build/block-serialization-spec-parser/index.min.js
File size: 9.63 KB
MIME-type: text/plain
Charset: utf-8

(()=>{"use strict";var r={6803:r=>{function t(r,n,e,u){this.message=r,this.expected=n,this.found=e,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}!function(r,t){function n(){this.constructor=r}n.prototype=t.prototype,r.prototype=new n}(t,Error),t.buildMessage=function(r,t){var n={literal:function(r){return'"'+u(r.text)+'"'},class:function(r){var t,n="";for(t=0;t<r.parts.length;t++)n+=r.parts[t]instanceof Array?o(r.parts[t][0])+"-"+o(r.parts[t][1]):o(r.parts[t]);return"["+(r.inverted?"^":"")+n+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function e(r){return r.charCodeAt(0).toString(16).toUpperCase()}function u(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+e(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+e(r)}))}function o(r){return r.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+e(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+e(r)}))}return"Expected "+function(r){var t,e,u,o=new Array(r.length);for(t=0;t<r.length;t++)o[t]=(u=r[t],n[u.type](u));if(o.sort(),o.length>0){for(t=1,e=1;t<o.length;t++)o[t-1]!==o[t]&&(o[e]=o[t],e++);o.length=e}switch(o.length){case 1:return o[0];case 2:return o[0]+" or "+o[1];default:return o.slice(0,-1).join(", ")+", or "+o[o.length-1]}}(r)+" but "+function(r){return r?'"'+u(r)+'"':"end of input"}(t)+" found."},r.exports={SyntaxError:t,parse:function(r,n){n=void 0!==n?n:{};var e,u,o,c,i={},a={Block_List:rr},s=rr,l={type:"any"},f=function(r,t,n){return[t,n]},h=function(r,t,n){return function(r,t,n){var e,u,o,c,i,a=[];for(r.length&&a.push(ir(r)),e=0,u=t.length;e<u;e++)i=(c=t[e])[0],o=c[1],a.push(i),o.length&&a.push(ir(o));return n.length&&a.push(ir(n)),a}(r,t,n)},p="\x3c!--",g=W("\x3c!--",!1),d="wp:",v=W("wp:",!1),A=function(r,t){return t},b="/--\x3e",x=W("/--\x3e",!1),m=function(r,t){return{blockName:r,attrs:t||{},innerBlocks:[],innerHTML:"",innerContent:[]}},y=function(r,t,n){var e=function(r){var t,n,e,u="",o=[],c=[];for(t=0,n=r.length;t<n;t++)"string"==typeof(e=r[t])?(u+=e,c.push(e)):(o.push(e),c.push(null));return[u,o,c]}(t),u=e[0],o=e[1],c=e[2];return{blockName:r.blockName,attrs:r.attrs,innerBlocks:o,innerHTML:u,innerContent:c}},w="--\x3e",C=W("--\x3e",!1),k=function(r,t){return{blockName:r,attrs:t||{}}},S="/wp:",F=W("/wp:",!1),N=function(r){return{blockName:r}},E="/",z=W("/",!1),M=function(r){return"core/"+r},T=/^[a-z]/,B=X([["a","z"]],!1,!1),L=/^[a-z0-9_\-]/,R=X([["a","z"],["0","9"],"_","-"],!1,!1),H={type:"other",description:"JSON-encoded attributes embedded in a block's opening comment"},_="{",J=W("{",!1),O="}",j=W("}",!1),P="",U=function(r){return function(r){try{return JSON.parse(r)}catch(r){return null}}(r)},q=/^[ \t\r\n]/,D=X([" ","\t","\r","\n"],!1,!1),G=0,I=[{line:1,column:1}],K=0,Q=[],V=0;if("startRule"in n){if(!(n.startRule in a))throw new Error("Can't start parsing from rule \""+n.startRule+'".');s=a[n.startRule]}function W(r,t){return{type:"literal",text:r,ignoreCase:t}}function X(r,t,n){return{type:"class",parts:r,inverted:t,ignoreCase:n}}function Y(t){var n,e=I[t];if(e)return e;for(n=t-1;!I[n];)n--;for(e={line:(e=I[n]).line,column:e.column};n<t;)10===r.charCodeAt(n)?(e.line++,e.column=1):e.column++,n++;return I[t]=e,e}function Z(r,t){var n=Y(r),e=Y(t);return{start:{offset:r,line:n.line,column:n.column},end:{offset:t,line:e.line,column:e.column}}}function $(r){G<K||(G>K&&(K=G,Q=[]),Q.push(r))}function rr(){var t,n,e,u,o,c,a,s,p,g;for(t=G,n=G,e=[],u=G,o=G,V++,c=tr(),V--,c===i?o=void 0:(G=o,o=i),o!==i?(r.length>G?(c=r.charAt(G),G++):(c=i,0===V&&$(l)),c!==i?u=o=[o,c]:(G=u,u=i)):(G=u,u=i);u!==i;)e.push(u),u=G,o=G,V++,c=tr(),V--,c===i?o=void 0:(G=o,o=i),o!==i?(r.length>G?(c=r.charAt(G),G++):(c=i,0===V&&$(l)),c!==i?u=o=[o,c]:(G=u,u=i)):(G=u,u=i);if((n=e!==i?r.substring(n,G):e)!==i){if(e=[],u=G,(o=tr())!==i){for(c=G,a=[],s=G,p=G,V++,g=tr(),V--,g===i?p=void 0:(G=p,p=i),p!==i?(r.length>G?(g=r.charAt(G),G++):(g=i,0===V&&$(l)),g!==i?s=p=[p,g]:(G=s,s=i)):(G=s,s=i);s!==i;)a.push(s),s=G,p=G,V++,g=tr(),V--,g===i?p=void 0:(G=p,p=i),p!==i?(r.length>G?(g=r.charAt(G),G++):(g=i,0===V&&$(l)),g!==i?s=p=[p,g]:(G=s,s=i)):(G=s,s=i);(c=a!==i?r.substring(c,G):a)!==i?u=o=f(n,o,c):(G=u,u=i)}else G=u,u=i;for(;u!==i;)if(e.push(u),u=G,(o=tr())!==i){for(c=G,a=[],s=G,p=G,V++,g=tr(),V--,g===i?p=void 0:(G=p,p=i),p!==i?(r.length>G?(g=r.charAt(G),G++):(g=i,0===V&&$(l)),g!==i?s=p=[p,g]:(G=s,s=i)):(G=s,s=i);s!==i;)a.push(s),s=G,p=G,V++,g=tr(),V--,g===i?p=void 0:(G=p,p=i),p!==i?(r.length>G?(g=r.charAt(G),G++):(g=i,0===V&&$(l)),g!==i?s=p=[p,g]:(G=s,s=i)):(G=s,s=i);(c=a!==i?r.substring(c,G):a)!==i?u=o=f(n,o,c):(G=u,u=i)}else G=u,u=i;if(e!==i){for(u=G,o=[],r.length>G?(c=r.charAt(G),G++):(c=i,0===V&&$(l));c!==i;)o.push(c),r.length>G?(c=r.charAt(G),G++):(c=i,0===V&&$(l));(u=o!==i?r.substring(u,G):o)!==i?t=n=h(n,e,u):(G=t,t=i)}else G=t,t=i}else G=t,t=i;return t}function tr(){var t;return(t=function(){var t,n,e,u,o,c;return t=G,r.substr(G,4)===p?(n=p,G+=4):(n=i,0===V&&$(g)),n!==i&&cr()!==i?(r.substr(G,3)===d?(e=d,G+=3):(e=i,0===V&&$(v)),e!==i&&(u=er())!==i&&cr()!==i?(o=G,(c=or())!==i&&cr()!==i?o=c=A(u,c):(G=o,o=i),o===i&&(o=null),o!==i?(r.substr(G,4)===b?(c=b,G+=4):(c=i,0===V&&$(x)),c!==i?t=n=m(u,o):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i),t}())===i&&(t=function(){var t,n,e,u,o,c,a,s,f;if(t=G,n=function(){var t,n,e,u,o,c;return t=G,r.substr(G,4)===p?(n=p,G+=4):(n=i,0===V&&$(g)),n!==i&&cr()!==i?(r.substr(G,3)===d?(e=d,G+=3):(e=i,0===V&&$(v)),e!==i&&(u=er())!==i&&cr()!==i?(o=G,(c=or())!==i&&cr()!==i?o=c=A(u,c):(G=o,o=i),o===i&&(o=null),o!==i?(r.substr(G,3)===w?(c=w,G+=3):(c=i,0===V&&$(C)),c!==i?t=n=k(u,o):(G=t,t=i)):(G=t,t=i)):(G=t,t=i)):(G=t,t=i),t}(),n!==i){if(e=[],(u=tr())===i){if(u=G,o=[],c=G,a=G,V++,s=tr(),V--,s===i?a=void 0:(G=a,a=i),a!==i?(s=G,V++,f=nr(),V--,f===i?s=void 0:(G=s,s=i),s!==i?(r.length>G?(f=r.charAt(G),G++):(f=i,0===V&&$(l)),f!==i?c=a=[a,s,f]:(G=c,c=i)):(G=c,c=i)):(G=c,c=i),c!==i)for(;c!==i;)o.push(c),c=G,a=G,V++,s=tr(),V--,s===i?a=void 0:(G=a,a=i),a!==i?(s=G,V++,f=nr(),V--,f===i?s=void 0:(G=s,s=i),s!==i?(r.length>G?(f=r.charAt(G),G++):(f=i,0===V&&$(l)),f!==i?c=a=[a,s,f]:(G=c,c=i)):(G=c,c=i)):(G=c,c=i);else o=i;u=o!==i?r.substring(u,G):o}for(;u!==i;)if(e.push(u),(u=tr())===i){if(u=G,o=[],c=G,a=G,V++,s=tr(),V--,s===i?a=void 0:(G=a,a=i),a!==i?(s=G,V++,f=nr(),V--,f===i?s=void 0:(G=s,s=i),s!==i?(r.length>G?(f=r.charAt(G),G++):(f=i,0===V&&$(l)),f!==i?c=a=[a,s,f]:(G=c,c=i)):(G=c,c=i)):(G=c,c=i),c!==i)for(;c!==i;)o.push(c),c=G,a=G,V++,s=tr(),V--,s===i?a=void 0:(G=a,a=i),a!==i?(s=G,V++,f=nr(),V--,f===i?s=void 0:(G=s,s=i),s!==i?(r.length>G?(f=r.charAt(G),G++):(f=i,0===V&&$(l)),f!==i?c=a=[a,s,f]:(G=c,c=i)):(G=c,c=i)):(G=c,c=i);else o=i;u=o!==i?r.substring(u,G):o}e!==i&&(u=nr())!==i?t=n=y(n,e,u):(G=t,t=i)}else G=t,t=i;return t}()),t}function nr(){var t,n,e,u,o;return t=G,r.substr(G,4)===p?(n=p,G+=4):(n=i,0===V&&$(g)),n!==i&&cr()!==i?(r.substr(G,4)===S?(e=S,G+=4):(e=i,0===V&&$(F)),e!==i&&(u=er())!==i&&cr()!==i?(r.substr(G,3)===w?(o=w,G+=3):(o=i,0===V&&$(C)),o!==i?t=n=N(u):(G=t,t=i)):(G=t,t=i)):(G=t,t=i),t}function er(){var t,n,e;return(t=function(){var t,n,e,u,o;return t=G,n=G,(e=ur())!==i?(47===r.charCodeAt(G)?(u=E,G++):(u=i,0===V&&$(z)),u!==i&&(o=ur())!==i?n=e=[e,u,o]:(G=n,n=i)):(G=n,n=i),t=n!==i?r.substring(t,G):n}())===i&&(n=G,(n=(e=ur())!==i?r.substring(n,G):e)!==i&&(n=M(n)),t=n),t}function ur(){var t,n,e,u,o;if(t=G,n=G,T.test(r.charAt(G))?(e=r.charAt(G),G++):(e=i,0===V&&$(B)),e!==i){for(u=[],L.test(r.charAt(G))?(o=r.charAt(G),G++):(o=i,0===V&&$(R));o!==i;)u.push(o),L.test(r.charAt(G))?(o=r.charAt(G),G++):(o=i,0===V&&$(R));u!==i?n=e=[e,u]:(G=n,n=i)}else G=n,n=i;return n!==i?r.substring(t,G):n}function or(){var t,n,e,u,o,c,a,s,f,h,p,g,d;if(V++,G,n=G,e=G,123===r.charCodeAt(G)?(u=_,G++):(u=i,0===V&&$(J)),u!==i){for(o=[],c=G,a=G,V++,s=G,125===r.charCodeAt(G)?(f=O,G++):(f=i,0===V&&$(j)),f!==i&&(h=cr())!==i&&(p=P)!==i?(47===r.charCodeAt(G)?(g=E,G++):(g=i,0===V&&$(z)),g===i&&(g=null),g!==i?(r.substr(G,3)===w?(d=w,G+=3):(d=i,0===V&&$(C)),d!==i?s=f=[f,h,p,g,d]:(G=s,s=i)):(G=s,s=i)):(G=s,s=i),V--,s===i?a=void 0:(G=a,a=i),a!==i?(r.length>G?(s=r.charAt(G),G++):(s=i,0===V&&$(l)),s!==i?c=a=[a,s]:(G=c,c=i)):(G=c,c=i);c!==i;)o.push(c),c=G,a=G,V++,s=G,125===r.charCodeAt(G)?(f=O,G++):(f=i,0===V&&$(j)),f!==i&&(h=cr())!==i&&(p=P)!==i?(47===r.charCodeAt(G)?(g=E,G++):(g=i,0===V&&$(z)),g===i&&(g=null),g!==i?(r.substr(G,3)===w?(d=w,G+=3):(d=i,0===V&&$(C)),d!==i?s=f=[f,h,p,g,d]:(G=s,s=i)):(G=s,s=i)):(G=s,s=i),V--,s===i?a=void 0:(G=a,a=i),a!==i?(r.length>G?(s=r.charAt(G),G++):(s=i,0===V&&$(l)),s!==i?c=a=[a,s]:(G=c,c=i)):(G=c,c=i);o!==i?(125===r.charCodeAt(G)?(c=O,G++):(c=i,0===V&&$(j)),c!==i?e=u=[u,o,c]:(G=e,e=i)):(G=e,e=i)}else G=e,e=i;return(n=e!==i?r.substring(n,G):e)!==i&&(n=U(n)),V--,(t=n)===i&&(n=i,0===V&&$(H)),t}function cr(){var t,n;if(t=[],q.test(r.charAt(G))?(n=r.charAt(G),G++):(n=i,0===V&&$(D)),n!==i)for(;n!==i;)t.push(n),q.test(r.charAt(G))?(n=r.charAt(G),G++):(n=i,0===V&&$(D));else t=i;return t}function ir(r){return r.length&&{blockName:null,attrs:{},innerBlocks:[],innerHTML:r,innerContent:[r]}}if((e=s())!==i&&G===r.length)return e;throw e!==i&&G<r.length&&$({type:"end"}),u=Q,o=K<r.length?r.charAt(K):null,c=K<r.length?Z(K,K+1):Z(K,K),new t(t.buildMessage(u,o),u,o,c)}}}},t={},n=function n(e){var u=t[e];if(void 0!==u)return u.exports;var o=t[e]={exports:{}};return r[e](o,o.exports,n),o.exports}(6803);(window.wp=window.wp||{}).blockSerializationSpecParser=n})();
//# sourceMappingURL=index.min.js.map