7 lines
42 KiB
JavaScript
7 lines
42 KiB
JavaScript
function Ur(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var lr={exports:{}},N=lr.exports={},H,B;function pt(){throw new Error("setTimeout has not been defined")}function mt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?H=setTimeout:H=pt}catch{H=pt}try{typeof clearTimeout=="function"?B=clearTimeout:B=mt}catch{B=mt}})();function ur(r){if(H===setTimeout)return setTimeout(r,0);if((H===pt||!H)&&setTimeout)return H=setTimeout,setTimeout(r,0);try{return H(r,0)}catch{try{return H.call(null,r,0)}catch{return H.call(this,r,0)}}}function Gr(r){if(B===clearTimeout)return clearTimeout(r);if((B===mt||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(r);try{return B(r)}catch{try{return B.call(null,r)}catch{return B.call(this,r)}}}var K=[],le=!1,ee,Se=-1;function jr(){!le||!ee||(le=!1,ee.length?K=ee.concat(K):Se=-1,K.length&&pr())}function pr(){if(!le){var r=ur(jr);le=!0;for(var t=K.length;t;){for(ee=K,K=[];++Se<t;)ee&&ee[Se].run();Se=-1,t=K.length}ee=null,le=!1,Gr(r)}}N.nextTick=function(r){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];K.push(new mr(r,t)),K.length===1&&!le&&ur(pr)};function mr(r,t){this.fun=r,this.array=t}mr.prototype.run=function(){this.fun.apply(null,this.array)},N.title="browser",N.browser=!0,N.env={},N.argv=[],N.version="",N.versions={};function Y(){}N.on=Y,N.addListener=Y,N.once=Y,N.off=Y,N.removeListener=Y,N.removeAllListeners=Y,N.emit=Y,N.prependListener=Y,N.prependOnceListener=Y,N.listeners=function(r){return[]},N.binding=function(r){throw new Error("process.binding is not supported")},N.cwd=function(){return"/"},N.chdir=function(r){throw new Error("process.chdir is not supported")},N.umask=function(){return 0};var zr=lr.exports;const Hr=Ur(zr);function Et(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ye,jt;function fr(){if(jt)return Ye;jt=1;var r={};return Ye=typeof Hr=="object"&&r&&r.NODE_DEBUG&&/\bsemver\b/i.test(r.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{},Ye}var qe,zt;function hr(){if(zt)return qe;zt=1;const r="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,o=16,l=t-6;return qe={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:l,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},qe}var Ke={exports:{}},Ht;function Br(){return Ht||(Ht=1,(function(r,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:l}=hr(),m=fr();t=r.exports={};const _=t.re=[],d=t.safeRe=[],a=t.src=[],u=t.safeSrc=[],i=t.t={};let f=0;const E="[a-zA-Z0-9-]",T=[["\\s",1],["\\d",l],[E,o]],k=j=>{for(const[M,z]of T)j=j.split(`${M}*`).join(`${M}{0,${z}}`).split(`${M}+`).join(`${M}{1,${z}}`);return j},p=(j,M,z)=>{const $=k(M),A=f++;m(j,A,M),i[j]=A,a[A]=M,u[A]=$,_[A]=new RegExp(M,z?"g":void 0),d[A]=new RegExp($,z?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),p("MAINVERSION",`(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${a[i.NONNUMERICIDENTIFIER]}|${a[i.NUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${a[i.NONNUMERICIDENTIFIER]}|${a[i.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASE",`(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${a[i.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[i.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${E}+`),p("BUILD",`(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?`),p("FULL",`^${a[i.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${a[i.BUILD]}?`),p("LOOSE",`^${a[i.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${a[i.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${a[i.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${a[i.PRERELEASELOOSE]})?${a[i.BUILD]}?)?)?`),p("XRANGE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${a[i.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",a[i.COERCEPLAIN]+`(?:${a[i.PRERELEASE]})?(?:${a[i.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",a[i.COERCE],!0),p("COERCERTLFULL",a[i.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${a[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${a[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[i.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ke,Ke.exports)),Ke.exports}var Ze,Bt;function Xr(){if(Bt)return Ze;Bt=1;const r=Object.freeze({loose:!0}),t=Object.freeze({});return Ze=n=>n?typeof n!="object"?r:n:t,Ze}var Je,Xt;function Wr(){if(Xt)return Je;Xt=1;const r=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const l=r.test(n),m=r.test(o);return l&&m&&(n=+n,o=+o),n===o?0:l&&!m?-1:m&&!l?1:n<o?-1:1};return Je={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},Je}var Qe,Wt;function dr(){if(Wt)return Qe;Wt=1;const r=fr(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=hr(),{safeRe:o,t:l}=Br(),m=Xr(),{compareIdentifiers:_}=Wr();class d{constructor(u,i){if(i=m(i),u instanceof d){if(u.loose===!!i.loose&&u.includePrerelease===!!i.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);r("SemVer",u,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;const f=u.trim().match(i.loose?o[l.LOOSE]:o[l.FULL]);if(!f)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const T=+E;if(T>=0&&T<n)return T}return E}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(r("SemVer.compare",this.version,this.options,u),!(u instanceof d)){if(typeof u=="string"&&u===this.version)return 0;u=new d(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof d||(u=new d(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof d||(u=new d(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let i=0;do{const f=this.prerelease[i],E=u.prerelease[i];if(r("prerelease compare",i,f,E),f===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(f===void 0)return-1;if(f!==E)return _(f,E)}while(++i)}compareBuild(u){u instanceof d||(u=new d(u,this.options));let i=0;do{const f=this.build[i],E=u.build[i];if(r("build compare",i,f,E),f===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(f===void 0)return-1;if(f!==E)return _(f,E)}while(++i)}inc(u,i,f){if(u.startsWith("pre")){if(!i&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(i){const E=`-${i}`.match(this.options.loose?o[l.PRERELEASELOOSE]:o[l.PRERELEASE]);if(!E||E[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,f),this.inc("pre",i,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,f),this.inc("pre",i,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const E=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[E];else{let T=this.prerelease.length;for(;--T>=0;)typeof this.prerelease[T]=="number"&&(this.prerelease[T]++,T=-2);if(T===-1){if(i===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(i){let T=[i,E];f===!1&&(T=[i]),_(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=T):this.prerelease=T}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Qe=d,Qe}var et,Vt;function Vr(){if(Vt)return et;Vt=1;const r=dr();return et=(t,n,o=!1)=>{if(t instanceof r)return t;try{return new r(t,n)}catch(l){if(!o)return null;throw l}},et}var tt,Yt;function Yr(){if(Yt)return tt;Yt=1;const r=Vr();return tt=(t,n)=>{const o=r(t,n);return o?o.version:null},tt}var qr=Yr();const Kr=Et(qr);var rt,qt;function Zr(){if(qt)return rt;qt=1;const r=dr();return rt=(t,n)=>new r(t,n).major,rt}var Jr=Zr();const Kt=Et(Jr);class Qr{bus;constructor(t){typeof t.getVersion!="function"||!Kr(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Kt(t.getVersion())!==Kt(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.2"}subscribe(t,n){this.bus.subscribe(t,n)}unsubscribe(t,n){this.bus.unsubscribe(t,n)}emit(t,...n){this.bus.emit(t,...n)}}class en{handlers=new Map;getVersion(){return"3.3.2"}subscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).concat(n))}unsubscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).filter(o=>o!==n))}emit(t,...n){(this.handlers.get(t)||[]).forEach(o=>{try{o(n[0])}catch(l){console.error("could not invoke event listener",l)}})}}let he=null;function tn(){return he!==null?he:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?he=new Qr(window._nc_event_bus):he=window._nc_event_bus=new en,he)}function rn(r,t){tn().subscribe(r,t)}class Ce{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(t,n,o){this.scope=`${o?Ce.GLOBAL_SCOPE_PERSISTENT:Ce.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=n}scopeKey(t){return`${this.scope}${t}`}setItem(t,n){this.wrapped.setItem(this.scopeKey(t),n)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class nn{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new Ce(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function on(r){return new nn(r)}let Ae;const Er=[];function jn(){return Ae===void 0&&(Ae=document.head.dataset.requesttoken??null),Ae}function zn(r){Er.push(r)}rn("csrf-token-update",r=>{Ae=r.token,Er.forEach(t=>{try{t(Ae)}catch(n){console.error("Error updating CSRF token observer",n)}})});on("public").persist().build();let ce;function Zt(r,t){return r?r.getAttribute(t):null}function an(){if(ce!==void 0)return ce;const r=document?.getElementsByTagName("head")[0];if(!r)return null;const t=Zt(r,"data-user");return t===null?(ce=null,ce):(ce={uid:t,displayName:Zt(r,"data-user-displayname"),isAdmin:!!window._oc_isadmin},ce)}var R=(r=>(r[r.Debug=0]="Debug",r[r.Info=1]="Info",r[r.Warn=2]="Warn",r[r.Error=3]="Error",r[r.Fatal=4]="Fatal",r))(R||{}),sn=Object.defineProperty,cn=(r,t,n)=>t in r?sn(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,ln=(r,t,n)=>(cn(r,t+"",n),n);class un{constructor(t){ln(this,"context"),this.context=t||{}}formatMessage(t,n,o){let l="["+R[n].toUpperCase()+"] ";return o&&o.app&&(l+=o.app+": "),typeof t=="string"?l+t:(l+="Unexpected ".concat(t.name),t.message&&(l+=' "'.concat(t.message,'"')),n===R.Debug&&t.stack&&(l+=`
|
|
|
|
Stack trace:
|
|
`.concat(t.stack)),l)}log(t,n,o){var l,m;if(!(typeof((l=this.context)==null?void 0:l.level)=="number"&&t<((m=this.context)==null?void 0:m.level)))switch(typeof n=="object"&&o?.error===void 0&&(o.error=n),t){case R.Debug:console.debug(this.formatMessage(n,R.Debug,o),o);break;case R.Info:console.info(this.formatMessage(n,R.Info,o),o);break;case R.Warn:console.warn(this.formatMessage(n,R.Warn,o),o);break;case R.Error:console.error(this.formatMessage(n,R.Error,o),o);break;case R.Fatal:default:console.error(this.formatMessage(n,R.Fatal,o),o);break}}debug(t,n){this.log(R.Debug,t,Object.assign({},this.context,n))}info(t,n){this.log(R.Info,t,Object.assign({},this.context,n))}warn(t,n){this.log(R.Warn,t,Object.assign({},this.context,n))}error(t,n){this.log(R.Error,t,Object.assign({},this.context,n))}fatal(t,n){this.log(R.Fatal,t,Object.assign({},this.context,n))}}function pn(r){return new un(r)}var mn=Object.defineProperty,fn=(r,t,n)=>t in r?mn(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,Jt=(r,t,n)=>(fn(r,typeof t!="symbol"?t+"":t,n),n);class hn{constructor(t){Jt(this,"context"),Jt(this,"factory"),this.context={},this.factory=t}setApp(t){return this.context.app=t,this}setLogLevel(t){return this.context.level=t,this}setUid(t){return this.context.uid=t,this}detectUser(){const t=an();return t!==null&&(this.context.uid=t.uid),this}detectLogLevel(){const t=this,n=()=>{var o,l;document.readyState==="complete"||document.readyState==="interactive"?(t.context.level=(l=(o=window._oc_config)==null?void 0:o.loglevel)!=null?l:R.Warn,window._oc_debug&&(t.context.level=R.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function dn(){return new hn(pn)}const{entries:gr,setPrototypeOf:Qt,isFrozen:En,getPrototypeOf:gn,getOwnPropertyDescriptor:Tn}=Object;let{freeze:C,seal:P,create:ft}=Object,{apply:ht,construct:dt}=typeof Reflect<"u"&&Reflect;C||(C=function(r){return r}),P||(P=function(r){return r}),ht||(ht=function(r,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),l=2;l<n;l++)o[l-2]=arguments[l];return r.apply(t,o)}),dt||(dt=function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new r(...n)});const ve=x(Array.prototype.forEach),In=x(Array.prototype.lastIndexOf),er=x(Array.prototype.pop),de=x(Array.prototype.push),An=x(Array.prototype.splice),De=x(String.prototype.toLowerCase),nt=x(String.prototype.toString),ot=x(String.prototype.match),Ee=x(String.prototype.replace),bn=x(String.prototype.indexOf),Nn=x(String.prototype.trim),G=x(Object.prototype.hasOwnProperty),D=x(RegExp.prototype.test),ge=Rn(TypeError);function x(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];return ht(r,t,o)}}function Rn(r){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return dt(r,n)}}function h(r,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De;Qt&&Qt(r,null);let o=t.length;for(;o--;){let l=t[o];if(typeof l=="string"){const m=n(l);m!==l&&(En(t)||(t[o]=m),l=m)}r[l]=!0}return r}function yn(r){for(let t=0;t<r.length;t++)G(r,t)||(r[t]=null);return r}function q(r){const t=ft(null);for(const[n,o]of gr(r))G(r,n)&&(Array.isArray(o)?t[n]=yn(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=q(o):t[n]=o);return t}function Te(r,t){for(;r!==null;){const o=Tn(r,t);if(o){if(o.get)return x(o.get);if(typeof o.value=="function")return x(o.value)}r=gn(r)}function n(){return null}return n}const tr=C(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),it=C(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),at=C(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ln=C(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),st=C(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_n=C(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rr=C(["#text"]),nr=C(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ct=C(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),or=C(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),we=C(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),On=P(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vn=P(/<%[\w\W]*|[\w\W]*%>/gm),wn=P(/\$\{[\w\W]*/gm),Sn=P(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dn=P(/^aria-[\-\w]+$/),Tr=P(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cn=P(/^(?:\w+script|data):/i),xn=P(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ir=P(/^html$/i),kn=P(/^[a-z][.\w]*(-[.\w]+)+$/i);var ir=Object.freeze({__proto__:null,ARIA_ATTR:Dn,ATTR_WHITESPACE:xn,CUSTOM_ELEMENT:kn,DATA_ATTR:Sn,DOCTYPE_NAME:Ir,ERB_EXPR:vn,IS_ALLOWED_URI:Tr,IS_SCRIPT_OR_DATA:Cn,MUSTACHE_EXPR:On,TMPLIT_EXPR:wn});const Ie={element:1,text:3,progressingInstruction:7,comment:8,document:9},Mn=function(){return typeof window>"u"?null:window},$n=function(r,t){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const l="dompurify"+(n?"#"+n:"");try{return r.createPolicy(l,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},ar=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ar(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn();const t=e=>Ar(e);if(t.version="3.3.0",t.removed=[],!r||!r.document||r.document.nodeType!==Ie.document||!r.Element)return t.isSupported=!1,t;let{document:n}=r;const o=n,l=o.currentScript,{DocumentFragment:m,HTMLTemplateElement:_,Node:d,Element:a,NodeFilter:u,NamedNodeMap:i=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:f,DOMParser:E,trustedTypes:T}=r,k=a.prototype,p=Te(k,"cloneNode"),j=Te(k,"remove"),M=Te(k,"nextSibling"),z=Te(k,"childNodes"),$=Te(k,"parentNode");if(typeof _=="function"){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let A,ue="";const{implementation:xe,createNodeIterator:Nr,createDocumentFragment:Rr,getElementsByTagName:yr}=n,{importNode:Lr}=o;let S=ar();t.isSupported=typeof gr=="function"&&typeof $=="function"&&xe&&xe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ke,ERB_EXPR:Me,TMPLIT_EXPR:$e,DATA_ATTR:_r,ARIA_ATTR:Or,IS_SCRIPT_OR_DATA:vr,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:wr}=ir;let{IS_ALLOWED_URI:Tt}=ir,y=null;const It=h({},[...tr,...it,...at,...st,...rr]);let O=null;const At=h({},[...nr,...ct,...or,...we]);let b=Object.seal(ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,Pe=null;const te=Object.seal(ft(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let bt=!0,Fe=!0,Nt=!1,Rt=!0,re=!1,be=!0,Z=!1,Ue=!1,Ge=!1,ne=!1,Ne=!1,Re=!1,yt=!0,Lt=!1;const Sr="user-content-";let je=!0,me=!1,oe={},ie=null;const _t=h({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ot=null;const vt=h({},["audio","video","img","source","image","track"]);let ze=null;const wt=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",Le="http://www.w3.org/2000/svg",X="http://www.w3.org/1999/xhtml";let ae=X,He=!1,Be=null;const Dr=h({},[ye,Le,X],nt);let _e=h({},["mi","mo","mn","ms","mtext"]),Oe=h({},["annotation-xml"]);const Cr=h({},["title","style","font","a","script"]);let fe=null;const xr=["application/xhtml+xml","text/html"],kr="text/html";let L=null,se=null;const Mr=n.createElement("form"),St=function(e){return e instanceof RegExp||e instanceof Function},Xe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(se&&se===e)){if((!e||typeof e!="object")&&(e={}),e=q(e),fe=xr.indexOf(e.PARSER_MEDIA_TYPE)===-1?kr:e.PARSER_MEDIA_TYPE,L=fe==="application/xhtml+xml"?nt:De,y=G(e,"ALLOWED_TAGS")?h({},e.ALLOWED_TAGS,L):It,O=G(e,"ALLOWED_ATTR")?h({},e.ALLOWED_ATTR,L):At,Be=G(e,"ALLOWED_NAMESPACES")?h({},e.ALLOWED_NAMESPACES,nt):Dr,ze=G(e,"ADD_URI_SAFE_ATTR")?h(q(wt),e.ADD_URI_SAFE_ATTR,L):wt,Ot=G(e,"ADD_DATA_URI_TAGS")?h(q(vt),e.ADD_DATA_URI_TAGS,L):vt,ie=G(e,"FORBID_CONTENTS")?h({},e.FORBID_CONTENTS,L):_t,pe=G(e,"FORBID_TAGS")?h({},e.FORBID_TAGS,L):q({}),Pe=G(e,"FORBID_ATTR")?h({},e.FORBID_ATTR,L):q({}),oe=G(e,"USE_PROFILES")?e.USE_PROFILES:!1,bt=e.ALLOW_ARIA_ATTR!==!1,Fe=e.ALLOW_DATA_ATTR!==!1,Nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Rt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,re=e.SAFE_FOR_TEMPLATES||!1,be=e.SAFE_FOR_XML!==!1,Z=e.WHOLE_DOCUMENT||!1,ne=e.RETURN_DOM||!1,Ne=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Ge=e.FORCE_BODY||!1,yt=e.SANITIZE_DOM!==!1,Lt=e.SANITIZE_NAMED_PROPS||!1,je=e.KEEP_CONTENT!==!1,me=e.IN_PLACE||!1,Tt=e.ALLOWED_URI_REGEXP||Tr,ae=e.NAMESPACE||X,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,Oe=e.HTML_INTEGRATION_POINTS||Oe,b=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),re&&(Fe=!1),Ne&&(ne=!0),oe&&(y=h({},rr),O=[],oe.html===!0&&(h(y,tr),h(O,nr)),oe.svg===!0&&(h(y,it),h(O,ct),h(O,we)),oe.svgFilters===!0&&(h(y,at),h(O,ct),h(O,we)),oe.mathMl===!0&&(h(y,st),h(O,or),h(O,we))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?te.tagCheck=e.ADD_TAGS:(y===It&&(y=q(y)),h(y,e.ADD_TAGS,L))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?te.attributeCheck=e.ADD_ATTR:(O===At&&(O=q(O)),h(O,e.ADD_ATTR,L))),e.ADD_URI_SAFE_ATTR&&h(ze,e.ADD_URI_SAFE_ATTR,L),e.FORBID_CONTENTS&&(ie===_t&&(ie=q(ie)),h(ie,e.FORBID_CONTENTS,L)),je&&(y["#text"]=!0),Z&&h(y,["html","head","body"]),y.table&&(h(y,["tbody"]),delete pe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ge('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ge('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=e.TRUSTED_TYPES_POLICY,ue=A.createHTML("")}else A===void 0&&(A=$n(T,l)),A!==null&&typeof ue=="string"&&(ue=A.createHTML(""));C&&C(e),se=e}},Dt=h({},[...it,...at,...Ln]),Ct=h({},[...st,..._n]),$r=function(e){let c=$(e);(!c||!c.tagName)&&(c={namespaceURI:ae,tagName:"template"});const s=De(e.tagName),g=De(c.tagName);return Be[e.namespaceURI]?e.namespaceURI===Le?c.namespaceURI===X?s==="svg":c.namespaceURI===ye?s==="svg"&&(g==="annotation-xml"||_e[g]):!!Dt[s]:e.namespaceURI===ye?c.namespaceURI===X?s==="math":c.namespaceURI===Le?s==="math"&&Oe[g]:!!Ct[s]:e.namespaceURI===X?c.namespaceURI===Le&&!Oe[g]||c.namespaceURI===ye&&!_e[g]?!1:!Ct[s]&&(Cr[s]||!Dt[s]):!!(fe==="application/xhtml+xml"&&Be[e.namespaceURI]):!1},J=function(e){de(t.removed,{element:e});try{$(e).removeChild(e)}catch{j(e)}},Q=function(e,c){try{de(t.removed,{attribute:c.getAttributeNode(e),from:c})}catch{de(t.removed,{attribute:null,from:c})}if(c.removeAttribute(e),e==="is")if(ne||Ne)try{J(c)}catch{}else try{c.setAttribute(e,"")}catch{}},xt=function(e){let c=null,s=null;if(Ge)e="<remove></remove>"+e;else{const I=ot(e,/^[\r\n\t ]+/);s=I&&I[0]}fe==="application/xhtml+xml"&&ae===X&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const g=A?A.createHTML(e):e;if(ae===X)try{c=new E().parseFromString(g,fe)}catch{}if(!c||!c.documentElement){c=xe.createDocument(ae,"template",null);try{c.documentElement.innerHTML=He?ue:g}catch{}}const v=c.body||c.documentElement;return e&&s&&v.insertBefore(n.createTextNode(s),v.childNodes[0]||null),ae===X?yr.call(c,Z?"html":"body")[0]:Z?c.documentElement:v},kt=function(e){return Nr.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},We=function(e){return e instanceof f&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof i)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},Mt=function(e){return typeof d=="function"&&e instanceof d};function W(e,c,s){ve(e,g=>{g.call(t,c,s,se)})}const $t=function(e){let c=null;if(W(S.beforeSanitizeElements,e,null),We(e))return J(e),!0;const s=L(e.nodeName);if(W(S.uponSanitizeElement,e,{tagName:s,allowedTags:y}),be&&e.hasChildNodes()&&!Mt(e.firstElementChild)&&D(/<[/\w!]/g,e.innerHTML)&&D(/<[/\w!]/g,e.textContent)||e.nodeType===Ie.progressingInstruction||be&&e.nodeType===Ie.comment&&D(/<[/\w]/g,e.data))return J(e),!0;if(!(te.tagCheck instanceof Function&&te.tagCheck(s))&&(!y[s]||pe[s])){if(!pe[s]&&Ft(s)&&(b.tagNameCheck instanceof RegExp&&D(b.tagNameCheck,s)||b.tagNameCheck instanceof Function&&b.tagNameCheck(s)))return!1;if(je&&!ie[s]){const g=$(e)||e.parentNode,v=z(e)||e.childNodes;if(v&&g){const I=v.length;for(let V=I-1;V>=0;--V){const F=p(v[V],!0);F.__removalCount=(e.__removalCount||0)+1,g.insertBefore(F,M(e))}}}return J(e),!0}return e instanceof a&&!$r(e)||(s==="noscript"||s==="noembed"||s==="noframes")&&D(/<\/no(script|embed|frames)/i,e.innerHTML)?(J(e),!0):(re&&e.nodeType===Ie.text&&(c=e.textContent,ve([ke,Me,$e],g=>{c=Ee(c,g," ")}),e.textContent!==c&&(de(t.removed,{element:e.cloneNode()}),e.textContent=c)),W(S.afterSanitizeElements,e,null),!1)},Pt=function(e,c,s){if(yt&&(c==="id"||c==="name")&&(s in n||s in Mr))return!1;if(!(Fe&&!Pe[c]&&D(_r,c))&&!(bt&&D(Or,c))&&!(te.attributeCheck instanceof Function&&te.attributeCheck(c,e))){if(!O[c]||Pe[c]){if(!(Ft(e)&&(b.tagNameCheck instanceof RegExp&&D(b.tagNameCheck,e)||b.tagNameCheck instanceof Function&&b.tagNameCheck(e))&&(b.attributeNameCheck instanceof RegExp&&D(b.attributeNameCheck,c)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(c,e))||c==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&D(b.tagNameCheck,s)||b.tagNameCheck instanceof Function&&b.tagNameCheck(s))))return!1}else if(!ze[c]&&!D(Tt,Ee(s,gt,""))&&!((c==="src"||c==="xlink:href"||c==="href")&&e!=="script"&&bn(s,"data:")===0&&Ot[e])&&!(Nt&&!D(vr,Ee(s,gt,"")))&&s)return!1}return!0},Ft=function(e){return e!=="annotation-xml"&&ot(e,wr)},Ut=function(e){W(S.beforeSanitizeAttributes,e,null);const{attributes:c}=e;if(!c||We(e))return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let g=c.length;for(;g--;){const v=c[g],{name:I,namespaceURI:V,value:F}=v,U=L(I),Ve=F;let w=I==="value"?Ve:Nn(Ve);if(s.attrName=U,s.attrValue=w,s.keepAttr=!0,s.forceKeepAttr=void 0,W(S.uponSanitizeAttribute,e,s),w=s.attrValue,Lt&&(U==="id"||U==="name")&&(Q(I,e),w=Sr+w),be&&D(/((--!?|])>)|<\/(style|title|textarea)/i,w)){Q(I,e);continue}if(U==="attributename"&&ot(w,"href")){Q(I,e);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){Q(I,e);continue}if(!Rt&&D(/\/>/i,w)){Q(I,e);continue}re&&ve([ke,Me,$e],Fr=>{w=Ee(w,Fr," ")});const Gt=L(e.nodeName);if(!Pt(Gt,U,w)){Q(I,e);continue}if(A&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!V)switch(T.getAttributeType(Gt,U)){case"TrustedHTML":{w=A.createHTML(w);break}case"TrustedScriptURL":{w=A.createScriptURL(w);break}}if(w!==Ve)try{V?e.setAttributeNS(V,I,w):e.setAttribute(I,w),We(e)?J(e):er(t.removed)}catch{Q(I,e)}}W(S.afterSanitizeAttributes,e,null)},Pr=function e(c){let s=null;const g=kt(c);for(W(S.beforeSanitizeShadowDOM,c,null);s=g.nextNode();)W(S.uponSanitizeShadowNode,s,null),$t(s),Ut(s),s.content instanceof m&&e(s.content);W(S.afterSanitizeShadowDOM,c,null)};return t.sanitize=function(e){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=null,g=null,v=null,I=null;if(He=!e,He&&(e="<!-->"),typeof e!="string"&&!Mt(e))if(typeof e.toString=="function"){if(e=e.toString(),typeof e!="string")throw ge("dirty is not a string, aborting")}else throw ge("toString is not a function");if(!t.isSupported)return e;if(Ue||Xe(c),t.removed=[],typeof e=="string"&&(me=!1),me){if(e.nodeName){const U=L(e.nodeName);if(!y[U]||pe[U])throw ge("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)s=xt("<!---->"),g=s.ownerDocument.importNode(e,!0),g.nodeType===Ie.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?s=g:s.appendChild(g);else{if(!ne&&!re&&!Z&&e.indexOf("<")===-1)return A&&Re?A.createHTML(e):e;if(s=xt(e),!s)return ne?null:Re?ue:""}s&&Ge&&J(s.firstChild);const V=kt(me?e:s);for(;v=V.nextNode();)$t(v),Ut(v),v.content instanceof m&&Pr(v.content);if(me)return e;if(ne){if(Ne)for(I=Rr.call(s.ownerDocument);s.firstChild;)I.appendChild(s.firstChild);else I=s;return(O.shadowroot||O.shadowrootmode)&&(I=Lr.call(o,I,!0)),I}let F=Z?s.outerHTML:s.innerHTML;return Z&&y["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&D(Ir,s.ownerDocument.doctype.name)&&(F="<!DOCTYPE "+s.ownerDocument.doctype.name+`>
|
|
`+F),re&&ve([ke,Me,$e],U=>{F=Ee(F,U," ")}),A&&Re?A.createHTML(F):F},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xe(e),Ue=!0},t.clearConfig=function(){se=null,Ue=!1},t.isValidAttribute=function(e,c,s){se||Xe({});const g=L(e),v=L(c);return Pt(g,v,s)},t.addHook=function(e,c){typeof c=="function"&&de(S[e],c)},t.removeHook=function(e,c){if(c!==void 0){const s=In(S[e],c);return s===-1?void 0:An(S[e],s,1)[0]}return er(S[e])},t.removeHooks=function(e){S[e]=[]},t.removeAllHooks=function(){S=ar()},t}var Pn=Ar(),lt,sr;function Fn(){if(sr)return lt;sr=1;var r=/["'&<>]/;lt=t;function t(n){var o=""+n,l=r.exec(o);if(!l)return o;var m,_="",d=0,a=0;for(d=l.index;d<o.length;d++){switch(o.charCodeAt(d)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}a!==d&&(_+=o.substring(a,d)),a=d+1,_+=m}return a!==d?_+o.substring(a,d):_}return lt}var Un=Fn();const cr=Et(Un);function Gn(){return globalThis._nc_l10n_language}globalThis._nc_l10n_locale??=typeof document<"u"&&document.documentElement.dataset.locale||Intl.DateTimeFormat().resolvedOptions().locale.replaceAll(/-/g,"_"),globalThis._nc_l10n_language??=typeof document<"u"&&document.documentElement.lang||(globalThis.navigator?.language??"en");function br(r){return{translations:globalThis._oc_l10n_registry_translations[r]??{},pluralFunction:globalThis._oc_l10n_registry_plural_functions[r]??(t=>t)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function ut(r,t,n,o,l){const m=typeof n=="object"?n:void 0,_=typeof o=="number"?o:typeof n=="number"?n:void 0,d={escape:!0,sanitize:!0,...typeof l=="object"?l:typeof o=="object"?o:{}},a=k=>k,u=(d.sanitize?Pn.sanitize:a)||a,i=d.escape?cr:a,f=k=>typeof k=="string"||typeof k=="number",E=(k,p,j)=>k.replace(/%n/g,""+j).replace(/{([^{}]*)}/g,(M,z)=>{if(p===void 0||!(z in p))return i(M);const $=p[z];return f($)?i(`${$}`):typeof $=="object"&&f($.value)?($.escape!==!1?cr:a)(`${$.value}`):i(M)});let T=(l?.bundle??br(r)).translations[t]||t;return T=Array.isArray(T)?T[0]:T,u(typeof m=="object"||_!==void 0?E(T,m,_):T)}function Hn(r,t,n,o,l,m){const _="_"+t+"_::_"+n+"_",d=m?.bundle??br(r),a=d.translations[_];if(typeof a<"u"){const u=a;if(Array.isArray(u)){const i=d.pluralFunction(o);return ut(r,u[i],l,o,m)}}return o===1?ut(r,t,l,o,m):ut(r,n,l,o,m)}function Bn(r,t=Gn()){switch(t==="pt-BR"&&(t="xbr"),t.length>3&&(t=t.substring(0,t.lastIndexOf("-"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return r===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return r===0||r===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return r%10===1&&r%100!==11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2;case"cs":case"sk":return r===1?0:r>=2&&r<=4?1:2;case"ga":return r===1?0:r===2?1:2;case"lt":return r%10===1&&r%100!==11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2;case"sl":return r%100===1?0:r%100===2?1:r%100===3||r%100===4?2:3;case"mk":return r%10===1?0:1;case"mt":return r===1?0:r===0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3;case"lv":return r===0?0:r%10===1&&r%100!==11?1:2;case"pl":return r===1?0:r%10>=2&&r%10<=4&&(r%100<12||r%100>14)?1:2;case"cy":return r===1?0:r===2?1:r===8||r===11?2:3;case"ro":return r===1?0:r===0||r%100>0&&r%100<20?1:2;case"ar":return r===0?0:r===1?1:r===2?2:r%100>=3&&r%100<=10?3:r%100>=11&&r%100<=99?4:5;default:return 0}}function Xn(r,t,n){const o=`#initial-state-${r}-${t}`;if(window._nc_initial_state?.has(o))return window._nc_initial_state.get(o);window._nc_initial_state||(window._nc_initial_state=new Map);const l=document.querySelector(o);if(l===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${t} of ${r}`)}try{const m=JSON.parse(atob(l.value));return window._nc_initial_state.set(o,m),m}catch(m){if(console.error("[@f7cloud/initial-state] Could not parse initial state",{key:t,app:r,error:m}),n!==void 0)return n;throw new Error(`Could not parse initial state ${t} of ${r}`,{cause:m})}}const Wn=dn().setApp("files_downloadlimit").detectUser().build();export{an as a,Et as b,Hn as c,Wn as d,Gn as e,Bn as f,dn as g,Pn as h,jn as i,Xn as l,zn as o,Hr as p,ut as t};
|
|
//# sourceMappingURL=logger-NonNsq4V.chunk.mjs.map
|