mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-09 20:30:43 +01:00
abde9678b4
Further improves webpack configuration for editor files to use hashed module IDs in the compressed (`*.min.js`) production files. Follow up to [50940]. Props gziolo, peterwilsoncc. Fixes #53192. Built from https://develop.svn.wordpress.org/trunk@51035 git-svn-id: http://core.svn.wordpress.org/trunk@50644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
/*! This file is auto-generated */
|
|
this.wp=this.wp||{},this.wp.shortcode=function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(r,s,function(e){return t[e]}.bind(null,s));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="/2FX")}({"/2FX":function(t,e,n){"use strict";n.r(e),n.d(e,"next",(function(){return o})),n.d(e,"replace",(function(){return u})),n.d(e,"string",(function(){return i})),n.d(e,"regexp",(function(){return c})),n.d(e,"attrs",(function(){return a})),n.d(e,"fromMatch",(function(){return l}));var r=n("YLtl"),s=n("4eJC");function o(t,e,n=0){const r=c(t);r.lastIndex=n;const s=r.exec(e);if(!s)return;if("["===s[1]&&"]"===s[7])return o(t,e,r.lastIndex);const u={index:s.index,content:s[0],shortcode:l(s)};return s[1]&&(u.content=u.content.slice(1),u.index++),s[7]&&(u.content=u.content.slice(0,-1)),u}function u(t,e,n){return e.replace(c(t),(function(t,e,r,s,o,u,i,c){if("["===e&&"]"===c)return t;const a=n(l(arguments));return a||""===a?e+a+c:t}))}function i(t){return new f(t).string()}function c(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const a=n.n(s)()(t=>{const e={},n=[],r=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;let s;for(t=t.replace(/[\u00a0\u200b]/g," ");s=r.exec(t);)s[1]?e[s[1].toLowerCase()]=s[2]:s[3]?e[s[3].toLowerCase()]=s[4]:s[5]?e[s[5].toLowerCase()]=s[6]:s[7]?n.push(s[7]):s[8]?n.push(s[8]):s[9]&&n.push(s[9]);return{named:e,numeric:n}});function l(t){let e;return e=t[4]?"self-closing":t[6]?"closed":"single",new f({tag:t[2],attrs:t[3],type:e,content:t[5]})}const f=Object(r.extend)((function(t){Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));const e=this.attrs;this.attrs={named:{},numeric:[]},e&&(Object(r.isString)(e)?this.attrs=a(e):Object(r.isEqual)(Object.keys(e),["named","numeric"])?this.attrs=e:Object(r.forEach)(e,(t,e)=>{this.set(e,t)}))}),{next:o,replace:u,string:i,regexp:c,attrs:a,fromMatch:l});Object(r.extend)(f.prototype,{get(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string(){let t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,e=>{/\s/.test(e)?t+=' "'+e+'"':t+=" "+e}),Object(r.forEach)(this.attrs.named,(e,n)=>{t+=" "+n+'="'+e+'"'}),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=f},"4eJC":function(t,e,n){t.exports=function(t,e){var n,r,s=0;function o(){var o,u,i=n,c=arguments.length;t:for(;i;){if(i.args.length===arguments.length){for(u=0;u<c;u++)if(i.args[u]!==arguments[u]){i=i.next;continue t}return i!==n&&(i===r&&(r=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(o=new Array(c),u=0;u<c;u++)o[u]=arguments[u];return i={args:o,val:t.apply(null,o)},n?(n.prev=i,i.next=n):r=i,s===e.maxSize?(r=r.prev).next=null:s++,n=i,i.val}return e=e||{},o.clear=function(){n=null,r=null,s=0},o}},YLtl:function(t,e){t.exports=window.lodash}}).default; |