"use strict";(globalThis.webpackChunkwp_graphql=globalThis.webpackChunkwp_graphql||[]).push([[77],{5077:(e,n,t)=>{t.r(n),t.d(n,{c:()=>m});var i=t(3338),l=Object.defineProperty,o=(e,n)=>l(e,"name",{value:n,configurable:!0});function r(e,n){return n.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(t){if("default"!==t&&!(t in e)){var i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:function(){return n[t]}})}}))})),Object.freeze(e)}o(r,"_mergeNamespaces");var a={exports:{}};!function(e){var n={},t=/[^\s\u00a0]/,i=e.Pos,l=e.cmpPos;function r(e){var n=e.search(t);return-1==n?0:n}function a(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(i(n.line,0)))&&!/^[\'\"\`]/.test(t)}function c(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}o(r,"firstNonWS"),e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=n);for(var t=this,l=1/0,o=this.listSelections(),r=null,a=o.length-1;a>=0;a--){var c=o[a].from(),m=o[a].to();c.line>=l||(m.line>=l&&(m=i(l,0)),l=c.line,null==r?t.uncomment(c,m,e)?r="un":(t.lineComment(c,m,e),r="line"):"un"==r?t.uncomment(c,m,e):t.lineComment(c,m,e))}})),o(a,"probablyInsideString"),o(c,"getMode"),e.defineExtension("lineComment",(function(e,l,o){o||(o=n);var m=this,g=c(m,e),s=m.getLine(e.line);if(null!=s&&!a(m,e,s)){var f=o.lineComment||g.lineComment;if(f){var u=Math.min(0!=l.ch||l.line==e.line?l.line+1:l.line,m.lastLine()+1),h=null==o.padding?" ":o.padding,d=o.commentBlankLines||e.line==l.line;m.operation((function(){if(o.indent){for(var n=null,l=e.line;l<u;++l){var a=(c=m.getLine(l)).slice(0,r(c));(null==n||n.length>a.length)&&(n=a)}for(l=e.line;l<u;++l){var c=m.getLine(l),g=n.length;(d||t.test(c))&&(c.slice(0,g)!=n&&(g=r(c)),m.replaceRange(n+f+h,i(l,0),i(l,g)))}}else for(l=e.line;l<u;++l)(d||t.test(m.getLine(l)))&&m.replaceRange(f+h,i(l,0))}))}else(o.blockCommentStart||g.blockCommentStart)&&(o.fullLines=!0,m.blockComment(e,l,o))}})),e.defineExtension("blockComment",(function(e,o,r){r||(r=n);var a=this,m=c(a,e),g=r.blockCommentStart||m.blockCommentStart,s=r.blockCommentEnd||m.blockCommentEnd;if(g&&s){if(!/\bcomment\b/.test(a.getTokenTypeAt(i(e.line,0)))){var f=Math.min(o.line,a.lastLine());f!=e.line&&0==o.ch&&t.test(a.getLine(f))&&--f;var u=null==r.padding?" ":r.padding;e.line>f||a.operation((function(){if(0!=r.fullLines){var n=t.test(a.getLine(f));a.replaceRange(u+s,i(f)),a.replaceRange(g+u,i(e.line,0));var c=r.blockCommentLead||m.blockCommentLead;if(null!=c)for(var h=e.line+1;h<=f;++h)(h!=f||n)&&a.replaceRange(c+u,i(h,0))}else{var d=0==l(a.getCursor("to"),o),p=!a.somethingSelected();a.replaceRange(s,o),d&&a.setSelection(p?o:a.getCursor("from"),o),a.replaceRange(g,e)}}))}}else(r.lineComment||m.lineComment)&&0!=r.fullLines&&a.lineComment(e,o,r)})),e.defineExtension("uncomment",(function(e,l,o){o||(o=n);var r,a=this,m=c(a,e),g=Math.min(0!=l.ch||l.line==e.line?l.line:l.line-1,a.lastLine()),s=Math.min(e.line,g),f=o.lineComment||m.lineComment,u=[],h=null==o.padding?" ":o.padding;e:if(f){for(var d=s;d<=g;++d){var p=a.getLine(d),b=p.indexOf(f);if(b>-1&&!/comment/.test(a.getTokenTypeAt(i(d,b+1)))&&(b=-1),-1==b&&t.test(p))break e;if(b>-1&&t.test(p.slice(0,b)))break e;u.push(p)}if(a.operation((function(){for(var e=s;e<=g;++e){var n=u[e-s],t=n.indexOf(f),l=t+f.length;t<0||(n.slice(l,l+h.length)==h&&(l+=h.length),r=!0,a.replaceRange("",i(e,t),i(e,l)))}})),r)return!0}var v=o.blockCommentStart||m.blockCommentStart,C=o.blockCommentEnd||m.blockCommentEnd;if(!v||!C)return!1;var k=o.blockCommentLead||m.blockCommentLead,L=a.getLine(s),x=L.indexOf(v);if(-1==x)return!1;var O=g==s?L:a.getLine(g),y=O.indexOf(C,g==s?x+v.length:0),S=i(s,x+1),T=i(g,y+1);if(-1==y||!/comment/.test(a.getTokenTypeAt(S))||!/comment/.test(a.getTokenTypeAt(T))||a.getRange(S,T,"\n").indexOf(C)>-1)return!1;var R=L.lastIndexOf(v,e.ch),E=-1==R?-1:L.slice(0,e.ch).indexOf(C,R+v.length);if(-1!=R&&-1!=E&&E+C.length!=e.ch)return!1;E=O.indexOf(C,l.ch);var M=O.slice(l.ch).lastIndexOf(v,E-l.ch);return R=-1==E||-1==M?-1:l.ch+M,(-1==E||-1==R||R==l.ch)&&(a.operation((function(){a.replaceRange("",i(g,y-(h&&O.slice(y-h.length,y)==h?h.length:0)),i(g,y+C.length));var e=x+v.length;if(h&&L.slice(e,e+h.length)==h&&(e+=h.length),a.replaceRange("",i(s,x),i(s,e)),k)for(var n=s+1;n<=g;++n){var l=a.getLine(n),o=l.indexOf(k);if(-1!=o&&!t.test(l.slice(0,o))){var r=o+k.length;h&&l.slice(r,r+h.length)==h&&(r+=h.length),a.replaceRange("",i(n,o),i(n,r))}}})),!0)}))}(i.a.exports);var c=a.exports,m=Object.freeze(r({__proto__:null,[Symbol.toStringTag]:"Module",default:c},[a.exports]))}}]);