mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-27 11:38:01 +01:00
2ec4c366e6
Update webpack version to latest version https://www.npmjs.com/package/webpack. This aligns closer with how the Gutenberg plugin handles WordPress packages. Related update in Gutenberg from August 2021: https://github.com/WordPress/gutenberg/pull/33818. Props walbo, desrosj, mukesh27. Fixes #51750. Built from https://develop.svn.wordpress.org/trunk@53135 git-svn-id: http://core.svn.wordpress.org/trunk@52724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
/*! This file is auto-generated */
|
|
!function(){var t={9756:function(t){t.exports=function(t,e){var n,r,s=0;function o(){var o,i,u=n,c=arguments.length;t:for(;u;){if(u.args.length===arguments.length){for(i=0;i<c;i++)if(u.args[i]!==arguments[i]){u=u.next;continue t}return u!==n&&(u===r&&(r=u.prev),u.prev.next=u.next,u.next&&(u.next.prev=u.prev),u.next=n,u.prev=null,n.prev=u,n=u),u.val}u=u.next}for(o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return u={args:o,val:t.apply(null,o)},n?(n.prev=u,u.next=n):r=u,s===e.maxSize?(r=r.prev).next=null:s++,n=u,u.val}return e=e||{},o.clear=function(){n=null,r=null,s=0},o}}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};!function(){"use strict";n.d(r,{default:function(){return c}});var t=window.lodash,e=n(9756);function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}const o=n.n(e)()((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 i(t){let e;return e=t[4]?"self-closing":t[6]?"closed":"single",new u({tag:t[2],attrs:t[3],type:e,content:t[5]})}const u=(0,t.extend)((function(e){(0,t.extend)(this,(0,t.pick)(e||{},"tag","attrs","type","content"));const n=this.attrs;this.attrs={named:{},numeric:[]},n&&((0,t.isString)(n)?this.attrs=o(n):(0,t.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:(0,t.forEach)(n,((t,e)=>{this.set(e,t)})))}),{next:function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=s(e);o.lastIndex=r;const u=o.exec(n);if(!u)return;if("["===u[1]&&"]"===u[7])return t(e,n,o.lastIndex);const c={index:u.index,content:u[0],shortcode:i(u)};return u[1]&&(c.content=c.content.slice(1),c.index++),u[7]&&(c.content=c.content.slice(0,-1)),c},replace:function(t,e,n){return e.replace(s(t),(function(t,e,r,s,o,u,c,a){if("["===e&&"]"===a)return t;const l=n(i(arguments));return l||""===l?e+l+a:t}))},string:function(t){return new u(t).string()},regexp:s,attrs:o,fromMatch:i});(0,t.extend)(u.prototype,{get(e){return this.attrs[(0,t.isNumber)(e)?"numeric":"named"][e]},set(e,n){return this.attrs[(0,t.isNumber)(e)?"numeric":"named"][e]=n,this},string(){let e="["+this.tag;return(0,t.forEach)(this.attrs.numeric,(t=>{/\s/.test(t)?e+=' "'+t+'"':e+=" "+t})),(0,t.forEach)(this.attrs.named,((t,n)=>{e+=" "+n+'="'+t+'"'})),"single"===this.type?e+"]":"self-closing"===this.type?e+" /]":(e+="]",this.content&&(e+=this.content),e+"[/"+this.tag+"]")}});var c=u}(),(window.wp=window.wp||{}).shortcode=r.default}(); |