From 0f2a64a64e406185e60ebbb413120b47295f5506 Mon Sep 17 00:00:00 2001 From: Robin Windey Date: Thu, 6 Jun 2024 09:19:43 +0200 Subject: [PATCH] Make sure show image actionhandler is only called once (#146) * Make sure show image actionhandler is only called once * Fix #143 * showImage was called multiple time * Close listener was therefore also registered multiple times and stopped working Signed-off-by: Robin Windey * Adjust Playwright tests to be NC28 compatible Signed-off-by: Robin Windey --------- Signed-off-by: Robin Windey --- js/fileAction.js | 4 ++-- js/fileAction.js.LICENSE.txt | 2 +- js/fileAction.js.map | 2 +- js/init.js | 4 ++-- js/init.js.LICENSE.txt | 2 +- js/init.js.map | 2 +- src/fileAction.js | 13 +++++++++++++ tests/E2E/tests/common.ts | 4 ++-- tests/E2E/tests/directory-share.spec.ts | 4 ++-- tests/E2E/tests/regular-fileview.spec.ts | 2 +- tests/E2E/tests/single-fileshare.spec.ts | 4 ++-- 11 files changed, 28 insertions(+), 15 deletions(-) diff --git a/js/fileAction.js b/js/fileAction.js index 18730df..eadddc6 100644 --- a/js/fileAction.js +++ b/js/fileAction.js @@ -1,3 +1,3 @@ /*! For license information please see fileAction.js.LICENSE.txt */ -(()=>{var t={2125:(t,e,r)=>{"use strict";var n=r(5260),o=void 0,i=[];n.subscribe("csrf-token-update",(function(t){o=t.token,i.forEach((function(e){try{e(t.token)}catch(t){console.error("error updating CSRF token observer",t)}}))}));var a=function(t,e){return t?t.getAttribute(e):null},s=void 0;e.getCurrentUser=function(){if(void 0!==s)return s;var t=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];if(!t)return null;var e=a(t,"data-user");return s=null===e?null:{uid:e,displayName:a(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin}},e.getRequestToken=function(){if(void 0===o){var t=null===document||void 0===document?void 0:document.getElementsByTagName("head")[0];o=t?t.getAttribute("data-requesttoken"):null}return o},e.onRequestTokenUpdate=function(t){i.push(t)}},1635:(t,e,r)=>{"use strict";r(3096),r(9228),r(3227),r(4011),r(1431),Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogger=void 0,e.buildConsoleLogger=function(t){return new s(t)},r(2659),r(6031),r(5822),r(6187),r(8690),r(1414),r(1908);var n=r(3482);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r{"use strict";r(3096),r(9228),r(3227),r(4011),r(1431),Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerBuilder=void 0,r(6031),r(5822),r(6187),r(8690),r(1414),r(1908);var n=r(2125),o=r(3482);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var r=0;r{"use strict";r(3096),Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0;var n=function(t){return t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t}({});e.LogLevel=n},9470:(t,e,r)=>{"use strict";r(3096),e.IY=function(){return new o.LoggerBuilder(n.buildConsoleLogger)};var n=r(1635),o=r(5224);r(3482)},6640:(t,e,r)=>{"use strict";r(6626),r(9139),r(3379),r(6028),r(2663),r(2815),r(4159)},5654:(t,e)=>{"use strict";e.c=void 0,e.c=t=>window.location.protocol+"//"+window.location.host+(t=>r()+"/remote.php/"+t)(t);const r=()=>window?.OC?.webroot||""},1699:function(t){t.exports=function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object;let{freeze:i,seal:a,create:s}=Object,{apply:u,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(t){return t}),a||(a=function(t){return t}),u||(u=function(t,e,r){return t.apply(e,r)}),c||(c=function(t,e){return new t(...e)});const l=x(Array.prototype.forEach),f=x(Array.prototype.pop),p=x(Array.prototype.push),h=x(String.prototype.toLowerCase),d=x(String.prototype.toString),g=x(String.prototype.match),v=x(String.prototype.replace),m=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(RegExp.prototype.test),w=(E=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:h;e&&e(t,null);let i=n.length;for(;i--;){let e=n[i];if("string"==typeof e){const t=o(e);t!==e&&(r(n)||(n[i]=t),e=t)}t[e]=!0}return t}function A(e){const r=s(null);for(const[n,i]of t(e))void 0!==o(e,n)&&(r[n]=i);return r}function S(t,e){for(;null!==t;){const r=o(t,e);if(r){if(r.get)return x(r.get);if("function"==typeof r.value)return x(r.value)}t=n(t)}return function(t){return console.warn("fallback value for",t),null}}const N=i(["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","section","select","shadow","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"]),T=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I=i(["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"]),P=i(["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"]),_=i(["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"]),j=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i(["#text"]),R=i(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),C=i(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),k=i(["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"]),D=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M=a(/<%[\w\W]*|[\w\W]*%>/gm),$=a(/\${[\w\W]*}/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),V=a(/^aria-[\-\w]+$/),B=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=a(/^(?:\w+script|data):/i),z=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),H=a(/^html$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:$,DATA_ATTR:U,ARIA_ATTR:V,IS_ALLOWED_URI:B,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:z,DOCTYPE_NAME:H});const X=function(){return"undefined"==typeof window?null:window};return function e(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=t=>e(t);if(n.version="3.0.6",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;let{document:o}=r;const a=o,u=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:E,Node:x,Element:F,NodeFilter:M,NamedNodeMap:$=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:U,DOMParser:V,trustedTypes:G}=r,z=F.prototype,q=S(z,"cloneNode"),Y=S(z,"nextSibling"),Z=S(z,"childNodes"),K=S(z,"parentNode");if("function"==typeof E){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let J,Q="";const{implementation:tt,createNodeIterator:et,createDocumentFragment:rt,getElementsByTagName:nt}=o,{importNode:ot}=a;let it={};n.isSupported="function"==typeof t&&"function"==typeof K&&tt&&void 0!==tt.createHTMLDocument;const{MUSTACHE_EXPR:at,ERB_EXPR:st,TMPLIT_EXPR:ut,DATA_ATTR:ct,ARIA_ATTR:lt,IS_SCRIPT_OR_DATA:ft,ATTR_WHITESPACE:pt}=W;let{IS_ALLOWED_URI:ht}=W,dt=null;const gt=O({},[...N,...T,...I,..._,...L]);let vt=null;const mt=O({},[...R,...C,...k,...D]);let yt=Object.seal(s(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}})),bt=null,wt=null,Et=!0,xt=!0,Ot=!1,At=!0,St=!1,Nt=!1,Tt=!1,It=!1,Pt=!1,_t=!1,jt=!1,Lt=!0,Rt=!1,Ct=!0,kt=!1,Dt={},Ft=null;const Mt=O({},["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 $t=null;const Ut=O({},["audio","video","img","source","image","track"]);let Vt=null;const Bt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gt="http://www.w3.org/1998/Math/MathML",zt="http://www.w3.org/2000/svg",Ht="http://www.w3.org/1999/xhtml";let Wt=Ht,Xt=!1,qt=null;const Yt=O({},[Gt,zt,Ht],d);let Zt=null;const Kt=["application/xhtml+xml","text/html"];let Jt=null,Qt=null;const te=o.createElement("form"),ee=function(t){return t instanceof RegExp||t instanceof Function},re=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Qt||Qt!==t){if(t&&"object"==typeof t||(t={}),t=A(t),Zt=Zt=-1===Kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Jt="application/xhtml+xml"===Zt?d:h,dt="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,Jt):gt,vt="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,Jt):mt,qt="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,d):Yt,Vt="ADD_URI_SAFE_ATTR"in t?O(A(Bt),t.ADD_URI_SAFE_ATTR,Jt):Bt,$t="ADD_DATA_URI_TAGS"in t?O(A(Ut),t.ADD_DATA_URI_TAGS,Jt):Ut,Ft="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,Jt):Mt,bt="FORBID_TAGS"in t?O({},t.FORBID_TAGS,Jt):{},wt="FORBID_ATTR"in t?O({},t.FORBID_ATTR,Jt):{},Dt="USE_PROFILES"in t&&t.USE_PROFILES,Et=!1!==t.ALLOW_ARIA_ATTR,xt=!1!==t.ALLOW_DATA_ATTR,Ot=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,St=t.SAFE_FOR_TEMPLATES||!1,Nt=t.WHOLE_DOCUMENT||!1,Pt=t.RETURN_DOM||!1,_t=t.RETURN_DOM_FRAGMENT||!1,jt=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,Lt=!1!==t.SANITIZE_DOM,Rt=t.SANITIZE_NAMED_PROPS||!1,Ct=!1!==t.KEEP_CONTENT,kt=t.IN_PLACE||!1,ht=t.ALLOWED_URI_REGEXP||B,Wt=t.NAMESPACE||Ht,yt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(yt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ee(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(yt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(yt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(xt=!1),_t&&(Pt=!0),Dt&&(dt=O({},[...L]),vt=[],!0===Dt.html&&(O(dt,N),O(vt,R)),!0===Dt.svg&&(O(dt,T),O(vt,C),O(vt,D)),!0===Dt.svgFilters&&(O(dt,I),O(vt,C),O(vt,D)),!0===Dt.mathMl&&(O(dt,_),O(vt,k),O(vt,D))),t.ADD_TAGS&&(dt===gt&&(dt=A(dt)),O(dt,t.ADD_TAGS,Jt)),t.ADD_ATTR&&(vt===mt&&(vt=A(vt)),O(vt,t.ADD_ATTR,Jt)),t.ADD_URI_SAFE_ATTR&&O(Vt,t.ADD_URI_SAFE_ATTR,Jt),t.FORBID_CONTENTS&&(Ft===Mt&&(Ft=A(Ft)),O(Ft,t.FORBID_CONTENTS,Jt)),Ct&&(dt["#text"]=!0),Nt&&O(dt,["html","head","body"]),dt.table&&(O(dt,["tbody"]),delete bt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=t.TRUSTED_TYPES_POLICY,Q=J.createHTML("")}else void 0===J&&(J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(G,u)),null!==J&&"string"==typeof Q&&(Q=J.createHTML(""));i&&i(t),Qt=t}},ne=O({},["mi","mo","mn","ms","mtext"]),oe=O({},["foreignobject","desc","title","annotation-xml"]),ie=O({},["title","style","font","a","script"]),ae=O({},T);O(ae,I),O(ae,P);const se=O({},_);O(se,j);const ue=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},ce=function(t,e){try{p(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!vt[t])if(Pt||_t)try{ue(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},le=function(t){let e=null,r=null;if(It)t=""+t;else{const e=g(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===Zt&&Wt===Ht&&(t=''+t+"");const n=J?J.createHTML(t):t;if(Wt===Ht)try{e=(new V).parseFromString(n,Zt)}catch(t){}if(!e||!e.documentElement){e=tt.createDocument(Wt,"template",null);try{e.documentElement.innerHTML=Xt?Q:n}catch(t){}}const i=e.body||e.documentElement;return t&&r&&i.insertBefore(o.createTextNode(r),i.childNodes[0]||null),Wt===Ht?nt.call(e,Nt?"html":"body")[0]:Nt?e.documentElement:i},fe=function(t){return et.call(t.ownerDocument||t,t,M.SHOW_ELEMENT|M.SHOW_COMMENT|M.SHOW_TEXT,null)},pe=function(t){return"function"==typeof x&&t instanceof x},he=function(t,e,r){it[t]&&l(it[t],(t=>{t.call(n,e,r,Qt)}))},de=function(t){let e=null;if(he("beforeSanitizeElements",t,null),(r=t)instanceof U&&("string"!=typeof r.nodeName||"string"!=typeof r.textContent||"function"!=typeof r.removeChild||!(r.attributes instanceof $)||"function"!=typeof r.removeAttribute||"function"!=typeof r.setAttribute||"string"!=typeof r.namespaceURI||"function"!=typeof r.insertBefore||"function"!=typeof r.hasChildNodes))return ue(t),!0;var r;const o=Jt(t.nodeName);if(he("uponSanitizeElement",t,{tagName:o,allowedTags:dt}),t.hasChildNodes()&&!pe(t.firstElementChild)&&b(/<[/\w]/g,t.innerHTML)&&b(/<[/\w]/g,t.textContent))return ue(t),!0;if(!dt[o]||bt[o]){if(!bt[o]&&ve(o)){if(yt.tagNameCheck instanceof RegExp&&b(yt.tagNameCheck,o))return!1;if(yt.tagNameCheck instanceof Function&&yt.tagNameCheck(o))return!1}if(Ct&&!Ft[o]){const e=K(t)||t.parentNode,r=Z(t)||t.childNodes;if(r&&e)for(let n=r.length-1;n>=0;--n)e.insertBefore(q(r[n],!0),Y(t))}return ue(t),!0}return t instanceof F&&!function(t){let e=K(t);e&&e.tagName||(e={namespaceURI:Wt,tagName:"template"});const r=h(t.tagName),n=h(e.tagName);return!!qt[t.namespaceURI]&&(t.namespaceURI===zt?e.namespaceURI===Ht?"svg"===r:e.namespaceURI===Gt?"svg"===r&&("annotation-xml"===n||ne[n]):Boolean(ae[r]):t.namespaceURI===Gt?e.namespaceURI===Ht?"math"===r:e.namespaceURI===zt?"math"===r&&oe[n]:Boolean(se[r]):t.namespaceURI===Ht?!(e.namespaceURI===zt&&!oe[n])&&!(e.namespaceURI===Gt&&!ne[n])&&!se[r]&&(ie[r]||!ae[r]):!("application/xhtml+xml"!==Zt||!qt[t.namespaceURI]))}(t)?(ue(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!b(/<\/no(script|embed|frames)/i,t.innerHTML)?(St&&3===t.nodeType&&(e=t.textContent,l([at,st,ut],(t=>{e=v(e,t," ")})),t.textContent!==e&&(p(n.removed,{element:t.cloneNode()}),t.textContent=e)),he("afterSanitizeElements",t,null),!1):(ue(t),!0)},ge=function(t,e,r){if(Lt&&("id"===e||"name"===e)&&(r in o||r in te))return!1;if(xt&&!wt[e]&&b(ct,e));else if(Et&&b(lt,e));else if(!vt[e]||wt[e]){if(!(ve(t)&&(yt.tagNameCheck instanceof RegExp&&b(yt.tagNameCheck,t)||yt.tagNameCheck instanceof Function&&yt.tagNameCheck(t))&&(yt.attributeNameCheck instanceof RegExp&&b(yt.attributeNameCheck,e)||yt.attributeNameCheck instanceof Function&&yt.attributeNameCheck(e))||"is"===e&&yt.allowCustomizedBuiltInElements&&(yt.tagNameCheck instanceof RegExp&&b(yt.tagNameCheck,r)||yt.tagNameCheck instanceof Function&&yt.tagNameCheck(r))))return!1}else if(Vt[e]);else if(b(ht,v(r,pt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(r,"data:")||!$t[t])if(Ot&&!b(ft,v(r,pt,"")));else if(r)return!1;return!0},ve=function(t){return t.indexOf("-")>0},me=function(t){he("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:vt};let o=e.length;for(;o--;){const i=e[o],{name:a,namespaceURI:s,value:u}=i,c=Jt(a);let p="value"===a?u:y(u);if(r.attrName=c,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,he("uponSanitizeAttribute",t,r),p=r.attrValue,r.forceKeepAttr)continue;if(ce(a,t),!r.keepAttr)continue;if(!At&&b(/\/>/i,p)){ce(a,t);continue}St&&l([at,st,ut],(t=>{p=v(p,t," ")}));const h=Jt(t.nodeName);if(ge(h,c,p)){if(!Rt||"id"!==c&&"name"!==c||(ce(a,t),p="user-content-"+p),J&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(s);else switch(G.getAttributeType(h,c)){case"TrustedHTML":p=J.createHTML(p);break;case"TrustedScriptURL":p=J.createScriptURL(p)}try{s?t.setAttributeNS(s,a,p):t.setAttribute(a,p),f(n.removed)}catch(t){}}}he("afterSanitizeAttributes",t,null)},ye=function t(e){let r=null;const n=fe(e);for(he("beforeSanitizeShadowDOM",e,null);r=n.nextNode();)he("uponSanitizeShadowNode",r,null),de(r)||(r.content instanceof c&&t(r.content),me(r));he("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,i=null,s=null;if(Xt=!t,Xt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!pe(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Tt||re(e),n.removed=[],"string"==typeof t&&(kt=!1),kt){if(t.nodeName){const e=Jt(t.nodeName);if(!dt[e]||bt[e])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof x)r=le("\x3c!----\x3e"),o=r.ownerDocument.importNode(t,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Pt&&!St&&!Nt&&-1===t.indexOf("<"))return J&&jt?J.createHTML(t):t;if(r=le(t),!r)return Pt?null:jt?Q:""}r&&It&&ue(r.firstChild);const u=fe(kt?t:r);for(;i=u.nextNode();)de(i)||(i.content instanceof c&&ye(i.content),me(i));if(kt)return t;if(Pt){if(_t)for(s=rt.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(vt.shadowroot||vt.shadowrootmode)&&(s=ot.call(a,s,!0)),s}let f=Nt?r.outerHTML:r.innerHTML;return Nt&&dt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&b(H,r.ownerDocument.doctype.name)&&(f="\n"+f),St&&l([at,st,ut],(t=>{f=v(f,t," ")})),J&&jt?J.createHTML(f):f},n.setConfig=function(){re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Tt=!0},n.clearConfig=function(){Qt=null,Tt=!1},n.isValidAttribute=function(t,e,r){Qt||re({});const n=Jt(t),o=Jt(e);return ge(n,o,r)},n.addHook=function(t,e){"function"==typeof e&&(it[t]=it[t]||[],p(it[t],e))},n.removeHook=function(t){if(it[t])return f(it[t])},n.removeHooks=function(t){it[t]&&(it[t]=[])},n.removeAllHooks=function(){it={}},n}()}()},5009:t=>{"use strict";var e=/["'&<>]/;t.exports=function(t){var r,n=""+t,o=e.exec(n);if(!o)return n;var i="",a=0,s=0;for(a=o.index;a{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&p())}function p(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l1)for(var r=1;r{const n=r(6830),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(39),{safeRe:a,t:s}=r(9022),u=r(8716),{compareIdentifiers:c}=r(8822);class l{constructor(t,e){if(e=u(e),t instanceof l){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=l},2611:(t,e,r)=>{const n=r(9510);t.exports=(t,e)=>new n(t,e).major},5692:(t,e,r)=>{const n=r(9510);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},398:(t,e,r)=>{const n=r(5692);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},39:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},6830:(t,e,r)=>{var n=r(7061);const o="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=o},8822:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),o=e.test(r);return n&&o&&(t=+t,r=+r),t===r?0:n&&!o?-1:o&&!n?1:tr(e,t)}},8716:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},9022:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=r(39),a=r(6830),s=(e=t.exports={}).re=[],u=e.safeRe=[],c=e.src=[],l=e.t={};let f=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,o]],d=(t,e,r)=>{const n=(t=>{for(const[e,r]of h)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),o=f++;a(t,o,e),l[t]=o,c[o]=e,s[o]=new RegExp(e,r?"g":void 0),u[o]=new RegExp(n,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),d("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${p}+`),d("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),d("FULL",`^${c[l.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),d("LOOSE",`^${c[l.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),d("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),d("COERCERTL",c[l.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6802:t=>{"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},3984:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},7542:(t,e,r)=>{var n=r(3158),o=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],r=0;r=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function c(t,e){return t}function l(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return m(o)||(o=l(t,o,n)),o}var i=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(m(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return v(e)?t.stylize(""+e,"number"):d(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),x(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return f(r)}var c,w="",A=!1,S=["{","}"];return h(r)&&(A=!0,S=["[","]"]),O(r)&&(w=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(w=" "+RegExp.prototype.toString.call(r)),E(r)&&(w=" "+Date.prototype.toUTCString.call(r)),x(r)&&(w=" "+f(r)),0!==a.length||A&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=A?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,w,S)):S[0]+w+S[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),T(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=g(r)?l(t,u.value,null):l(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),y(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function g(t){return null===t}function v(t){return"number"==typeof t}function m(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===A(t)}function w(t){return"object"==typeof t&&null!==t}function E(t){return w(t)&&"[object Date]"===A(t)}function x(t){return w(t)&&("[object Error]"===A(t)||t instanceof Error)}function O(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(y(i)&&(i=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(i)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=g,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=m,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=y,e.isRegExp=b,e.isObject=w,e.isDate=E,e.isError=x,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(3984);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),N[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6802),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},8565:(t,e,r)=>{"use strict";var n=r(3158),o="win32"===n.platform,i=r(7542);function a(t,e){for(var r=[],n=0;n=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,l={};function f(t){var e=u.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",o=c.exec(n);return[r,o[1],o[2],o[3]]}function p(t){var e=u.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function h(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}l.resolve=function(){for(var t="",e="",r=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:t?(s=n.env["="+t])&&s.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(s=t+"\\"):s=n.cwd(),!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");if(s){var u=p(s),c=u.device,l=u.isUnc,f=u.isAbsolute,d=u.tail;if((!c||!t||c.toLowerCase()===t.toLowerCase())&&(t||(t=c),r||(e=d+"\\"+e,r=f),t&&r))break}}return l&&(t=h(t)),t+(r?"\\":"")+(e=a(e.split(/[\\\/]+/),!r).join("\\"))||"."},l.normalize=function(t){var e=p(t),r=e.device,n=e.isUnc,o=e.isAbsolute,i=e.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),n&&(r=h(r)),r+(o?"\\":"")+i},l.isAbsolute=function(t){return p(t).isAbsolute},l.join=function(){for(var t=[],e=0;e=-1&&!e;r--){var o=r>=0?arguments[r]:n.cwd();if(!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o[0])}return(e?"/":"")+(t=a(t.split("/"),!e).join("/"))||"."},g.normalize=function(t){var e=g.isAbsolute(t),r=t&&"/"===t[t.length-1];return(t=a(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},g.isAbsolute=function(t){return"/"===t.charAt(0)},g.join=function(){for(var t="",e=0;e{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&p())}function p(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l1)for(var r=1;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(398),o=r(2611);function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=i(n),s=i(o),u=function(){function t(t){"function"==typeof t.getVersion&&a.default(t.getVersion())?s.default(t.getVersion())!==s.default(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}return t.prototype.getVersion=function(){return"3.1.0"},t.prototype.subscribe=function(t,e){this.bus.subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this.bus.unsubscribe(t,e)},t.prototype.emit=function(t,e){this.bus.emit(t,e)},t}(),c=function(){function t(){this.handlers=new Map}return t.prototype.getVersion=function(){return"3.1.0"},t.prototype.subscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))},t.prototype.unsubscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((function(t){return t!=e})))},t.prototype.emit=function(t,e){(this.handlers.get(t)||[]).forEach((function(t){try{t(e)}catch(t){console.error("could not invoke event listener",t)}}))},t}(),l=null;function f(){return null!==l?l:"undefined"==typeof window?new Proxy({},{get:function(){return function(){return console.error("Window not available, EventBus can not be established!")}}}):(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),l=void 0!==(null===window||void 0===window?void 0:window._nc_event_bus)?new u(window._nc_event_bus):window._nc_event_bus=new c)}e.ProxyBus=u,e.SimpleBus=c,e.emit=function(t,e){f().emit(t,e)},e.subscribe=function(t,e){f().subscribe(t,e)},e.unsubscribe=function(t,e){f().unsubscribe(t,e)}},1575:(t,e,r)=>{"use strict";var n=r(5893),o=r(5545),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},7329:(t,e,r)=>{"use strict";var n=r(5434),o=r(5545),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},9272:(t,e,r)=>{"use strict";var n=r(545),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},9408:(t,e,r)=>{"use strict";var n=r(7936),o=r(9464),i=r(7144).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},9384:(t,e,r)=>{"use strict";var n=r(8373).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},9972:(t,e,r)=>{"use strict";var n=r(5287),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},2971:(t,e,r)=>{"use strict";var n=r(9405),o=r(9961),i=r(9969),a=function(t){return function(e,r,a){var s,u=n(e),c=i(u),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},6767:(t,e,r)=>{"use strict";var n=r(5898),o=r(6406),i=r(5366),a=r(5864),s=r(9969),u=r(5008),c=o([].push),l=function(t){var e=1===t,r=2===t,o=3===t,l=4===t,f=6===t,p=7===t,h=5===t||f;return function(d,g,v,m){for(var y,b,w=a(d),E=i(w),x=s(E),O=n(g,v),A=0,S=m||u,N=e?S(d,x):r||p?S(d,0):void 0;x>A;A++)if((h||A in E)&&(b=O(y=E[A],A,w),t))if(e)N[A]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return A;case 2:c(N,y)}else switch(t){case 4:return!1;case 7:c(N,y)}return f?-1:o||l?l:N}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},6251:(t,e,r)=>{"use strict";var n=r(5306),o=r(7936),i=r(7245),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},519:(t,e,r)=>{"use strict";var n=r(5306);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},9813:(t,e,r)=>{"use strict";var n=r(1575),o=r(5864),i=r(5366),a=r(9969),s=TypeError,u=function(t){return function(e,r,u,c){var l=o(e),f=i(l),p=a(l);n(r);var h=t?p-1:0,d=t?-1:1;if(u<2)for(;;){if(h in f){c=f[h],h+=d;break}if(h+=d,t?h<0:p<=h)throw new s("Reduce of empty array with no initial value")}for(;t?h>=0:p>h;h+=d)h in f&&(c=r(c,f[h],h,l));return c}};t.exports={left:u(!1),right:u(!0)}},9614:(t,e,r)=>{"use strict";var n=r(6406);t.exports=n([].slice)},7866:(t,e,r)=>{"use strict";var n=r(5289),o=r(5434),i=r(5287),a=r(7936)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===s||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},5008:(t,e,r)=>{"use strict";var n=r(7866);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3048:(t,e,r)=>{"use strict";var n=r(6406),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5683:(t,e,r)=>{"use strict";var n=r(6623),o=r(5893),i=r(3048),a=r(7936)("toStringTag"),s=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},779:(t,e,r)=>{"use strict";var n=r(4130),o=r(6627),i=r(10),a=r(7144);t.exports=function(t,e,r){for(var s=o(e),u=a.f,c=i.f,l=0;l{"use strict";var n=r(5306);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4160:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},9251:(t,e,r)=>{"use strict";var n=r(3877),o=r(7144),i=r(9637);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9637:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6968:(t,e,r)=>{"use strict";var n=r(3662),o=r(7144),i=r(9637);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},5938:(t,e,r)=>{"use strict";var n=r(9972),o=r(1253),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},5023:(t,e,r)=>{"use strict";var n=r(3911),o=r(7144);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},7205:(t,e,r)=>{"use strict";var n=r(5893),o=r(7144),i=r(3911),a=r(3630);t.exports=function(t,e,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(r)&&i(r,c,s),s.global)u?t[e]=r:a(e,r);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3630:(t,e,r)=>{"use strict";var n=r(7802),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3877:(t,e,r)=>{"use strict";var n=r(5306);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9800:(t,e,r)=>{"use strict";var n=r(7802),o=r(5287),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},9060:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},3136:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2823:(t,e,r)=>{"use strict";var n=r(9800)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},6576:(t,e,r)=>{"use strict";var n=r(7802),o=r(3048);t.exports="process"===o(n.process)},2626:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7245:(t,e,r)=>{"use strict";var n,o,i=r(7802),a=r(2626),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},4286:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2390:(t,e,r)=>{"use strict";var n=r(7802),o=r(10).f,i=r(9251),a=r(7205),s=r(3630),u=r(779),c=r(5031);t.exports=function(t,e){var r,l,f,p,h,d=t.target,g=t.global,v=t.stat;if(r=g?n:v?n[d]||s(d,{}):(n[d]||{}).prototype)for(l in e){if(p=e[l],f=t.dontCallGetSet?(h=o(r,l))&&h.value:r[l],!c(g?l:d+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(r,l,p,t)}}},5306:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},3282:(t,e,r)=>{"use strict";r(9139);var n=r(8717),o=r(7205),i=r(3351),a=r(5306),s=r(7936),u=r(9251),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,f){var p=s(t),h=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),d=h&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!d||r){var g=n(/./[p]),v=e(p,""[t],(function(t,e,r,o,a){var s=n(t),u=e.exec;return u===i||u===l.exec?h&&!a?{done:!0,value:g(e,r,o)}:{done:!0,value:s(r,e,o)}:{done:!1}}));o(String.prototype,t,v[0]),o(l,p,v[1])}f&&u(l[p],"sham",!0)}},6415:(t,e,r)=>{"use strict";var n=r(7219),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},5898:(t,e,r)=>{"use strict";var n=r(8717),o=r(1575),i=r(7219),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},7219:(t,e,r)=>{"use strict";var n=r(5306);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1550:(t,e,r)=>{"use strict";var n=r(7219),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9656:(t,e,r)=>{"use strict";var n=r(3877),o=r(4130),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},8692:(t,e,r)=>{"use strict";var n=r(6406),o=r(1575);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},8717:(t,e,r)=>{"use strict";var n=r(3048),o=r(6406);t.exports=function(t){if("Function"===n(t))return o(t)}},6406:(t,e,r)=>{"use strict";var n=r(7219),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},1570:(t,e,r)=>{"use strict";var n=r(7802),o=r(5893);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},6695:(t,e,r)=>{"use strict";var n=r(6406),o=r(5289),i=r(5893),a=r(3048),s=r(2755),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n{"use strict";var n=r(1575),o=r(7707);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},5338:(t,e,r)=>{"use strict";var n=r(6406),o=r(5864),i=Math.floor,a=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var h=r+t.length,d=n.length,g=l;return void 0!==f&&(f=o(f),g=c),s(p,g,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,h);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>d){var p=i(l/10);return 0===p?o:p<=d?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):o}c=n[l-1]}return void 0===c?"":c}))}},7802:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4130:(t,e,r)=>{"use strict";var n=r(6406),o=r(5864),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3421:t=>{"use strict";t.exports={}},2343:(t,e,r)=>{"use strict";var n=r(1570);t.exports=n("document","documentElement")},3075:(t,e,r)=>{"use strict";var n=r(3877),o=r(5306),i=r(9800);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5366:(t,e,r)=>{"use strict";var n=r(6406),o=r(5306),i=r(3048),a=Object,s=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?s(t,""):a(t)}:a},1074:(t,e,r)=>{"use strict";var n=r(5893),o=r(5287),i=r(1126);t.exports=function(t,e,r){var a,s;return i&&n(a=e.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(t,s),t}},5088:(t,e,r)=>{"use strict";var n=r(6406),o=r(5893),i=r(4830),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},9930:(t,e,r)=>{"use strict";var n,o,i,a=r(5585),s=r(7802),u=r(5287),c=r(9251),l=r(4130),f=r(4830),p=r(139),h=r(3421),d="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,e){if(m.has(t))throw new g(d);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var y=p("state");h[y]=!0,n=function(t,e){if(l(t,y))throw new g(d);return e.facade=t,c(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},5289:(t,e,r)=>{"use strict";var n=r(3048);t.exports=Array.isArray||function(t){return"Array"===n(t)}},5893:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},5434:(t,e,r)=>{"use strict";var n=r(6406),o=r(5306),i=r(5893),a=r(5683),s=r(1570),u=r(5088),c=function(){},l=[],f=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),d=!p.test(c),g=function(t){if(!i(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(p,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?v:g},5031:(t,e,r)=>{"use strict";var n=r(5306),o=r(5893),i=/#|\.prototype\./,a=function(t,e){var r=u[s(t)];return r===l||r!==c&&(o(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},7707:t=>{"use strict";t.exports=function(t){return null==t}},5287:(t,e,r)=>{"use strict";var n=r(5893);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},545:(t,e,r)=>{"use strict";var n=r(5287);t.exports=function(t){return n(t)||null===t}},99:t=>{"use strict";t.exports=!1},8210:(t,e,r)=>{"use strict";var n=r(5287),o=r(3048),i=r(7936)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},103:(t,e,r)=>{"use strict";var n=r(1570),o=r(5893),i=r(2075),a=r(345),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,s(t))}},3691:(t,e,r)=>{"use strict";var n=r(4760).IteratorPrototype,o=r(9464),i=r(9637),a=r(3581),s=r(9921),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!c,r)}),a(t,l,!1,!0),s[l]=u,t}},7227:(t,e,r)=>{"use strict";var n=r(2390),o=r(1550),i=r(99),a=r(9656),s=r(5893),u=r(3691),c=r(6900),l=r(1126),f=r(3581),p=r(9251),h=r(7205),d=r(7936),g=r(9921),v=r(4760),m=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,E=d("iterator"),x="keys",O="values",A="entries",S=function(){return this};t.exports=function(t,e,r,a,d,v,N){u(r,e,a);var T,I,P,_=function(t){if(t===d&&k)return k;if(!w&&t&&t in R)return R[t];switch(t){case x:case O:case A:return function(){return new r(this,t)}}return function(){return new r(this)}},j=e+" Iterator",L=!1,R=t.prototype,C=R[E]||R["@@iterator"]||d&&R[d],k=!w&&C||_(d),D="Array"===e&&R.entries||C;if(D&&(T=c(D.call(new t)))!==Object.prototype&&T.next&&(i||c(T)===b||(l?l(T,b):s(T[E])||h(T,E,S)),f(T,j,!0,!0),i&&(g[j]=S)),m&&d===O&&C&&C.name!==O&&(!i&&y?p(R,"name",O):(L=!0,k=function(){return o(C,this)})),d)if(I={values:_(O),keys:v?k:_(x),entries:_(A)},N)for(P in I)(w||L||!(P in R))&&h(R,P,I[P]);else n({target:e,proto:!0,forced:w||L},I);return i&&!N||R[E]===k||h(R,E,k,{name:d}),g[e]=k,I}},4760:(t,e,r)=>{"use strict";var n,o,i,a=r(5306),s=r(5893),u=r(5287),c=r(9464),l=r(6900),f=r(7205),p=r(7936),h=r(99),d=p("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):g=!0),!u(n)||a((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=c(n)),s(n[d])||f(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},9921:t=>{"use strict";t.exports={}},9969:(t,e,r)=>{"use strict";var n=r(9099);t.exports=function(t){return n(t.length)}},3911:(t,e,r)=>{"use strict";var n=r(6406),o=r(5306),i=r(5893),a=r(4130),s=r(3877),u=r(9656).CONFIGURABLE,c=r(5088),l=r(9930),f=l.enforce,p=l.get,h=String,d=Object.defineProperty,g=n("".slice),v=n("".replace),m=n([].join),y=s&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===g(h(e),0,7)&&(e="["+v(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return a(n,"source")||(n.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&p(this).source||c(this)}),"toString")},1402:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},3087:(t,e,r)=>{"use strict";var n=r(3877),o=r(6406),i=r(1550),a=r(5306),s=r(1008),u=r(6855),c=r(1940),l=r(5864),f=r(5366),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!==p({},t)[r]||s(p({},e)).join("")!==o}))?function(t,e){for(var r=l(t),o=arguments.length,a=1,p=u.f,h=c.f;o>a;)for(var g,v=f(arguments[a++]),m=p?d(s(v),p(v)):s(v),y=m.length,b=0;y>b;)g=m[b++],n&&!i(h,v,g)||(r[g]=v[g]);return r}:p},9464:(t,e,r)=>{"use strict";var n,o=r(9972),i=r(3872),a=r(4286),s=r(3421),u=r(2343),c=r(9800),l=r(139),f="prototype",p="script",h=l("IE_PROTO"),d=function(){},g=function(t){return"<"+p+">"+t+""},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;m="undefined"!=typeof document?document.domain&&n?v(n):(e=c("iframe"),r="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):v(n);for(var o=a.length;o--;)delete m[f][a[o]];return m()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[f]=o(t),r=new d,d[f]=null,r[h]=t):r=m(),void 0===e?r:i.f(r,e)}},3872:(t,e,r)=>{"use strict";var n=r(3877),o=r(7475),i=r(7144),a=r(9972),s=r(9405),u=r(1008);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=s(e),o=u(e),c=o.length,l=0;c>l;)i.f(t,r=o[l++],n[r]);return t}},7144:(t,e,r)=>{"use strict";var n=r(3877),o=r(3075),i=r(7475),a=r(9972),s=r(3662),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(a(t),e=s(e),a(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},10:(t,e,r)=>{"use strict";var n=r(3877),o=r(1550),i=r(1940),a=r(9637),s=r(9405),u=r(3662),c=r(4130),l=r(3075),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return a(!o(i.f,t,e),t[e])}},2348:(t,e,r)=>{"use strict";var n=r(3048),o=r(9405),i=r(7397).f,a=r(9614),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(s)}}(t):i(o(t))}},7397:(t,e,r)=>{"use strict";var n=r(5079),o=r(4286).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},6855:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},6900:(t,e,r)=>{"use strict";var n=r(4130),o=r(5893),i=r(5864),a=r(139),s=r(9494),u=a("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},2075:(t,e,r)=>{"use strict";var n=r(6406);t.exports=n({}.isPrototypeOf)},5079:(t,e,r)=>{"use strict";var n=r(6406),o=r(4130),i=r(9405),a=r(2971).indexOf,s=r(3421),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!o(s,r)&&o(n,r)&&u(l,r);for(;e.length>c;)o(n,r=e[c++])&&(~a(l,r)||u(l,r));return l}},1008:(t,e,r)=>{"use strict";var n=r(5079),o=r(4286);t.exports=Object.keys||function(t){return n(t,o)}},1940:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},1126:(t,e,r)=>{"use strict";var n=r(8692),o=r(9972),i=r(9272);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},2789:(t,e,r)=>{"use strict";var n=r(6623),o=r(5683);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},1253:(t,e,r)=>{"use strict";var n=r(1550),o=r(5893),i=r(5287),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&o(r=t.toString)&&!i(s=n(r,t)))return s;if(o(r=t.valueOf)&&!i(s=n(r,t)))return s;if("string"!==e&&o(r=t.toString)&&!i(s=n(r,t)))return s;throw new a("Can't convert object to primitive value")}},6627:(t,e,r)=>{"use strict";var n=r(1570),o=r(6406),i=r(7397),a=r(6855),s=r(9972),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(s(t)),r=a.f;return r?u(e,r(t)):e}},9533:(t,e,r)=>{"use strict";var n=r(7802);t.exports=n},7771:(t,e,r)=>{"use strict";var n=r(1550),o=r(9972),i=r(5893),a=r(3048),s=r(3351),u=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var c=n(r,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return n(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},3351:(t,e,r)=>{"use strict";var n,o,i=r(1550),a=r(6406),s=r(2755),u=r(3137),c=r(9688),l=r(9231),f=r(9464),p=r(9930).get,h=r(8880),d=r(2901),g=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,m=v,y=a("".charAt),b=a("".indexOf),w=a("".replace),E=a("".slice),x=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),O=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(x||A||O||h||d)&&(m=function(t){var e,r,n,o,a,c,l,h=this,d=p(h),S=s(t),N=d.raw;if(N)return N.lastIndex=h.lastIndex,e=i(m,N,S),h.lastIndex=N.lastIndex,e;var T=d.groups,I=O&&h.sticky,P=i(u,h),_=h.source,j=0,L=S;if(I&&(P=w(P,"y",""),-1===b(P,"g")&&(P+="g"),L=E(S,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(S,h.lastIndex-1))&&(_="(?: "+_+")",L=" "+L,j++),r=new RegExp("^(?:"+_+")",P)),A&&(r=new RegExp("^"+_+"$(?!\\s)",P)),x&&(n=h.lastIndex),o=i(v,I?r:h,L),I?o?(o.input=E(o.input,j),o[0]=E(o[0],j),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:x&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),A&&o&&o.length>1&&i(g,o[0],r,(function(){for(a=1;a{"use strict";var n=r(9972);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},9688:(t,e,r)=>{"use strict";var n=r(5306),o=r(7802).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},8880:(t,e,r)=>{"use strict";var n=r(5306),o=r(7802).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},2901:(t,e,r)=>{"use strict";var n=r(5306),o=r(7802).RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},6762:(t,e,r)=>{"use strict";var n=r(7707),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},3581:(t,e,r)=>{"use strict";var n=r(7144).f,o=r(4130),i=r(7936)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},139:(t,e,r)=>{"use strict";var n=r(9231),o=r(6350),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},4830:(t,e,r)=>{"use strict";var n=r(7802),o=r(3630),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},9231:(t,e,r)=>{"use strict";var n=r(99),o=r(4830);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6759:(t,e,r)=>{"use strict";var n=r(9972),o=r(7329),i=r(7707),a=r(7936)("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||i(r=n(s)[a])?e:o(r)}},8373:(t,e,r)=>{"use strict";var n=r(6406),o=r(5930),i=r(2755),a=r(6762),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,f=i(a(e)),p=o(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=u(f,p))<55296||n>56319||p+1===h||(l=u(f,p+1))<56320||l>57343?t?s(f,p):n:t?c(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3959:(t,e,r)=>{"use strict";var n=r(6406),o=r(6762),i=r(2755),a=r(8662),s=n("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var r=i(o(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},4053:(t,e,r)=>{"use strict";var n=r(7245),o=r(5306),i=r(7802).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},652:(t,e,r)=>{"use strict";var n=r(1550),o=r(1570),i=r(7936),a=r(7205);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=i("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return n(r,this)}),{arity:1})}},1999:(t,e,r)=>{"use strict";var n=r(4053);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},1303:(t,e,r)=>{"use strict";var n=r(6406);t.exports=n(1..valueOf)},9961:(t,e,r)=>{"use strict";var n=r(5930),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},9405:(t,e,r)=>{"use strict";var n=r(5366),o=r(6762);t.exports=function(t){return n(o(t))}},5930:(t,e,r)=>{"use strict";var n=r(1402);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},9099:(t,e,r)=>{"use strict";var n=r(5930),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},5864:(t,e,r)=>{"use strict";var n=r(6762),o=Object;t.exports=function(t){return o(n(t))}},6090:(t,e,r)=>{"use strict";var n=r(1550),o=r(5287),i=r(103),a=r(6628),s=r(1253),u=r(7936),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},3662:(t,e,r)=>{"use strict";var n=r(6090),o=r(103);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},6623:(t,e,r)=>{"use strict";var n={};n[r(7936)("toStringTag")]="z",t.exports="[object z]"===String(n)},2755:(t,e,r)=>{"use strict";var n=r(5683),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},5545:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6350:(t,e,r)=>{"use strict";var n=r(6406),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},345:(t,e,r)=>{"use strict";var n=r(4053);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7475:(t,e,r)=>{"use strict";var n=r(3877),o=r(5306);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5585:(t,e,r)=>{"use strict";var n=r(7802),o=r(5893),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},1012:(t,e,r)=>{"use strict";var n=r(9533),o=r(4130),i=r(4618),a=r(7144).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},4618:(t,e,r)=>{"use strict";var n=r(7936);e.f=n},7936:(t,e,r)=>{"use strict";var n=r(7802),o=r(9231),i=r(4130),a=r(6350),s=r(4053),u=r(345),c=n.Symbol,l=o("wks"),f=u?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return i(l,t)||(l[t]=s&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},8662:t=>{"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},4159:(t,e,r)=>{"use strict";var n=r(2390),o=r(5306),i=r(5289),a=r(5287),s=r(5864),u=r(9969),c=r(9060),l=r(6968),f=r(5008),p=r(6251),h=r(7936),d=r(7245),g=h("isConcatSpreadable"),v=d>=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),m=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(t){var e,r,n,o,i,a=s(this),p=f(a,0),h=0;for(e=-1,n=arguments.length;e{"use strict";var n=r(2390),o=r(6767).filter;n({target:"Array",proto:!0,forced:!r(6251)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},3227:(t,e,r)=>{"use strict";var n=r(9405),o=r(9408),i=r(9921),a=r(9930),s=r(7144).f,u=r(7227),c=r(4160),l=r(99),f=r(3877),p="Array Iterator",h=a.set,d=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)}),"values");var g=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},6626:(t,e,r)=>{"use strict";var n=r(2390),o=r(6767).map;n({target:"Array",proto:!0,forced:!r(6251)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2815:(t,e,r)=>{"use strict";var n=r(2390),o=r(9813).left,i=r(519),a=r(7245);n({target:"Array",proto:!0,forced:!r(6576)&&a>79&&a<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},5822:(t,e,r)=>{"use strict";var n=r(4130),o=r(7205),i=r(5938),a=r(7936)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},8983:(t,e,r)=>{"use strict";var n=r(2390),o=r(1570),i=r(6415),a=r(1550),s=r(6406),u=r(5306),c=r(5893),l=r(103),f=r(9614),p=r(6695),h=r(4053),d=String,g=o("JSON","stringify"),v=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),w=s(1..toString),E=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,A=!h||u((function(){var t=o("Symbol")("stringify detection");return"[null]"!==g([t])||"{}"!==g({a:t})||"{}"!==g(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),N=function(t,e){var r=f(arguments),n=p(e);if(c(n)||void 0!==t&&!l(t))return r[1]=function(t,e){if(c(n)&&(e=a(n,this,d(t),e)),!l(e))return e},i(g,null,r)},T=function(t,e,r){var n=m(r,e-1),o=m(r,e+1);return v(x,t)&&!v(O,o)||v(O,t)&&!v(x,n)?"\\u"+w(y(t,0),16):t};g&&n({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,r){var n=f(arguments),o=i(A?N:g,null,n);return S&&"string"==typeof o?b(o,E,T):o}})},1908:(t,e,r)=>{"use strict";var n=r(2390),o=r(99),i=r(3877),a=r(7802),s=r(9533),u=r(6406),c=r(5031),l=r(4130),f=r(1074),p=r(2075),h=r(103),d=r(6090),g=r(5306),v=r(7397).f,m=r(10).f,y=r(7144).f,b=r(1303),w=r(3959).trim,E="Number",x=a[E],O=s[E],A=x.prototype,S=a.TypeError,N=u("".slice),T=u("".charCodeAt),I=c(E,!x(" 0o1")||!x("0b1")||x("+0x1")),P=function(t){var e,r=arguments.length<1?0:x(function(t){var e=d(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,s,u,c=d(t,"number");if(h(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(e=T(c,0))||45===e){if(88===(r=T(c,2))||120===r)return NaN}else if(48===e){switch(T(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=N(c,2)).length,s=0;so)return NaN;return parseInt(i,n)}return+c}(e)}(t));return p(A,e=this)&&g((function(){b(e)}))?f(Object(r),this,P):r};P.prototype=A,I&&!o&&(A.constructor=P),n({global:!0,constructor:!0,wrap:!0,forced:I},{Number:P});var _=function(t,e){for(var r,n=i?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(e,r=n[o])&&!l(t,r)&&y(t,r,m(e,r))};o&&O&&_(s[E],O),(I||o)&&_(s[E],x)},2659:(t,e,r)=>{"use strict";var n=r(2390),o=r(3087);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},3096:(t,e,r)=>{"use strict";var n=r(2390),o=r(3877),i=r(7144).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},2487:(t,e,r)=>{"use strict";var n=r(2390),o=r(4053),i=r(5306),a=r(6855),s=r(5864);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},1414:(t,e,r)=>{"use strict";var n=r(6623),o=r(7205),i=r(2789);n||o(Object.prototype,"toString",i,{unsafe:!0})},9139:(t,e,r)=>{"use strict";var n=r(2390),o=r(3351);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},4011:(t,e,r)=>{"use strict";var n=r(8373).charAt,o=r(2755),i=r(9930),a=r(7227),s=r(4160),u="String Iterator",c=i.set,l=i.getterFor(u);a(String,"String",(function(t){c(this,{type:u,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?s(void 0,!0):(t=n(r,o),e.index+=t.length,s(t,!1))}))},6028:(t,e,r)=>{"use strict";var n=r(6415),o=r(1550),i=r(6406),a=r(3282),s=r(5306),u=r(9972),c=r(5893),l=r(7707),f=r(5930),p=r(9099),h=r(2755),d=r(6762),g=r(9384),v=r(6628),m=r(5338),y=r(7771),b=r(7936)("replace"),w=Math.max,E=Math.min,x=i([].concat),O=i([].push),A=i("".indexOf),S=i("".slice),N="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(t,e,r){var i=T?"$":"$0";return[function(t,r){var n=d(this),i=l(t)?void 0:v(t,b);return i?o(i,t,n,r):o(e,h(n),t,r)},function(t,o){var a=u(this),s=h(t);if("string"==typeof o&&-1===A(o,i)&&-1===A(o,"$<")){var l=r(e,a,s,o);if(l.done)return l.value}var d=c(o);d||(o=h(o));var v,b=a.global;b&&(v=a.unicode,a.lastIndex=0);for(var N,T=[];null!==(N=y(a,s))&&(O(T,N),b);)""===h(N[0])&&(a.lastIndex=g(s,p(a.lastIndex),v));for(var I,P="",_=0,j=0;j=_&&(P+=S(s,_,C)+L,_=C+R.length)}return P+S(s,_)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!N||T)},3379:(t,e,r)=>{"use strict";var n=r(6415),o=r(1550),i=r(6406),a=r(3282),s=r(9972),u=r(7707),c=r(8210),l=r(6762),f=r(6759),p=r(9384),h=r(9099),d=r(2755),g=r(6628),v=r(9614),m=r(7771),y=r(3351),b=r(9688),w=r(5306),E=b.UNSUPPORTED_Y,x=4294967295,O=Math.min,A=[].push,S=i(/./.exec),N=i(A),T=i("".slice);a("split",(function(t,e,r){var i;return i="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var i=d(l(this)),a=void 0===r?x:r>>>0;if(0===a)return[];if(void 0===t)return[i];if(!c(t))return o(e,i,t,a);for(var s,u,f,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=new RegExp(t.source,h+"g");(s=o(y,m,i))&&!((u=m.lastIndex)>g&&(N(p,T(i,g,s.index)),s.length>1&&s.index=a));)m.lastIndex===s.index&&m.lastIndex++;return g===i.length?!f&&S(m,"")||N(p,""):N(p,T(i,g)),p.length>a?v(p,0,a):p}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:o(e,this,t,r)}:e,[function(e,r){var n=l(this),a=u(e)?void 0:g(e,t);return a?o(a,e,n,r):o(i,d(n),e,r)},function(t,n){var o=s(this),a=d(t),u=r(i,o,a,n,i!==e);if(u.done)return u.value;var c=f(o,RegExp),l=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(E?"g":"y"),v=new c(E?"^(?:"+o.source+")":o,g),y=void 0===n?x:n>>>0;if(0===y)return[];if(0===a.length)return null===m(v,a)?[a]:[];for(var b=0,w=0,A=[];w{"use strict";var n=r(2390),o=r(7802),i=r(1550),a=r(6406),s=r(99),u=r(3877),c=r(4053),l=r(5306),f=r(4130),p=r(2075),h=r(9972),d=r(9405),g=r(3662),v=r(2755),m=r(9637),y=r(9464),b=r(1008),w=r(7397),E=r(2348),x=r(6855),O=r(10),A=r(7144),S=r(3872),N=r(1940),T=r(7205),I=r(5023),P=r(9231),_=r(139),j=r(3421),L=r(6350),R=r(7936),C=r(4618),k=r(1012),D=r(652),F=r(3581),M=r(9930),$=r(6767).forEach,U=_("hidden"),V="Symbol",B="prototype",G=M.set,z=M.getterFor(V),H=Object[B],W=o.Symbol,X=W&&W[B],q=o.RangeError,Y=o.TypeError,Z=o.QObject,K=O.f,J=A.f,Q=E.f,tt=N.f,et=a([].push),rt=P("symbols"),nt=P("op-symbols"),ot=P("wks"),it=!Z||!Z[B]||!Z[B].findChild,at=function(t,e,r){var n=K(H,e);n&&delete H[e],J(t,e,r),n&&t!==H&&J(H,e,n)},st=u&&l((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?at:J,ut=function(t,e){var r=rt[t]=y(X);return G(r,{type:V,tag:t,description:e}),u||(r.description=e),r},ct=function(t,e,r){t===H&&ct(nt,e,r),h(t);var n=g(e);return h(r),f(rt,n)?(r.enumerable?(f(t,U)&&t[U][n]&&(t[U][n]=!1),r=y(r,{enumerable:m(0,!1)})):(f(t,U)||J(t,U,m(1,y(null))),t[U][n]=!0),st(t,n,r)):J(t,n,r)},lt=function(t,e){h(t);var r=d(e),n=b(r).concat(dt(r));return $(n,(function(e){u&&!i(ft,r,e)||ct(t,e,r[e])})),t},ft=function(t){var e=g(t),r=i(tt,this,e);return!(this===H&&f(rt,e)&&!f(nt,e))&&(!(r||!f(this,e)||!f(rt,e)||f(this,U)&&this[U][e])||r)},pt=function(t,e){var r=d(t),n=g(e);if(r!==H||!f(rt,n)||f(nt,n)){var o=K(r,n);return!o||!f(rt,n)||f(r,U)&&r[U][n]||(o.enumerable=!0),o}},ht=function(t){var e=Q(d(t)),r=[];return $(e,(function(t){f(rt,t)||f(j,t)||et(r,t)})),r},dt=function(t){var e=t===H,r=Q(e?nt:d(t)),n=[];return $(r,(function(t){!f(rt,t)||e&&!f(H,t)||et(n,rt[t])})),n};c||(T(X=(W=function(){if(p(X,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=L(t),r=function(t){var n=void 0===this?o:this;n===H&&i(r,nt,t),f(n,U)&&f(n[U],e)&&(n[U][e]=!1);var a=m(1,t);try{st(n,e,a)}catch(t){if(!(t instanceof q))throw t;at(n,e,a)}};return u&&it&&st(H,e,{configurable:!0,set:r}),ut(e,t)})[B],"toString",(function(){return z(this).tag})),T(W,"withoutSetter",(function(t){return ut(L(t),t)})),N.f=ft,A.f=ct,S.f=lt,O.f=pt,w.f=E.f=ht,x.f=dt,C.f=function(t){return ut(R(t),t)},u&&(I(X,"description",{configurable:!0,get:function(){return z(this).description}}),s||T(H,"propertyIsEnumerable",ft,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),$(b(ot),(function(t){k(t)})),n({target:V,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?y(t):lt(y(t),e)},defineProperty:ct,defineProperties:lt,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ht}),D(),F(W,V),j[U]=!0},8690:(t,e,r)=>{"use strict";var n=r(2390),o=r(3877),i=r(7802),a=r(6406),s=r(4130),u=r(5893),c=r(2075),l=r(2755),f=r(5023),p=r(779),h=i.Symbol,d=h&&h.prototype;if(o&&u(h)&&(!("description"in d)||void 0!==h().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(g[e]=!0),e};p(v,h),v.prototype=d,d.constructor=v;var m="Symbol(description detection)"===String(h("description detection")),y=a(d.valueOf),b=a(d.toString),w=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),x=a("".slice);f(d,"description",{configurable:!0,get:function(){var t=y(this);if(s(g,t))return"";var e=b(t),r=m?x(e,7,-1):E(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},4681:(t,e,r)=>{"use strict";var n=r(2390),o=r(1570),i=r(4130),a=r(2755),s=r(9231),u=r(1999),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(c,e))return c[e];var r=o("Symbol")(e);return c[e]=r,l[r]=e,r}})},9228:(t,e,r)=>{"use strict";r(1012)("iterator")},6187:(t,e,r)=>{"use strict";r(1693),r(4681),r(864),r(8983),r(2487)},864:(t,e,r)=>{"use strict";var n=r(2390),o=r(4130),i=r(103),a=r(5545),s=r(9231),u=r(1999),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(c,t))return c[t]}})},6031:(t,e,r)=>{"use strict";var n=r(1012),o=r(652);n("toPrimitive"),o()},1431:(t,e,r)=>{"use strict";var n=r(7802),o=r(3136),i=r(2823),a=r(3227),s=r(9251),u=r(3581),c=r(7936)("iterator"),l=a.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(e){t[c]=l}if(u(t,e,!0),o[e])for(var r in a)if(t[r]!==a[r])try{s(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var p in o)f(n[p]&&n[p].prototype,p);f(i,"DOMTokenList")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";var t=r(398),e=r(2611);class n{bus;constructor(r){"function"==typeof r.getVersion&&t(r.getVersion())?e(r.getVersion())!==e(this.getVersion())&&console.warn("Proxying an event bus of version "+r.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=r}getVersion(){return"3.1.0"}subscribe(t,e){this.bus.subscribe(t,e)}unsubscribe(t,e){this.bus.unsubscribe(t,e)}emit(t,e){this.bus.emit(t,e)}}class o{handlers=new Map;getVersion(){return"3.1.0"}subscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))}unsubscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((t=>t!=e)))}emit(t,e){(this.handlers.get(t)||[]).forEach((t=>{try{t(e)}catch(t){console.error("could not invoke event listener",t)}}))}}let i=null;let a=null;const s=[];var u;u=t=>{a=t.token,s.forEach((e=>{try{e(t.token)}catch(t){console.error("error updating CSRF token observer",t)}}))},(null!==i?i:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),i=void 0!==window?._nc_event_bus?new n(window._nc_event_bus):window._nc_event_bus=new o,i)).subscribe("csrf-token-update",u);const c=(t,e)=>t?t.getAttribute(e):null;let l;var f=r(9470),p=r(5654);r(1699),r(5009),r(8565),r(6640);var h=r(7061),d={584:t=>{function e(t,e,o){t instanceof RegExp&&(t=r(t,o)),e instanceof RegExp&&(e=r(e,o));var i=n(t,e,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+t.length,i[1]),post:o.slice(i[1]+e.length)}}function r(t,e){var r=e.match(t);return r?r[0]:null}function n(t,e,r){var n,o,i,a,s,u=r.indexOf(t),c=r.indexOf(e,u+1),l=u;if(u>=0&&c>0){for(n=[],i=r.length;l>=0&&!s;)l==u?(n.push(l),u=r.indexOf(t,l+1)):1==n.length?s=[n.pop(),c]:((o=n.pop())=0?u:c;n.length&&(s=[i,a])}return s}t.exports=e,e.range=n},146:function(t,e,r){var n;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}t=r.nmd(t),function(i){var a="object"==o(e)&&e,s="object"==o(t)&&t&&t.exports==a&&t,u="object"==("undefined"==typeof global?"undefined":o(global))&&global;u.global!==u&&u.window!==u||(i=u);var c=function(t){this.message=t};(c.prototype=new Error).name="InvalidCharacterError";var l=function(t){throw new c(t)},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=/[\t\n\f\r ]/g,h={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var e,r,n,o,i=t.length%3,a="",s=-1,u=t.length-i;++s>18&63)+f.charAt(o>>12&63)+f.charAt(o>>6&63)+f.charAt(63&o);return 2==i?(e=t.charCodeAt(s)<<8,r=t.charCodeAt(++s),a+=f.charAt((o=e+r)>>10)+f.charAt(o>>4&63)+f.charAt(o<<2&63)+"="):1==i&&(o=t.charCodeAt(s),a+=f.charAt(o>>2)+f.charAt(o<<4&63)+"=="),a},decode:function(t){var e=(t=String(t).replace(p,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var r,n,o=0,i="",a=-1;++a>(-2*o&6)));return i},version:"1.0.0"};if("object"==o(r.amdO)&&r.amdO)void 0===(n=function(){return h}.call(e,r,e,t))||(t.exports=n);else if(a&&!a.nodeType)if(s)s.exports=h;else for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d]);else i.base64=h}(this)},918:(t,e)=>{e.k=function(t){if(!t)return 0;for(var e=(t=t.toString()).length,r=t.length;r--;){var n=t.charCodeAt(r);56320<=n&&n<=57343&&r--,127{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r{var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}},t.exports=r},5:(t,e,r)=>{var n=r(135),o=r(586),i=r(39);t.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},410:(t,e)=>{var r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");e.isExist=function(t){return void 0!==t},e.isEmptyObject=function(t){return 0===Object.keys(t).length},e.merge=function(t,e,r){if(e)for(var n=Object.keys(e),o=n.length,i=0;i{var n=r(410),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function a(t,e){for(var r=e;e5&&"xml"===n)return d("InvalidXml","XML declaration allowed only at the start of the document.",v(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function s(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){var r=1;for(e+=8;e"===t[e]&&0==--r)break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e"===t[e+2]){e+=2;break}return e}e.validate=function(t,e){e=Object.assign({},o,e);var r,u=[],c=!1,f=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(var g=0;g"!==t[g]&&" "!==t[g]&&"\t"!==t[g]&&"\n"!==t[g]&&"\r"!==t[g];g++)b+=t[g];if("/"===(b=b.trim())[b.length-1]&&(b=b.substring(0,b.length-1),g--),r=b,!n.isName(r))return d("InvalidTag",0===b.trim().length?"Invalid space after '<'.":"Tag '"+b+"' is an invalid name.",v(t,g));var w=l(t,g);if(!1===w)return d("InvalidAttr","Attributes for '"+b+"' have open quote.",v(t,g));var E=w.value;if(g=w.index,"/"===E[E.length-1]){var x=g-E.length,O=p(E=E.substring(0,E.length-1),e);if(!0!==O)return d(O.err.code,O.err.msg,v(t,x+O.err.line));c=!0}else if(y){if(!w.tagClosed)return d("InvalidTag","Closing tag '"+b+"' doesn't have proper closing.",v(t,g));if(E.trim().length>0)return d("InvalidTag","Closing tag '"+b+"' can't have attributes or invalid starting.",v(t,m));var A=u.pop();if(b!==A.tagName){var S=v(t,A.tagStartPos);return d("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+S.line+", col "+S.col+") instead of closing tag '"+b+"'.",v(t,m))}0==u.length&&(f=!0)}else{var N=p(E,e);if(!0!==N)return d(N.err.code,N.err.msg,v(t,g-E.length+N.err.line));if(!0===f)return d("InvalidXml","Multiple possible root nodes found.",v(t,g));-1!==e.unpairedTags.indexOf(b)||u.push({tagName:b,tagStartPos:m}),c=!0}for(g++;g0)||d("InvalidXml","Invalid '"+JSON.stringify(u.map((function(t){return t.tagName})),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):d("InvalidXml","Start tag expected.",1)};var u='"',c="'";function l(t,e){for(var r="",n="",o=!1;e"===t[e]&&""===n){o=!0;break}r+=t[e]}return""===n&&{value:r,index:e,tagClosed:o}}var f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function p(t,e){for(var r=n.getAllMatches(t,f),o={},i=0;i{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(354),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(t){this.options=Object.assign({},i,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=s,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function s(t,e,r){var n=this.j2x(t,r+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}function u(t){return this.options.indentBy.repeat(t)}function c(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}a.prototype.build=function(t){return this.options.preserveOrder?o(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={},n=t,(r=this.options.arrayNodeName)in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,t=e),this.j2x(t,0).val);var e,r,n},a.prototype.j2x=function(t,e){var r="",o="";for(var i in t)if(void 0===t[i])this.isAttribute(i)&&(o+="");else if(null===t[i])this.isAttribute(i)?o+="":"?"===i[0]?o+=this.indentate(e)+"<"+i+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+i+"/"+this.tagEndChar;else if(t[i]instanceof Date)o+=this.buildTextValNode(t[i],i,"",e);else if("object"!==n(t[i])){var a=this.isAttribute(i);if(a)r+=this.buildAttrPairStr(a,""+t[i]);else if(i===this.options.textNodeName){var s=this.options.tagValueProcessor(i,""+t[i]);o+=this.replaceEntitiesValue(s)}else o+=this.buildTextValNode(t[i],i,"",e)}else if(Array.isArray(t[i])){for(var u=t[i].length,c="",l=0;l"+t+o},a.prototype.closeTag=function(t){var e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":">")+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(n)+"\x3c!--".concat(t,"--\x3e")+this.newLine;if("?"===e[0])return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;var o=this.options.tagValueProcessor(e,t);return""===(o=this.replaceEntitiesValue(o))?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(var e=0;e{function e(t,a,s,u){for(var c="",l=!1,f=0;f":c+=m+"/>":y&&0!==y.length||!a.suppressEmptyNode?y&&y.endsWith(">")?c+=m+">".concat(y).concat(u,""):(c+=m+">",y&&""!==u&&(y.includes("/>")||y.includes("")):c+=m+"/>",l=!0}else{var b=n(h[":@"],a),w="?xml"===d?"":u,E=h[d][0][a.textNodeName];E=0!==E.length?" "+E:"",c+=w+"<".concat(d).concat(E).concat(b,"?>"),l=!0}else c+=u+"\x3c!--".concat(h[d][0][a.textNodeName],"--\x3e"),l=!0;else l&&(c+=u),c+=""),l=!1;else{var x=h[d];o(p,a)||(x=i(x=a.tagValueProcessor(d,x),a)),l&&(c+=u),c+=x,l=!1}}return c}function r(t){for(var e=Object.keys(t),r=0;r0&&e.processEntities)for(var r=0;r0&&(n="\n"),e(t,r,"",n)}},895:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r"===t[e]){if(h?"-"===t[e-1]&&"-"===t[e-2]&&(h=!1,o--):o--,0===o)break}else"["===t[e]?i=!0:t[e];else{if(i&&u(t,e)){var d=n(a(t,(e+=7)+1),3);entityName=d[0],val=d[1],e=d[2],-1===val.indexOf("&")&&(r[p(entityName)]={regx:RegExp("&".concat(entityName,";"),"g"),val})}else if(i&&c(t,e))e+=8;else if(i&&l(t,e))e+=8;else if(i&&f(t,e))e+=9;else{if(!s)throw new Error("Invalid DOCTYPE");h=!0}o++}if(0!==o)throw new Error("Unclosed DOCTYPE");return{entities:r,i:e}}},282:(t,e)=>{var r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}};e.buildOptions=function(t){return Object.assign({},r,t)},e.defaultOptions=r},502:(t,e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i=r(410),a=r(961),s=r(895),u=r(512),c=("<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,i.nameRegexp),function(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=l,this.parseXml=g,this.parseTextData=f,this.resolveNameSpace=p,this.buildAttributesMap=d,this.isItStopNode=b,this.replaceEntitiesValue=m,this.readStopNodeData=x,this.saveTextToParentTag=y,this.addChild=v})));function l(t){for(var e=Object.keys(t),r=0;r0)){s||(t=this.replaceEntitiesValue(t));var u=this.options.tagValueProcessor(e,t,r,i,a);return null==u?t:o(u)!==o(t)||u!==t?u:this.options.trimValues||t.trim()===t?O(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function p(t){if(this.options.removeNSPrefix){var e=t.split(":"),r="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=r+e[1])}return t}var h=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(t,e,r){if(!this.options.ignoreAttributes&&"string"==typeof t){for(var n=i.getAllMatches(t,h),a=n.length,s={},u=0;u",u,"Closing Tag is not closed."),l=t.substring(u+2,c).trim();if(this.options.removeNSPrefix){var f=l.indexOf(":");-1!==f&&(l=l.substr(f+1))}this.options.transformTagName&&(l=this.options.transformTagName(l)),r&&(o=this.saveTextToParentTag(o,r,i));var p=i.substring(i.lastIndexOf(".")+1);if(l&&-1!==this.options.unpairedTags.indexOf(l))throw new Error("Unpaired tag can not be used as closing tag: "));var h=0;p&&-1!==this.options.unpairedTags.indexOf(p)?(h=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):h=i.lastIndexOf("."),i=i.substring(0,h),r=this.tagsNodeStack.pop(),o="",u=c}else if("?"===t[u+1]){var d=E(t,u,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,r,i),this.options.ignoreDeclaration&&"?xml"===d.tagName||this.options.ignorePiTags);else{var g=new a(d.tagName);g.add(this.options.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&(g[":@"]=this.buildAttributesMap(d.tagExp,i,d.tagName)),this.addChild(r,g,i)}u=d.closeIndex+1}else if("!--"===t.substr(u+1,3)){var v=w(t,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){var m=t.substring(u+4,v-2);o=this.saveTextToParentTag(o,r,i),r.add(this.options.commentPropName,[n({},this.options.textNodeName,m)])}u=v}else if("!D"===t.substr(u+1,2)){var y=s(t,u);this.docTypeEntities=y.entities,u=y.i}else if("!["===t.substr(u+1,2)){var b=w(t,"]]>",u,"CDATA is not closed.")-2,x=t.substring(u+9,b);if(o=this.saveTextToParentTag(o,r,i),this.options.cdataPropName)r.add(this.options.cdataPropName,[n({},this.options.textNodeName,x)]);else{var O=this.parseTextData(x,r.tagname,i,!0,!1,!0);null==O&&(O=""),r.add(this.options.textNodeName,O)}u=b+2}else{var A=E(t,u,this.options.removeNSPrefix),S=A.tagName,N=A.tagExp,T=A.attrExpPresent,I=A.closeIndex;this.options.transformTagName&&(S=this.options.transformTagName(S)),r&&o&&"!xml"!==r.tagname&&(o=this.saveTextToParentTag(o,r,i,!1));var P=r;if(P&&-1!==this.options.unpairedTags.indexOf(P.tagname)&&(r=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),S!==e.tagname&&(i+=i?"."+S:S),this.isItStopNode(this.options.stopNodes,i,S)){var _="";if(N.length>0&&N.lastIndexOf("/")===N.length-1)u=A.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(S))u=A.closeIndex;else{var j=this.readStopNodeData(t,S,I+1);if(!j)throw new Error("Unexpected end of ".concat(S));u=j.i,_=j.tagContent}var L=new a(S);S!==N&&T&&(L[":@"]=this.buildAttributesMap(N,i,S)),_&&(_=this.parseTextData(_,S,i,!0,T,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),L.add(this.options.textNodeName,_),this.addChild(r,L,i)}else{if(N.length>0&&N.lastIndexOf("/")===N.length-1){"/"===S[S.length-1]?(S=S.substr(0,S.length-1),i=i.substr(0,i.length-1),N=S):N=N.substr(0,N.length-1),this.options.transformTagName&&(S=this.options.transformTagName(S));var R=new a(S);S!==N&&T&&(R[":@"]=this.buildAttributesMap(N,i,S)),this.addChild(r,R,i),i=i.substr(0,i.lastIndexOf("."))}else{var C=new a(S);this.tagsNodeStack.push(r),S!==N&&T&&(C[":@"]=this.buildAttributesMap(N,i,S)),this.addChild(r,C,i),r=C}o="",u=I}}else o+=t[u];return e.child};function v(t,e,r){var n=this.options.updateTag(e.tagname,r,e[":@"]);!1===n||("string"==typeof n?(e.tagname=n,t.addChild(e)):t.addChild(e))}var m=function(t){if(this.options.processEntities){for(var e in this.docTypeEntities){var r=this.docTypeEntities[e];t=t.replace(r.regx,r.val)}for(var n in this.lastEntities){var o=this.lastEntities[n];t=t.replace(o.regex,o.val)}if(this.options.htmlEntities)for(var i in this.htmlEntities){var a=this.htmlEntities[i];t=t.replace(a.regex,a.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function y(t,e,r,n){return t&&(void 0===n&&(n=0===Object.keys(e.child).length),void 0!==(t=this.parseTextData(t,e.tagname,r,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function b(t,e,r){var n="*."+r;for(var o in t){var i=t[o];if(n===i||e===i)return!0}return!1}function w(t,e,r,n){var o=t.indexOf(e,r);if(-1===o)throw new Error(n);return o+e.length-1}function E(t,e,r){var n=function(t,e){for(var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:">",o="",i=e;i3&&void 0!==arguments[3]?arguments[3]:">");if(n){var o=n.data,i=n.index,a=o.search(/\s/),s=o,u=!0;if(-1!==a&&(s=o.substr(0,a).replace(/\s\s*$/,""),o=o.substr(a+1)),r){var c=s.indexOf(":");-1!==c&&(u=(s=s.substr(c+1))!==n.data.substr(c+1))}return{tagName:s,tagExp:o,closeIndex:i,attrExpPresent:u}}}function x(t,e,r){for(var n=r,o=1;r",r,"".concat(e," is not closed"));if(t.substring(r+2,i).trim()===e&&0==--o)return{tagContent:t.substring(n,r),i};r=i}else if("?"===t[r+1])r=w(t,"?>",r+1,"StopNode is not closed.");else if("!--"===t.substr(r+1,3))r=w(t,"--\x3e",r+3,"StopNode is not closed.");else if("!["===t.substr(r+1,2))r=w(t,"]]>",r,"StopNode is not closed.")-2;else{var a=E(t,r,">");a&&((a&&a.tagName)===e&&"/"!==a.tagExp[a.tagExp.length-1]&&o++,r=a.closeIndex)}}function O(t,e,r){if(e&&"string"==typeof t){var n=t.trim();return"true"===n||"false"!==n&&u(t,r)}return i.isExist(t)?t:""}t.exports=c},586:(t,e,r)=>{var n=r(282).buildOptions,o=r(502),i=r(869).prettify,a=r(135),s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.externalEntities={},this.options=n(e)}var e,r;return e=t,(r=[{key:"parse",value:function(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});var r=a.validate(t,e);if(!0!==r)throw Error("".concat(r.err.msg,":").concat(r.err.line,":").concat(r.err.col))}var n=new o(this.options);n.addExternalEntities(this.externalEntities);var s=n.parseXml(t);return this.options.preserveOrder||void 0===s?s:i(s,this.options)}},{key:"addEntity",value:function(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}}])&&function(t,e){for(var r=0;r{function r(t,e,a){for(var s,u={},c=0;c0&&(u[e.textNodeName]=s):void 0!==s&&(u[e.textNodeName]=s),u}function n(t){for(var e=Object.keys(t),r=0;r{function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tagname=e,this.child=[],this[":@"]={}}var r,n;return r=t,(n=[{key:"add",value:function(t,r){"__proto__"===t&&(t="#__proto__"),this.child.push(e({},t,r))}},{key:"addChild",value:function(t){var r;"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push((e(r={},t.tagname,t.child),e(r,":@",t[":@"]),r)):this.child.push(e({},t.tagname,t.child))}}])&&function(t,e){for(var r=0;r{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},243:(t,e,r)=>{var n,o,i,a,s;n=r(718),o=r(106).utf8,i=r(163),a=r(106).bin,(s=function t(e,r){e.constructor==String?e=r&&"binary"===r.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=n.bytesToWords(e),u=8*e.length,c=1732584193,l=-271733879,f=-1732584194,p=271733878,h=0;h>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[u>>>5]|=128<>>9<<4)]=u;var d=t._ff,g=t._gg,v=t._hh,m=t._ii;for(h=0;h>>0,l=l+b>>>0,f=f+w>>>0,p=p+E>>>0}return n.endian([c,l,f,p])})._ff=function(t,e,r,n,o,i,a){var s=t+(e&r|~e&n)+(o>>>0)+a;return(s<>>32-i)+e},s._gg=function(t,e,r,n,o,i,a){var s=t+(e&n|r&~n)+(o>>>0)+a;return(s<>>32-i)+e},s._hh=function(t,e,r,n,o,i,a){var s=t+(e^r^n)+(o>>>0)+a;return(s<>>32-i)+e},s._ii=function(t,e,r,n,o,i,a){var s=t+(r^(e|~n))+(o>>>0)+a;return(s<>>32-i)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},637:(t,e,r)=>{var n=r(584);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),v(function(t){return t.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(s).split("\\.").join(u)}(t),!0).map(l)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function l(t){return t.split(o).join("\\").split(i).join("{").split(a).join("}").split(s).join(",").split(u).join(".")}function f(t){if(!t)return[""];var e=[],r=n("{","}",t);if(!r)return t.split(",");var o=r.pre,i=r.body,a=r.post,s=o.split(",");s[s.length-1]+="{"+i+"}";var u=f(a);return a.length&&(s[s.length-1]+=u.shift(),s.push.apply(s,u)),e.push.apply(e,s),e}function p(t){return"{"+t+"}"}function h(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function v(t,e){var r=[],o=n("{","}",t);if(!o)return[t];var i=o.pre,s=o.post.length?v(o.post,!1):[""];if(/\$$/.test(o.pre))for(var u=0;u=0;if(!E&&!x)return o.post.match(/,.*\}/)?v(t=o.pre+"{"+o.body+a+o.post):[t];if(E)m=o.body.split(/\.\./);else if(1===(m=f(o.body)).length&&1===(m=v(m[0],!1).map(p)).length)return s.map((function(t){return o.pre+m[0]+t}));if(E){var O=c(m[0]),A=c(m[1]),S=Math.max(m[0].length,m[1].length),N=3==m.length?Math.abs(c(m[2])):1,T=d;A0){var L=new Array(j+1).join("0");_=P<0?"-"+L+_.slice(1):L+_}}y.push(_)}}else{y=[];for(var R=0;R{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){var e="function"==typeof Map?new Map:void 0;return r=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return n(t,arguments,i(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o(a,t)},r(t)}function n(t,e,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&o(i,r.prototype),i},n.apply(null,arguments)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}var a=function(t){function r(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}(this,i(r).call(this,t))).name="ObjectPrototypeMutationError",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(r,t),r}(r(Error));function s(t,r){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=r.split("."),i=o.length,a=function(e){var r=o[e];if(!t)return{v:void 0};if("+"===r){if(Array.isArray(t))return{v:t.map((function(r,i){var a=o.slice(e+1);return a.length>0?s(r,a.join("."),n):n(t,i,o,e)}))};var i=o.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(i,") is not an array"))}t=n(t,r,o,e)},u=0;u2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=e(t)||null===t)return!1;if(void 0===r)return!1;if("number"==typeof r)return r in t;try{var o=!1;return s(t,r,(function(t,e,r,i){if(!u(r,i))return t&&t[e];o=n.own?t.hasOwnProperty(e):e in t})),o}catch(t){return!1}},hasOwn:function(t,e,r){return this.has(t,e,r||{own:!0})},isIn:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=e(t)||null===t)return!1;if(void 0===r)return!1;try{var i=!1,a=!1;return s(t,r,(function(t,r,o,s){return i=i||t===n||!!t&&t[r]===n,a=u(o,s)&&"object"===e(t)&&r in t,t&&t[r]})),o.validPath?i&&a:i}catch(t){return!1}},ObjectPrototypeMutationError:a}},441:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(930),i=function(t){return"string"==typeof t};function a(t,e){for(var r=[],n=0;n=-1&&!e;r--){var n=r>=0?arguments[r]:h.cwd();if(!i(n))throw new TypeError("Arguments to path.resolve must be strings");n&&(t=n+"/"+t,e="/"===n.charAt(0))}return(e?"/":"")+(t=a(t.split("/"),!e).join("/"))||"."},u.normalize=function(t){var e=u.isAbsolute(t),r="/"===t.substr(-1);return(t=a(t.split("/"),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},u.isAbsolute=function(t){return"/"===t.charAt(0)},u.join=function(){for(var t="",e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r+1)}t=u.resolve(t).substr(1),e=u.resolve(e).substr(1);for(var n=r(t.split("/")),o=r(e.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s{var r=Object.prototype.hasOwnProperty;function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var n,i,a=[];for(i in"string"!=typeof e&&(e="?"),t)if(r.call(t,i)){if((n=t[i])||null!=n&&!isNaN(n)||(n=""),i=o(i),n=o(n),null===i||null===n)continue;a.push(i+"="+n)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var i=n(e[1]),a=n(e[2]);null===i||null===a||i in o||(o[i]=a)}return o}},620:t=>{t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},512:t=>{var e=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o=Object.assign({},n,o),!t||"string"!=typeof t)return t;var i=t.trim();if(void 0!==o.skipLike&&o.skipLike.test(i))return t;if(o.hex&&e.test(i))return Number.parseInt(i,16);var a=r.exec(i);if(a){var s=a[1],u=a[2],c=function(t){return t&&-1!==t.indexOf(".")?("."===(t=t.replace(/0+$/,""))?t="0":"."===t[0]?t="0"+t:"."===t[t.length-1]&&(t=t.substr(0,t.length-1)),t):t}(a[3]),l=a[4]||a[6];if(!o.leadingZeros&&u.length>0&&s&&"."!==i[2])return t;if(!o.leadingZeros&&u.length>0&&!s&&"."!==i[1])return t;var f=Number(i),p=""+f;return-1!==p.search(/[eE]/)||l?o.eNotation?f:t:-1!==i.indexOf(".")?"0"===p&&""===c||p===c||s&&p==="-"+c?f:t:u?c===p||s+c===p?f:t:i===p||i===s+p?f:t}return t}},95:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(620),i=r(361),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,f=/^[a-zA-Z]:/;function p(t){return(t||"").toString().replace(a,"")}var h=[["#","hash"],["?","query"],function(t,e){return v(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function g(t){var e,r=("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).location||{},o={},i=n(t=t||r);if("blob:"===t.protocol)o=new y(unescape(t.pathname),{});else if("string"===i)for(e in o=new y(t,{}),d)delete o[e];else if("object"===i){for(e in t)e in d||(o[e]=t[e]);void 0===o.slashes&&(o.slashes=u.test(t.href))}return o}function v(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function m(t,e){t=(t=p(t)).replace(s,""),e=e||{};var r,n=l.exec(t),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],u=0;return i?a?(r=n[2]+n[3]+n[4],u=n[2].length+n[3].length):(r=n[2]+n[4],u=n[2].length):a?(r=n[3]+n[4],u=n[3].length):r=n[4],"file:"===o?u>=2&&(r=r.slice(2)):v(o)?r=n[4]:o?i&&(r=r.slice(2)):u>=2&&v(e.protocol)&&(r=n[4]),{protocol:o,slashes:i||v(o),slashesCount:u,rest:r}}function y(t,e,r){if(t=(t=p(t)).replace(s,""),!(this instanceof y))return new y(t,e,r);var a,u,c,l,d,b,w=h.slice(),E=n(e),x=this,O=0;for("object"!==E&&"string"!==E&&(r=e,e=null),r&&"function"!=typeof r&&(r=i.parse),a=!(u=m(t||"",e=g(e))).protocol&&!u.slashes,x.slashes=u.slashes||a&&e.slashes,x.protocol=u.protocol||e.protocol||"",t=u.rest,("file:"===u.protocol&&(2!==u.slashesCount||f.test(t))||!u.slashes&&(u.protocol||u.slashesCount<2||!v(x.protocol)))&&(w[3]=[/(.*)/,"pathname"]);O{},227:()=>{},347:()=>{},724:()=>{}},g={};function v(t){var e=g[t];if(void 0!==e)return e.exports;var r=g[t]={id:t,loaded:!1,exports:{}};return d[t].call(r.exports,r,r.exports,v),r.loaded=!0,r.exports}v.amdO={},v.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return v.d(e,{a:e}),e},v.d=(t,e)=>{for(var r in e)v.o(e,r)&&!v.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},v.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),v.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var m={};(()=>{v.d(m,{Gr:()=>L,jK:()=>R,cf:()=>D,HM:()=>F,eI:()=>Ar,lD:()=>H,yY:()=>Ne,sw:()=>Ae,np:()=>ge,_M:()=>Te});var t=v(95),e=v.n(t);function r(t){if(!n(t))throw new Error("Parameter was not an error")}function n(t){return"[object Error]"===(e=t,Object.prototype.toString.call(e))||t instanceof Error;var e}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var r=0;r1){var r=t.shift();t[0]=r+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n0&&(o=o.replace(/^[\/]+/,"")),o=n0?"?":"")+a.join("&")}("object"===g(arguments[0])?arguments[0]:[].slice.call(arguments))}(e.reduce((function(t,e,r){return(0===r||"/"!==e||"/"===e&&"/"!==t[t.length-1])&&t.push(e),t}),[]))}var N=v(243),T=v.n(N);function I(t,e){var r=t.url.replace("//",""),n=-1==r.indexOf("/")?"/":r.slice(r.indexOf("/")),o=t.method?t.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",a="00000000".concat(e.nc).slice(-8),s=function(t,e,r,n,o,i,a){var s=a||T()("".concat(e,":").concat(r,":").concat(n));return t&&"md5-sess"===t.toLowerCase()?T()("".concat(s,":").concat(o,":").concat(i)):s}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),u=T()("".concat(o,":").concat(n)),c=i?T()("".concat(s,":").concat(e.nonce,":").concat(a,":").concat(e.cnonce,":").concat(i,":").concat(u)):T()("".concat(s,":").concat(e.nonce,":").concat(u)),l={username:e.username,realm:e.realm,nonce:e.nonce,uri:n,qop:i,response:c,nc:a,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},f=[];for(var p in l)l[p]&&("qop"===p||"nc"===p||"algorithm"===p?f.push("".concat(p,"=").concat(l[p])):f.push("".concat(p,'="').concat(l[p],'"')));return"Digest ".concat(f.join(", "))}var P=v(146),_=v.n(P);function j(t){return _().decode(t)}var L,R,C="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:"undefined"!=typeof window?window:globalThis,k=C.fetch.bind(C),D=(C.Headers,C.Request),F=C.Response;function M(){for(var t=arguments.length,e=new Array(t),r=0;r0;)o=[e.shift().apply(this,o)];return o[0]}}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]&&arguments[1];if(!t||t.__type__!==U)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((function(n){e.configuration.registry.hasOwnProperty(n)?r&&(e.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):e.configuration.registry[n]=Object.assign({},t.configuration.registry[n])})),t._configuration=this.configuration,this}},{key:"execute",value:function(t){for(var e=this.get(t)||V,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:{}).chain,n=void 0!==r&&r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error("Failed patching '".concat(t,"': Method marked as being final"));if("function"!=typeof e)throw new Error("Failed patching '".concat(t,"': Provided method is not a function"));if(n)this.configuration.registry[t]?this.configuration.registry[t].methods.push(e):this.configuration.registry[t]=B(e);else if(this.isPatched(t)){var o=this.configuration.registry[t].original;this.configuration.registry[t]=Object.assign(B(e),{original:o})}else this.configuration.registry[t]=B(e);return this}},{key:"patchInline",value:function(t,e){this.isPatched(t)||this.patch(t,e);for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o1?r-1:0),o=1;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;){var i=o.shift();n=n?K(n,i):Y(i)}return n}function K(t,e){var r=Y(t);return Object.keys(e).forEach((function(t){r.hasOwnProperty(t)?Array.isArray(e[t])?r[t]=Array.isArray(r[t])?[].concat(W(r[t]),W(e[t])):W(e[t]):"object"===q(e[t])&&e[t]?r[t]="object"===q(r[t])&&r[t]?K(r[t],e[t]):Y(e[t]):r[t]=e[t]:r[t]=e[t]})),r}function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(t.keys());try{for(n.s();!(e=n.n()).done;){var o=e.value;r[o]=t.get(o)}}catch(t){n.e(t)}finally{n.f()}return r}function tt(){for(var t=arguments.length,e=new Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rp?o.push(vt(p)+"-"+vt(h)):h===p&&o.push(vt(h)),p="",a++):t.startsWith("-]",a+1)?(o.push(vt(h+"-")),a+=2):t.startsWith("-",a+1)?(p=h,a+=2):(o.push(vt(h)),a++)}else c=!0,a++}else l=!0,a++}if(f=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Et(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ot(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:{};return ce(e),!(!r.nocomment&&"#"===e.charAt(0))&&new pe(e,r).match(t)};const Lt=jt;var Rt=/^\*+([^+@!?\*\[\(]*)$/,Ct=function(t){return function(e){return!e.startsWith(".")&&e.endsWith(t)}},kt=function(t){return function(e){return e.endsWith(t)}},Dt=function(t){return t=t.toLowerCase(),function(e){return!e.startsWith(".")&&e.toLowerCase().endsWith(t)}},Ft=function(t){return t=t.toLowerCase(),function(e){return e.toLowerCase().endsWith(t)}},Mt=/^\*+\.\*+$/,$t=function(t){return!t.startsWith(".")&&t.includes(".")},Ut=function(t){return"."!==t&&".."!==t&&t.includes(".")},Vt=/^\.\*+$/,Bt=function(t){return"."!==t&&".."!==t&&t.startsWith(".")},Gt=/^\*+$/,zt=function(t){return 0!==t.length&&!t.startsWith(".")},Ht=function(t){return 0!==t.length&&"."!==t&&".."!==t},Wt=/^\?+([^+@!?\*\[\(]*)?$/,Xt=function(t){var e=It(t,2),r=e[0],n=e[1],o=void 0===n?"":n,i=Kt([r]);return o?(o=o.toLowerCase(),function(t){return i(t)&&t.toLowerCase().endsWith(o)}):i},qt=function(t){var e=It(t,2),r=e[0],n=e[1],o=void 0===n?"":n,i=Jt([r]);return o?(o=o.toLowerCase(),function(t){return i(t)&&t.toLowerCase().endsWith(o)}):i},Yt=function(t){var e=It(t,2),r=e[0],n=e[1],o=void 0===n?"":n,i=Jt([r]);return o?function(t){return i(t)&&t.endsWith(o)}:i},Zt=function(t){var e=It(t,2),r=e[0],n=e[1],o=void 0===n?"":n,i=Kt([r]);return o?function(t){return i(t)&&t.endsWith(o)}:i},Kt=function(t){var e=It(t,1)[0].length;return function(t){return t.length===e&&!t.startsWith(".")}},Jt=function(t){var e=It(t,1)[0].length;return function(t){return t.length===e&&"."!==t&&".."!==t}},Qt="object"===(void 0===h?"undefined":Tt(h))&&h?"object"===Tt(h.env)&&h.env&&h.env.__MINIMATCH_TESTING_PLATFORM__||h.platform:"posix";jt.sep="win32"===Qt?"\\":"/";var te=Symbol("globstar **");jt.GLOBSTAR=te;var ee={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},re="[^/]",ne=re+"*?",oe=function(t){return t.split("").reduce((function(t,e){return t[e]=!0,t}),{})},ie=oe("().*{}+?[]^$\\!"),ae=oe("[.(");jt.filter=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){return jt(r,t,e)}};var se=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({},t,e)};jt.defaults=function(t){if(!t||"object"!==Tt(t)||!Object.keys(t).length)return jt;var e=jt;return Object.assign((function(r,n){return e(r,n,se(t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}))}),{Minimatch:function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&St(t,e)}(a,r);var n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Nt(n);if(o){var r=Nt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function a(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return xt(this,a),i.call(this,e,se(t,r))}return At(a,null,[{key:"defaults",value:function(r){return e.defaults(se(t,r)).Minimatch}}]),a}(e.Minimatch),unescape:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.unescape(r,se(t,n))},escape:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.escape(r,se(t,n))},filter:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.filter(r,se(t,n))},defaults:function(r){return e.defaults(se(t,r))},makeRe:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.makeRe(r,se(t,n))},braceExpand:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.braceExpand(r,se(t,n))},match:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.match(r,n,se(t,o))},sep:e.sep,GLOBSTAR:te})};var ue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ce(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:pt(t)};jt.braceExpand=ue;var ce=function(t){if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};jt.makeRe=function(t){return new pe(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).makeRe()},jt.match=function(t,e){var r=new pe(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return t=t.filter((function(t){return r.match(t)})),r.options.nonull&&!t.length&&t.push(e),t};var le=/[?*]|[+@!]\(.*?\)|\[|\]/,fe=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},pe=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xt(this,t),Et(this,"options",void 0),Et(this,"set",void 0),Et(this,"pattern",void 0),Et(this,"windowsPathsNoEscape",void 0),Et(this,"nonegate",void 0),Et(this,"negate",void 0),Et(this,"comment",void 0),Et(this,"empty",void 0),Et(this,"preserveMultipleSlashes",void 0),Et(this,"partial",void 0),Et(this,"globSet",void 0),Et(this,"globParts",void 0),Et(this,"nocase",void 0),Et(this,"isWindows",void 0),Et(this,"platform",void 0),Et(this,"windowsNoMagicRoot",void 0),Et(this,"regexp",void 0),ce(e),r=r||{},this.options=r,this.pattern=e,this.platform=r.platform||Qt,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||!1===r.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==r.windowsNoMagicRoot?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}return At(t,[{key:"hasMagic",value:function(){if(this.options.magicalBraces&&this.set.length>1)return!0;var t,e=wt(this.set);try{for(e.s();!(t=e.n()).done;){var r,n=wt(t.value);try{for(n.s();!(r=n.n()).done;)if("string"!=typeof r.value)return!0}catch(t){n.e(t)}finally{n.f()}}}catch(t){e.e(t)}finally{e.f()}return!1}},{key:"debug",value:function(){}},{key:"make",value:function(){var t=this,e=this.pattern,r=this.options;if(r.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate(),this.globSet=bt(new Set(this.braceExpand())),r.debug&&(this.debug=function(){var t;return(t=console).error.apply(t,arguments)}),this.debug(this.pattern,this.globSet);var n=this.globSet.map((function(e){return t.slashSplit(e)}));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);var o=this.globParts.map((function(e,r,n){if(t.isWindows&&t.windowsNoMagicRoot){var o=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&le.test(e[2])||le.test(e[3])),i=/^[a-z]:/i.test(e[0]);if(o)return[].concat(bt(e.slice(0,4)),bt(e.slice(4).map((function(e){return t.parse(e)}))));if(i)return[e[0]].concat(bt(e.slice(1).map((function(e){return t.parse(e)}))))}return e.map((function(e){return t.parse(e)}))}));if(this.debug(this.pattern,o),this.set=o.filter((function(t){return-1===t.indexOf(!1)})),this.isWindows)for(var i=0;i=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=o>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}},{key:"adjascentGlobstarOptimize",value:function(t){return t.map((function(t){for(var e=-1;-1!==(e=t.indexOf("**",e+1));){for(var r=e;"**"===t[r+1];)r++;r!==e&&t.splice(e,r-e)}return t}))}},{key:"levelOneOptimize",value:function(t){return t.map((function(t){return 0===(t=t.reduce((function(t,e){var r=t[t.length-1];return"**"===e&&"**"===r?t:".."===e&&r&&".."!==r&&"."!==r&&"**"!==r?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t}))}},{key:"levelTwoFileOptimize",value:function(t){Array.isArray(t)||(t=this.slashSplit(t));var e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(var r=1;ri&&o.splice(i+1,a-i);var s=o[i+1],u=o[i+2],c=o[i+3];if(".."===s&&u&&"."!==u&&".."!==u&&c&&"."!==c&&".."!==c){e=!0,o.splice(i,1);var l=o.slice(0);l[i]="**",t.push(l),i--}}if(!this.preserveMultipleSlashes){for(var f=1;f2&&void 0!==arguments[2]&&arguments[2],n=0,o=0,i=[],a="";n2&&void 0!==arguments[2]&&arguments[2],n=this.options;if(this.isWindows){var o=""===t[0]&&""===t[1]&&"?"===t[2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3]),i=""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]);if(o&&i){var a=t[3],s=e[3];a.toLowerCase()===s.toLowerCase()&&(t[3]=s)}else if(i&&"string"==typeof t[0]){var u=e[3],c=t[0];u.toLowerCase()===c.toLowerCase()&&(e[3]=c,e=e.slice(3))}else if(o&&"string"==typeof e[0]){var l=t[3];l.toLowerCase()===e[0].toLowerCase()&&(e[0]=l,t=t.slice(3))}}var f=this.options.optimizationLevel;(void 0===f?1:f)>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var p=0,h=0,d=t.length,g=e.length;p>> no match, partial?",t,y,e,b),y!==d))}var E=void 0;if("string"==typeof v?(E=m===v,this.debug("string match",v,m,E)):(E=v.test(m),this.debug("pattern match",v,m,E)),!E)return!1}if(p===d&&h===g)return!0;if(p===d)return r;if(h===g)return p===d-1&&""===t[p];throw new Error("wtf?")}},{key:"braceExpand",value:function(){return ue(this.pattern,this.options)}},{key:"parse",value:function(t){var e=this;ce(t);var r,n=this.options;if("**"===t)return te;if(""===t)return"";var o=null;(r=t.match(Gt))?o=n.dot?Ht:zt:(r=t.match(Rt))?o=(n.nocase?n.dot?Ft:Dt:n.dot?kt:Ct)(r[1]):(r=t.match(Wt))?o=(n.nocase?n.dot?qt:Xt:n.dot?Yt:Zt)(r):(r=t.match(Mt))?o=n.dot?Ut:$t:(r=t.match(Vt))&&(o=Bt);for(var i,a,s="",u=!1,c=!1,l=[],f=[],p=!1,h=!1,d="."===t.charAt(0),g=n.dot||d,v=function(t){return"."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)"},m=function(){if(p){switch(p){case"*":s+=ne,u=!0;break;case"?":s+=re,u=!0;break;default:s+="\\"+p}e.debug("clearStateChar %j %j",p,s),p=!1}},y=0;y-1;_--){for(var j=f[_],L=s.slice(0,j.reStart),R=s.slice(j.reStart,j.reEnd-8),C=s.slice(j.reEnd),k=s.slice(j.reEnd-8,j.reEnd)+C,D=L.split(")").length,F=L.split("(").length-D,M=C,$=0;$1&&void 0!==arguments[1]?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var r=this.options;this.isWindows&&(t=t.split("\\").join("/"));var n=this.slashSplit(t);this.debug(this.pattern,"split",n);var o=this.set;this.debug(this.pattern,"set",o);var i=n[n.length-1];if(!i)for(var a=n.length-2;!i&&a>=0;a--)i=n[a];for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:"","Invalid response: ").concat(t.status," ").concat(t.statusText));return e.status=t.status,e.response=t,e}function de(t,e){var r=e.status;if(401===r&&t.digest)return e;if(r>=400)throw he(e);return e}function ge(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?{data:e,headers:t.headers?Q(t.headers):{},status:t.status,statusText:t.statusText}:e}jt.Minimatch=pe,jt.escape=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).windowsPathsNoEscape;return void 0!==e&&e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},jt.unescape=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).windowsPathsNoEscape;return void 0!==e&&e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};var ve,me=function(t){return function(){for(var e=[],r=0;r3&&void 0!==arguments[3]?arguments[3]:{},a=ft({url:S(t.remoteURL,x(e)),method:"COPY",headers:{Destination:S(t.remoteURL,x(r))}},t,i);return o=function(e){de(t,e)},(n=lt(a))&&n.then||(n=Promise.resolve(n)),o?n.then(o):n})),ye=v(5),be=v(421),we=v.n(be);function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:ve.Original,n=we().get(t,e);return"array"===r&&!1===Array.isArray(n)?[n]:"object"===r&&Array.isArray(n)?n[0]:n}function Ae(t){return new Promise((function(e){e(function(t){var e=t.multistatus;if(""===e)return{multistatus:{response:[]}};if(!e)throw new Error("Invalid response: No root multistatus found");var r={multistatus:Array.isArray(e)?e[0]:e};return we().set(r,"multistatus.response",Oe(r,"multistatus.response",ve.Array)),we().set(r,"multistatus.response",we().get(r,"multistatus.response").map((function(t){return function(t){var e=Object.assign({},t);return e.status?we().set(e,"status",Oe(e,"status",ve.Object)):(we().set(e,"propstat",Oe(e,"propstat",ve.Object)),we().set(e,"propstat.prop",Oe(e,"propstat.prop",ve.Object))),e}(t)}))),r}(new ye.XMLParser({removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1}}).parse(t)))}))}function Se(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t.getlastmodified,a=void 0===i?null:i,s=t.getcontentlength,u=void 0===s?"0":s,c=t.resourcetype,l=void 0===c?null:c,f=t.getcontenttype,p=void 0===f?null:f,h=t.getetag,d=void 0===h?null:h,g=l&&"object"===xe(l)&&void 0!==l.collection?"directory":"file",v=(r=e,(n=document.createElement("textarea")).innerHTML=r,n.value),m={filename:v,basename:b().basename(v),lastmod:a,size:parseInt(u,10),type:g,etag:"string"==typeof d?d.replace(/"/g,""):null};return"file"===g&&(m.mime=p&&"string"==typeof p?p.split(";")[0]:""),o&&(m.props=t),m}function Ne(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=null;try{t.multistatus.response[0].propstat&&(n=t.multistatus.response[0])}catch(t){}if(!n)throw new Error("Failed getting item stat: bad response");var o,i=n.propstat,a=i.prop,s=function(t){if(Array.isArray(t))return t}(o=i.status.split(" ",3))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),3!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(o)||function(t,e){if(t){if("string"==typeof t)return Ee(t,3);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(t,3):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=(s[0],s[1]),c=s[2],l=parseInt(u,10);if(l>=400){var f=new Error("Invalid response: ".concat(l," ").concat(c));throw f.status=l,f}return Se(a,A(e),r)}function Te(t){switch(t.toString()){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(t,10)}}function Ie(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}!function(t){t.Array="array",t.Object="object",t.Original="original"}(ve||(ve={}));var Pe=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=r.details,o=void 0!==n&&n,i=ft({url:S(t.remoteURL,x(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,r);return Ie(lt(i),(function(r){return de(t,r),Ie(r.text(),(function(t){return Ie(Ae(t),(function(t){var n=Ne(t,e,o);return ge(r,n,o)}))}))}))}));function _e(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}function je(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=function(t){if(!t||"/"===t)return[];var e=t,r=[];do{r.push(e),e=b().dirname(e)}while(e&&"/"!==e);return r}(A(e));n.sort((function(t,e){return t.length>e.length?1:e.length>t.length?-1:0}));var o=!1;return function(t,e,r){if("function"==typeof t[Ce]){var n,o,i,a=t[Ce]();if(function t(r){try{for(;!(n=a.next()).done;)if((r=e(n.value))&&r.then){if(!Fe(r))return void r.then(t,i||(i=ke.bind(null,o=new De,2)));r=r.v}o?ke(o,1,r):o=r}catch(t){ke(o||(o=new De),2,t)}}(),a.return){var s=function(t){try{n.done||a.return()}catch(t){}return t};if(o&&o.then)return o.then(s,(function(t){throw s(t)}));s()}return o}if(!("length"in t))throw new TypeError("Object is not iterable");for(var u=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:{};if(!0===r.recursive)return Ve(t,e,r);var n,o=ft({url:S(t.remoteURL,(n=x(e),n.endsWith("/")?n:n+"/")),method:"MKCOL"},t,r);return _e(lt(o),(function(e){de(t,e)}))})),Ge=v(227),ze=v.n(Ge);function He(t){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},He(t)}var We=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n={};if("object"===He(r.range)&&"number"==typeof r.range.start){var o="bytes=".concat(r.range.start,"-");"number"==typeof r.range.end&&(o="".concat(o).concat(r.range.end)),n.Range=o}var i,a,s=ft({url:S(t.remoteURL,x(e)),method:"GET",headers:n},t,r);return a=function(e){if(de(t,e),n.Range&&206!==e.status){var o=new Error("Invalid response code for partial request: ".concat(e.status));throw o.status=e.status,o}return r.callback&&setTimeout((function(){r.callback(e)}),0),e.body},(i=lt(s))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i})),Xe=function(){},qe=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i=ft({url:S(t.remoteURL,x(e)),method:"DELETE"},t,o);return n=function(e){de(t,e)},(r=lt(i))&&r.then||(r=Promise.resolve(r)),n?r.then(n):r})),Ze=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{};return function(n,o){try{var i=(a=Pe(t,e,r),s=function(){return!0},a&&a.then||(a=Promise.resolve(a)),s?a.then(s):a)}catch(t){return o(t)}var a,s;return i&&i.then?i.then(void 0,o):i}(0,(function(t){if(404===t.status)return!1;throw t}))}));function Ke(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}var Je=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=ft({url:S(t.remoteURL,x(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},t,r);return Ke(lt(n),(function(n){return de(t,n),Ke(n.text(),(function(o){if(!o)throw new Error("Failed parsing directory contents: Empty response");return Ke(Ae(o),(function(o){var i=O(e),a=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=b().join(e,"/"),a=t.multistatus.response.map((function(t){var e=function(t){try{return t.replace(/^https?:\/\/[^\/]+/,"")}catch(t){throw new d(t,"Failed normalising HREF")}}(t.href);return Se(t.propstat.prop,"/"===i?decodeURIComponent(A(e)):A(b().relative(decodeURIComponent(i),decodeURIComponent(e))),n)}));return o?a:a.filter((function(t){return t.basename&&("file"===t.type||t.filename!==r.replace(/\/$/,""))}))}(o,O(t.remoteBasePath||t.remotePath),i,r.details,r.includeSelf);return r.glob&&(a=function(t,e){return t.filter((function(t){return Lt(t.filename,e,{matchBase:!0})}))}(a,r.glob)),ge(n,a,r.details)}))}))}))}));function Qe(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=ft({url:S(t.remoteURL,x(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[or]},t,r);return er(lt(n),(function(e){return de(t,e),er(e.text(),(function(t){return ge(e,t,r.details)}))}))}));function er(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}var rr=Qe((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ft({url:S(t.remoteURL,x(e)),method:"GET"},t,r);return er(lt(n),(function(e){var n;return de(t,e),function(t,e){var r=t();return r&&r.then?r.then(e):e()}((function(){return er(e.arrayBuffer(),(function(t){n=t}))}),(function(){return ge(e,n,r.details)}))}))})),nr=Qe((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.format,o=void 0===n?"binary":n;if("binary"!==o&&"text"!==o)throw new d({info:{code:R.InvalidOutputFormat}},"Invalid output format: ".concat(o));return"text"===o?tr(t,e,r):rr(t,e,r)})),or=function(t){return t};function ir(t){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(t)}function ar(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ur(t){return new ye.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(cr({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:t}}},"d"))}function cr(t,e){var r=function(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{},o=ft({url:S(t.remoteURL,x(e)),method:"UNLOCK",headers:{"Lock-Token":r}},t,n);return lr(lt(o),(function(e){if(de(t,e),204!==e.status&&200!==e.status)throw he(e)}))})),hr=fr((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.refreshToken,o=r.timeout,i={Accept:"text/plain,application/xml",Timeout:void 0===o?dr:o};n&&(i.If=n);var a=ft({url:S(t.remoteURL,x(e)),method:"LOCK",headers:i,data:ur(t.contactHref)},t,r);return lr(lt(a),(function(e){return de(t,e),lr(e.text(),(function(t){var r,n=(r=t,new ye.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(r)),o=we().get(n,"prop.lockdiscovery.activelock.locktoken.href"),i=we().get(n,"prop.lockdiscovery.activelock.timeout");if(!o)throw he(e,"No lock token received: ");return{token:o,serverTimeout:i}}))}))})),dr="Infinite, Second-4100000000";function gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:{},r=e.path||"/",n=ft({url:S(t.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},t,e);return vr(lt(n),(function(r){return de(t,r),vr(r.text(),(function(t){return vr(Ae(t),(function(t){var n=function(t){try{var e=(o=t.multistatus.response,function(t){if(Array.isArray(t))return t}(o)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),1!==i.length);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(o)||function(t,e){if(t){if("string"==typeof t)return gr(t,1);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gr(t,1):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].propstat.prop,r=e["quota-used-bytes"],n=e["quota-available-bytes"];return void 0!==r&&void 0!==n?{used:parseInt(r,10),available:Te(n)}:null}catch(t){}var o;return null}(t);return ge(r,n,e.details)}))}))}))}));function yr(t,e,r){return r?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}var br=function(t){return function(){for(var e=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{},n=r.details,o=void 0!==n&&n,i=ft({url:S(t.remoteURL,x(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":t.headers["Content-Type"]||"application/xml; charset=utf-8"}},t,r);return yr(lt(i),(function(r){return de(t,r),yr(r.text(),(function(t){return yr(Ae(t),(function(t){var n=function(t,e,r){var n={truncated:!1,results:[]};return n.truncated=t.multistatus.response.some((function(t){var r,n;return"507"===(null===(r=(t.status||(null===(n=t.propstat)||void 0===n?void 0:n.status)).split(" ",3))||void 0===r?void 0:r[1])&&t.href.replace(/\/$/,"").endsWith(x(e).replace(/\/$/,""))})),t.multistatus.response.forEach((function(t){if(void 0!==t.propstat){var e=t.href.split("/").map(decodeURIComponent).join("/");n.results.push(Se(t.propstat.prop,e,r))}})),n}(t,e,o);return ge(r,n,o)}))}))}))})),wr=function(t){return function(){for(var e=[],r=0;r3&&void 0!==arguments[3]?arguments[3]:{},a=ft({url:S(t.remoteURL,x(e)),method:"MOVE",headers:{Destination:S(t.remoteURL,x(r))}},t,i);return o=function(e){de(t,e)},(n=lt(a))&&n.then||(n=Promise.resolve(n)),o?n.then(o):n})),Er=v(918),xr=function(t){return function(){for(var e=[],r=0;r3&&void 0!==arguments[3]?arguments[3]:{},o=n.contentLength,i=void 0===o||o,a=n.overwrite,s=void 0===a||a,u={"Content-Type":"application/octet-stream"};!1===i||(u["Content-Length"]="".concat("number"==typeof i?i:function(t){if(nt(t))return t.byteLength;if(ot(t))return t.length;if("string"==typeof t)return(0,Er.k)(t);throw new d({info:{code:R.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r))),s||(u["If-None-Match"]="*");var c,l,f=ft({url:S(t.remoteURL,x(e)),method:"PUT",headers:u,data:r},t,n);return l=function(e){try{de(t,e)}catch(t){var r=t;if(412!==r.status||s)throw r;return!1}return!0},(c=lt(f))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c})),Or="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Ar(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.authType,o=void 0===n?null:n,i=r.remoteBasePath,a=r.contactHref,s=void 0===a?Or:a,u=r.ha1,c=r.headers,l=void 0===c?{}:c,f=r.httpAgent,p=r.httpsAgent,h=r.password,g=r.token,v=r.username,m=r.withCredentials,y=o;y||(y=v||h?L.Password:L.None);var b,w,E={authType:y,remoteBasePath:i,contactHref:s,ha1:u,headers:Object.assign({},l),httpAgent:f,httpsAgent:p,password:h,remotePath:(b=t,w=new(e())(b).pathname,w.length<=0&&(w="/"),A(w)),remoteURL:t,token:g,username:v,withCredentials:m};return function(t,e,r,n,o){switch(t.authType){case L.Digest:t.digest=function(t,e,r){return{username:t,password:e,ha1:r,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,r,o);break;case L.None:break;case L.Password:t.headers.Authorization=function(t,e){var r,n=(r="".concat(t,":").concat(e),_().encode(r));return"Basic ".concat(n)}(e,r);break;case L.Token:t.headers.Authorization="".concat((i=n).token_type," ").concat(i.access_token);break;default:throw new d({info:{code:R.InvalidAuthType}},"Invalid auth type: ".concat(t.authType))}var i}(E,v,h,g,u),{copyFile:function(t,e,r){return me(E,t,e,r)},createDirectory:function(t,e){return Be(E,t,e)},createReadStream:function(t,e){return function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=new(0,ze().PassThrough);return We(t,e,r).then((function(t){t.pipe(n)})).catch((function(t){n.emit("error",t)})),n}(E,t,e)},createWriteStream:function(t,e,r){return function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xe,o=new(0,ze().PassThrough),i={};!1===r.overwrite&&(i["If-None-Match"]="*");var a=ft({url:S(t.remoteURL,x(e)),method:"PUT",headers:i,data:o,maxRedirects:0},t,r);return lt(a).then((function(e){return de(t,e)})).then((function(t){setTimeout((function(){n(t)}),0)})).catch((function(t){o.emit("error",t)})),o}(E,t,e,r)},customRequest:function(t,e){return qe(E,t,e)},deleteFile:function(t,e){return Ye(E,t,e)},exists:function(t,e){return Ze(E,t,e)},getDirectoryContents:function(t,e){return Je(E,t,e)},getFileContents:function(t,e){return nr(E,t,e)},getFileDownloadLink:function(t){return function(t,e){var r=S(t.remoteURL,x(e)),n=/^https:/i.test(r)?"https":"http";switch(t.authType){case L.None:break;case L.Password:var o=j(t.headers.Authorization.replace(/^Basic /i,"").trim());r=r.replace(/^https?:\/\//,"".concat(n,"://").concat(o,"@"));break;default:throw new d({info:{code:R.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(t.authType))}return r}(E,t)},getFileUploadLink:function(t){return function(t,e){var r="".concat(S(t.remoteURL,x(e)),"?Content-Type=application/octet-stream"),n=/^https:/i.test(r)?"https":"http";switch(t.authType){case L.None:break;case L.Password:var o=j(t.headers.Authorization.replace(/^Basic /i,"").trim());r=r.replace(/^https?:\/\//,"".concat(n,"://").concat(o,"@"));break;default:throw new d({info:{code:R.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(t.authType))}return r}(E,t)},getHeaders:function(){return Object.assign({},E.headers)},getQuota:function(t){return mr(E,t)},lock:function(t,e){return hr(E,t,e)},moveFile:function(t,e,r){return wr(E,t,e,r)},putFileContents:function(t,e,r){return xr(E,t,e,r)},search:function(t,e){return br(E,t,e)},setHeaders:function(t){E.headers=Object.assign({},t)},stat:function(t,e){return Pe(E,t,e)},unlock:function(t,e,r){return pr(E,t,e,r)}}}})();const y=(t=>null===t?(0,f.IY)().setApp("files").build():(0,f.IY)().setApp("files").setUid(t.uid).build())(function(){if(void 0!==l)return l;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=c(t,"data-user");return null===e?(l=null,l):(l={uid:e,displayName:c(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},l)}());var b=(t=>(t.DEFAULT="default",t.HIDDEN="hidden",t))(b||{});class w{_action;constructor(t){this.validateAction(t),this._action=t}get id(){return this._action.id}get displayName(){return this._action.displayName}get title(){return this._action.title}get iconSvgInline(){return this._action.iconSvgInline}get enabled(){return this._action.enabled}get exec(){return this._action.exec}get execBatch(){return this._action.execBatch}get order(){return this._action.order}get parent(){return this._action.parent}get default(){return this._action.default}get inline(){return this._action.inline}get renderInline(){return this._action.renderInline}validateAction(t){if(!t.id||"string"!=typeof t.id)throw new Error("Invalid id");if(!t.displayName||"function"!=typeof t.displayName)throw new Error("Invalid displayName function");if("title"in t&&"function"!=typeof t.title)throw new Error("Invalid title function");if(!t.iconSvgInline||"function"!=typeof t.iconSvgInline)throw new Error("Invalid iconSvgInline function");if(!t.exec||"function"!=typeof t.exec)throw new Error("Invalid exec function");if("enabled"in t&&"function"!=typeof t.enabled)throw new Error("Invalid enabled function");if("execBatch"in t&&"function"!=typeof t.execBatch)throw new Error("Invalid execBatch function");if("order"in t&&"number"!=typeof t.order)throw new Error("Invalid order");if("parent"in t&&"string"!=typeof t.parent)throw new Error("Invalid parent");if(t.default&&!Object.values(b).includes(t.default))throw new Error("Invalid default");if("inline"in t&&"function"!=typeof t.inline)throw new Error("Invalid inline function");if("renderInline"in t&&"function"!=typeof t.renderInline)throw new Error("Invalid renderInline function")}}const E=function(t){typeof window._nc_fileactions>"u"&&(window._nc_fileactions=[],y.debug("FileActions initialized")),window._nc_fileactions.find((e=>e.id===t.id))?y.error(`FileAction ${t.id} already registered`,{action:t}):window._nc_fileactions.push(t)};var x=(t=>(t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL",t))(x||{});(0,p.c)("dav");var O={};!function(t){const e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",n=new RegExp("^"+r+"$");t.isExist=function(t){return typeof t<"u"},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,r){if(e){const n=Object.keys(e),o=n.length;for(let i=0;i"u")},t.getAllMatches=function(t,e){const r=[];let n=e.exec(t);for(;n;){const o=[];o.startIndex=e.lastIndex-n[0].length;const i=n.length;for(let t=0;t!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t}};A.buildOptions=function(t){return Object.assign({},S,t)},A.defaultOptions=S,!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,O.nameRegexp),new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var N={};function T(t,e,r){let n;const o={};for(let i=0;i0&&(o[e.textNodeName]=n):void 0!==n&&(o[e.textNodeName]=n),o}function I(t){const e=Object.keys(t);for(let t=0;t`,i=!1;continue}if(u===e.commentPropName){o+=n+`\x3c!--${s[u][0][e.textNodeName]}--\x3e`,i=!0;continue}if("?"===u[0]){const t=k(s[":@"],e),r="?xml"===u?"":n;let a=s[u][0][e.textNodeName];a=0!==a.length?" "+a:"",o+=r+`<${u}${a}${t}?>`,i=!0;continue}let l=n;""!==l&&(l+=e.indentBy);const f=n+`<${u}${k(s[":@"],e)}`,p=R(s[u],e,c,l);-1!==e.unpairedTags.indexOf(u)?e.suppressUnpairedNode?o+=f+">":o+=f+"/>":p&&0!==p.length||!e.suppressEmptyNode?p&&p.endsWith(">")?o+=f+`>${p}${n}`:(o+=f+">",p&&""!==n&&(p.includes("/>")||p.includes("`):o+=f+"/>",i=!0}return o}function C(t){const e=Object.keys(t);for(let r=0;r0&&e.processEntities)for(let r=0;r0&&(r="\n"),R(t,e,"",r)},U={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function V(t){this.options=Object.assign({},U,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=z),this.processTextOrObjNode=B,this.options.format?(this.indentate=G,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function B(t,e,r){const n=this.j2x(t,r+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,n.attrStr,r):this.buildObjectNode(n.val,e,n.attrStr,r)}function G(t){return this.options.indentBy.repeat(t)}function z(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}V.prototype.build=function(t){return this.options.preserveOrder?M(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)},V.prototype.j2x=function(t,e){let r="",n="";for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(typeof t[o]>"u")this.isAttribute(o)&&(n+="");else if(null===t[o])this.isAttribute(o)?n+="":"?"===o[0]?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)n+=this.buildTextValNode(t[o],o,"",e);else if("object"!=typeof t[o]){const i=this.isAttribute(o);if(i)r+=this.buildAttrPairStr(i,""+t[o]);else if(o===this.options.textNodeName){let e=this.options.tagValueProcessor(o,""+t[o]);n+=this.replaceEntitiesValue(e)}else n+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){const r=t[o].length;let i="";for(let a=0;a"u"||(null===r?"?"===o[0]?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar:"object"==typeof r?this.options.oneListGroup?i+=this.j2x(r,e+1).val:i+=this.processTextOrObjNode(r,o,e):i+=this.buildTextValNode(r,o,"",e))}this.options.oneListGroup&&(i=this.buildObjectNode(i,o,"",e)),n+=i}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const e=Object.keys(t[o]),n=e.length;for(let i=0;i"+t+o}},V.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(n)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),""===o?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"0&&this.options.processEntities)for(let e=0;e"View in PhotoSphereViewer",iconSvgInline:()=>"",order:-1,default:b.DEFAULT,enabled:t=>{const e=t.every((t=>{const e=this._getDavXmpMeta(t);return 0!=(t.permissions&x.READ)&&t.mime===this._photoShpereMimeType&&e&&1===e.usePanoramaViewer}));return e&&!PhotosphereViewerFunctions.isWebGl2Supported()?(PhotosphereViewerFunctions.notify("Your browser doesn't support WebGL/WebGL2. Please enable WebGL/WebGL2 support in the browser settings.","error"),!1):e}}},_getVideoAction:function(){return{id:"photosphereviewer-video",exec:this._actionHandlerVideo.bind(this),displayName:()=>"View in 360° viewer",iconSvgInline:()=>"",order:1e3,enabled:t=>t.every((t=>0!=(t.permissions&x.READ)&&"video/mp4"===t.mime))}},_getDirectorySharePathFromCurrentLocation:function(){var t=new URLSearchParams(document.location.search).get("path");return t||(t="/"),t},_getFileUrl(t){var r=encodeURIComponent(t.name);if(!this._isDirectoryShare)return"/"==(n=t.path)&&(n=""),`${e.getRootPath()}/remote.php/webdav${n}/${r}`;var n=encodeURIComponent(this._getDirectorySharePathFromCurrentLocation());return`${e.getRootPath()}/index.php/s/${this._sharingToken}/download?path=${n}&files=${r}`},_getDavXmpMeta:function(t){return t.attributes["files-photospheres-xmp-metadata"]},_showImage:function(e,r,n,o,i){var a=e.source,s={url:a,filename:o};i&&(s=t.extend(s,i)),this.showFrame(a,o,i,"image");const u=[window.OCP.Files.Router.name,window.OCP.Files.Router.params,window.OCP.Files.Router.query,!0];this._onClose=()=>window.OCP.Files.Router.goToRoute(...u),window.OCP.Files.Router.goToRoute(null,{view:r.id,fileid:e.fileid},{dir:n,openfile:!0},!0)},_showImageLegacy:function(r,n,o){const i=this._getFileObject(r,n);var a=this._getFileUrl(i),s={url:a,filename:r};o&&(s=t.extend(s,o)),this.showFrame(a,r,o,"image");const u=location.search.replace(/^\?/,"");this._onClose=()=>e.Util.History.pushState(u);const c=n.fileInfoModel.get("id"),l=e.Util.History.parseUrlQuery(),f=l.dir;delete l.dir,delete l.fileid,l.openfile=c;const p="dir="+encodePath(f)+"&"+e.buildQueryString(l);e.Util.History.pushState(p)},_listenForCloseMessage:function(t){"closePhotosphereViewer"===t.data&&this._closeAndRemoveListener()},_closeAndRemoveListener:function(){this.hideFrame(),window.removeEventListener("message",this._listenForCloseMessage,!1)},showFrame:function(r,n,o,i){var a,s=this,u="";switch(i){case"image":u=e.generateUrl("apps/files_photospheres"),a={panorama:r,caption:n};break;case"video":u=e.generateUrl("apps/files_photospheres/video"),a={url:r,caption:n}}if("image"==i&&o&&o.containsCroppingConfig){var c={panoData:o.croppingConfig};a=t.extend(a,c)}this._frameContainer=t(`