Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/2/script-modules.tar
Ðазад
a11y/index.min.js 0000644 00000001443 15151136645 0007557 0 ustar 00 var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{m:()=>a,L:()=>o});let n="";function o(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),n===e&&(e+=" "),n=e,e}(e);const o=document.getElementById("a11y-speak-intro-text"),a=document.getElementById("a11y-speak-assertive"),r=document.getElementById("a11y-speak-polite");a&&"assertive"===t?a.textContent=e:r&&(r.textContent=e),o&&o.removeAttribute("hidden")}const a=()=>{};var r=t.m,s=t.L;export{r as setup,s as speak}; a11y/index.js 0000644 00000005142 15151136645 0006775 0 ustar 00 /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // EXPORTS __webpack_require__.d(__webpack_exports__, { m: () => (/* binding */ setup), L: () => (/* reexport */ speak) }); ;// ./node_modules/@wordpress/a11y/build-module/shared/clear.js function clear() { const regions = document.getElementsByClassName("a11y-speak-region"); const introText = document.getElementById("a11y-speak-intro-text"); for (let i = 0; i < regions.length; i++) { regions[i].textContent = ""; } if (introText) { introText.setAttribute("hidden", "hidden"); } } ;// ./node_modules/@wordpress/a11y/build-module/shared/filter-message.js let previousMessage = ""; function filterMessage(message) { message = message.replace(/<[^<>]+>/g, " "); if (previousMessage === message) { message += "\xA0"; } previousMessage = message; return message; } ;// ./node_modules/@wordpress/a11y/build-module/shared/index.js function speak(message, ariaLive) { clear(); message = filterMessage(message); const introText = document.getElementById("a11y-speak-intro-text"); const containerAssertive = document.getElementById( "a11y-speak-assertive" ); const containerPolite = document.getElementById("a11y-speak-polite"); if (containerAssertive && ariaLive === "assertive") { containerAssertive.textContent = message; } else if (containerPolite) { containerPolite.textContent = message; } if (introText) { introText.removeAttribute("hidden"); } } ;// ./node_modules/@wordpress/a11y/build-module/module/index.js const setup = () => { }; var __webpack_exports__setup = __webpack_exports__.m; var __webpack_exports__speak = __webpack_exports__.L; export { __webpack_exports__setup as setup, __webpack_exports__speak as speak }; block-library/accordion/view.js 0000644 00000012261 15151136645 0012562 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store), ["withSyncEvent"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.withSyncEvent) }); ;// ./node_modules/@wordpress/block-library/build-module/accordion/view.js let hashHandled = false; const { actions } = (0,interactivity_namespaceObject.store)( "core/accordion", { state: { get isOpen() { const { id, accordionItems } = (0,interactivity_namespaceObject.getContext)(); const accordionItem = accordionItems.find( (item) => item.id === id ); return accordionItem ? accordionItem.isOpen : false; } }, actions: { toggle: () => { const context = (0,interactivity_namespaceObject.getContext)(); const { id, autoclose, accordionItems } = context; const accordionItem = accordionItems.find( (item) => item.id === id ); if (autoclose) { accordionItems.forEach((item) => { item.isOpen = item.id === id ? !accordionItem.isOpen : false; }); } else { accordionItem.isOpen = !accordionItem.isOpen; } }, handleKeyDown: (0,interactivity_namespaceObject.withSyncEvent)((event) => { if (event.key !== "ArrowUp" && event.key !== "ArrowDown" && event.key !== "Home" && event.key !== "End") { return; } event.preventDefault(); const context = (0,interactivity_namespaceObject.getContext)(); const { id, accordionItems } = context; const currentIndex = accordionItems.findIndex( (item) => item.id === id ); let nextIndex; switch (event.key) { case "ArrowUp": nextIndex = Math.max(0, currentIndex - 1); break; case "ArrowDown": nextIndex = Math.min( currentIndex + 1, accordionItems.length - 1 ); break; case "Home": nextIndex = 0; break; case "End": nextIndex = accordionItems.length - 1; break; } const nextId = accordionItems[nextIndex].id; const nextButton = document.getElementById(nextId); if (nextButton) { nextButton.focus(); } }), openPanelByHash: () => { if (hashHandled || !window.location?.hash?.length) { return; } const context = (0,interactivity_namespaceObject.getContext)(); const { id, accordionItems, autoclose } = context; const hash = decodeURIComponent( window.location.hash.slice(1) ); const targetElement = window.document.getElementById(hash); if (!targetElement) { return; } const panelElement = window.document.querySelector( '.wp-block-accordion-panel[aria-labelledby="' + id + '"]' ); if (!panelElement || !panelElement.contains(targetElement)) { return; } hashHandled = true; if (autoclose) { accordionItems.forEach((item) => { item.isOpen = item.id === id; }); } else { const targetItem = accordionItems.find( (item) => item.id === id ); if (targetItem) { targetItem.isOpen = true; } } window.setTimeout(() => { targetElement.scrollIntoView(); }, 0); } }, callbacks: { initAccordionItems: () => { const context = (0,interactivity_namespaceObject.getContext)(); const { id, openByDefault, accordionItems } = context; accordionItems.push({ id, isOpen: openByDefault }); actions.openPanelByHash(); }, hashChange: () => { hashHandled = false; actions.openPanelByHash(); } } }, { lock: true } ); block-library/accordion/view.min.js 0000644 00000003414 15151136645 0013344 0 ustar 00 import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,store:()=>e.store,withSyncEvent:()=>e.withSyncEvent});let o=!1;const{actions:i}=(0,n.store)("core/accordion",{state:{get isOpen(){const{id:e,accordionItems:t}=(0,n.getContext)(),o=t.find((t=>t.id===e));return!!o&&o.isOpen}},actions:{toggle:()=>{const e=(0,n.getContext)(),{id:t,autoclose:o,accordionItems:i}=e,c=i.find((e=>e.id===t));o?i.forEach((e=>{e.isOpen=e.id===t&&!c.isOpen})):c.isOpen=!c.isOpen},handleKeyDown:(0,n.withSyncEvent)((e=>{if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Home"!==e.key&&"End"!==e.key)return;e.preventDefault();const t=(0,n.getContext)(),{id:o,accordionItems:i}=t,c=i.findIndex((e=>e.id===o));let s;switch(e.key){case"ArrowUp":s=Math.max(0,c-1);break;case"ArrowDown":s=Math.min(c+1,i.length-1);break;case"Home":s=0;break;case"End":s=i.length-1}const r=i[s].id,a=document.getElementById(r);a&&a.focus()})),openPanelByHash:()=>{if(o||!window.location?.hash?.length)return;const e=(0,n.getContext)(),{id:t,accordionItems:i,autoclose:c}=e,s=decodeURIComponent(window.location.hash.slice(1)),r=window.document.getElementById(s);if(!r)return;const a=window.document.querySelector('.wp-block-accordion-panel[aria-labelledby="'+t+'"]');if(a&&a.contains(r)){if(o=!0,c)i.forEach((e=>{e.isOpen=e.id===t}));else{const e=i.find((e=>e.id===t));e&&(e.isOpen=!0)}window.setTimeout((()=>{r.scrollIntoView()}),0)}}},callbacks:{initAccordionItems:()=>{const e=(0,n.getContext)(),{id:t,openByDefault:o,accordionItems:c}=e;c.push({id:t,isOpen:o}),i.openPanelByHash()},hashChange:()=>{o=!1,i.openPanelByHash()}}},{lock:!0}); block-library/image/view.js 0000644 00000030372 15151136645 0011706 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store), ["withSyncEvent"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.withSyncEvent) }); ;// ./node_modules/@wordpress/block-library/build-module/image/view.js let isTouching = false; let lastTouchTime = 0; const { state, actions, callbacks } = (0,interactivity_namespaceObject.store)( "core/image", { state: { currentImageId: null, get currentImage() { return state.metadata[state.currentImageId]; }, get overlayOpened() { return state.currentImageId !== null; }, get roleAttribute() { return state.overlayOpened ? "dialog" : null; }, get ariaModal() { return state.overlayOpened ? "true" : null; }, get enlargedSrc() { return state.currentImage.uploadedSrc || "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="; }, get figureStyles() { return state.overlayOpened && `${state.currentImage.figureStyles?.replace( /margin[^;]*;?/g, "" )};`; }, get imgStyles() { return state.overlayOpened && `${state.currentImage.imgStyles?.replace( /;$/, "" )}; object-fit:cover;`; }, get imageButtonRight() { const { imageId } = (0,interactivity_namespaceObject.getContext)(); return state.metadata[imageId].imageButtonRight; }, get imageButtonTop() { const { imageId } = (0,interactivity_namespaceObject.getContext)(); return state.metadata[imageId].imageButtonTop; }, get isContentHidden() { const ctx = (0,interactivity_namespaceObject.getContext)(); return state.overlayEnabled && state.currentImageId === ctx.imageId; }, get isContentVisible() { const ctx = (0,interactivity_namespaceObject.getContext)(); return !state.overlayEnabled && state.currentImageId === ctx.imageId; } }, actions: { showLightbox() { const { imageId } = (0,interactivity_namespaceObject.getContext)(); if (!state.metadata[imageId].imageRef?.complete) { return; } state.scrollTopReset = document.documentElement.scrollTop; state.scrollLeftReset = document.documentElement.scrollLeft; state.overlayEnabled = true; state.currentImageId = imageId; callbacks.setOverlayStyles(); }, hideLightbox() { if (state.overlayEnabled) { state.overlayEnabled = false; setTimeout(function() { state.currentImage.buttonRef.focus({ preventScroll: true }); state.currentImageId = null; }, 450); } }, handleKeydown: (0,interactivity_namespaceObject.withSyncEvent)((event) => { if (state.overlayEnabled) { if (event.key === "Tab") { event.preventDefault(); const { ref } = (0,interactivity_namespaceObject.getElement)(); ref.querySelector("button").focus(); } if (event.key === "Escape") { actions.hideLightbox(); } } }), handleTouchMove: (0,interactivity_namespaceObject.withSyncEvent)((event) => { if (state.overlayEnabled) { event.preventDefault(); } }), handleTouchStart() { isTouching = true; }, handleTouchEnd() { lastTouchTime = Date.now(); isTouching = false; }, handleScroll() { if (state.overlayOpened) { if (!isTouching && Date.now() - lastTouchTime > 450) { window.scrollTo( state.scrollLeftReset, state.scrollTopReset ); } } } }, callbacks: { setOverlayStyles() { if (!state.overlayEnabled) { return; } let { naturalWidth, naturalHeight, offsetWidth: originalWidth, offsetHeight: originalHeight } = state.currentImage.imageRef; let { x: screenPosX, y: screenPosY } = state.currentImage.imageRef.getBoundingClientRect(); const naturalRatio = naturalWidth / naturalHeight; let originalRatio = originalWidth / originalHeight; if (state.currentImage.scaleAttr === "contain") { if (naturalRatio > originalRatio) { const heightWithoutSpace = originalWidth / naturalRatio; screenPosY += (originalHeight - heightWithoutSpace) / 2; originalHeight = heightWithoutSpace; } else { const widthWithoutSpace = originalHeight * naturalRatio; screenPosX += (originalWidth - widthWithoutSpace) / 2; originalWidth = widthWithoutSpace; } } originalRatio = originalWidth / originalHeight; let imgMaxWidth = parseFloat( state.currentImage.targetWidth !== "none" ? state.currentImage.targetWidth : naturalWidth ); let imgMaxHeight = parseFloat( state.currentImage.targetHeight !== "none" ? state.currentImage.targetHeight : naturalHeight ); let imgRatio = imgMaxWidth / imgMaxHeight; let containerMaxWidth = imgMaxWidth; let containerMaxHeight = imgMaxHeight; let containerWidth = imgMaxWidth; let containerHeight = imgMaxHeight; if (naturalRatio.toFixed(2) !== imgRatio.toFixed(2)) { if (naturalRatio > imgRatio) { const reducedHeight = imgMaxWidth / naturalRatio; if (imgMaxHeight - reducedHeight > imgMaxWidth) { imgMaxHeight = reducedHeight; imgMaxWidth = reducedHeight * naturalRatio; } else { imgMaxHeight = imgMaxWidth / naturalRatio; } } else { const reducedWidth = imgMaxHeight * naturalRatio; if (imgMaxWidth - reducedWidth > imgMaxHeight) { imgMaxWidth = reducedWidth; imgMaxHeight = reducedWidth / naturalRatio; } else { imgMaxWidth = imgMaxHeight * naturalRatio; } } containerWidth = imgMaxWidth; containerHeight = imgMaxHeight; imgRatio = imgMaxWidth / imgMaxHeight; if (originalRatio > imgRatio) { containerMaxWidth = imgMaxWidth; containerMaxHeight = containerMaxWidth / originalRatio; } else { containerMaxHeight = imgMaxHeight; containerMaxWidth = containerMaxHeight * originalRatio; } } if (originalWidth > containerWidth || originalHeight > containerHeight) { containerWidth = originalWidth; containerHeight = originalHeight; } let horizontalPadding = 0; if (window.innerWidth > 480) { horizontalPadding = 80; } else if (window.innerWidth > 1920) { horizontalPadding = 160; } const verticalPadding = 80; const targetMaxWidth = Math.min( window.innerWidth - horizontalPadding, containerWidth ); const targetMaxHeight = Math.min( window.innerHeight - verticalPadding, containerHeight ); const targetContainerRatio = targetMaxWidth / targetMaxHeight; if (originalRatio > targetContainerRatio) { containerWidth = targetMaxWidth; containerHeight = containerWidth / originalRatio; } else { containerHeight = targetMaxHeight; containerWidth = containerHeight * originalRatio; } const containerScale = originalWidth / containerWidth; const lightboxImgWidth = imgMaxWidth * (containerWidth / containerMaxWidth); const lightboxImgHeight = imgMaxHeight * (containerHeight / containerMaxHeight); state.overlayStyles = ` --wp--lightbox-initial-top-position: ${screenPosY}px; --wp--lightbox-initial-left-position: ${screenPosX}px; --wp--lightbox-container-width: ${containerWidth + 1}px; --wp--lightbox-container-height: ${containerHeight + 1}px; --wp--lightbox-image-width: ${lightboxImgWidth}px; --wp--lightbox-image-height: ${lightboxImgHeight}px; --wp--lightbox-scale: ${containerScale}; --wp--lightbox-scrollbar-width: ${window.innerWidth - document.documentElement.clientWidth}px; `; }, setButtonStyles() { const { ref } = (0,interactivity_namespaceObject.getElement)(); if (!ref) { return; } const { imageId } = (0,interactivity_namespaceObject.getContext)(); state.metadata[imageId].imageRef = ref; state.metadata[imageId].currentSrc = ref.currentSrc; const { naturalWidth, naturalHeight, offsetWidth, offsetHeight } = ref; if (naturalWidth === 0 || naturalHeight === 0) { return; } const figure = ref.parentElement; const figureWidth = ref.parentElement.clientWidth; let figureHeight = ref.parentElement.clientHeight; const caption = figure.querySelector("figcaption"); if (caption) { const captionComputedStyle = window.getComputedStyle(caption); if (!["absolute", "fixed"].includes( captionComputedStyle.position )) { figureHeight = figureHeight - caption.offsetHeight - parseFloat(captionComputedStyle.marginTop) - parseFloat(captionComputedStyle.marginBottom); } } const buttonOffsetTop = figureHeight - offsetHeight; const buttonOffsetRight = figureWidth - offsetWidth; let imageButtonTop = buttonOffsetTop + 16; let imageButtonRight = buttonOffsetRight + 16; if (state.metadata[imageId].scaleAttr === "contain") { const naturalRatio = naturalWidth / naturalHeight; const offsetRatio = offsetWidth / offsetHeight; if (naturalRatio >= offsetRatio) { const referenceHeight = offsetWidth / naturalRatio; imageButtonTop = (offsetHeight - referenceHeight) / 2 + buttonOffsetTop + 16; imageButtonRight = buttonOffsetRight + 16; } else { const referenceWidth = offsetHeight * naturalRatio; imageButtonTop = buttonOffsetTop + 16; imageButtonRight = (offsetWidth - referenceWidth) / 2 + buttonOffsetRight + 16; } } state.metadata[imageId].imageButtonTop = imageButtonTop; state.metadata[imageId].imageButtonRight = imageButtonRight; }, setOverlayFocus() { if (state.overlayEnabled) { const { ref } = (0,interactivity_namespaceObject.getElement)(); ref.focus(); } }, initTriggerButton() { const { imageId } = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); state.metadata[imageId].buttonRef = ref; } } }, { lock: true } ); block-library/image/view.min.js 0000644 00000011043 15151136645 0012462 0 ustar 00 import*as t from"@wordpress/interactivity";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const n=(t=>{var n={};return e.d(n,t),n})({getContext:()=>t.getContext,getElement:()=>t.getElement,store:()=>t.store,withSyncEvent:()=>t.withSyncEvent});let a=!1,o=0;const{state:r,actions:i,callbacks:l}=(0,n.store)("core/image",{state:{currentImageId:null,get currentImage(){return r.metadata[r.currentImageId]},get overlayOpened(){return null!==r.currentImageId},get roleAttribute(){return r.overlayOpened?"dialog":null},get ariaModal(){return r.overlayOpened?"true":null},get enlargedSrc(){return r.currentImage.uploadedSrc||"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},get figureStyles(){return r.overlayOpened&&`${r.currentImage.figureStyles?.replace(/margin[^;]*;?/g,"")};`},get imgStyles(){return r.overlayOpened&&`${r.currentImage.imgStyles?.replace(/;$/,"")}; object-fit:cover;`},get imageButtonRight(){const{imageId:t}=(0,n.getContext)();return r.metadata[t].imageButtonRight},get imageButtonTop(){const{imageId:t}=(0,n.getContext)();return r.metadata[t].imageButtonTop},get isContentHidden(){const t=(0,n.getContext)();return r.overlayEnabled&&r.currentImageId===t.imageId},get isContentVisible(){const t=(0,n.getContext)();return!r.overlayEnabled&&r.currentImageId===t.imageId}},actions:{showLightbox(){const{imageId:t}=(0,n.getContext)();r.metadata[t].imageRef?.complete&&(r.scrollTopReset=document.documentElement.scrollTop,r.scrollLeftReset=document.documentElement.scrollLeft,r.overlayEnabled=!0,r.currentImageId=t,l.setOverlayStyles())},hideLightbox(){r.overlayEnabled&&(r.overlayEnabled=!1,setTimeout((function(){r.currentImage.buttonRef.focus({preventScroll:!0}),r.currentImageId=null}),450))},handleKeydown:(0,n.withSyncEvent)((t=>{if(r.overlayEnabled){if("Tab"===t.key){t.preventDefault();const{ref:e}=(0,n.getElement)();e.querySelector("button").focus()}"Escape"===t.key&&i.hideLightbox()}})),handleTouchMove:(0,n.withSyncEvent)((t=>{r.overlayEnabled&&t.preventDefault()})),handleTouchStart(){a=!0},handleTouchEnd(){o=Date.now(),a=!1},handleScroll(){r.overlayOpened&&!a&&Date.now()-o>450&&window.scrollTo(r.scrollLeftReset,r.scrollTopReset)}},callbacks:{setOverlayStyles(){if(!r.overlayEnabled)return;let{naturalWidth:t,naturalHeight:e,offsetWidth:n,offsetHeight:a}=r.currentImage.imageRef,{x:o,y:i}=r.currentImage.imageRef.getBoundingClientRect();const l=t/e;let g=n/a;if("contain"===r.currentImage.scaleAttr)if(l>g){const t=n/l;i+=(a-t)/2,a=t}else{const t=a*l;o+=(n-t)/2,n=t}g=n/a;let c=parseFloat("none"!==r.currentImage.targetWidth?r.currentImage.targetWidth:t),d=parseFloat("none"!==r.currentImage.targetHeight?r.currentImage.targetHeight:e),s=c/d,u=c,m=d,h=c,p=d;if(l.toFixed(2)!==s.toFixed(2)){if(l>s){const t=c/l;d-t>c?(d=t,c=t*l):d=c/l}else{const t=d*l;c-t>d?(c=t,d=t/l):c=d*l}h=c,p=d,s=c/d,g>s?(u=c,m=u/g):(m=d,u=m*g)}(n>h||a>p)&&(h=n,p=a);let f=0;window.innerWidth>480?f=80:window.innerWidth>1920&&(f=160);const y=Math.min(window.innerWidth-f,h),w=Math.min(window.innerHeight-80,p);g>y/w?(h=y,p=h/g):(p=w,h=p*g);const b=n/h,I=c*(h/u),v=d*(p/m);r.overlayStyles=`\n\t\t\t\t\t--wp--lightbox-initial-top-position: ${i}px;\n\t\t\t\t\t--wp--lightbox-initial-left-position: ${o}px;\n\t\t\t\t\t--wp--lightbox-container-width: ${h+1}px;\n\t\t\t\t\t--wp--lightbox-container-height: ${p+1}px;\n\t\t\t\t\t--wp--lightbox-image-width: ${I}px;\n\t\t\t\t\t--wp--lightbox-image-height: ${v}px;\n\t\t\t\t\t--wp--lightbox-scale: ${b};\n\t\t\t\t\t--wp--lightbox-scrollbar-width: ${window.innerWidth-document.documentElement.clientWidth}px;\n\t\t\t\t`},setButtonStyles(){const{ref:t}=(0,n.getElement)();if(!t)return;const{imageId:e}=(0,n.getContext)();r.metadata[e].imageRef=t,r.metadata[e].currentSrc=t.currentSrc;const{naturalWidth:a,naturalHeight:o,offsetWidth:i,offsetHeight:l}=t;if(0===a||0===o)return;const g=t.parentElement,c=t.parentElement.clientWidth;let d=t.parentElement.clientHeight;const s=g.querySelector("figcaption");if(s){const t=window.getComputedStyle(s);["absolute","fixed"].includes(t.position)||(d=d-s.offsetHeight-parseFloat(t.marginTop)-parseFloat(t.marginBottom))}const u=d-l,m=c-i;let h=u+16,p=m+16;if("contain"===r.metadata[e].scaleAttr){const t=a/o;if(t>=i/l){h=(l-i/t)/2+u+16,p=m+16}else{h=u+16,p=(i-l*t)/2+m+16}}r.metadata[e].imageButtonTop=h,r.metadata[e].imageButtonRight=p},setOverlayFocus(){if(r.overlayEnabled){const{ref:t}=(0,n.getElement)();t.focus()}},initTriggerButton(){const{imageId:t}=(0,n.getContext)(),{ref:e}=(0,n.getElement)();r.metadata[t].buttonRef=e}}},{lock:!0}); block-library/navigation/view.min.js 0000644 00000006511 15151136645 0013543 0 ustar 00 import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store,withSyncEvent:()=>e.withSyncEvent}),o=["a[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","[contenteditable]",'[tabindex]:not([tabindex^="-"])'];document.addEventListener("click",(()=>{}));const{state:l,actions:c}=(0,n.store)("core/navigation",{state:{get roleAttribute(){return"overlay"===(0,n.getContext)().type&&l.isMenuOpen?"dialog":null},get ariaModal(){return"overlay"===(0,n.getContext)().type&&l.isMenuOpen?"true":null},get ariaLabel(){const e=(0,n.getContext)();return"overlay"===e.type&&l.isMenuOpen?e.ariaLabel:null},get isMenuOpen(){return Object.values(l.menuOpenedBy).filter(Boolean).length>0},get menuOpenedBy(){const e=(0,n.getContext)();return"overlay"===e.type?e.overlayOpenedBy:e.submenuOpenedBy}},actions:{openMenuOnHover(){const{type:e,overlayOpenedBy:t}=(0,n.getContext)();"submenu"===e&&0===Object.values(t||{}).filter(Boolean).length&&c.openMenu("hover")},closeMenuOnHover(){const{type:e,overlayOpenedBy:t}=(0,n.getContext)();"submenu"===e&&0===Object.values(t||{}).filter(Boolean).length&&c.closeMenu("hover")},openMenuOnClick(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)();e.previousFocus=t,c.openMenu("click")},closeMenuOnClick(){c.closeMenu("click"),c.closeMenu("focus")},openMenuOnFocus(){c.openMenu("focus")},toggleMenuOnClick(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)();window.document.activeElement!==t&&t.focus();const{menuOpenedBy:o}=l;o.click||o.focus?(c.closeMenu("click"),c.closeMenu("focus")):(e.previousFocus=t,c.openMenu("click"))},handleMenuKeydown:(0,n.withSyncEvent)((e=>{const{type:t,firstFocusableElement:o,lastFocusableElement:u}=(0,n.getContext)();if(l.menuOpenedBy.click){if("Escape"===e.key)return e.stopPropagation(),c.closeMenu("click"),void c.closeMenu("focus");"overlay"===t&&"Tab"===e.key&&(e.shiftKey&&window.document.activeElement===o?(e.preventDefault(),u.focus()):e.shiftKey||window.document.activeElement!==u||(e.preventDefault(),o.focus()))}})),handleMenuFocusout:(0,n.withSyncEvent)((e=>{const{modal:t,type:o}=(0,n.getContext)();(null===e.relatedTarget||!t?.contains(e.relatedTarget)&&e.target!==window.document.activeElement&&"submenu"===o)&&(c.closeMenu("click"),c.closeMenu("focus"))})),openMenu(e="click"){const{type:t}=(0,n.getContext)();l.menuOpenedBy[e]=!0,"overlay"===t&&document.documentElement.classList.add("has-modal-open")},closeMenu(e="click"){const t=(0,n.getContext)();l.menuOpenedBy[e]=!1,l.isMenuOpen||(t.modal?.contains(window.document.activeElement)&&t.previousFocus?.focus(),t.modal=null,t.previousFocus=null,"overlay"===t.type&&document.documentElement.classList.remove("has-modal-open"))}},callbacks:{initMenu(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)();if(l.isMenuOpen){const n=t.querySelectorAll(o);e.modal=t,e.firstFocusableElement=n[0],e.lastFocusableElement=n[n.length-1]}},focusFirstElement(){const{ref:e}=(0,n.getElement)();if(l.isMenuOpen){const t=e.querySelectorAll(o);t?.[0]?.focus()}}}},{lock:!0}); block-library/navigation/view.js 0000644 00000016637 15151136645 0012773 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store), ["withSyncEvent"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.withSyncEvent) }); ;// ./node_modules/@wordpress/block-library/build-module/navigation/view.js const focusableSelectors = [ "a[href]", 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', "select:not([disabled]):not([aria-hidden])", "textarea:not([disabled]):not([aria-hidden])", "button:not([disabled]):not([aria-hidden])", "[contenteditable]", '[tabindex]:not([tabindex^="-"])' ]; document.addEventListener("click", () => { }); const { state, actions } = (0,interactivity_namespaceObject.store)( "core/navigation", { state: { get roleAttribute() { const ctx = (0,interactivity_namespaceObject.getContext)(); return ctx.type === "overlay" && state.isMenuOpen ? "dialog" : null; }, get ariaModal() { const ctx = (0,interactivity_namespaceObject.getContext)(); return ctx.type === "overlay" && state.isMenuOpen ? "true" : null; }, get ariaLabel() { const ctx = (0,interactivity_namespaceObject.getContext)(); return ctx.type === "overlay" && state.isMenuOpen ? ctx.ariaLabel : null; }, get isMenuOpen() { return Object.values(state.menuOpenedBy).filter(Boolean).length > 0; }, get menuOpenedBy() { const ctx = (0,interactivity_namespaceObject.getContext)(); return ctx.type === "overlay" ? ctx.overlayOpenedBy : ctx.submenuOpenedBy; } }, actions: { openMenuOnHover() { const { type, overlayOpenedBy } = (0,interactivity_namespaceObject.getContext)(); if (type === "submenu" && // Only open on hover if the overlay is closed. Object.values(overlayOpenedBy || {}).filter(Boolean).length === 0) { actions.openMenu("hover"); } }, closeMenuOnHover() { const { type, overlayOpenedBy } = (0,interactivity_namespaceObject.getContext)(); if (type === "submenu" && // Only close on hover if the overlay is closed. Object.values(overlayOpenedBy || {}).filter(Boolean).length === 0) { actions.closeMenu("hover"); } }, openMenuOnClick() { const ctx = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); ctx.previousFocus = ref; actions.openMenu("click"); }, closeMenuOnClick() { actions.closeMenu("click"); actions.closeMenu("focus"); }, openMenuOnFocus() { actions.openMenu("focus"); }, toggleMenuOnClick() { const ctx = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); if (window.document.activeElement !== ref) { ref.focus(); } const { menuOpenedBy } = state; if (menuOpenedBy.click || menuOpenedBy.focus) { actions.closeMenu("click"); actions.closeMenu("focus"); } else { ctx.previousFocus = ref; actions.openMenu("click"); } }, handleMenuKeydown: (0,interactivity_namespaceObject.withSyncEvent)((event) => { const { type, firstFocusableElement, lastFocusableElement } = (0,interactivity_namespaceObject.getContext)(); if (state.menuOpenedBy.click) { if (event.key === "Escape") { event.stopPropagation(); actions.closeMenu("click"); actions.closeMenu("focus"); return; } if (type === "overlay" && event.key === "Tab") { if (event.shiftKey && window.document.activeElement === firstFocusableElement) { event.preventDefault(); lastFocusableElement.focus(); } else if (!event.shiftKey && window.document.activeElement === lastFocusableElement) { event.preventDefault(); firstFocusableElement.focus(); } } } }), handleMenuFocusout: (0,interactivity_namespaceObject.withSyncEvent)((event) => { const { modal, type } = (0,interactivity_namespaceObject.getContext)(); if (event.relatedTarget === null || !modal?.contains(event.relatedTarget) && event.target !== window.document.activeElement && type === "submenu") { actions.closeMenu("click"); actions.closeMenu("focus"); } }), openMenu(menuOpenedOn = "click") { const { type } = (0,interactivity_namespaceObject.getContext)(); state.menuOpenedBy[menuOpenedOn] = true; if (type === "overlay") { document.documentElement.classList.add("has-modal-open"); } }, closeMenu(menuClosedOn = "click") { const ctx = (0,interactivity_namespaceObject.getContext)(); state.menuOpenedBy[menuClosedOn] = false; if (!state.isMenuOpen) { if (ctx.modal?.contains(window.document.activeElement)) { ctx.previousFocus?.focus(); } ctx.modal = null; ctx.previousFocus = null; if (ctx.type === "overlay") { document.documentElement.classList.remove( "has-modal-open" ); } } } }, callbacks: { initMenu() { const ctx = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); if (state.isMenuOpen) { const focusableElements = ref.querySelectorAll(focusableSelectors); ctx.modal = ref; ctx.firstFocusableElement = focusableElements[0]; ctx.lastFocusableElement = focusableElements[focusableElements.length - 1]; } }, focusFirstElement() { const { ref } = (0,interactivity_namespaceObject.getElement)(); if (state.isMenuOpen) { const focusableElements = ref.querySelectorAll(focusableSelectors); focusableElements?.[0]?.focus(); } } } }, { lock: true } ); block-library/query/view.min.js 0000644 00000002704 15151136645 0012551 0 ustar 00 import*as e from"@wordpress/interactivity";var t={438:e=>{e.exports=import("@wordpress/interactivity-router")}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=(e=>{var t={};return o.d(t,e),t})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store,withSyncEvent:()=>e.withSyncEvent}),i=e=>e&&e instanceof window.HTMLAnchorElement&&e.href&&(!e.target||"_self"===e.target)&&e.origin===window.location.origin;(0,n.store)("core/query",{actions:{navigate:(0,n.withSyncEvent)((function*(e){const t=(0,n.getContext)(),{ref:r}=(0,n.getElement)(),s=r.closest(".wp-block-query[data-wp-router-region]");if(i(r)&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented))(e)){e.preventDefault();const{actions:n}=yield Promise.resolve().then(o.bind(o,438));yield n.navigate(r.href),t.url=r.href;const i=".wp-block-post-template a[href]";s.querySelector(i)?.focus()}})),*prefetch(){const{ref:e}=(0,n.getElement)();if(i(e)){const{actions:t}=yield Promise.resolve().then(o.bind(o,438));yield t.prefetch(e.href)}}},callbacks:{*prefetch(){const{url:e}=(0,n.getContext)(),{ref:t}=(0,n.getElement)();if(e&&i(t)){const{actions:e}=yield Promise.resolve().then(o.bind(o,438));yield e.prefetch(t.href)}}}},{lock:!0}); block-library/query/view.js 0000644 00000011131 15151136645 0011761 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ var __webpack_modules__ = ({ /***/ 438: /***/ ((module) => { module.exports = import("@wordpress/interactivity-router");; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store), ["withSyncEvent"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.withSyncEvent) }); ;// ./node_modules/@wordpress/block-library/build-module/query/view.js const isValidLink = (ref) => ref && ref instanceof window.HTMLAnchorElement && ref.href && (!ref.target || ref.target === "_self") && ref.origin === window.location.origin; const isValidEvent = (event) => event.button === 0 && // Left clicks only. !event.metaKey && // Open in new tab (Mac). !event.ctrlKey && // Open in new tab (Windows). !event.altKey && // Download. !event.shiftKey && !event.defaultPrevented; (0,interactivity_namespaceObject.store)( "core/query", { actions: { navigate: (0,interactivity_namespaceObject.withSyncEvent)(function* (event) { const ctx = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); const queryRef = ref.closest( ".wp-block-query[data-wp-router-region]" ); if (isValidLink(ref) && isValidEvent(event)) { event.preventDefault(); const { actions } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438)); yield actions.navigate(ref.href); ctx.url = ref.href; const firstAnchor = `.wp-block-post-template a[href]`; queryRef.querySelector(firstAnchor)?.focus(); } }), *prefetch() { const { ref } = (0,interactivity_namespaceObject.getElement)(); if (isValidLink(ref)) { const { actions } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438)); yield actions.prefetch(ref.href); } } }, callbacks: { *prefetch() { const { url } = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); if (url && isValidLink(ref)) { const { actions } = yield Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 438)); yield actions.prefetch(ref.href); } } } }, { lock: true } ); block-library/file/view.min.js 0000644 00000001363 15151136645 0012323 0 ustar 00 import*as e from"@wordpress/interactivity";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const o=(e=>{var o={};return t.d(o,e),o})({store:()=>e.store}),r=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t};(0,o.store)("core/file",{state:{get hasPdfPreview(){return!(!window.navigator.pdfViewerEnabled&&(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!r("AcroPDF.PDF")&&!r("PDF.PdfCtrl")))}}},{lock:!0}); block-library/file/view.js 0000644 00000004546 15151136645 0011547 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store) }); ;// ./node_modules/@wordpress/block-library/build-module/file/utils/index.js const browserSupportsPdfs = () => { if (window.navigator.pdfViewerEnabled) { return true; } if (window.navigator.userAgent.indexOf("Mobi") > -1) { return false; } if (window.navigator.userAgent.indexOf("Android") > -1) { return false; } if (window.navigator.userAgent.indexOf("Macintosh") > -1 && window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2) { return false; } if (!!(window.ActiveXObject || "ActiveXObject" in window) && !(createActiveXObject("AcroPDF.PDF") || createActiveXObject("PDF.PdfCtrl"))) { return false; } return true; }; const createActiveXObject = (type) => { let ax; try { ax = new window.ActiveXObject(type); } catch (e) { ax = void 0; } return ax; }; ;// ./node_modules/@wordpress/block-library/build-module/file/view.js (0,interactivity_namespaceObject.store)( "core/file", { state: { get hasPdfPreview() { return browserSupportsPdfs(); } } }, { lock: true } ); block-library/form/view.min.js 0000644 00000001473 15151136645 0012351 0 ustar 00 let t;try{t=JSON.parse(document.getElementById("wp-script-module-data-@wordpress/block-library/form/view")?.textContent)}catch{}document.querySelectorAll("form.wp-block-form").forEach((function(o){if(!t||!o.action||!o.action.startsWith("mailto:"))return;const e=t=>{const o=new URLSearchParams(window.location.search);o.append("wp-form-result",t),window.location.search=o.toString()};o.addEventListener("submit",(async function(r){r.preventDefault();const n=Object.fromEntries(new FormData(o).entries());n.formAction=o.action,n._ajax_nonce=t.nonce,n.action=t.action,n._wp_http_referer=window.location.href,n.formAction=o.action;try{(await fetch(t.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(n).toString()})).ok?e("success"):e("error")}catch(t){e("error")}}))})); block-library/form/view.js 0000644 00000002624 15151136645 0011566 0 ustar 00 var __webpack_exports__ = {}; let formSettings; try { formSettings = JSON.parse( document.getElementById( "wp-script-module-data-@wordpress/block-library/form/view" )?.textContent ); } catch { } document.querySelectorAll("form.wp-block-form").forEach(function(form) { if (!formSettings || !form.action || !form.action.startsWith("mailto:")) { return; } const redirectNotification = (status) => { const urlParams = new URLSearchParams(window.location.search); urlParams.append("wp-form-result", status); window.location.search = urlParams.toString(); }; form.addEventListener("submit", async function(event) { event.preventDefault(); const formData = Object.fromEntries(new FormData(form).entries()); formData.formAction = form.action; formData._ajax_nonce = formSettings.nonce; formData.action = formSettings.action; formData._wp_http_referer = window.location.href; formData.formAction = form.action; try { const response = await fetch(formSettings.ajaxUrl, { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: new URLSearchParams(formData).toString() }); if (response.ok) { redirectNotification("success"); } else { redirectNotification("error"); } } catch (error) { redirectNotification("error"); } }); }); block-library/search/view.min.js 0000644 00000002611 15151136645 0012646 0 ustar 00 import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store,withSyncEvent:()=>e.withSyncEvent}),{actions:r}=(0,n.store)("core/search",{state:{get ariaLabel(){const{isSearchInputVisible:e,ariaLabelCollapsed:t,ariaLabelExpanded:r}=(0,n.getContext)();return e?r:t},get ariaControls(){const{isSearchInputVisible:e,inputId:t}=(0,n.getContext)();return e?null:t},get type(){const{isSearchInputVisible:e}=(0,n.getContext)();return e?"submit":"button"},get tabindex(){const{isSearchInputVisible:e}=(0,n.getContext)();return e?"0":"-1"}},actions:{openSearchInput:(0,n.withSyncEvent)((e=>{const t=(0,n.getContext)(),{ref:r}=(0,n.getElement)();t.isSearchInputVisible||(e.preventDefault(),t.isSearchInputVisible=!0,r.parentElement.querySelector("input").focus())})),closeSearchInput(){(0,n.getContext)().isSearchInputVisible=!1},handleSearchKeydown:(0,n.withSyncEvent)((e=>{const{ref:t}=(0,n.getElement)();"Escape"===e?.key&&(r.closeSearchInput(),t.querySelector("button").focus())})),handleSearchFocusout:(0,n.withSyncEvent)((e=>{const{ref:t}=(0,n.getElement)();t.contains(e.relatedTarget)||e.target===window.document.activeElement||r.closeSearchInput()}))}},{lock:!0}); block-library/search/view.js 0000644 00000007406 15151136645 0012073 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store), ["withSyncEvent"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.withSyncEvent) }); ;// ./node_modules/@wordpress/block-library/build-module/search/view.js const { actions } = (0,interactivity_namespaceObject.store)( "core/search", { state: { get ariaLabel() { const { isSearchInputVisible, ariaLabelCollapsed, ariaLabelExpanded } = (0,interactivity_namespaceObject.getContext)(); return isSearchInputVisible ? ariaLabelExpanded : ariaLabelCollapsed; }, get ariaControls() { const { isSearchInputVisible, inputId } = (0,interactivity_namespaceObject.getContext)(); return isSearchInputVisible ? null : inputId; }, get type() { const { isSearchInputVisible } = (0,interactivity_namespaceObject.getContext)(); return isSearchInputVisible ? "submit" : "button"; }, get tabindex() { const { isSearchInputVisible } = (0,interactivity_namespaceObject.getContext)(); return isSearchInputVisible ? "0" : "-1"; } }, actions: { openSearchInput: (0,interactivity_namespaceObject.withSyncEvent)((event) => { const ctx = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); if (!ctx.isSearchInputVisible) { event.preventDefault(); ctx.isSearchInputVisible = true; ref.parentElement.querySelector("input").focus(); } }), closeSearchInput() { const ctx = (0,interactivity_namespaceObject.getContext)(); ctx.isSearchInputVisible = false; }, handleSearchKeydown: (0,interactivity_namespaceObject.withSyncEvent)((event) => { const { ref } = (0,interactivity_namespaceObject.getElement)(); if (event?.key === "Escape") { actions.closeSearchInput(); ref.querySelector("button").focus(); } }), handleSearchFocusout: (0,interactivity_namespaceObject.withSyncEvent)((event) => { const { ref } = (0,interactivity_namespaceObject.getElement)(); if (!ref.contains(event.relatedTarget) && event.target !== window.document.activeElement) { actions.closeSearchInput(); } }) } }, { lock: true } ); block-editor/utils/fit-text-frontend.js 0000644 00000011047 15151136645 0014213 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getContext"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getContext), ["getElement"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getElement), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store) }); ;// ./node_modules/@wordpress/block-editor/build-module/utils/fit-text-utils.js function findOptimalFontSize(textElement, applyFontSize) { const alreadyHasScrollableHeight = textElement.scrollHeight > textElement.clientHeight; let minSize = 5; let maxSize = 2400; let bestSize = minSize; const computedStyle = window.getComputedStyle(textElement); let paddingLeft = parseFloat(computedStyle.paddingLeft) || 0; let paddingRight = parseFloat(computedStyle.paddingRight) || 0; const range = document.createRange(); range.selectNodeContents(textElement); let referenceElement = textElement; const parentElement = textElement.parentElement; if (parentElement) { const parentElementComputedStyle = window.getComputedStyle(parentElement); if (parentElementComputedStyle?.display === "flex") { referenceElement = parentElement; paddingLeft += parseFloat(parentElementComputedStyle.paddingLeft) || 0; paddingRight += parseFloat(parentElementComputedStyle.paddingRight) || 0; } } let maxclientHeight = referenceElement.clientHeight; while (minSize <= maxSize) { const midSize = Math.floor((minSize + maxSize) / 2); applyFontSize(midSize); const rect = range.getBoundingClientRect(); const textWidth = rect.width; const fitsWidth = textElement.scrollWidth <= referenceElement.clientWidth && textWidth <= referenceElement.clientWidth - paddingLeft - paddingRight; const fitsHeight = alreadyHasScrollableHeight || textElement.scrollHeight <= referenceElement.clientHeight || textElement.scrollHeight <= maxclientHeight; if (referenceElement.clientHeight > maxclientHeight) { maxclientHeight = referenceElement.clientHeight; } if (fitsWidth && fitsHeight) { bestSize = midSize; minSize = midSize + 1; } else { maxSize = midSize - 1; } } range.detach(); return bestSize; } function optimizeFitText(textElement, applyFontSize) { if (!textElement) { return; } applyFontSize(0); const optimalSize = findOptimalFontSize(textElement, applyFontSize); applyFontSize(optimalSize); return optimalSize; } ;// ./node_modules/@wordpress/block-editor/build-module/utils/fit-text-frontend.js (0,interactivity_namespaceObject.store)("core/fit-text", { callbacks: { init() { const context = (0,interactivity_namespaceObject.getContext)(); const { ref } = (0,interactivity_namespaceObject.getElement)(); const applyFontSize = (fontSize) => { if (fontSize === 0) { ref.style.fontSize = ""; } else { ref.style.fontSize = `${fontSize}px`; } }; context.fontSize = optimizeFitText(ref, applyFontSize); if (window.ResizeObserver && ref.parentElement) { const resizeObserver = new window.ResizeObserver(() => { context.fontSize = optimizeFitText(ref, applyFontSize); }); resizeObserver.observe(ref.parentElement); resizeObserver.observe(ref); return () => { if (resizeObserver) { resizeObserver.disconnect(); } }; } } } }); block-editor/utils/fit-text-frontend.min.js 0000644 00000002602 15151136645 0014772 0 ustar 00 import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store});function o(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let o=5,i=2400,r=o;const l=window.getComputedStyle(e);let c=parseFloat(l.paddingLeft)||0,s=parseFloat(l.paddingRight)||0;const a=document.createRange();a.selectNodeContents(e);let d=e;const g=e.parentElement;if(g){const e=window.getComputedStyle(g);"flex"===e?.display&&(d=g,c+=parseFloat(e.paddingLeft)||0,s+=parseFloat(e.paddingRight)||0)}let p=d.clientHeight;for(;o<=i;){const l=Math.floor((o+i)/2);t(l);const g=a.getBoundingClientRect().width,f=e.scrollWidth<=d.clientWidth&&g<=d.clientWidth-c-s,h=n||e.scrollHeight<=d.clientHeight||e.scrollHeight<=p;d.clientHeight>p&&(p=d.clientHeight),f&&h?(r=l,o=l+1):i=l-1}return a.detach(),r}(e,t);return t(n),n}(0,n.store)("core/fit-text",{callbacks:{init(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),i=e=>{t.style.fontSize=0===e?"":`${e}px`};if(e.fontSize=o(t,i),window.ResizeObserver&&t.parentElement){const n=new window.ResizeObserver((()=>{e.fontSize=o(t,i)}));return n.observe(t.parentElement),n.observe(t),()=>{n&&n.disconnect()}}}}}); interactivity-router/index.js 0000644 00000135113 15151136645 0012440 0 ustar 00 import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity"; /******/ var __webpack_modules__ = ({ /***/ 317: /***/ ((module) => { module.exports = import("@wordpress/a11y");; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // EXPORTS __webpack_require__.d(__webpack_exports__, { o: () => (/* binding */ actions), w: () => (/* binding */ state) }); ;// external "@wordpress/interactivity" var x = (y) => { var x = {}; __webpack_require__.d(x, y); return x } var y = (x) => (() => (x)) const interactivity_namespaceObject = x({ ["getConfig"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.getConfig), ["privateApis"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.privateApis), ["store"]: () => (__WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store) }); ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/scs.js function shortestCommonSupersequence(X, Y, isEqual = (a, b) => a === b) { const m = X.length; const n = Y.length; const dp = Array.from( { length: m + 1 }, () => Array(n + 1).fill(null) ); for (let i = 0; i <= m; i++) { dp[i][0] = X.slice(0, i); } for (let j = 0; j <= n; j++) { dp[0][j] = Y.slice(0, j); } for (let i = 1; i <= m; i++) { for (let j = 1; j <= n; j++) { if (isEqual(X[i - 1], Y[j - 1])) { dp[i][j] = dp[i - 1][j - 1].concat(X[i - 1]); } else { const option1 = dp[i - 1][j].concat(X[i - 1]); const option2 = dp[i][j - 1].concat(Y[j - 1]); dp[i][j] = option1.length <= option2.length ? option1 : option2; } } } return dp[m][n]; } ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/styles.js const areNodesEqual = (a, b) => a.isEqualNode(b); const normalizeMedia = (element) => { element = element.cloneNode(true); const media = element.media; const { originalMedia } = element.dataset; if (media === "preload") { element.media = originalMedia || "all"; element.removeAttribute("data-original-media"); } else if (!element.media) { element.media = "all"; } return element; }; function updateStylesWithSCS(X, Y, parent = window.document.head) { if (X.length === 0) { return Y.map((element) => { const promise = prepareStylePromise(element); parent.appendChild(element); return promise; }); } const xNormalized = X.map(normalizeMedia); const yNormalized = Y.map(normalizeMedia); const scs = shortestCommonSupersequence( xNormalized, yNormalized, areNodesEqual ); const xLength = X.length; const yLength = Y.length; const promises = []; let last = X[xLength - 1]; let xIndex = 0; let yIndex = 0; for (const scsElement of scs) { const xElement = X[xIndex]; const yElement = Y[yIndex]; const xNormEl = xNormalized[xIndex]; const yNormEl = yNormalized[yIndex]; if (xIndex < xLength && areNodesEqual(xNormEl, scsElement)) { if (yIndex < yLength && areNodesEqual(yNormEl, scsElement)) { promises.push(prepareStylePromise(xElement)); yIndex++; } xIndex++; } else { promises.push(prepareStylePromise(yElement)); if (xIndex < xLength) { xElement.before(yElement); } else { last.after(yElement); last = yElement; } yIndex++; } } return promises; } const stylePromiseCache = /* @__PURE__ */ new WeakMap(); const prepareStylePromise = (element) => { if (stylePromiseCache.has(element)) { return stylePromiseCache.get(element); } if (window.document.contains(element) && element.media !== "preload") { const promise2 = Promise.resolve(element); stylePromiseCache.set(element, promise2); return promise2; } if (element.hasAttribute("media") && element.media !== "all") { element.dataset.originalMedia = element.media; } element.media = "preload"; if (element instanceof HTMLStyleElement) { const promise2 = Promise.resolve(element); stylePromiseCache.set(element, promise2); return promise2; } const promise = new Promise((resolve, reject) => { element.addEventListener("load", () => resolve(element)); element.addEventListener("error", (event) => { const { href } = event.target; reject( Error( `The style sheet with the following URL failed to load: ${href}` ) ); }); }); stylePromiseCache.set(element, promise); return promise; }; const styleSheetCache = /* @__PURE__ */ new Map(); const preloadStyles = (doc, url) => { if (!styleSheetCache.has(url)) { const currentStyleElements = Array.from( window.document.querySelectorAll( "style,link[rel=stylesheet]" ) ); const newStyleElements = Array.from( doc.querySelectorAll("style,link[rel=stylesheet]") ); const stylePromises = updateStylesWithSCS( currentStyleElements, newStyleElements ); styleSheetCache.set(url, stylePromises); } return styleSheetCache.get(url); }; const applyStyles = (styles) => { window.document.querySelectorAll("style,link[rel=stylesheet]").forEach((el) => { if (el.sheet) { if (styles.includes(el)) { if (el.sheet.media.mediaText === "preload") { const { originalMedia = "all" } = el.dataset; el.sheet.media.mediaText = originalMedia; } el.sheet.disabled = false; } else { el.sheet.disabled = true; } } }); }; ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/dynamic-importmap/resolver.js const backslashRegEx = /\\/g; function isURL(url) { if (url.indexOf(":") === -1) { return false; } try { new URL(url); return true; } catch (_) { return false; } } function resolveIfNotPlainOrUrl(relUrl, parentUrl) { const hIdx = parentUrl.indexOf("#"), qIdx = parentUrl.indexOf("?"); if (hIdx + qIdx > -2) { parentUrl = parentUrl.slice( 0, // eslint-disable-next-line no-nested-ternary hIdx === -1 ? qIdx : qIdx === -1 || qIdx > hIdx ? hIdx : qIdx ); } if (relUrl.indexOf("\\") !== -1) { relUrl = relUrl.replace(backslashRegEx, "/"); } if (relUrl[0] === "/" && relUrl[1] === "/") { return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl; } else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") { const parentProtocol = parentUrl.slice( 0, parentUrl.indexOf(":") + 1 ); let pathname; if (parentUrl[parentProtocol.length + 1] === "/") { if (parentProtocol !== "file:") { pathname = parentUrl.slice(parentProtocol.length + 2); pathname = pathname.slice(pathname.indexOf("/") + 1); } else { pathname = parentUrl.slice(8); } } else { pathname = parentUrl.slice( parentProtocol.length + (parentUrl[parentProtocol.length] === "/") ); } if (relUrl[0] === "/") { return parentUrl.slice(0, parentUrl.length - pathname.length - 1) + relUrl; } const segmented = pathname.slice(0, pathname.lastIndexOf("/") + 1) + relUrl; const output = []; let segmentIndex = -1; for (let i = 0; i < segmented.length; i++) { if (segmentIndex !== -1) { if (segmented[i] === "/") { output.push(segmented.slice(segmentIndex, i + 1)); segmentIndex = -1; } continue; } else if (segmented[i] === ".") { if (segmented[i + 1] === "." && (segmented[i + 2] === "/" || i + 2 === segmented.length)) { output.pop(); i += 2; continue; } else if (segmented[i + 1] === "/" || i + 1 === segmented.length) { i += 1; continue; } } while (segmented[i] === "/") { i++; } segmentIndex = i; } if (segmentIndex !== -1) { output.push(segmented.slice(segmentIndex)); } return parentUrl.slice(0, parentUrl.length - pathname.length) + output.join(""); } } function resolveUrl(relUrl, parentUrl) { return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (isURL(relUrl) ? relUrl : resolveIfNotPlainOrUrl("./" + relUrl, parentUrl)); } function getMatch(path, matchObj) { if (matchObj[path]) { return path; } let sepIndex = path.length; do { const segment = path.slice(0, sepIndex + 1); if (segment in matchObj) { return segment; } } while ((sepIndex = path.lastIndexOf("/", sepIndex - 1)) !== -1); } function applyPackages(id, packages) { const pkgName = getMatch(id, packages); if (pkgName) { const pkg = packages[pkgName]; if (pkg === null) { return; } return pkg + id.slice(pkgName.length); } } function resolveImportMap(importMap2, resolvedOrPlain, parentUrl) { let scopeUrl = parentUrl && getMatch(parentUrl, importMap2.scopes); while (scopeUrl) { const packageResolution = applyPackages( resolvedOrPlain, importMap2.scopes[scopeUrl] ); if (packageResolution) { return packageResolution; } scopeUrl = getMatch( scopeUrl.slice(0, scopeUrl.lastIndexOf("/")), importMap2.scopes ); } return applyPackages(resolvedOrPlain, importMap2.imports) || resolvedOrPlain.indexOf(":") !== -1 && resolvedOrPlain; } function resolveAndComposePackages(packages, outPackages, baseUrl2, parentMap) { for (const p in packages) { const resolvedLhs = resolveIfNotPlainOrUrl(p, baseUrl2) || p; const target = packages[p]; if (typeof target !== "string") { continue; } const mapped = resolveImportMap( parentMap, resolveIfNotPlainOrUrl(target, baseUrl2) || target, baseUrl2 ); if (mapped) { outPackages[resolvedLhs] = mapped; continue; } } } function resolveAndComposeImportMap(json, baseUrl2, parentMap) { const outMap = { imports: Object.assign({}, parentMap.imports), scopes: Object.assign({}, parentMap.scopes) }; if (json.imports) { resolveAndComposePackages( json.imports, outMap.imports, baseUrl2, parentMap ); } if (json.scopes) { for (const s in json.scopes) { const resolvedScope = resolveUrl(s, baseUrl2); resolveAndComposePackages( json.scopes[s], outMap.scopes[resolvedScope] || (outMap.scopes[resolvedScope] = {}), baseUrl2, parentMap ); } } return outMap; } let importMap = { imports: {}, scopes: {} }; const baseUrl = document.baseURI; const pageBaseUrl = baseUrl; function resolver_addImportMap(importMapIn) { importMap = resolveAndComposeImportMap( importMapIn, pageBaseUrl, importMap ); } function resolve(id, parentUrl) { const urlResolved = resolveIfNotPlainOrUrl(id, parentUrl); return resolveImportMap(importMap, urlResolved || id, parentUrl) || id; } ;// ./node_modules/es-module-lexer/dist/lexer.js /* es-module-lexer 1.7.0 */ var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase",A[A.StaticDeferPhase=6]="StaticDeferPhase",A[A.DynamicDeferPhase=7]="DynamicDeferPhase"}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse(E,g="@"){if(!C)return init.then((()=>parse(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const o=[],D=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let D;C.ip()&&(D=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),o.push({n:D,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g})}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?void 0:E.slice(B,g),o=K?K[0]:"";D.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===o||"'"===o?k(K):K})}function k(A){try{return(0,eval)(A)}catch(A){}}return[o,D,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++)}let C;const E=()=>{return A="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKzkQwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2Aug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2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAoDQJBACECQQBBACgCsAoiAEECajYCsAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC6sBAQR/AkACQEEAKAKwCiICLwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A};const init=WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({exports:A})=>{C=A}));const initSync=()=>{if(C)return;const A=new WebAssembly.Module(E());C=new WebAssembly.Instance(A).exports}; ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/dynamic-importmap/fetch.js const fetching = (url, parent) => { return ` fetching ${url}${parent ? ` from ${parent}` : ""}`; }; const jsContentType = /^(text|application)\/(x-)?javascript(;|$)/; async function fetchModule(url, fetchOpts, parent) { let res; try { res = await fetch(url, fetchOpts); } catch (e) { throw Error(`Network error${fetching(url, parent)}.`); } if (!res.ok) { throw Error(`Error ${res.status}${fetching(url, parent)}.`); } const contentType = res.headers.get("content-type"); if (!jsContentType.test(contentType)) { throw Error( `Bad Content-Type "${contentType}"${fetching(url, parent)}.` ); } return { responseUrl: res.url, source: await res.text() }; } ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/dynamic-importmap/loader.js const initPromise = init; const initialImportMapElement = window.document.querySelector( "script#wp-importmap[type=importmap]" ); const initialImportMap = initialImportMapElement ? JSON.parse(initialImportMapElement.text) : { imports: {}, scopes: {} }; const skip = (id) => Object.keys(initialImportMap.imports).includes(id); const fetchCache = {}; const registry = {}; Object.keys(initialImportMap.imports).forEach((id) => { registry[id] = { blobUrl: id }; }); async function loadAll(load, seen) { if (load.blobUrl || seen[load.url]) { return; } seen[load.url] = 1; await load.linkPromise; await Promise.all(load.deps.map((dep) => loadAll(dep, seen))); } function urlJsString(url) { return `'${url.replace(/'/g, "\\'")}'`; } const createBlob = (source, type = "text/javascript") => URL.createObjectURL(new Blob([source], { type })); function resolveDeps(load, seen) { if (load.blobUrl || !seen[load.url]) { return; } seen[load.url] = 0; for (const dep of load.deps) { resolveDeps(dep, seen); } const [imports, exports] = load.analysis; const source = load.source; let resolvedSource = ""; if (!imports.length) { resolvedSource += source; } else { let pushStringTo = function(originalIndex) { while (dynamicImportEndStack.length && dynamicImportEndStack[dynamicImportEndStack.length - 1] < originalIndex) { const dynamicImportEnd = dynamicImportEndStack.pop(); resolvedSource += `${source.slice( lastIndex, dynamicImportEnd )}, ${urlJsString(load.responseUrl)}`; lastIndex = dynamicImportEnd; } resolvedSource += source.slice(lastIndex, originalIndex); lastIndex = originalIndex; }; let lastIndex = 0; let depIndex = 0; const dynamicImportEndStack = []; for (const { s: start, ss: statementStart, se: statementEnd, d: dynamicImportIndex } of imports) { if (dynamicImportIndex === -1) { const depLoad = load.deps[depIndex++]; let blobUrl = depLoad.blobUrl; const cycleShell = !blobUrl; if (cycleShell) { if (!(blobUrl = depLoad.shellUrl)) { blobUrl = depLoad.shellUrl = createBlob( `export function u$_(m){${depLoad.analysis[1].map(({ s, e }, i) => { const q = depLoad.source[s] === '"' || depLoad.source[s] === "'"; return `e$_${i}=m${q ? `[` : "."}${depLoad.source.slice(s, e)}${q ? `]` : ""}`; }).join(",")}}${depLoad.analysis[1].length ? `let ${depLoad.analysis[1].map((_, i) => `e$_${i}`).join(",")};` : ""}export {${depLoad.analysis[1].map( ({ s, e }, i) => `e$_${i} as ${depLoad.source.slice( s, e )}` ).join(",")}} //# sourceURL=${depLoad.responseUrl}?cycle` ); } } pushStringTo(start - 1); resolvedSource += `/*${source.slice( start - 1, statementEnd )}*/${urlJsString(blobUrl)}`; if (!cycleShell && depLoad.shellUrl) { resolvedSource += `;import*as m$_${depIndex} from'${depLoad.blobUrl}';import{u$_ as u$_${depIndex}}from'${depLoad.shellUrl}';u$_${depIndex}(m$_${depIndex})`; depLoad.shellUrl = void 0; } lastIndex = statementEnd; } else if (dynamicImportIndex === -2) { throw Error("The import.meta property is not supported."); } else { pushStringTo(statementStart); resolvedSource += `wpInteractivityRouterImport(`; dynamicImportEndStack.push(statementEnd - 1); lastIndex = start; } } if (load.shellUrl) { resolvedSource += ` ;import{u$_}from'${load.shellUrl}';try{u$_({${exports.filter((e) => e.ln).map(({ s, e, ln }) => `${source.slice(s, e)}:${ln}`).join(",")}})}catch(_){}; `; } pushStringTo(source.length); } let hasSourceURL = false; resolvedSource = resolvedSource.replace( sourceMapURLRegEx, (match, isMapping, url) => { hasSourceURL = !isMapping; return match.replace( url, () => new URL(url, load.responseUrl).toString() ); } ); if (!hasSourceURL) { resolvedSource += "\n//# sourceURL=" + load.responseUrl; } load.blobUrl = createBlob(resolvedSource); load.source = void 0; } const sourceMapURLRegEx = /\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/; function getOrCreateLoad(url, fetchOpts, parent) { let load = registry[url]; if (load) { return load; } load = { url }; if (registry[url]) { let i = 0; while (registry[load.url + ++i]) { } load.url += i; } registry[load.url] = load; load.fetchPromise = (async () => { let source; ({ responseUrl: load.responseUrl, source } = await (fetchCache[url] || fetchModule(url, fetchOpts, parent))); try { load.analysis = parse(source, load.url); } catch (e) { console.error(e); load.analysis = [[], [], false, false]; } load.source = source; return load; })(); load.linkPromise = load.fetchPromise.then(async () => { let childFetchOpts = fetchOpts; load.deps = (await Promise.all( load.analysis[0].map(async ({ n, d }) => { if (d !== -1 || !n) { return void 0; } const responseUrl = resolve( n, load.responseUrl || load.url ); if (skip && skip(responseUrl)) { return { blobUrl: responseUrl }; } if (childFetchOpts.integrity) { childFetchOpts = { ...childFetchOpts, integrity: void 0 }; } return getOrCreateLoad( responseUrl, childFetchOpts, load.responseUrl ).fetchPromise; }) )).filter((l) => l); }); return load; } const dynamicImport = (u) => import( /* webpackIgnore: true */ u ); async function preloadModule(url, fetchOpts) { await initPromise; const load = getOrCreateLoad(url, fetchOpts, null); const seen = {}; await loadAll(load, seen); resolveDeps(load, seen); await Promise.resolve(); return load; } async function importPreloadedModule(load) { const module = await dynamicImport(load.blobUrl); if (load.shellUrl) { (await dynamicImport(load.shellUrl)).u$_(module); } return module; } async function topLevelLoad(url, fetchOpts) { const load = await preloadModule(url, fetchOpts); return importPreloadedModule(load); } ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/dynamic-importmap/index.js const dynamic_importmap_baseUrl = document.baseURI; const dynamic_importmap_pageBaseUrl = dynamic_importmap_baseUrl; Object.defineProperty(self, "wpInteractivityRouterImport", { value: importShim, writable: false, enumerable: false, configurable: false }); async function importShim(id) { await initPromise; return topLevelLoad(resolve(id, dynamic_importmap_pageBaseUrl), { credentials: "same-origin" }); } async function importWithMap(id, importMapIn) { addImportMap(importMapIn); return importShim(id); } async function preloadWithMap(id, importMapIn) { resolver_addImportMap(importMapIn); await initPromise; return preloadModule(resolve(id, dynamic_importmap_pageBaseUrl), { credentials: "same-origin" }); } ;// ./node_modules/@wordpress/interactivity-router/build-module/assets/script-modules.js const resolvedScriptModules = /* @__PURE__ */ new Set(); const markScriptModuleAsResolved = (url) => { resolvedScriptModules.add(url); }; const preloadScriptModules = (doc) => { const importMapElement = doc.querySelector( "script#wp-importmap[type=importmap]" ); const importMap = importMapElement ? JSON.parse(importMapElement.text) : { imports: {}, scopes: {} }; for (const key in initialImportMap.imports) { delete importMap.imports[key]; } const moduleUrls = [ ...doc.querySelectorAll( "script[type=module][src][data-wp-router-options]" ) ].filter((script) => { try { const parsed = JSON.parse( script.getAttribute("data-wp-router-options") ); return parsed?.loadOnClientNavigation === true; } catch { return false; } }).map((script) => script.src); return moduleUrls.filter((url) => !resolvedScriptModules.has(url)).map((url) => preloadWithMap(url, importMap)); }; const importScriptModules = (modules) => Promise.all(modules.map((m) => importPreloadedModule(m))); ;// ./node_modules/@wordpress/interactivity-router/build-module/index.js const { getRegionRootFragment, initialVdom, toVdom, render, parseServerData, populateServerData, batch, routerRegions, h: createElement, navigationSignal } = (0,interactivity_namespaceObject.privateApis)( "I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress." ); const regionAttr = `data-wp-router-region`; const interactiveAttr = `data-wp-interactive`; const regionsSelector = `[${interactiveAttr}][${regionAttr}], [${interactiveAttr}] [${interactiveAttr}][${regionAttr}]`; const pages = /* @__PURE__ */ new Map(); const getPagePath = (url) => { const u = new URL(url, window.location.href); return u.pathname + u.search; }; const parseRegionAttribute = (region) => { const value = region.getAttribute(regionAttr); try { const { id, attachTo } = JSON.parse(value); return { id, attachTo }; } catch (e) { return { id: value }; } }; const cloneRouterRegionContent = (vdom) => { if (!vdom) { return vdom; } const allPriorityLevels = vdom.props.priorityLevels; const routerRegionLevel = allPriorityLevels.findIndex( (level) => level.includes("router-region") ); const priorityLevels = routerRegionLevel !== -1 ? allPriorityLevels.slice(routerRegionLevel + 1) : allPriorityLevels; return priorityLevels.length > 0 ? createElement(vdom.type, { ...vdom.props, priorityLevels }) : vdom.props.element; }; const regionsToAttachByParent = /* @__PURE__ */ new WeakMap(); const rootFragmentsByParent = /* @__PURE__ */ new WeakMap(); const initialRegionsToAttach = /* @__PURE__ */ new Set(); const fetchPage = async (url, { html }) => { try { if (!html) { const res = await window.fetch(url); if (res.status !== 200) { return false; } html = await res.text(); } const dom = new window.DOMParser().parseFromString(html, "text/html"); return await preparePage(url, dom); } catch (e) { return false; } }; const preparePage = async (url, dom, { vdom } = {}) => { dom.querySelectorAll("noscript").forEach((el) => el.remove()); const regions = {}; const regionsToAttach = {}; dom.querySelectorAll(regionsSelector).forEach((region) => { const { id, attachTo } = parseRegionAttribute(region); if (region.parentElement.closest(`[${regionAttr}]`)) { regions[id] = void 0; } else { regions[id] = vdom?.has(region) ? vdom.get(region) : toVdom(region); } if (attachTo && !initialRegionsToAttach.has(id)) { regionsToAttach[id] = attachTo; } }); const title = dom.querySelector("title")?.innerText; const initialData = parseServerData(dom); const [styles, scriptModules] = await Promise.all([ Promise.all(preloadStyles(dom, url)), Promise.all(preloadScriptModules(dom)) ]); return { regions, regionsToAttach, styles, scriptModules, title, initialData, url }; }; const renderPage = (page) => { applyStyles(page.styles); const regionsToAttach = { ...page.regionsToAttach }; batch(() => { populateServerData(page.initialData); navigationSignal.value += 1; routerRegions.forEach((signal) => { signal.value = null; }); const parentsToUpdate = /* @__PURE__ */ new Set(); for (const id in regionsToAttach) { const parent = document.querySelector(regionsToAttach[id]); if (!regionsToAttachByParent.has(parent)) { regionsToAttachByParent.set(parent, []); } const regions = regionsToAttachByParent.get(parent); if (!regions.includes(id)) { regions.push(id); parentsToUpdate.add(parent); } } for (const id in page.regions) { if (routerRegions.has(id)) { routerRegions.get(id).value = cloneRouterRegionContent( page.regions[id] ); } } parentsToUpdate.forEach((parent) => { const ids = regionsToAttachByParent.get(parent); const vdoms = ids.map((id) => page.regions[id]); if (!rootFragmentsByParent.has(parent)) { const regions = vdoms.map(({ props, type }) => { const elementType = typeof type === "function" ? props.type : type; const region = document.createElement(elementType); parent.appendChild(region); return region; }); rootFragmentsByParent.set( parent, getRegionRootFragment(regions) ); } const fragment = rootFragmentsByParent.get(parent); render(vdoms, fragment); }); }); if (page.title) { document.title = page.title; } }; const forcePageReload = (href) => { window.location.assign(href); return new Promise(() => { }); }; window.addEventListener("popstate", async () => { const pagePath = getPagePath(window.location.href); const page = pages.has(pagePath) && await pages.get(pagePath); if (page) { batch(() => { state.url = window.location.href; renderPage(page); }); } else { window.location.reload(); } }); document.querySelectorAll(regionsSelector).forEach((region) => { const { id, attachTo } = parseRegionAttribute(region); if (attachTo) { initialRegionsToAttach.add(id); } }); window.document.querySelectorAll("script[type=module][src]").forEach(({ src }) => markScriptModuleAsResolved(src)); pages.set( getPagePath(window.location.href), Promise.resolve( preparePage(getPagePath(window.location.href), document, { vdom: initialVdom }) ) ); let navigatingTo = ""; let hasLoadedNavigationTextsData = false; const navigationTexts = { loading: "Loading page, please wait.", loaded: "Page Loaded." }; const { state, actions } = (0,interactivity_namespaceObject.store)("core/router", { state: { url: window.location.href, navigation: { hasStarted: false, hasFinished: false } }, actions: { /** * Navigates to the specified page. * * This function normalizes the passed href, fetches the page HTML if * needed, and updates any interactive regions whose contents have * changed. It also creates a new entry in the browser session history. * * @param href The page href. * @param [options] Options object. * @param [options.force] If true, it forces re-fetching the URL. * @param [options.html] HTML string to be used instead of fetching the requested URL. * @param [options.replace] If true, it replaces the current entry in the browser session history. * @param [options.timeout] Time until the navigation is aborted, in milliseconds. Default is 10000. * @param [options.loadingAnimation] Whether an animation should be shown while navigating. Default to `true`. * @param [options.screenReaderAnnouncement] Whether a message for screen readers should be announced while navigating. Default to `true`. * * @return Promise that resolves once the navigation is completed or aborted. */ *navigate(href, options = {}) { const { clientNavigationDisabled } = (0,interactivity_namespaceObject.getConfig)(); if (clientNavigationDisabled) { yield forcePageReload(href); } const pagePath = getPagePath(href); const { navigation } = state; const { loadingAnimation = true, screenReaderAnnouncement = true, timeout = 1e4 } = options; navigatingTo = href; actions.prefetch(pagePath, options); const timeoutPromise = new Promise( (resolve) => setTimeout(resolve, timeout) ); const loadingTimeout = setTimeout(() => { if (navigatingTo !== href) { return; } if (loadingAnimation) { navigation.hasStarted = true; navigation.hasFinished = false; } if (screenReaderAnnouncement) { a11ySpeak("loading"); } }, 400); const page = yield Promise.race([ pages.get(pagePath), timeoutPromise ]); clearTimeout(loadingTimeout); if (navigatingTo !== href) { return; } if (page && !page.initialData?.config?.["core/router"]?.clientNavigationDisabled) { yield importScriptModules(page.scriptModules); batch(() => { state.url = href; if (loadingAnimation) { navigation.hasStarted = false; navigation.hasFinished = true; } renderPage(page); }); window.history[options.replace ? "replaceState" : "pushState"]({}, "", href); if (screenReaderAnnouncement) { a11ySpeak("loaded"); } const { hash } = new URL(href, window.location.href); if (hash) { document.querySelector(hash)?.scrollIntoView(); } } else { yield forcePageReload(href); } }, /** * Prefetches the page with the passed URL. * * The function normalizes the URL and stores internally the fetch * promise, to avoid triggering a second fetch for an ongoing request. * * @param url The page URL. * @param [options] Options object. * @param [options.force] Force fetching the URL again. * @param [options.html] HTML string to be used instead of fetching the requested URL. * * @return Promise that resolves once the page has been fetched. */ *prefetch(url, options = {}) { const { clientNavigationDisabled } = (0,interactivity_namespaceObject.getConfig)(); if (clientNavigationDisabled) { return; } const pagePath = getPagePath(url); if (options.force || !pages.has(pagePath)) { pages.set( pagePath, fetchPage(pagePath, { html: options.html }) ); } yield pages.get(pagePath); } } }); function a11ySpeak(messageKey) { if (!hasLoadedNavigationTextsData) { hasLoadedNavigationTextsData = true; const content = document.getElementById( "wp-script-module-data-@wordpress/interactivity-router" )?.textContent; if (content) { try { const parsed = JSON.parse(content); if (typeof parsed?.i18n?.loading === "string") { navigationTexts.loading = parsed.i18n.loading; } if (typeof parsed?.i18n?.loaded === "string") { navigationTexts.loaded = parsed.i18n.loaded; } } catch { } } else { if (state.navigation.texts?.loading) { navigationTexts.loading = state.navigation.texts.loading; } if (state.navigation.texts?.loaded) { navigationTexts.loaded = state.navigation.texts.loaded; } } } const message = navigationTexts[messageKey]; Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 317)).then( ({ speak }) => speak(message), // Ignore failures to load the a11y module. () => { } ); } var __webpack_exports__actions = __webpack_exports__.o; var __webpack_exports__state = __webpack_exports__.w; export { __webpack_exports__actions as actions, __webpack_exports__state as state }; interactivity-router/index.min.js 0000644 00000064565 15151136645 0013236 0 ustar 00 import*as A from"@wordpress/interactivity";var Q={317:A=>{A.exports=import("@wordpress/a11y")}},e={};function B(A){var C=e[A];if(void 0!==C)return C.exports;var E=e[A]={exports:{}};return Q[A](E,E.exports,B),E.exports}B.d=(A,Q)=>{for(var e in Q)B.o(Q,e)&&!B.o(A,e)&&Object.defineProperty(A,e,{enumerable:!0,get:Q[e]})},B.o=(A,Q)=>Object.prototype.hasOwnProperty.call(A,Q);var C={};B.d(C,{o:()=>JA,w:()=>uA});const E=(A=>{var Q={};return B.d(Q,A),Q})({getConfig:()=>A.getConfig,privateApis:()=>A.privateApis,store:()=>A.store});const t=(A,Q)=>A.isEqualNode(Q),o=A=>{const Q=(A=A.cloneNode(!0)).media,{originalMedia:e}=A.dataset;return"preload"===Q?(A.media=e||"all",A.removeAttribute("data-original-media")):A.media||(A.media="all"),A};function g(A,Q,e=window.document.head){if(0===A.length)return Q.map((A=>{const Q=s(A);return e.appendChild(A),Q}));const B=A.map(o),C=Q.map(o),E=function(A,Q,e=(A,Q)=>A===Q){const B=A.length,C=Q.length,E=Array.from({length:B+1},(()=>Array(C+1).fill(null)));for(let Q=0;Q<=B;Q++)E[Q][0]=A.slice(0,Q);for(let A=0;A<=C;A++)E[0][A]=Q.slice(0,A);for(let t=1;t<=B;t++)for(let B=1;B<=C;B++)if(e(A[t-1],Q[B-1]))E[t][B]=E[t-1][B-1].concat(A[t-1]);else{const e=E[t-1][B].concat(A[t-1]),C=E[t][B-1].concat(Q[B-1]);E[t][B]=e.length<=C.length?e:C}return E[B][C]}(B,C,t),g=A.length,r=Q.length,i=[];let n=A[g-1],a=0,I=0;for(const e of E){const E=A[a],o=Q[I],c=B[a],w=C[I];a<g&&t(c,e)?(I<r&&t(w,e)&&(i.push(s(E)),I++),a++):(i.push(s(o)),a<g?E.before(o):(n.after(o),n=o),I++)}return i}const r=new WeakMap,s=A=>{if(r.has(A))return r.get(A);if(window.document.contains(A)&&"preload"!==A.media){const Q=Promise.resolve(A);return r.set(A,Q),Q}if(A.hasAttribute("media")&&"all"!==A.media&&(A.dataset.originalMedia=A.media),A.media="preload",A instanceof HTMLStyleElement){const Q=Promise.resolve(A);return r.set(A,Q),Q}const Q=new Promise(((Q,e)=>{A.addEventListener("load",(()=>Q(A))),A.addEventListener("error",(A=>{const{href:Q}=A.target;e(Error(`The style sheet with the following URL failed to load: ${Q}`))}))}));return r.set(A,Q),Q},i=new Map,n=(A,Q)=>{if(!i.has(Q)){const e=g(Array.from(window.document.querySelectorAll("style,link[rel=stylesheet]")),Array.from(A.querySelectorAll("style,link[rel=stylesheet]")));i.set(Q,e)}return i.get(Q)},a=/\\/g;function I(A,Q){const e=Q.indexOf("#"),B=Q.indexOf("?");if(e+B>-2&&(Q=Q.slice(0,-1===e?B:-1===B||B>e?e:B)),-1!==A.indexOf("\\")&&(A=A.replace(a,"/")),"/"===A[0]&&"/"===A[1])return Q.slice(0,Q.indexOf(":")+1)+A;if("."===A[0]&&("/"===A[1]||"."===A[1]&&("/"===A[2]||2===A.length&&(A+="/"))||1===A.length&&(A+="/"))||"/"===A[0]){const e=Q.slice(0,Q.indexOf(":")+1);let B;if("/"===Q[e.length+1]?"file:"!==e?(B=Q.slice(e.length+2),B=B.slice(B.indexOf("/")+1)):B=Q.slice(8):B=Q.slice(e.length+("/"===Q[e.length])),"/"===A[0])return Q.slice(0,Q.length-B.length-1)+A;const C=B.slice(0,B.lastIndexOf("/")+1)+A,E=[];let t=-1;for(let A=0;A<C.length;A++)if(-1===t){if("."===C[A]){if("."===C[A+1]&&("/"===C[A+2]||A+2===C.length)){E.pop(),A+=2;continue}if("/"===C[A+1]||A+1===C.length){A+=1;continue}}for(;"/"===C[A];)A++;t=A}else"/"===C[A]&&(E.push(C.slice(t,A+1)),t=-1);return-1!==t&&E.push(C.slice(t)),Q.slice(0,Q.length-B.length)+E.join("")}}function c(A,Q){return I(A,Q)||(function(A){if(-1===A.indexOf(":"))return!1;try{return new URL(A),!0}catch(A){return!1}}(A)?A:I("./"+A,Q))}function w(A,Q){if(Q[A])return A;let e=A.length;do{const B=A.slice(0,e+1);if(B in Q)return B}while(-1!==(e=A.lastIndexOf("/",e-1)))}function l(A,Q){const e=w(A,Q);if(e){const B=Q[e];if(null===B)return;return B+A.slice(e.length)}}function K(A,Q,e){let B=e&&w(e,A.scopes);for(;B;){const e=l(Q,A.scopes[B]);if(e)return e;B=w(B.slice(0,B.lastIndexOf("/")),A.scopes)}return l(Q,A.imports)||-1!==Q.indexOf(":")&&Q}function p(A,Q,e,B){for(const C in A){const E=I(C,e)||C,t=A[C];if("string"!=typeof t)continue;const o=K(B,I(t,e)||t,e);o&&(Q[E]=o)}}let D={imports:{},scopes:{}};const k=document.baseURI;function h(A){D=function(A,Q,e){const B={imports:Object.assign({},e.imports),scopes:Object.assign({},e.scopes)};if(A.imports&&p(A.imports,B.imports,Q,e),A.scopes)for(const C in A.scopes){const E=c(C,Q);p(A.scopes[C],B.scopes[E]||(B.scopes[E]={}),Q,e)}return B}(A,k,D)}function d(A,Q){const e=I(A,Q);return K(D,e||A,Q)||A}var f;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase",A[A.StaticDeferPhase=6]="StaticDeferPhase",A[A.DynamicDeferPhase=7]="DynamicDeferPhase"}(f||(f={}));const u=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function J(A,Q="@"){if(!L)return U.then((()=>J(A)));const e=A.length+1,B=(L.__heap_base.value||L.__heap_base)+4*e-L.memory.buffer.byteLength;B>0&&L.memory.grow(Math.ceil(B/65536));const C=L.sa(e-1);if((u?N:m)(A,new Uint16Array(L.memory.buffer,C,e)),!L.parse())throw Object.assign(new Error(`Parse error ${Q}:${A.slice(0,L.e()).split("\n").length}:${L.e()-A.lastIndexOf("\n",L.e()-1)}`),{idx:L.e()});const E=[],t=[];for(;L.ri();){const Q=L.is(),e=L.ie(),B=L.it(),C=L.ai(),t=L.id(),g=L.ss(),r=L.se();let s;L.ip()&&(s=o(A.slice(-1===t?Q-1:Q,-1===t?e+1:e))),E.push({n:s,t:B,s:Q,e,ss:g,se:r,d:t,a:C})}for(;L.re();){const Q=L.es(),e=L.ee(),B=L.els(),C=L.ele(),E=A.slice(Q,e),g=E[0],r=B<0?void 0:A.slice(B,C),s=r?r[0]:"";t.push({s:Q,e,ls:B,le:C,n:'"'===g||"'"===g?o(E):E,ln:'"'===s||"'"===s?o(r):r})}function o(A){try{return(0,eval)(A)}catch(A){}}return[E,t,!!L.f(),!!L.ms()]}function m(A,Q){const e=A.length;let B=0;for(;B<e;){const e=A.charCodeAt(B);Q[B++]=(255&e)<<8|e>>>8}}function N(A,Q){const e=A.length;let B=0;for(;B<e;)Q[B]=A.charCodeAt(B++)}let L;const y=()=>{return A="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZ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QAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A},U=WebAssembly.compile(y()).then(WebAssembly.instantiate).then((({exports:A})=>{L=A})),S=(A,Q)=>` fetching ${A}${Q?` from ${Q}`:""}`,R=/^(text|application)\/(x-)?javascript(;|$)/;const F=U,G=window.document.querySelector("script#wp-importmap[type=importmap]"),Y=G?JSON.parse(G.text):{imports:{},scopes:{}},v=A=>Object.keys(Y.imports).includes(A),M={},q={};async function H(A,Q){A.blobUrl||Q[A.url]||(Q[A.url]=1,await A.linkPromise,await Promise.all(A.deps.map((A=>H(A,Q)))))}function b(A){return`'${A.replace(/'/g,"\\'")}'`}Object.keys(Y.imports).forEach((A=>{q[A]={blobUrl:A}}));const x=(A,Q="text/javascript")=>URL.createObjectURL(new Blob([A],{type:Q}));function P(A,Q){if(A.blobUrl||!Q[A.url])return;Q[A.url]=0;for(const e of A.deps)P(e,Q);const[e,B]=A.analysis,C=A.source;let E="";if(e.length){let Q=function(Q){for(;g.length&&g[g.length-1]<Q;){const Q=g.pop();E+=`${C.slice(t,Q)}, ${b(A.responseUrl)}`,t=Q}E+=C.slice(t,Q),t=Q},t=0,o=0;const g=[];for(const{s:B,ss:r,se:s,d:i}of e)if(-1===i){const e=A.deps[o++];let g=e.blobUrl;const r=!g;r&&((g=e.shellUrl)||(g=e.shellUrl=x(`export function u$_(m){${e.analysis[1].map((({s:A,e:Q},B)=>{const C='"'===e.source[A]||"'"===e.source[A];return`e$_${B}=m${C?"[":"."}${e.source.slice(A,Q)}${C?"]":""}`})).join(",")}}${e.analysis[1].length?`let ${e.analysis[1].map(((A,Q)=>`e$_${Q}`)).join(",")};`:""}export {${e.analysis[1].map((({s:A,e:Q},B)=>`e$_${B} as ${e.source.slice(A,Q)}`)).join(",")}}\n//# sourceURL=${e.responseUrl}?cycle`))),Q(B-1),E+=`/*${C.slice(B-1,s)}*/${b(g)}`,!r&&e.shellUrl&&(E+=`;import*as m$_${o} from'${e.blobUrl}';import{u$_ as u$_${o}}from'${e.shellUrl}';u$_${o}(m$_${o})`,e.shellUrl=void 0),t=s}else{if(-2===i)throw Error("The import.meta property is not supported.");Q(r),E+="wpInteractivityRouterImport(",g.push(s-1),t=B}A.shellUrl&&(E+=`\n;import{u$_}from'${A.shellUrl}';try{u$_({${B.filter((A=>A.ln)).map((({s:A,e:Q,ln:e})=>`${C.slice(A,Q)}:${e}`)).join(",")}})}catch(_){};\n`),Q(C.length)}else E+=C;let t=!1;E=E.replace(X,((Q,e,B)=>(t=!e,Q.replace(B,(()=>new URL(B,A.responseUrl).toString()))))),t||(E+="\n//# sourceURL="+A.responseUrl),A.blobUrl=x(E),A.source=void 0}const X=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;function $(A,Q,e){let B=q[A];if(B)return B;if(B={url:A},q[A]){let A=0;for(;q[B.url+ ++A];);B.url+=A}return q[B.url]=B,B.fetchPromise=(async()=>{let C;({responseUrl:B.responseUrl,source:C}=await(M[A]||async function(A,Q,e){let B;try{B=await fetch(A,Q)}catch(Q){throw Error(`Network error${S(A,e)}.`)}if(!B.ok)throw Error(`Error ${B.status}${S(A,e)}.`);const C=B.headers.get("content-type");if(!R.test(C))throw Error(`Bad Content-Type "${C}"${S(A,e)}.`);return{responseUrl:B.url,source:await B.text()}}(A,Q,e)));try{B.analysis=J(C,B.url)}catch(A){console.error(A),B.analysis=[[],[],!1,!1]}return B.source=C,B})(),B.linkPromise=B.fetchPromise.then((async()=>{let A=Q;B.deps=(await Promise.all(B.analysis[0].map((async({n:Q,d:e})=>{if(-1!==e||!Q)return;const C=d(Q,B.responseUrl||B.url);return v&&v(C)?{blobUrl:C}:(A.integrity&&(A={...A,integrity:void 0}),$(C,A,B.responseUrl).fetchPromise)})))).filter((A=>A))})),B}const O=A=>import(A);async function j(A,Q){await F;const e=$(A,Q,null),B={};return await H(e,B),P(e,B),await Promise.resolve(),e}async function Z(A){const Q=await O(A.blobUrl);return A.shellUrl&&(await O(A.shellUrl)).u$_(Q),Q}const V=document.baseURI;async function T(A){return await F,async function(A,Q){return Z(await j(A,Q))}(d(A,V),{credentials:"same-origin"})}Object.defineProperty(self,"wpInteractivityRouterImport",{value:T,writable:!1,enumerable:!1,configurable:!1});const W=new Set,_=A=>{const Q=A.querySelector("script#wp-importmap[type=importmap]"),e=Q?JSON.parse(Q.text):{imports:{},scopes:{}};for(const A in Y.imports)delete e.imports[A];return[...A.querySelectorAll("script[type=module][src][data-wp-router-options]")].filter((A=>{try{const Q=JSON.parse(A.getAttribute("data-wp-router-options"));return!0===Q?.loadOnClientNavigation}catch{return!1}})).map((A=>A.src)).filter((A=>!W.has(A))).map((A=>async function(A,Q){return h(Q),await F,j(d(A,V),{credentials:"same-origin"})}(A,e)))},{getRegionRootFragment:z,initialVdom:AA,toVdom:QA,render:eA,parseServerData:BA,populateServerData:CA,batch:EA,routerRegions:tA,h:oA,navigationSignal:gA}=(0,E.privateApis)("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."),rA="data-wp-router-region",sA="data-wp-interactive",iA=`[${sA}][${rA}], [${sA}] [${sA}][${rA}]`,nA=new Map,aA=A=>{const Q=new URL(A,window.location.href);return Q.pathname+Q.search},IA=A=>{const Q=A.getAttribute(rA);try{const{id:A,attachTo:e}=JSON.parse(Q);return{id:A,attachTo:e}}catch(A){return{id:Q}}},cA=A=>{if(!A)return A;const Q=A.props.priorityLevels,e=Q.findIndex((A=>A.includes("router-region"))),B=-1!==e?Q.slice(e+1):Q;return B.length>0?oA(A.type,{...A.props,priorityLevels:B}):A.props.element},wA=new WeakMap,lA=new WeakMap,KA=new Set,pA=async(A,Q,{vdom:e}={})=>{Q.querySelectorAll("noscript").forEach((A=>A.remove()));const B={},C={};Q.querySelectorAll(iA).forEach((A=>{const{id:Q,attachTo:E}=IA(A);A.parentElement.closest(`[${rA}]`)?B[Q]=void 0:B[Q]=e?.has(A)?e.get(A):QA(A),E&&!KA.has(Q)&&(C[Q]=E)}));const E=Q.querySelector("title")?.innerText,t=BA(Q),[o,g]=await Promise.all([Promise.all(n(Q,A)),Promise.all(_(Q))]);return{regions:B,regionsToAttach:C,styles:o,scriptModules:g,title:E,initialData:t,url:A}},DA=A=>{var Q;Q=A.styles,window.document.querySelectorAll("style,link[rel=stylesheet]").forEach((A=>{if(A.sheet)if(Q.includes(A)){if("preload"===A.sheet.media.mediaText){const{originalMedia:Q="all"}=A.dataset;A.sheet.media.mediaText=Q}A.sheet.disabled=!1}else A.sheet.disabled=!0}));const e={...A.regionsToAttach};EA((()=>{CA(A.initialData),gA.value+=1,tA.forEach((A=>{A.value=null}));const Q=new Set;for(const A in e){const B=document.querySelector(e[A]);wA.has(B)||wA.set(B,[]);const C=wA.get(B);C.includes(A)||(C.push(A),Q.add(B))}for(const Q in A.regions)tA.has(Q)&&(tA.get(Q).value=cA(A.regions[Q]));Q.forEach((Q=>{const e=wA.get(Q).map((Q=>A.regions[Q]));if(!lA.has(Q)){const A=e.map((({props:A,type:e})=>{const B="function"==typeof e?A.type:e,C=document.createElement(B);return Q.appendChild(C),C}));lA.set(Q,z(A))}const B=lA.get(Q);eA(e,B)}))})),A.title&&(document.title=A.title)},kA=A=>(window.location.assign(A),new Promise((()=>{})));window.addEventListener("popstate",(async()=>{const A=aA(window.location.href),Q=nA.has(A)&&await nA.get(A);Q?EA((()=>{uA.url=window.location.href,DA(Q)})):window.location.reload()})),document.querySelectorAll(iA).forEach((A=>{const{id:Q,attachTo:e}=IA(A);e&&KA.add(Q)})),window.document.querySelectorAll("script[type=module][src]").forEach((({src:A})=>{return Q=A,void W.add(Q);var Q})),nA.set(aA(window.location.href),Promise.resolve(pA(aA(window.location.href),document,{vdom:AA})));let hA="",dA=!1;const fA={loading:"Loading page, please wait.",loaded:"Page Loaded."},{state:uA,actions:JA}=(0,E.store)("core/router",{state:{url:window.location.href,navigation:{hasStarted:!1,hasFinished:!1}},actions:{*navigate(A,Q={}){const{clientNavigationDisabled:e}=(0,E.getConfig)();e&&(yield kA(A));const B=aA(A),{navigation:C}=uA,{loadingAnimation:t=!0,screenReaderAnnouncement:o=!0,timeout:g=1e4}=Q;hA=A,JA.prefetch(B,Q);const r=new Promise((A=>setTimeout(A,g))),s=setTimeout((()=>{hA===A&&(t&&(C.hasStarted=!0,C.hasFinished=!1),o&&mA("loading"))}),400),i=yield Promise.race([nA.get(B),r]);var n;if(clearTimeout(s),hA===A)if(i&&!i.initialData?.config?.["core/router"]?.clientNavigationDisabled){yield(n=i.scriptModules,Promise.all(n.map((A=>Z(A))))),EA((()=>{uA.url=A,t&&(C.hasStarted=!1,C.hasFinished=!0),DA(i)})),window.history[Q.replace?"replaceState":"pushState"]({},"",A),o&&mA("loaded");const{hash:e}=new URL(A,window.location.href);e&&document.querySelector(e)?.scrollIntoView()}else yield kA(A)},*prefetch(A,Q={}){const{clientNavigationDisabled:e}=(0,E.getConfig)();if(e)return;const B=aA(A);!Q.force&&nA.has(B)||nA.set(B,(async(A,{html:Q})=>{try{if(!Q){const e=await window.fetch(A);if(200!==e.status)return!1;Q=await e.text()}const e=(new window.DOMParser).parseFromString(Q,"text/html");return await pA(A,e)}catch(A){return!1}})(B,{html:Q.html})),yield nA.get(B)}}});function mA(A){if(!dA){dA=!0;const A=document.getElementById("wp-script-module-data-@wordpress/interactivity-router")?.textContent;if(A)try{const Q=JSON.parse(A);"string"==typeof Q?.i18n?.loading&&(fA.loading=Q.i18n.loading),"string"==typeof Q?.i18n?.loaded&&(fA.loaded=Q.i18n.loaded)}catch{}else uA.navigation.texts?.loading&&(fA.loading=uA.navigation.texts.loading),uA.navigation.texts?.loaded&&(fA.loaded=uA.navigation.texts.loaded)}const Q=fA[A];Promise.resolve().then(B.bind(B,317)).then((({speak:A})=>A(Q)),(()=>{}))}var NA=C.o,LA=C.w;export{NA as actions,LA as state}; interactivity/debug.min.js 0000644 00000143213 15151136645 0011663 0 ustar 00 var e={434:(e,t,n)=>{n.d(t,{zj:()=>vt,SD:()=>pe,V6:()=>he,$K:()=>ve,vT:()=>yt,jb:()=>Jt,yT:()=>ge,M_:()=>mt,hb:()=>Ee,vJ:()=>Se,ip:()=>ke,Nf:()=>xe,Kr:()=>Te,li:()=>b,J0:()=>g,FH:()=>be,v4:()=>we,mh:()=>Fe});var r,o,i,s,u=n(622),a=0,c=[],l=u.fF,f=l.__b,_=l.__r,p=l.diffed,h=l.__c,d=l.unmount,v=l.__;function y(e,t){l.__h&&l.__h(o,e,a||t),a=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return a=1,function(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):M(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var s=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return!!e.__c}));if(r.every((function(e){return!e.__N})))return!u||u.call(this,e,t,n);var o=i.__c.props!==e;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),u&&u.call(this,e,t,n)||o};o.__f=!0;var u=o.shouldComponentUpdate,a=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=u;u=void 0,s(e,t,n),u=r}a&&a.call(this,e,t,n)},o.shouldComponentUpdate=s}return i.__N||i.__}(M,e)}function m(e,t){var n=y(r++,3);!l.__s&&C(n.__H,t)&&(n.__=e,n.u=t,o.__H.__h.push(n))}function w(e,t){var n=y(r++,4);!l.__s&&C(n.__H,t)&&(n.__=e,n.u=t,o.__h.push(n))}function b(e){return a=5,k((function(){return{current:e}}),[])}function k(e,t){var n=y(r++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function S(e,t){return a=8,k((function(){return e}),t)}function x(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function E(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(F),e.__H.__h=[]}catch(t){e.__H.__h=[],l.__e(t,e.__v)}}l.__b=function(e){o=null,f&&f(e)},l.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),v&&v(e,t)},l.__r=function(e){_&&_(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(P),t.__h.forEach(F),t.__h=[],r=0)),i=o},l.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===l.requestAnimationFrame||((s=l.requestAnimationFrame)||O)(E)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),i=o=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(P),e.__h=e.__h.filter((function(e){return!e.__||F(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(n,e.__v)}})),h&&h(e,t)},l.unmount=function(e){d&&d(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{P(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var T="function"==typeof requestAnimationFrame;function O(e){var t,n=function(){clearTimeout(r),T&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);T&&(t=requestAnimationFrame(n))}function P(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function F(e){var t=o;e.__c=e.__(),o=t}function C(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}var N=Symbol.for("preact-signals");function j(){if(W>1)W--;else{for(var e,t=!1;void 0!==U;){var n=U;for(U=void 0,L++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&z(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(L=0,W--,t)throw e}}function H(e){if(W>0)return e();W++;try{return e()}finally{j()}}var I=void 0;function $(e){var t=I;I=void 0;try{return e()}finally{I=t}}var A,U=void 0,W=0,L=0,D=0;function R(e){if(void 0!==I){var t=e.n;if(void 0===t||t.t!==I)return t={i:0,S:e,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:t},void 0!==I.s&&(I.s.n=t),I.s=t,e.n=t,32&I.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=I.s,t.n=void 0,I.s.n=t,I.s=t),t}}function q(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function V(e,t){return new q(e,t)}function z(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function B(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function G(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function J(e,t){q.call(this,void 0),this.x=e,this.s=void 0,this.g=D-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function K(e,t){return new J(e,t)}function Y(e){var t=e.u;if(e.u=void 0,"function"==typeof t){W++;var n=I;I=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,X(e),t}finally{I=n,j()}}}function X(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Y(e)}function Z(e){if(I!==this)throw new Error("Out-of-order effect");G(this),I=e,this.f&=-2,8&this.f&&X(this),j()}function Q(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function ee(e,t){var n=new Q(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}function te(e,t){u.fF[e]=t.bind(null,u.fF[e]||function(){})}function ne(e){A&&A(),A=e&&e.S()}function re(e){var t=this,n=e.data,r=function(e){return k((function(){return V(e)}),[])}(n);r.value=n;var o=k((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e,n=t.__$u.S(),r=o.value;n(),(0,u.zO)(r)||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r},K((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return o.value}function oe(e,t,n,r){var o=t in e&&void 0===e.ownerSVGElement,i=V(n);return{o:function(e,t){i.value=e,r=t},d:ee((function(){var n=i.value.value;r[t]!==n&&(r[t]=n,o?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}q.prototype.brand=N,q.prototype.h=function(){return!0},q.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:$((function(){var e;null==(e=t.W)||e.call(t)})))},q.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&$((function(){var e;null==(e=t.Z)||e.call(t)})))}},q.prototype.subscribe=function(e){var t=this;return ee((function(){var n=t.value,r=I;I=void 0;try{e(n)}finally{I=r}}),{name:"sub"})},q.prototype.valueOf=function(){return this.value},q.prototype.toString=function(){return this.value+""},q.prototype.toJSON=function(){return this.value},q.prototype.peek=function(){var e=I;I=void 0;try{return this.value}finally{I=e}},Object.defineProperty(q.prototype,"value",{get:function(){var e=R(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(L>100)throw new Error("Cycle detected");this.v=e,this.i++,D++,W++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{j()}}}}),J.prototype=new q,J.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===D)return!0;if(this.g=D,this.f|=1,this.i>0&&!z(this))return this.f&=-2,!0;var e=I;try{B(this),I=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return I=e,G(this),this.f&=-2,!0},J.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}q.prototype.S.call(this,e)},J.prototype.U=function(e){if(void 0!==this.t&&(q.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},J.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(J.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=R(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Q.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},Q.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Y(this),B(this),W++;var e=I;return I=this,Z.bind(this,e)},Q.prototype.N=function(){2&this.f||(this.f|=2,this.o=U,U=this)},Q.prototype.d=function(){this.f|=8,1&this.f||X(this)},Q.prototype.dispose=function(){this.d()},re.displayName="_st",Object.defineProperties(q.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:re},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),te("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof q&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)})),te("__r",(function(e,t){ne();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var e;return ee((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),ne(n),e(t)})),te("__e",(function(e,t,n,r){ne(),e(t,n,r)})),te("diffed",(function(e,t){var n;if(ne(),"string"==typeof t.type&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var a in r){var c=i[a],l=r[a];void 0===c?(c=oe(n,a,l,o),i[a]=c):c.o(l,o)}}}e(t)})),te("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=t.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}e(t)})),te("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),u.uA.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&void 0!==n.s;for(var o in t)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in e)if("__source"!==i&&e[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};const ie=[],se=()=>ie.slice(-1)[0],ue=e=>{ie.push(e)},ae=()=>{ie.pop()},ce=[],le=()=>ce.slice(-1)[0],fe=e=>{ce.push(e)},_e=()=>{ce.pop()},pe=e=>le().context[e||se()],he=()=>{const e=le();const{ref:t,attributes:n}=e;return Object.freeze({ref:t.current,attributes:Ne(n,{})})},de=V(0);function ve(e){const t=le();return ve.subscribe=de.value,He(t.serverContext[e||se()])}ve.subscribe=0;const ye=e=>new Promise((t=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{e(),t()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),ge="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((e=>{setTimeout(e,0)}));function me(e){m((()=>{let t=null,n=!1;return t=function(e,t){let n=()=>{};const r=ee((function(){return n=this.c.bind(this),this.x=e,this.c=t,e()}));return{flush:n,dispose:r}}(e,(async()=>{t&&!n&&(n=!0,await ye(t.flush),n=!1)})),t.dispose}),[])}function we(e){const t=le(),n=se();let r;r="GeneratorFunction"===e?.constructor?.name?async(...r)=>{const o=e(...r);let i,s,u;for(;;){ue(n),fe(t);try{s=u?o.throw(u):o.next(i),u=void 0}catch(e){throw e}finally{_e(),ae()}try{i=await s.value}catch(e){u=e}if(s.done){if(u)throw u;break}}return i}:(...r)=>{ue(n),fe(t);try{return e(...r)}finally{ae(),_e()}};if(e.sync){const e=r;return e.sync=!0,e}return r}function be(e){me(we(e))}function ke(e){m(we(e),[])}function Se(e,t){m(we(e),t)}function xe(e,t){w(we(e),t)}function Ee(e,t){return S(we(e),t)}function Te(e,t){return k(we(e),t)}const Oe=e=>{0},Pe=e=>Boolean(e&&"object"==typeof e&&e.constructor===Object);function Fe(e){const t=e;return t.sync=!0,t}const Ce=new WeakMap,Me=e=>{const t=()=>!1;return{get(t,n){const r=t[n];return r&&"object"==typeof r?Ne(r,{errorMessage:e}):r},set:t,deleteProperty:t,defineProperty:t}};function Ne(e,t){const n=t?.errorMessage??"Cannot modify read-only object";if(!Ce.has(e)){const t=Me(n);Ce.set(e,new Proxy(e,t))}return Ce.get(e)}const je=V(0);function He(e){return Pe(e)?Object.fromEntries(Object.entries(e).map((([e,t])=>[e,He(t)]))):Array.isArray(e)?e.map((e=>He(e))):e}const Ie=new WeakMap,$e=new WeakMap,Ae=new WeakMap,Ue=new Set([Object,Array]),We=(e,t,n)=>{if(!Re(t))throw Error("This object cannot be proxified.");if(!Ie.has(t)){const r=new Proxy(t,n);Ie.set(t,r),$e.set(r,t),Ae.set(r,e)}return Ie.get(t)},Le=e=>Ie.get(e),De=e=>Ae.get(e),Re=e=>"object"==typeof e&&null!==e&&(!Ae.has(e)&&Ue.has(e.constructor)),qe={};class Ve{owner;computedsByScope;valueSignal;getterSignal;pendingGetter;constructor(e){this.owner=e,this.computedsByScope=new WeakMap}setValue(e){this.update({value:e})}setGetter(e){this.update({get:e})}setPendingGetter(e){this.pendingGetter=e,queueMicrotask((()=>this.consolidateGetter()))}consolidateGetter(){const e=this.pendingGetter;e&&(this.pendingGetter=void 0,this.update({get:e}))}getComputed(){const e=le()||qe;if(this.valueSignal||this.getterSignal||this.update({}),this.pendingGetter&&this.consolidateGetter(),!this.computedsByScope.has(e)){const t=()=>{const e=this.getterSignal?.value;return e?e.call(this.owner):this.valueSignal?.value};ue(De(this.owner)),this.computedsByScope.set(e,K(we(t))),ae()}return this.computedsByScope.get(e)}update({get:e,value:t}){this.valueSignal?t===this.valueSignal.peek()&&e===this.getterSignal.peek()||H((()=>{this.valueSignal.value=t,this.getterSignal.value=e})):(this.valueSignal=V(t),this.getterSignal=V(e))}}const ze=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter((e=>"symbol"==typeof e))),Be=new WeakMap,Ge=(e,t)=>Be.has(e)&&Be.get(e).has(t),Je=(e,t,n)=>{Be.has(e)||Be.set(e,new Map),t="number"==typeof t?`${t}`:t;const r=Be.get(e);if(!r.has(t)){const o=De(e),i=new Ve(e);if(r.set(t,i),n){const{get:e,value:t}=n;e?i.setGetter(e):i.setValue(Re(t)?Qe(o,t):t)}}return r.get(t)},Ke=new WeakMap;let Ye=!1;const Xe=Symbol("PENDING_GETTER"),Ze={get(e,t,n){if(Ye||!e.hasOwnProperty(t)&&t in e||"symbol"==typeof t&&ze.has(t))return Reflect.get(e,t,n);const r=Object.getOwnPropertyDescriptor(e,t),o=Je(n,t,r).getComputed().value;if(o===Xe)throw Xe;if("function"==typeof o){const e=De(n);return(...t)=>{ue(e);try{return o.call(n,...t)}finally{ae()}}}return o},set(e,t,n,r){ue(De(r));try{return Reflect.set(e,t,n,r)}finally{ae()}},defineProperty(e,t,n){const r=!(t in e),o=Reflect.defineProperty(e,t,n);if(o){const o=Le(e),i=Je(o,t),{get:s,value:u}=n;if(s)i.setGetter(s);else{const e=De(o);i.setValue(Re(u)?Qe(e,u):u)}if(r&&Ke.has(e)&&Ke.get(e).value++,Array.isArray(e)&&Be.get(o)?.has("length")){Je(o,"length").setValue(e.length)}}return o},deleteProperty(e,t){const n=Reflect.deleteProperty(e,t);if(n){Je(Le(e),t).setValue(void 0),Ke.has(e)&&Ke.get(e).value++}return n},ownKeys:e=>(Ke.has(e)||Ke.set(e,V(0)),Ke._=Ke.get(e).value,Reflect.ownKeys(e))},Qe=(e,t)=>We(e,t,Ze),et=(e,t,n=!0)=>{if(!Pe(e)||!Pe(t))return;let r=!1;for(const o in t){const i=!(o in e);r=r||i;const s=Object.getOwnPropertyDescriptor(t,o),u=Le(e),a=!!u&&Ge(u,o)&&Je(u,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(e,o,{...s,configurable:!0,enumerable:!0}),s.get&&a&&a.setPendingGetter(s.get));else if(Pe(t[o])){const r=Object.getOwnPropertyDescriptor(e,o)?.value;if(i||n&&!Pe(r)){if(e[o]={},a){const t=De(u);a.setValue(Qe(t,e[o]))}et(e[o],t[o],n)}else Pe(r)&&et(e[o],t[o],n)}else if((n||i)&&(Object.defineProperty(e,o,s),a)){const{value:e}=s,t=De(u);a.setValue(Re(e)?Qe(t,e):e)}}r&&Ke.has(e)&&Ke.get(e).value++},tt=(e,t,n=!0)=>H((()=>{return et((r=e,$e.get(r)||e),t,n);var r})),nt=new WeakSet,rt={get:(e,t,n)=>{const r=Reflect.get(e,t),o=De(n);if(void 0===r&&nt.has(n)){const n={};return Reflect.set(e,t,n),ot(o,n,!1)}if("function"==typeof r){ue(o);const e=we(r);return ae(),e}return Pe(r)&&Re(r)?ot(o,r,!1):r}},ot=(e,t,n=!0)=>{const r=We(e,t,rt);return r&&n&&nt.add(r),r},it=new WeakMap,st=new WeakMap,ut=new WeakSet,at=Reflect.getOwnPropertyDescriptor,ct={get:(e,t)=>{const n=st.get(e),r=e[t];return t in e?r:n[t]},set:(e,t,n)=>{const r=st.get(e);return(t in e||!(t in r)?e:r)[t]=n,!0},ownKeys:e=>[...new Set([...Object.keys(st.get(e)),...Object.keys(e)])],getOwnPropertyDescriptor:(e,t)=>at(e,t)||at(st.get(e),t),has:(e,t)=>Reflect.has(e,t)||Reflect.has(st.get(e),t)},lt=(e,t={})=>{if(ut.has(e))throw Error("This object cannot be proxified.");if(st.set(e,t),!it.has(e)){const t=new Proxy(e,ct);it.set(e,t),ut.add(t)}return it.get(e)},ft=new Map,_t=new Map,pt=new Map,ht=new Map,dt=new Map,vt=e=>ht.get(e||se())||{};function yt(e){const t=e||se();return dt.has(t)||dt.set(t,{}),yt.subscribe=je.value,He(dt.get(t))}yt.subscribe=0;const gt="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function mt(e,{state:t={},...n}={},{lock:r=!1}={}){if(ft.has(e)){if(r===gt||pt.has(e)){const t=pt.get(e);if(!(r===gt||!0!==r&&r===t))throw t?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else pt.set(e,r);const o=_t.get(e);tt(o,n),tt(o.state,t)}else{r!==gt&&pt.set(e,r);const o={state:Qe(e,Pe(t)?t:{}),...n},i=ot(e,o);_t.set(e,o),ft.set(e,i)}return ft.get(e)}const wt=(e=document)=>{const t=e.getElementById("wp-script-module-data-@wordpress/interactivity")??e.getElementById("wp-interactivity-data");if(t?.textContent)try{return JSON.parse(t.textContent)}catch{}return{}},bt=e=>{dt.clear(),ht.clear(),Pe(e?.state)&&Object.entries(e.state).forEach((([e,t])=>{const n=mt(e,{},{lock:gt});tt(n.state,t,!1),dt.set(e,t)})),Pe(e?.config)&&Object.entries(e.config).forEach((([e,t])=>{ht.set(e,t)})),Pe(e?.derivedStateClosures)&&Object.entries(e.derivedStateClosures).forEach((([e,t])=>{const n=mt(e,{},{lock:gt});t.forEach((e=>{const t=e.split("."),r=t.splice(-1,1)[0],o=t.reduce(((e,t)=>((e,t)=>{Ye=!0;try{return e[t]}finally{Ye=!1}})(e,t)),n),i=Object.getOwnPropertyDescriptor(o,r);Pe(i?.value)&&(o[r]=Xe)}))}))};function kt(e){return null!==e.suffix}function St(e){return null===e.suffix}const xt=(0,u.q6)({client:{},server:{}}),Et={},Tt={},Ot=(e,t,{priority:n=10}={})=>{Et[e]=t,Tt[e]=n},Pt=({scope:e})=>(t,...n)=>{let{value:r,namespace:o}=t;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));fe(e);const s=((e,t)=>{if(!t)return void Oe();let n=ft.get(t);void 0===n&&(n=mt(t,{},{lock:gt}));const r={...n,context:le().context[t]};try{return e.split(".").reduce(((e,t)=>e[t]),r)}catch(e){if(e===Xe)return Xe}})(r,o);if("function"==typeof s){if(i){Oe();const e=!s(...n);return _e(),e}_e();const t=(...t)=>{fe(e);const n=s(...t);return _e(),n};if(s.sync){t.sync=!0}return t}const u=s;return _e(),i&&s!==Xe?!u:u},Ft=({directives:e,priorityLevels:[t,...n],element:r,originalProps:o,previousScope:i})=>{const s=b({}).current;s.evaluate=S(Pt({scope:s}),[]);const{client:a,server:c}=x(xt);s.context=a,s.serverContext=c,s.ref=i?.ref||b(null),r=(0,u.Ob)(r,{ref:s.ref}),s.attributes=r.props;const l=n.length>0?(0,u.h)(Ft,{directives:e,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,f={...o,children:l},_={directives:e,props:f,element:r,context:xt,evaluate:s.evaluate};fe(s);for(const e of t){const t=Et[e]?.(_);void 0!==t&&(f.children=t)}return _e(),f.children},Ct=u.fF.vnode;u.fF.vnode=e=>{if(e.props.__directives){const t=e.props,n=t.__directives;n.key&&(e.key=n.key.find(St).value),delete t.__directives;const r=(e=>{const t=Object.keys(e).reduce(((e,t)=>{if(Et[t]){const n=Tt[t];(e[n]=e[n]||[]).push(t)}return e}),{});return Object.entries(t).sort((([e],[t])=>parseInt(e)-parseInt(t))).map((([,e])=>e))})(n);r.length>0&&(e.props={directives:n,priorityLevels:r,originalProps:t,type:e.type,element:(0,u.h)(e.type,t),top:!0},e.type=Ft)}Ct&&Ct(e)};function Mt(e){return new Proxy(e,{get(e,t,n){const r=e[t];return r instanceof Function?function(...t){return r.apply(this===n?e:this,t)}:r}})}const Nt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,jt=/\/\*[^]*?\*\/| +/g,Ht=/\n+/g,It=e=>({directives:t,evaluate:n})=>{t[`on-${e}`].filter(kt).forEach((t=>{const r=t.suffix.split("--",2)[0];ke((()=>{const o=e=>{const r=n(t);"function"==typeof r&&(r?.sync||(e=Mt(e)),r(e))},i="window"===e?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},$t=(e,t,n,r,o)=>{const i={...e.client,[t]:{...e.client[t],[r]:n}},s={...le(),context:i,serverContext:e.server};return o?Pt({scope:s})(o):n},At=e=>({directives:t,evaluate:n})=>{t[`on-async-${e}`].filter(kt).forEach((t=>{const r=t.suffix.split("--",1)[0];ke((()=>{const o=async e=>{await ge();const r=n(t);"function"==typeof r&&r(e)},i="window"===e?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},Ut=new Map;const Wt="data-wp-",Lt=[],Dt=/[^a-z0-9-_]/i;const Rt=/^([\w_\/-]+)::(.+)$/,qt=new WeakSet;function Vt(e){const t=new Set,n=new Set,r=document.createTreeWalker(e,205);const o=function e(o){const{nodeType:i}=o;if(3===i)return o.data;if(4===i)return n.add(o),o.nodeValue;if(8===i||7===i)return t.add(o),null;const s=o,{attributes:a}=s,c=s.localName,l={},f=[],_=[];let p=!1,h=!1;for(let e=0;e<a.length;e++){const t=a[e].name,n=a[e].value;if(t[8]&&t.slice(0,8)===Wt)if("data-wp-ignore"===t)p=!0;else{const e=Rt.exec(n),r=e?.[1]??null;let o=e?.[2]??n;try{const e=JSON.parse(o);d=e,o=Boolean(d&&"object"==typeof d&&d.constructor===Object)?e:o}catch{}if("data-wp-interactive"===t){h=!0;const e="string"==typeof o?o:"string"==typeof o?.namespace?o.namespace:null;Lt.push(e)}else _.push([t,r,o])}else if("ref"===t)continue;l[t]=n}var d;if(p&&!h)return[(0,u.h)(c,{...l,innerHTML:s.innerHTML,__directives:{ignore:!0}})];if(h&&qt.add(s),_.length){l.__directives=_.reduce(((e,[t,n,r])=>{const o=function(e){const t=e.substring(8);if(Dt.test(t))return null;const n=t.indexOf("--");if(-1===n)return{prefix:t,suffix:null,uniqueId:null};const r=t.substring(0,n),o=t.substring(n);if(o.startsWith("---")&&"-"!==o[3])return{prefix:r,suffix:null,uniqueId:o.substring(3)||null};let i=o.substring(2);const s=i.indexOf("---");if(-1!==s&&"-"!==i.substring(s)[3]){const e=i.substring(s+3)||null;return i=i.substring(0,s)||null,{prefix:r,suffix:i,uniqueId:e}}return{prefix:r,suffix:i||null,uniqueId:null}}(t);if(null===o)return e;const{prefix:i,suffix:s,uniqueId:u}=o;return e[i]=e[i]||[],e[i].push({namespace:n??Lt[Lt.length-1]??null,value:r,suffix:s,uniqueId:u}),e}),{});for(const e in l.__directives)l.__directives[e].sort(((e,t)=>{const n=e.suffix??"",r=t.suffix??"";if(n!==r)return n<r?-1:1;const o=e.uniqueId??"",i=t.uniqueId??"";return+(o>i)-+(o<i)}))}if(l.__directives?.["each-child"])l.dangerouslySetInnerHTML={__html:s.innerHTML};else if("template"===c)l.content=[...s.content.childNodes].map((e=>Vt(e)));else{let t=r.firstChild();if(t){for(;t;){const n=e(t);n&&f.push(n),t=r.nextSibling()}r.parentNode()}}return h&&Lt.pop(),(0,u.h)(c,l,f)}(r.currentNode);return t.forEach((e=>e.remove())),n.forEach((e=>e.replaceWith(new window.Text(e.nodeValue??"")))),o}const zt=new WeakMap,Bt=e=>{const t=Array.isArray(e)?e[0]:e;if(!t.parentElement)throw Error("The passed region should be an element with a parent.");return zt.has(t)||zt.set(t,((e,t)=>{const n=(t=[].concat(t))[t.length-1].nextSibling;function r(t,r){e.insertBefore(t,r||n)}return e.__k={nodeType:1,parentNode:e,firstChild:t[0],childNodes:t,insertBefore:r,appendChild:r,removeChild(t){e.removeChild(t)},contains(t){e.contains(t)}}})(t.parentElement,e)),zt.get(t)},Gt=new WeakMap,Jt=e=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===e)return{getRegionRootFragment:Bt,initialVdom:Gt,toVdom:Vt,directive:Ot,getNamespace:se,h:u.h,cloneElement:u.Ob,render:u.XX,proxifyState:Qe,parseServerData:wt,populateServerData:bt,batch:H,routerRegions:Ut,deepReadOnly:Ne,navigationSignal:je};throw new Error("Forbidden access.")};bt(wt()),Ot("context",(({directives:{context:e},props:{children:t},context:n})=>{const r=e.filter(St).reverse();if(!r.length)return;const{Provider:o}=n,{client:i,server:s}=x(n),a=b({}),c={},l={client:{...i},server:{...s}},f=new Set;return r.forEach((({value:e,namespace:t,uniqueId:n})=>{Pe(e)&&(a.current[t]||(a.current[t]=Qe(t,{})),tt(a.current[t],He(e),!1),c[t]=e,f.add(t))})),f.forEach((e=>{l.client[e]=lt(a.current[e],i[e]),l.server[e]=lt(c[e],s[e])})),(0,u.h)(o,{value:l},t)}),{priority:5}),Ot("watch",(({directives:{watch:e},evaluate:t})=>{e.forEach((e=>{be((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Ot("init",(({directives:{init:e},evaluate:t})=>{e.forEach((e=>{ke((()=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))}))})),Ot("on",(({directives:{on:e},element:t,evaluate:n})=>{const r=new Map;e.filter(kt).forEach((e=>{const t=e.suffix.split("--",2);r.has(t[0])||r.set(t[0],new Set),r.get(t[0]).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{o&&o(t),e.forEach((e=>{const r=n(e);"function"==typeof r&&(r?.sync||(t=Mt(t)),r(t))}))}}))})),Ot("on-async",(({directives:{"on-async":e},element:t,evaluate:n})=>{const r=new Map;e.filter(kt).forEach((e=>{const t=e.suffix.split("--",1)[0];r.has(t)||r.set(t,new Set),r.get(t).add(e)})),r.forEach(((e,r)=>{const o=t.props[`on${r}`];t.props[`on${r}`]=t=>{o&&o(t),e.forEach((async e=>{await ge();const r=n(e);"function"==typeof r&&r(t)}))}}))})),Ot("on-window",It("window")),Ot("on-document",It("document")),Ot("on-async-window",At("window")),Ot("on-async-document",At("document")),Ot("class",(({directives:{class:e},element:t,evaluate:n})=>{e.filter(kt).forEach((e=>{const r=e.uniqueId?`${e.suffix}---${e.uniqueId}`:e.suffix;let o=n(e);if(o===Xe)return;"function"==typeof o&&(o=o());const i=t.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(t.props.class=i?`${i} ${r}`:r):t.props.class=i.replace(s," ").trim(),ke((()=>{o?t.ref.current.classList.add(r):t.ref.current.classList.remove(r)}))}))})),Ot("style",(({directives:{style:e},element:t,evaluate:n})=>{e.filter(kt).forEach((e=>{if(e.uniqueId)return;const r=e.suffix;let o=n(e);o!==Xe&&("function"==typeof o&&(o=o()),t.props.style=t.props.style||{},"string"==typeof t.props.style&&(t.props.style=(e=>{const t=[{}];let n,r;for(;n=Nt.exec(e.replace(jt,""));)n[4]?t.shift():n[3]?(r=n[3].replace(Ht," ").trim(),t.unshift(t[0][r]=t[0][r]||{})):t[0][n[1]]=n[2].replace(Ht," ").trim();return t[0]})(t.props.style)),o?t.props.style[r]=o:delete t.props.style[r],ke((()=>{o?t.ref.current.style.setProperty(r,o):t.ref.current.style.removeProperty(r)})))}))})),Ot("bind",(({directives:{bind:e},element:t,evaluate:n})=>{e.filter(kt).forEach((e=>{if(e.uniqueId)return;const r=e.suffix;let o=n(e);o!==Xe&&("function"==typeof o&&(o=o()),t.props[r]=o,ke((()=>{const e=t.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in e)try{return void(e[r]=null==o?"":o)}catch(e){}null==o||!1===o&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,o)}else"string"==typeof o&&(e.style.cssText=o)})))}))})),Ot("ignore",(({element:{type:e,props:{innerHTML:t,...n}}})=>{const r=k((()=>t),[]);return(0,u.h)(e,{dangerouslySetInnerHTML:{__html:r},...n})})),Ot("text",(({directives:{text:e},element:t,evaluate:n})=>{const r=e.filter(St);r.length&&r.forEach((e=>{if(!e.uniqueId)try{let r=n(e);if(r===Xe)return;"function"==typeof r&&(r=r()),t.props.children="object"==typeof r?null:r.toString()}catch(e){t.props.children=null}}))})),Ot("run",(({directives:{run:e},evaluate:t})=>{e.forEach((e=>{let n=t(e);return"function"==typeof n&&(n=n()),n}))})),Ot("each",(({directives:{each:e,"each-key":t},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=x(n),[a]=e,{namespace:c,suffix:l,uniqueId:f}=a;if(e.length>1)return;if(f)return;let _=o(a);if(_===Xe)return;if("function"==typeof _&&(_=_()),"function"!=typeof _?.[Symbol.iterator])return;const p=l?l.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()})):"item",h=[],d=function*(e,t,n,r,o){const{current:i}=b(new Map);for(const s of n){const n=$t(e,t,s,r,o);i.has(n)||i.set(n,lt(Qe(t,{[r]:void 0}),e.client[t])),yield[s,i.get(n),n]}}(s,c,_,p,t?.[0]);for(const[e,t,n]of d){const o={client:{...s.client,[c]:t},server:{...s.server}};o.client[c][p]=e,h.push((0,u.h)(i,{value:o,key:n},r.props.content))}return h}),{priority:20}),Ot("each-child",(({directives:{"each-child":e},element:t,evaluate:n})=>{const r=e.find(St);if(r)return n(r)===Xe?t:null}),{priority:1}),Ot("router-region",(({directives:{"router-region":e}})=>{const t=e.find(St);if(!t)return;if(t.suffix)return;if(t.uniqueId)return;const n="string"==typeof t.value?t.value:t.value.id;Ut.has(n)||Ut.set(n,V());const r=Ut.get(n).value;if(w((()=>{r&&"string"!=typeof r.type&&(de.value=de.peek()+1)}),[r]),r&&"string"!=typeof r.type){const e=le();return(0,u.Ob)(r,{previousScope:e})}return r}),{priority:1}),(e=>{const[t]=performance.getEntriesByType("navigation");t.domContentLoadedEventStart>0?e():document.addEventListener("DOMContentLoaded",e)})((async()=>{const e=document.querySelectorAll("[data-wp-interactive]");for(const t of e)if(!qt.has(t)){await ge();const e=Bt(t),n=Vt(t);Gt.set(t,n),await ge(),(0,u.Qv)(n,e)}}))},622:(e,t,n)=>{n.d(t,{FK:()=>x,Ob:()=>G,Qv:()=>B,XX:()=>z,fF:()=>o,h:()=>k,q6:()=>J,uA:()=>E,zO:()=>s});var r,o,i,s,u,a,c,l,f,_,p,h,d,v={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function w(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,n){var o,i,s,u={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===u[s]&&(u[s]=e.defaultProps[s]);return S(e,u,o,i,null)}function S(e,t,n,r,s){var u={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(u),u}function x(e){return e.children}function E(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?T(e):null}function O(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return O(e)}}function P(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!F.__r++||a!=o.debounceRendering)&&((a=o.debounceRendering)||c)(F)}function F(){for(var e,t,n,r,i,s,a,c=1;u.length;)u.length>c&&u.sort(l),e=u.shift(),c=u.length,e.__d&&(n=void 0,r=void 0,i=(r=(t=e).__v).__e,s=[],a=[],t.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),A(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?T(r):i,!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,W(s,n,a),r.__e=r.__=null,n.__e!=i&&O(n)));F.__r=0}function C(e,t,n,r,o,i,s,u,a,c,l){var f,_,p,h,d,g,m,w=r&&r.__k||y,b=t.length;for(a=M(n,t,w,a,b),f=0;f<b;f++)null!=(p=n.__k[f])&&(_=-1==p.__i?v:w[p.__i]||v,p.__i=f,g=A(e,p,_,o,i,s,u,a,c,l),h=p.__e,p.ref&&_.ref!=p.ref&&(_.ref&&R(_.ref,null,p),l.push(p.ref,p.__c||h,p)),null==d&&null!=h&&(d=h),(m=!!(4&p.__u))||_.__k===p.__k?a=N(p,a,e,m):"function"==typeof p.type&&void 0!==g?a=g:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=d,a}function M(e,t,n,r,o){var i,s,u,a,c,l=n.length,f=l,_=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[i]=S(null,s,null,null,null):m(s)?s=e.__k[i]=S(x,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[i]=S(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,a=i+_,s.__=e,s.__b=e.__b+1,u=null,-1!=(c=s.__i=j(s,n,a,f))&&(f--,(u=n[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(o>l?_--:o<l&&_++),"function"!=typeof s.type&&(s.__u|=4)):c!=a&&(c==a-1?_--:c==a+1?_++:(c>a?_--:_++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<l;i++)null!=(u=n[i])&&!(2&u.__u)&&(u.__e==r&&(r=T(u)),q(u,u));return r}function N(e,t,n,r){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=N(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=T(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function j(e,t,n,r){var o,i,s,u=e.key,a=e.type,c=t[n],l=null!=c&&!(2&c.__u);if(null===c&&null==u||l&&u==c.key&&a==c.type)return n;if(r>(l?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;)if(null!=(c=t[s=o>=0?o--:i++])&&!(2&c.__u)&&u==c.key&&a==c.type)return s;return-1}function H(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function I(e,t,n,r,o){var i,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||H(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||H(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(f,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=_,e.addEventListener(t,i?h:p,i)):e.removeEventListener(t,i?h:p,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function $(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=_++;else if(t.t<n.u)return;return n(o.event?o.event(t):t)}}}function A(e,t,n,r,i,s,u,a,c,l){var f,_,p,h,d,v,y,g,k,S,T,O,P,F,M,N,j,H=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=o.__b)&&f(t);e:if("function"==typeof H)try{if(g=t.props,k="prototype"in H&&H.prototype.render,S=(f=H.contextType)&&r[f.__c],T=f?S?S.props.value:f.__:r,n.__c?y=(_=t.__c=n.__c).__=_.__E:(k?t.__c=_=new H(g,T):(t.__c=_=new E(g,T),_.constructor=H,_.render=V),S&&S.sub(_),_.state||(_.state={}),_.__n=r,p=_.__d=!0,_.__h=[],_._sb=[]),k&&null==_.__s&&(_.__s=_.state),k&&null!=H.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=w({},_.__s)),w(_.__s,H.getDerivedStateFromProps(g,_.__s))),h=_.props,d=_.state,_.__v=t,p)k&&null==H.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),k&&null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(k&&null==H.getDerivedStateFromProps&&g!==h&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(g,T),t.__v==n.__v||!_.__e&&null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(g,_.__s,T)){for(t.__v!=n.__v&&(_.props=g,_.state=_.__s,_.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),O=0;O<_._sb.length;O++)_.__h.push(_._sb[O]);_._sb=[],_.__h.length&&u.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(g,_.__s,T),k&&null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(h,d,v)}))}if(_.context=T,_.props=g,_.__P=e,_.__e=!1,P=o.__r,F=0,k){for(_.state=_.__s,_.__d=!1,P&&P(t),f=_.render(_.props,_.state,_.context),M=0;M<_._sb.length;M++)_.__h.push(_._sb[M]);_._sb=[]}else do{_.__d=!1,P&&P(t),f=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++F<25);_.state=_.__s,null!=_.getChildContext&&(r=w(w({},r),_.getChildContext())),k&&!p&&null!=_.getSnapshotBeforeUpdate&&(v=_.getSnapshotBeforeUpdate(h,d)),N=f,null!=f&&f.type===x&&null==f.key&&(N=L(f.props.children)),a=C(e,m(N)?N:[N],t,n,r,i,s,u,a,c,l),_.base=t.__e,t.__u&=-161,_.__h.length&&u.push(_),y&&(_.__E=_.__=null)}catch(e){if(t.__v=null,c||null!=s)if(e.then){for(t.__u|=c?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(j=s.length;j--;)b(s[j]);U(t)}else t.__e=n.__e,t.__k=n.__k,e.then||U(t);o.__e(e,t,n)}else null==s&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=D(n.__e,t,n,r,i,s,u,c,l);return(f=o.diffed)&&f(t),128&t.__u?void 0:a}function U(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(U)}function W(e,t,n){for(var r=0;r<n.length;r++)R(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function L(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:m(e)?e.map(L):w({},e)}function D(e,t,n,i,s,u,a,c,l){var f,_,p,h,d,y,g,w=n.props||v,k=t.props,S=t.type;if("svg"==S?s="http://www.w3.org/2000/svg":"math"==S?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=u)for(f=0;f<u.length;f++)if((d=u[f])&&"setAttribute"in d==!!S&&(S?d.localName==S:3==d.nodeType)){e=d,u[f]=null;break}if(null==e){if(null==S)return document.createTextNode(k);e=document.createElementNS(s,S,k.is&&k),c&&(o.__m&&o.__m(t,u),c=!1),u=null}if(null==S)w===k||c&&e.data==k||(e.data=k);else{if(u=u&&r.call(e.childNodes),!c&&null!=u)for(w={},f=0;f<e.attributes.length;f++)w[(d=e.attributes[f]).name]=d.value;for(f in w)if(d=w[f],"children"==f);else if("dangerouslySetInnerHTML"==f)p=d;else if(!(f in k)){if("value"==f&&"defaultValue"in k||"checked"==f&&"defaultChecked"in k)continue;I(e,f,null,d,s)}for(f in k)d=k[f],"children"==f?h=d:"dangerouslySetInnerHTML"==f?_=d:"value"==f?y=d:"checked"==f?g=d:c&&"function"!=typeof d||w[f]===d||I(e,f,d,w[f],s);if(_)c||p&&(_.__html==p.__html||_.__html==e.innerHTML)||(e.innerHTML=_.__html),t.__k=[];else if(p&&(e.innerHTML=""),C("template"==t.type?e.content:e,m(h)?h:[h],t,n,i,"foreignObject"==S?"http://www.w3.org/1999/xhtml":s,u,a,u?u[0]:n.__k&&T(n,0),c,l),null!=u)for(f=u.length;f--;)b(u[f]);c||(f="value","progress"==S&&null==y?e.removeAttribute("value"):null!=y&&(y!==e[f]||"progress"==S&&!y||"option"==S&&y!=w[f])&&I(e,f,y,w[f],s),f="checked",null!=g&&g!=e[f]&&I(e,f,g,w[f],s))}return e}function R(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,n)}}function q(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||R(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&q(r[i],t,n||"function"!=typeof e.type);n||b(e.__e),e.__c=e.__=e.__e=void 0}function V(e,t,n){return this.constructor(e,n)}function z(e,t,n){var i,s,u,a;t==document&&(t=document.documentElement),o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,u=[],a=[],A(t,e=(!i&&n||t).__k=k(x,null,[e]),s||v,v,t.namespaceURI,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,u,!i&&n?n:s?s.__e:t.firstChild,i,a),W(u,e,a)}function B(e,t){z(e,t,B)}function G(e,t,n){var o,i,s,u,a=w({},e.props);for(s in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=void 0===t[s]&&null!=u?u[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),S(e.type,a,o||e.key,i||e.ref,null)}function J(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,P(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}r=y.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,s=function(e){return null!=e&&void 0===e.constructor},E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},n),this.props)),e&&w(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},E.prototype.render=x,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},F.__r=0,f=/(PointerCapture)$|Capture$/i,_=0,p=$(!1),h=$(!0),d=0}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};n.d(r,{zj:()=>k.zj,SD:()=>k.SD,V6:()=>k.V6,$K:()=>k.$K,vT:()=>k.vT,jb:()=>k.jb,yT:()=>k.yT,M_:()=>k.M_,hb:()=>k.hb,vJ:()=>k.vJ,ip:()=>k.ip,Nf:()=>k.Nf,Kr:()=>k.Kr,li:()=>k.li,J0:()=>k.J0,FH:()=>k.FH,v4:()=>k.v4,mh:()=>k.mh});var o,i=n(622);null!=(o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&o.__PREACT_DEVTOOLS__&&o.__PREACT_DEVTOOLS__.attachPreact("10.28.2",i.fF,{Fragment:i.FK,Component:i.uA});var s={};function u(e){return e.type===i.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var a=[],c=[];function l(){return a.length>0?a[a.length-1]:null}var f=!0;function _(e){return"function"==typeof e.type&&e.type!=i.FK}function p(e){for(var t=[e],n=e;null!=n.__o;)t.push(n.__o),n=n.__o;return t.reduce((function(e,t){e+=" in "+u(t);var n=t.__source;return n?e+=" (at "+n.fileName+":"+n.lineNumber+")":f&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),f=!1,e+"\n"}),"")}var h="function"==typeof WeakMap;function d(e){var t=[];return e.__k?(e.__k.forEach((function(e){e&&"function"==typeof e.type?t.push.apply(t,d(e)):e&&"string"==typeof e.type&&t.push(e.type)})),t):t}function v(e){return e?"function"==typeof e.type?null==e.__?null!=e.__e&&null!=e.__e.parentNode?e.__e.parentNode.localName:"":v(e.__):e.type:""}var y=i.uA.prototype.setState;function g(e){return"table"===e||"tfoot"===e||"tbody"===e||"thead"===e||"td"===e||"tr"===e||"th"===e}i.uA.prototype.setState=function(e,t){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+p(l())),y.call(this,e,t)};var m=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,w=i.uA.prototype.forceUpdate;function b(e){var t=e.props,n=u(e),r="";for(var o in t)if(t.hasOwnProperty(o)&&"children"!==o){var i=t[o];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),r+=" "+o+"="+JSON.stringify(i)}var s=t.children;return"<"+n+r+(s&&s.length?">..</"+n+">":" />")}i.uA.prototype.forceUpdate=function(e){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+p(l())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+p(this.__v)),w.call(this,e)},i.fF.__m=function(e,t){var n=e.type,r=t.map((function(e){return e&&e.localName})).filter(Boolean);console.error('Expected a DOM node of type "'+n+'" but found "'+r.join(", ")+"\" as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n"+p(e))},function(){!function(){var e=i.fF.__b,t=i.fF.diffed,n=i.fF.__,r=i.fF.vnode,o=i.fF.__r;i.fF.diffed=function(e){_(e)&&c.pop(),a.pop(),t&&t(e)},i.fF.__b=function(t){_(t)&&a.push(t),e&&e(t)},i.fF.__=function(e,t){c=[],n&&n(e,t)},i.fF.vnode=function(e){e.__o=c.length>0?c[c.length-1]:null,r&&r(e)},i.fF.__r=function(e){_(e)&&c.push(e),o&&o(e)}}();var e=!1,t=i.fF.__b,n=i.fF.diffed,r=i.fF.vnode,o=i.fF.__r,l=i.fF.__e,f=i.fF.__,y=i.fF.__h,w=h?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];i.fF.__e=function(e,t,n,r){if(t&&t.__c&&"function"==typeof e.then){var o=e;e=new Error("Missing Suspense. The throwing component was: "+u(t));for(var i=t;i;i=i.__)if(i.__c&&i.__c.__c){e=o;break}if(e instanceof Error)throw e}try{(r=r||{}).componentStack=p(t),l(e,t,n,r),"function"!=typeof e.then&&setTimeout((function(){throw e}))}catch(e){throw e}},i.fF.__=function(e,t){if(!t)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var n;switch(t.nodeType){case 1:case 11:case 9:n=!0;break;default:n=!1}if(!n){var r=u(e);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+t+" instead: render(<"+r+" />, "+t+");")}f&&f(e,t)},i.fF.__b=function(n){var r=n.type;if(e=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+b(n)+"\n\n"+p(n));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+u(n)+" = "+b(r)+";\n let vnode = <My"+u(n)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+p(n));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==n.ref&&"function"!=typeof n.ref&&"object"!=typeof n.ref&&!("$$typeof"in n))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof n.ref+"] instead\n"+b(n)+"\n\n"+p(n));if("string"==typeof n.type)for(var o in n.props)if("o"===o[0]&&"n"===o[1]&&"function"!=typeof n.props[o]&&null!=n.props[o])throw new Error("Component's \""+o+'" property should be a function, but got ['+typeof n.props[o]+"] instead\n"+b(n)+"\n\n"+p(n));if("function"==typeof n.type&&n.type.propTypes){if("Lazy"===n.type.displayName&&w&&!w.lazyPropTypes.has(n.type)){var i="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var a=n.type();w.lazyPropTypes.set(n.type,!0),console.warn(i+"Component wrapped in lazy() is "+u(a))}catch(e){console.warn(i+"We will log the wrapped component's name once it is loaded.")}}var c=n.props;n.type.__f&&delete(c=function(e,t){for(var n in t)e[n]=t[n];return e}({},c)).ref,function(e,t,n,r,o){Object.keys(e).forEach((function(n){var i;try{i=e[n](t,n,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){i=e}i&&!(i.message in s)&&(s[i.message]=!0,console.error("Failed prop type: "+i.message+(o&&"\n"+o()||"")))}))}(n.type.propTypes,c,0,u(n),(function(){return p(n)}))}t&&t(n)};var S,x=0;i.fF.__r=function(t){o&&o(t),e=!0;var n=t.__c;if(n===S?x++:x=1,x>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+u(t));S=n},i.fF.__h=function(t,n,r){if(!t||!e)throw new Error("Hook can only be invoked from render methods.");y&&y(t,n,r)};var E=function(e,t){return{get:function(){var n="get"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("getting vnode."+e+" is deprecated, "+t))},set:function(){var n="set"+e+t;k&&k.indexOf(n)<0&&(k.push(n),console.warn("setting vnode."+e+" is not allowed, "+t))}}},T={nodeName:E("nodeName","use vnode.type"),attributes:E("attributes","use vnode.props"),children:E("children","use vnode.props.children")},O=Object.create({},T);i.fF.vnode=function(e){var t=e.props;if(null!==e.type&&null!=t&&("__source"in t||"__self"in t)){var n=e.props={};for(var o in t){var i=t[o];"__source"===o?e.__source=i:"__self"===o?e.__self=i:n[o]=i}}e.__proto__=O,r&&r(e)},i.fF.diffed=function(t){var r,o=t.type,i=t.__;if(t.__k&&t.__k.forEach((function(e){if("object"==typeof e&&e&&void 0===e.type){var n=Object.keys(e).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+n+"}.\n\n"+p(t))}})),t.__c===S&&(x=0),"string"==typeof o&&(g(o)||"p"===o||"a"===o||"button"===o)){var s=v(i);if(""!==s&&g(o))"table"===o&&"td"!==s&&g(s)?console.error("Improper nesting of table. Your <table> should not have a table-node parent."+b(t)+"\n\n"+p(t)):"thead"!==o&&"tfoot"!==o&&"tbody"!==o||"table"===s?"tr"===o&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot> parent."+b(t)+"\n\n"+p(t)):"td"===o&&"tr"!==s?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+b(t)+"\n\n"+p(t)):"th"===o&&"tr"!==s&&console.error("Improper nesting of table. Your <th> should have a <tr>."+b(t)+"\n\n"+p(t)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+b(t)+"\n\n"+p(t));else if("p"===o){var a=d(t).filter((function(e){return m.test(e)}));a.length&&console.error("Improper nesting of paragraph. Your <p> should not have "+a.join(", ")+" as child-elements."+b(t)+"\n\n"+p(t))}else"a"!==o&&"button"!==o||-1!==d(t).indexOf(o)&&console.error("Improper nesting of interactive content. Your <"+o+"> should not have other "+("a"===o?"anchor":"button")+" tags as child-elements."+b(t)+"\n\n"+p(t))}if(e=!1,n&&n(t),null!=t.__k)for(var c=[],l=0;l<t.__k.length;l++){var f=t.__k[l];if(f&&null!=f.key){var _=f.key;if(-1!==c.indexOf(_)){console.error('Following component has two or more children with the same key attribute: "'+_+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+b(t)+"\n\n"+p(t));break}c.push(_)}}if(null!=t.__c&&null!=t.__c.__H){var h=t.__c.__H.__;if(h)for(var y=0;y<h.length;y+=1){var w=h[y];if(w.__H)for(var k=0;k<w.__H.length;k++)if((r=w.__H[k])!=r){var E=u(t);console.warn("Invalid argument passed to hook. Hooks should not be called with NaN in the dependency array. Hook index "+y+" in component "+E+" was called with NaN.")}}}}}();var k=n(434),S=r.zj,x=r.SD,E=r.V6,T=r.$K,O=r.vT,P=r.jb,F=r.yT,C=r.M_,M=r.hb,N=r.vJ,j=r.ip,H=r.Nf,I=r.Kr,$=r.li,A=r.J0,U=r.FH,W=r.v4,L=r.mh;export{S as getConfig,x as getContext,E as getElement,T as getServerContext,O as getServerState,P as privateApis,F as splitTask,C as store,M as useCallback,N as useEffect,j as useInit,H as useLayoutEffect,I as useMemo,$ as useRef,A as useState,U as useWatch,W as withScope,L as withSyncEvent}; interactivity/index.js 0000644 00000254437 15151136645 0011135 0 ustar 00 /******/ var __webpack_modules__ = ({ /***/ 622: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ Ob: () => (/* binding */ K), /* harmony export */ Qv: () => (/* binding */ J), /* harmony export */ XX: () => (/* binding */ G), /* harmony export */ fF: () => (/* binding */ l), /* harmony export */ h: () => (/* binding */ _), /* harmony export */ q6: () => (/* binding */ Q), /* harmony export */ uA: () => (/* binding */ x), /* harmony export */ zO: () => (/* binding */ t) /* harmony export */ }); /* unused harmony exports Fragment, createElement, createRef, toChildArray */ var n,l,u,t,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||o!=l.debounceRendering)&&((o=l.debounceRendering)||r)($)}function $(){for(var n,u,t,o,r,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=void 0,r=(o=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(t),O(u.__P,t,o,u.__n,u.__P.namespaceURI,32&o.__u?[r]:null,f,null==r?S(o):r,!!(32&o.__u),c),t.__v=o.__v,t.__.__k[t.__i]=t,N(f,t,c),o.__e=o.__=null,t.__e!=r&&C(t)));$.__r=0}function I(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v,b=l.length;for(f=P(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p:m[y.__i]||p,y.__i=a,g=O(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=A(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P(n,l,u,t,i){var o,r,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),o=0;o<i;o++)null!=(r=l[o])&&"boolean"!=typeof r&&"function"!=typeof r?("string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?r=n.__k[o]=m(null,r,null,null,null):d(r)?r=n.__k[o]=m(k,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?r=n.__k[o]=m(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):n.__k[o]=r,f=o+h,r.__=n,r.__b=n.__b+1,e=null,-1!=(c=r.__i=L(r,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[o]=null;if(a)for(o=0;o<s;o++)null!=(e=u[o])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D(e,e));return t}function A(n,l,u,t){var i,o;if("function"==typeof n.type){for(i=n.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=n,l=A(i[o],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,o,r,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,o=u+1;i>=0||o<l.length;)if(null!=(c=l[r=i>=0?i--:o++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return r;return-1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var o,r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])o=l!=(l=l.replace(f,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=E),C&&C.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k&&null==a.key&&(L=V(a.props.children)),f=I(n,d(L)?L:[L],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f}else{for(T=r.length;T--;)g(r[T]);z(u)}else u.__e=t.__e,u.__k=t.__k,n.then||z(u);l.__e(n,u,t)}else null==r&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q(t.__e,u,t,i,o,r,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(z)}function N(n,u,t){for(var i=0;i<t.length;i++)B(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:d(n)?n.map(V):w({},n)}function q(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,_,m,b=i.props||p,k=t.props,x=t.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(r,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)b===k||c&&u.data==k||(u.data=k);else{if(e=e&&n.call(u.childNodes),!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(u,a,null,w,r)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||j(u,a,w,b[a],r);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"==t.type?u.content:u,d(y)?y:[y],t,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j(u,a,_,b[a],r),a="checked",null!=m&&m!=u[a]&&j(u,a,m,b[a],r))}return u}function B(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function D(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&D(i[o],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function E(n,l,u){return this.constructor(n,u)}function G(u,t,i){var o,r,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||p,p,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),N(e,u,f)}function J(n,l){G(n,l,J)}function K(l,u,t){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&null!=e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,o||l.ref,null)}function Q(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=F(!1),a=F(!0),h=0; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // EXPORTS __webpack_require__.d(__webpack_exports__, { zj: () => (/* reexport */ getConfig), SD: () => (/* reexport */ getContext), V6: () => (/* reexport */ getElement), $K: () => (/* reexport */ getServerContext), vT: () => (/* reexport */ getServerState), jb: () => (/* binding */ privateApis), yT: () => (/* reexport */ splitTask), M_: () => (/* reexport */ store), hb: () => (/* reexport */ useCallback), vJ: () => (/* reexport */ useEffect), ip: () => (/* reexport */ useInit), Nf: () => (/* reexport */ useLayoutEffect), Kr: () => (/* reexport */ useMemo), li: () => (/* reexport */ A), J0: () => (/* reexport */ d), FH: () => (/* reexport */ useWatch), v4: () => (/* reexport */ withScope), mh: () => (/* reexport */ withSyncEvent) }); // EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js var preact_module = __webpack_require__(622); ;// ./node_modules/preact/hooks/dist/hooks.module.js var hooks_module_t,r,hooks_module_u,i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module/* options */.fF,e=hooks_module_c.__b,a=hooks_module_c.__r,v=hooks_module_c.diffed,l=hooks_module_c.__c,m=hooks_module_c.unmount,s=hooks_module_c.__;function p(n,t){hooks_module_c.__h&&hooks_module_c.__h(r,n,hooks_module_o||t),hooks_module_o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return hooks_module_o=1,h(D,n)}function h(n,u,i){var o=p(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c&&c.call(this,n,t,r)||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=p(hooks_module_t++,3);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function _(n,u){var i=p(hooks_module_t++,4);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function A(n){return hooks_module_o=5,T(function(){return{current:n}},[])}function F(n,t,r){hooks_module_o=6,_(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function T(n,r){var u=p(hooks_module_t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return hooks_module_o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=p(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function b(n){var u=p(hooks_module_t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=p(hooks_module_t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){r=null,e&&e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},hooks_module_c.__r=function(n){a&&a(n),hooks_module_t=0;var i=(r=n.__c).__H;i&&(hooks_module_u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],hooks_module_t=0)),hooks_module_u=r},hooks_module_c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&i===hooks_module_c.requestAnimationFrame||((i=hooks_module_c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),hooks_module_u=r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),l&&l(n,t)},hooks_module_c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return"function"==typeof t?t(n):t} ;// ./node_modules/@preact/signals-core/dist/signals-core.module.js var signals_core_module_i=Symbol.for("preact-signals");function signals_core_module_t(){if(!(signals_core_module_s>1)){var i,t=!1;while(void 0!==signals_core_module_h){var r=signals_core_module_h;signals_core_module_h=void 0;signals_core_module_f++;while(void 0!==r){var o=r.o;r.o=void 0;r.f&=-3;if(!(8&r.f)&&signals_core_module_c(r))try{r.c()}catch(r){if(!t){i=r;t=!0}}r=o}}signals_core_module_f=0;signals_core_module_s--;if(t)throw i}else signals_core_module_s--}function signals_core_module_r(i){if(signals_core_module_s>0)return i();signals_core_module_s++;try{return i()}finally{signals_core_module_t()}}var signals_core_module_o=void 0;function n(i){var t=signals_core_module_o;signals_core_module_o=void 0;try{return i()}finally{signals_core_module_o=t}}var signals_core_module_h=void 0,signals_core_module_s=0,signals_core_module_f=0,signals_core_module_v=0;function signals_core_module_e(i){if(void 0!==signals_core_module_o){var t=i.n;if(void 0===t||t.t!==signals_core_module_o){t={i:0,S:i,p:signals_core_module_o.s,n:void 0,t:signals_core_module_o,e:void 0,x:void 0,r:t};if(void 0!==signals_core_module_o.s)signals_core_module_o.s.n=t;signals_core_module_o.s=t;i.n=t;if(32&signals_core_module_o.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=signals_core_module_o.s;t.n=void 0;signals_core_module_o.s.n=t;signals_core_module_o.s=t}return t}}}function signals_core_module_u(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_u.prototype.brand=signals_core_module_i;signals_core_module_u.prototype.h=function(){return!0};signals_core_module_u.prototype.S=function(i){var t=this,r=this.t;if(r!==i&&void 0===i.e){i.x=r;this.t=i;if(void 0!==r)r.e=i;else n(function(){var i;null==(i=t.W)||i.call(t)})}};signals_core_module_u.prototype.U=function(i){var t=this;if(void 0!==this.t){var r=i.e,o=i.x;if(void 0!==r){r.x=o;i.e=void 0}if(void 0!==o){o.e=r;i.x=void 0}if(i===this.t){this.t=o;if(void 0===o)n(function(){var i;null==(i=t.Z)||i.call(t)})}}};signals_core_module_u.prototype.subscribe=function(i){var t=this;return E(function(){var r=t.value,n=signals_core_module_o;signals_core_module_o=void 0;try{i(r)}finally{signals_core_module_o=n}},{name:"sub"})};signals_core_module_u.prototype.valueOf=function(){return this.value};signals_core_module_u.prototype.toString=function(){return this.value+""};signals_core_module_u.prototype.toJSON=function(){return this.value};signals_core_module_u.prototype.peek=function(){var i=signals_core_module_o;signals_core_module_o=void 0;try{return this.value}finally{signals_core_module_o=i}};Object.defineProperty(signals_core_module_u.prototype,"value",{get:function(){var i=signals_core_module_e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(signals_core_module_f>100)throw new Error("Cycle detected");this.v=i;this.i++;signals_core_module_v++;signals_core_module_s++;try{for(var r=this.t;void 0!==r;r=r.x)r.t.N()}finally{signals_core_module_t()}}}});function signals_core_module_d(i,t){return new signals_core_module_u(i,t)}function signals_core_module_c(i){for(var t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function signals_core_module_a(i){for(var t=i.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r)t.r=r;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function signals_core_module_l(i){var t=i.s,r=void 0;while(void 0!==t){var o=t.p;if(-1===t.i){t.S.U(t);if(void 0!==o)o.n=t.n;if(void 0!==t.n)t.n.p=o}else r=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=o}i.s=r}function signals_core_module_y(i,t){signals_core_module_u.call(this,void 0);this.x=i;this.s=void 0;this.g=signals_core_module_v-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_y.prototype=new signals_core_module_u;signals_core_module_y.prototype.h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===signals_core_module_v)return!0;this.g=signals_core_module_v;this.f|=1;if(this.i>0&&!signals_core_module_c(this)){this.f&=-2;return!0}var i=signals_core_module_o;try{signals_core_module_a(this);signals_core_module_o=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}signals_core_module_o=i;signals_core_module_l(this);this.f&=-2;return!0};signals_core_module_y.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}signals_core_module_u.prototype.S.call(this,i)};signals_core_module_y.prototype.U=function(i){if(void 0!==this.t){signals_core_module_u.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};signals_core_module_y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(signals_core_module_y.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=signals_core_module_e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function signals_core_module_w(i,t){return new signals_core_module_y(i,t)}function signals_core_module_(i){var r=i.u;i.u=void 0;if("function"==typeof r){signals_core_module_s++;var n=signals_core_module_o;signals_core_module_o=void 0;try{r()}catch(t){i.f&=-2;i.f|=8;signals_core_module_b(i);throw t}finally{signals_core_module_o=n;signals_core_module_t()}}}function signals_core_module_b(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;signals_core_module_(i)}function signals_core_module_g(i){if(signals_core_module_o!==this)throw new Error("Out-of-order effect");signals_core_module_l(this);signals_core_module_o=i;this.f&=-2;if(8&this.f)signals_core_module_b(this);signals_core_module_t()}function signals_core_module_p(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name}signals_core_module_p.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if("function"==typeof t)this.u=t}finally{i()}};signals_core_module_p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1;this.f&=-9;signals_core_module_(this);signals_core_module_a(this);signals_core_module_s++;var i=signals_core_module_o;signals_core_module_o=this;return signals_core_module_g.bind(this,i)};signals_core_module_p.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=signals_core_module_h;signals_core_module_h=this}};signals_core_module_p.prototype.d=function(){this.f|=8;if(!(1&this.f))signals_core_module_b(this)};signals_core_module_p.prototype.dispose=function(){this.d()};function E(i,t){var r=new signals_core_module_p(i,t);try{r.c()}catch(i){r.d();throw i}var o=r.d.bind(r);o[Symbol.dispose]=o;return o} ;// ./node_modules/@preact/signals/dist/signals.module.js var signals_module_v,signals_module_s;function signals_module_l(i,n){preact_module/* options */.fF[i]=n.bind(null,preact_module/* options */.fF[i]||function(){})}function signals_module_d(i){if(signals_module_s)signals_module_s();signals_module_s=i&&i.S()}function signals_module_h(i){var r=this,f=i.data,o=useSignal(f);o.value=f;var e=T(function(){var i=r.__v;while(i=i.__)if(i.__c){i.__c.__$f|=4;break}r.__$u.c=function(){var i,t=r.__$u.S(),f=e.value;t();if((0,preact_module/* isValidElement */.zO)(f)||3!==(null==(i=r.base)?void 0:i.nodeType)){r.__$f|=1;r.setState({})}else r.base.data=f};return signals_core_module_w(function(){var i=o.value.value;return 0===i?0:!0===i?"":i||""})},[]);return e.value}signals_module_h.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_h},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(i,r){if("string"==typeof r.type){var n,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!n)r.__np=n={};n[f]=o;t[f]=o.peek()}}}i(r)});signals_module_l("__r",function(i,r){signals_module_d();var n,t=r.__c;if(t){t.__$f&=-2;if(void 0===(n=t.__$u))t.__$u=n=function(i){var r;E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(n);i(r)});signals_module_l("__e",function(i,r,n,t){signals_module_d();signals_module_v=void 0;i(r,n,t)});signals_module_l("diffed",function(i,r){signals_module_d();signals_module_v=void 0;var n;if("string"==typeof r.type&&(n=r.__e)){var t=r.__np,f=r.props;if(t){var o=n.U;if(o)for(var e in o){var u=o[e];if(void 0!==u&&!(e in t)){u.d();o[e]=void 0}}else n.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_p(n,a,s,f);o[a]=c}else c.o(s,f)}}}i(r)});function signals_module_p(i,r,n,t){var f=r in i&&void 0===i.ownerSVGElement,o=signals_core_module_d(n);return{o:function(i,r){o.value=i;t=r},d:E(function(){var n=o.value.value;if(t[r]!==n){t[r]=n;if(f)i[r]=n;else if(n)i.setAttribute(r,n);else i.removeAttribute(r)}})}}signals_module_l("unmount",function(i,r){if("string"==typeof r.type){var n=r.__e;if(n){var t=n.U;if(t){n.U=void 0;for(var f in t){var o=t[f];if(o)o.d()}}}}else{var e=r.__c;if(e){var u=e.__$u;if(u){e.__$u=void 0;u.d()}}}i(r)});signals_module_l("__h",function(i,r,n,t){if(t<3||9===t)r.__$f|=2;i(r,n,t)});preact_module/* Component */.uA.prototype.shouldComponentUpdate=function(i,r){if(this.__R)return!0;var n=this.__$u,t=n&&void 0!==n.s;for(var f in r)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(t||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(t||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var o in i)if("__source"!==o&&i[o]!==this.props[o])return!0;for(var e in this.props)if(!(e in i))return!0;return!1};function useSignal(i){return T(function(){return signals_core_module_d(i)},[])}function useComputed(i){var r=f(i);r.current=i;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(i){var r=f(i);r.current=i;o(function(){return c(function(){return r.current()})},[])} ;// ./node_modules/@wordpress/interactivity/build-module/namespaces.js const namespaceStack = []; const getNamespace = () => namespaceStack.slice(-1)[0]; const setNamespace = (namespace) => { namespaceStack.push(namespace); }; const resetNamespace = () => { namespaceStack.pop(); }; ;// ./node_modules/@wordpress/interactivity/build-module/scopes.js const scopeStack = []; const getScope = () => scopeStack.slice(-1)[0]; const setScope = (scope) => { scopeStack.push(scope); }; const resetScope = () => { scopeStack.pop(); }; const throwNotInScope = (method) => { throw Error( `Cannot call \`${method}()\` when there is no scope. If you are using an async function, please consider using a generator instead. If you are using some sort of async callbacks, like \`setTimeout\`, please wrap the callback with \`withScope(callback)\`.` ); }; const getContext = (namespace) => { const scope = getScope(); if (true) { if (!scope) { throwNotInScope("getContext"); } } return scope.context[namespace || getNamespace()]; }; const getElement = () => { const scope = getScope(); let deepReadOnlyOptions = {}; if (true) { if (!scope) { throwNotInScope("getElement"); } deepReadOnlyOptions = { errorMessage: "Don't mutate the attributes from `getElement`, use `data-wp-bind` to modify the attributes of an element instead." }; } const { ref, attributes } = scope; return Object.freeze({ ref: ref.current, attributes: deepReadOnly(attributes, deepReadOnlyOptions) }); }; const navigationContextSignal = signals_core_module_d(0); function getServerContext(namespace) { const scope = getScope(); if (true) { if (!scope) { throwNotInScope("getServerContext"); } } getServerContext.subscribe = navigationContextSignal.value; return deepClone(scope.serverContext[namespace || getNamespace()]); } getServerContext.subscribe = 0; ;// ./node_modules/@wordpress/interactivity/build-module/utils.js const afterNextFrame = (callback) => { return new Promise((resolve) => { const done = () => { clearTimeout(timeout); window.cancelAnimationFrame(raf); setTimeout(() => { callback(); resolve(); }); }; const timeout = setTimeout(done, 100); const raf = window.requestAnimationFrame(done); }); }; const splitTask = typeof window.scheduler?.yield === "function" ? window.scheduler.yield.bind(window.scheduler) : () => { return new Promise((resolve) => { setTimeout(resolve, 0); }); }; const onDOMReady = (callback) => { const [navigation] = performance.getEntriesByType("navigation"); if (navigation.domContentLoadedEventStart > 0) { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; function createFlusher(compute, notify) { let flush = () => void 0; const dispose = E(function() { flush = this.c.bind(this); this.x = compute; this.c = notify; return compute(); }); return { flush, dispose }; } function utils_useSignalEffect(callback) { y(() => { let eff = null; let isExecuting = false; const notify = async () => { if (eff && !isExecuting) { isExecuting = true; await afterNextFrame(eff.flush); isExecuting = false; } }; eff = createFlusher(callback, notify); return eff.dispose; }, []); } function withScope(func) { const scope = getScope(); const ns = getNamespace(); let wrapped; if (func?.constructor?.name === "GeneratorFunction") { wrapped = async (...args) => { const gen = func(...args); let value; let it; let error; while (true) { setNamespace(ns); setScope(scope); try { it = error ? gen.throw(error) : gen.next(value); error = void 0; } catch (e) { throw e; } finally { resetScope(); resetNamespace(); } try { value = await it.value; } catch (e) { error = e; } if (it.done) { if (error) { throw error; } else { break; } } } return value; }; } else { wrapped = (...args) => { setNamespace(ns); setScope(scope); try { return func(...args); } finally { resetNamespace(); resetScope(); } }; } const syncAware = func; if (syncAware.sync) { const syncAwareWrapped = wrapped; syncAwareWrapped.sync = true; return syncAwareWrapped; } return wrapped; } function useWatch(callback) { utils_useSignalEffect(withScope(callback)); } function useInit(callback) { y(withScope(callback), []); } function useEffect(callback, inputs) { y(withScope(callback), inputs); } function useLayoutEffect(callback, inputs) { _(withScope(callback), inputs); } function useCallback(callback, inputs) { return q(withScope(callback), inputs); } function useMemo(factory, inputs) { return T(withScope(factory), inputs); } const createRootFragment = (parent, replaceNode) => { replaceNode = [].concat(replaceNode); const sibling = replaceNode[replaceNode.length - 1].nextSibling; function insert(child, root) { parent.insertBefore(child, root || sibling); } return parent.__k = { nodeType: 1, parentNode: parent, firstChild: replaceNode[0], childNodes: replaceNode, insertBefore: insert, appendChild: insert, removeChild(c) { parent.removeChild(c); }, contains(c) { parent.contains(c); } }; }; function kebabToCamelCase(str) { return str.replace(/^-+|-+$/g, "").toLowerCase().replace(/-([a-z])/g, function(_match, group1) { return group1.toUpperCase(); }); } const logged = /* @__PURE__ */ new Set(); const warn = (message) => { if (true) { if (logged.has(message)) { return; } console.warn(message); try { throw Error(message); } catch (e) { } logged.add(message); } }; const isPlainObject = (candidate) => Boolean( candidate && typeof candidate === "object" && candidate.constructor === Object ); function withSyncEvent(callback) { const syncAware = callback; syncAware.sync = true; return syncAware; } const readOnlyMap = /* @__PURE__ */ new WeakMap(); const createDeepReadOnlyHandlers = (errorMessage) => { const handleError = () => { if (true) { warn(errorMessage); } return false; }; return { get(target, prop) { const value = target[prop]; if (value && typeof value === "object") { return deepReadOnly(value, { errorMessage }); } return value; }, set: handleError, deleteProperty: handleError, defineProperty: handleError }; }; function deepReadOnly(obj, options) { const errorMessage = options?.errorMessage ?? "Cannot modify read-only object"; if (!readOnlyMap.has(obj)) { const handlers = createDeepReadOnlyHandlers(errorMessage); readOnlyMap.set(obj, new Proxy(obj, handlers)); } return readOnlyMap.get(obj); } const navigationSignal = signals_core_module_d(0); function deepClone(source) { if (isPlainObject(source)) { return Object.fromEntries( Object.entries(source).map(([key, value]) => [ key, deepClone(value) ]) ); } if (Array.isArray(source)) { return source.map((i) => deepClone(i)); } return source; } ;// ./node_modules/@wordpress/interactivity/build-module/proxies/registry.js const objToProxy = /* @__PURE__ */ new WeakMap(); const proxyToObj = /* @__PURE__ */ new WeakMap(); const proxyToNs = /* @__PURE__ */ new WeakMap(); const supported = /* @__PURE__ */ new Set([Object, Array]); const createProxy = (namespace, obj, handlers) => { if (!shouldProxy(obj)) { throw Error("This object cannot be proxified."); } if (!objToProxy.has(obj)) { const proxy = new Proxy(obj, handlers); objToProxy.set(obj, proxy); proxyToObj.set(proxy, obj); proxyToNs.set(proxy, namespace); } return objToProxy.get(obj); }; const getProxyFromObject = (obj) => objToProxy.get(obj); const getNamespaceFromProxy = (proxy) => proxyToNs.get(proxy); const shouldProxy = (candidate) => { if (typeof candidate !== "object" || candidate === null) { return false; } return !proxyToNs.has(candidate) && supported.has(candidate.constructor); }; const getObjectFromProxy = (proxy) => proxyToObj.get(proxy); ;// ./node_modules/@wordpress/interactivity/build-module/proxies/signals.js const NO_SCOPE = {}; class PropSignal { /** * Proxy that holds the property this PropSignal is associated with. */ owner; /** * Relation of computeds by scope. These computeds are read-only signals * that depend on whether the property is a value or a getter and, * therefore, can return different values depending on the scope in which * the getter is accessed. */ computedsByScope; /** * Signal with the value assigned to the related property. */ valueSignal; /** * Signal with the getter assigned to the related property. */ getterSignal; /** * Pending getter to be consolidated. */ pendingGetter; /** * Structure that manages reactivity for a property in a state object, using * signals to keep track of property value or getter modifications. * * @param owner Proxy that holds the property this instance is associated * with. */ constructor(owner) { this.owner = owner; this.computedsByScope = /* @__PURE__ */ new WeakMap(); } /** * Changes the internal value. If a getter was set before, it is set to * `undefined`. * * @param value New value. */ setValue(value) { this.update({ value }); } /** * Changes the internal getter. If a value was set before, it is set to * `undefined`. * * @param getter New getter. */ setGetter(getter) { this.update({ get: getter }); } /** * Changes the internal getter asynchronously. * * The update is made in a microtask, which prevents issues with getters * accessing the state, and ensures the update occurs before any render. * * @param getter New getter. */ setPendingGetter(getter) { this.pendingGetter = getter; queueMicrotask(() => this.consolidateGetter()); } /** * Consolidate the pending value of the getter. */ consolidateGetter() { const getter = this.pendingGetter; if (getter) { this.pendingGetter = void 0; this.update({ get: getter }); } } /** * Returns the computed that holds the result of evaluating the prop in the * current scope. * * These computeds are read-only signals that depend on whether the property * is a value or a getter and, therefore, can return different values * depending on the scope in which the getter is accessed. * * @return Computed that depends on the scope. */ getComputed() { const scope = getScope() || NO_SCOPE; if (!this.valueSignal && !this.getterSignal) { this.update({}); } if (this.pendingGetter) { this.consolidateGetter(); } if (!this.computedsByScope.has(scope)) { const callback = () => { const getter = this.getterSignal?.value; return getter ? getter.call(this.owner) : this.valueSignal?.value; }; setNamespace(getNamespaceFromProxy(this.owner)); this.computedsByScope.set( scope, signals_core_module_w(withScope(callback)) ); resetNamespace(); } return this.computedsByScope.get(scope); } /** * Updates the internal signals for the value and the getter of the * corresponding prop. * * @param param0 * @param param0.get New getter. * @param param0.value New value. */ update({ get, value }) { if (!this.valueSignal) { this.valueSignal = signals_core_module_d(value); this.getterSignal = signals_core_module_d(get); } else if (value !== this.valueSignal.peek() || get !== this.getterSignal.peek()) { signals_core_module_r(() => { this.valueSignal.value = value; this.getterSignal.value = get; }); } } } ;// ./node_modules/@wordpress/interactivity/build-module/proxies/state.js const wellKnownSymbols = new Set( Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter((value) => typeof value === "symbol") ); const proxyToProps = /* @__PURE__ */ new WeakMap(); const hasPropSignal = (proxy, key) => proxyToProps.has(proxy) && proxyToProps.get(proxy).has(key); const getPropSignal = (proxy, key, initial) => { if (!proxyToProps.has(proxy)) { proxyToProps.set(proxy, /* @__PURE__ */ new Map()); } key = typeof key === "number" ? `${key}` : key; const props = proxyToProps.get(proxy); if (!props.has(key)) { const ns = getNamespaceFromProxy(proxy); const prop = new PropSignal(proxy); props.set(key, prop); if (initial) { const { get, value } = initial; if (get) { prop.setGetter(get); } else { prop.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } } } return props.get(key); }; const objToIterable = /* @__PURE__ */ new WeakMap(); let peeking = false; const PENDING_GETTER = Symbol("PENDING_GETTER"); const stateHandlers = { get(target, key, receiver) { if (peeking || !target.hasOwnProperty(key) && key in target || typeof key === "symbol" && wellKnownSymbols.has(key)) { return Reflect.get(target, key, receiver); } const desc = Object.getOwnPropertyDescriptor(target, key); const prop = getPropSignal(receiver, key, desc); const result = prop.getComputed().value; if (result === PENDING_GETTER) { throw PENDING_GETTER; } if (typeof result === "function") { const ns = getNamespaceFromProxy(receiver); return (...args) => { setNamespace(ns); try { return result.call(receiver, ...args); } finally { resetNamespace(); } }; } return result; }, set(target, key, value, receiver) { setNamespace(getNamespaceFromProxy(receiver)); try { return Reflect.set(target, key, value, receiver); } finally { resetNamespace(); } }, defineProperty(target, key, desc) { const isNew = !(key in target); const result = Reflect.defineProperty(target, key, desc); if (result) { const receiver = getProxyFromObject(target); const prop = getPropSignal(receiver, key); const { get, value } = desc; if (get) { prop.setGetter(get); } else { const ns = getNamespaceFromProxy(receiver); prop.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } if (isNew && objToIterable.has(target)) { objToIterable.get(target).value++; } if (Array.isArray(target) && proxyToProps.get(receiver)?.has("length")) { const length = getPropSignal(receiver, "length"); length.setValue(target.length); } } return result; }, deleteProperty(target, key) { const result = Reflect.deleteProperty(target, key); if (result) { const prop = getPropSignal(getProxyFromObject(target), key); prop.setValue(void 0); if (objToIterable.has(target)) { objToIterable.get(target).value++; } } return result; }, ownKeys(target) { if (!objToIterable.has(target)) { objToIterable.set(target, signals_core_module_d(0)); } objToIterable._ = objToIterable.get(target).value; return Reflect.ownKeys(target); } }; const proxifyState = (namespace, obj) => { return createProxy(namespace, obj, stateHandlers); }; const peek = (obj, key) => { peeking = true; try { return obj[key]; } finally { peeking = false; } }; const deepMergeRecursive = (target, source, override = true) => { if (!(isPlainObject(target) && isPlainObject(source))) { return; } let hasNewKeys = false; for (const key in source) { const isNew = !(key in target); hasNewKeys = hasNewKeys || isNew; const desc = Object.getOwnPropertyDescriptor(source, key); const proxy = getProxyFromObject(target); const propSignal = !!proxy && hasPropSignal(proxy, key) && getPropSignal(proxy, key); if (typeof desc.get === "function" || typeof desc.set === "function") { if (override || isNew) { Object.defineProperty(target, key, { ...desc, configurable: true, enumerable: true }); if (desc.get && propSignal) { propSignal.setPendingGetter(desc.get); } } } else if (isPlainObject(source[key])) { const targetValue = Object.getOwnPropertyDescriptor(target, key)?.value; if (isNew || override && !isPlainObject(targetValue)) { target[key] = {}; if (propSignal) { const ns = getNamespaceFromProxy(proxy); propSignal.setValue( proxifyState(ns, target[key]) ); } deepMergeRecursive(target[key], source[key], override); } else if (isPlainObject(targetValue)) { deepMergeRecursive(target[key], source[key], override); } } else if (override || isNew) { Object.defineProperty(target, key, desc); if (propSignal) { const { value } = desc; const ns = getNamespaceFromProxy(proxy); propSignal.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } } } if (hasNewKeys && objToIterable.has(target)) { objToIterable.get(target).value++; } }; const deepMerge = (target, source, override = true) => signals_core_module_r( () => deepMergeRecursive( getObjectFromProxy(target) || target, source, override ) ); ;// ./node_modules/@wordpress/interactivity/build-module/proxies/store.js const storeRoots = /* @__PURE__ */ new WeakSet(); const storeHandlers = { get: (target, key, receiver) => { const result = Reflect.get(target, key); const ns = getNamespaceFromProxy(receiver); if (typeof result === "undefined" && storeRoots.has(receiver)) { const obj = {}; Reflect.set(target, key, obj); return proxifyStore(ns, obj, false); } if (typeof result === "function") { setNamespace(ns); const scoped = withScope(result); resetNamespace(); return scoped; } if (isPlainObject(result) && shouldProxy(result)) { return proxifyStore(ns, result, false); } return result; } }; const proxifyStore = (namespace, obj, isRoot = true) => { const proxy = createProxy(namespace, obj, storeHandlers); if (proxy && isRoot) { storeRoots.add(proxy); } return proxy; }; ;// ./node_modules/@wordpress/interactivity/build-module/proxies/context.js const contextObjectToProxy = /* @__PURE__ */ new WeakMap(); const contextObjectToFallback = /* @__PURE__ */ new WeakMap(); const contextProxies = /* @__PURE__ */ new WeakSet(); const descriptor = Reflect.getOwnPropertyDescriptor; const contextHandlers = { get: (target, key) => { const fallback = contextObjectToFallback.get(target); const currentProp = target[key]; return key in target ? currentProp : fallback[key]; }, set: (target, key, value) => { const fallback = contextObjectToFallback.get(target); const obj = key in target || !(key in fallback) ? target : fallback; obj[key] = value; return true; }, ownKeys: (target) => [ .../* @__PURE__ */ new Set([ ...Object.keys(contextObjectToFallback.get(target)), ...Object.keys(target) ]) ], getOwnPropertyDescriptor: (target, key) => descriptor(target, key) || descriptor(contextObjectToFallback.get(target), key), has: (target, key) => Reflect.has(target, key) || Reflect.has(contextObjectToFallback.get(target), key) }; const proxifyContext = (current, inherited = {}) => { if (contextProxies.has(current)) { throw Error("This object cannot be proxified."); } contextObjectToFallback.set(current, inherited); if (!contextObjectToProxy.has(current)) { const proxy = new Proxy(current, contextHandlers); contextObjectToProxy.set(current, proxy); contextProxies.add(proxy); } return contextObjectToProxy.get(current); }; ;// ./node_modules/@wordpress/interactivity/build-module/proxies/index.js ;// ./node_modules/@wordpress/interactivity/build-module/store.js const stores = /* @__PURE__ */ new Map(); const rawStores = /* @__PURE__ */ new Map(); const storeLocks = /* @__PURE__ */ new Map(); const storeConfigs = /* @__PURE__ */ new Map(); const serverStates = /* @__PURE__ */ new Map(); const getConfig = (namespace) => storeConfigs.get(namespace || getNamespace()) || {}; function getServerState(namespace) { const ns = namespace || getNamespace(); if (!serverStates.has(ns)) { serverStates.set(ns, {}); } getServerState.subscribe = navigationSignal.value; return deepClone(serverStates.get(ns)); } getServerState.subscribe = 0; const universalUnlock = "I acknowledge that using a private store means my plugin will inevitably break on the next store release."; function store(namespace, { state = {}, ...block } = {}, { lock = false } = {}) { if (!stores.has(namespace)) { if (lock !== universalUnlock) { storeLocks.set(namespace, lock); } const rawStore = { state: proxifyState( namespace, isPlainObject(state) ? state : {} ), ...block }; const proxifiedStore = proxifyStore(namespace, rawStore); rawStores.set(namespace, rawStore); stores.set(namespace, proxifiedStore); } else { if (lock !== universalUnlock && !storeLocks.has(namespace)) { storeLocks.set(namespace, lock); } else { const storeLock = storeLocks.get(namespace); const isLockValid = lock === universalUnlock || lock !== true && lock === storeLock; if (!isLockValid) { if (!storeLock) { throw Error("Cannot lock a public store"); } else { throw Error( "Cannot unlock a private store with an invalid lock code" ); } } } const target = rawStores.get(namespace); deepMerge(target, block); deepMerge(target.state, state); } return stores.get(namespace); } const parseServerData = (dom = document) => { const jsonDataScriptTag = ( // Preferred Script Module data passing form dom.getElementById( "wp-script-module-data-@wordpress/interactivity" ) ?? // Legacy form dom.getElementById("wp-interactivity-data") ); if (jsonDataScriptTag?.textContent) { try { return JSON.parse(jsonDataScriptTag.textContent); } catch { } } return {}; }; const populateServerData = (data) => { serverStates.clear(); storeConfigs.clear(); if (isPlainObject(data?.state)) { Object.entries(data.state).forEach(([namespace, state]) => { const st = store(namespace, {}, { lock: universalUnlock }); deepMerge(st.state, state, false); serverStates.set(namespace, state); }); } if (isPlainObject(data?.config)) { Object.entries(data.config).forEach(([namespace, config]) => { storeConfigs.set(namespace, config); }); } if (isPlainObject(data?.derivedStateClosures)) { Object.entries(data.derivedStateClosures).forEach( ([namespace, paths]) => { const st = store( namespace, {}, { lock: universalUnlock } ); paths.forEach((path) => { const pathParts = path.split("."); const prop = pathParts.splice(-1, 1)[0]; const parent = pathParts.reduce( (prev, key) => peek(prev, key), st ); const desc = Object.getOwnPropertyDescriptor( parent, prop ); if (isPlainObject(desc?.value)) { parent[prop] = PENDING_GETTER; } }); } ); } }; ;// ./node_modules/@wordpress/interactivity/build-module/hooks.js function isNonDefaultDirectiveSuffix(entry) { return entry.suffix !== null; } function isDefaultDirectiveSuffix(entry) { return entry.suffix === null; } const context = (0,preact_module/* createContext */.q6)({ client: {}, server: {} }); const directiveCallbacks = {}; const directivePriorities = {}; const directive = (name, callback, { priority = 10 } = {}) => { directiveCallbacks[name] = callback; directivePriorities[name] = priority; }; const resolve = (path, namespace) => { if (!namespace) { warn( `Namespace missing for "${path}". The value for that path won't be resolved.` ); return; } let resolvedStore = stores.get(namespace); if (typeof resolvedStore === "undefined") { resolvedStore = store( namespace, {}, { lock: universalUnlock } ); } const current = { ...resolvedStore, context: getScope().context[namespace] }; try { const pathParts = path.split("."); return pathParts.reduce((acc, key) => acc[key], current); } catch (e) { if (e === PENDING_GETTER) { return PENDING_GETTER; } } }; const getEvaluate = ({ scope }) => ( // TODO: When removing the temporarily remaining `value( ...args )` call below, remove the `...args` parameter too. (entry, ...args) => { let { value: path, namespace } = entry; if (typeof path !== "string") { throw new Error("The `value` prop should be a string path"); } const hasNegationOperator = path[0] === "!" && !!(path = path.slice(1)); setScope(scope); const value = resolve(path, namespace); if (typeof value === "function") { if (hasNegationOperator) { warn( "Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead." ); const functionResult = !value(...args); resetScope(); return functionResult; } resetScope(); const wrappedFunction = (...functionArgs) => { setScope(scope); const functionResult = value(...functionArgs); resetScope(); return functionResult; }; if (value.sync) { const syncAwareFunction = wrappedFunction; syncAwareFunction.sync = true; } return wrappedFunction; } const result = value; resetScope(); return hasNegationOperator && value !== PENDING_GETTER ? !result : result; } ); const getPriorityLevels = (directives) => { const byPriority = Object.keys(directives).reduce((obj, name) => { if (directiveCallbacks[name]) { const priority = directivePriorities[name]; (obj[priority] = obj[priority] || []).push(name); } return obj; }, {}); return Object.entries(byPriority).sort(([p1], [p2]) => parseInt(p1) - parseInt(p2)).map(([, arr]) => arr); }; const Directives = ({ directives, priorityLevels: [currentPriorityLevel, ...nextPriorityLevels], element, originalProps, previousScope }) => { const scope = A({}).current; scope.evaluate = q(getEvaluate({ scope }), []); const { client, server } = x(context); scope.context = client; scope.serverContext = server; scope.ref = previousScope?.ref || A(null); element = (0,preact_module/* cloneElement */.Ob)(element, { ref: scope.ref }); scope.attributes = element.props; const children = nextPriorityLevels.length > 0 ? (0,preact_module.h)(Directives, { directives, priorityLevels: nextPriorityLevels, element, originalProps, previousScope: scope }) : element; const props = { ...originalProps, children }; const directiveArgs = { directives, props, element, context, evaluate: scope.evaluate }; setScope(scope); for (const directiveName of currentPriorityLevel) { const wrapper = directiveCallbacks[directiveName]?.(directiveArgs); if (wrapper !== void 0) { props.children = wrapper; } } resetScope(); return props.children; }; const old = preact_module/* options */.fF.vnode; preact_module/* options */.fF.vnode = (vnode) => { if (vnode.props.__directives) { const props = vnode.props; const directives = props.__directives; if (directives.key) { vnode.key = directives.key.find(isDefaultDirectiveSuffix).value; } delete props.__directives; const priorityLevels = getPriorityLevels(directives); if (priorityLevels.length > 0) { vnode.props = { directives, priorityLevels, originalProps: props, type: vnode.type, element: (0,preact_module.h)(vnode.type, props), top: true }; vnode.type = Directives; } } if (old) { old(vnode); } }; ;// ./node_modules/@wordpress/interactivity/build-module/directives.js const warnUniqueIdWithTwoHyphens = (prefix, suffix, uniqueId) => { if (true) { warn( `The usage of data-wp-${prefix}--${suffix}${uniqueId ? `--${uniqueId}` : ""} (two hyphens for unique ID) is deprecated and will stop working in WordPress 7.1. Please use data-wp-${prefix}${uniqueId ? `--${suffix}---${uniqueId}` : `---${suffix}`} (three hyphens for unique ID) from now on.` ); } }; const warnUniqueIdNotSupported = (prefix, uniqueId) => { if (true) { warn( `Unique IDs are not supported for the data-wp-${prefix} directive. Ignoring the directive with unique ID "${uniqueId}".` ); } }; const warnWithSyncEvent = (wrongPrefix, rightPrefix) => { if (true) { warn( `The usage of data-wp-${wrongPrefix} is deprecated and will stop working in WordPress 7.0. Please, use data-wp-${rightPrefix} with the withSyncEvent() helper from now on.` ); } }; function wrapEventAsync(event) { const handler = { get(target, prop, receiver) { const value = target[prop]; switch (prop) { case "currentTarget": if (true) { warn( `Accessing the synchronous event.${prop} property in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().` ); } break; case "preventDefault": case "stopImmediatePropagation": case "stopPropagation": if (true) { warn( `Using the synchronous event.${prop}() function in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().` ); } break; } if (value instanceof Function) { return function(...args) { return value.apply( this === receiver ? target : this, args ); }; } return value; } }; return new Proxy(event, handler); } const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g; const ruleClean = /\/\*[^]*?\*\/| +/g; const ruleNewline = /\n+/g; const empty = " "; const cssStringToObject = (val) => { const tree = [{}]; let block, left; while (block = newRule.exec(val.replace(ruleClean, ""))) { if (block[4]) { tree.shift(); } else if (block[3]) { left = block[3].replace(ruleNewline, empty).trim(); tree.unshift(tree[0][left] = tree[0][left] || {}); } else { tree[0][block[1]] = block[2].replace(ruleNewline, empty).trim(); } } return tree[0]; }; const getGlobalEventDirective = (type) => { return ({ directives, evaluate }) => { directives[`on-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const suffixParts = entry.suffix.split("--", 2); const eventName = suffixParts[0]; if (true) { if (suffixParts[1]) { warnUniqueIdWithTwoHyphens( `on-${type}`, suffixParts[0], suffixParts[1] ); } } useInit(() => { const cb = (event) => { const result = evaluate(entry); if (typeof result === "function") { if (!result?.sync) { event = wrapEventAsync(event); } result(event); } }; const globalVar = type === "window" ? window : document; globalVar.addEventListener(eventName, cb); return () => globalVar.removeEventListener(eventName, cb); }); }); }; }; const evaluateItemKey = (inheritedValue, namespace, item, itemProp, eachKey) => { const clientContextWithItem = { ...inheritedValue.client, [namespace]: { ...inheritedValue.client[namespace], [itemProp]: item } }; const scope = { ...getScope(), context: clientContextWithItem, serverContext: inheritedValue.server }; return eachKey ? getEvaluate({ scope })(eachKey) : item; }; const useItemContexts = function* (inheritedValue, namespace, items, itemProp, eachKey) { const { current: itemContexts } = A(/* @__PURE__ */ new Map()); for (const item of items) { const key = evaluateItemKey( inheritedValue, namespace, item, itemProp, eachKey ); if (!itemContexts.has(key)) { itemContexts.set( key, proxifyContext( proxifyState(namespace, { // Inits the item prop in the context to shadow it in case // it was inherited from the parent context. The actual // value is set in the `wp-each` directive later on. [itemProp]: void 0 }), inheritedValue.client[namespace] ) ); } yield [item, itemContexts.get(key), key]; } }; const getGlobalAsyncEventDirective = (type) => { return ({ directives, evaluate }) => { directives[`on-async-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (true) { warnWithSyncEvent(`on-async-${type}`, `on-${type}`); } const eventName = entry.suffix.split("--", 1)[0]; useInit(() => { const cb = async (event) => { await splitTask(); const result = evaluate(entry); if (typeof result === "function") { result(event); } }; const globalVar = type === "window" ? window : document; globalVar.addEventListener(eventName, cb, { passive: true }); return () => globalVar.removeEventListener(eventName, cb); }); }); }; }; const routerRegions = /* @__PURE__ */ new Map(); var directives_default = () => { directive( "context", ({ directives: { context }, props: { children }, context: inheritedContext }) => { const entries = context.filter(isDefaultDirectiveSuffix).reverse(); if (!entries.length) { if (true) { warn( "The usage of data-wp-context--unique-id (two hyphens) is not supported. To add a unique ID to the directive, please use data-wp-context---unique-id (three hyphens) instead." ); } return; } const { Provider } = inheritedContext; const { client: inheritedClient, server: inheritedServer } = x(inheritedContext); const client = A({}); const server = {}; const result = { client: { ...inheritedClient }, server: { ...inheritedServer } }; const namespaces = /* @__PURE__ */ new Set(); entries.forEach(({ value, namespace, uniqueId }) => { if (!isPlainObject(value)) { if (true) { warn( `The value of data-wp-context${uniqueId ? `---${uniqueId}` : ""} on the ${namespace} namespace must be a valid stringified JSON object.` ); } return; } if (!client.current[namespace]) { client.current[namespace] = proxifyState(namespace, {}); } deepMerge( client.current[namespace], deepClone(value), false ); server[namespace] = value; namespaces.add(namespace); }); namespaces.forEach((namespace) => { result.client[namespace] = proxifyContext( client.current[namespace], inheritedClient[namespace] ); result.server[namespace] = proxifyContext( server[namespace], inheritedServer[namespace] ); }); return (0,preact_module.h)(Provider, { value: result }, children); }, { priority: 5 } ); directive("watch", ({ directives: { watch }, evaluate }) => { watch.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("watch", entry.suffix); } } useWatch(() => { let start; if (false) {} let result = evaluate(entry); if (typeof result === "function") { result = result(); } if (false) {} return result; }); }); }); directive("init", ({ directives: { init }, evaluate }) => { init.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("init", entry.suffix); } } useInit(() => { let start; if (false) {} let result = evaluate(entry); if (typeof result === "function") { result = result(); } if (false) {} return result; }); }); }); directive("on", ({ directives: { on }, element, evaluate }) => { const events = /* @__PURE__ */ new Map(); on.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const suffixParts = entry.suffix.split("--", 2); if (true) { if (suffixParts[1]) { warnUniqueIdWithTwoHyphens( "on", suffixParts[0], suffixParts[1] ); } } if (!events.has(suffixParts[0])) { events.set(suffixParts[0], /* @__PURE__ */ new Set()); } events.get(suffixParts[0]).add(entry); }); events.forEach((entries, eventType) => { const existingHandler = element.props[`on${eventType}`]; element.props[`on${eventType}`] = (event) => { if (existingHandler) { existingHandler(event); } entries.forEach((entry) => { let start; if (false) {} const result = evaluate(entry); if (typeof result === "function") { if (!result?.sync) { event = wrapEventAsync(event); } result(event); } if (false) {} }); }; }); }); directive( "on-async", ({ directives: { "on-async": onAsync }, element, evaluate }) => { if (true) { warnWithSyncEvent("on-async", "on"); } const events = /* @__PURE__ */ new Map(); onAsync.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const event = entry.suffix.split("--", 1)[0]; if (!events.has(event)) { events.set(event, /* @__PURE__ */ new Set()); } events.get(event).add(entry); }); events.forEach((entries, eventType) => { const existingHandler = element.props[`on${eventType}`]; element.props[`on${eventType}`] = (event) => { if (existingHandler) { existingHandler(event); } entries.forEach(async (entry) => { await splitTask(); const result = evaluate(entry); if (typeof result === "function") { result(event); } }); }; }); } ); directive("on-window", getGlobalEventDirective("window")); directive("on-document", getGlobalEventDirective("document")); directive("on-async-window", getGlobalAsyncEventDirective("window")); directive( "on-async-document", getGlobalAsyncEventDirective("document") ); directive( "class", ({ directives: { class: classNames }, element, evaluate }) => { classNames.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const className = entry.uniqueId ? `${entry.suffix}---${entry.uniqueId}` : entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } const currentClass = element.props.class || ""; const classFinder = new RegExp( `(^|\\s)${className}(\\s|$)`, "g" ); if (!result) { element.props.class = currentClass.replace(classFinder, " ").trim(); } else if (!classFinder.test(currentClass)) { element.props.class = currentClass ? `${currentClass} ${className}` : className; } useInit(() => { if (!result) { element.ref.current.classList.remove(className); } else { element.ref.current.classList.add(className); } }); }); } ); directive("style", ({ directives: { style }, element, evaluate }) => { style.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("style", entry.uniqueId); } return; } const styleProp = entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props.style = element.props.style || {}; if (typeof element.props.style === "string") { element.props.style = cssStringToObject(element.props.style); } if (!result) { delete element.props.style[styleProp]; } else { element.props.style[styleProp] = result; } useInit(() => { if (!result) { element.ref.current.style.removeProperty(styleProp); } else { element.ref.current.style.setProperty(styleProp, result); } }); }); }); directive("bind", ({ directives: { bind }, element, evaluate }) => { bind.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("bind", entry.uniqueId); } return; } const attribute = entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props[attribute] = result; useInit(() => { const el = element.ref.current; if (attribute === "style") { if (typeof result === "string") { el.style.cssText = result; } return; } else if (attribute !== "width" && attribute !== "height" && attribute !== "href" && attribute !== "list" && attribute !== "form" && /* * The value for `tabindex` follows the parsing rules for an * integer. If that fails, or if the attribute isn't present, then * the browsers should "follow platform conventions to determine if * the element should be considered as a focusable area", * practically meaning that most elements get a default of `-1` (not * focusable), but several also get a default of `0` (focusable in * order after all elements with a positive `tabindex` value). * * @see https://html.spec.whatwg.org/#tabindex-value */ attribute !== "tabIndex" && attribute !== "download" && attribute !== "rowSpan" && attribute !== "colSpan" && attribute !== "role" && attribute in el) { try { el[attribute] = result === null || result === void 0 ? "" : result; return; } catch (err) { } } if (result !== null && result !== void 0 && (result !== false || attribute[4] === "-")) { el.setAttribute(attribute, result); } else { el.removeAttribute(attribute); } }); }); }); directive( "ignore", ({ element: { type: Type, props: { innerHTML, ...rest } } }) => { if (true) { warn( "The data-wp-ignore directive is deprecated and will be removed in version 7.0." ); } const cached = T(() => innerHTML, []); return (0,preact_module.h)(Type, { dangerouslySetInnerHTML: { __html: cached }, ...rest }); } ); directive("text", ({ directives: { text }, element, evaluate }) => { const entries = text.filter(isDefaultDirectiveSuffix); if (!entries.length) { if (true) { warn( "The usage of data-wp-text--suffix is not supported. Please use data-wp-text instead." ); } return; } entries.forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("text", entry.uniqueId); } return; } try { let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props.children = typeof result === "object" ? null : result.toString(); } catch (e) { element.props.children = null; } }); }); directive("run", ({ directives: { run }, evaluate }) => { run.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("run", entry.suffix); } } let result = evaluate(entry); if (typeof result === "function") { result = result(); } return result; }); }); directive( "each", ({ directives: { each, "each-key": eachKey }, context: inheritedContext, element, evaluate }) => { if (element.type !== "template") { if (true) { warn( "The data-wp-each directive can only be used on <template> elements." ); } return; } const { Provider } = inheritedContext; const inheritedValue = x(inheritedContext); const [entry] = each; const { namespace, suffix, uniqueId } = entry; if (each.length > 1) { if (true) { warn( "The usage of multiple data-wp-each directives on the same element is not supported. Please pick only one." ); } return; } if (uniqueId) { if (true) { warnUniqueIdNotSupported("each", uniqueId); } return; } let iterable = evaluate(entry); if (iterable === PENDING_GETTER) { return; } if (typeof iterable === "function") { iterable = iterable(); } if (typeof iterable?.[Symbol.iterator] !== "function") { return; } const itemProp = suffix ? kebabToCamelCase(suffix) : "item"; const result = []; const itemContexts = useItemContexts( inheritedValue, namespace, iterable, itemProp, eachKey?.[0] ); for (const [item, itemContext, key] of itemContexts) { const mergedContext = { client: { ...inheritedValue.client, [namespace]: itemContext }, server: { ...inheritedValue.server } }; mergedContext.client[namespace][itemProp] = item; result.push( (0,preact_module.h)( Provider, { value: mergedContext, key }, element.props.content ) ); } return result; }, { priority: 20 } ); directive( "each-child", ({ directives: { "each-child": eachChild }, element, evaluate }) => { const entry = eachChild.find(isDefaultDirectiveSuffix); if (!entry) { return; } const iterable = evaluate(entry); return iterable === PENDING_GETTER ? element : null; }, { priority: 1 } ); directive( "router-region", ({ directives: { "router-region": routerRegion } }) => { const entry = routerRegion.find(isDefaultDirectiveSuffix); if (!entry) { return; } if (entry.suffix) { if (true) { warn( `Suffixes for the data-wp-router-region directive are not supported. Ignoring the directive with suffix "${entry.suffix}".` ); } return; } if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("router-region", entry.uniqueId); } return; } const regionId = typeof entry.value === "string" ? entry.value : entry.value.id; if (!routerRegions.has(regionId)) { routerRegions.set(regionId, signals_core_module_d()); } const vdom = routerRegions.get(regionId).value; _(() => { if (vdom && typeof vdom.type !== "string") { navigationContextSignal.value = navigationContextSignal.peek() + 1; } }, [vdom]); if (vdom && typeof vdom.type !== "string") { const previousScope = getScope(); return (0,preact_module/* cloneElement */.Ob)(vdom, { previousScope }); } return vdom; }, { priority: 1 } ); }; ;// ./node_modules/@wordpress/interactivity/build-module/vdom.js const directivePrefix = `data-wp-`; const namespaces = []; const currentNamespace = () => namespaces[namespaces.length - 1] ?? null; const isObject = (item) => Boolean(item && typeof item === "object" && item.constructor === Object); const invalidCharsRegex = /[^a-z0-9-_]/i; function parseDirectiveName(directiveName) { const name = directiveName.substring(8); if (invalidCharsRegex.test(name)) { return null; } const suffixIndex = name.indexOf("--"); if (suffixIndex === -1) { return { prefix: name, suffix: null, uniqueId: null }; } const prefix = name.substring(0, suffixIndex); const remaining = name.substring(suffixIndex); if (remaining.startsWith("---") && remaining[3] !== "-") { return { prefix, suffix: null, uniqueId: remaining.substring(3) || null }; } let suffix = remaining.substring(2); const uniqueIdIndex = suffix.indexOf("---"); if (uniqueIdIndex !== -1 && suffix.substring(uniqueIdIndex)[3] !== "-") { const uniqueId = suffix.substring(uniqueIdIndex + 3) || null; suffix = suffix.substring(0, uniqueIdIndex) || null; return { prefix, suffix, uniqueId }; } return { prefix, suffix: suffix || null, uniqueId: null }; } const nsPathRegExp = /^([\w_\/-]+)::(.+)$/; const hydratedIslands = /* @__PURE__ */ new WeakSet(); function toVdom(root) { const nodesToRemove = /* @__PURE__ */ new Set(); const nodesToReplace = /* @__PURE__ */ new Set(); const treeWalker = document.createTreeWalker( root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT ); function walk(node) { const { nodeType } = node; if (nodeType === 3) { return node.data; } if (nodeType === 4) { nodesToReplace.add(node); return node.nodeValue; } if (nodeType === 8 || nodeType === 7) { nodesToRemove.add(node); return null; } const elementNode = node; const { attributes } = elementNode; const localName = elementNode.localName; const props = {}; const children = []; const directives = []; let ignore = false; let island = false; for (let i = 0; i < attributes.length; i++) { const attributeName = attributes[i].name; const attributeValue = attributes[i].value; if (attributeName[directivePrefix.length] && attributeName.slice(0, directivePrefix.length) === directivePrefix) { if (attributeName === "data-wp-ignore") { ignore = true; } else { const regexResult = nsPathRegExp.exec(attributeValue); const namespace = regexResult?.[1] ?? null; let value = regexResult?.[2] ?? attributeValue; try { const parsedValue = JSON.parse(value); value = isObject(parsedValue) ? parsedValue : value; } catch { } if (attributeName === "data-wp-interactive") { island = true; const islandNamespace = ( // eslint-disable-next-line no-nested-ternary typeof value === "string" ? value : typeof value?.namespace === "string" ? value.namespace : null ); namespaces.push(islandNamespace); } else { directives.push([attributeName, namespace, value]); } } } else if (attributeName === "ref") { continue; } props[attributeName] = attributeValue; } if (ignore && !island) { return [ (0,preact_module.h)(localName, { ...props, innerHTML: elementNode.innerHTML, __directives: { ignore: true } }) ]; } if (island) { hydratedIslands.add(elementNode); } if (directives.length) { props.__directives = directives.reduce((obj, [name, ns, value]) => { const directiveParsed = parseDirectiveName(name); if (directiveParsed === null) { if (true) { warn(`Found malformed directive name: ${name}.`); } return obj; } const { prefix, suffix, uniqueId } = directiveParsed; obj[prefix] = obj[prefix] || []; obj[prefix].push({ namespace: ns ?? currentNamespace(), value, suffix, uniqueId }); return obj; }, {}); for (const prefix in props.__directives) { props.__directives[prefix].sort( (a, b) => { const aSuffix = a.suffix ?? ""; const bSuffix = b.suffix ?? ""; if (aSuffix !== bSuffix) { return aSuffix < bSuffix ? -1 : 1; } const aId = a.uniqueId ?? ""; const bId = b.uniqueId ?? ""; return +(aId > bId) - +(aId < bId); } ); } } if (props.__directives?.["each-child"]) { props.dangerouslySetInnerHTML = { __html: elementNode.innerHTML }; } else if (localName === "template") { props.content = [ ...elementNode.content.childNodes ].map((childNode) => toVdom(childNode)); } else { let child = treeWalker.firstChild(); if (child) { while (child) { const vnode = walk(child); if (vnode) { children.push(vnode); } child = treeWalker.nextSibling(); } treeWalker.parentNode(); } } if (island) { namespaces.pop(); } return (0,preact_module.h)(localName, props, children); } const vdom = walk(treeWalker.currentNode); nodesToRemove.forEach( (node) => node.remove() ); nodesToReplace.forEach( (node) => node.replaceWith( new window.Text(node.nodeValue ?? "") ) ); return vdom; } ;// ./node_modules/@wordpress/interactivity/build-module/hydration.js const regionRootFragments = /* @__PURE__ */ new WeakMap(); const getRegionRootFragment = (regions) => { const region = Array.isArray(regions) ? regions[0] : regions; if (!region.parentElement) { throw Error("The passed region should be an element with a parent."); } if (!regionRootFragments.has(region)) { regionRootFragments.set( region, createRootFragment(region.parentElement, regions) ); } return regionRootFragments.get(region); }; const initialVdom = /* @__PURE__ */ new WeakMap(); const hydrateRegions = async () => { const nodes = document.querySelectorAll(`[data-wp-interactive]`); for (const node of nodes) { if (!hydratedIslands.has(node)) { await splitTask(); const fragment = getRegionRootFragment(node); const vdom = toVdom(node); initialVdom.set(node, vdom); await splitTask(); (0,preact_module/* hydrate */.Qv)(vdom, fragment); } } }; ;// ./node_modules/@wordpress/interactivity/build-module/index.js const requiredConsent = "I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."; const privateApis = (lock) => { if (lock === requiredConsent) { return { getRegionRootFragment: getRegionRootFragment, initialVdom: initialVdom, toVdom: toVdom, directive: directive, getNamespace: getNamespace, h: preact_module.h, cloneElement: preact_module/* cloneElement */.Ob, render: preact_module/* render */.XX, proxifyState: proxifyState, parseServerData: parseServerData, populateServerData: populateServerData, batch: signals_core_module_r, routerRegions: routerRegions, deepReadOnly: deepReadOnly, navigationSignal: navigationSignal }; } throw new Error("Forbidden access."); }; populateServerData(parseServerData()); directives_default(); onDOMReady(hydrateRegions); var __webpack_exports__getConfig = __webpack_exports__.zj; var __webpack_exports__getContext = __webpack_exports__.SD; var __webpack_exports__getElement = __webpack_exports__.V6; var __webpack_exports__getServerContext = __webpack_exports__.$K; var __webpack_exports__getServerState = __webpack_exports__.vT; var __webpack_exports__privateApis = __webpack_exports__.jb; var __webpack_exports__splitTask = __webpack_exports__.yT; var __webpack_exports__store = __webpack_exports__.M_; var __webpack_exports__useCallback = __webpack_exports__.hb; var __webpack_exports__useEffect = __webpack_exports__.vJ; var __webpack_exports__useInit = __webpack_exports__.ip; var __webpack_exports__useLayoutEffect = __webpack_exports__.Nf; var __webpack_exports__useMemo = __webpack_exports__.Kr; var __webpack_exports__useRef = __webpack_exports__.li; var __webpack_exports__useState = __webpack_exports__.J0; var __webpack_exports__useWatch = __webpack_exports__.FH; var __webpack_exports__withScope = __webpack_exports__.v4; var __webpack_exports__withSyncEvent = __webpack_exports__.mh; export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__getServerContext as getServerContext, __webpack_exports__getServerState as getServerState, __webpack_exports__privateApis as privateApis, __webpack_exports__splitTask as splitTask, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope, __webpack_exports__withSyncEvent as withSyncEvent }; interactivity/debug.js 0000644 00000306113 15151136645 0011101 0 ustar 00 /******/ var __webpack_modules__ = ({ /***/ 434: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { // EXPORTS __webpack_require__.d(__webpack_exports__, { zj: () => (/* reexport */ getConfig), SD: () => (/* reexport */ getContext), V6: () => (/* reexport */ getElement), $K: () => (/* reexport */ getServerContext), vT: () => (/* reexport */ getServerState), jb: () => (/* binding */ privateApis), yT: () => (/* reexport */ splitTask), M_: () => (/* reexport */ store), hb: () => (/* reexport */ useCallback), vJ: () => (/* reexport */ useEffect), ip: () => (/* reexport */ useInit), Nf: () => (/* reexport */ useLayoutEffect), Kr: () => (/* reexport */ useMemo), li: () => (/* reexport */ A), J0: () => (/* reexport */ d), FH: () => (/* reexport */ useWatch), v4: () => (/* reexport */ withScope), mh: () => (/* reexport */ withSyncEvent) }); // EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js var preact_module = __webpack_require__(622); ;// ./node_modules/preact/hooks/dist/hooks.module.js var hooks_module_t,r,hooks_module_u,i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module/* options */.fF,e=hooks_module_c.__b,a=hooks_module_c.__r,v=hooks_module_c.diffed,l=hooks_module_c.__c,m=hooks_module_c.unmount,s=hooks_module_c.__;function p(n,t){hooks_module_c.__h&&hooks_module_c.__h(r,n,hooks_module_o||t),hooks_module_o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return hooks_module_o=1,h(D,n)}function h(n,u,i){var o=p(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c&&c.call(this,n,t,r)||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},r.shouldComponentUpdate=f}return o.__N||o.__}function y(n,u){var i=p(hooks_module_t++,3);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function _(n,u){var i=p(hooks_module_t++,4);!hooks_module_c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function A(n){return hooks_module_o=5,T(function(){return{current:n}},[])}function F(n,t,r){hooks_module_o=6,_(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function T(n,r){var u=p(hooks_module_t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return hooks_module_o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=p(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function b(n){var u=p(hooks_module_t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function g(){var n=p(hooks_module_t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){r=null,e&&e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t)},hooks_module_c.__r=function(n){a&&a(n),hooks_module_t=0;var i=(r=n.__c).__H;i&&(hooks_module_u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],hooks_module_t=0)),hooks_module_u=r},hooks_module_c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&i===hooks_module_c.requestAnimationFrame||((i=hooks_module_c.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),hooks_module_u=r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),l&&l(n,t)},hooks_module_c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return"function"==typeof t?t(n):t} ;// ./node_modules/@preact/signals-core/dist/signals-core.module.js var signals_core_module_i=Symbol.for("preact-signals");function signals_core_module_t(){if(!(signals_core_module_s>1)){var i,t=!1;while(void 0!==signals_core_module_h){var r=signals_core_module_h;signals_core_module_h=void 0;signals_core_module_f++;while(void 0!==r){var o=r.o;r.o=void 0;r.f&=-3;if(!(8&r.f)&&signals_core_module_c(r))try{r.c()}catch(r){if(!t){i=r;t=!0}}r=o}}signals_core_module_f=0;signals_core_module_s--;if(t)throw i}else signals_core_module_s--}function signals_core_module_r(i){if(signals_core_module_s>0)return i();signals_core_module_s++;try{return i()}finally{signals_core_module_t()}}var signals_core_module_o=void 0;function n(i){var t=signals_core_module_o;signals_core_module_o=void 0;try{return i()}finally{signals_core_module_o=t}}var signals_core_module_h=void 0,signals_core_module_s=0,signals_core_module_f=0,signals_core_module_v=0;function signals_core_module_e(i){if(void 0!==signals_core_module_o){var t=i.n;if(void 0===t||t.t!==signals_core_module_o){t={i:0,S:i,p:signals_core_module_o.s,n:void 0,t:signals_core_module_o,e:void 0,x:void 0,r:t};if(void 0!==signals_core_module_o.s)signals_core_module_o.s.n=t;signals_core_module_o.s=t;i.n=t;if(32&signals_core_module_o.f)i.S(t);return t}else if(-1===t.i){t.i=0;if(void 0!==t.n){t.n.p=t.p;if(void 0!==t.p)t.p.n=t.n;t.p=signals_core_module_o.s;t.n=void 0;signals_core_module_o.s.n=t;signals_core_module_o.s=t}return t}}}function signals_core_module_u(i,t){this.v=i;this.i=0;this.n=void 0;this.t=void 0;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_u.prototype.brand=signals_core_module_i;signals_core_module_u.prototype.h=function(){return!0};signals_core_module_u.prototype.S=function(i){var t=this,r=this.t;if(r!==i&&void 0===i.e){i.x=r;this.t=i;if(void 0!==r)r.e=i;else n(function(){var i;null==(i=t.W)||i.call(t)})}};signals_core_module_u.prototype.U=function(i){var t=this;if(void 0!==this.t){var r=i.e,o=i.x;if(void 0!==r){r.x=o;i.e=void 0}if(void 0!==o){o.e=r;i.x=void 0}if(i===this.t){this.t=o;if(void 0===o)n(function(){var i;null==(i=t.Z)||i.call(t)})}}};signals_core_module_u.prototype.subscribe=function(i){var t=this;return E(function(){var r=t.value,n=signals_core_module_o;signals_core_module_o=void 0;try{i(r)}finally{signals_core_module_o=n}},{name:"sub"})};signals_core_module_u.prototype.valueOf=function(){return this.value};signals_core_module_u.prototype.toString=function(){return this.value+""};signals_core_module_u.prototype.toJSON=function(){return this.value};signals_core_module_u.prototype.peek=function(){var i=signals_core_module_o;signals_core_module_o=void 0;try{return this.value}finally{signals_core_module_o=i}};Object.defineProperty(signals_core_module_u.prototype,"value",{get:function(){var i=signals_core_module_e(this);if(void 0!==i)i.i=this.i;return this.v},set:function(i){if(i!==this.v){if(signals_core_module_f>100)throw new Error("Cycle detected");this.v=i;this.i++;signals_core_module_v++;signals_core_module_s++;try{for(var r=this.t;void 0!==r;r=r.x)r.t.N()}finally{signals_core_module_t()}}}});function signals_core_module_d(i,t){return new signals_core_module_u(i,t)}function signals_core_module_c(i){for(var t=i.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function signals_core_module_a(i){for(var t=i.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r)t.r=r;t.S.n=t;t.i=-1;if(void 0===t.n){i.s=t;break}}}function signals_core_module_l(i){var t=i.s,r=void 0;while(void 0!==t){var o=t.p;if(-1===t.i){t.S.U(t);if(void 0!==o)o.n=t.n;if(void 0!==t.n)t.n.p=o}else r=t;t.S.n=t.r;if(void 0!==t.r)t.r=void 0;t=o}i.s=r}function signals_core_module_y(i,t){signals_core_module_u.call(this,void 0);this.x=i;this.s=void 0;this.g=signals_core_module_v-1;this.f=4;this.W=null==t?void 0:t.watched;this.Z=null==t?void 0:t.unwatched;this.name=null==t?void 0:t.name}signals_core_module_y.prototype=new signals_core_module_u;signals_core_module_y.prototype.h=function(){this.f&=-3;if(1&this.f)return!1;if(32==(36&this.f))return!0;this.f&=-5;if(this.g===signals_core_module_v)return!0;this.g=signals_core_module_v;this.f|=1;if(this.i>0&&!signals_core_module_c(this)){this.f&=-2;return!0}var i=signals_core_module_o;try{signals_core_module_a(this);signals_core_module_o=this;var t=this.x();if(16&this.f||this.v!==t||0===this.i){this.v=t;this.f&=-17;this.i++}}catch(i){this.v=i;this.f|=16;this.i++}signals_core_module_o=i;signals_core_module_l(this);this.f&=-2;return!0};signals_core_module_y.prototype.S=function(i){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}signals_core_module_u.prototype.S.call(this,i)};signals_core_module_y.prototype.U=function(i){if(void 0!==this.t){signals_core_module_u.prototype.U.call(this,i);if(void 0===this.t){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}}};signals_core_module_y.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;void 0!==i;i=i.x)i.t.N()}};Object.defineProperty(signals_core_module_y.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=signals_core_module_e(this);this.h();if(void 0!==i)i.i=this.i;if(16&this.f)throw this.v;return this.v}});function signals_core_module_w(i,t){return new signals_core_module_y(i,t)}function signals_core_module_(i){var r=i.u;i.u=void 0;if("function"==typeof r){signals_core_module_s++;var n=signals_core_module_o;signals_core_module_o=void 0;try{r()}catch(t){i.f&=-2;i.f|=8;signals_core_module_b(i);throw t}finally{signals_core_module_o=n;signals_core_module_t()}}}function signals_core_module_b(i){for(var t=i.s;void 0!==t;t=t.n)t.S.U(t);i.x=void 0;i.s=void 0;signals_core_module_(i)}function signals_core_module_g(i){if(signals_core_module_o!==this)throw new Error("Out-of-order effect");signals_core_module_l(this);signals_core_module_o=i;this.f&=-2;if(8&this.f)signals_core_module_b(this);signals_core_module_t()}function signals_core_module_p(i,t){this.x=i;this.u=void 0;this.s=void 0;this.o=void 0;this.f=32;this.name=null==t?void 0:t.name}signals_core_module_p.prototype.c=function(){var i=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();if("function"==typeof t)this.u=t}finally{i()}};signals_core_module_p.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1;this.f&=-9;signals_core_module_(this);signals_core_module_a(this);signals_core_module_s++;var i=signals_core_module_o;signals_core_module_o=this;return signals_core_module_g.bind(this,i)};signals_core_module_p.prototype.N=function(){if(!(2&this.f)){this.f|=2;this.o=signals_core_module_h;signals_core_module_h=this}};signals_core_module_p.prototype.d=function(){this.f|=8;if(!(1&this.f))signals_core_module_b(this)};signals_core_module_p.prototype.dispose=function(){this.d()};function E(i,t){var r=new signals_core_module_p(i,t);try{r.c()}catch(i){r.d();throw i}var o=r.d.bind(r);o[Symbol.dispose]=o;return o} ;// ./node_modules/@preact/signals/dist/signals.module.js var signals_module_v,signals_module_s;function signals_module_l(i,n){preact_module/* options */.fF[i]=n.bind(null,preact_module/* options */.fF[i]||function(){})}function signals_module_d(i){if(signals_module_s)signals_module_s();signals_module_s=i&&i.S()}function signals_module_h(i){var r=this,f=i.data,o=useSignal(f);o.value=f;var e=T(function(){var i=r.__v;while(i=i.__)if(i.__c){i.__c.__$f|=4;break}r.__$u.c=function(){var i,t=r.__$u.S(),f=e.value;t();if((0,preact_module/* isValidElement */.zO)(f)||3!==(null==(i=r.base)?void 0:i.nodeType)){r.__$f|=1;r.setState({})}else r.base.data=f};return signals_core_module_w(function(){var i=o.value.value;return 0===i?0:!0===i?"":i||""})},[]);return e.value}signals_module_h.displayName="_st";Object.defineProperties(signals_core_module_u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:signals_module_h},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});signals_module_l("__b",function(i,r){if("string"==typeof r.type){var n,t=r.props;for(var f in t)if("children"!==f){var o=t[f];if(o instanceof signals_core_module_u){if(!n)r.__np=n={};n[f]=o;t[f]=o.peek()}}}i(r)});signals_module_l("__r",function(i,r){signals_module_d();var n,t=r.__c;if(t){t.__$f&=-2;if(void 0===(n=t.__$u))t.__$u=n=function(i){var r;E(function(){r=this});r.c=function(){t.__$f|=1;t.setState({})};return r}()}signals_module_v=t;signals_module_d(n);i(r)});signals_module_l("__e",function(i,r,n,t){signals_module_d();signals_module_v=void 0;i(r,n,t)});signals_module_l("diffed",function(i,r){signals_module_d();signals_module_v=void 0;var n;if("string"==typeof r.type&&(n=r.__e)){var t=r.__np,f=r.props;if(t){var o=n.U;if(o)for(var e in o){var u=o[e];if(void 0!==u&&!(e in t)){u.d();o[e]=void 0}}else n.U=o={};for(var a in t){var c=o[a],s=t[a];if(void 0===c){c=signals_module_p(n,a,s,f);o[a]=c}else c.o(s,f)}}}i(r)});function signals_module_p(i,r,n,t){var f=r in i&&void 0===i.ownerSVGElement,o=signals_core_module_d(n);return{o:function(i,r){o.value=i;t=r},d:E(function(){var n=o.value.value;if(t[r]!==n){t[r]=n;if(f)i[r]=n;else if(n)i.setAttribute(r,n);else i.removeAttribute(r)}})}}signals_module_l("unmount",function(i,r){if("string"==typeof r.type){var n=r.__e;if(n){var t=n.U;if(t){n.U=void 0;for(var f in t){var o=t[f];if(o)o.d()}}}}else{var e=r.__c;if(e){var u=e.__$u;if(u){e.__$u=void 0;u.d()}}}i(r)});signals_module_l("__h",function(i,r,n,t){if(t<3||9===t)r.__$f|=2;i(r,n,t)});preact_module/* Component */.uA.prototype.shouldComponentUpdate=function(i,r){if(this.__R)return!0;var n=this.__$u,t=n&&void 0!==n.s;for(var f in r)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(t||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(t||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var o in i)if("__source"!==o&&i[o]!==this.props[o])return!0;for(var e in this.props)if(!(e in i))return!0;return!1};function useSignal(i){return T(function(){return signals_core_module_d(i)},[])}function useComputed(i){var r=f(i);r.current=i;signals_module_v.__$f|=4;return t(function(){return u(function(){return r.current()})},[])}function useSignalEffect(i){var r=f(i);r.current=i;o(function(){return c(function(){return r.current()})},[])} ;// ./node_modules/@wordpress/interactivity/build-module/namespaces.js const namespaceStack = []; const getNamespace = () => namespaceStack.slice(-1)[0]; const setNamespace = (namespace) => { namespaceStack.push(namespace); }; const resetNamespace = () => { namespaceStack.pop(); }; ;// ./node_modules/@wordpress/interactivity/build-module/scopes.js const scopeStack = []; const getScope = () => scopeStack.slice(-1)[0]; const setScope = (scope) => { scopeStack.push(scope); }; const resetScope = () => { scopeStack.pop(); }; const throwNotInScope = (method) => { throw Error( `Cannot call \`${method}()\` when there is no scope. If you are using an async function, please consider using a generator instead. If you are using some sort of async callbacks, like \`setTimeout\`, please wrap the callback with \`withScope(callback)\`.` ); }; const getContext = (namespace) => { const scope = getScope(); if (true) { if (!scope) { throwNotInScope("getContext"); } } return scope.context[namespace || getNamespace()]; }; const getElement = () => { const scope = getScope(); let deepReadOnlyOptions = {}; if (true) { if (!scope) { throwNotInScope("getElement"); } deepReadOnlyOptions = { errorMessage: "Don't mutate the attributes from `getElement`, use `data-wp-bind` to modify the attributes of an element instead." }; } const { ref, attributes } = scope; return Object.freeze({ ref: ref.current, attributes: deepReadOnly(attributes, deepReadOnlyOptions) }); }; const navigationContextSignal = signals_core_module_d(0); function getServerContext(namespace) { const scope = getScope(); if (true) { if (!scope) { throwNotInScope("getServerContext"); } } getServerContext.subscribe = navigationContextSignal.value; return deepClone(scope.serverContext[namespace || getNamespace()]); } getServerContext.subscribe = 0; ;// ./node_modules/@wordpress/interactivity/build-module/utils.js const afterNextFrame = (callback) => { return new Promise((resolve) => { const done = () => { clearTimeout(timeout); window.cancelAnimationFrame(raf); setTimeout(() => { callback(); resolve(); }); }; const timeout = setTimeout(done, 100); const raf = window.requestAnimationFrame(done); }); }; const splitTask = typeof window.scheduler?.yield === "function" ? window.scheduler.yield.bind(window.scheduler) : () => { return new Promise((resolve) => { setTimeout(resolve, 0); }); }; const onDOMReady = (callback) => { const [navigation] = performance.getEntriesByType("navigation"); if (navigation.domContentLoadedEventStart > 0) { callback(); } else { document.addEventListener("DOMContentLoaded", callback); } }; function createFlusher(compute, notify) { let flush = () => void 0; const dispose = E(function() { flush = this.c.bind(this); this.x = compute; this.c = notify; return compute(); }); return { flush, dispose }; } function utils_useSignalEffect(callback) { y(() => { let eff = null; let isExecuting = false; const notify = async () => { if (eff && !isExecuting) { isExecuting = true; await afterNextFrame(eff.flush); isExecuting = false; } }; eff = createFlusher(callback, notify); return eff.dispose; }, []); } function withScope(func) { const scope = getScope(); const ns = getNamespace(); let wrapped; if (func?.constructor?.name === "GeneratorFunction") { wrapped = async (...args) => { const gen = func(...args); let value; let it; let error; while (true) { setNamespace(ns); setScope(scope); try { it = error ? gen.throw(error) : gen.next(value); error = void 0; } catch (e) { throw e; } finally { resetScope(); resetNamespace(); } try { value = await it.value; } catch (e) { error = e; } if (it.done) { if (error) { throw error; } else { break; } } } return value; }; } else { wrapped = (...args) => { setNamespace(ns); setScope(scope); try { return func(...args); } finally { resetNamespace(); resetScope(); } }; } const syncAware = func; if (syncAware.sync) { const syncAwareWrapped = wrapped; syncAwareWrapped.sync = true; return syncAwareWrapped; } return wrapped; } function useWatch(callback) { utils_useSignalEffect(withScope(callback)); } function useInit(callback) { y(withScope(callback), []); } function useEffect(callback, inputs) { y(withScope(callback), inputs); } function useLayoutEffect(callback, inputs) { _(withScope(callback), inputs); } function useCallback(callback, inputs) { return q(withScope(callback), inputs); } function useMemo(factory, inputs) { return T(withScope(factory), inputs); } const createRootFragment = (parent, replaceNode) => { replaceNode = [].concat(replaceNode); const sibling = replaceNode[replaceNode.length - 1].nextSibling; function insert(child, root) { parent.insertBefore(child, root || sibling); } return parent.__k = { nodeType: 1, parentNode: parent, firstChild: replaceNode[0], childNodes: replaceNode, insertBefore: insert, appendChild: insert, removeChild(c) { parent.removeChild(c); }, contains(c) { parent.contains(c); } }; }; function kebabToCamelCase(str) { return str.replace(/^-+|-+$/g, "").toLowerCase().replace(/-([a-z])/g, function(_match, group1) { return group1.toUpperCase(); }); } const logged = /* @__PURE__ */ new Set(); const warn = (message) => { if (true) { if (logged.has(message)) { return; } console.warn(message); try { throw Error(message); } catch (e) { } logged.add(message); } }; const isPlainObject = (candidate) => Boolean( candidate && typeof candidate === "object" && candidate.constructor === Object ); function withSyncEvent(callback) { const syncAware = callback; syncAware.sync = true; return syncAware; } const readOnlyMap = /* @__PURE__ */ new WeakMap(); const createDeepReadOnlyHandlers = (errorMessage) => { const handleError = () => { if (true) { warn(errorMessage); } return false; }; return { get(target, prop) { const value = target[prop]; if (value && typeof value === "object") { return deepReadOnly(value, { errorMessage }); } return value; }, set: handleError, deleteProperty: handleError, defineProperty: handleError }; }; function deepReadOnly(obj, options) { const errorMessage = options?.errorMessage ?? "Cannot modify read-only object"; if (!readOnlyMap.has(obj)) { const handlers = createDeepReadOnlyHandlers(errorMessage); readOnlyMap.set(obj, new Proxy(obj, handlers)); } return readOnlyMap.get(obj); } const navigationSignal = signals_core_module_d(0); function deepClone(source) { if (isPlainObject(source)) { return Object.fromEntries( Object.entries(source).map(([key, value]) => [ key, deepClone(value) ]) ); } if (Array.isArray(source)) { return source.map((i) => deepClone(i)); } return source; } ;// ./node_modules/@wordpress/interactivity/build-module/proxies/registry.js const objToProxy = /* @__PURE__ */ new WeakMap(); const proxyToObj = /* @__PURE__ */ new WeakMap(); const proxyToNs = /* @__PURE__ */ new WeakMap(); const supported = /* @__PURE__ */ new Set([Object, Array]); const createProxy = (namespace, obj, handlers) => { if (!shouldProxy(obj)) { throw Error("This object cannot be proxified."); } if (!objToProxy.has(obj)) { const proxy = new Proxy(obj, handlers); objToProxy.set(obj, proxy); proxyToObj.set(proxy, obj); proxyToNs.set(proxy, namespace); } return objToProxy.get(obj); }; const getProxyFromObject = (obj) => objToProxy.get(obj); const getNamespaceFromProxy = (proxy) => proxyToNs.get(proxy); const shouldProxy = (candidate) => { if (typeof candidate !== "object" || candidate === null) { return false; } return !proxyToNs.has(candidate) && supported.has(candidate.constructor); }; const getObjectFromProxy = (proxy) => proxyToObj.get(proxy); ;// ./node_modules/@wordpress/interactivity/build-module/proxies/signals.js const NO_SCOPE = {}; class PropSignal { /** * Proxy that holds the property this PropSignal is associated with. */ owner; /** * Relation of computeds by scope. These computeds are read-only signals * that depend on whether the property is a value or a getter and, * therefore, can return different values depending on the scope in which * the getter is accessed. */ computedsByScope; /** * Signal with the value assigned to the related property. */ valueSignal; /** * Signal with the getter assigned to the related property. */ getterSignal; /** * Pending getter to be consolidated. */ pendingGetter; /** * Structure that manages reactivity for a property in a state object, using * signals to keep track of property value or getter modifications. * * @param owner Proxy that holds the property this instance is associated * with. */ constructor(owner) { this.owner = owner; this.computedsByScope = /* @__PURE__ */ new WeakMap(); } /** * Changes the internal value. If a getter was set before, it is set to * `undefined`. * * @param value New value. */ setValue(value) { this.update({ value }); } /** * Changes the internal getter. If a value was set before, it is set to * `undefined`. * * @param getter New getter. */ setGetter(getter) { this.update({ get: getter }); } /** * Changes the internal getter asynchronously. * * The update is made in a microtask, which prevents issues with getters * accessing the state, and ensures the update occurs before any render. * * @param getter New getter. */ setPendingGetter(getter) { this.pendingGetter = getter; queueMicrotask(() => this.consolidateGetter()); } /** * Consolidate the pending value of the getter. */ consolidateGetter() { const getter = this.pendingGetter; if (getter) { this.pendingGetter = void 0; this.update({ get: getter }); } } /** * Returns the computed that holds the result of evaluating the prop in the * current scope. * * These computeds are read-only signals that depend on whether the property * is a value or a getter and, therefore, can return different values * depending on the scope in which the getter is accessed. * * @return Computed that depends on the scope. */ getComputed() { const scope = getScope() || NO_SCOPE; if (!this.valueSignal && !this.getterSignal) { this.update({}); } if (this.pendingGetter) { this.consolidateGetter(); } if (!this.computedsByScope.has(scope)) { const callback = () => { const getter = this.getterSignal?.value; return getter ? getter.call(this.owner) : this.valueSignal?.value; }; setNamespace(getNamespaceFromProxy(this.owner)); this.computedsByScope.set( scope, signals_core_module_w(withScope(callback)) ); resetNamespace(); } return this.computedsByScope.get(scope); } /** * Updates the internal signals for the value and the getter of the * corresponding prop. * * @param param0 * @param param0.get New getter. * @param param0.value New value. */ update({ get, value }) { if (!this.valueSignal) { this.valueSignal = signals_core_module_d(value); this.getterSignal = signals_core_module_d(get); } else if (value !== this.valueSignal.peek() || get !== this.getterSignal.peek()) { signals_core_module_r(() => { this.valueSignal.value = value; this.getterSignal.value = get; }); } } } ;// ./node_modules/@wordpress/interactivity/build-module/proxies/state.js const wellKnownSymbols = new Set( Object.getOwnPropertyNames(Symbol).map((key) => Symbol[key]).filter((value) => typeof value === "symbol") ); const proxyToProps = /* @__PURE__ */ new WeakMap(); const hasPropSignal = (proxy, key) => proxyToProps.has(proxy) && proxyToProps.get(proxy).has(key); const getPropSignal = (proxy, key, initial) => { if (!proxyToProps.has(proxy)) { proxyToProps.set(proxy, /* @__PURE__ */ new Map()); } key = typeof key === "number" ? `${key}` : key; const props = proxyToProps.get(proxy); if (!props.has(key)) { const ns = getNamespaceFromProxy(proxy); const prop = new PropSignal(proxy); props.set(key, prop); if (initial) { const { get, value } = initial; if (get) { prop.setGetter(get); } else { prop.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } } } return props.get(key); }; const objToIterable = /* @__PURE__ */ new WeakMap(); let peeking = false; const PENDING_GETTER = Symbol("PENDING_GETTER"); const stateHandlers = { get(target, key, receiver) { if (peeking || !target.hasOwnProperty(key) && key in target || typeof key === "symbol" && wellKnownSymbols.has(key)) { return Reflect.get(target, key, receiver); } const desc = Object.getOwnPropertyDescriptor(target, key); const prop = getPropSignal(receiver, key, desc); const result = prop.getComputed().value; if (result === PENDING_GETTER) { throw PENDING_GETTER; } if (typeof result === "function") { const ns = getNamespaceFromProxy(receiver); return (...args) => { setNamespace(ns); try { return result.call(receiver, ...args); } finally { resetNamespace(); } }; } return result; }, set(target, key, value, receiver) { setNamespace(getNamespaceFromProxy(receiver)); try { return Reflect.set(target, key, value, receiver); } finally { resetNamespace(); } }, defineProperty(target, key, desc) { const isNew = !(key in target); const result = Reflect.defineProperty(target, key, desc); if (result) { const receiver = getProxyFromObject(target); const prop = getPropSignal(receiver, key); const { get, value } = desc; if (get) { prop.setGetter(get); } else { const ns = getNamespaceFromProxy(receiver); prop.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } if (isNew && objToIterable.has(target)) { objToIterable.get(target).value++; } if (Array.isArray(target) && proxyToProps.get(receiver)?.has("length")) { const length = getPropSignal(receiver, "length"); length.setValue(target.length); } } return result; }, deleteProperty(target, key) { const result = Reflect.deleteProperty(target, key); if (result) { const prop = getPropSignal(getProxyFromObject(target), key); prop.setValue(void 0); if (objToIterable.has(target)) { objToIterable.get(target).value++; } } return result; }, ownKeys(target) { if (!objToIterable.has(target)) { objToIterable.set(target, signals_core_module_d(0)); } objToIterable._ = objToIterable.get(target).value; return Reflect.ownKeys(target); } }; const proxifyState = (namespace, obj) => { return createProxy(namespace, obj, stateHandlers); }; const peek = (obj, key) => { peeking = true; try { return obj[key]; } finally { peeking = false; } }; const deepMergeRecursive = (target, source, override = true) => { if (!(isPlainObject(target) && isPlainObject(source))) { return; } let hasNewKeys = false; for (const key in source) { const isNew = !(key in target); hasNewKeys = hasNewKeys || isNew; const desc = Object.getOwnPropertyDescriptor(source, key); const proxy = getProxyFromObject(target); const propSignal = !!proxy && hasPropSignal(proxy, key) && getPropSignal(proxy, key); if (typeof desc.get === "function" || typeof desc.set === "function") { if (override || isNew) { Object.defineProperty(target, key, { ...desc, configurable: true, enumerable: true }); if (desc.get && propSignal) { propSignal.setPendingGetter(desc.get); } } } else if (isPlainObject(source[key])) { const targetValue = Object.getOwnPropertyDescriptor(target, key)?.value; if (isNew || override && !isPlainObject(targetValue)) { target[key] = {}; if (propSignal) { const ns = getNamespaceFromProxy(proxy); propSignal.setValue( proxifyState(ns, target[key]) ); } deepMergeRecursive(target[key], source[key], override); } else if (isPlainObject(targetValue)) { deepMergeRecursive(target[key], source[key], override); } } else if (override || isNew) { Object.defineProperty(target, key, desc); if (propSignal) { const { value } = desc; const ns = getNamespaceFromProxy(proxy); propSignal.setValue( shouldProxy(value) ? proxifyState(ns, value) : value ); } } } if (hasNewKeys && objToIterable.has(target)) { objToIterable.get(target).value++; } }; const deepMerge = (target, source, override = true) => signals_core_module_r( () => deepMergeRecursive( getObjectFromProxy(target) || target, source, override ) ); ;// ./node_modules/@wordpress/interactivity/build-module/proxies/store.js const storeRoots = /* @__PURE__ */ new WeakSet(); const storeHandlers = { get: (target, key, receiver) => { const result = Reflect.get(target, key); const ns = getNamespaceFromProxy(receiver); if (typeof result === "undefined" && storeRoots.has(receiver)) { const obj = {}; Reflect.set(target, key, obj); return proxifyStore(ns, obj, false); } if (typeof result === "function") { setNamespace(ns); const scoped = withScope(result); resetNamespace(); return scoped; } if (isPlainObject(result) && shouldProxy(result)) { return proxifyStore(ns, result, false); } return result; } }; const proxifyStore = (namespace, obj, isRoot = true) => { const proxy = createProxy(namespace, obj, storeHandlers); if (proxy && isRoot) { storeRoots.add(proxy); } return proxy; }; ;// ./node_modules/@wordpress/interactivity/build-module/proxies/context.js const contextObjectToProxy = /* @__PURE__ */ new WeakMap(); const contextObjectToFallback = /* @__PURE__ */ new WeakMap(); const contextProxies = /* @__PURE__ */ new WeakSet(); const descriptor = Reflect.getOwnPropertyDescriptor; const contextHandlers = { get: (target, key) => { const fallback = contextObjectToFallback.get(target); const currentProp = target[key]; return key in target ? currentProp : fallback[key]; }, set: (target, key, value) => { const fallback = contextObjectToFallback.get(target); const obj = key in target || !(key in fallback) ? target : fallback; obj[key] = value; return true; }, ownKeys: (target) => [ .../* @__PURE__ */ new Set([ ...Object.keys(contextObjectToFallback.get(target)), ...Object.keys(target) ]) ], getOwnPropertyDescriptor: (target, key) => descriptor(target, key) || descriptor(contextObjectToFallback.get(target), key), has: (target, key) => Reflect.has(target, key) || Reflect.has(contextObjectToFallback.get(target), key) }; const proxifyContext = (current, inherited = {}) => { if (contextProxies.has(current)) { throw Error("This object cannot be proxified."); } contextObjectToFallback.set(current, inherited); if (!contextObjectToProxy.has(current)) { const proxy = new Proxy(current, contextHandlers); contextObjectToProxy.set(current, proxy); contextProxies.add(proxy); } return contextObjectToProxy.get(current); }; ;// ./node_modules/@wordpress/interactivity/build-module/proxies/index.js ;// ./node_modules/@wordpress/interactivity/build-module/store.js const stores = /* @__PURE__ */ new Map(); const rawStores = /* @__PURE__ */ new Map(); const storeLocks = /* @__PURE__ */ new Map(); const storeConfigs = /* @__PURE__ */ new Map(); const serverStates = /* @__PURE__ */ new Map(); const getConfig = (namespace) => storeConfigs.get(namespace || getNamespace()) || {}; function getServerState(namespace) { const ns = namespace || getNamespace(); if (!serverStates.has(ns)) { serverStates.set(ns, {}); } getServerState.subscribe = navigationSignal.value; return deepClone(serverStates.get(ns)); } getServerState.subscribe = 0; const universalUnlock = "I acknowledge that using a private store means my plugin will inevitably break on the next store release."; function store(namespace, { state = {}, ...block } = {}, { lock = false } = {}) { if (!stores.has(namespace)) { if (lock !== universalUnlock) { storeLocks.set(namespace, lock); } const rawStore = { state: proxifyState( namespace, isPlainObject(state) ? state : {} ), ...block }; const proxifiedStore = proxifyStore(namespace, rawStore); rawStores.set(namespace, rawStore); stores.set(namespace, proxifiedStore); } else { if (lock !== universalUnlock && !storeLocks.has(namespace)) { storeLocks.set(namespace, lock); } else { const storeLock = storeLocks.get(namespace); const isLockValid = lock === universalUnlock || lock !== true && lock === storeLock; if (!isLockValid) { if (!storeLock) { throw Error("Cannot lock a public store"); } else { throw Error( "Cannot unlock a private store with an invalid lock code" ); } } } const target = rawStores.get(namespace); deepMerge(target, block); deepMerge(target.state, state); } return stores.get(namespace); } const parseServerData = (dom = document) => { const jsonDataScriptTag = ( // Preferred Script Module data passing form dom.getElementById( "wp-script-module-data-@wordpress/interactivity" ) ?? // Legacy form dom.getElementById("wp-interactivity-data") ); if (jsonDataScriptTag?.textContent) { try { return JSON.parse(jsonDataScriptTag.textContent); } catch { } } return {}; }; const populateServerData = (data) => { serverStates.clear(); storeConfigs.clear(); if (isPlainObject(data?.state)) { Object.entries(data.state).forEach(([namespace, state]) => { const st = store(namespace, {}, { lock: universalUnlock }); deepMerge(st.state, state, false); serverStates.set(namespace, state); }); } if (isPlainObject(data?.config)) { Object.entries(data.config).forEach(([namespace, config]) => { storeConfigs.set(namespace, config); }); } if (isPlainObject(data?.derivedStateClosures)) { Object.entries(data.derivedStateClosures).forEach( ([namespace, paths]) => { const st = store( namespace, {}, { lock: universalUnlock } ); paths.forEach((path) => { const pathParts = path.split("."); const prop = pathParts.splice(-1, 1)[0]; const parent = pathParts.reduce( (prev, key) => peek(prev, key), st ); const desc = Object.getOwnPropertyDescriptor( parent, prop ); if (isPlainObject(desc?.value)) { parent[prop] = PENDING_GETTER; } }); } ); } }; ;// ./node_modules/@wordpress/interactivity/build-module/hooks.js function isNonDefaultDirectiveSuffix(entry) { return entry.suffix !== null; } function isDefaultDirectiveSuffix(entry) { return entry.suffix === null; } const context = (0,preact_module/* createContext */.q6)({ client: {}, server: {} }); const directiveCallbacks = {}; const directivePriorities = {}; const directive = (name, callback, { priority = 10 } = {}) => { directiveCallbacks[name] = callback; directivePriorities[name] = priority; }; const resolve = (path, namespace) => { if (!namespace) { warn( `Namespace missing for "${path}". The value for that path won't be resolved.` ); return; } let resolvedStore = stores.get(namespace); if (typeof resolvedStore === "undefined") { resolvedStore = store( namespace, {}, { lock: universalUnlock } ); } const current = { ...resolvedStore, context: getScope().context[namespace] }; try { const pathParts = path.split("."); return pathParts.reduce((acc, key) => acc[key], current); } catch (e) { if (e === PENDING_GETTER) { return PENDING_GETTER; } } }; const getEvaluate = ({ scope }) => ( // TODO: When removing the temporarily remaining `value( ...args )` call below, remove the `...args` parameter too. (entry, ...args) => { let { value: path, namespace } = entry; if (typeof path !== "string") { throw new Error("The `value` prop should be a string path"); } const hasNegationOperator = path[0] === "!" && !!(path = path.slice(1)); setScope(scope); const value = resolve(path, namespace); if (typeof value === "function") { if (hasNegationOperator) { warn( "Using a function with a negation operator is deprecated and will stop working in WordPress 6.9. Please use derived state instead." ); const functionResult = !value(...args); resetScope(); return functionResult; } resetScope(); const wrappedFunction = (...functionArgs) => { setScope(scope); const functionResult = value(...functionArgs); resetScope(); return functionResult; }; if (value.sync) { const syncAwareFunction = wrappedFunction; syncAwareFunction.sync = true; } return wrappedFunction; } const result = value; resetScope(); return hasNegationOperator && value !== PENDING_GETTER ? !result : result; } ); const getPriorityLevels = (directives) => { const byPriority = Object.keys(directives).reduce((obj, name) => { if (directiveCallbacks[name]) { const priority = directivePriorities[name]; (obj[priority] = obj[priority] || []).push(name); } return obj; }, {}); return Object.entries(byPriority).sort(([p1], [p2]) => parseInt(p1) - parseInt(p2)).map(([, arr]) => arr); }; const Directives = ({ directives, priorityLevels: [currentPriorityLevel, ...nextPriorityLevels], element, originalProps, previousScope }) => { const scope = A({}).current; scope.evaluate = q(getEvaluate({ scope }), []); const { client, server } = x(context); scope.context = client; scope.serverContext = server; scope.ref = previousScope?.ref || A(null); element = (0,preact_module/* cloneElement */.Ob)(element, { ref: scope.ref }); scope.attributes = element.props; const children = nextPriorityLevels.length > 0 ? (0,preact_module.h)(Directives, { directives, priorityLevels: nextPriorityLevels, element, originalProps, previousScope: scope }) : element; const props = { ...originalProps, children }; const directiveArgs = { directives, props, element, context, evaluate: scope.evaluate }; setScope(scope); for (const directiveName of currentPriorityLevel) { const wrapper = directiveCallbacks[directiveName]?.(directiveArgs); if (wrapper !== void 0) { props.children = wrapper; } } resetScope(); return props.children; }; const old = preact_module/* options */.fF.vnode; preact_module/* options */.fF.vnode = (vnode) => { if (vnode.props.__directives) { const props = vnode.props; const directives = props.__directives; if (directives.key) { vnode.key = directives.key.find(isDefaultDirectiveSuffix).value; } delete props.__directives; const priorityLevels = getPriorityLevels(directives); if (priorityLevels.length > 0) { vnode.props = { directives, priorityLevels, originalProps: props, type: vnode.type, element: (0,preact_module.h)(vnode.type, props), top: true }; vnode.type = Directives; } } if (old) { old(vnode); } }; ;// ./node_modules/@wordpress/interactivity/build-module/directives.js const warnUniqueIdWithTwoHyphens = (prefix, suffix, uniqueId) => { if (true) { warn( `The usage of data-wp-${prefix}--${suffix}${uniqueId ? `--${uniqueId}` : ""} (two hyphens for unique ID) is deprecated and will stop working in WordPress 7.1. Please use data-wp-${prefix}${uniqueId ? `--${suffix}---${uniqueId}` : `---${suffix}`} (three hyphens for unique ID) from now on.` ); } }; const warnUniqueIdNotSupported = (prefix, uniqueId) => { if (true) { warn( `Unique IDs are not supported for the data-wp-${prefix} directive. Ignoring the directive with unique ID "${uniqueId}".` ); } }; const warnWithSyncEvent = (wrongPrefix, rightPrefix) => { if (true) { warn( `The usage of data-wp-${wrongPrefix} is deprecated and will stop working in WordPress 7.0. Please, use data-wp-${rightPrefix} with the withSyncEvent() helper from now on.` ); } }; function wrapEventAsync(event) { const handler = { get(target, prop, receiver) { const value = target[prop]; switch (prop) { case "currentTarget": if (true) { warn( `Accessing the synchronous event.${prop} property in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().` ); } break; case "preventDefault": case "stopImmediatePropagation": case "stopPropagation": if (true) { warn( `Using the synchronous event.${prop}() function in a store action without wrapping it in withSyncEvent() is deprecated and will stop working in WordPress 7.0. Please wrap the store action in withSyncEvent().` ); } break; } if (value instanceof Function) { return function(...args) { return value.apply( this === receiver ? target : this, args ); }; } return value; } }; return new Proxy(event, handler); } const newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g; const ruleClean = /\/\*[^]*?\*\/| +/g; const ruleNewline = /\n+/g; const empty = " "; const cssStringToObject = (val) => { const tree = [{}]; let block, left; while (block = newRule.exec(val.replace(ruleClean, ""))) { if (block[4]) { tree.shift(); } else if (block[3]) { left = block[3].replace(ruleNewline, empty).trim(); tree.unshift(tree[0][left] = tree[0][left] || {}); } else { tree[0][block[1]] = block[2].replace(ruleNewline, empty).trim(); } } return tree[0]; }; const getGlobalEventDirective = (type) => { return ({ directives, evaluate }) => { directives[`on-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const suffixParts = entry.suffix.split("--", 2); const eventName = suffixParts[0]; if (true) { if (suffixParts[1]) { warnUniqueIdWithTwoHyphens( `on-${type}`, suffixParts[0], suffixParts[1] ); } } useInit(() => { const cb = (event) => { const result = evaluate(entry); if (typeof result === "function") { if (!result?.sync) { event = wrapEventAsync(event); } result(event); } }; const globalVar = type === "window" ? window : document; globalVar.addEventListener(eventName, cb); return () => globalVar.removeEventListener(eventName, cb); }); }); }; }; const evaluateItemKey = (inheritedValue, namespace, item, itemProp, eachKey) => { const clientContextWithItem = { ...inheritedValue.client, [namespace]: { ...inheritedValue.client[namespace], [itemProp]: item } }; const scope = { ...getScope(), context: clientContextWithItem, serverContext: inheritedValue.server }; return eachKey ? getEvaluate({ scope })(eachKey) : item; }; const useItemContexts = function* (inheritedValue, namespace, items, itemProp, eachKey) { const { current: itemContexts } = A(/* @__PURE__ */ new Map()); for (const item of items) { const key = evaluateItemKey( inheritedValue, namespace, item, itemProp, eachKey ); if (!itemContexts.has(key)) { itemContexts.set( key, proxifyContext( proxifyState(namespace, { // Inits the item prop in the context to shadow it in case // it was inherited from the parent context. The actual // value is set in the `wp-each` directive later on. [itemProp]: void 0 }), inheritedValue.client[namespace] ) ); } yield [item, itemContexts.get(key), key]; } }; const getGlobalAsyncEventDirective = (type) => { return ({ directives, evaluate }) => { directives[`on-async-${type}`].filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (true) { warnWithSyncEvent(`on-async-${type}`, `on-${type}`); } const eventName = entry.suffix.split("--", 1)[0]; useInit(() => { const cb = async (event) => { await splitTask(); const result = evaluate(entry); if (typeof result === "function") { result(event); } }; const globalVar = type === "window" ? window : document; globalVar.addEventListener(eventName, cb, { passive: true }); return () => globalVar.removeEventListener(eventName, cb); }); }); }; }; const routerRegions = /* @__PURE__ */ new Map(); var directives_default = () => { directive( "context", ({ directives: { context }, props: { children }, context: inheritedContext }) => { const entries = context.filter(isDefaultDirectiveSuffix).reverse(); if (!entries.length) { if (true) { warn( "The usage of data-wp-context--unique-id (two hyphens) is not supported. To add a unique ID to the directive, please use data-wp-context---unique-id (three hyphens) instead." ); } return; } const { Provider } = inheritedContext; const { client: inheritedClient, server: inheritedServer } = x(inheritedContext); const client = A({}); const server = {}; const result = { client: { ...inheritedClient }, server: { ...inheritedServer } }; const namespaces = /* @__PURE__ */ new Set(); entries.forEach(({ value, namespace, uniqueId }) => { if (!isPlainObject(value)) { if (true) { warn( `The value of data-wp-context${uniqueId ? `---${uniqueId}` : ""} on the ${namespace} namespace must be a valid stringified JSON object.` ); } return; } if (!client.current[namespace]) { client.current[namespace] = proxifyState(namespace, {}); } deepMerge( client.current[namespace], deepClone(value), false ); server[namespace] = value; namespaces.add(namespace); }); namespaces.forEach((namespace) => { result.client[namespace] = proxifyContext( client.current[namespace], inheritedClient[namespace] ); result.server[namespace] = proxifyContext( server[namespace], inheritedServer[namespace] ); }); return (0,preact_module.h)(Provider, { value: result }, children); }, { priority: 5 } ); directive("watch", ({ directives: { watch }, evaluate }) => { watch.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("watch", entry.suffix); } } useWatch(() => { let start; if (false) {} let result = evaluate(entry); if (typeof result === "function") { result = result(); } if (false) {} return result; }); }); }); directive("init", ({ directives: { init }, evaluate }) => { init.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("init", entry.suffix); } } useInit(() => { let start; if (false) {} let result = evaluate(entry); if (typeof result === "function") { result = result(); } if (false) {} return result; }); }); }); directive("on", ({ directives: { on }, element, evaluate }) => { const events = /* @__PURE__ */ new Map(); on.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const suffixParts = entry.suffix.split("--", 2); if (true) { if (suffixParts[1]) { warnUniqueIdWithTwoHyphens( "on", suffixParts[0], suffixParts[1] ); } } if (!events.has(suffixParts[0])) { events.set(suffixParts[0], /* @__PURE__ */ new Set()); } events.get(suffixParts[0]).add(entry); }); events.forEach((entries, eventType) => { const existingHandler = element.props[`on${eventType}`]; element.props[`on${eventType}`] = (event) => { if (existingHandler) { existingHandler(event); } entries.forEach((entry) => { let start; if (false) {} const result = evaluate(entry); if (typeof result === "function") { if (!result?.sync) { event = wrapEventAsync(event); } result(event); } if (false) {} }); }; }); }); directive( "on-async", ({ directives: { "on-async": onAsync }, element, evaluate }) => { if (true) { warnWithSyncEvent("on-async", "on"); } const events = /* @__PURE__ */ new Map(); onAsync.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const event = entry.suffix.split("--", 1)[0]; if (!events.has(event)) { events.set(event, /* @__PURE__ */ new Set()); } events.get(event).add(entry); }); events.forEach((entries, eventType) => { const existingHandler = element.props[`on${eventType}`]; element.props[`on${eventType}`] = (event) => { if (existingHandler) { existingHandler(event); } entries.forEach(async (entry) => { await splitTask(); const result = evaluate(entry); if (typeof result === "function") { result(event); } }); }; }); } ); directive("on-window", getGlobalEventDirective("window")); directive("on-document", getGlobalEventDirective("document")); directive("on-async-window", getGlobalAsyncEventDirective("window")); directive( "on-async-document", getGlobalAsyncEventDirective("document") ); directive( "class", ({ directives: { class: classNames }, element, evaluate }) => { classNames.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { const className = entry.uniqueId ? `${entry.suffix}---${entry.uniqueId}` : entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } const currentClass = element.props.class || ""; const classFinder = new RegExp( `(^|\\s)${className}(\\s|$)`, "g" ); if (!result) { element.props.class = currentClass.replace(classFinder, " ").trim(); } else if (!classFinder.test(currentClass)) { element.props.class = currentClass ? `${currentClass} ${className}` : className; } useInit(() => { if (!result) { element.ref.current.classList.remove(className); } else { element.ref.current.classList.add(className); } }); }); } ); directive("style", ({ directives: { style }, element, evaluate }) => { style.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("style", entry.uniqueId); } return; } const styleProp = entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props.style = element.props.style || {}; if (typeof element.props.style === "string") { element.props.style = cssStringToObject(element.props.style); } if (!result) { delete element.props.style[styleProp]; } else { element.props.style[styleProp] = result; } useInit(() => { if (!result) { element.ref.current.style.removeProperty(styleProp); } else { element.ref.current.style.setProperty(styleProp, result); } }); }); }); directive("bind", ({ directives: { bind }, element, evaluate }) => { bind.filter(isNonDefaultDirectiveSuffix).forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("bind", entry.uniqueId); } return; } const attribute = entry.suffix; let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props[attribute] = result; useInit(() => { const el = element.ref.current; if (attribute === "style") { if (typeof result === "string") { el.style.cssText = result; } return; } else if (attribute !== "width" && attribute !== "height" && attribute !== "href" && attribute !== "list" && attribute !== "form" && /* * The value for `tabindex` follows the parsing rules for an * integer. If that fails, or if the attribute isn't present, then * the browsers should "follow platform conventions to determine if * the element should be considered as a focusable area", * practically meaning that most elements get a default of `-1` (not * focusable), but several also get a default of `0` (focusable in * order after all elements with a positive `tabindex` value). * * @see https://html.spec.whatwg.org/#tabindex-value */ attribute !== "tabIndex" && attribute !== "download" && attribute !== "rowSpan" && attribute !== "colSpan" && attribute !== "role" && attribute in el) { try { el[attribute] = result === null || result === void 0 ? "" : result; return; } catch (err) { } } if (result !== null && result !== void 0 && (result !== false || attribute[4] === "-")) { el.setAttribute(attribute, result); } else { el.removeAttribute(attribute); } }); }); }); directive( "ignore", ({ element: { type: Type, props: { innerHTML, ...rest } } }) => { if (true) { warn( "The data-wp-ignore directive is deprecated and will be removed in version 7.0." ); } const cached = T(() => innerHTML, []); return (0,preact_module.h)(Type, { dangerouslySetInnerHTML: { __html: cached }, ...rest }); } ); directive("text", ({ directives: { text }, element, evaluate }) => { const entries = text.filter(isDefaultDirectiveSuffix); if (!entries.length) { if (true) { warn( "The usage of data-wp-text--suffix is not supported. Please use data-wp-text instead." ); } return; } entries.forEach((entry) => { if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("text", entry.uniqueId); } return; } try { let result = evaluate(entry); if (result === PENDING_GETTER) { return; } if (typeof result === "function") { result = result(); } element.props.children = typeof result === "object" ? null : result.toString(); } catch (e) { element.props.children = null; } }); }); directive("run", ({ directives: { run }, evaluate }) => { run.forEach((entry) => { if (true) { if (entry.suffix) { warnUniqueIdWithTwoHyphens("run", entry.suffix); } } let result = evaluate(entry); if (typeof result === "function") { result = result(); } return result; }); }); directive( "each", ({ directives: { each, "each-key": eachKey }, context: inheritedContext, element, evaluate }) => { if (element.type !== "template") { if (true) { warn( "The data-wp-each directive can only be used on <template> elements." ); } return; } const { Provider } = inheritedContext; const inheritedValue = x(inheritedContext); const [entry] = each; const { namespace, suffix, uniqueId } = entry; if (each.length > 1) { if (true) { warn( "The usage of multiple data-wp-each directives on the same element is not supported. Please pick only one." ); } return; } if (uniqueId) { if (true) { warnUniqueIdNotSupported("each", uniqueId); } return; } let iterable = evaluate(entry); if (iterable === PENDING_GETTER) { return; } if (typeof iterable === "function") { iterable = iterable(); } if (typeof iterable?.[Symbol.iterator] !== "function") { return; } const itemProp = suffix ? kebabToCamelCase(suffix) : "item"; const result = []; const itemContexts = useItemContexts( inheritedValue, namespace, iterable, itemProp, eachKey?.[0] ); for (const [item, itemContext, key] of itemContexts) { const mergedContext = { client: { ...inheritedValue.client, [namespace]: itemContext }, server: { ...inheritedValue.server } }; mergedContext.client[namespace][itemProp] = item; result.push( (0,preact_module.h)( Provider, { value: mergedContext, key }, element.props.content ) ); } return result; }, { priority: 20 } ); directive( "each-child", ({ directives: { "each-child": eachChild }, element, evaluate }) => { const entry = eachChild.find(isDefaultDirectiveSuffix); if (!entry) { return; } const iterable = evaluate(entry); return iterable === PENDING_GETTER ? element : null; }, { priority: 1 } ); directive( "router-region", ({ directives: { "router-region": routerRegion } }) => { const entry = routerRegion.find(isDefaultDirectiveSuffix); if (!entry) { return; } if (entry.suffix) { if (true) { warn( `Suffixes for the data-wp-router-region directive are not supported. Ignoring the directive with suffix "${entry.suffix}".` ); } return; } if (entry.uniqueId) { if (true) { warnUniqueIdNotSupported("router-region", entry.uniqueId); } return; } const regionId = typeof entry.value === "string" ? entry.value : entry.value.id; if (!routerRegions.has(regionId)) { routerRegions.set(regionId, signals_core_module_d()); } const vdom = routerRegions.get(regionId).value; _(() => { if (vdom && typeof vdom.type !== "string") { navigationContextSignal.value = navigationContextSignal.peek() + 1; } }, [vdom]); if (vdom && typeof vdom.type !== "string") { const previousScope = getScope(); return (0,preact_module/* cloneElement */.Ob)(vdom, { previousScope }); } return vdom; }, { priority: 1 } ); }; ;// ./node_modules/@wordpress/interactivity/build-module/vdom.js const directivePrefix = `data-wp-`; const namespaces = []; const currentNamespace = () => namespaces[namespaces.length - 1] ?? null; const isObject = (item) => Boolean(item && typeof item === "object" && item.constructor === Object); const invalidCharsRegex = /[^a-z0-9-_]/i; function parseDirectiveName(directiveName) { const name = directiveName.substring(8); if (invalidCharsRegex.test(name)) { return null; } const suffixIndex = name.indexOf("--"); if (suffixIndex === -1) { return { prefix: name, suffix: null, uniqueId: null }; } const prefix = name.substring(0, suffixIndex); const remaining = name.substring(suffixIndex); if (remaining.startsWith("---") && remaining[3] !== "-") { return { prefix, suffix: null, uniqueId: remaining.substring(3) || null }; } let suffix = remaining.substring(2); const uniqueIdIndex = suffix.indexOf("---"); if (uniqueIdIndex !== -1 && suffix.substring(uniqueIdIndex)[3] !== "-") { const uniqueId = suffix.substring(uniqueIdIndex + 3) || null; suffix = suffix.substring(0, uniqueIdIndex) || null; return { prefix, suffix, uniqueId }; } return { prefix, suffix: suffix || null, uniqueId: null }; } const nsPathRegExp = /^([\w_\/-]+)::(.+)$/; const hydratedIslands = /* @__PURE__ */ new WeakSet(); function toVdom(root) { const nodesToRemove = /* @__PURE__ */ new Set(); const nodesToReplace = /* @__PURE__ */ new Set(); const treeWalker = document.createTreeWalker( root, 205 // TEXT + CDATA_SECTION + COMMENT + PROCESSING_INSTRUCTION + ELEMENT ); function walk(node) { const { nodeType } = node; if (nodeType === 3) { return node.data; } if (nodeType === 4) { nodesToReplace.add(node); return node.nodeValue; } if (nodeType === 8 || nodeType === 7) { nodesToRemove.add(node); return null; } const elementNode = node; const { attributes } = elementNode; const localName = elementNode.localName; const props = {}; const children = []; const directives = []; let ignore = false; let island = false; for (let i = 0; i < attributes.length; i++) { const attributeName = attributes[i].name; const attributeValue = attributes[i].value; if (attributeName[directivePrefix.length] && attributeName.slice(0, directivePrefix.length) === directivePrefix) { if (attributeName === "data-wp-ignore") { ignore = true; } else { const regexResult = nsPathRegExp.exec(attributeValue); const namespace = regexResult?.[1] ?? null; let value = regexResult?.[2] ?? attributeValue; try { const parsedValue = JSON.parse(value); value = isObject(parsedValue) ? parsedValue : value; } catch { } if (attributeName === "data-wp-interactive") { island = true; const islandNamespace = ( // eslint-disable-next-line no-nested-ternary typeof value === "string" ? value : typeof value?.namespace === "string" ? value.namespace : null ); namespaces.push(islandNamespace); } else { directives.push([attributeName, namespace, value]); } } } else if (attributeName === "ref") { continue; } props[attributeName] = attributeValue; } if (ignore && !island) { return [ (0,preact_module.h)(localName, { ...props, innerHTML: elementNode.innerHTML, __directives: { ignore: true } }) ]; } if (island) { hydratedIslands.add(elementNode); } if (directives.length) { props.__directives = directives.reduce((obj, [name, ns, value]) => { const directiveParsed = parseDirectiveName(name); if (directiveParsed === null) { if (true) { warn(`Found malformed directive name: ${name}.`); } return obj; } const { prefix, suffix, uniqueId } = directiveParsed; obj[prefix] = obj[prefix] || []; obj[prefix].push({ namespace: ns ?? currentNamespace(), value, suffix, uniqueId }); return obj; }, {}); for (const prefix in props.__directives) { props.__directives[prefix].sort( (a, b) => { const aSuffix = a.suffix ?? ""; const bSuffix = b.suffix ?? ""; if (aSuffix !== bSuffix) { return aSuffix < bSuffix ? -1 : 1; } const aId = a.uniqueId ?? ""; const bId = b.uniqueId ?? ""; return +(aId > bId) - +(aId < bId); } ); } } if (props.__directives?.["each-child"]) { props.dangerouslySetInnerHTML = { __html: elementNode.innerHTML }; } else if (localName === "template") { props.content = [ ...elementNode.content.childNodes ].map((childNode) => toVdom(childNode)); } else { let child = treeWalker.firstChild(); if (child) { while (child) { const vnode = walk(child); if (vnode) { children.push(vnode); } child = treeWalker.nextSibling(); } treeWalker.parentNode(); } } if (island) { namespaces.pop(); } return (0,preact_module.h)(localName, props, children); } const vdom = walk(treeWalker.currentNode); nodesToRemove.forEach( (node) => node.remove() ); nodesToReplace.forEach( (node) => node.replaceWith( new window.Text(node.nodeValue ?? "") ) ); return vdom; } ;// ./node_modules/@wordpress/interactivity/build-module/hydration.js const regionRootFragments = /* @__PURE__ */ new WeakMap(); const getRegionRootFragment = (regions) => { const region = Array.isArray(regions) ? regions[0] : regions; if (!region.parentElement) { throw Error("The passed region should be an element with a parent."); } if (!regionRootFragments.has(region)) { regionRootFragments.set( region, createRootFragment(region.parentElement, regions) ); } return regionRootFragments.get(region); }; const initialVdom = /* @__PURE__ */ new WeakMap(); const hydrateRegions = async () => { const nodes = document.querySelectorAll(`[data-wp-interactive]`); for (const node of nodes) { if (!hydratedIslands.has(node)) { await splitTask(); const fragment = getRegionRootFragment(node); const vdom = toVdom(node); initialVdom.set(node, vdom); await splitTask(); (0,preact_module/* hydrate */.Qv)(vdom, fragment); } } }; ;// ./node_modules/@wordpress/interactivity/build-module/index.js const requiredConsent = "I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."; const privateApis = (lock) => { if (lock === requiredConsent) { return { getRegionRootFragment: getRegionRootFragment, initialVdom: initialVdom, toVdom: toVdom, directive: directive, getNamespace: getNamespace, h: preact_module.h, cloneElement: preact_module/* cloneElement */.Ob, render: preact_module/* render */.XX, proxifyState: proxifyState, parseServerData: parseServerData, populateServerData: populateServerData, batch: signals_core_module_r, routerRegions: routerRegions, deepReadOnly: deepReadOnly, navigationSignal: navigationSignal }; } throw new Error("Forbidden access."); }; populateServerData(parseServerData()); directives_default(); onDOMReady(hydrateRegions); /***/ }), /***/ 622: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ FK: () => (/* binding */ k), /* harmony export */ Ob: () => (/* binding */ K), /* harmony export */ Qv: () => (/* binding */ J), /* harmony export */ XX: () => (/* binding */ G), /* harmony export */ fF: () => (/* binding */ l), /* harmony export */ h: () => (/* binding */ _), /* harmony export */ q6: () => (/* binding */ Q), /* harmony export */ uA: () => (/* binding */ x), /* harmony export */ zO: () => (/* binding */ t) /* harmony export */ }); /* unused harmony exports createElement, createRef, toChildArray */ var n,l,u,t,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!$.__r++||o!=l.debounceRendering)&&((o=l.debounceRendering)||r)($)}function $(){for(var n,u,t,o,r,f,c,s=1;i.length;)i.length>s&&i.sort(e),n=i.shift(),s=i.length,n.__d&&(t=void 0,o=void 0,r=(o=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(t),O(u.__P,t,o,u.__n,u.__P.namespaceURI,32&o.__u?[r]:null,f,null==r?S(o):r,!!(32&o.__u),c),t.__v=o.__v,t.__.__k[t.__i]=t,N(f,t,c),o.__e=o.__=null,t.__e!=r&&C(t)));$.__r=0}function I(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v,b=l.length;for(f=P(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p:m[y.__i]||p,y.__i=a,g=O(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=A(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P(n,l,u,t,i){var o,r,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),o=0;o<i;o++)null!=(r=l[o])&&"boolean"!=typeof r&&"function"!=typeof r?("string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?r=n.__k[o]=m(null,r,null,null,null):d(r)?r=n.__k[o]=m(k,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?r=n.__k[o]=m(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):n.__k[o]=r,f=o+h,r.__=n,r.__b=n.__b+1,e=null,-1!=(c=r.__i=L(r,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[o]=null;if(a)for(o=0;o<s;o++)null!=(e=u[o])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D(e,e));return t}function A(n,l,u,t){var i,o;if("function"==typeof n.type){for(i=n.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=n,l=A(i[o],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,o,r,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,o=u+1;i>=0||o<l.length;)if(null!=(c=l[r=i>=0?i--:o++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return r;return-1}function T(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var o,r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])o=l!=(l=l.replace(f,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=E),C&&C.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k&&null==a.key&&(L=V(a.props.children)),f=I(n,d(L)?L:[L],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f}else{for(T=r.length;T--;)g(r[T]);z(u)}else u.__e=t.__e,u.__k=t.__k,n.then||z(u);l.__e(n,u,t)}else null==r&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q(t.__e,u,t,i,o,r,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(z)}function N(n,u,t){for(var i=0;i<t.length;i++)B(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:d(n)?n.map(V):w({},n)}function q(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,_,m,b=i.props||p,k=t.props,x=t.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(r,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null==x)b===k||c&&u.data==k||(u.data=k);else{if(e=e&&n.call(u.childNodes),!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j(u,a,null,w,r)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||j(u,a,w,b[a],r);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"==t.type?u.content:u,d(y)?y:[y],t,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j(u,a,_,b[a],r),a="checked",null!=m&&m!=u[a]&&j(u,a,m,b[a],r))}return u}function B(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function D(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&D(i[o],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0}function E(n,l,u){return this.constructor(n,u)}function G(u,t,i){var o,r,e,f;t==document&&(t=document.documentElement),l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O(t,u=(!o&&i||t).__k=_(k,null,[u]),r||p,p,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),N(e,u,f)}function J(n,l){G(n,l,J)}function K(l,u,t){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&null!=e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,o||l.ref,null)}function Q(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=F(!1),a=F(!0),h=0; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // EXPORTS __webpack_require__.d(__webpack_exports__, { zj: () => (/* reexport */ debug_build_module/* getConfig */.zj), SD: () => (/* reexport */ debug_build_module/* getContext */.SD), V6: () => (/* reexport */ debug_build_module/* getElement */.V6), $K: () => (/* reexport */ debug_build_module/* getServerContext */.$K), vT: () => (/* reexport */ debug_build_module/* getServerState */.vT), jb: () => (/* reexport */ debug_build_module/* privateApis */.jb), yT: () => (/* reexport */ debug_build_module/* splitTask */.yT), M_: () => (/* reexport */ debug_build_module/* store */.M_), hb: () => (/* reexport */ debug_build_module/* useCallback */.hb), vJ: () => (/* reexport */ debug_build_module/* useEffect */.vJ), ip: () => (/* reexport */ debug_build_module/* useInit */.ip), Nf: () => (/* reexport */ debug_build_module/* useLayoutEffect */.Nf), Kr: () => (/* reexport */ debug_build_module/* useMemo */.Kr), li: () => (/* reexport */ debug_build_module/* useRef */.li), J0: () => (/* reexport */ debug_build_module/* useState */.J0), FH: () => (/* reexport */ debug_build_module/* useWatch */.FH), v4: () => (/* reexport */ debug_build_module/* withScope */.v4), mh: () => (/* reexport */ debug_build_module/* withSyncEvent */.mh) }); // EXTERNAL MODULE: ./node_modules/preact/dist/preact.module.js var debug_preact_module = __webpack_require__(622); ;// ./node_modules/preact/devtools/dist/devtools.module.js var debug_i;function debug_t(o,e){return n.__a&&n.__a(e),o}null!=(debug_i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&debug_i.__PREACT_DEVTOOLS__&&debug_i.__PREACT_DEVTOOLS__.attachPreact("10.28.2",debug_preact_module/* options */.fF,{Fragment:debug_preact_module/* Fragment */.FK,Component:debug_preact_module/* Component */.uA}); ;// ./node_modules/preact/debug/dist/debug.module.js var debug_debug_module_t={};function debug_r(){debug_debug_module_t={}}function debug_a(e){return e.type===debug_preact_module/* Fragment */.FK?"Fragment":"function"==typeof e.type?e.type.displayName||e.type.name:"string"==typeof e.type?e.type:"#text"}var debug_debug_module_i=[],debug_s=[];function debug_c(){return debug_debug_module_i.length>0?debug_debug_module_i[debug_debug_module_i.length-1]:null}var debug_l=!0;function debug_u(e){return"function"==typeof e.type&&e.type!=debug_preact_module/* Fragment */.FK}function debug_f(n){for(var e=[n],o=n;null!=o.__o;)e.push(o.__o),o=o.__o;return e.reduce(function(n,e){n+=" in "+debug_a(e);var o=e.__source;return o?n+=" (at "+o.fileName+":"+o.lineNumber+")":debug_l&&console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons."),debug_l=!1,n+"\n"},"")}var debug_d="function"==typeof WeakMap;function debug_p(n){var e=[];return n.__k?(n.__k.forEach(function(n){n&&"function"==typeof n.type?e.push.apply(e,debug_p(n)):n&&"string"==typeof n.type&&e.push(n.type)}),e):e}function debug_h(n){return n?"function"==typeof n.type?null==n.__?null!=n.__e&&null!=n.__e.parentNode?n.__e.parentNode.localName:"":debug_h(n.__):n.type:""}var debug_v=debug_preact_module/* Component */.uA.prototype.setState;function debug_y(n){return"table"===n||"tfoot"===n||"tbody"===n||"thead"===n||"td"===n||"tr"===n||"th"===n}debug_preact_module/* Component */.uA.prototype.setState=function(n,e){return null==this.__v&&null==this.state&&console.warn('Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly.\n\n'+debug_f(debug_c())),debug_v.call(this,n,e)};var debug_m=/^(address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|main|menu|nav|ol|p|pre|search|section|table|ul)$/,debug_b=debug_preact_module/* Component */.uA.prototype.forceUpdate;function debug_w(n){var e=n.props,o=debug_a(n),t="";for(var r in e)if(e.hasOwnProperty(r)&&"children"!==r){var i=e[r];"function"==typeof i&&(i="function "+(i.displayName||i.name)+"() {}"),i=Object(i)!==i||i.toString?i+"":Object.prototype.toString.call(i),t+=" "+r+"="+JSON.stringify(i)}var s=e.children;return"<"+o+t+(s&&s.length?">..</"+o+">":" />")}debug_preact_module/* Component */.uA.prototype.forceUpdate=function(n){return null==this.__v?console.warn('Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application.\n\n'+debug_f(debug_c())):null==this.__P&&console.warn('Can\'t call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.\n\n'+debug_f(this.__v)),debug_b.call(this,n)},debug_preact_module/* options */.fF.__m=function(n,e){var o=n.type,t=e.map(function(n){return n&&n.localName}).filter(Boolean);console.error('Expected a DOM node of type "'+o+'" but found "'+t.join(", ")+"\" as available DOM-node(s), this is caused by the SSR'd HTML containing different DOM-nodes compared to the hydrated one.\n\n"+debug_f(n))},function(){!function(){var n=debug_preact_module/* options */.fF.__b,o=debug_preact_module/* options */.fF.diffed,t=debug_preact_module/* options */.fF.__,r=debug_preact_module/* options */.fF.vnode,a=debug_preact_module/* options */.fF.__r;debug_preact_module/* options */.fF.diffed=function(n){debug_u(n)&&debug_s.pop(),debug_debug_module_i.pop(),o&&o(n)},debug_preact_module/* options */.fF.__b=function(e){debug_u(e)&&debug_debug_module_i.push(e),n&&n(e)},debug_preact_module/* options */.fF.__=function(n,e){debug_s=[],t&&t(n,e)},debug_preact_module/* options */.fF.vnode=function(n){n.__o=debug_s.length>0?debug_s[debug_s.length-1]:null,r&&r(n)},debug_preact_module/* options */.fF.__r=function(n){debug_u(n)&&debug_s.push(n),a&&a(n)}}();var n=!1,o=debug_preact_module/* options */.fF.__b,r=debug_preact_module/* options */.fF.diffed,c=debug_preact_module/* options */.fF.vnode,l=debug_preact_module/* options */.fF.__r,v=debug_preact_module/* options */.fF.__e,b=debug_preact_module/* options */.fF.__,g=debug_preact_module/* options */.fF.__h,E=debug_d?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,k=[];debug_preact_module/* options */.fF.__e=function(n,e,o,t){if(e&&e.__c&&"function"==typeof n.then){var r=n;n=new Error("Missing Suspense. The throwing component was: "+debug_a(e));for(var i=e;i;i=i.__)if(i.__c&&i.__c.__c){n=r;break}if(n instanceof Error)throw n}try{(t=t||{}).componentStack=debug_f(e),v(n,e,o,t),"function"!=typeof n.then&&setTimeout(function(){throw n})}catch(n){throw n}},debug_preact_module/* options */.fF.__=function(n,e){if(!e)throw new Error("Undefined parent passed to render(), this is the second argument.\nCheck if the element is available in the DOM/has the correct id.");var o;switch(e.nodeType){case 1:case 11:case 9:o=!0;break;default:o=!1}if(!o){var t=debug_a(n);throw new Error("Expected a valid HTML node as a second argument to render.\tReceived "+e+" instead: render(<"+t+" />, "+e+");")}b&&b(n,e)},debug_preact_module/* options */.fF.__b=function(e){var r=e.type;if(n=!0,void 0===r)throw new Error("Undefined component passed to createElement()\n\nYou likely forgot to export your component or might have mixed up default and named imports"+debug_w(e)+"\n\n"+debug_f(e));if(null!=r&&"object"==typeof r){if(void 0!==r.__k&&void 0!==r.__e)throw new Error("Invalid type passed to createElement(): "+r+"\n\nDid you accidentally pass a JSX literal as JSX twice?\n\n let My"+debug_a(e)+" = "+debug_w(r)+";\n let vnode = <My"+debug_a(e)+" />;\n\nThis usually happens when you export a JSX literal and not the component.\n\n"+debug_f(e));throw new Error("Invalid type passed to createElement(): "+(Array.isArray(r)?"array":r))}if(void 0!==e.ref&&"function"!=typeof e.ref&&"object"!=typeof e.ref&&!("$$typeof"in e))throw new Error('Component\'s "ref" property should be a function, or an object created by createRef(), but got ['+typeof e.ref+"] instead\n"+debug_w(e)+"\n\n"+debug_f(e));if("string"==typeof e.type)for(var i in e.props)if("o"===i[0]&&"n"===i[1]&&"function"!=typeof e.props[i]&&null!=e.props[i])throw new Error("Component's \""+i+'" property should be a function, but got ['+typeof e.props[i]+"] instead\n"+debug_w(e)+"\n\n"+debug_f(e));if("function"==typeof e.type&&e.type.propTypes){if("Lazy"===e.type.displayName&&E&&!E.lazyPropTypes.has(e.type)){var s="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var c=e.type();E.lazyPropTypes.set(e.type,!0),console.warn(s+"Component wrapped in lazy() is "+debug_a(c))}catch(n){console.warn(s+"We will log the wrapped component's name once it is loaded.")}}var l=e.props;e.type.__f&&delete(l=function(n,e){for(var o in e)n[o]=e[o];return n}({},l)).ref,function(n,e,o,r,a){Object.keys(n).forEach(function(o){var i;try{i=n[o](e,o,r,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(n){i=n}i&&!(i.message in debug_debug_module_t)&&(debug_debug_module_t[i.message]=!0,console.error("Failed prop type: "+i.message+(a&&"\n"+a()||"")))})}(e.type.propTypes,l,0,debug_a(e),function(){return debug_f(e)})}o&&o(e)};var T,_=0;debug_preact_module/* options */.fF.__r=function(e){l&&l(e),n=!0;var o=e.__c;if(o===T?_++:_=1,_>=25)throw new Error("Too many re-renders. This is limited to prevent an infinite loop which may lock up your browser. The component causing this is: "+debug_a(e));T=o},debug_preact_module/* options */.fF.__h=function(e,o,t){if(!e||!n)throw new Error("Hook can only be invoked from render methods.");g&&g(e,o,t)};var O=function(n,e){return{get:function(){var o="get"+n+e;k&&k.indexOf(o)<0&&(k.push(o),console.warn("getting vnode."+n+" is deprecated, "+e))},set:function(){var o="set"+n+e;k&&k.indexOf(o)<0&&(k.push(o),console.warn("setting vnode."+n+" is not allowed, "+e))}}},I={nodeName:O("nodeName","use vnode.type"),attributes:O("attributes","use vnode.props"),children:O("children","use vnode.props.children")},M=Object.create({},I);debug_preact_module/* options */.fF.vnode=function(n){var e=n.props;if(null!==n.type&&null!=e&&("__source"in e||"__self"in e)){var o=n.props={};for(var t in e){var r=e[t];"__source"===t?n.__source=r:"__self"===t?n.__self=r:o[t]=r}}n.__proto__=M,c&&c(n)},debug_preact_module/* options */.fF.diffed=function(e){var o,t=e.type,i=e.__;if(e.__k&&e.__k.forEach(function(n){if("object"==typeof n&&n&&void 0===n.type){var o=Object.keys(n).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+o+"}.\n\n"+debug_f(e))}}),e.__c===T&&(_=0),"string"==typeof t&&(debug_y(t)||"p"===t||"a"===t||"button"===t)){var s=debug_h(i);if(""!==s&&debug_y(t))"table"===t&&"td"!==s&&debug_y(s)?console.error("Improper nesting of table. Your <table> should not have a table-node parent."+debug_w(e)+"\n\n"+debug_f(e)):"thead"!==t&&"tfoot"!==t&&"tbody"!==t||"table"===s?"tr"===t&&"thead"!==s&&"tfoot"!==s&&"tbody"!==s?console.error("Improper nesting of table. Your <tr> should have a <thead/tbody/tfoot> parent."+debug_w(e)+"\n\n"+debug_f(e)):"td"===t&&"tr"!==s?console.error("Improper nesting of table. Your <td> should have a <tr> parent."+debug_w(e)+"\n\n"+debug_f(e)):"th"===t&&"tr"!==s&&console.error("Improper nesting of table. Your <th> should have a <tr>."+debug_w(e)+"\n\n"+debug_f(e)):console.error("Improper nesting of table. Your <thead/tbody/tfoot> should have a <table> parent."+debug_w(e)+"\n\n"+debug_f(e));else if("p"===t){var c=debug_p(e).filter(function(n){return debug_m.test(n)});c.length&&console.error("Improper nesting of paragraph. Your <p> should not have "+c.join(", ")+" as child-elements."+debug_w(e)+"\n\n"+debug_f(e))}else"a"!==t&&"button"!==t||-1!==debug_p(e).indexOf(t)&&console.error("Improper nesting of interactive content. Your <"+t+"> should not have other "+("a"===t?"anchor":"button")+" tags as child-elements."+debug_w(e)+"\n\n"+debug_f(e))}if(n=!1,r&&r(e),null!=e.__k)for(var l=[],u=0;u<e.__k.length;u++){var d=e.__k[u];if(d&&null!=d.key){var v=d.key;if(-1!==l.indexOf(v)){console.error('Following component has two or more children with the same key attribute: "'+v+'". This may cause glitches and misbehavior in rendering process. Component: \n\n'+debug_w(e)+"\n\n"+debug_f(e));break}l.push(v)}}if(null!=e.__c&&null!=e.__c.__H){var b=e.__c.__H.__;if(b)for(var g=0;g<b.length;g+=1){var E=b[g];if(E.__H)for(var k=0;k<E.__H.length;k++)if((o=E.__H[k])!=o){var O=debug_a(e);console.warn("Invalid argument passed to hook. Hooks should not be called with NaN in the dependency array. Hook index "+g+" in component "+O+" was called with NaN.")}}}}}(); // EXTERNAL MODULE: ./node_modules/@wordpress/interactivity/build-module/index.js + 17 modules var debug_build_module = __webpack_require__(434); ;// ./node_modules/@wordpress/interactivity/build-module/debug.js var __webpack_exports__getConfig = __webpack_exports__.zj; var __webpack_exports__getContext = __webpack_exports__.SD; var __webpack_exports__getElement = __webpack_exports__.V6; var __webpack_exports__getServerContext = __webpack_exports__.$K; var __webpack_exports__getServerState = __webpack_exports__.vT; var __webpack_exports__privateApis = __webpack_exports__.jb; var __webpack_exports__splitTask = __webpack_exports__.yT; var __webpack_exports__store = __webpack_exports__.M_; var __webpack_exports__useCallback = __webpack_exports__.hb; var __webpack_exports__useEffect = __webpack_exports__.vJ; var __webpack_exports__useInit = __webpack_exports__.ip; var __webpack_exports__useLayoutEffect = __webpack_exports__.Nf; var __webpack_exports__useMemo = __webpack_exports__.Kr; var __webpack_exports__useRef = __webpack_exports__.li; var __webpack_exports__useState = __webpack_exports__.J0; var __webpack_exports__useWatch = __webpack_exports__.FH; var __webpack_exports__withScope = __webpack_exports__.v4; var __webpack_exports__withSyncEvent = __webpack_exports__.mh; export { __webpack_exports__getConfig as getConfig, __webpack_exports__getContext as getContext, __webpack_exports__getElement as getElement, __webpack_exports__getServerContext as getServerContext, __webpack_exports__getServerState as getServerState, __webpack_exports__privateApis as privateApis, __webpack_exports__splitTask as splitTask, __webpack_exports__store as store, __webpack_exports__useCallback as useCallback, __webpack_exports__useEffect as useEffect, __webpack_exports__useInit as useInit, __webpack_exports__useLayoutEffect as useLayoutEffect, __webpack_exports__useMemo as useMemo, __webpack_exports__useRef as useRef, __webpack_exports__useState as useState, __webpack_exports__useWatch as useWatch, __webpack_exports__withScope as withScope, __webpack_exports__withSyncEvent as withSyncEvent }; interactivity/index.min.js 0000644 00000120352 15151136645 0011703 0 ustar 00 var t={622:(t,e,n)=>{n.d(e,{Ob:()=>z,Qv:()=>V,XX:()=>B,fF:()=>o,h:()=>S,q6:()=>J,uA:()=>E,zO:()=>s});var r,o,i,s,u,c,l,_,a,f,p,h,d,v={},y=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function w(t,e){for(var n in e)t[n]=e[n];return t}function b(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function S(t,e,n){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return x(t,u,o,i,null)}function x(t,e,n,r,s){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++i:s,__i:-1,__u:0};return null==s&&null!=o.vnode&&o.vnode(u),u}function k(t){return t.children}function E(t,e){this.props=t,this.context=e}function P(t,e){if(null==e)return t.__?P(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?P(t):null}function C(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return C(t)}}function O(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!M.__r++||c!=o.debounceRendering)&&((c=o.debounceRendering)||l)(M)}function M(){for(var t,e,n,r,i,s,c,l=1;u.length;)u.length>l&&u.sort(_),t=u.shift(),l=u.length,t.__d&&(n=void 0,r=void 0,i=(r=(e=t).__v).__e,s=[],c=[],e.__P&&((n=w({},r)).__v=r.__v+1,o.vnode&&o.vnode(n),U(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,s,null==i?P(r):i,!!(32&r.__u),c),n.__v=r.__v,n.__.__k[n.__i]=n,A(s,n,c),r.__e=r.__=null,n.__e!=i&&C(n)));M.__r=0}function T(t,e,n,r,o,i,s,u,c,l,_){var a,f,p,h,d,g,m,w=r&&r.__k||y,b=e.length;for(c=N(n,e,w,c,b),a=0;a<b;a++)null!=(p=n.__k[a])&&(f=-1==p.__i?v:w[p.__i]||v,p.__i=a,g=U(t,p,f,o,i,s,u,c,l,_),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&D(f.ref,null,p),_.push(p.ref,p.__c||h,p)),null==d&&null!=h&&(d=h),(m=!!(4&p.__u))||f.__k===p.__k?c=j(p,c,t,m):"function"==typeof p.type&&void 0!==g?c=g:h&&(c=h.nextSibling),p.__u&=-7);return n.__e=d,c}function N(t,e,n,r,o){var i,s,u,c,l,_=n.length,a=_,f=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(s=e[i])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=t.__k[i]=x(null,s,null,null,null):m(s)?s=t.__k[i]=x(k,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=t.__k[i]=x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):t.__k[i]=s,c=i+f,s.__=t,s.__b=t.__b+1,u=null,-1!=(l=s.__i=$(s,n,c,a))&&(a--,(u=n[l])&&(u.__u|=2)),null==u||null==u.__v?(-1==l&&(o>_?f--:o<_&&f++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,s.__u|=4))):t.__k[i]=null;if(a)for(i=0;i<_;i++)null!=(u=n[i])&&!(2&u.__u)&&(u.__e==r&&(r=P(u)),R(u,u));return r}function j(t,e,n,r){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=j(o[i],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=P(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function $(t,e,n,r){var o,i,s,u=t.key,c=t.type,l=e[n],_=null!=l&&!(2&l.__u);if(null===l&&null==u||_&&u==l.key&&c==l.type)return n;if(r>(_?1:0))for(o=n-1,i=n+1;o>=0||i<e.length;)if(null!=(l=e[s=o>=0?o--:i++])&&!(2&l.__u)&&u==l.key&&c==l.type)return s;return-1}function H(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||g.test(e)?n:n+"px"}function W(t,e,n,r,o){var i,s;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||H(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||H(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(a,"$1")),s=e.toLowerCase(),e=s in t||"onFocusOut"==e||"onFocusIn"==e?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=f,t.addEventListener(e,i?h:p,i)):t.removeEventListener(e,i?h:p,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function I(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=f++;else if(e.t<n.u)return;return n(o.event?o.event(e):e)}}}function U(t,e,n,r,i,s,u,c,l,_){var a,f,p,h,d,v,y,g,S,x,P,C,O,M,N,j,$,H=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[c=e.__e=n.__e]),(a=o.__b)&&a(e);t:if("function"==typeof H)try{if(g=e.props,S="prototype"in H&&H.prototype.render,x=(a=H.contextType)&&r[a.__c],P=a?x?x.props.value:a.__:r,n.__c?y=(f=e.__c=n.__c).__=f.__E:(S?e.__c=f=new H(g,P):(e.__c=f=new E(g,P),f.constructor=H,f.render=G),x&&x.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),S&&null==f.__s&&(f.__s=f.state),S&&null!=H.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=w({},f.__s)),w(f.__s,H.getDerivedStateFromProps(g,f.__s))),h=f.props,d=f.state,f.__v=e,p)S&&null==H.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),S&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(S&&null==H.getDerivedStateFromProps&&g!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,P),e.__v==n.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,P)){for(e.__v!=n.__v&&(f.props=g,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some((function(t){t&&(t.__=e)})),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[],f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,P),S&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,d,v)}))}if(f.context=P,f.props=g,f.__P=t,f.__e=!1,O=o.__r,M=0,S){for(f.state=f.__s,f.__d=!1,O&&O(e),a=f.render(f.props,f.state,f.context),N=0;N<f._sb.length;N++)f.__h.push(f._sb[N]);f._sb=[]}else do{f.__d=!1,O&&O(e),a=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++M<25);f.state=f.__s,null!=f.getChildContext&&(r=w(w({},r),f.getChildContext())),S&&!p&&null!=f.getSnapshotBeforeUpdate&&(v=f.getSnapshotBeforeUpdate(h,d)),j=a,null!=a&&a.type===k&&null==a.key&&(j=L(a.props.children)),c=T(t,m(j)?j:[j],e,n,r,i,s,u,c,l,_),f.base=e.__e,e.__u&=-161,f.__h.length&&u.push(f),y&&(f.__E=f.__=null)}catch(t){if(e.__v=null,l||null!=s)if(t.then){for(e.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,e.__e=c}else{for($=s.length;$--;)b(s[$]);F(e)}else e.__e=n.__e,e.__k=n.__k,t.then||F(e);o.__e(t,e,n)}else null==s&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):c=e.__e=q(n.__e,e,n,r,i,s,u,l,_);return(a=o.diffed)&&a(e),128&e.__u?void 0:c}function F(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(F)}function A(t,e,n){for(var r=0;r<n.length;r++)D(n[r],n[++r],n[++r]);o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function L(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:m(t)?t.map(L):w({},t)}function q(t,e,n,i,s,u,c,l,_){var a,f,p,h,d,y,g,w=n.props||v,S=e.props,x=e.type;if("svg"==x?s="http://www.w3.org/2000/svg":"math"==x?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((d=u[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){t=d,u[a]=null;break}if(null==t){if(null==x)return document.createTextNode(S);t=document.createElementNS(s,x,S.is&&S),l&&(o.__m&&o.__m(e,u),l=!1),u=null}if(null==x)w===S||l&&t.data==S||(t.data=S);else{if(u=u&&r.call(t.childNodes),!l&&null!=u)for(w={},a=0;a<t.attributes.length;a++)w[(d=t.attributes[a]).name]=d.value;for(a in w)if(d=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=d;else if(!(a in S)){if("value"==a&&"defaultValue"in S||"checked"==a&&"defaultChecked"in S)continue;W(t,a,null,d,s)}for(a in S)d=S[a],"children"==a?h=d:"dangerouslySetInnerHTML"==a?f=d:"value"==a?y=d:"checked"==a?g=d:l&&"function"!=typeof d||w[a]===d||W(t,a,d,w[a],s);if(f)l||p&&(f.__html==p.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(p&&(t.innerHTML=""),T("template"==e.type?t.content:t,m(h)?h:[h],e,n,i,"foreignObject"==x?"http://www.w3.org/1999/xhtml":s,u,c,u?u[0]:n.__k&&P(n,0),l,_),null!=u)for(a=u.length;a--;)b(u[a]);l||(a="value","progress"==x&&null==y?t.removeAttribute("value"):null!=y&&(y!==t[a]||"progress"==x&&!y||"option"==x&&y!=w[a])&&W(t,a,y,w[a],s),a="checked",null!=g&&g!=t[a]&&W(t,a,g,w[a],s))}return t}function D(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){o.__e(t,n)}}function R(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||D(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&R(r[i],e,n||"function"!=typeof t.type);n||b(t.__e),t.__c=t.__=t.__e=void 0}function G(t,e,n){return this.constructor(t,n)}function B(t,e,n){var i,s,u,c;e==document&&(e=document.documentElement),o.__&&o.__(t,e),s=(i="function"==typeof n)?null:n&&n.__k||e.__k,u=[],c=[],U(e,t=(!i&&n||e).__k=S(k,null,[t]),s||v,v,e.namespaceURI,!i&&n?[n]:s?null:e.firstChild?r.call(e.childNodes):null,u,!i&&n?n:s?s.__e:e.firstChild,i,c),A(u,t,c)}function V(t,e){B(t,e,V)}function z(t,e,n){var o,i,s,u,c=w({},t.props);for(s in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==s?o=e[s]:"ref"==s?i=e[s]:c[s]=void 0===e[s]&&null!=u?u[s]:e[s];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),x(t.type,c,o||t.key,i||t.ref,null)}function J(t){function e(t){var n,r;return this.getChildContext||(n=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach((function(t){t.__e=!0,O(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+d++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}r=y.slice,o={__e:function(t,e,n,r){for(var o,i,s;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),s=o.__d),s)return o.__E=o}catch(e){t=e}throw t}},i=0,s=function(t){return null!=t&&void 0===t.constructor},E.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof t&&(t=t(w({},n),this.props)),t&&w(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),O(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},E.prototype.render=k,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(t,e){return t.__v.__b-e.__v.__b},M.__r=0,a=/(PointerCapture)$|Capture$/i,f=0,p=I(!1),h=I(!0),d=0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{zj:()=>ye,SD:()=>ht,V6:()=>dt,$K:()=>yt,vT:()=>ge,jb:()=>Ke,yT:()=>mt,M_:()=>we,hb:()=>Pt,vJ:()=>kt,ip:()=>xt,Nf:()=>Et,Kr:()=>Ct,li:()=>S,J0:()=>m,FH:()=>St,v4:()=>bt,mh:()=>Tt});var o,i,s,u,c=n(622),l=0,_=[],a=c.fF,f=a.__b,p=a.__r,h=a.diffed,d=a.__c,v=a.unmount,y=a.__;function g(t,e){a.__h&&a.__h(i,t,l||e),l=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function m(t){return l=1,function(t,e,n){var r=g(o++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):j(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=i,!i.__f)){var s=function(t,e,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!u||u.call(this,t,e,n);var i=r.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),u&&u.call(this,t,e,n)||i};i.__f=!0;var u=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var r=u;u=void 0,s(t,e,n),u=r}c&&c.call(this,t,e,n)},i.shouldComponentUpdate=s}return r.__N||r.__}(j,t)}function w(t,e){var n=g(o++,3);!a.__s&&N(n.__H,e)&&(n.__=t,n.u=e,i.__H.__h.push(n))}function b(t,e){var n=g(o++,4);!a.__s&&N(n.__H,e)&&(n.__=t,n.u=e,i.__h.push(n))}function S(t){return l=5,x((function(){return{current:t}}),[])}function x(t,e){var n=g(o++,7);return N(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function k(t,e){return l=8,x((function(){return t}),e)}function E(t){var e=i.context[t.__c],n=g(o++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function P(){for(var t;t=_.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(M),t.__H.__h.forEach(T),t.__H.__h=[]}catch(e){t.__H.__h=[],a.__e(e,t.__v)}}a.__b=function(t){i=null,f&&f(t)},a.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},a.__r=function(t){p&&p(t),o=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(M),e.__h.forEach(T),e.__h=[],o=0)),s=i},a.diffed=function(t){h&&h(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==_.push(e)&&u===a.requestAnimationFrame||((u=a.requestAnimationFrame)||O)(P)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),s=i=null},a.__c=function(t,e){e.some((function(t){try{t.__h.forEach(M),t.__h=t.__h.filter((function(t){return!t.__||T(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.__e(n,t.__v)}})),d&&d(t,e)},a.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{M(t)}catch(t){e=t}})),n.__H=void 0,e&&a.__e(e,n.__v))};var C="function"==typeof requestAnimationFrame;function O(t){var e,n=function(){clearTimeout(r),C&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);C&&(e=requestAnimationFrame(n))}function M(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function T(t){var e=i;t.__c=t.__(),i=e}function N(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function j(t,e){return"function"==typeof e?e(t):e}var $=Symbol.for("preact-signals");function H(){if(L>1)L--;else{for(var t,e=!1;void 0!==A;){var n=A;for(A=void 0,q++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&V(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(q=0,L--,e)throw t}}function W(t){if(L>0)return t();L++;try{return t()}finally{H()}}var I=void 0;function U(t){var e=I;I=void 0;try{return t()}finally{I=e}}var F,A=void 0,L=0,q=0,D=0;function R(t){if(void 0!==I){var e=t.n;if(void 0===e||e.t!==I)return e={i:0,S:t,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:e},void 0!==I.s&&(I.s.n=e),I.s=e,t.n=e,32&I.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=I.s,e.n=void 0,I.s.n=e,I.s=e),e}}function G(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function B(t,e){return new G(t,e)}function V(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function z(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function J(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function K(t,e){G.call(this,void 0),this.x=t,this.s=void 0,this.g=D-1,this.f=4,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function X(t,e){return new K(t,e)}function Z(t){var e=t.u;if(t.u=void 0,"function"==typeof e){L++;var n=I;I=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Q(t),e}finally{I=n,H()}}}function Q(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Z(t)}function Y(t){if(I!==this)throw new Error("Out-of-order effect");J(this),I=t,this.f&=-2,8&this.f&&Q(this),H()}function tt(t,e){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==e?void 0:e.name}function et(t,e){var n=new tt(t,e);try{n.c()}catch(t){throw n.d(),t}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}function nt(t,e){c.fF[t]=e.bind(null,c.fF[t]||function(){})}function rt(t){F&&F(),F=t&&t.S()}function ot(t){var e=this,n=t.data,r=function(t){return x((function(){return B(t)}),[])}(n);r.value=n;var o=x((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t,n=e.__$u.S(),r=o.value;n(),(0,c.zO)(r)||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r},X((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return o.value}function it(t,e,n,r){var o=e in t&&void 0===t.ownerSVGElement,i=B(n);return{o:function(t,e){i.value=t,r=e},d:et((function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}G.prototype.brand=$,G.prototype.h=function(){return!0},G.prototype.S=function(t){var e=this,n=this.t;n!==t&&void 0===t.e&&(t.x=n,this.t=t,void 0!==n?n.e=t:U((function(){var t;null==(t=e.W)||t.call(e)})))},G.prototype.U=function(t){var e=this;if(void 0!==this.t){var n=t.e,r=t.x;void 0!==n&&(n.x=r,t.e=void 0),void 0!==r&&(r.e=n,t.x=void 0),t===this.t&&(this.t=r,void 0===r&&U((function(){var t;null==(t=e.Z)||t.call(e)})))}},G.prototype.subscribe=function(t){var e=this;return et((function(){var n=e.value,r=I;I=void 0;try{t(n)}finally{I=r}}),{name:"sub"})},G.prototype.valueOf=function(){return this.value},G.prototype.toString=function(){return this.value+""},G.prototype.toJSON=function(){return this.value},G.prototype.peek=function(){var t=I;I=void 0;try{return this.value}finally{I=t}},Object.defineProperty(G.prototype,"value",{get:function(){var t=R(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(q>100)throw new Error("Cycle detected");this.v=t,this.i++,D++,L++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{H()}}}}),K.prototype=new G,K.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===D)return!0;if(this.g=D,this.f|=1,this.i>0&&!V(this))return this.f&=-2,!0;var t=I;try{z(this),I=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return I=t,J(this),this.f&=-2,!0},K.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}G.prototype.S.call(this,t)},K.prototype.U=function(t){if(void 0!==this.t&&(G.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},K.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(K.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=R(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),tt.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},tt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Z(this),z(this),L++;var t=I;return I=this,Y.bind(this,t)},tt.prototype.N=function(){2&this.f||(this.f|=2,this.o=A,A=this)},tt.prototype.d=function(){this.f|=8,1&this.f||Q(this)},tt.prototype.dispose=function(){this.d()},ot.displayName="_st",Object.defineProperties(G.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ot},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),nt("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var o in r)if("children"!==o){var i=r[o];i instanceof G&&(n||(e.__np=n={}),n[o]=i,r[o]=i.peek())}}t(e)})),nt("__r",(function(t,e){rt();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(){var t;return et((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),rt(n),t(e)})),nt("__e",(function(t,e,n,r){rt(),t(e,n,r)})),nt("diffed",(function(t,e){var n;if(rt(),"string"==typeof e.type&&(n=e.__e)){var r=e.__np,o=e.props;if(r){var i=n.U;if(i)for(var s in i){var u=i[s];void 0===u||s in r||(u.d(),i[s]=void 0)}else n.U=i={};for(var c in r){var l=i[c],_=r[c];void 0===l?(l=it(n,c,_,o),i[c]=l):l.o(_,o)}}}t(e)})),nt("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var o in n.U=void 0,r){var i=r[o];i&&i.d()}}}else{var s=e.__c;if(s){var u=s.__$u;u&&(s.__$u=void 0,u.d())}}t(e)})),nt("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),c.uA.prototype.shouldComponentUpdate=function(t,e){if(this.__R)return!0;var n=this.__$u,r=n&&void 0!==n.s;for(var o in e)return!0;if(this.__f||"boolean"==typeof this.u&&!0===this.u){if(!(r||2&this.__$f||4&this.__$f))return!0;if(1&this.__$f)return!0}else{if(!(r||4&this.__$f))return!0;if(3&this.__$f)return!0}for(var i in t)if("__source"!==i&&t[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in t))return!0;return!1};const st=[],ut=()=>st.slice(-1)[0],ct=t=>{st.push(t)},lt=()=>{st.pop()},_t=[],at=()=>_t.slice(-1)[0],ft=t=>{_t.push(t)},pt=()=>{_t.pop()},ht=t=>at().context[t||ut()],dt=()=>{const t=at();const{ref:e,attributes:n}=t;return Object.freeze({ref:e.current,attributes:$t(n,{})})},vt=B(0);function yt(t){const e=at();return yt.subscribe=vt.value,Wt(e.serverContext[t||ut()])}yt.subscribe=0;const gt=t=>new Promise((e=>{const n=()=>{clearTimeout(r),window.cancelAnimationFrame(o),setTimeout((()=>{t(),e()}))},r=setTimeout(n,100),o=window.requestAnimationFrame(n)})),mt="function"==typeof window.scheduler?.yield?window.scheduler.yield.bind(window.scheduler):()=>new Promise((t=>{setTimeout(t,0)}));function wt(t){w((()=>{let e=null,n=!1;return e=function(t,e){let n=()=>{};const r=et((function(){return n=this.c.bind(this),this.x=t,this.c=e,t()}));return{flush:n,dispose:r}}(t,(async()=>{e&&!n&&(n=!0,await gt(e.flush),n=!1)})),e.dispose}),[])}function bt(t){const e=at(),n=ut();let r;r="GeneratorFunction"===t?.constructor?.name?async(...r)=>{const o=t(...r);let i,s,u;for(;;){ct(n),ft(e);try{s=u?o.throw(u):o.next(i),u=void 0}catch(t){throw t}finally{pt(),lt()}try{i=await s.value}catch(t){u=t}if(s.done){if(u)throw u;break}}return i}:(...r)=>{ct(n),ft(e);try{return t(...r)}finally{lt(),pt()}};if(t.sync){const t=r;return t.sync=!0,t}return r}function St(t){wt(bt(t))}function xt(t){w(bt(t),[])}function kt(t,e){w(bt(t),e)}function Et(t,e){b(bt(t),e)}function Pt(t,e){return k(bt(t),e)}function Ct(t,e){return x(bt(t),e)}const Ot=t=>{0},Mt=t=>Boolean(t&&"object"==typeof t&&t.constructor===Object);function Tt(t){const e=t;return e.sync=!0,e}const Nt=new WeakMap,jt=t=>{const e=()=>!1;return{get(e,n){const r=e[n];return r&&"object"==typeof r?$t(r,{errorMessage:t}):r},set:e,deleteProperty:e,defineProperty:e}};function $t(t,e){const n=e?.errorMessage??"Cannot modify read-only object";if(!Nt.has(t)){const e=jt(n);Nt.set(t,new Proxy(t,e))}return Nt.get(t)}const Ht=B(0);function Wt(t){return Mt(t)?Object.fromEntries(Object.entries(t).map((([t,e])=>[t,Wt(e)]))):Array.isArray(t)?t.map((t=>Wt(t))):t}const It=new WeakMap,Ut=new WeakMap,Ft=new WeakMap,At=new Set([Object,Array]),Lt=(t,e,n)=>{if(!Rt(e))throw Error("This object cannot be proxified.");if(!It.has(e)){const r=new Proxy(e,n);It.set(e,r),Ut.set(r,e),Ft.set(r,t)}return It.get(e)},qt=t=>It.get(t),Dt=t=>Ft.get(t),Rt=t=>"object"==typeof t&&null!==t&&(!Ft.has(t)&&At.has(t.constructor)),Gt={};class Bt{owner;computedsByScope;valueSignal;getterSignal;pendingGetter;constructor(t){this.owner=t,this.computedsByScope=new WeakMap}setValue(t){this.update({value:t})}setGetter(t){this.update({get:t})}setPendingGetter(t){this.pendingGetter=t,queueMicrotask((()=>this.consolidateGetter()))}consolidateGetter(){const t=this.pendingGetter;t&&(this.pendingGetter=void 0,this.update({get:t}))}getComputed(){const t=at()||Gt;if(this.valueSignal||this.getterSignal||this.update({}),this.pendingGetter&&this.consolidateGetter(),!this.computedsByScope.has(t)){const e=()=>{const t=this.getterSignal?.value;return t?t.call(this.owner):this.valueSignal?.value};ct(Dt(this.owner)),this.computedsByScope.set(t,X(bt(e))),lt()}return this.computedsByScope.get(t)}update({get:t,value:e}){this.valueSignal?e===this.valueSignal.peek()&&t===this.getterSignal.peek()||W((()=>{this.valueSignal.value=e,this.getterSignal.value=t})):(this.valueSignal=B(e),this.getterSignal=B(t))}}const Vt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter((t=>"symbol"==typeof t))),zt=new WeakMap,Jt=(t,e)=>zt.has(t)&&zt.get(t).has(e),Kt=(t,e,n)=>{zt.has(t)||zt.set(t,new Map),e="number"==typeof e?`${e}`:e;const r=zt.get(t);if(!r.has(e)){const o=Dt(t),i=new Bt(t);if(r.set(e,i),n){const{get:t,value:e}=n;t?i.setGetter(t):i.setValue(Rt(e)?te(o,e):e)}}return r.get(e)},Xt=new WeakMap;let Zt=!1;const Qt=Symbol("PENDING_GETTER"),Yt={get(t,e,n){if(Zt||!t.hasOwnProperty(e)&&e in t||"symbol"==typeof e&&Vt.has(e))return Reflect.get(t,e,n);const r=Object.getOwnPropertyDescriptor(t,e),o=Kt(n,e,r).getComputed().value;if(o===Qt)throw Qt;if("function"==typeof o){const t=Dt(n);return(...e)=>{ct(t);try{return o.call(n,...e)}finally{lt()}}}return o},set(t,e,n,r){ct(Dt(r));try{return Reflect.set(t,e,n,r)}finally{lt()}},defineProperty(t,e,n){const r=!(e in t),o=Reflect.defineProperty(t,e,n);if(o){const o=qt(t),i=Kt(o,e),{get:s,value:u}=n;if(s)i.setGetter(s);else{const t=Dt(o);i.setValue(Rt(u)?te(t,u):u)}if(r&&Xt.has(t)&&Xt.get(t).value++,Array.isArray(t)&&zt.get(o)?.has("length")){Kt(o,"length").setValue(t.length)}}return o},deleteProperty(t,e){const n=Reflect.deleteProperty(t,e);if(n){Kt(qt(t),e).setValue(void 0),Xt.has(t)&&Xt.get(t).value++}return n},ownKeys:t=>(Xt.has(t)||Xt.set(t,B(0)),Xt._=Xt.get(t).value,Reflect.ownKeys(t))},te=(t,e)=>Lt(t,e,Yt),ee=(t,e,n=!0)=>{if(!Mt(t)||!Mt(e))return;let r=!1;for(const o in e){const i=!(o in t);r=r||i;const s=Object.getOwnPropertyDescriptor(e,o),u=qt(t),c=!!u&&Jt(u,o)&&Kt(u,o);if("function"==typeof s.get||"function"==typeof s.set)(n||i)&&(Object.defineProperty(t,o,{...s,configurable:!0,enumerable:!0}),s.get&&c&&c.setPendingGetter(s.get));else if(Mt(e[o])){const r=Object.getOwnPropertyDescriptor(t,o)?.value;if(i||n&&!Mt(r)){if(t[o]={},c){const e=Dt(u);c.setValue(te(e,t[o]))}ee(t[o],e[o],n)}else Mt(r)&&ee(t[o],e[o],n)}else if((n||i)&&(Object.defineProperty(t,o,s),c)){const{value:t}=s,e=Dt(u);c.setValue(Rt(t)?te(e,t):t)}}r&&Xt.has(t)&&Xt.get(t).value++},ne=(t,e,n=!0)=>W((()=>{return ee((r=t,Ut.get(r)||t),e,n);var r})),re=new WeakSet,oe={get:(t,e,n)=>{const r=Reflect.get(t,e),o=Dt(n);if(void 0===r&&re.has(n)){const n={};return Reflect.set(t,e,n),ie(o,n,!1)}if("function"==typeof r){ct(o);const t=bt(r);return lt(),t}return Mt(r)&&Rt(r)?ie(o,r,!1):r}},ie=(t,e,n=!0)=>{const r=Lt(t,e,oe);return r&&n&&re.add(r),r},se=new WeakMap,ue=new WeakMap,ce=new WeakSet,le=Reflect.getOwnPropertyDescriptor,_e={get:(t,e)=>{const n=ue.get(t),r=t[e];return e in t?r:n[e]},set:(t,e,n)=>{const r=ue.get(t);return(e in t||!(e in r)?t:r)[e]=n,!0},ownKeys:t=>[...new Set([...Object.keys(ue.get(t)),...Object.keys(t)])],getOwnPropertyDescriptor:(t,e)=>le(t,e)||le(ue.get(t),e),has:(t,e)=>Reflect.has(t,e)||Reflect.has(ue.get(t),e)},ae=(t,e={})=>{if(ce.has(t))throw Error("This object cannot be proxified.");if(ue.set(t,e),!se.has(t)){const e=new Proxy(t,_e);se.set(t,e),ce.add(e)}return se.get(t)},fe=new Map,pe=new Map,he=new Map,de=new Map,ve=new Map,ye=t=>de.get(t||ut())||{};function ge(t){const e=t||ut();return ve.has(e)||ve.set(e,{}),ge.subscribe=Ht.value,Wt(ve.get(e))}ge.subscribe=0;const me="I acknowledge that using a private store means my plugin will inevitably break on the next store release.";function we(t,{state:e={},...n}={},{lock:r=!1}={}){if(fe.has(t)){if(r===me||he.has(t)){const e=he.get(t);if(!(r===me||!0!==r&&r===e))throw e?Error("Cannot unlock a private store with an invalid lock code"):Error("Cannot lock a public store")}else he.set(t,r);const o=pe.get(t);ne(o,n),ne(o.state,e)}else{r!==me&&he.set(t,r);const o={state:te(t,Mt(e)?e:{}),...n},i=ie(t,o);pe.set(t,o),fe.set(t,i)}return fe.get(t)}const be=(t=document)=>{const e=t.getElementById("wp-script-module-data-@wordpress/interactivity")??t.getElementById("wp-interactivity-data");if(e?.textContent)try{return JSON.parse(e.textContent)}catch{}return{}},Se=t=>{ve.clear(),de.clear(),Mt(t?.state)&&Object.entries(t.state).forEach((([t,e])=>{const n=we(t,{},{lock:me});ne(n.state,e,!1),ve.set(t,e)})),Mt(t?.config)&&Object.entries(t.config).forEach((([t,e])=>{de.set(t,e)})),Mt(t?.derivedStateClosures)&&Object.entries(t.derivedStateClosures).forEach((([t,e])=>{const n=we(t,{},{lock:me});e.forEach((t=>{const e=t.split("."),r=e.splice(-1,1)[0],o=e.reduce(((t,e)=>((t,e)=>{Zt=!0;try{return t[e]}finally{Zt=!1}})(t,e)),n),i=Object.getOwnPropertyDescriptor(o,r);Mt(i?.value)&&(o[r]=Qt)}))}))};function xe(t){return null!==t.suffix}function ke(t){return null===t.suffix}const Ee=(0,c.q6)({client:{},server:{}}),Pe={},Ce={},Oe=(t,e,{priority:n=10}={})=>{Pe[t]=e,Ce[t]=n},Me=({scope:t})=>(e,...n)=>{let{value:r,namespace:o}=e;if("string"!=typeof r)throw new Error("The `value` prop should be a string path");const i="!"===r[0]&&!!(r=r.slice(1));ft(t);const s=((t,e)=>{if(!e)return void Ot();let n=fe.get(e);void 0===n&&(n=we(e,{},{lock:me}));const r={...n,context:at().context[e]};try{return t.split(".").reduce(((t,e)=>t[e]),r)}catch(t){if(t===Qt)return Qt}})(r,o);if("function"==typeof s){if(i){Ot();const t=!s(...n);return pt(),t}pt();const e=(...e)=>{ft(t);const n=s(...e);return pt(),n};if(s.sync){e.sync=!0}return e}const u=s;return pt(),i&&s!==Qt?!u:u},Te=({directives:t,priorityLevels:[e,...n],element:r,originalProps:o,previousScope:i})=>{const s=S({}).current;s.evaluate=k(Me({scope:s}),[]);const{client:u,server:l}=E(Ee);s.context=u,s.serverContext=l,s.ref=i?.ref||S(null),r=(0,c.Ob)(r,{ref:s.ref}),s.attributes=r.props;const _=n.length>0?(0,c.h)(Te,{directives:t,priorityLevels:n,element:r,originalProps:o,previousScope:s}):r,a={...o,children:_},f={directives:t,props:a,element:r,context:Ee,evaluate:s.evaluate};ft(s);for(const t of e){const e=Pe[t]?.(f);void 0!==e&&(a.children=e)}return pt(),a.children},Ne=c.fF.vnode;c.fF.vnode=t=>{if(t.props.__directives){const e=t.props,n=e.__directives;n.key&&(t.key=n.key.find(ke).value),delete e.__directives;const r=(t=>{const e=Object.keys(t).reduce(((t,e)=>{if(Pe[e]){const n=Ce[e];(t[n]=t[n]||[]).push(e)}return t}),{});return Object.entries(e).sort((([t],[e])=>parseInt(t)-parseInt(e))).map((([,t])=>t))})(n);r.length>0&&(t.props={directives:n,priorityLevels:r,originalProps:e,type:t.type,element:(0,c.h)(t.type,e),top:!0},t.type=Te)}Ne&&Ne(t)};function je(t){return new Proxy(t,{get(t,e,n){const r=t[e];return r instanceof Function?function(...e){return r.apply(this===n?t:this,e)}:r}})}const $e=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,He=/\/\*[^]*?\*\/| +/g,We=/\n+/g,Ie=t=>({directives:e,evaluate:n})=>{e[`on-${t}`].filter(xe).forEach((e=>{const r=e.suffix.split("--",2)[0];xt((()=>{const o=t=>{const r=n(e);"function"==typeof r&&(r?.sync||(t=je(t)),r(t))},i="window"===t?window:document;return i.addEventListener(r,o),()=>i.removeEventListener(r,o)}))}))},Ue=(t,e,n,r,o)=>{const i={...t.client,[e]:{...t.client[e],[r]:n}},s={...at(),context:i,serverContext:t.server};return o?Me({scope:s})(o):n},Fe=t=>({directives:e,evaluate:n})=>{e[`on-async-${t}`].filter(xe).forEach((e=>{const r=e.suffix.split("--",1)[0];xt((()=>{const o=async t=>{await mt();const r=n(e);"function"==typeof r&&r(t)},i="window"===t?window:document;return i.addEventListener(r,o,{passive:!0}),()=>i.removeEventListener(r,o)}))}))},Ae=new Map;const Le="data-wp-",qe=[],De=/[^a-z0-9-_]/i;const Re=/^([\w_\/-]+)::(.+)$/,Ge=new WeakSet;function Be(t){const e=new Set,n=new Set,r=document.createTreeWalker(t,205);const o=function t(o){const{nodeType:i}=o;if(3===i)return o.data;if(4===i)return n.add(o),o.nodeValue;if(8===i||7===i)return e.add(o),null;const s=o,{attributes:u}=s,l=s.localName,_={},a=[],f=[];let p=!1,h=!1;for(let t=0;t<u.length;t++){const e=u[t].name,n=u[t].value;if(e[8]&&e.slice(0,8)===Le)if("data-wp-ignore"===e)p=!0;else{const t=Re.exec(n),r=t?.[1]??null;let o=t?.[2]??n;try{const t=JSON.parse(o);d=t,o=Boolean(d&&"object"==typeof d&&d.constructor===Object)?t:o}catch{}if("data-wp-interactive"===e){h=!0;const t="string"==typeof o?o:"string"==typeof o?.namespace?o.namespace:null;qe.push(t)}else f.push([e,r,o])}else if("ref"===e)continue;_[e]=n}var d;if(p&&!h)return[(0,c.h)(l,{..._,innerHTML:s.innerHTML,__directives:{ignore:!0}})];if(h&&Ge.add(s),f.length){_.__directives=f.reduce(((t,[e,n,r])=>{const o=function(t){const e=t.substring(8);if(De.test(e))return null;const n=e.indexOf("--");if(-1===n)return{prefix:e,suffix:null,uniqueId:null};const r=e.substring(0,n),o=e.substring(n);if(o.startsWith("---")&&"-"!==o[3])return{prefix:r,suffix:null,uniqueId:o.substring(3)||null};let i=o.substring(2);const s=i.indexOf("---");if(-1!==s&&"-"!==i.substring(s)[3]){const t=i.substring(s+3)||null;return i=i.substring(0,s)||null,{prefix:r,suffix:i,uniqueId:t}}return{prefix:r,suffix:i||null,uniqueId:null}}(e);if(null===o)return t;const{prefix:i,suffix:s,uniqueId:u}=o;return t[i]=t[i]||[],t[i].push({namespace:n??qe[qe.length-1]??null,value:r,suffix:s,uniqueId:u}),t}),{});for(const t in _.__directives)_.__directives[t].sort(((t,e)=>{const n=t.suffix??"",r=e.suffix??"";if(n!==r)return n<r?-1:1;const o=t.uniqueId??"",i=e.uniqueId??"";return+(o>i)-+(o<i)}))}if(_.__directives?.["each-child"])_.dangerouslySetInnerHTML={__html:s.innerHTML};else if("template"===l)_.content=[...s.content.childNodes].map((t=>Be(t)));else{let e=r.firstChild();if(e){for(;e;){const n=t(e);n&&a.push(n),e=r.nextSibling()}r.parentNode()}}return h&&qe.pop(),(0,c.h)(l,_,a)}(r.currentNode);return e.forEach((t=>t.remove())),n.forEach((t=>t.replaceWith(new window.Text(t.nodeValue??"")))),o}const Ve=new WeakMap,ze=t=>{const e=Array.isArray(t)?t[0]:t;if(!e.parentElement)throw Error("The passed region should be an element with a parent.");return Ve.has(e)||Ve.set(e,((t,e)=>{const n=(e=[].concat(e))[e.length-1].nextSibling;function r(e,r){t.insertBefore(e,r||n)}return t.__k={nodeType:1,parentNode:t,firstChild:e[0],childNodes:e,insertBefore:r,appendChild:r,removeChild(e){t.removeChild(e)},contains(e){t.contains(e)}}})(e.parentElement,t)),Ve.get(e)},Je=new WeakMap,Ke=t=>{if("I acknowledge that using private APIs means my theme or plugin will inevitably break in the next version of WordPress."===t)return{getRegionRootFragment:ze,initialVdom:Je,toVdom:Be,directive:Oe,getNamespace:ut,h:c.h,cloneElement:c.Ob,render:c.XX,proxifyState:te,parseServerData:be,populateServerData:Se,batch:W,routerRegions:Ae,deepReadOnly:$t,navigationSignal:Ht};throw new Error("Forbidden access.")};Se(be()),Oe("context",(({directives:{context:t},props:{children:e},context:n})=>{const r=t.filter(ke).reverse();if(!r.length)return;const{Provider:o}=n,{client:i,server:s}=E(n),u=S({}),l={},_={client:{...i},server:{...s}},a=new Set;return r.forEach((({value:t,namespace:e,uniqueId:n})=>{Mt(t)&&(u.current[e]||(u.current[e]=te(e,{})),ne(u.current[e],Wt(t),!1),l[e]=t,a.add(e))})),a.forEach((t=>{_.client[t]=ae(u.current[t],i[t]),_.server[t]=ae(l[t],s[t])})),(0,c.h)(o,{value:_},e)}),{priority:5}),Oe("watch",(({directives:{watch:t},evaluate:e})=>{t.forEach((t=>{St((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Oe("init",(({directives:{init:t},evaluate:e})=>{t.forEach((t=>{xt((()=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))}))})),Oe("on",(({directives:{on:t},element:e,evaluate:n})=>{const r=new Map;t.filter(xe).forEach((t=>{const e=t.suffix.split("--",2);r.has(e[0])||r.set(e[0],new Set),r.get(e[0]).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((t=>{const r=n(t);"function"==typeof r&&(r?.sync||(e=je(e)),r(e))}))}}))})),Oe("on-async",(({directives:{"on-async":t},element:e,evaluate:n})=>{const r=new Map;t.filter(xe).forEach((t=>{const e=t.suffix.split("--",1)[0];r.has(e)||r.set(e,new Set),r.get(e).add(t)})),r.forEach(((t,r)=>{const o=e.props[`on${r}`];e.props[`on${r}`]=e=>{o&&o(e),t.forEach((async t=>{await mt();const r=n(t);"function"==typeof r&&r(e)}))}}))})),Oe("on-window",Ie("window")),Oe("on-document",Ie("document")),Oe("on-async-window",Fe("window")),Oe("on-async-document",Fe("document")),Oe("class",(({directives:{class:t},element:e,evaluate:n})=>{t.filter(xe).forEach((t=>{const r=t.uniqueId?`${t.suffix}---${t.uniqueId}`:t.suffix;let o=n(t);if(o===Qt)return;"function"==typeof o&&(o=o());const i=e.props.class||"",s=new RegExp(`(^|\\s)${r}(\\s|$)`,"g");o?s.test(i)||(e.props.class=i?`${i} ${r}`:r):e.props.class=i.replace(s," ").trim(),xt((()=>{o?e.ref.current.classList.add(r):e.ref.current.classList.remove(r)}))}))})),Oe("style",(({directives:{style:t},element:e,evaluate:n})=>{t.filter(xe).forEach((t=>{if(t.uniqueId)return;const r=t.suffix;let o=n(t);o!==Qt&&("function"==typeof o&&(o=o()),e.props.style=e.props.style||{},"string"==typeof e.props.style&&(e.props.style=(t=>{const e=[{}];let n,r;for(;n=$e.exec(t.replace(He,""));)n[4]?e.shift():n[3]?(r=n[3].replace(We," ").trim(),e.unshift(e[0][r]=e[0][r]||{})):e[0][n[1]]=n[2].replace(We," ").trim();return e[0]})(e.props.style)),o?e.props.style[r]=o:delete e.props.style[r],xt((()=>{o?e.ref.current.style.setProperty(r,o):e.ref.current.style.removeProperty(r)})))}))})),Oe("bind",(({directives:{bind:t},element:e,evaluate:n})=>{t.filter(xe).forEach((t=>{if(t.uniqueId)return;const r=t.suffix;let o=n(t);o!==Qt&&("function"==typeof o&&(o=o()),e.props[r]=o,xt((()=>{const t=e.ref.current;if("style"!==r){if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&"role"!==r&&r in t)try{return void(t[r]=null==o?"":o)}catch(t){}null==o||!1===o&&"-"!==r[4]?t.removeAttribute(r):t.setAttribute(r,o)}else"string"==typeof o&&(t.style.cssText=o)})))}))})),Oe("ignore",(({element:{type:t,props:{innerHTML:e,...n}}})=>{const r=x((()=>e),[]);return(0,c.h)(t,{dangerouslySetInnerHTML:{__html:r},...n})})),Oe("text",(({directives:{text:t},element:e,evaluate:n})=>{const r=t.filter(ke);r.length&&r.forEach((t=>{if(!t.uniqueId)try{let r=n(t);if(r===Qt)return;"function"==typeof r&&(r=r()),e.props.children="object"==typeof r?null:r.toString()}catch(t){e.props.children=null}}))})),Oe("run",(({directives:{run:t},evaluate:e})=>{t.forEach((t=>{let n=e(t);return"function"==typeof n&&(n=n()),n}))})),Oe("each",(({directives:{each:t,"each-key":e},context:n,element:r,evaluate:o})=>{if("template"!==r.type)return;const{Provider:i}=n,s=E(n),[u]=t,{namespace:l,suffix:_,uniqueId:a}=u;if(t.length>1)return;if(a)return;let f=o(u);if(f===Qt)return;if("function"==typeof f&&(f=f()),"function"!=typeof f?.[Symbol.iterator])return;const p=_?_.replace(/^-+|-+$/g,"").toLowerCase().replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})):"item",h=[],d=function*(t,e,n,r,o){const{current:i}=S(new Map);for(const s of n){const n=Ue(t,e,s,r,o);i.has(n)||i.set(n,ae(te(e,{[r]:void 0}),t.client[e])),yield[s,i.get(n),n]}}(s,l,f,p,e?.[0]);for(const[t,e,n]of d){const o={client:{...s.client,[l]:e},server:{...s.server}};o.client[l][p]=t,h.push((0,c.h)(i,{value:o,key:n},r.props.content))}return h}),{priority:20}),Oe("each-child",(({directives:{"each-child":t},element:e,evaluate:n})=>{const r=t.find(ke);if(r)return n(r)===Qt?e:null}),{priority:1}),Oe("router-region",(({directives:{"router-region":t}})=>{const e=t.find(ke);if(!e)return;if(e.suffix)return;if(e.uniqueId)return;const n="string"==typeof e.value?e.value:e.value.id;Ae.has(n)||Ae.set(n,B());const r=Ae.get(n).value;if(b((()=>{r&&"string"!=typeof r.type&&(vt.value=vt.peek()+1)}),[r]),r&&"string"!=typeof r.type){const t=at();return(0,c.Ob)(r,{previousScope:t})}return r}),{priority:1}),(t=>{const[e]=performance.getEntriesByType("navigation");e.domContentLoadedEventStart>0?t():document.addEventListener("DOMContentLoaded",t)})((async()=>{const t=document.querySelectorAll("[data-wp-interactive]");for(const e of t)if(!Ge.has(e)){await mt();const t=ze(e),n=Be(e);Je.set(e,n),await mt(),(0,c.Qv)(n,t)}}));var Xe=r.zj,Ze=r.SD,Qe=r.V6,Ye=r.$K,tn=r.vT,en=r.jb,nn=r.yT,rn=r.M_,on=r.hb,sn=r.vJ,un=r.ip,cn=r.Nf,ln=r.Kr,_n=r.li,an=r.J0,fn=r.FH,pn=r.v4,hn=r.mh;export{Xe as getConfig,Ze as getContext,Qe as getElement,Ye as getServerContext,tn as getServerState,en as privateApis,nn as splitTask,rn as store,on as useCallback,sn as useEffect,un as useInit,cn as useLayoutEffect,ln as useMemo,_n as useRef,an as useState,fn as useWatch,pn as withScope,hn as withSyncEvent};
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.01 |
proxy
|
phpinfo
|
ÐаÑтройка