@ansible/ansible-ui-framework 2.4.2574 → 2.4.2576
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -2
- package/index.umd.cjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -43474,7 +43474,7 @@ function P2e(e, t, n) {
|
|
43474
43474
|
return Array.isArray(t) ? t.includes(d) : t === d;
|
43475
43475
|
}, a = async (f) => {
|
43476
43476
|
const d = f.getVersionId(), h = await n.provideMarkerData(f);
|
43477
|
-
|
43477
|
+
!f.isDisposed() && d === f.getVersionId() && i(f) && e.editor.setModelMarkers(f, n.owner, h ?? []);
|
43478
43478
|
}, o = (f) => {
|
43479
43479
|
if (!i(f))
|
43480
43480
|
return;
|
@@ -44650,7 +44650,10 @@ function tSe(e) {
|
|
44650
44650
|
}
|
44651
44651
|
var nSe = function(e, t) {
|
44652
44652
|
if (e && t) {
|
44653
|
-
var n = Array.isArray(t) ? t : t.split(",")
|
44653
|
+
var n = Array.isArray(t) ? t : t.split(",");
|
44654
|
+
if (n.length === 0)
|
44655
|
+
return !0;
|
44656
|
+
var r = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
|
44654
44657
|
return n.some(function(o) {
|
44655
44658
|
var s = o.trim().toLowerCase();
|
44656
44659
|
return s.charAt(0) === "." ? r.toLowerCase().endsWith(s) : s.endsWith("/*") ? a === s.replace(/\/.*$/, "") : i === s;
|
package/index.umd.cjs
CHANGED
@@ -501,7 +501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
501
501
|
`+e.slice(o+1):l+=e.slice(i),l.slice(1)}function dxe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Fu(e,i),r=cn[n],!r&&Nu(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||rxe(n);return t}function hxe(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Wi(e,t,s,!1,!1)||typeof s>"u"&&Wi(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function sj(e,t,n,r){var i="",a=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(Wi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Wi(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=kb(e,t)),e.dump&&Mu===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function pxe(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,l,u,c;for(o=0,s=a.length;o<s;o+=1)c="",r!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[o],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),Wi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wi(e,t,u,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function gxe(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,l,u,c,f,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new _n("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)d="",(!r||i!=="")&&(d+=kb(e,t)),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),Wi(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Mu===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=kb(e,t)),Wi(e,t+1,c,!0,f)&&(e.dump&&Mu===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=a,e.dump=i||"{}"}function lj(e,t,n){var r,i,a,o,s,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,UP.call(s.represent)==="[object Function]")r=s.represent(t,l);else if(HP.call(s.represent,l))r=s.represent[l](t,l);else throw new _n("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Wi(e,t,n,r,i,a,o){e.tag=null,e.dump=n,lj(e,n,!1)||lj(e,n,!0);var s=UP.call(e.dump),l=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",f,d;if(c&&(f=e.duplicates.indexOf(n),d=f!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(i=!1),d&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(c&&d&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(gxe(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(pxe(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?sj(e,t-1,e.dump,i):sj(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(hxe(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&cxe(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new _n("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function mxe(e,t){var n=[],r=[],i,a;for(Pb(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function Pb(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Pb(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Pb(e[r[i]],t,n)}function vxe(e,t){t=t||{};var n=new axe(t);n.noRefs||mxe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Wi(n,0,r,!0,!0)?n.dump+`
|
502
502
|
`:""}var yxe=vxe,bxe={dump:yxe};function jb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var xxe=en,_xe=cP,wxe=pP,Sxe=bP,Oxe=xP,Cxe=wb,Exe=VP.load,Txe=VP.loadAll,kxe=bxe.dump,Db=_n,Axe={binary:CP,float:yP,map:hP,null:gP,pairs:TP,set:kP,timestamp:SP,bool:mP,int:vP,merge:OP,omap:EP,seq:dP,str:fP},Pxe=jb("safeLoad","load"),jxe=jb("safeLoadAll","loadAll"),Dxe=jb("safeDump","dump"),uj={Type:xxe,Schema:_xe,FAILSAFE_SCHEMA:wxe,JSON_SCHEMA:Sxe,CORE_SCHEMA:Oxe,DEFAULT_SCHEMA:Cxe,load:Exe,loadAll:Txe,dump:kxe,YAMLException:Db,types:Axe,safeLoad:Pxe,safeLoadAll:jxe,safeDump:Dxe},cj;(()=>{var e={470:i=>{function a(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,u){for(var c,f="",d=0,h=-1,p=0,m=0;m<=l.length;++m){if(m<l.length)c=l.charCodeAt(m);else{if(c===47)break;c=47}if(c===47){if(!(h===m-1||p===1))if(h!==m-1&&p===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",d=0):d=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),h=m,p=0;continue}}else if(f.length===2||f.length===1){f="",d=0,h=m,p=0;continue}}u&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+l.slice(h+1,m):f=l.slice(h+1,m),d=m-h-1;h=m,p=0}else c===46&&p!==-1?++p:p=-1}return f}var s={resolve:function(){for(var l,u="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var d;f>=0?d=arguments[f]:(l===void 0&&(l=process.cwd()),d=l),a(d),d.length!==0&&(u=d+"/"+u,c=d.charCodeAt(0)===47)}return u=o(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(a(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=o(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return a(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u<arguments.length;++u){var c=arguments[u];a(c),c.length>0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":s.normalize(l)},relative:function(l,u){if(a(l),a(u),l===u||(l=s.resolve(l))===(u=s.resolve(u)))return"";for(var c=1;c<l.length&&l.charCodeAt(c)===47;++c);for(var f=l.length,d=f-c,h=1;h<u.length&&u.charCodeAt(h)===47;++h);for(var p=u.length-h,m=d<p?d:p,v=-1,y=0;y<=m;++y){if(y===m){if(p>m){if(u.charCodeAt(h+y)===47)return u.slice(h+y+1);if(y===0)return u.slice(h+y)}else d>m&&(l.charCodeAt(c+y)===47?v=y:y===0&&(v=0));break}var b=l.charCodeAt(c+y);if(b!==u.charCodeAt(h+y))break;b===47&&(v=y)}var _="";for(y=c+v+1;y<=f;++y)y!==f&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+u.slice(h+v):(h+=v,u.charCodeAt(h)===47&&++h,u.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(a(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,f=-1,d=!0,h=l.length-1;h>=1;--h)if((u=l.charCodeAt(h))===47){if(!d){f=h;break}}else d=!1;return f===-1?c?"/":".":c&&f===1?"//":l.slice(0,f)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');a(l);var c,f=0,d=-1,h=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var p=u.length-1,m=-1;for(c=l.length-1;c>=0;--c){var v=l.charCodeAt(c);if(v===47){if(!h){f=c+1;break}}else m===-1&&(h=!1,m=c+1),p>=0&&(v===u.charCodeAt(p)?--p==-1&&(d=c):(p=-1,d=m))}return f===d?d=m:d===-1&&(d=l.length),l.slice(f,d)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!h){f=c+1;break}}else d===-1&&(h=!1,d=c+1);return d===-1?"":l.slice(f,d)},extname:function(l){a(l);for(var u=-1,c=0,f=-1,d=!0,h=0,p=l.length-1;p>=0;--p){var m=l.charCodeAt(p);if(m!==47)f===-1&&(d=!1,f=p+1),m===46?u===-1?u=p:h!==1&&(h=1):u!==-1&&(h=-1);else if(!d){c=p+1;break}}return u===-1||f===-1||h===0||h===1&&u===f-1&&u===c+1?"":l.slice(u,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(u,c){var f=c.dir||c.root,d=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+d:f+"/"+d:d}(0,l)},parse:function(l){a(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,f=l.charCodeAt(0),d=f===47;d?(u.root="/",c=1):c=0;for(var h=-1,p=0,m=-1,v=!0,y=l.length-1,b=0;y>=c;--y)if((f=l.charCodeAt(y))!==47)m===-1&&(v=!1,m=y+1),f===46?h===-1?h=y:b!==1&&(b=1):h!==-1&&(b=-1);else if(!v){p=y+1;break}return h===-1||m===-1||b===0||b===1&&h===m-1&&h===p+1?m!==-1&&(u.base=u.name=p===0&&d?l.slice(1,m):l.slice(p,m)):(p===0&&d?(u.name=l.slice(1,h),u.base=l.slice(1,m)):(u.name=l.slice(p,h),u.base=l.slice(p,m)),u.ext=l.slice(h,m)),p>0?u.dir=l.slice(0,p-1):d&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s}},t={};function n(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(i,a)=>{for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})},n.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>I}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(A,j){if(!A.scheme&&j)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!a.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!o.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{constructor(j,P,$,M,B,R=!1){li(this,"scheme");li(this,"authority");li(this,"path");li(this,"query");li(this,"fragment");typeof j=="object"?(this.scheme=j.scheme||u,this.authority=j.authority||u,this.path=j.path||u,this.query=j.query||u,this.fragment=j.fragment||u):(this.scheme=function(W,V){return W||V?W:"file"}(j,R),this.authority=P||u,this.path=function(W,V){switch(W){case"https":case"http":case"file":V?V[0]!==c&&(V=c+V):V=c}return V}(this.scheme,$||u),this.query=M||u,this.fragment=B||u,l(this,R))}static isUri(j){return j instanceof d||!!j&&typeof j.authority=="string"&&typeof j.fragment=="string"&&typeof j.path=="string"&&typeof j.query=="string"&&typeof j.scheme=="string"&&typeof j.fsPath=="string"&&typeof j.with=="function"&&typeof j.toString=="function"}get fsPath(){return b(this)}with(j){if(!j)return this;let{scheme:P,authority:$,path:M,query:B,fragment:R}=j;return P===void 0?P=this.scheme:P===null&&(P=u),$===void 0?$=this.authority:$===null&&($=u),M===void 0?M=this.path:M===null&&(M=u),B===void 0?B=this.query:B===null&&(B=u),R===void 0?R=this.fragment:R===null&&(R=u),P===this.scheme&&$===this.authority&&M===this.path&&B===this.query&&R===this.fragment?this:new p(P,$,M,B,R)}static parse(j,P=!1){const $=f.exec(j);return $?new p($[2]||u,O($[4]||u),O($[5]||u),O($[7]||u),O($[9]||u),P):new p(u,u,u,u,u)}static file(j){let P=u;if(i&&(j=j.replace(/\\/g,c)),j[0]===c&&j[1]===c){const $=j.indexOf(c,2);$===-1?(P=j.substring(2),j=c):(P=j.substring(2,$),j=j.substring($)||c)}return new p("file",P,j,u,u)}static from(j){const P=new p(j.scheme,j.authority,j.path,j.query,j.fragment);return l(P,!0),P}toString(j=!1){return _(this,j)}toJSON(){return this}static revive(j){if(j){if(j instanceof d)return j;{const P=new p(j);return P._formatted=j.external,P._fsPath=j._sep===h?j.fsPath:null,P}}return j}}const h=i?1:void 0;class p extends d{constructor(){super(...arguments);li(this,"_formatted",null);li(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=b(this)),this._fsPath}toString(P=!1){return P?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=h),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(A,j,P){let $,M=-1;for(let B=0;B<A.length;B++){const R=A.charCodeAt(B);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||j&&R===47||P&&R===91||P&&R===93||P&&R===58)M!==-1&&($+=encodeURIComponent(A.substring(M,B)),M=-1),$!==void 0&&($+=A.charAt(B));else{$===void 0&&($=A.substr(0,B));const W=m[R];W!==void 0?(M!==-1&&($+=encodeURIComponent(A.substring(M,B)),M=-1),$+=W):M===-1&&(M=B)}}return M!==-1&&($+=encodeURIComponent(A.substring(M))),$!==void 0?$:A}function y(A){let j;for(let P=0;P<A.length;P++){const $=A.charCodeAt(P);$===35||$===63?(j===void 0&&(j=A.substr(0,P)),j+=m[$]):j!==void 0&&(j+=A[P])}return j!==void 0?j:A}function b(A,j){let P;return P=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(P=P.replace(/\//g,"\\")),P}function _(A,j){const P=j?y:v;let $="",{scheme:M,authority:B,path:R,query:W,fragment:V}=A;if(M&&($+=M,$+=":"),(B||M==="file")&&($+=c,$+=c),B){let F=B.indexOf("@");if(F!==-1){const H=B.substr(0,F);B=B.substr(F+1),F=H.lastIndexOf(":"),F===-1?$+=P(H,!1,!1):($+=P(H.substr(0,F),!1,!1),$+=":",$+=P(H.substr(F+1),!1,!0)),$+="@"}B=B.toLowerCase(),F=B.lastIndexOf(":"),F===-1?$+=P(B,!1,!0):($+=P(B.substr(0,F),!1,!0),$+=B.substr(F))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){const F=R.charCodeAt(1);F>=65&&F<=90&&(R=`/${String.fromCharCode(F+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){const F=R.charCodeAt(0);F>=65&&F<=90&&(R=`${String.fromCharCode(F+32)}:${R.substr(2)}`)}$+=P(R,!0,!1)}return W&&($+="?",$+=P(W,!1,!1)),V&&($+="#",$+=j?V:v(V,!1,!1)),$}function S(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+S(A.substr(3)):A}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(A){return A.match(w)?A.replace(w,j=>S(j)):A}var C=n(470);const k=C.posix||C,D="/";var I;(function(A){A.joinPath=function(j,...P){return j.with({path:k.join(j.path,...P)})},A.resolvePath=function(j,...P){let $=j.path,M=!1;$[0]!==D&&($=D+$,M=!0);let B=k.resolve($,...P);return M&&B[0]===D&&!j.authority&&(B=B.substring(1)),j.with({path:B})},A.dirname=function(j){if(j.path.length===0||j.path===D)return j;let P=k.dirname(j.path);return P.length===1&&P.charCodeAt(0)===46&&(P=""),j.with({path:P})},A.basename=function(j){return k.basename(j.path)},A.extname=function(j){return k.extname(j.path)}})(I||(I={}))})(),cj=r})();const{URI:Vi,Utils:Mwe}=cj;function $xe(e){return e===8?1:e===4?2:e===2?3:4}function Ixe(e){return e===1?8:e===2?4:e===3?2:1}function Mxe(e){return e}function Lxe(e){return e}function $b(e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function fn(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function Nxe(e){return{location:{range:$b(e),uri:String(e.resource)},message:e.message}}function Fxe(e){return{...fn(e.location.range),message:e.message,resource:Vi.parse(e.location.uri)}}function Rxe(e){const t={message:e.message,range:$b(e),severity:$xe(e.severity)};return typeof e.code=="string"?t.code=e.code:e.code!=null&&(t.code=e.code.value,t.codeDescription={href:String(e.code.target)}),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(Nxe)),e.tags&&(t.tags=e.tags.map(Mxe)),e.source!=null&&(t.source=e.source),t}function fj(e,t){var n;const r={...fn(e.range),message:e.message,severity:e.severity?Ixe(e.severity):(n=void 0)!==null&&n!==void 0?n:8};return e.code!=null&&(r.code=e.codeDescription==null?String(e.code):{value:String(e.code),target:Vi.parse(e.codeDescription.href)}),e.relatedInformation&&(r.relatedInformation=e.relatedInformation.map(Fxe)),e.tags&&(r.tags=e.tags.map(Lxe)),e.source!=null&&(r.source=e.source),r}function Ib(e){return{range:fn(e.range),text:e.newText}}function Bxe(e){const t={};return e.ignoreIfExists!=null&&(t.ignoreIfExists=e.ignoreIfExists),e.ignoreIfNotExists!=null&&(t.ignoreIfNotExists=e.ignoreIfNotExists),e.overwrite!=null&&(t.overwrite=e.overwrite),e.recursive!=null&&(t.recursive=e.recursive),t}function zxe(e){const t=e.kind==="create"?{newResource:Vi.parse(e.uri)}:e.kind==="delete"?{oldResource:Vi.parse(e.uri)}:{oldResource:Vi.parse(e.oldUri),newResource:Vi.parse(e.newUri)};return e.options&&(t.options=Bxe(e.options)),t}function dj(e,t,n){return{resource:Vi.parse(t),versionId:n,textEdit:Ib(e)}}function Wxe(e){var t;const n=[];if(e.changes)for(const[r,i]of Object.entries(e.changes))for(const a of i)n.push(dj(a,r));if(e.documentChanges)for(const r of e.documentChanges)if("textDocument"in r)for(const i of r.edits)n.push(dj(i,r.textDocument.uri,(t=r.textDocument.version)!==null&&t!==void 0?t:void 0));else n.push(zxe(r));return{edits:n}}function Vxe(e,t){const n={title:e.title,isPreferred:e.isPreferred};return e.diagnostics&&(n.diagnostics=e.diagnostics.map(r=>fj(r))),e.disabled&&(n.disabled=e.disabled.reason),e.edit&&(n.edit=Wxe(e.edit)),e.isPreferred!=null&&(n.isPreferred=e.isPreferred),e.kind&&(n.kind=e.kind),n}function Lwe(e){return e}function Uxe(e){const t={diagnostics:e.markers.map(Rxe),triggerKind:e.trigger};return e.only!=null&&(t.only=[e.only]),t}function Hxe(e){const t={title:e.title,id:e.command};return e.arguments&&(t.arguments=e.arguments),t}function Gxe(e){return e===1?18:e===2?0:e===3?1:e===4?2:e===5?3:e===6?4:e===7?5:e===8?7:e===9?8:e===10?9:e===11?12:e===12?13:e===13?15:e===14?17:e===15?27:e===16?19:e===17?20:e===18?21:e===19?23:e===20?16:e===21?14:e===22?6:e===23?10:e===24?11:24}function qxe(e){return e}function hj(e){return{value:e.value}}function Yxe(e){return{range:fn(e.range),text:e.newText}}function Kxe(e){return"range"in e?fn(e.range):"insert"in e&&"replace"in e?{insert:fn(e.insert),replace:fn(e.replace)}:fn(e)}function Xxe(e,t){var n,r,i,a,o;const s=(n=t.itemDefaults)!==null&&n!==void 0?n:{},l=(r=e.textEdit)!==null&&r!==void 0?r:s.editRange,u=(i=e.commitCharacters)!==null&&i!==void 0?i:s.commitCharacters,c=(a=e.insertTextFormat)!==null&&a!==void 0?a:s.insertTextFormat,f=(o=e.insertTextMode)!==null&&o!==void 0?o:s.insertTextMode;let d=e.insertText,h;l?(h=Kxe(l),"newText"in l&&(d=l.newText)):h={...t.range};const p={insertText:d??e.label,kind:e.kind==null?18:Gxe(e.kind),label:e.label,range:h};return e.additionalTextEdits&&(p.additionalTextEdits=e.additionalTextEdits.map(Yxe)),e.command&&(p.command=Hxe(e.command)),u&&(p.commitCharacters=u),e.detail!=null&&(p.detail=e.detail),typeof e.documentation=="string"?p.documentation=e.documentation:e.documentation&&(p.documentation=hj(e.documentation)),e.filterText!=null&&(p.filterText=e.filterText),c===2?p.insertTextRules=4:f===2&&(p.insertTextRules=1),e.preselect!=null&&(p.preselect=e.preselect),e.sortText!=null&&(p.sortText=e.sortText),e.tags&&(p.tags=e.tags.map(qxe)),p}function Zxe(e,t){return{incomplete:!!e.isIncomplete,suggestions:e.items.map(n=>Xxe(n,{range:t.range,itemDefaults:e.itemDefaults}))}}function Jxe(e){return e===1?0:e===2?1:e===3?2:e===4?3:e===5?4:e===6?5:e===7?6:e===8?7:e===9?8:e===10?9:e===11?10:e===12?11:e===13?12:e===14?13:e===15?14:e===16?15:e===17?16:e===18?17:e===19?18:e===20?19:e===21?20:e===22?21:e===23?22:e===24?23:e===25?24:25}function Qxe(e){return e}function pj(e){var t,n,r;const i={detail:(t=e.detail)!==null&&t!==void 0?t:"",kind:Jxe(e.kind),name:e.name,range:fn(e.range),selectionRange:fn(e.selectionRange),tags:(r=(n=e.tags)===null||n===void 0?void 0:n.map(Qxe))!==null&&r!==void 0?r:[]};return e.children&&(i.children=e.children.map(pj)),i}function e5e(e){const t={start:e.startLine+1,end:e.endLine+1};return e.kind!=null&&(t.kind={value:e.kind}),t}function t5e(e){return{insertSpaces:e.insertSpaces,tabSize:e.tabSize}}function gj(e){return typeof e=="string"?{value:e}:{value:`\`\`\`${e.language}
|
503
503
|
${e.value}
|
504
|
-
\`\`\``}}function n5e(e){return typeof e=="string"||"language"in e?[gj(e)]:Array.isArray(e)?e.map(gj):[hj(e)]}function r5e(e){const t={contents:n5e(e.contents)};return e.range&&(t.range=fn(e.range)),t}function Ru(e){return{character:e.column-1,line:e.lineNumber-1}}function i5e(e){const t={range:fn(e.range)};return e.tooltip!=null&&(t.tooltip=e.tooltip),e.target!=null&&(t.url=Vi.parse(e.target)),t}function a5e(e){const t={range:fn(e.targetRange),targetSelectionRange:fn(e.targetSelectionRange),uri:Vi.parse(e.targetUri)};return e.originSelectionRange&&(t.originSelectionRange=fn(e.originSelectionRange)),t}function o5e(e){const t=[];let n=e;for(;n;)t.push({range:fn(n.range)}),n=n.parent;return t}function s5e(e,t,n){const r=new Map,i=f=>{const d=f.getLanguageId();return Array.isArray(t)?t.includes(d):t===d},a=async f=>{const d=f.getVersionId(),h=await n.provideMarkerData(f)
|
504
|
+
\`\`\``}}function n5e(e){return typeof e=="string"||"language"in e?[gj(e)]:Array.isArray(e)?e.map(gj):[hj(e)]}function r5e(e){const t={contents:n5e(e.contents)};return e.range&&(t.range=fn(e.range)),t}function Ru(e){return{character:e.column-1,line:e.lineNumber-1}}function i5e(e){const t={range:fn(e.range)};return e.tooltip!=null&&(t.tooltip=e.tooltip),e.target!=null&&(t.url=Vi.parse(e.target)),t}function a5e(e){const t={range:fn(e.targetRange),targetSelectionRange:fn(e.targetSelectionRange),uri:Vi.parse(e.targetUri)};return e.originSelectionRange&&(t.originSelectionRange=fn(e.originSelectionRange)),t}function o5e(e){const t=[];let n=e;for(;n;)t.push({range:fn(n.range)}),n=n.parent;return t}function s5e(e,t,n){const r=new Map,i=f=>{const d=f.getLanguageId();return Array.isArray(t)?t.includes(d):t===d},a=async f=>{const d=f.getVersionId(),h=await n.provideMarkerData(f);!f.isDisposed()&&d===f.getVersionId()&&i(f)&&e.editor.setModelMarkers(f,n.owner,h??[])},o=f=>{if(!i(f))return;let d;const h=f.onDidChangeContent(()=>{clearTimeout(d),d=setTimeout(()=>{a(f)},500)});r.set(f,{dispose(){clearTimeout(d),h.dispose()}}),a(f)},s=f=>{e.editor.setModelMarkers(f,n.owner,[]);const d=r.get(f);d&&(d.dispose(),r.delete(f))},l=e.editor.onDidCreateModel(o),u=e.editor.onWillDisposeModel(f=>{var d;s(f),(d=n.doReset)==null||d.call(n,f)}),c=e.editor.onDidChangeModelLanguage(({model:f})=>{var d;s(f),o(f),(d=n.doReset)==null||d.call(n,f)});for(const f of e.editor.getModels())o(f);return{dispose(){for(const f of r.keys())s(f);l.dispose(),u.dispose(),c.dispose()},async revalidate(){await Promise.all(e.editor.getModels().map(a))}}}function l5e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,s,l=0,u=!1;const c=()=>{s&&(s.dispose(),s=void 0)},f=setInterval(()=>{if(!s)return;Date.now()-l>o&&c()},r);return{dispose(){u=!0,clearInterval(f),c()},getWorker(...d){if(u)throw new Error("Worker manager has been disposed");return l=Date.now(),s||(s=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),s.withSyncedResources(d)},updateCreateData(d){n=d,c()}}}function u5e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=l5e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n}),i=s5e(e,"yaml",{owner:"yaml",async provideMarkerData(o){const l=await(await r.getWorker(o.uri)).doValidation(String(o.uri));return l==null?void 0:l.map(u=>fj(u))},async doReset(o){await(await r.getWorker(o.uri)).resetSchema(String(o.uri))}}),a=[r,i,e.languages.registerCompletionItemProvider("yaml",{triggerCharacters:[" ",":"],async provideCompletionItems(o,s){const l=o.getWordUntilPosition(s),c=await(await r.getWorker(o.uri)).doComplete(String(o.uri),Ru(s));if(c)return Zxe(c,{range:{startLineNumber:s.lineNumber,startColumn:l.startColumn,endLineNumber:s.lineNumber,endColumn:l.endColumn}})}}),e.languages.registerHoverProvider("yaml",{async provideHover(o,s){const u=await(await r.getWorker(o.uri)).doHover(String(o.uri),Ru(s));if(u)return r5e(u)}}),e.languages.registerDefinitionProvider("yaml",{async provideDefinition(o,s){const u=await(await r.getWorker(o.uri)).doDefinition(String(o.uri),Ru(s));return u==null?void 0:u.map(a5e)}}),e.languages.registerDocumentSymbolProvider("yaml",{displayName:"yaml",async provideDocumentSymbols(o){const l=await(await r.getWorker(o.uri)).findDocumentSymbols(String(o.uri));return l==null?void 0:l.map(pj)}}),e.languages.registerDocumentFormattingEditProvider("yaml",{displayName:"yaml",async provideDocumentFormattingEdits(o){const l=await(await r.getWorker(o.uri)).format(String(o.uri));return l==null?void 0:l.map(Ib)}}),e.languages.registerLinkProvider("yaml",{async provideLinks(o){const l=await(await r.getWorker(o.uri)).findLinks(String(o.uri));if(l)return{links:l.map(i5e)}}}),e.languages.registerCodeActionProvider("yaml",{async provideCodeActions(o,s,l){const c=await(await r.getWorker(o.uri)).getCodeAction(String(o.uri),$b(s),Uxe(l));if(c)return{actions:c.map(f=>Vxe(f)),dispose(){}}}}),e.languages.registerFoldingRangeProvider("yaml",{async provideFoldingRanges(o){const l=await(await r.getWorker(o.uri)).getFoldingRanges(String(o.uri));return l==null?void 0:l.map(e5e)}}),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),e.languages.registerOnTypeFormattingEditProvider("yaml",{autoFormatTriggerCharacters:[`
|
505
505
|
`],async provideOnTypeFormattingEdits(o,s,l,u){const f=await(await r.getWorker(o.uri)).doDocumentOnTypeFormatting(String(o.uri),Ru(s),l,t5e(u));return f==null?void 0:f.map(Ib)}}),e.languages.registerSelectionRangeProvider("yaml",{async provideSelectionRanges(o,s){const u=await(await r.getWorker(o.uri)).getSelectionRanges(String(o.uri),s.map(Ru));return u==null?void 0:u.map(o5e)}})];return{dispose(){for(const o of a)o.dispose()},async update(o){r.updateCreateData(Object.assign(n,o)),await i.revalidate()}}}function c5e(e){const t=di(e),{onFocus:n,onBlur:r,language:i,value:a,onChange:o,setError:s,isReadOnly:l}=e,[u,c]=x.useState(!1),f=x.useRef(null),d=x.useRef(null),h=x.useCallback(b=>{if(!f.current)return;f.current.style.minHeight=`${mj+bj}px`;const _=b.split(`
|
506
506
|
`).length;f.current.style.height=`${_*mj+bj}px`},[]),p=x.useRef({});x.useEffect(()=>{if(d.current){const b=Ki.editor.create(d.current,{lineNumbers:e.lineNumbers?"on":"off",lineDecorationsWidth:e.lineNumbers?void 0:0,theme:"data-editor-dark",padding:{top:vj,bottom:yj},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0,scrollbar:{alwaysConsumeMouseWheel:!1}});return p.current.editor=b,()=>b.dispose()}},[e.lineNumbers]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&(b.onDidFocusEditorText(()=>n==null?void 0:n()),b.onDidBlurEditorText(()=>r==null?void 0:r()))},[n,r]),x.useEffect(()=>{var w;const b=(w=p==null?void 0:p.current)==null?void 0:w.editor;if(!b)return;const _=b.getModel();if(!_)return;const S=_.onDidChangeContent(()=>{const O=b.getValue()??"";o(O),h(O)});return()=>S.dispose()},[o,h]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.getValue()!==a&&(b.setValue(a),h(a))},[a,h]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.updateOptions({readOnly:l})},[l]);const[m,v]=x.useState(!1);x.useEffect(()=>{var w;const b=(w=p==null?void 0:p.current)==null?void 0:w.editor;if(!b)return;const _=b.getModel();if(!_)return;Ki.editor.setModelLanguage(_,i);const S=Ki.editor.onDidChangeMarkers(()=>{const O=Ki.editor.getModelMarkers({owner:_.getLanguageId(),resource:_.uri});v(O.length>0),s(O.length>0?O.map(C=>C.message).join(`
|
507
507
|
`):void 0)});return()=>S.dispose()},[i,s]),Wo(d,()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&(b.layout(),c(!0))});const y=Ra();return x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.updateOptions({theme:y.activeTheme==="dark"?"data-editor-dark":"data-editor-light"})},[y.activeTheme]),g.jsx(f5e,{className:e.className,"aria-invalid":m?"true":void 0,ref:f,children:g.jsx(d5e,{id:t,"data-cy":t,ref:d,className:"data-editor","aria-disabled":u?"false":"true"})})}const f5e=ke.div`
|
@@ -515,7 +515,7 @@ object-assign
|
|
515
515
|
(c) Sindre Sorhus
|
516
516
|
@license MIT
|
517
517
|
*/var Rb,xj;function p5e(){if(xj)return Rb;xj=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rb=i()?Object.assign:function(a,o){for(var s,l=r(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)n.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Rb}var Bb,_j;function zb(){if(_j)return Bb;_j=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bb=e,Bb}var Wb,wj;function Sj(){return wj||(wj=1,Wb=Function.call.bind(Object.prototype.hasOwnProperty)),Wb}var Vb,Oj;function g5e(){if(Oj)return Vb;Oj=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zb(),n={},r=Sj();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(r(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,l,s,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Vb=i,Vb}var Ub,Cj;function m5e(){if(Cj)return Ub;Cj=1;var e=Pg,t=p5e(),n=zb(),r=Sj(),i=g5e(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ub=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(F){var H=F&&(u&&F[u]||F[c]);if(typeof H=="function")return H}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:_,element:S(),elementType:w(),instanceOf:O,node:I(),objectOf:k,oneOf:C,oneOfType:D,shape:j,exact:P};function p(F,H){return F===H?F!==0||1/F===1/H:F!==F&&H!==H}function m(F,H){this.message=F,this.data=H&&typeof H=="object"?H:{},this.stack=""}m.prototype=Error.prototype;function v(F){if(process.env.NODE_ENV!=="production")var H={},J=0;function Z(X,ie,ue,fe,K,re,ge){if(fe=fe||d,re=re||ue,ge!==n){if(l){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=fe+":"+ue;!H[Ee]&&J<3&&(a("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+fe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[Ee]=!0,J++)}}return ie[ue]==null?X?ie[ue]===null?new m("The "+K+" `"+re+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new m("The "+K+" `"+re+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:F(ie,ue,fe,K,re)}var ee=Z.bind(null,!1);return ee.isRequired=Z.bind(null,!0),ee}function y(F){function H(J,Z,ee,X,ie,ue){var fe=J[Z],K=B(fe);if(K!==F){var re=R(fe);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+re+"` supplied to `"+ee+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return v(H)}function b(){return v(o)}function _(F){function H(J,Z,ee,X,ie){if(typeof F!="function")return new m("Property `"+ie+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var ue=J[Z];if(!Array.isArray(ue)){var fe=B(ue);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected an array."))}for(var K=0;K<ue.length;K++){var re=F(ue,K,ee,X,ie+"["+K+"]",n);if(re instanceof Error)return re}return null}return v(H)}function S(){function F(H,J,Z,ee,X){var ie=H[J];if(!s(ie)){var ue=B(ie);return new m("Invalid "+ee+" `"+X+"` of type "+("`"+ue+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return v(F)}function w(){function F(H,J,Z,ee,X){var ie=H[J];if(!e.isValidElementType(ie)){var ue=B(ie);return new m("Invalid "+ee+" `"+X+"` of type "+("`"+ue+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return v(F)}function O(F){function H(J,Z,ee,X,ie){if(!(J[Z]instanceof F)){var ue=F.name||d,fe=V(J[Z]);return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected ")+("instance of `"+ue+"`."))}return null}return v(H)}function C(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function H(J,Z,ee,X,ie){for(var ue=J[Z],fe=0;fe<F.length;fe++)if(p(ue,F[fe]))return null;var K=JSON.stringify(F,function(ge,z){var Ee=R(z);return Ee==="symbol"?String(z):z});return new m("Invalid "+X+" `"+ie+"` of value `"+String(ue)+"` "+("supplied to `"+ee+"`, expected one of "+K+"."))}return v(H)}function k(F){function H(J,Z,ee,X,ie){if(typeof F!="function")return new m("Property `"+ie+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type "+("`"+fe+"` supplied to `"+ee+"`, expected an object."));for(var K in ue)if(r(ue,K)){var re=F(ue,K,ee,X,ie+"."+K,n);if(re instanceof Error)return re}return null}return v(H)}function D(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<F.length;H++){var J=F[H];if(typeof J!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+H+"."),o}function Z(ee,X,ie,ue,fe){for(var K=[],re=0;re<F.length;re++){var ge=F[re],z=ge(ee,X,ie,ue,fe,n);if(z==null)return null;z.data&&r(z.data,"expectedType")&&K.push(z.data.expectedType)}var Ee=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new m("Invalid "+ue+" `"+fe+"` supplied to "+("`"+ie+"`"+Ee+"."))}return v(Z)}function I(){function F(H,J,Z,ee,X){return $(H[J])?null:new m("Invalid "+ee+" `"+X+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return v(F)}function A(F,H,J,Z,ee){return new m((F||"React class")+": "+H+" type `"+J+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function j(F){function H(J,Z,ee,X,ie){var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type `"+fe+"` "+("supplied to `"+ee+"`, expected `object`."));for(var K in F){var re=F[K];if(typeof re!="function")return A(ee,X,ie,K,R(re));var ge=re(ue,K,ee,X,ie+"."+K,n);if(ge)return ge}return null}return v(H)}function P(F){function H(J,Z,ee,X,ie){var ue=J[Z],fe=B(ue);if(fe!=="object")return new m("Invalid "+X+" `"+ie+"` of type `"+fe+"` "+("supplied to `"+ee+"`, expected `object`."));var K=t({},J[Z],F);for(var re in K){var ge=F[re];if(r(F,re)&&typeof ge!="function")return A(ee,X,ie,re,R(ge));if(!ge)return new m("Invalid "+X+" `"+ie+"` key `"+re+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(J[Z],null," ")+`
|
518
|
-
Valid keys: `+JSON.stringify(Object.keys(F),null," "));var z=ge(ue,re,ee,X,ie+"."+re,n);if(z)return z}return null}return v(H)}function $(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every($);if(F===null||s(F))return!0;var H=f(F);if(H){var J=H.call(F),Z;if(H!==F.entries){for(;!(Z=J.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=J.next()).done;){var ee=Z.value;if(ee&&!$(ee[1]))return!1}}else return!1;return!0;default:return!1}}function M(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":M(H,F)?"symbol":H}function R(F){if(typeof F>"u"||F===null)return""+F;var H=B(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function W(F){var H=R(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function V(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ub}var Hb,Ej;function v5e(){if(Ej)return Hb;Ej=1;var e=zb();function t(){}function n(){}return n.resetWarningCache=t,Hb=function(){function r(o,s,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hb}if(process.env.NODE_ENV!=="production"){var y5e=Pg,b5e=!0;Fb.exports=m5e()(y5e.isElement,b5e)}else Fb.exports=v5e()();var x5e=Fb.exports;const ut=Ne(x5e);var _5e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Bu(e,t){var n=w5e(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function w5e(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=_5e.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var S5e=[".DS_Store","Thumbs.db"];function O5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return rp(e)&&C5e(e.dataTransfer)?[2,A5e(e.dataTransfer,e.type)]:E5e(e)?[2,T5e(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,k5e(e)]:[2,[]]})})}function C5e(e){return rp(e)}function E5e(e){return rp(e)&&rp(e.target)}function rp(e){return typeof e=="object"&&e!==null}function T5e(e){return Gb(e.target.files).map(function(t){return Bu(t)})}function k5e(e){return Vo(this,void 0,void 0,function(){var t;return Uo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Bu(r)})]}})})}function A5e(e,t){return Vo(this,void 0,void 0,function(){var n,r;return Uo(this,function(i){switch(i.label){case 0:return e.items?(n=Gb(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(P5e))]):[3,2];case 1:return r=i.sent(),[2,Tj(kj(r))];case 2:return[2,Tj(Gb(e.files).map(function(a){return Bu(a)}))]}})})}function Tj(e){return e.filter(function(t){return S5e.indexOf(t.name)===-1})}function Gb(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function P5e(e){if(typeof e.webkitGetAsEntry!="function")return Aj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Pj(t):Aj(e)}function kj(e){return e.reduce(function(t,n){return x_(x_([],b_(t),!1),b_(Array.isArray(n)?kj(n):[n]),!1)},[])}function Aj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Bu(t);return Promise.resolve(n)}function j5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,e.isDirectory?Pj(e):D5e(e)]})})}function Pj(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(s){return Vo(o,void 0,void 0,function(){var l,u,c;return Uo(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=f.sent(),n(l),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(j5e)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function D5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Bu(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var $5e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",")
|
518
|
+
Valid keys: `+JSON.stringify(Object.keys(F),null," "));var z=ge(ue,re,ee,X,ie+"."+re,n);if(z)return z}return null}return v(H)}function $(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every($);if(F===null||s(F))return!0;var H=f(F);if(H){var J=H.call(F),Z;if(H!==F.entries){for(;!(Z=J.next()).done;)if(!$(Z.value))return!1}else for(;!(Z=J.next()).done;){var ee=Z.value;if(ee&&!$(ee[1]))return!1}}else return!1;return!0;default:return!1}}function M(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":M(H,F)?"symbol":H}function R(F){if(typeof F>"u"||F===null)return""+F;var H=B(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function W(F){var H=R(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function V(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ub}var Hb,Ej;function v5e(){if(Ej)return Hb;Ej=1;var e=zb();function t(){}function n(){}return n.resetWarningCache=t,Hb=function(){function r(o,s,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},Hb}if(process.env.NODE_ENV!=="production"){var y5e=Pg,b5e=!0;Fb.exports=m5e()(y5e.isElement,b5e)}else Fb.exports=v5e()();var x5e=Fb.exports;const ut=Ne(x5e);var _5e=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Bu(e,t){var n=w5e(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function w5e(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=_5e.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var S5e=[".DS_Store","Thumbs.db"];function O5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return rp(e)&&C5e(e.dataTransfer)?[2,A5e(e.dataTransfer,e.type)]:E5e(e)?[2,T5e(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,k5e(e)]:[2,[]]})})}function C5e(e){return rp(e)}function E5e(e){return rp(e)&&rp(e.target)}function rp(e){return typeof e=="object"&&e!==null}function T5e(e){return Gb(e.target.files).map(function(t){return Bu(t)})}function k5e(e){return Vo(this,void 0,void 0,function(){var t;return Uo(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Bu(r)})]}})})}function A5e(e,t){return Vo(this,void 0,void 0,function(){var n,r;return Uo(this,function(i){switch(i.label){case 0:return e.items?(n=Gb(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(P5e))]):[3,2];case 1:return r=i.sent(),[2,Tj(kj(r))];case 2:return[2,Tj(Gb(e.files).map(function(a){return Bu(a)}))]}})})}function Tj(e){return e.filter(function(t){return S5e.indexOf(t.name)===-1})}function Gb(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function P5e(e){if(typeof e.webkitGetAsEntry!="function")return Aj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Pj(t):Aj(e)}function kj(e){return e.reduce(function(t,n){return x_(x_([],b_(t),!1),b_(Array.isArray(n)?kj(n):[n]),!1)},[])}function Aj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Bu(t);return Promise.resolve(n)}function j5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,e.isDirectory?Pj(e):D5e(e)]})})}function Pj(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(s){return Vo(o,void 0,void 0,function(){var l,u,c;return Uo(this,function(f){switch(f.label){case 0:if(s.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=f.sent(),n(l),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(s.map(j5e)),i.push(c),a(),f.label=6;case 6:return[2]}})})},function(s){r(s)})}a()})}function D5e(e){return Vo(this,void 0,void 0,function(){return Uo(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Bu(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var $5e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?a===s.replace(/\/.*$/,""):i===s})}return!0};function jj(e){return L5e(e)||M5e(e)||Mj(e)||I5e()}function I5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
519
519
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L5e(e){if(Array.isArray(e))return qb(e)}function Dj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dj(Object(n),!0).forEach(function(r){Ij(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){return R5e(e)||F5e(e,t)||Mj(e,t)||N5e()}function N5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
520
520
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mj(e,t){if(e){if(typeof e=="string")return qb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qb(e,t)}}function qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F5e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function R5e(e){if(Array.isArray(e))return e}var B5e="file-invalid-type",z5e="file-too-large",W5e="file-too-small",V5e="too-many-files",U5e=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:B5e,message:"File type must be ".concat(n)}},Lj=function(t){return{code:z5e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Nj=function(t){return{code:W5e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},H5e={code:V5e,message:"Too many files"};function Fj(e,t){var n=e.type==="application/x-moz-file"||$5e(e,t);return[n,n?null:U5e(t)]}function Rj(e,t,n){if(yo(e.size))if(yo(t)&&yo(n)){if(e.size>n)return[!1,Lj(n)];if(e.size<t)return[!1,Nj(t)]}else{if(yo(t)&&e.size<t)return[!1,Nj(t)];if(yo(n)&&e.size>n)return[!1,Lj(n)]}return[!0,null]}function yo(e){return e!=null}function G5e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,s=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(l){var u=Fj(l,n),c=zu(u,1),f=c[0],d=Rj(l,r,i),h=zu(d,1),p=h[0],m=s?s(l):null;return f&&p&&!m})}function ip(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ap(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Bj(e){e.preventDefault()}function q5e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Y5e(e){return e.indexOf("Edge/")!==-1}function K5e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return q5e(e)||Y5e(e)}function oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return!ip(r)&&s&&s.apply(void 0,[r].concat(a)),ip(r)})}}function X5e(){return"showOpenFilePicker"in window}function Z5e(e){if(yo(e)){var t=Object.entries(e).filter(function(n){var r=zu(n,2),i=r[0],a=r[1],o=!0;return zj(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(Wj))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=zu(r,2),a=i[0],o=i[1];return $j($j({},n),{},Ij({},a,o))},{});return[{description:"Files",accept:t}]}return e}function J5e(e){if(yo(e))return Object.entries(e).reduce(function(t,n){var r=zu(n,2),i=r[0],a=r[1];return[].concat(jj(t),[i],jj(a))},[]).filter(function(t){return zj(t)||Wj(t)}).join(",")}function Q5e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function e_e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function zj(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Wj(e){return/^.*\.[\w]+$/.test(e)}var t_e=["children"],n_e=["open"],r_e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],i_e=["refKey","onChange","onClick"];function a_e(e){return l_e(e)||s_e(e)||Vj(e)||o_e()}function o_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
521
521
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l_e(e){if(Array.isArray(e))return Kb(e)}function Yb(e,t){return f_e(e)||c_e(e,t)||Vj(e,t)||u_e()}function u_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|