/*! this file is auto-generated */ (()=>{"use strict";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:(t,e)=>object.prototype.hasownproperty.call(t,e),r:t=>{"undefined"!=typeof symbol&&symbol.tostringtag&&object.defineproperty(t,symbol.tostringtag,{value:"module"}),object.defineproperty(t,"__esmodule",{value:!0})}},e={};t.r(e),t.d(e,{actions:()=>s,addaction:()=>m,addfilter:()=>p,applyfilters:()=>k,createhooks:()=>h,currentaction:()=>w,currentfilter:()=>i,defaulthooks:()=>f,didaction:()=>o,didfilter:()=>j,doaction:()=>b,doingaction:()=>x,doingfilter:()=>t,filters:()=>z,hasaction:()=>v,hasfilter:()=>y,removeaction:()=>a,removeallactions:()=>f,removeallfilters:()=>g,removefilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("the namespace must be a non-empty string."),!1):!!/^[a-za-z][a-za-z0-9_.\-\/]*$/.test(t)||(console.error("the namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("the hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("the hook name cannot begin with `__`."),!1):!!/^[a-za-z][a-za-z0-9_.-]*$/.test(t)||(console.error("the hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("the hook callback must be a function.");if("number"!=typeof c)return void console.error("if specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.foreach((t=>{t.name===o&&t.currentindex>=e&&t.currentindex++}))}else l[o]={handlers:[u],runs:0};"hookadded"!==o&&t.doaction("hookadded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.foreach((t=>{t.name===i&&t.currentindex>=e&&t.currentindex--})))}return"hookremoved"!==i&&t.doaction("hookremoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentindex:0};for(i.__current.push(c);c.currentindex