/*!
  * shared v11.4.4
  * (c) 2026 kazuya kawaguchi
  * Released under the MIT License.
  */function q(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const E=typeof window<"u",D=(e,t=!1)=>t?Symbol.for(e):Symbol(e),F=(e,t,s)=>P({l:e,k:t,s}),P=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),H=e=>typeof e=="number"&&isFinite(e),I=e=>b(e)==="[object Date]",J=e=>b(e)==="[object RegExp]",W=e=>x(e)&&Object.keys(e).length===0,C=Object.assign,_=Object.create,j=(e=null)=>_(e);let y;const k=()=>y||(y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:j());function B(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function $(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}const m=/^\s*javascript\s*(?::|&#0*58;?|&#x0*3a;?|&colon;?)/i,T=/^(?:href|src|action|formaction)$/i;function g(e){return m.test(e)}function z(e){const t=/url\s*\(/gi;let s="",n=0,o;for(;(o=t.exec(e))!==null;){const r=o.index,d=t.lastIndex-1;let c=d+1,l=1,u=null;for(;c<e.length;c++){const a=e[c];if(u){a===u&&(u=null);continue}if(a==='"'||a==="'")u=a;else if(a==="(")l++;else if(a===")"&&(l--,l===0))break}if(l!==0)break;const i=e.slice(d+1,c).trim(),A=i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'")?i.slice(1,-1).trim():i;s+=e.slice(n,r),s+=g(A)?"url(about:blank)":e.slice(r,c+1),n=c+1}return s+e.slice(n)}function w(e,t){if(T.test(e)&&g(t))return"about:blank";const s=e.toLowerCase()==="style"?z(t):t;return $(s)}function N(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(s,n,o)=>`${n}="${w(n,o)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(s,n,o)=>`${n}='${w(n,o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),e=e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi,(s,n,o)=>g(o)?`${n}about:blank`:s),e}const V=Object.prototype.hasOwnProperty;function R(e,t){return V.call(e,t)}const O=Array.isArray,h=e=>typeof e=="function",U=e=>typeof e=="string",G=e=>typeof e=="boolean",f=e=>e!==null&&typeof e=="object",K=e=>f(e)&&h(e.then)&&h(e.catch),S=Object.prototype.toString,b=e=>S.call(e),x=e=>b(e)==="[object Object]",L=e=>e==null?"":O(e)||x(e)&&e.toString===S?JSON.stringify(e,null,2):String(e);function Z(e,t=""){return e.reduce((s,n,o)=>o===0?s+n:s+t+n,"")}const p=e=>!f(e)||O(e);function M(e,t){if(p(e)||p(t))throw new Error("Invalid value");const s=[{src:e,des:t}];for(;s.length;){const{src:n,des:o}=s.pop();Object.keys(n).forEach(r=>{r!=="__proto__"&&(f(n[r])&&!f(o[r])&&(o[r]=Array.isArray(n[r])?[]:j()),p(o[r])||p(n[r])?o[r]=n[r]:s.push({src:n[r],des:o[r]}))})}}export{C as a,k as b,j as c,M as d,B as e,O as f,F as g,R as h,E as i,G as j,I as k,W as l,h as m,H as n,f as o,x as p,K as q,J as r,U as s,Z as t,D as u,N as v,L as w,q as x};
