Linux webm002.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
a
/
r
/
i
/
ariannadhf
/
www
/
wp-content
/
plugins
/
simple-history
/
build
/
/home/a/r/i/ariannadhf/www/wp-content/plugins/simple-history/build/272.js
"use strict";(globalThis.webpackChunksimple_history=globalThis.webpackChunksimple_history||[]).push([[272],{455:(e,t,i)=>{i.d(t,{a:()=>l});var r=i(887);function n(e){let t=function(e){let t=[],i="",r=0;for(let n=0;n<e.length;n++){let a=e[n];"("===a&&r++,")"===a&&(r=Math.max(0,r-1)),";"===a&&0===r?(t.push(i),i=""):i+=a}return i.trim()&&t.push(i),t.map((e=>e.trim())).filter(Boolean)}(e),i=null,r=null,n=null,a=[];for(let e of t){let t=e.indexOf(":");if(t<0)continue;let l=e.slice(0,t).trim().toLowerCase(),s=e.slice(t+1).trim();"box-shadow"===l?n=s:"filter"===l?i=s:"-webkit-filter"===l?r=s:a.push([l,s])}if(n){let e=function(e){let t=[],i="",r=0;for(let n=0;n<e.length;n++){let a=e[n];"("===a&&r++,")"===a&&(r=Math.max(0,r-1)),","===a&&0===r?(t.push(i.trim()),i=""):i+=a}i.trim()&&t.push(i.trim());let n=[];for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(?:\.\d+)?px/gi)||[],[i="0px",r="0px",a="0px"]=t,l=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/gi,"").trim().replace(/\s{2,}/g," "),s=!!l&&","!==l;n.push(`drop-shadow(${i} ${r} ${a}${s?` ${l}`:""})`)}return n.join(" ")}(n);e&&(i=i?`${i} ${e}`:e,r=r?`${r} ${e}`:e)}let l=[...a];return i&&l.push(["filter",i]),r&&l.push(["-webkit-filter",r]),l.map((([e,t])=>`${e}:${t}`)).join(";")}function a(e){if(!(0,r.b)()||!function(e){return"string"==typeof e&&/^data:image\/svg\+xml/i.test(e)}(e))return e;try{let t=function(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}(e);return function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}(function(e){return(e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,((e,t)=>e.replace(t,function(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,((e,t,i)=>`${t}{${n(i)}}`))}(t))))).replace(/style=(['"])([\s\S]*?)\1/gi,((e,t,i)=>`style=${t}${n(i)}${t}`))}(t))}catch{return e}}async function l(e,t){let{width:i,height:r,scale:n=1,dpr:l=1,meta:s={},backgroundColor:o}=t;e=a(e);let u=new Image;u.loading="eager",u.decoding="sync",u.crossOrigin="anonymous",u.src=e,await u.decode();let c,h,m=u.naturalWidth,p=u.naturalHeight,d=Number.isFinite(s.w0)?s.w0:m,f=Number.isFinite(s.h0)?s.h0:p,g=Number.isFinite(i),x=Number.isFinite(r);g&&x?(c=Math.max(1,i),h=Math.max(1,r)):g?(c=i,h=f*(i/Math.max(1,d))):x?(h=r,c=d*(r/Math.max(1,f))):(c=m,h=p),c*=n,h*=n;let w=document.createElement("canvas");w.width=c*l,w.height=h*l,w.style.width=`${c}px`,w.style.height=`${h}px`;let $=w.getContext("2d");return 1!==l&&$.scale(l,l),o&&($.save(),$.fillStyle=o,$.fillRect(0,0,c,h),$.restore()),$.drawImage(u,0,0,c,h),w}},836:(e,t,i)=>{i.d(t,{a:()=>n});var r=i(455);async function n(e,t){let i=await(0,r.a)(e,t),n=new Image;return n.src=i.toDataURL(`image/${t.format}`,t.quality),await n.decode(),n.style.width=i.width/t.dpr+"px",n.style.height=i.height/t.dpr+"px",n}},272:(e,t,i)=>{i.d(t,{rasterize:()=>r.a});var r=i(836)}}]);