akashop/volumes/wp/wp-includes/js/dist/edit-site.min.js

19 lines
505 KiB
JavaScript
Raw Normal View History

2024-03-20 07:48:21 +00:00
/*! This file is auto-generated */
!function(){var e={2591:function(e){e.exports=function(){function e(t,n,s){function r(i,o){if(!n[i]){if(!t[i]){if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[i]={exports:{}};t[i][0].call(c.exports,(function(e){return r(t[i][1][e]||e)}),c,c.exports,e,t,n,s)}return n[i].exports}for(var a=void 0,i=0;i<s.length;i++)r(s[i]);return r}return e}()({1:[function(e,t,n){"use strict";var s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var s in n)r(n,s)&&(e[s]=n[s])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,n,s,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+s),r);else for(var a=0;a<s;a++)e[r+a]=t[n+a]},flattenChunks:function(e){var t,n,s,r,a,i;for(s=0,t=0,n=e.length;t<n;t++)s+=e[t].length;for(i=new Uint8Array(s),r=0,t=0,n=e.length;t<n;t++)a=e[t],i.set(a,r),r+=a.length;return i}},i={arraySet:function(e,t,n,s,r){for(var a=0;a<s;a++)e[r+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,a)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(s)},{}],2:[function(e,t,n){"use strict";var s=e("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var i=new s.Buf8(256),o=0;o<256;o++)i[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&a||!e.subarray&&r))return String.fromCharCode.apply(null,s.shrinkBuf(e,t));for(var n="",i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n}i[254]=i[254]=1,n.string2buf=function(e){var t,n,r,a,i,o=e.length,l=0;for(a=0;a<o;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new s.Buf8(l),i=0,a=0;i<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new s.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,s,r,a,o=t||e.length,c=new Array(2*o);for(s=0,n=0;n<o;)if((r=e[n++])<128)c[s++]=r;else if((a=i[r])>4)c[s++]=65533,n+=a-1;else{for(r&=2===a?31:3===a?15:7;a>1&&n<o;)r=r<<6|63&e[n++],a--;a>1?c[s++]=65533:r<65536?c[s++]=r:(r-=65536,c[s++]=55296|r>>10&1023,c[s++]=56320|1023&r)}return l(c,s)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+i[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){"use strict";function s(e,t,n,s){for(var r=65535&e|0,a=e>>>16&65535|0,i=0;0!==n;){n-=i=n>2e3?2e3:n;do{a=a+(r=r+t[s++]|0)|0}while(--i);r%=65521,a%=65521}return r|a<<16|0}t.exports=s},{}],4:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,n){"use strict";function s(){for(var e,t=[],n=0;n<256;n++){e=n;for(var s=0;s<8;s++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}var r=s();function a(e,t,n,s){var a=r,i=s+n;e^=-1;for(var o=s;o<i;o++)e=e>>>8^a[255&(e^t[o])];ret
/*!
autosize 4.0.4
license: MIT
http://www.jacklmoore.com/autosize
*/s=[e,t],n=function(e,t){"use strict";var n,s,r="function"==typeof Map?new Map:(n=[],s=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return s[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),s.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),s.splice(t,1))}}),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!r.has(e)){var t=null,n=null,s=null,i=function(){e.clientWidth!==n&&p()},o=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",r.set(e,{destroy:o,update:p}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),p()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var s=u(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",n=e.clientWidth,s.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(c("scroll"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),s!==r){s=r;var i=a("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}function o(e){var t=r.get(e);t&&t.destroy()}function l(e){var t=r.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return i(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],o),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=c,e.exports=t.default},void 0===(r="function"==typeof n?n.apply(t,s):n)||(e.exports=r)},4403:function(e,t){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var s={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)s.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function o(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=s(e[t],n)})),a(t).forEach((function(a){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(i(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(a,n)(e[a],t[a],n):r[a]=s(t[a],n))})),r}function l(e,n,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||t,a.cloneUnlessOtherwiseSpecified=s;var i=Array.isArray(n);return i===Array.isArray(e)?i?a.arrayMerge(e,n,a):o(e,n,a):s(n,a)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},8981:function(e,t){var n,s,r;s=[],void 0===(r="function"==typeof(n=function(){return function e(t,n,s){var r,a,i=window,o="application/octet-stream",l=s||o,c=t,u=!n&&!s&&c,d=document.createElement("a"),p=function(e){return String(e)},m=i.Blob||i.MozBlob||i.WebKitBlob||p,h=n||"download";if(m=m.call?m.bind(i):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(h=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var f=new XMLHttpRequest;return f.open("GET",u,!0),f.responseType="blob",f.onload=function(t){e(t.target.response,h,o)},setTimeout((function(){f.send()}),0),f}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&m!==p))return navigator.msSaveBlob?navigator.msSaveBlob(_(c),h):b(c);l=(c=_(c)).type||o}else if(/([\x80-\xff])/.test(c)){for(var g=0,y=new Uint8Array(c.length),v=y.length;g<v;++g)y[g]=c.charCodeAt(g);c=new m([y],{type:l})}function _(e){for(var t=e.split(/[:;,]/),n=t[1],s=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=s.length,a=0,i=new Uint8Array(r);a<r;++a)i[a]=s.charCodeAt(a);return new m([i],{type:n})}function b(e,t){if("download"in d)return d.href=e,d.setAttribute("download",h),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){i.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function Ps(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ns(e){var t,n;return!1!==Ps(e)&&(void 0===(t=e.constructor)||!1!==Ps(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:Os,cleanEmptyObject:Is}=nt(we.privateApis);function Ms(e,t){return Ts()(e,t,{isMergeableObject:Ns})}function As(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:s}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(f.store),s=e(f.store).__experimentalGetCurrentGlobalStylesId(),r=s?t("root","globalStyles",s):void 0;let a=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(a=!s||n("getEditedEntityRecord",["root","globalStyles",s])),{globalStylesId:s,isReady:a,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(f.store),{editEntityRecord:a}=(0,d.useDispatch)(f.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=s?s:{}})),[n,s]),(0,l.useCallback)(((t,n={})=>{var s,i;const o=r("root","globalStyles",e),l=t({styles:null!==(s=o?.styles)&&void 0!==s?s:{},settings:null!==(i=o?.settings)&&void 0!==i?i:{}});a("root","globalStyles",e,{styles:Is(l.styles)||{},settings:Is(l.settings)||{}},n)}),[e])]}(),[s,r]=function(){const e=(0,d.useSelect)((e=>e(f.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),a=(0,l.useMemo)((()=>r&&t?Ms(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&s,user:t,base:r,merged:a,setUserConfig:n})),[a,t,r,n,e,s])}function Rs({children:e}){const t=As();return t.isReady?(0,l.createElement)(Os.Provider,{value:t},e):null}const{useGlobalStyle:Bs,useGlobalStylesOutput:Ls}=nt(we.privateApis),Ds={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},Fs={hover:{opacity:1},start:{opacity:.5}},Vs={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var zs=({label:e,isFocused:t,withHoverView:n})=>{const[s]=Bs("typography.fontWeight"),[r="serif"]=Bs("typography.fontFamily"),[a=r]=Bs("elements.h1.typography.fontFamily"),[i=s]=Bs("elements.h1.typography.fontWeight"),[o="black"]=Bs("color.text"),[c=o]=Bs("elements.h1.color.text"),[u="white"]=Bs("color.background"),[d]=Bs("color.gradient"),[p]=Ls(),m=(0,ae.useReducedMotion)(),[h,f]=(0,l.useState)(!1),[g,{width:y}]=(0,ae.useResizeObserver)(),v=y?y/248:1,{paletteColors:b,highlightedColors:E}=at(),w=(0,l.useMemo)((()=>p?[...p,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:p),[p]),x=!!y;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},g),x&&(0,l.createElement)(we.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*v},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),tabIndex:-1},(0,l.createElement)(we.__unstableEditorStyles,{styles:w}),(0,l.createElement)(_.__unstableMotion.div,{style:{height:152*v,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(h||t)&&!m&&e?"hover":"start"},(0,l.createElement)(_.__unstableMotion.div,{variants:Ds,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(_.__experimentalHStack,{spacing:10*v,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(_.__unstableMotion.div,{style:{fontFamily:a,fontSize:65*v,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(_.__experimentalVStack,{spacing:4*v},E.map((({slug:e,color:t},n)=>(0,l.createElement)(_.__unstableMotion.div,{key:e,style:{height:32*v,width:32*v,background:t,borderRadius:32*v/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(_.__unstableMotion.div,{variants:n&&Fs,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(_.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},b.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,fl