!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wpInteractivity={})}(this,function(e){"use strict";const t=new Map,n=new WeakMap,r=new WeakMap,o=new WeakMap,i=new WeakMap,s=Symbol(),a=Symbol(),u=Symbol(),c=Symbol(),l=Symbol(),f=Symbol(),d=Symbol(),h=Symbol(),p=Symbol(),m=Symbol(),g=Symbol(),y=Symbol(),v=new WeakMap,w=new WeakMap,b=new WeakMap,S=new WeakMap,E=new WeakMap,k=new WeakMap,x=new WeakMap,C=new WeakMap,O=new WeakMap,T=new WeakMap,M=new WeakMap,A=new WeakMap,_=new WeakMap,I=new WeakMap,R=new WeakMap,N=new WeakMap,P=new WeakMap,j=new Map;let L,D,F;function $(e){return"object"==typeof e&&null!==e}function B(e){return"function"==typeof e}function U(e){return"string"==typeof e}function H(e){return"number"==typeof e}function W(e){return U(e)&&e.includes("-")}function q(e){return null==e?"":`${e}`}var z;(z=L||(L={})).hasFinished="HAS_FINISHED",z.hasRunTimeouts="HAS_RUN_TIMEOUTS";const V="wp-interactive",G=`${V}-data`,J=`${V}-context`,K=`${V}-effect`,Q=`${V}-run`,X=`${V}-key`,Y=`${V}-bind`,Z=`${V}-class`,ee=`${V}-style`,te=`${V}-text`,ne=`${V}-ignore`,re=`${V}-island`,oe=`${V}-async`;Object.defineProperty(e,"__esModule",{value:!0}),e.store=function(e,n){if(t.has(e))throw Error(`Store "${e}" is already registered.`);t.set(e,n||{});const r=new Proxy({},{get(t,n){const r=e=>{if("string"!=typeof e||!e.includes("-"))return e;const t=e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");return t.charAt(0).toLowerCase()+t.slice(1)};return function e(...t){const n=t.shift(),o=r(n);return B(this[o])?this[o].apply(this,t):$(this[o])&&n in this[o]?e.apply(this[o],t):this[o]}},set(e,t,n){throw Error("Store properties cannot be modified.")}});return D=r,r}});