@eodash/eodash 5.0.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +26 -0
  2. package/bin/app.js +153 -0
  3. package/dist/.gitkeep +0 -0
  4. package/dist/assets/Dashboard-4233cc52.css +1 -0
  5. package/dist/assets/Dashboard-d7d438a6.js +1 -0
  6. package/dist/assets/DashboardLayout-5ab6c4a5.js +29 -0
  7. package/dist/assets/DashboardLayout-739135c5.css +1 -0
  8. package/dist/assets/DynamicWebComponent-1b7b527a.js +1 -0
  9. package/dist/assets/Footer-0fe1887a.css +1 -0
  10. package/dist/assets/Footer-7e1ca735.js +1 -0
  11. package/dist/assets/Header-9cac598d.css +1 -0
  12. package/dist/assets/Header-ae17296c.js +1 -0
  13. package/dist/assets/IframeWrapper-b2c05ffd.js +1 -0
  14. package/dist/assets/MobileLayout-1b3cb89b.js +1 -0
  15. package/dist/assets/MobileLayout-ad647682.css +1 -0
  16. package/dist/assets/VMain-d6216866.css +1 -0
  17. package/dist/assets/VMain-f6b3f120.js +1 -0
  18. package/dist/assets/WidgetsContainer-cdad3d50.js +1 -0
  19. package/dist/assets/color-6039ab34.js +1 -0
  20. package/dist/assets/eox-chart-3b122ba4.js +142 -0
  21. package/dist/assets/eox-itemfilter-a63da0da.js +981 -0
  22. package/dist/assets/eox-jsonform-98c2af62.js +239 -0
  23. package/dist/assets/eox-layercontrol-f5e35702.js +1126 -0
  24. package/dist/assets/eox-map-7f82b0d4.js +178 -0
  25. package/dist/assets/eox-stacinfo-65a8d8f3.js +388 -0
  26. package/dist/assets/eox-timecontrol-4be63aa2.js +237 -0
  27. package/dist/assets/index-52c9d989.js +34 -0
  28. package/dist/assets/index-5d2400e5.css +5 -0
  29. package/dist/assets/materialdesignicons-webfont-48d3eec6.woff +0 -0
  30. package/dist/assets/materialdesignicons-webfont-861aea05.eot +0 -0
  31. package/dist/assets/materialdesignicons-webfont-bd725a7a.ttf +0 -0
  32. package/dist/assets/materialdesignicons-webfont-e52d60f6.woff2 +0 -0
  33. package/dist/assets/ssrBoot-0b8754a9.css +1 -0
  34. package/dist/assets/ssrBoot-d383eb61.js +1 -0
  35. package/dist/assets/webfontloader-523643f5.js +1 -0
  36. package/dist/index.html +17 -0
  37. package/dist/types/index.d.ts +124 -0
  38. package/package.json +67 -0
@@ -0,0 +1,239 @@
1
+ var ul=Object.defineProperty,hl=(G,g,O)=>g in G?ul(G,g,{enumerable:!0,configurable:!0,writable:!0,value:O}):G[g]=O,pl=(G,g,O)=>(hl(G,typeof g!="symbol"?g+"":g,O),O),ca=(G,g,O)=>{if(!g.has(G))throw TypeError("Cannot "+O)},Ri=(G,g,O)=>(ca(G,g,"read from private field"),O?O.call(G):g.get(G)),lo=(G,g,O)=>{if(g.has(G))throw TypeError("Cannot add the same private member more than once");g instanceof WeakSet?g.add(G):g.set(G,O)},Ha=(G,g,O,L)=>(ca(G,g,"write to private field"),L?L.call(G,O):g.set(G,O),O),za=(G,g,O)=>(ca(G,g,"access private method"),O),Ua={exports:{}};/*! For license information please see jsoneditor.js.LICENSE.txt */(function(G,g){(function(O,L){G.exports=L()})(self,()=>(()=>{var O={9662:(y,j,i)=>{var d=i(614),m=i(6330),v=TypeError;y.exports=function(b){if(d(b))return b;throw v(m(b)+" is not a function")}},9483:(y,j,i)=>{var d=i(4411),m=i(6330),v=TypeError;y.exports=function(b){if(d(b))return b;throw v(m(b)+" is not a constructor")}},6077:(y,j,i)=>{var d=i(614),m=String,v=TypeError;y.exports=function(b){if(typeof b=="object"||d(b))return b;throw v("Can't set "+m(b)+" as a prototype")}},1223:(y,j,i)=>{var d=i(5112),m=i(30),v=i(3070).f,b=d("unscopables"),w=Array.prototype;w[b]==null&&v(w,b,{configurable:!0,value:m(null)}),y.exports=function(k){w[b][k]=!0}},1530:(y,j,i)=>{var d=i(8710).charAt;y.exports=function(m,v,b){return v+(b?d(m,v).length:1)}},5787:(y,j,i)=>{var d=i(7976),m=TypeError;y.exports=function(v,b){if(d(b,v))return v;throw m("Incorrect invocation")}},9670:(y,j,i)=>{var d=i(111),m=String,v=TypeError;y.exports=function(b){if(d(b))return b;throw v(m(b)+" is not an object")}},8533:(y,j,i)=>{var d=i(2092).forEach,m=i(9341)("forEach");y.exports=m?[].forEach:function(v){return d(this,v,arguments.length>1?arguments[1]:void 0)}},8457:(y,j,i)=>{var d=i(9974),m=i(6916),v=i(7908),b=i(3411),w=i(7659),k=i(4411),x=i(6244),C=i(6135),E=i(4121),P=i(1246),A=Array;y.exports=function(D){var $=v(D),M=k(this),W=arguments.length,H=W>1?arguments[1]:void 0,B=H!==void 0;B&&(H=d(H,W>2?arguments[2]:void 0));var V,N,Z,K,Q,et,at=P($),lt=0;if(!at||this===A&&w(at))for(V=x($),N=M?new this(V):A(V);V>lt;lt++)et=B?H($[lt],lt):$[lt],C(N,lt,et);else for(Q=(K=E($,at)).next,N=M?new this:[];!(Z=m(Q,K)).done;lt++)et=B?b(K,H,[Z.value,lt],!0):Z.value,C(N,lt,et);return N.length=lt,N}},1318:(y,j,i)=>{var d=i(5656),m=i(1400),v=i(6244),b=function(w){return function(k,x,C){var E,P=d(k),A=v(P),D=m(C,A);if(w&&x!=x){for(;A>D;)if((E=P[D++])!=E)return!0}else for(;A>D;D++)if((w||D in P)&&P[D]===x)return w||D||0;return!w&&-1}};y.exports={includes:b(!0),indexOf:b(!1)}},2092:(y,j,i)=>{var d=i(9974),m=i(1702),v=i(8361),b=i(7908),w=i(6244),k=i(5417),x=m([].push),C=function(E){var P=E==1,A=E==2,D=E==3,$=E==4,M=E==6,W=E==7,H=E==5||M;return function(B,V,N,Z){for(var K,Q,et=b(B),at=v(et),lt=d(V,N),wt=w(at),ct=0,Ct=Z||k,Tt=P?Ct(B,wt):A||W?Ct(B,0):void 0;wt>ct;ct++)if((H||ct in at)&&(Q=lt(K=at[ct],ct,et),E))if(P)Tt[ct]=Q;else if(Q)switch(E){case 3:return!0;case 5:return K;case 6:return ct;case 2:x(Tt,K)}else switch(E){case 4:return!1;case 7:x(Tt,K)}return M?-1:D||$?$:Tt}};y.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6),filterReject:C(7)}},1194:(y,j,i)=>{var d=i(7293),m=i(5112),v=i(7392),b=m("species");y.exports=function(w){return v>=51||!d(function(){var k=[];return(k.constructor={})[b]=function(){return{foo:1}},k[w](Boolean).foo!==1})}},9341:(y,j,i)=>{var d=i(7293);y.exports=function(m,v){var b=[][m];return!!b&&d(function(){b.call(null,v||function(){return 1},1)})}},3671:(y,j,i)=>{var d=i(9662),m=i(7908),v=i(8361),b=i(6244),w=TypeError,k=function(x){return function(C,E,P,A){d(E);var D=m(C),$=v(D),M=b(D),W=x?M-1:0,H=x?-1:1;if(P<2)for(;;){if(W in $){A=$[W],W+=H;break}if(W+=H,x?W<0:M<=W)throw w("Reduce of empty array with no initial value")}for(;x?W>=0:M>W;W+=H)W in $&&(A=E(A,$[W],W,D));return A}};y.exports={left:k(!1),right:k(!0)}},3658:(y,j,i)=>{var d=i(9781),m=i(3157),v=TypeError,b=Object.getOwnPropertyDescriptor,w=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(k){return k instanceof TypeError}}();y.exports=w?function(k,x){if(m(k)&&!b(k,"length").writable)throw v("Cannot set read only .length");return k.length=x}:function(k,x){return k.length=x}},1589:(y,j,i)=>{var d=i(1400),m=i(6244),v=i(6135),b=Array,w=Math.max;y.exports=function(k,x,C){for(var E=m(k),P=d(x,E),A=d(C===void 0?E:C,E),D=b(w(A-P,0)),$=0;P<A;P++,$++)v(D,$,k[P]);return D.length=$,D}},206:(y,j,i)=>{var d=i(1702);y.exports=d([].slice)},4362:(y,j,i)=>{var d=i(1589),m=Math.floor,v=function(k,x){var C=k.length,E=m(C/2);return C<8?b(k,x):w(k,v(d(k,0,E),x),v(d(k,E),x),x)},b=function(k,x){for(var C,E,P=k.length,A=1;A<P;){for(E=A,C=k[A];E&&x(k[E-1],C)>0;)k[E]=k[--E];E!==A++&&(k[E]=C)}return k},w=function(k,x,C,E){for(var P=x.length,A=C.length,D=0,$=0;D<P||$<A;)k[D+$]=D<P&&$<A?E(x[D],C[$])<=0?x[D++]:C[$++]:D<P?x[D++]:C[$++];return k};y.exports=v},7475:(y,j,i)=>{var d=i(3157),m=i(4411),v=i(111),b=i(5112)("species"),w=Array;y.exports=function(k){var x;return d(k)&&(x=k.constructor,(m(x)&&(x===w||d(x.prototype))||v(x)&&(x=x[b])===null)&&(x=void 0)),x===void 0?w:x}},5417:(y,j,i)=>{var d=i(7475);y.exports=function(m,v){return new(d(m))(v===0?0:v)}},3411:(y,j,i)=>{var d=i(9670),m=i(9212);y.exports=function(v,b,w,k){try{return k?b(d(w)[0],w[1]):b(w)}catch(x){m(v,"throw",x)}}},7072:(y,j,i)=>{var d=i(5112)("iterator"),m=!1;try{var v=0,b={next:function(){return{done:!!v++}},return:function(){m=!0}};b[d]=function(){return this},Array.from(b,function(){throw 2})}catch{}y.exports=function(w,k){if(!k&&!m)return!1;var x=!1;try{var C={};C[d]=function(){return{next:function(){return{done:x=!0}}}},w(C)}catch{}return x}},4326:(y,j,i)=>{var d=i(1702),m=d({}.toString),v=d("".slice);y.exports=function(b){return v(m(b),8,-1)}},648:(y,j,i)=>{var d=i(1694),m=i(614),v=i(4326),b=i(5112)("toStringTag"),w=Object,k=v(function(){return arguments}())=="Arguments";y.exports=d?v:function(x){var C,E,P;return x===void 0?"Undefined":x===null?"Null":typeof(E=function(A,D){try{return A[D]}catch{}}(C=w(x),b))=="string"?E:k?v(C):(P=v(C))=="Object"&&m(C.callee)?"Arguments":P}},9920:(y,j,i)=>{var d=i(2597),m=i(3887),v=i(1236),b=i(3070);y.exports=function(w,k,x){for(var C=m(k),E=b.f,P=v.f,A=0;A<C.length;A++){var D=C[A];d(w,D)||x&&d(x,D)||E(w,D,P(k,D))}}},4964:(y,j,i)=>{var d=i(5112)("match");y.exports=function(m){var v=/./;try{"/./"[m](v)}catch{try{return v[d]=!1,"/./"[m](v)}catch{}}return!1}},8544:(y,j,i)=>{var d=i(7293);y.exports=!d(function(){function m(){}return m.prototype.constructor=null,Object.getPrototypeOf(new m)!==m.prototype})},6178:y=>{y.exports=function(j,i){return{value:j,done:i}}},8880:(y,j,i)=>{var d=i(9781),m=i(3070),v=i(9114);y.exports=d?function(b,w,k){return m.f(b,w,v(1,k))}:function(b,w,k){return b[w]=k,b}},9114:y=>{y.exports=function(j,i){return{enumerable:!(1&j),configurable:!(2&j),writable:!(4&j),value:i}}},6135:(y,j,i)=>{var d=i(4948),m=i(3070),v=i(9114);y.exports=function(b,w,k){var x=d(w);x in b?m.f(b,x,v(0,k)):b[x]=k}},5573:(y,j,i)=>{var d=i(1702),m=i(7293),v=i(6650).start,b=RangeError,w=isFinite,k=Math.abs,x=Date.prototype,C=x.toISOString,E=d(x.getTime),P=d(x.getUTCDate),A=d(x.getUTCFullYear),D=d(x.getUTCHours),$=d(x.getUTCMilliseconds),M=d(x.getUTCMinutes),W=d(x.getUTCMonth),H=d(x.getUTCSeconds);y.exports=m(function(){return C.call(new Date(-50000000000001))!="0385-07-25T07:06:39.999Z"})||!m(function(){C.call(new Date(NaN))})?function(){if(!w(E(this)))throw b("Invalid time value");var B=this,V=A(B),N=$(B),Z=V<0?"-":V>9999?"+":"";return Z+v(k(V),Z?6:4,0)+"-"+v(W(B)+1,2,0)+"-"+v(P(B),2,0)+"T"+v(D(B),2,0)+":"+v(M(B),2,0)+":"+v(H(B),2,0)+"."+v(N,3,0)+"Z"}:C},8709:(y,j,i)=>{var d=i(9670),m=i(2140),v=TypeError;y.exports=function(b){if(d(this),b==="string"||b==="default")b="string";else if(b!=="number")throw v("Incorrect hint");return m(this,b)}},7045:(y,j,i)=>{var d=i(6339),m=i(3070);y.exports=function(v,b,w){return w.get&&d(w.get,b,{getter:!0}),w.set&&d(w.set,b,{setter:!0}),m.f(v,b,w)}},8052:(y,j,i)=>{var d=i(614),m=i(3070),v=i(6339),b=i(3072);y.exports=function(w,k,x,C){C||(C={});var E=C.enumerable,P=C.name!==void 0?C.name:k;if(d(x)&&v(x,P,C),C.global)E?w[k]=x:b(k,x);else{try{C.unsafe?w[k]&&(E=!0):delete w[k]}catch{}E?w[k]=x:m.f(w,k,{value:x,enumerable:!1,configurable:!C.nonConfigurable,writable:!C.nonWritable})}return w}},3072:(y,j,i)=>{var d=i(7854),m=Object.defineProperty;y.exports=function(v,b){try{m(d,v,{value:b,configurable:!0,writable:!0})}catch{d[v]=b}return b}},5117:(y,j,i)=>{var d=i(6330),m=TypeError;y.exports=function(v,b){if(!delete v[b])throw m("Cannot delete property "+d(b)+" of "+d(v))}},9781:(y,j,i)=>{var d=i(7293);y.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},4154:y=>{var j=typeof document=="object"&&document.all,i=j===void 0&&j!==void 0;y.exports={all:j,IS_HTMLDDA:i}},317:(y,j,i)=>{var d=i(7854),m=i(111),v=d.document,b=m(v)&&m(v.createElement);y.exports=function(w){return b?v.createElement(w):{}}},7207:y=>{var j=TypeError;y.exports=function(i){if(i>9007199254740991)throw j("Maximum allowed index exceeded");return i}},8324:y=>{y.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}},8509:(y,j,i)=>{var d=i(317)("span").classList,m=d&&d.constructor&&d.constructor.prototype;y.exports=m===Object.prototype?void 0:m},8886:(y,j,i)=>{var d=i(8113).match(/firefox\/(\d+)/i);y.exports=!!d&&+d[1]},7871:(y,j,i)=>{var d=i(3823),m=i(5268);y.exports=!d&&!m&&typeof window=="object"&&typeof document=="object"},9363:y=>{y.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},3823:y=>{y.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},256:(y,j,i)=>{var d=i(8113);y.exports=/MSIE|Trident/.test(d)},1528:(y,j,i)=>{var d=i(8113);y.exports=/ipad|iphone|ipod/i.test(d)&&typeof Pebble<"u"},8334:(y,j,i)=>{var d=i(8113);y.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},5268:(y,j,i)=>{var d=i(4326);y.exports=typeof process<"u"&&d(process)=="process"},1036:(y,j,i)=>{var d=i(8113);y.exports=/web0s(?!.*chrome)/i.test(d)},8113:y=>{y.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7392:(y,j,i)=>{var d,m,v=i(7854),b=i(8113),w=v.process,k=v.Deno,x=w&&w.versions||k&&k.version,C=x&&x.v8;C&&(m=(d=C.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!m&&b&&(!(d=b.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=b.match(/Chrome\/(\d+)/))&&(m=+d[1]),y.exports=m},8008:(y,j,i)=>{var d=i(8113).match(/AppleWebKit\/(\d+)\./);y.exports=!!d&&+d[1]},748:y=>{y.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(y,j,i)=>{var d=i(7854),m=i(1236).f,v=i(8880),b=i(8052),w=i(3072),k=i(9920),x=i(4705);y.exports=function(C,E){var P,A,D,$,M,W=C.target,H=C.global,B=C.stat;if(P=H?d:B?d[W]||w(W,{}):(d[W]||{}).prototype)for(A in E){if($=E[A],D=C.dontCallGetSet?(M=m(P,A))&&M.value:P[A],!x(H?A:W+(B?".":"#")+A,C.forced)&&D!==void 0){if(typeof $==typeof D)continue;k($,D)}(C.sham||D&&D.sham)&&v($,"sham",!0),b(P,A,$,C)}}},7293:y=>{y.exports=function(j){try{return!!j()}catch{return!0}}},7007:(y,j,i)=>{i(4916);var d=i(1470),m=i(8052),v=i(2261),b=i(7293),w=i(5112),k=i(8880),x=w("species"),C=RegExp.prototype;y.exports=function(E,P,A,D){var $=w(E),M=!b(function(){var V={};return V[$]=function(){return 7},""[E](V)!=7}),W=M&&!b(function(){var V=!1,N=/a/;return E==="split"&&((N={}).constructor={},N.constructor[x]=function(){return N},N.flags="",N[$]=/./[$]),N.exec=function(){return V=!0,null},N[$](""),!V});if(!M||!W||A){var H=d(/./[$]),B=P($,""[E],function(V,N,Z,K,Q){var et=d(V),at=N.exec;return at===v||at===C.exec?M&&!Q?{done:!0,value:H(N,Z,K)}:{done:!0,value:et(Z,N,K)}:{done:!1}});m(String.prototype,E,B[0]),m(C,$,B[1])}D&&k(C[$],"sham",!0)}},2104:(y,j,i)=>{var d=i(4374),m=Function.prototype,v=m.apply,b=m.call;y.exports=typeof Reflect=="object"&&Reflect.apply||(d?b.bind(v):function(){return b.apply(v,arguments)})},9974:(y,j,i)=>{var d=i(1470),m=i(9662),v=i(4374),b=d(d.bind);y.exports=function(w,k){return m(w),k===void 0?w:v?b(w,k):function(){return w.apply(k,arguments)}}},4374:(y,j,i)=>{var d=i(7293);y.exports=!d(function(){var m=(function(){}).bind();return typeof m!="function"||m.hasOwnProperty("prototype")})},7065:(y,j,i)=>{var d=i(1702),m=i(9662),v=i(111),b=i(2597),w=i(206),k=i(4374),x=Function,C=d([].concat),E=d([].join),P={},A=function(D,$,M){if(!b(P,$)){for(var W=[],H=0;H<$;H++)W[H]="a["+H+"]";P[$]=x("C,a","return new C("+E(W,",")+")")}return P[$](D,M)};y.exports=k?x.bind:function(D){var $=m(this),M=$.prototype,W=w(arguments,1),H=function(){var B=C(W,w(arguments));return this instanceof H?A($,B.length,B):$.apply(D,B)};return v(M)&&(H.prototype=M),H}},6916:(y,j,i)=>{var d=i(4374),m=Function.prototype.call;y.exports=d?m.bind(m):function(){return m.apply(m,arguments)}},6530:(y,j,i)=>{var d=i(9781),m=i(2597),v=Function.prototype,b=d&&Object.getOwnPropertyDescriptor,w=m(v,"name"),k=w&&(function(){}).name==="something",x=w&&(!d||d&&b(v,"name").configurable);y.exports={EXISTS:w,PROPER:k,CONFIGURABLE:x}},5668:(y,j,i)=>{var d=i(1702),m=i(9662);y.exports=function(v,b,w){try{return d(m(Object.getOwnPropertyDescriptor(v,b)[w]))}catch{}}},1470:(y,j,i)=>{var d=i(4326),m=i(1702);y.exports=function(v){if(d(v)==="Function")return m(v)}},1702:(y,j,i)=>{var d=i(4374),m=Function.prototype,v=m.call,b=d&&m.bind.bind(v,v);y.exports=d?b:function(w){return function(){return v.apply(w,arguments)}}},5005:(y,j,i)=>{var d=i(7854),m=i(614),v=function(b){return m(b)?b:void 0};y.exports=function(b,w){return arguments.length<2?v(d[b]):d[b]&&d[b][w]}},1246:(y,j,i)=>{var d=i(648),m=i(8173),v=i(8554),b=i(7497),w=i(5112)("iterator");y.exports=function(k){if(!v(k))return m(k,w)||m(k,"@@iterator")||b[d(k)]}},4121:(y,j,i)=>{var d=i(6916),m=i(9662),v=i(9670),b=i(6330),w=i(1246),k=TypeError;y.exports=function(x,C){var E=arguments.length<2?w(x):C;if(m(E))return v(d(E,x));throw k(b(x)+" is not iterable")}},8044:(y,j,i)=>{var d=i(1702),m=i(3157),v=i(614),b=i(4326),w=i(1340),k=d([].push);y.exports=function(x){if(v(x))return x;if(m(x)){for(var C=x.length,E=[],P=0;P<C;P++){var A=x[P];typeof A=="string"?k(E,A):typeof A!="number"&&b(A)!="Number"&&b(A)!="String"||k(E,w(A))}var D=E.length,$=!0;return function(M,W){if($)return $=!1,W;if(m(this))return W;for(var H=0;H<D;H++)if(E[H]===M)return W}}}},8173:(y,j,i)=>{var d=i(9662),m=i(8554);y.exports=function(v,b){var w=v[b];return m(w)?void 0:d(w)}},647:(y,j,i)=>{var d=i(1702),m=i(7908),v=Math.floor,b=d("".charAt),w=d("".replace),k=d("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,C=/\$([$&'`]|\d{1,2})/g;y.exports=function(E,P,A,D,$,M){var W=A+E.length,H=D.length,B=C;return $!==void 0&&($=m($),B=x),w(M,B,function(V,N){var Z;switch(b(N,0)){case"$":return"$";case"&":return E;case"`":return k(P,0,A);case"'":return k(P,W);case"<":Z=$[k(N,1,-1)];break;default:var K=+N;if(K===0)return V;if(K>H){var Q=v(K/10);return Q===0?V:Q<=H?D[Q-1]===void 0?b(N,1):D[Q-1]+b(N,1):V}Z=D[K-1]}return Z===void 0?"":Z})}},7854:(y,j,i)=>{var d=function(m){return m&&m.Math==Math&&m};y.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},2597:(y,j,i)=>{var d=i(1702),m=i(7908),v=d({}.hasOwnProperty);y.exports=Object.hasOwn||function(b,w){return v(m(b),w)}},3501:y=>{y.exports={}},842:y=>{y.exports=function(j,i){try{arguments.length==1?console.error(j):console.error(j,i)}catch{}}},490:(y,j,i)=>{var d=i(5005);y.exports=d("document","documentElement")},4664:(y,j,i)=>{var d=i(9781),m=i(7293),v=i(317);y.exports=!d&&!m(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},8361:(y,j,i)=>{var d=i(1702),m=i(7293),v=i(4326),b=Object,w=d("".split);y.exports=m(function(){return!b("z").propertyIsEnumerable(0)})?function(k){return v(k)=="String"?w(k,""):b(k)}:b},9587:(y,j,i)=>{var d=i(614),m=i(111),v=i(7674);y.exports=function(b,w,k){var x,C;return v&&d(x=w.constructor)&&x!==k&&m(C=x.prototype)&&C!==k.prototype&&v(b,C),b}},2788:(y,j,i)=>{var d=i(1702),m=i(614),v=i(5465),b=d(Function.toString);m(v.inspectSource)||(v.inspectSource=function(w){return b(w)}),y.exports=v.inspectSource},9909:(y,j,i)=>{var d,m,v,b=i(4811),w=i(7854),k=i(111),x=i(8880),C=i(2597),E=i(5465),P=i(6200),A=i(3501),D="Object already initialized",$=w.TypeError,M=w.WeakMap;if(b||E.state){var W=E.state||(E.state=new M);W.get=W.get,W.has=W.has,W.set=W.set,d=function(B,V){if(W.has(B))throw $(D);return V.facade=B,W.set(B,V),V},m=function(B){return W.get(B)||{}},v=function(B){return W.has(B)}}else{var H=P("state");A[H]=!0,d=function(B,V){if(C(B,H))throw $(D);return V.facade=B,x(B,H,V),V},m=function(B){return C(B,H)?B[H]:{}},v=function(B){return C(B,H)}}y.exports={set:d,get:m,has:v,enforce:function(B){return v(B)?m(B):d(B,{})},getterFor:function(B){return function(V){var N;if(!k(V)||(N=m(V)).type!==B)throw $("Incompatible receiver, "+B+" required");return N}}}},7659:(y,j,i)=>{var d=i(5112),m=i(7497),v=d("iterator"),b=Array.prototype;y.exports=function(w){return w!==void 0&&(m.Array===w||b[v]===w)}},3157:(y,j,i)=>{var d=i(4326);y.exports=Array.isArray||function(m){return d(m)=="Array"}},614:(y,j,i)=>{var d=i(4154),m=d.all;y.exports=d.IS_HTMLDDA?function(v){return typeof v=="function"||v===m}:function(v){return typeof v=="function"}},4411:(y,j,i)=>{var d=i(1702),m=i(7293),v=i(614),b=i(648),w=i(5005),k=i(2788),x=function(){},C=[],E=w("Reflect","construct"),P=/^\s*(?:class|function)\b/,A=d(P.exec),D=!P.exec(x),$=function(W){if(!v(W))return!1;try{return E(x,C,W),!0}catch{return!1}},M=function(W){if(!v(W))return!1;switch(b(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return D||!!A(P,k(W))}catch{return!0}};M.sham=!0,y.exports=!E||m(function(){var W;return $($.call)||!$(Object)||!$(function(){W=!0})||W})?M:$},5032:(y,j,i)=>{var d=i(2597);y.exports=function(m){return m!==void 0&&(d(m,"value")||d(m,"writable"))}},4705:(y,j,i)=>{var d=i(7293),m=i(614),v=/#|\.prototype\./,b=function(E,P){var A=k[w(E)];return A==C||A!=x&&(m(P)?d(P):!!P)},w=b.normalize=function(E){return String(E).replace(v,".").toLowerCase()},k=b.data={},x=b.NATIVE="N",C=b.POLYFILL="P";y.exports=b},8554:y=>{y.exports=function(j){return j==null}},111:(y,j,i)=>{var d=i(614),m=i(4154),v=m.all;y.exports=m.IS_HTMLDDA?function(b){return typeof b=="object"?b!==null:d(b)||b===v}:function(b){return typeof b=="object"?b!==null:d(b)}},1913:y=>{y.exports=!1},7850:(y,j,i)=>{var d=i(111),m=i(4326),v=i(5112)("match");y.exports=function(b){var w;return d(b)&&((w=b[v])!==void 0?!!w:m(b)=="RegExp")}},2190:(y,j,i)=>{var d=i(5005),m=i(614),v=i(7976),b=i(3307),w=Object;y.exports=b?function(k){return typeof k=="symbol"}:function(k){var x=d("Symbol");return m(x)&&v(x.prototype,w(k))}},408:(y,j,i)=>{var d=i(9974),m=i(6916),v=i(9670),b=i(6330),w=i(7659),k=i(6244),x=i(7976),C=i(4121),E=i(1246),P=i(9212),A=TypeError,D=function(M,W){this.stopped=M,this.result=W},$=D.prototype;y.exports=function(M,W,H){var B,V,N,Z,K,Q,et,at=H&&H.that,lt=!(!H||!H.AS_ENTRIES),wt=!(!H||!H.IS_RECORD),ct=!(!H||!H.IS_ITERATOR),Ct=!(!H||!H.INTERRUPTED),Tt=d(W,at),$t=function(bt){return B&&P(B,"normal",bt),new D(!0,bt)},st=function(bt){return lt?(v(bt),Ct?Tt(bt[0],bt[1],$t):Tt(bt[0],bt[1])):Ct?Tt(bt,$t):Tt(bt)};if(wt)B=M.iterator;else if(ct)B=M;else{if(!(V=E(M)))throw A(b(M)+" is not iterable");if(w(V)){for(N=0,Z=k(M);Z>N;N++)if((K=st(M[N]))&&x($,K))return K;return new D(!1)}B=C(M,V)}for(Q=wt?M.next:B.next;!(et=m(Q,B)).done;){try{K=st(et.value)}catch(bt){P(B,"throw",bt)}if(typeof K=="object"&&K&&x($,K))return K}return new D(!1)}},9212:(y,j,i)=>{var d=i(6916),m=i(9670),v=i(8173);y.exports=function(b,w,k){var x,C;m(b);try{if(!(x=v(b,"return"))){if(w==="throw")throw k;return k}x=d(x,b)}catch(E){C=!0,x=E}if(w==="throw")throw k;if(C)throw x;return m(x),k}},3061:(y,j,i)=>{var d=i(3383).IteratorPrototype,m=i(30),v=i(9114),b=i(8003),w=i(7497),k=function(){return this};y.exports=function(x,C,E,P){var A=C+" Iterator";return x.prototype=m(d,{next:v(+!P,E)}),b(x,A,!1,!0),w[A]=k,x}},1656:(y,j,i)=>{var d=i(2109),m=i(6916),v=i(1913),b=i(6530),w=i(614),k=i(3061),x=i(9518),C=i(7674),E=i(8003),P=i(8880),A=i(8052),D=i(5112),$=i(7497),M=i(3383),W=b.PROPER,H=b.CONFIGURABLE,B=M.IteratorPrototype,V=M.BUGGY_SAFARI_ITERATORS,N=D("iterator"),Z="keys",K="values",Q="entries",et=function(){return this};y.exports=function(at,lt,wt,ct,Ct,Tt,$t){k(wt,lt,ct);var st,bt,gt,Mt=function(_t){if(_t===Ct&&Rt)return Rt;if(!V&&_t in St)return St[_t];switch(_t){case Z:case K:case Q:return function(){return new wt(this,_t)}}return function(){return new wt(this)}},Jt=lt+" Iterator",ie=!1,St=at.prototype,kt=St[N]||St["@@iterator"]||Ct&&St[Ct],Rt=!V&&kt||Mt(Ct),Vt=lt=="Array"&&St.entries||kt;if(Vt&&(st=x(Vt.call(new at)))!==Object.prototype&&st.next&&(v||x(st)===B||(C?C(st,B):w(st[N])||A(st,N,et)),E(st,Jt,!0,!0),v&&($[Jt]=et)),W&&Ct==K&&kt&&kt.name!==K&&(!v&&H?P(St,"name",K):(ie=!0,Rt=function(){return m(kt,this)})),Ct)if(bt={values:Mt(K),keys:Tt?Rt:Mt(Z),entries:Mt(Q)},$t)for(gt in bt)(V||ie||!(gt in St))&&A(St,gt,bt[gt]);else d({target:lt,proto:!0,forced:V||ie},bt);return v&&!$t||St[N]===Rt||A(St,N,Rt,{name:Ct}),$[lt]=Rt,bt}},3383:(y,j,i)=>{var d,m,v,b=i(7293),w=i(614),k=i(111),x=i(30),C=i(9518),E=i(8052),P=i(5112),A=i(1913),D=P("iterator"),$=!1;[].keys&&("next"in(v=[].keys())?(m=C(C(v)))!==Object.prototype&&(d=m):$=!0),!k(d)||b(function(){var M={};return d[D].call(M)!==M})?d={}:A&&(d=x(d)),w(d[D])||E(d,D,function(){return this}),y.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:$}},7497:y=>{y.exports={}},6244:(y,j,i)=>{var d=i(7466);y.exports=function(m){return d(m.length)}},6339:(y,j,i)=>{var d=i(1702),m=i(7293),v=i(614),b=i(2597),w=i(9781),k=i(6530).CONFIGURABLE,x=i(2788),C=i(9909),E=C.enforce,P=C.get,A=String,D=Object.defineProperty,$=d("".slice),M=d("".replace),W=d([].join),H=w&&!m(function(){return D(function(){},"length",{value:8}).length!==8}),B=String(String).split("String"),V=y.exports=function(N,Z,K){$(A(Z),0,7)==="Symbol("&&(Z="["+M(A(Z),/^Symbol\(([^)]*)\)/,"$1")+"]"),K&&K.getter&&(Z="get "+Z),K&&K.setter&&(Z="set "+Z),(!b(N,"name")||k&&N.name!==Z)&&(w?D(N,"name",{value:Z,configurable:!0}):N.name=Z),H&&K&&b(K,"arity")&&N.length!==K.arity&&D(N,"length",{value:K.arity});try{K&&b(K,"constructor")&&K.constructor?w&&D(N,"prototype",{writable:!1}):N.prototype&&(N.prototype=void 0)}catch{}var Q=E(N);return b(Q,"source")||(Q.source=W(B,typeof Z=="string"?Z:"")),N};Function.prototype.toString=V(function(){return v(this)&&P(this).source||x(this)},"toString")},4758:y=>{var j=Math.ceil,i=Math.floor;y.exports=Math.trunc||function(d){var m=+d;return(m>0?i:j)(m)}},5948:(y,j,i)=>{var d,m,v,b,w,k=i(7854),x=i(9974),C=i(1236).f,E=i(261).set,P=i(8572),A=i(8334),D=i(1528),$=i(1036),M=i(5268),W=k.MutationObserver||k.WebKitMutationObserver,H=k.document,B=k.process,V=k.Promise,N=C(k,"queueMicrotask"),Z=N&&N.value;if(!Z){var K=new P,Q=function(){var et,at;for(M&&(et=B.domain)&&et.exit();at=K.get();)try{at()}catch(lt){throw K.head&&d(),lt}et&&et.enter()};A||M||$||!W||!H?!D&&V&&V.resolve?((b=V.resolve(void 0)).constructor=V,w=x(b.then,b),d=function(){w(Q)}):M?d=function(){B.nextTick(Q)}:(E=x(E,k),d=function(){E(Q)}):(m=!0,v=H.createTextNode(""),new W(Q).observe(v,{characterData:!0}),d=function(){v.data=m=!m}),Z=function(et){K.head||d(),K.add(et)}}y.exports=Z},8523:(y,j,i)=>{var d=i(9662),m=TypeError,v=function(b){var w,k;this.promise=new b(function(x,C){if(w!==void 0||k!==void 0)throw m("Bad Promise constructor");w=x,k=C}),this.resolve=d(w),this.reject=d(k)};y.exports.f=function(b){return new v(b)}},3929:(y,j,i)=>{var d=i(7850),m=TypeError;y.exports=function(v){if(d(v))throw m("The method doesn't accept regular expressions");return v}},2814:(y,j,i)=>{var d=i(7854),m=i(7293),v=i(1702),b=i(1340),w=i(3111).trim,k=i(1361),x=v("".charAt),C=d.parseFloat,E=d.Symbol,P=E&&E.iterator,A=1/C(k+"-0")!=-1/0||P&&!m(function(){C(Object(P))});y.exports=A?function(D){var $=w(b(D)),M=C($);return M===0&&x($,0)=="-"?-0:M}:C},3009:(y,j,i)=>{var d=i(7854),m=i(7293),v=i(1702),b=i(1340),w=i(3111).trim,k=i(1361),x=d.parseInt,C=d.Symbol,E=C&&C.iterator,P=/^[+-]?0x/i,A=v(P.exec),D=x(k+"08")!==8||x(k+"0x16")!==22||E&&!m(function(){x(Object(E))});y.exports=D?function($,M){var W=w(b($));return x(W,M>>>0||(A(P,W)?16:10))}:x},1574:(y,j,i)=>{var d=i(9781),m=i(1702),v=i(6916),b=i(7293),w=i(1956),k=i(5181),x=i(5296),C=i(7908),E=i(8361),P=Object.assign,A=Object.defineProperty,D=m([].concat);y.exports=!P||b(function(){if(d&&P({b:1},P(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var $={},M={},W=Symbol(),H="abcdefghijklmnopqrst";return $[W]=7,H.split("").forEach(function(B){M[B]=B}),P({},$)[W]!=7||w(P({},M)).join("")!=H})?function($,M){for(var W=C($),H=arguments.length,B=1,V=k.f,N=x.f;H>B;)for(var Z,K=E(arguments[B++]),Q=V?D(w(K),V(K)):w(K),et=Q.length,at=0;et>at;)Z=Q[at++],d&&!v(N,K,Z)||(W[Z]=K[Z]);return W}:P},30:(y,j,i)=>{var d,m=i(9670),v=i(6048),b=i(748),w=i(3501),k=i(490),x=i(317),C=i(6200),E="prototype",P="script",A=C("IE_PROTO"),D=function(){},$=function(H){return"<"+P+">"+H+"</"+P+">"},M=function(H){H.write($("")),H.close();var B=H.parentWindow.Object;return H=null,B},W=function(){try{d=new ActiveXObject("htmlfile")}catch{}var H,B,V;W=typeof document<"u"?document.domain&&d?M(d):(B=x("iframe"),V="java"+P+":",B.style.display="none",k.appendChild(B),B.src=String(V),(H=B.contentWindow.document).open(),H.write($("document.F=Object")),H.close(),H.F):M(d);for(var N=b.length;N--;)delete W[E][b[N]];return W()};w[A]=!0,y.exports=Object.create||function(H,B){var V;return H!==null?(D[E]=m(H),V=new D,D[E]=null,V[A]=H):V=W(),B===void 0?V:v.f(V,B)}},6048:(y,j,i)=>{var d=i(9781),m=i(3353),v=i(3070),b=i(9670),w=i(5656),k=i(1956);j.f=d&&!m?Object.defineProperties:function(x,C){b(x);for(var E,P=w(C),A=k(C),D=A.length,$=0;D>$;)v.f(x,E=A[$++],P[E]);return x}},3070:(y,j,i)=>{var d=i(9781),m=i(4664),v=i(3353),b=i(9670),w=i(4948),k=TypeError,x=Object.defineProperty,C=Object.getOwnPropertyDescriptor,E="enumerable",P="configurable",A="writable";j.f=d?v?function(D,$,M){if(b(D),$=w($),b(M),typeof D=="function"&&$==="prototype"&&"value"in M&&A in M&&!M[A]){var W=C(D,$);W&&W[A]&&(D[$]=M.value,M={configurable:P in M?M[P]:W[P],enumerable:E in M?M[E]:W[E],writable:!1})}return x(D,$,M)}:x:function(D,$,M){if(b(D),$=w($),b(M),m)try{return x(D,$,M)}catch{}if("get"in M||"set"in M)throw k("Accessors not supported");return"value"in M&&(D[$]=M.value),D}},1236:(y,j,i)=>{var d=i(9781),m=i(6916),v=i(5296),b=i(9114),w=i(5656),k=i(4948),x=i(2597),C=i(4664),E=Object.getOwnPropertyDescriptor;j.f=d?E:function(P,A){if(P=w(P),A=k(A),C)try{return E(P,A)}catch{}if(x(P,A))return b(!m(v.f,P,A),P[A])}},1156:(y,j,i)=>{var d=i(4326),m=i(5656),v=i(8006).f,b=i(1589),w=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];y.exports.f=function(k){return w&&d(k)=="Window"?function(x){try{return v(x)}catch{return b(w)}}(k):v(m(k))}},8006:(y,j,i)=>{var d=i(6324),m=i(748).concat("length","prototype");j.f=Object.getOwnPropertyNames||function(v){return d(v,m)}},5181:(y,j)=>{j.f=Object.getOwnPropertySymbols},9518:(y,j,i)=>{var d=i(2597),m=i(614),v=i(7908),b=i(6200),w=i(8544),k=b("IE_PROTO"),x=Object,C=x.prototype;y.exports=w?x.getPrototypeOf:function(E){var P=v(E);if(d(P,k))return P[k];var A=P.constructor;return m(A)&&P instanceof A?A.prototype:P instanceof x?C:null}},7976:(y,j,i)=>{var d=i(1702);y.exports=d({}.isPrototypeOf)},6324:(y,j,i)=>{var d=i(1702),m=i(2597),v=i(5656),b=i(1318).indexOf,w=i(3501),k=d([].push);y.exports=function(x,C){var E,P=v(x),A=0,D=[];for(E in P)!m(w,E)&&m(P,E)&&k(D,E);for(;C.length>A;)m(P,E=C[A++])&&(~b(D,E)||k(D,E));return D}},1956:(y,j,i)=>{var d=i(6324),m=i(748);y.exports=Object.keys||function(v){return d(v,m)}},5296:(y,j)=>{var i={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!i.call({1:2},1);j.f=m?function(v){var b=d(this,v);return!!b&&b.enumerable}:i},7674:(y,j,i)=>{var d=i(5668),m=i(9670),v=i(6077);y.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var b,w=!1,k={};try{(b=d(Object.prototype,"__proto__","set"))(k,[]),w=k instanceof Array}catch{}return function(x,C){return m(x),v(C),w?b(x,C):x.__proto__=C,x}}():void 0)},4699:(y,j,i)=>{var d=i(9781),m=i(1702),v=i(1956),b=i(5656),w=m(i(5296).f),k=m([].push),x=function(C){return function(E){for(var P,A=b(E),D=v(A),$=D.length,M=0,W=[];$>M;)P=D[M++],d&&!w(A,P)||k(W,C?[P,A[P]]:A[P]);return W}};y.exports={entries:x(!0),values:x(!1)}},288:(y,j,i)=>{var d=i(1694),m=i(648);y.exports=d?{}.toString:function(){return"[object "+m(this)+"]"}},2140:(y,j,i)=>{var d=i(6916),m=i(614),v=i(111),b=TypeError;y.exports=function(w,k){var x,C;if(k==="string"&&m(x=w.toString)&&!v(C=d(x,w))||m(x=w.valueOf)&&!v(C=d(x,w))||k!=="string"&&m(x=w.toString)&&!v(C=d(x,w)))return C;throw b("Can't convert object to primitive value")}},3887:(y,j,i)=>{var d=i(5005),m=i(1702),v=i(8006),b=i(5181),w=i(9670),k=m([].concat);y.exports=d("Reflect","ownKeys")||function(x){var C=v.f(w(x)),E=b.f;return E?k(C,E(x)):C}},857:(y,j,i)=>{var d=i(7854);y.exports=d},2534:y=>{y.exports=function(j){try{return{error:!1,value:j()}}catch(i){return{error:!0,value:i}}}},3702:(y,j,i)=>{var d=i(7854),m=i(2492),v=i(614),b=i(4705),w=i(2788),k=i(5112),x=i(7871),C=i(3823),E=i(1913),P=i(7392),A=m&&m.prototype,D=k("species"),$=!1,M=v(d.PromiseRejectionEvent),W=b("Promise",function(){var H=w(m),B=H!==String(m);if(!B&&P===66||E&&(!A.catch||!A.finally))return!0;if(!P||P<51||!/native code/.test(H)){var V=new m(function(Z){Z(1)}),N=function(Z){Z(function(){},function(){})};if((V.constructor={})[D]=N,!($=V.then(function(){})instanceof N))return!0}return!B&&(x||C)&&!M});y.exports={CONSTRUCTOR:W,REJECTION_EVENT:M,SUBCLASSING:$}},2492:(y,j,i)=>{var d=i(7854);y.exports=d.Promise},9478:(y,j,i)=>{var d=i(9670),m=i(111),v=i(8523);y.exports=function(b,w){if(d(b),m(w)&&w.constructor===b)return w;var k=v.f(b);return(0,k.resolve)(w),k.promise}},612:(y,j,i)=>{var d=i(2492),m=i(7072),v=i(3702).CONSTRUCTOR;y.exports=v||!m(function(b){d.all(b).then(void 0,function(){})})},2626:(y,j,i)=>{var d=i(3070).f;y.exports=function(m,v,b){b in m||d(m,b,{configurable:!0,get:function(){return v[b]},set:function(w){v[b]=w}})}},8572:y=>{var j=function(){this.head=null,this.tail=null};j.prototype={add:function(i){var d={item:i,next:null},m=this.tail;m?m.next=d:this.head=d,this.tail=d},get:function(){var i=this.head;if(i)return(this.head=i.next)===null&&(this.tail=null),i.item}},y.exports=j},7651:(y,j,i)=>{var d=i(6916),m=i(9670),v=i(614),b=i(4326),w=i(2261),k=TypeError;y.exports=function(x,C){var E=x.exec;if(v(E)){var P=d(E,x,C);return P!==null&&m(P),P}if(b(x)==="RegExp")return d(w,x,C);throw k("RegExp#exec called on incompatible receiver")}},2261:(y,j,i)=>{var d,m,v=i(6916),b=i(1702),w=i(1340),k=i(7066),x=i(2999),C=i(2309),E=i(30),P=i(9909).get,A=i(9441),D=i(7168),$=C("native-string-replace",String.prototype.replace),M=RegExp.prototype.exec,W=M,H=b("".charAt),B=b("".indexOf),V=b("".replace),N=b("".slice),Z=(m=/b*/g,v(M,d=/a/,"a"),v(M,m,"a"),d.lastIndex!==0||m.lastIndex!==0),K=x.BROKEN_CARET,Q=/()??/.exec("")[1]!==void 0;(Z||Q||K||A||D)&&(W=function(et){var at,lt,wt,ct,Ct,Tt,$t,st=this,bt=P(st),gt=w(et),Mt=bt.raw;if(Mt)return Mt.lastIndex=st.lastIndex,at=v(W,Mt,gt),st.lastIndex=Mt.lastIndex,at;var Jt=bt.groups,ie=K&&st.sticky,St=v(k,st),kt=st.source,Rt=0,Vt=gt;if(ie&&(St=V(St,"y",""),B(St,"g")===-1&&(St+="g"),Vt=N(gt,st.lastIndex),st.lastIndex>0&&(!st.multiline||st.multiline&&H(gt,st.lastIndex-1)!==`
2
+ `)&&(kt="(?: "+kt+")",Vt=" "+Vt,Rt++),lt=new RegExp("^(?:"+kt+")",St)),Q&&(lt=new RegExp("^"+kt+"$(?!\\s)",St)),Z&&(wt=st.lastIndex),ct=v(M,ie?lt:st,Vt),ie?ct?(ct.input=N(ct.input,Rt),ct[0]=N(ct[0],Rt),ct.index=st.lastIndex,st.lastIndex+=ct[0].length):st.lastIndex=0:Z&&ct&&(st.lastIndex=st.global?ct.index+ct[0].length:wt),Q&&ct&&ct.length>1&&v($,ct[0],lt,function(){for(Ct=1;Ct<arguments.length-2;Ct++)arguments[Ct]===void 0&&(ct[Ct]=void 0)}),ct&&Jt)for(ct.groups=Tt=E(null),Ct=0;Ct<Jt.length;Ct++)Tt[($t=Jt[Ct])[0]]=ct[$t[1]];return ct}),y.exports=W},7066:(y,j,i)=>{var d=i(9670);y.exports=function(){var m=d(this),v="";return m.hasIndices&&(v+="d"),m.global&&(v+="g"),m.ignoreCase&&(v+="i"),m.multiline&&(v+="m"),m.dotAll&&(v+="s"),m.unicode&&(v+="u"),m.unicodeSets&&(v+="v"),m.sticky&&(v+="y"),v}},4706:(y,j,i)=>{var d=i(6916),m=i(2597),v=i(7976),b=i(7066),w=RegExp.prototype;y.exports=function(k){var x=k.flags;return x!==void 0||"flags"in w||m(k,"flags")||!v(w,k)?x:d(b,k)}},2999:(y,j,i)=>{var d=i(7293),m=i(7854).RegExp,v=d(function(){var k=m("a","y");return k.lastIndex=2,k.exec("abcd")!=null}),b=v||d(function(){return!m("a","y").sticky}),w=v||d(function(){var k=m("^r","gy");return k.lastIndex=2,k.exec("str")!=null});y.exports={BROKEN_CARET:w,MISSED_STICKY:b,UNSUPPORTED_Y:v}},9441:(y,j,i)=>{var d=i(7293),m=i(7854).RegExp;y.exports=d(function(){var v=m(".","s");return!(v.dotAll&&v.exec(`
3
+ `)&&v.flags==="s")})},7168:(y,j,i)=>{var d=i(7293),m=i(7854).RegExp;y.exports=d(function(){var v=m("(?<a>b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$<a>c")!=="bc"})},4488:(y,j,i)=>{var d=i(8554),m=TypeError;y.exports=function(v){if(d(v))throw m("Can't call method on "+v);return v}},7152:(y,j,i)=>{var d,m=i(7854),v=i(2104),b=i(614),w=i(9363),k=i(8113),x=i(206),C=i(8053),E=m.Function,P=/MSIE .\./.test(k)||w&&((d=m.Bun.version.split(".")).length<3||d[0]==0&&(d[1]<3||d[1]==3&&d[2]==0));y.exports=function(A,D){var $=D?2:1;return P?function(M,W){var H=C(arguments.length,1)>$,B=b(M)?M:E(M),V=H?x(arguments,$):[],N=H?function(){v(B,this,V)}:B;return D?A(N,W):A(N)}:A}},6340:(y,j,i)=>{var d=i(5005),m=i(7045),v=i(5112),b=i(9781),w=v("species");y.exports=function(k){var x=d(k);b&&x&&!x[w]&&m(x,w,{configurable:!0,get:function(){return this}})}},8003:(y,j,i)=>{var d=i(3070).f,m=i(2597),v=i(5112)("toStringTag");y.exports=function(b,w,k){b&&!k&&(b=b.prototype),b&&!m(b,v)&&d(b,v,{configurable:!0,value:w})}},6200:(y,j,i)=>{var d=i(2309),m=i(9711),v=d("keys");y.exports=function(b){return v[b]||(v[b]=m(b))}},5465:(y,j,i)=>{var d=i(7854),m=i(3072),v="__core-js_shared__",b=d[v]||m(v,{});y.exports=b},2309:(y,j,i)=>{var d=i(1913),m=i(5465);(y.exports=function(v,b){return m[v]||(m[v]=b!==void 0?b:{})})("versions",[]).push({version:"3.29.0",mode:d?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(y,j,i)=>{var d=i(9670),m=i(9483),v=i(8554),b=i(5112)("species");y.exports=function(w,k){var x,C=d(w).constructor;return C===void 0||v(x=d(C)[b])?k:m(x)}},8710:(y,j,i)=>{var d=i(1702),m=i(9303),v=i(1340),b=i(4488),w=d("".charAt),k=d("".charCodeAt),x=d("".slice),C=function(E){return function(P,A){var D,$,M=v(b(P)),W=m(A),H=M.length;return W<0||W>=H?E?"":void 0:(D=k(M,W))<55296||D>56319||W+1===H||($=k(M,W+1))<56320||$>57343?E?w(M,W):D:E?x(M,W,W+2):$-56320+(D-55296<<10)+65536}};y.exports={codeAt:C(!1),charAt:C(!0)}},6650:(y,j,i)=>{var d=i(1702),m=i(7466),v=i(1340),b=i(8415),w=i(4488),k=d(b),x=d("".slice),C=Math.ceil,E=function(P){return function(A,D,$){var M,W,H=v(w(A)),B=m(D),V=H.length,N=$===void 0?" ":v($);return B<=V||N==""?H:((W=k(N,C((M=B-V)/N.length))).length>M&&(W=x(W,0,M)),P?H+W:W+H)}};y.exports={start:E(!1),end:E(!0)}},8415:(y,j,i)=>{var d=i(9303),m=i(1340),v=i(4488),b=RangeError;y.exports=function(w){var k=m(v(this)),x="",C=d(w);if(C<0||C==1/0)throw b("Wrong number of repetitions");for(;C>0;(C>>>=1)&&(k+=k))1&C&&(x+=k);return x}},6091:(y,j,i)=>{var d=i(6530).PROPER,m=i(7293),v=i(1361);y.exports=function(b){return m(function(){return!!v[b]()||"​…᠎"[b]()!=="​…᠎"||d&&v[b].name!==b})}},3111:(y,j,i)=>{var d=i(1702),m=i(4488),v=i(1340),b=i(1361),w=d("".replace),k=RegExp("^["+b+"]+"),x=RegExp("(^|[^"+b+"])["+b+"]+$"),C=function(E){return function(P){var A=v(m(P));return 1&E&&(A=w(A,k,"")),2&E&&(A=w(A,x,"$1")),A}};y.exports={start:C(1),end:C(2),trim:C(3)}},6293:(y,j,i)=>{var d=i(7392),m=i(7293);y.exports=!!Object.getOwnPropertySymbols&&!m(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&d&&d<41})},6532:(y,j,i)=>{var d=i(6916),m=i(5005),v=i(5112),b=i(8052);y.exports=function(){var w=m("Symbol"),k=w&&w.prototype,x=k&&k.valueOf,C=v("toPrimitive");k&&!k[C]&&b(k,C,function(E){return d(x,this)},{arity:1})}},2015:(y,j,i)=>{var d=i(6293);y.exports=d&&!!Symbol.for&&!!Symbol.keyFor},261:(y,j,i)=>{var d,m,v,b,w=i(7854),k=i(2104),x=i(9974),C=i(614),E=i(2597),P=i(7293),A=i(490),D=i(206),$=i(317),M=i(8053),W=i(8334),H=i(5268),B=w.setImmediate,V=w.clearImmediate,N=w.process,Z=w.Dispatch,K=w.Function,Q=w.MessageChannel,et=w.String,at=0,lt={},wt="onreadystatechange";P(function(){d=w.location});var ct=function(st){if(E(lt,st)){var bt=lt[st];delete lt[st],bt()}},Ct=function(st){return function(){ct(st)}},Tt=function(st){ct(st.data)},$t=function(st){w.postMessage(et(st),d.protocol+"//"+d.host)};B&&V||(B=function(st){M(arguments.length,1);var bt=C(st)?st:K(st),gt=D(arguments,1);return lt[++at]=function(){k(bt,void 0,gt)},m(at),at},V=function(st){delete lt[st]},H?m=function(st){N.nextTick(Ct(st))}:Z&&Z.now?m=function(st){Z.now(Ct(st))}:Q&&!W?(b=(v=new Q).port2,v.port1.onmessage=Tt,m=x(b.postMessage,b)):w.addEventListener&&C(w.postMessage)&&!w.importScripts&&d&&d.protocol!=="file:"&&!P($t)?(m=$t,w.addEventListener("message",Tt,!1)):m=wt in $("script")?function(st){A.appendChild($("script"))[wt]=function(){A.removeChild(this),ct(st)}}:function(st){setTimeout(Ct(st),0)}),y.exports={set:B,clear:V}},863:(y,j,i)=>{var d=i(1702);y.exports=d(1 .valueOf)},1400:(y,j,i)=>{var d=i(9303),m=Math.max,v=Math.min;y.exports=function(b,w){var k=d(b);return k<0?m(k+w,0):v(k,w)}},5656:(y,j,i)=>{var d=i(8361),m=i(4488);y.exports=function(v){return d(m(v))}},9303:(y,j,i)=>{var d=i(4758);y.exports=function(m){var v=+m;return v!=v||v===0?0:d(v)}},7466:(y,j,i)=>{var d=i(9303),m=Math.min;y.exports=function(v){return v>0?m(d(v),9007199254740991):0}},7908:(y,j,i)=>{var d=i(4488),m=Object;y.exports=function(v){return m(d(v))}},7593:(y,j,i)=>{var d=i(6916),m=i(111),v=i(2190),b=i(8173),w=i(2140),k=i(5112),x=TypeError,C=k("toPrimitive");y.exports=function(E,P){if(!m(E)||v(E))return E;var A,D=b(E,C);if(D){if(P===void 0&&(P="default"),A=d(D,E,P),!m(A)||v(A))return A;throw x("Can't convert object to primitive value")}return P===void 0&&(P="number"),w(E,P)}},4948:(y,j,i)=>{var d=i(7593),m=i(2190);y.exports=function(v){var b=d(v,"string");return m(b)?b:b+""}},1694:(y,j,i)=>{var d={};d[i(5112)("toStringTag")]="z",y.exports=String(d)==="[object z]"},1340:(y,j,i)=>{var d=i(648),m=String;y.exports=function(v){if(d(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return m(v)}},6330:y=>{var j=String;y.exports=function(i){try{return j(i)}catch{return"Object"}}},9711:(y,j,i)=>{var d=i(1702),m=0,v=Math.random(),b=d(1 .toString);y.exports=function(w){return"Symbol("+(w===void 0?"":w)+")_"+b(++m+v,36)}},3307:(y,j,i)=>{var d=i(6293);y.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},3353:(y,j,i)=>{var d=i(9781),m=i(7293);y.exports=d&&m(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},8053:y=>{var j=TypeError;y.exports=function(i,d){if(i<d)throw j("Not enough arguments");return i}},4811:(y,j,i)=>{var d=i(7854),m=i(614),v=d.WeakMap;y.exports=m(v)&&/native code/.test(String(v))},6800:(y,j,i)=>{var d=i(857),m=i(2597),v=i(6061),b=i(3070).f;y.exports=function(w){var k=d.Symbol||(d.Symbol={});m(k,w)||b(k,w,{value:v.f(w)})}},6061:(y,j,i)=>{var d=i(5112);j.f=d},5112:(y,j,i)=>{var d=i(7854),m=i(2309),v=i(2597),b=i(9711),w=i(6293),k=i(3307),x=d.Symbol,C=m("wks"),E=k?x.for||x:x&&x.withoutSetter||b;y.exports=function(P){return v(C,P)||(C[P]=w&&v(x,P)?x[P]:E("Symbol."+P)),C[P]}},1361:y=>{y.exports=`
4
+ \v\f\r                 \u2028\u2029\uFEFF`},2222:(y,j,i)=>{var d=i(2109),m=i(7293),v=i(3157),b=i(111),w=i(7908),k=i(6244),x=i(7207),C=i(6135),E=i(5417),P=i(1194),A=i(5112),D=i(7392),$=A("isConcatSpreadable"),M=D>=51||!m(function(){var H=[];return H[$]=!1,H.concat()[0]!==H}),W=function(H){if(!b(H))return!1;var B=H[$];return B!==void 0?!!B:v(H)};d({target:"Array",proto:!0,arity:1,forced:!M||!P("concat")},{concat:function(H){var B,V,N,Z,K,Q=w(this),et=E(Q,0),at=0;for(B=-1,N=arguments.length;B<N;B++)if(W(K=B===-1?Q:arguments[B]))for(Z=k(K),x(at+Z),V=0;V<Z;V++,at++)V in K&&C(et,at,K[V]);else x(at+1),C(et,at++,K);return et.length=at,et}})},6541:(y,j,i)=>{var d=i(2109),m=i(2092).every;d({target:"Array",proto:!0,forced:!i(9341)("every")},{every:function(v){return m(this,v,arguments.length>1?arguments[1]:void 0)}})},7327:(y,j,i)=>{var d=i(2109),m=i(2092).filter;d({target:"Array",proto:!0,forced:!i(1194)("filter")},{filter:function(v){return m(this,v,arguments.length>1?arguments[1]:void 0)}})},9826:(y,j,i)=>{var d=i(2109),m=i(2092).find,v=i(1223),b="find",w=!0;b in[]&&Array(1)[b](function(){w=!1}),d({target:"Array",proto:!0,forced:w},{find:function(k){return m(this,k,arguments.length>1?arguments[1]:void 0)}}),v(b)},9554:(y,j,i)=>{var d=i(2109),m=i(8533);d({target:"Array",proto:!0,forced:[].forEach!=m},{forEach:m})},1038:(y,j,i)=>{var d=i(2109),m=i(8457);d({target:"Array",stat:!0,forced:!i(7072)(function(v){Array.from(v)})},{from:m})},6699:(y,j,i)=>{var d=i(2109),m=i(1318).includes,v=i(7293),b=i(1223);d({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(w){return m(this,w,arguments.length>1?arguments[1]:void 0)}}),b("includes")},2772:(y,j,i)=>{var d=i(2109),m=i(1470),v=i(1318).indexOf,b=i(9341),w=m([].indexOf),k=!!w&&1/w([1],1,-0)<0;d({target:"Array",proto:!0,forced:k||!b("indexOf")},{indexOf:function(x){var C=arguments.length>1?arguments[1]:void 0;return k?w(this,x,C)||0:v(this,x,C)}})},9753:(y,j,i)=>{i(2109)({target:"Array",stat:!0},{isArray:i(3157)})},6992:(y,j,i)=>{var d=i(5656),m=i(1223),v=i(7497),b=i(9909),w=i(3070).f,k=i(1656),x=i(6178),C=i(1913),E=i(9781),P="Array Iterator",A=b.set,D=b.getterFor(P);y.exports=k(Array,"Array",function(M,W){A(this,{type:P,target:d(M),index:0,kind:W})},function(){var M=D(this),W=M.target,H=M.kind,B=M.index++;return!W||B>=W.length?(M.target=void 0,x(void 0,!0)):x(H=="keys"?B:H=="values"?W[B]:[B,W[B]],!1)},"values");var $=v.Arguments=v.Array;if(m("keys"),m("values"),m("entries"),!C&&E&&$.name!=="values")try{w($,"name",{value:"values"})}catch{}},9600:(y,j,i)=>{var d=i(2109),m=i(1702),v=i(8361),b=i(5656),w=i(9341),k=m([].join);d({target:"Array",proto:!0,forced:v!=Object||!w("join",",")},{join:function(x){return k(b(this),x===void 0?",":x)}})},1249:(y,j,i)=>{var d=i(2109),m=i(2092).map;d({target:"Array",proto:!0,forced:!i(1194)("map")},{map:function(v){return m(this,v,arguments.length>1?arguments[1]:void 0)}})},5827:(y,j,i)=>{var d=i(2109),m=i(3671).left,v=i(9341),b=i(7392);d({target:"Array",proto:!0,forced:!i(5268)&&b>79&&b<83||!v("reduce")},{reduce:function(w){var k=arguments.length;return m(this,w,k,k>1?arguments[1]:void 0)}})},5069:(y,j,i)=>{var d=i(2109),m=i(1702),v=i(3157),b=m([].reverse),w=[1,2];d({target:"Array",proto:!0,forced:String(w)===String(w.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),b(this)}})},7042:(y,j,i)=>{var d=i(2109),m=i(3157),v=i(4411),b=i(111),w=i(1400),k=i(6244),x=i(5656),C=i(6135),E=i(5112),P=i(1194),A=i(206),D=P("slice"),$=E("species"),M=Array,W=Math.max;d({target:"Array",proto:!0,forced:!D},{slice:function(H,B){var V,N,Z,K=x(this),Q=k(K),et=w(H,Q),at=w(B===void 0?Q:B,Q);if(m(K)&&(V=K.constructor,(v(V)&&(V===M||m(V.prototype))||b(V)&&(V=V[$])===null)&&(V=void 0),V===M||V===void 0))return A(K,et,at);for(N=new(V===void 0?M:V)(W(at-et,0)),Z=0;et<at;et++,Z++)et in K&&C(N,Z,K[et]);return N.length=Z,N}})},5212:(y,j,i)=>{var d=i(2109),m=i(2092).some;d({target:"Array",proto:!0,forced:!i(9341)("some")},{some:function(v){return m(this,v,arguments.length>1?arguments[1]:void 0)}})},2707:(y,j,i)=>{var d=i(2109),m=i(1702),v=i(9662),b=i(7908),w=i(6244),k=i(5117),x=i(1340),C=i(7293),E=i(4362),P=i(9341),A=i(8886),D=i(256),$=i(7392),M=i(8008),W=[],H=m(W.sort),B=m(W.push),V=C(function(){W.sort(void 0)}),N=C(function(){W.sort(null)}),Z=P("sort"),K=!C(function(){if($)return $<70;if(!(A&&A>3)){if(D)return!0;if(M)return M<603;var Q,et,at,lt,wt="";for(Q=65;Q<76;Q++){switch(et=String.fromCharCode(Q),Q){case 66:case 69:case 70:case 72:at=3;break;case 68:case 71:at=4;break;default:at=2}for(lt=0;lt<47;lt++)W.push({k:et+lt,v:at})}for(W.sort(function(ct,Ct){return Ct.v-ct.v}),lt=0;lt<W.length;lt++)et=W[lt].k.charAt(0),wt.charAt(wt.length-1)!==et&&(wt+=et);return wt!=="DGBEFHACIJK"}});d({target:"Array",proto:!0,forced:V||!N||!Z||!K},{sort:function(Q){Q!==void 0&&v(Q);var et=b(this);if(K)return Q===void 0?H(et):H(et,Q);var at,lt,wt=[],ct=w(et);for(lt=0;lt<ct;lt++)lt in et&&B(wt,et[lt]);for(E(wt,function(Ct){return function(Tt,$t){return $t===void 0?-1:Tt===void 0?1:Ct!==void 0?+Ct(Tt,$t)||0:x(Tt)>x($t)?1:-1}}(Q)),at=w(wt),lt=0;lt<at;)et[lt]=wt[lt++];for(;lt<ct;)k(et,lt++);return et}})},561:(y,j,i)=>{var d=i(2109),m=i(7908),v=i(1400),b=i(9303),w=i(6244),k=i(3658),x=i(7207),C=i(5417),E=i(6135),P=i(5117),A=i(1194)("splice"),D=Math.max,$=Math.min;d({target:"Array",proto:!0,forced:!A},{splice:function(M,W){var H,B,V,N,Z,K,Q=m(this),et=w(Q),at=v(M,et),lt=arguments.length;for(lt===0?H=B=0:lt===1?(H=0,B=et-at):(H=lt-2,B=$(D(b(W),0),et-at)),x(et+H-B),V=C(Q,B),N=0;N<B;N++)(Z=at+N)in Q&&E(V,N,Q[Z]);if(V.length=B,H<B){for(N=at;N<et-B;N++)K=N+H,(Z=N+B)in Q?Q[K]=Q[Z]:P(Q,K);for(N=et;N>et-B+H;N--)P(Q,N-1)}else if(H>B)for(N=et-B;N>at;N--)K=N+H-1,(Z=N+B-1)in Q?Q[K]=Q[Z]:P(Q,K);for(N=0;N<H;N++)Q[N+at]=arguments[N+2];return k(Q,et-B+H),V}})},3843:(y,j,i)=>{var d=i(2109),m=i(1702),v=Date,b=m(v.prototype.getTime);d({target:"Date",stat:!0},{now:function(){return b(new v)}})},8733:(y,j,i)=>{var d=i(2109),m=i(5573);d({target:"Date",proto:!0,forced:Date.prototype.toISOString!==m},{toISOString:m})},6078:(y,j,i)=>{var d=i(2597),m=i(8052),v=i(8709),b=i(5112)("toPrimitive"),w=Date.prototype;d(w,b)||m(w,b,v)},3710:(y,j,i)=>{var d=i(1702),m=i(8052),v=Date.prototype,b="Invalid Date",w="toString",k=d(v[w]),x=d(v.getTime);String(new Date(NaN))!=b&&m(v,w,function(){var C=x(this);return C==C?k(this):b})},4812:(y,j,i)=>{var d=i(2109),m=i(7065);d({target:"Function",proto:!0,forced:Function.bind!==m},{bind:m})},8309:(y,j,i)=>{var d=i(9781),m=i(6530).EXISTS,v=i(1702),b=i(7045),w=Function.prototype,k=v(w.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,C=v(x.exec);d&&!m&&b(w,"name",{configurable:!0,get:function(){try{return C(x,k(this))[1]}catch{return""}}})},8862:(y,j,i)=>{var d=i(2109),m=i(5005),v=i(2104),b=i(6916),w=i(1702),k=i(7293),x=i(614),C=i(2190),E=i(206),P=i(8044),A=i(6293),D=String,$=m("JSON","stringify"),M=w(/./.exec),W=w("".charAt),H=w("".charCodeAt),B=w("".replace),V=w(1 .toString),N=/[\uD800-\uDFFF]/g,Z=/^[\uD800-\uDBFF]$/,K=/^[\uDC00-\uDFFF]$/,Q=!A||k(function(){var wt=m("Symbol")();return $([wt])!="[null]"||$({a:wt})!="{}"||$(Object(wt))!="{}"}),et=k(function(){return $("\uDF06\uD834")!=='"\\udf06\\ud834"'||$("\uDEAD")!=='"\\udead"'}),at=function(wt,ct){var Ct=E(arguments),Tt=P(ct);if(x(Tt)||wt!==void 0&&!C(wt))return Ct[1]=function($t,st){if(x(Tt)&&(st=b(Tt,this,D($t),st)),!C(st))return st},v($,null,Ct)},lt=function(wt,ct,Ct){var Tt=W(Ct,ct-1),$t=W(Ct,ct+1);return M(Z,wt)&&!M(K,$t)||M(K,wt)&&!M(Z,Tt)?"\\u"+V(H(wt,0),16):wt};$&&d({target:"JSON",stat:!0,arity:3,forced:Q||et},{stringify:function(wt,ct,Ct){var Tt=E(arguments),$t=v(Q?at:$,null,Tt);return et&&typeof $t=="string"?B($t,N,lt):$t}})},3706:(y,j,i)=>{var d=i(7854);i(8003)(d.JSON,"JSON",!0)},2703:(y,j,i)=>{i(8003)(Math,"Math",!0)},9653:(y,j,i)=>{var d=i(2109),m=i(1913),v=i(9781),b=i(7854),w=i(857),k=i(1702),x=i(4705),C=i(2597),E=i(9587),P=i(7976),A=i(2190),D=i(7593),$=i(7293),M=i(8006).f,W=i(1236).f,H=i(3070).f,B=i(863),V=i(3111).trim,N="Number",Z=b[N],K=w[N],Q=Z.prototype,et=b.TypeError,at=k("".slice),lt=k("".charCodeAt),wt=function(bt){var gt=D(bt,"number");return typeof gt=="bigint"?gt:ct(gt)},ct=function(bt){var gt,Mt,Jt,ie,St,kt,Rt,Vt,_t=D(bt,"number");if(A(_t))throw et("Cannot convert a Symbol value to a number");if(typeof _t=="string"&&_t.length>2){if(_t=V(_t),(gt=lt(_t,0))===43||gt===45){if((Mt=lt(_t,2))===88||Mt===120)return NaN}else if(gt===48){switch(lt(_t,1)){case 66:case 98:Jt=2,ie=49;break;case 79:case 111:Jt=8,ie=55;break;default:return+_t}for(kt=(St=at(_t,2)).length,Rt=0;Rt<kt;Rt++)if((Vt=lt(St,Rt))<48||Vt>ie)return NaN;return parseInt(St,Jt)}}return+_t},Ct=x(N,!Z(" 0o1")||!Z("0b1")||Z("+0x1")),Tt=function(bt){return P(Q,bt)&&$(function(){B(bt)})},$t=function(bt){var gt=arguments.length<1?0:Z(wt(bt));return Tt(this)?E(Object(gt),this,$t):gt};$t.prototype=Q,Ct&&!m&&(Q.constructor=$t),d({global:!0,constructor:!0,wrap:!0,forced:Ct},{Number:$t});var st=function(bt,gt){for(var Mt,Jt=v?M(gt):"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(","),ie=0;Jt.length>ie;ie++)C(gt,Mt=Jt[ie])&&!C(bt,Mt)&&H(bt,Mt,W(gt,Mt))};m&&K&&st(w[N],K),(Ct||m)&&st(w[N],Z)},6977:(y,j,i)=>{var d=i(2109),m=i(1702),v=i(9303),b=i(863),w=i(8415),k=i(7293),x=RangeError,C=String,E=Math.floor,P=m(w),A=m("".slice),D=m(1 .toFixed),$=function(B,V,N){return V===0?N:V%2==1?$(B,V-1,N*B):$(B*B,V/2,N)},M=function(B,V,N){for(var Z=-1,K=N;++Z<6;)K+=V*B[Z],B[Z]=K%1e7,K=E(K/1e7)},W=function(B,V){for(var N=6,Z=0;--N>=0;)Z+=B[N],B[N]=E(Z/V),Z=Z%V*1e7},H=function(B){for(var V=6,N="";--V>=0;)if(N!==""||V===0||B[V]!==0){var Z=C(B[V]);N=N===""?Z:N+P("0",7-Z.length)+Z}return N};d({target:"Number",proto:!0,forced:k(function(){return D(8e-5,3)!=="0.000"||D(.9,0)!=="1"||D(1.255,2)!=="1.25"||D(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!k(function(){D({})})},{toFixed:function(B){var V,N,Z,K,Q=b(this),et=v(B),at=[0,0,0,0,0,0],lt="",wt="0";if(et<0||et>20)throw x("Incorrect fraction digits");if(Q!=Q)return"NaN";if(Q<=-1e21||Q>=1e21)return C(Q);if(Q<0&&(lt="-",Q=-Q),Q>1e-21)if(N=(V=function(ct){for(var Ct=0,Tt=ct;Tt>=4096;)Ct+=12,Tt/=4096;for(;Tt>=2;)Ct+=1,Tt/=2;return Ct}(Q*$(2,69,1))-69)<0?Q*$(2,-V,1):Q/$(2,V,1),N*=4503599627370496,(V=52-V)>0){for(M(at,0,N),Z=et;Z>=7;)M(at,1e7,0),Z-=7;for(M(at,$(10,Z,1),0),Z=V-1;Z>=23;)W(at,8388608),Z-=23;W(at,1<<Z),M(at,1,1),W(at,2),wt=H(at)}else M(at,0,N),M(at,1<<-V,0),wt=H(at)+P("0",et);return et>0?lt+((K=wt.length)<=et?"0."+P("0",et-K)+wt:A(wt,0,K-et)+"."+A(wt,K-et)):lt+wt}})},9601:(y,j,i)=>{var d=i(2109),m=i(1574);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==m},{assign:m})},8011:(y,j,i)=>{i(2109)({target:"Object",stat:!0,sham:!i(9781)},{create:i(30)})},3321:(y,j,i)=>{var d=i(2109),m=i(9781),v=i(6048).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==v,sham:!m},{defineProperties:v})},9070:(y,j,i)=>{var d=i(2109),m=i(9781),v=i(3070).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==v,sham:!m},{defineProperty:v})},9720:(y,j,i)=>{var d=i(2109),m=i(4699).entries;d({target:"Object",stat:!0},{entries:function(v){return m(v)}})},5003:(y,j,i)=>{var d=i(2109),m=i(7293),v=i(5656),b=i(1236).f,w=i(9781);d({target:"Object",stat:!0,forced:!w||m(function(){b(1)}),sham:!w},{getOwnPropertyDescriptor:function(k,x){return b(v(k),x)}})},9337:(y,j,i)=>{var d=i(2109),m=i(9781),v=i(3887),b=i(5656),w=i(1236),k=i(6135);d({target:"Object",stat:!0,sham:!m},{getOwnPropertyDescriptors:function(x){for(var C,E,P=b(x),A=w.f,D=v(P),$={},M=0;D.length>M;)(E=A(P,C=D[M++]))!==void 0&&k($,C,E);return $}})},9660:(y,j,i)=>{var d=i(2109),m=i(6293),v=i(7293),b=i(5181),w=i(7908);d({target:"Object",stat:!0,forced:!m||v(function(){b.f(1)})},{getOwnPropertySymbols:function(k){var x=b.f;return x?x(w(k)):[]}})},489:(y,j,i)=>{var d=i(2109),m=i(7293),v=i(7908),b=i(9518),w=i(8544);d({target:"Object",stat:!0,forced:m(function(){b(1)}),sham:!w},{getPrototypeOf:function(k){return b(v(k))}})},7941:(y,j,i)=>{var d=i(2109),m=i(7908),v=i(1956);d({target:"Object",stat:!0,forced:i(7293)(function(){v(1)})},{keys:function(b){return v(m(b))}})},8304:(y,j,i)=>{i(2109)({target:"Object",stat:!0},{setPrototypeOf:i(7674)})},1539:(y,j,i)=>{var d=i(1694),m=i(8052),v=i(288);d||m(Object.prototype,"toString",v,{unsafe:!0})},6833:(y,j,i)=>{var d=i(2109),m=i(4699).values;d({target:"Object",stat:!0},{values:function(v){return m(v)}})},4678:(y,j,i)=>{var d=i(2109),m=i(2814);d({global:!0,forced:parseFloat!=m},{parseFloat:m})},1058:(y,j,i)=>{var d=i(2109),m=i(3009);d({global:!0,forced:parseInt!=m},{parseInt:m})},821:(y,j,i)=>{var d=i(2109),m=i(6916),v=i(9662),b=i(8523),w=i(2534),k=i(408);d({target:"Promise",stat:!0,forced:i(612)},{all:function(x){var C=this,E=b.f(C),P=E.resolve,A=E.reject,D=w(function(){var $=v(C.resolve),M=[],W=0,H=1;k(x,function(B){var V=W++,N=!1;H++,m($,C,B).then(function(Z){N||(N=!0,M[V]=Z,--H||P(M))},A)}),--H||P(M)});return D.error&&A(D.value),E.promise}})},4164:(y,j,i)=>{var d=i(2109),m=i(1913),v=i(3702).CONSTRUCTOR,b=i(2492),w=i(5005),k=i(614),x=i(8052),C=b&&b.prototype;if(d({target:"Promise",proto:!0,forced:v,real:!0},{catch:function(P){return this.then(void 0,P)}}),!m&&k(b)){var E=w("Promise").prototype.catch;C.catch!==E&&x(C,"catch",E,{unsafe:!0})}},3401:(y,j,i)=>{var d,m,v,b=i(2109),w=i(1913),k=i(5268),x=i(7854),C=i(6916),E=i(8052),P=i(7674),A=i(8003),D=i(6340),$=i(9662),M=i(614),W=i(111),H=i(5787),B=i(6707),V=i(261).set,N=i(5948),Z=i(842),K=i(2534),Q=i(8572),et=i(9909),at=i(2492),lt=i(3702),wt=i(8523),ct="Promise",Ct=lt.CONSTRUCTOR,Tt=lt.REJECTION_EVENT,$t=lt.SUBCLASSING,st=et.getterFor(ct),bt=et.set,gt=at&&at.prototype,Mt=at,Jt=gt,ie=x.TypeError,St=x.document,kt=x.process,Rt=wt.f,Vt=Rt,_t=!!(St&&St.createEvent&&x.dispatchEvent),De="unhandledrejection",ne=function(ot){var yt;return!(!W(ot)||!M(yt=ot.then))&&yt},we=function(ot,yt){var Ft,Dt,Yt,Pe=yt.value,Te=yt.state==1,Ye=Te?ot.ok:ot.fail,Le=ot.resolve,Ve=ot.reject,de=ot.domain;try{Ye?(Te||(yt.rejection===2&&ve(yt),yt.rejection=1),Ye===!0?Ft=Pe:(de&&de.enter(),Ft=Ye(Pe),de&&(de.exit(),Yt=!0)),Ft===ot.promise?Ve(ie("Promise-chain cycle")):(Dt=ne(Ft))?C(Dt,Ft,Le,Ve):Le(Ft)):Ve(Pe)}catch(Fr){de&&!Yt&&de.exit(),Ve(Fr)}},se=function(ot,yt){ot.notified||(ot.notified=!0,N(function(){for(var Ft,Dt=ot.reactions;Ft=Dt.get();)we(Ft,ot);ot.notified=!1,yt&&!ot.rejection&&me(ot)}))},Fe=function(ot,yt,Ft){var Dt,Yt;_t?((Dt=St.createEvent("Event")).promise=yt,Dt.reason=Ft,Dt.initEvent(ot,!1,!0),x.dispatchEvent(Dt)):Dt={promise:yt,reason:Ft},!Tt&&(Yt=x["on"+ot])?Yt(Dt):ot===De&&Z("Unhandled promise rejection",Ft)},me=function(ot){C(V,x,function(){var yt,Ft=ot.facade,Dt=ot.value;if(Me(ot)&&(yt=K(function(){k?kt.emit("unhandledRejection",Dt,Ft):Fe(De,Ft,Dt)}),ot.rejection=k||Me(ot)?2:1,yt.error))throw yt.value})},Me=function(ot){return ot.rejection!==1&&!ot.parent},ve=function(ot){C(V,x,function(){var yt=ot.facade;k?kt.emit("rejectionHandled",yt):Fe("rejectionhandled",yt,ot.value)})},Ee=function(ot,yt,Ft){return function(Dt){ot(yt,Dt,Ft)}},pe=function(ot,yt,Ft){ot.done||(ot.done=!0,Ft&&(ot=Ft),ot.value=yt,ot.state=2,se(ot,!0))},$e=function(ot,yt,Ft){if(!ot.done){ot.done=!0,Ft&&(ot=Ft);try{if(ot.facade===yt)throw ie("Promise can't be resolved itself");var Dt=ne(yt);Dt?N(function(){var Yt={done:!1};try{C(Dt,yt,Ee($e,Yt,ot),Ee(pe,Yt,ot))}catch(Pe){pe(Yt,Pe,ot)}}):(ot.value=yt,ot.state=1,se(ot,!1))}catch(Yt){pe({done:!1},Yt,ot)}}};if(Ct&&(Jt=(Mt=function(ot){H(this,Jt),$(ot),C(d,this);var yt=st(this);try{ot(Ee($e,yt),Ee(pe,yt))}catch(Ft){pe(yt,Ft)}}).prototype,(d=function(ot){bt(this,{type:ct,done:!1,notified:!1,parent:!1,reactions:new Q,rejection:!1,state:0,value:void 0})}).prototype=E(Jt,"then",function(ot,yt){var Ft=st(this),Dt=Rt(B(this,Mt));return Ft.parent=!0,Dt.ok=!M(ot)||ot,Dt.fail=M(yt)&&yt,Dt.domain=k?kt.domain:void 0,Ft.state==0?Ft.reactions.add(Dt):N(function(){we(Dt,Ft)}),Dt.promise}),m=function(){var ot=new d,yt=st(ot);this.promise=ot,this.resolve=Ee($e,yt),this.reject=Ee(pe,yt)},wt.f=Rt=function(ot){return ot===Mt||ot===void 0?new m(ot):Vt(ot)},!w&&M(at)&&gt!==Object.prototype)){v=gt.then,$t||E(gt,"then",function(ot,yt){var Ft=this;return new Mt(function(Dt,Yt){C(v,Ft,Dt,Yt)}).then(ot,yt)},{unsafe:!0});try{delete gt.constructor}catch{}P&&P(gt,Jt)}b({global:!0,constructor:!0,wrap:!0,forced:Ct},{Promise:Mt}),A(Mt,ct,!1,!0),D(ct)},8674:(y,j,i)=>{i(3401),i(821),i(4164),i(6027),i(683),i(6294)},6027:(y,j,i)=>{var d=i(2109),m=i(6916),v=i(9662),b=i(8523),w=i(2534),k=i(408);d({target:"Promise",stat:!0,forced:i(612)},{race:function(x){var C=this,E=b.f(C),P=E.reject,A=w(function(){var D=v(C.resolve);k(x,function($){m(D,C,$).then(E.resolve,P)})});return A.error&&P(A.value),E.promise}})},683:(y,j,i)=>{var d=i(2109),m=i(6916),v=i(8523);d({target:"Promise",stat:!0,forced:i(3702).CONSTRUCTOR},{reject:function(b){var w=v.f(this);return m(w.reject,void 0,b),w.promise}})},6294:(y,j,i)=>{var d=i(2109),m=i(5005),v=i(1913),b=i(2492),w=i(3702).CONSTRUCTOR,k=i(9478),x=m("Promise"),C=v&&!w;d({target:"Promise",stat:!0,forced:v||w},{resolve:function(E){return k(C&&this===x?b:this,E)}})},2419:(y,j,i)=>{var d=i(2109),m=i(5005),v=i(2104),b=i(7065),w=i(9483),k=i(9670),x=i(111),C=i(30),E=i(7293),P=m("Reflect","construct"),A=Object.prototype,D=[].push,$=E(function(){function H(){}return!(P(function(){},[],H)instanceof H)}),M=!E(function(){P(function(){})}),W=$||M;d({target:"Reflect",stat:!0,forced:W,sham:W},{construct:function(H,B){w(H),k(B);var V=arguments.length<3?H:w(arguments[2]);if(M&&!$)return P(H,B,V);if(H==V){switch(B.length){case 0:return new H;case 1:return new H(B[0]);case 2:return new H(B[0],B[1]);case 3:return new H(B[0],B[1],B[2]);case 4:return new H(B[0],B[1],B[2],B[3])}var N=[null];return v(D,N,B),new(v(b,H,N))}var Z=V.prototype,K=C(x(Z)?Z:A),Q=v(H,K,B);return x(Q)?Q:K}})},4819:(y,j,i)=>{var d=i(2109),m=i(6916),v=i(111),b=i(9670),w=i(5032),k=i(1236),x=i(9518);d({target:"Reflect",stat:!0},{get:function C(E,P){var A,D,$=arguments.length<3?E:arguments[2];return b(E)===$?E[P]:(A=k.f(E,P))?w(A)?A.value:A.get===void 0?void 0:m(A.get,$):v(D=x(E))?C(D,P,$):void 0}})},4603:(y,j,i)=>{var d=i(9781),m=i(7854),v=i(1702),b=i(4705),w=i(9587),k=i(8880),x=i(8006).f,C=i(7976),E=i(7850),P=i(1340),A=i(4706),D=i(2999),$=i(2626),M=i(8052),W=i(7293),H=i(2597),B=i(9909).enforce,V=i(6340),N=i(5112),Z=i(9441),K=i(7168),Q=N("match"),et=m.RegExp,at=et.prototype,lt=m.SyntaxError,wt=v(at.exec),ct=v("".charAt),Ct=v("".replace),Tt=v("".indexOf),$t=v("".slice),st=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,bt=/a/g,gt=/a/g,Mt=new et(bt)!==bt,Jt=D.MISSED_STICKY,ie=D.UNSUPPORTED_Y;if(b("RegExp",d&&(!Mt||Jt||Z||K||W(function(){return gt[Q]=!1,et(bt)!=bt||et(gt)==gt||et(bt,"i")!="/a/i"})))){for(var St=function(Vt,_t){var De,ne,we,se,Fe,me,Me=C(at,this),ve=E(Vt),Ee=_t===void 0,pe=[],$e=Vt;if(!Me&&ve&&Ee&&Vt.constructor===St)return Vt;if((ve||C(at,Vt))&&(Vt=Vt.source,Ee&&(_t=A($e))),Vt=Vt===void 0?"":P(Vt),_t=_t===void 0?"":P(_t),$e=Vt,Z&&"dotAll"in bt&&(ne=!!_t&&Tt(_t,"s")>-1)&&(_t=Ct(_t,/s/g,"")),De=_t,Jt&&"sticky"in bt&&(we=!!_t&&Tt(_t,"y")>-1)&&ie&&(_t=Ct(_t,/y/g,"")),K&&(se=function(ot){for(var yt,Ft=ot.length,Dt=0,Yt="",Pe=[],Te={},Ye=!1,Le=!1,Ve=0,de="";Dt<=Ft;Dt++){if((yt=ct(ot,Dt))==="\\")yt+=ct(ot,++Dt);else if(yt==="]")Ye=!1;else if(!Ye)switch(!0){case yt==="[":Ye=!0;break;case yt==="(":wt(st,$t(ot,Dt+1))&&(Dt+=2,Le=!0),Yt+=yt,Ve++;continue;case(yt===">"&&Le):if(de===""||H(Te,de))throw new lt("Invalid capture group name");Te[de]=!0,Pe[Pe.length]=[de,Ve],Le=!1,de="";continue}Le?de+=yt:Yt+=yt}return[Yt,Pe]}(Vt),Vt=se[0],pe=se[1]),Fe=w(et(Vt,_t),Me?this:at,St),(ne||we||pe.length)&&(me=B(Fe),ne&&(me.dotAll=!0,me.raw=St(function(ot){for(var yt,Ft=ot.length,Dt=0,Yt="",Pe=!1;Dt<=Ft;Dt++)(yt=ct(ot,Dt))!=="\\"?Pe||yt!=="."?(yt==="["?Pe=!0:yt==="]"&&(Pe=!1),Yt+=yt):Yt+="[\\s\\S]":Yt+=yt+ct(ot,++Dt);return Yt}(Vt),De)),we&&(me.sticky=!0),pe.length&&(me.groups=pe)),Vt!==$e)try{k(Fe,"source",$e===""?"(?:)":$e)}catch{}return Fe},kt=x(et),Rt=0;kt.length>Rt;)$(St,et,kt[Rt++]);at.constructor=St,St.prototype=at,M(m,"RegExp",St,{constructor:!0})}V("RegExp")},4916:(y,j,i)=>{var d=i(2109),m=i(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==m},{exec:m})},9714:(y,j,i)=>{var d=i(6530).PROPER,m=i(8052),v=i(9670),b=i(1340),w=i(7293),k=i(4706),x="toString",C=RegExp.prototype[x],E=w(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),P=d&&C.name!=x;(E||P)&&m(RegExp.prototype,x,function(){var A=v(this);return"/"+b(A.source)+"/"+b(k(A))},{unsafe:!0})},2023:(y,j,i)=>{var d=i(2109),m=i(1702),v=i(3929),b=i(4488),w=i(1340),k=i(4964),x=m("".indexOf);d({target:"String",proto:!0,forced:!k("includes")},{includes:function(C){return!!~x(w(b(this)),w(v(C)),arguments.length>1?arguments[1]:void 0)}})},8783:(y,j,i)=>{var d=i(8710).charAt,m=i(1340),v=i(9909),b=i(1656),w=i(6178),k="String Iterator",x=v.set,C=v.getterFor(k);b(String,"String",function(E){x(this,{type:k,string:m(E),index:0})},function(){var E,P=C(this),A=P.string,D=P.index;return D>=A.length?w(void 0,!0):(E=d(A,D),P.index+=E.length,w(E,!1))})},4723:(y,j,i)=>{var d=i(6916),m=i(7007),v=i(9670),b=i(8554),w=i(7466),k=i(1340),x=i(4488),C=i(8173),E=i(1530),P=i(7651);m("match",function(A,D,$){return[function(M){var W=x(this),H=b(M)?void 0:C(M,A);return H?d(H,M,W):new RegExp(M)[A](k(W))},function(M){var W=v(this),H=k(M),B=$(D,W,H);if(B.done)return B.value;if(!W.global)return P(W,H);var V=W.unicode;W.lastIndex=0;for(var N,Z=[],K=0;(N=P(W,H))!==null;){var Q=k(N[0]);Z[K]=Q,Q===""&&(W.lastIndex=E(H,w(W.lastIndex),V)),K++}return K===0?null:Z}]})},5306:(y,j,i)=>{var d=i(2104),m=i(6916),v=i(1702),b=i(7007),w=i(7293),k=i(9670),x=i(614),C=i(8554),E=i(9303),P=i(7466),A=i(1340),D=i(4488),$=i(1530),M=i(8173),W=i(647),H=i(7651),B=i(5112)("replace"),V=Math.max,N=Math.min,Z=v([].concat),K=v([].push),Q=v("".indexOf),et=v("".slice),at="a".replace(/./,"$0")==="$0",lt=!!/./[B]&&/./[B]("a","$0")==="";b("replace",function(wt,ct,Ct){var Tt=lt?"$":"$0";return[function($t,st){var bt=D(this),gt=C($t)?void 0:M($t,B);return gt?m(gt,$t,bt,st):m(ct,A(bt),$t,st)},function($t,st){var bt=k(this),gt=A($t);if(typeof st=="string"&&Q(st,Tt)===-1&&Q(st,"$<")===-1){var Mt=Ct(ct,bt,gt,st);if(Mt.done)return Mt.value}var Jt=x(st);Jt||(st=A(st));var ie=bt.global;if(ie){var St=bt.unicode;bt.lastIndex=0}for(var kt=[];;){var Rt=H(bt,gt);if(Rt===null||(K(kt,Rt),!ie))break;A(Rt[0])===""&&(bt.lastIndex=$(gt,P(bt.lastIndex),St))}for(var Vt,_t="",De=0,ne=0;ne<kt.length;ne++){for(var we=A((Rt=kt[ne])[0]),se=V(N(E(Rt.index),gt.length),0),Fe=[],me=1;me<Rt.length;me++)K(Fe,(Vt=Rt[me])===void 0?Vt:String(Vt));var Me=Rt.groups;if(Jt){var ve=Z([we],Fe,se,gt);Me!==void 0&&K(ve,Me);var Ee=A(d(st,void 0,ve))}else Ee=W(we,gt,se,Fe,Me,st);se>=De&&(_t+=et(gt,De,se)+Ee,De=se+we.length)}return _t+et(gt,De)}]},!!w(function(){var wt=/./;return wt.exec=function(){var ct=[];return ct.groups={a:"7"},ct},"".replace(wt,"$<a>")!=="7"})||!at||lt)},6755:(y,j,i)=>{var d,m=i(2109),v=i(1470),b=i(1236).f,w=i(7466),k=i(1340),x=i(3929),C=i(4488),E=i(4964),P=i(1913),A=v("".startsWith),D=v("".slice),$=Math.min,M=E("startsWith");m({target:"String",proto:!0,forced:!(!P&&!M&&(d=b(String.prototype,"startsWith"),d&&!d.writable)||M)},{startsWith:function(W){var H=k(C(this));x(W);var B=w($(arguments.length>1?arguments[1]:void 0,H.length)),V=k(W);return A?A(H,V,B):D(H,B,B+V.length)===V}})},3210:(y,j,i)=>{var d=i(2109),m=i(3111).trim;d({target:"String",proto:!0,forced:i(6091)("trim")},{trim:function(){return m(this)}})},2443:(y,j,i)=>{i(6800)("asyncIterator")},4032:(y,j,i)=>{var d=i(2109),m=i(7854),v=i(6916),b=i(1702),w=i(1913),k=i(9781),x=i(6293),C=i(7293),E=i(2597),P=i(7976),A=i(9670),D=i(5656),$=i(4948),M=i(1340),W=i(9114),H=i(30),B=i(1956),V=i(8006),N=i(1156),Z=i(5181),K=i(1236),Q=i(3070),et=i(6048),at=i(5296),lt=i(8052),wt=i(7045),ct=i(2309),Ct=i(6200),Tt=i(3501),$t=i(9711),st=i(5112),bt=i(6061),gt=i(6800),Mt=i(6532),Jt=i(8003),ie=i(9909),St=i(2092).forEach,kt=Ct("hidden"),Rt="Symbol",Vt="prototype",_t=ie.set,De=ie.getterFor(Rt),ne=Object[Vt],we=m.Symbol,se=we&&we[Vt],Fe=m.TypeError,me=m.QObject,Me=K.f,ve=Q.f,Ee=N.f,pe=at.f,$e=b([].push),ot=ct("symbols"),yt=ct("op-symbols"),Ft=ct("wks"),Dt=!me||!me[Vt]||!me[Vt].findChild,Yt=k&&C(function(){return H(ve({},"a",{get:function(){return ve(this,"a",{value:7}).a}})).a!=7})?function(Bt,Kt,Wt){var ee=Me(ne,Kt);ee&&delete ne[Kt],ve(Bt,Kt,Wt),ee&&Bt!==ne&&ve(ne,Kt,ee)}:ve,Pe=function(Bt,Kt){var Wt=ot[Bt]=H(se);return _t(Wt,{type:Rt,tag:Bt,description:Kt}),k||(Wt.description=Kt),Wt},Te=function(Bt,Kt,Wt){Bt===ne&&Te(yt,Kt,Wt),A(Bt);var ee=$(Kt);return A(Wt),E(ot,ee)?(Wt.enumerable?(E(Bt,kt)&&Bt[kt][ee]&&(Bt[kt][ee]=!1),Wt=H(Wt,{enumerable:W(0,!1)})):(E(Bt,kt)||ve(Bt,kt,W(1,{})),Bt[kt][ee]=!0),Yt(Bt,ee,Wt)):ve(Bt,ee,Wt)},Ye=function(Bt,Kt){A(Bt);var Wt=D(Kt),ee=B(Wt).concat(Fr(Wt));return St(ee,function(je){k&&!v(Le,Wt,je)||Te(Bt,je,Wt[je])}),Bt},Le=function(Bt){var Kt=$(Bt),Wt=v(pe,this,Kt);return!(this===ne&&E(ot,Kt)&&!E(yt,Kt))&&(!(Wt||!E(this,Kt)||!E(ot,Kt)||E(this,kt)&&this[kt][Kt])||Wt)},Ve=function(Bt,Kt){var Wt=D(Bt),ee=$(Kt);if(Wt!==ne||!E(ot,ee)||E(yt,ee)){var je=Me(Wt,ee);return!je||!E(ot,ee)||E(Wt,kt)&&Wt[kt][ee]||(je.enumerable=!0),je}},de=function(Bt){var Kt=Ee(D(Bt)),Wt=[];return St(Kt,function(ee){E(ot,ee)||E(Tt,ee)||$e(Wt,ee)}),Wt},Fr=function(Bt){var Kt=Bt===ne,Wt=Ee(Kt?yt:D(Bt)),ee=[];return St(Wt,function(je){!E(ot,je)||Kt&&!E(ne,je)||$e(ee,ot[je])}),ee};x||(lt(se=(we=function(){if(P(se,this))throw Fe("Symbol is not a constructor");var Bt=arguments.length&&arguments[0]!==void 0?M(arguments[0]):void 0,Kt=$t(Bt),Wt=function(ee){this===ne&&v(Wt,yt,ee),E(this,kt)&&E(this[kt],Kt)&&(this[kt][Kt]=!1),Yt(this,Kt,W(1,ee))};return k&&Dt&&Yt(ne,Kt,{configurable:!0,set:Wt}),Pe(Kt,Bt)})[Vt],"toString",function(){return De(this).tag}),lt(we,"withoutSetter",function(Bt){return Pe($t(Bt),Bt)}),at.f=Le,Q.f=Te,et.f=Ye,K.f=Ve,V.f=N.f=de,Z.f=Fr,bt.f=function(Bt){return Pe(st(Bt),Bt)},k&&(wt(se,"description",{configurable:!0,get:function(){return De(this).description}}),w||lt(ne,"propertyIsEnumerable",Le,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!x,sham:!x},{Symbol:we}),St(B(Ft),function(Bt){gt(Bt)}),d({target:Rt,stat:!0,forced:!x},{useSetter:function(){Dt=!0},useSimple:function(){Dt=!1}}),d({target:"Object",stat:!0,forced:!x,sham:!k},{create:function(Bt,Kt){return Kt===void 0?H(Bt):Ye(H(Bt),Kt)},defineProperty:Te,defineProperties:Ye,getOwnPropertyDescriptor:Ve}),d({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:de}),Mt(),Jt(we,Rt),Tt[kt]=!0},1817:(y,j,i)=>{var d=i(2109),m=i(9781),v=i(7854),b=i(1702),w=i(2597),k=i(614),x=i(7976),C=i(1340),E=i(7045),P=i(9920),A=v.Symbol,D=A&&A.prototype;if(m&&k(A)&&(!("description"in D)||A().description!==void 0)){var $={},M=function(){var K=arguments.length<1||arguments[0]===void 0?void 0:C(arguments[0]),Q=x(D,this)?new A(K):K===void 0?A():A(K);return K===""&&($[Q]=!0),Q};P(M,A),M.prototype=D,D.constructor=M;var W=String(A("test"))=="Symbol(test)",H=b(D.valueOf),B=b(D.toString),V=/^Symbol\((.*)\)[^)]+$/,N=b("".replace),Z=b("".slice);E(D,"description",{configurable:!0,get:function(){var K=H(this);if(w($,K))return"";var Q=B(K),et=W?Z(Q,7,-1):N(Q,V,"$1");return et===""?void 0:et}}),d({global:!0,constructor:!0,forced:!0},{Symbol:M})}},763:(y,j,i)=>{var d=i(2109),m=i(5005),v=i(2597),b=i(1340),w=i(2309),k=i(2015),x=w("string-to-symbol-registry"),C=w("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{for:function(E){var P=b(E);if(v(x,P))return x[P];var A=m("Symbol")(P);return x[P]=A,C[A]=P,A}})},2165:(y,j,i)=>{i(6800)("iterator")},2526:(y,j,i)=>{i(4032),i(763),i(6620),i(8862),i(9660)},6620:(y,j,i)=>{var d=i(2109),m=i(2597),v=i(2190),b=i(6330),w=i(2309),k=i(2015),x=w("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!k},{keyFor:function(C){if(!v(C))throw TypeError(b(C)+" is not a symbol");if(m(x,C))return x[C]}})},6649:(y,j,i)=>{var d=i(6800),m=i(6532);d("toPrimitive"),m()},3680:(y,j,i)=>{var d=i(5005),m=i(6800),v=i(8003);m("toStringTag"),v(d("Symbol"),"Symbol")},4747:(y,j,i)=>{var d=i(7854),m=i(8324),v=i(8509),b=i(8533),w=i(8880),k=function(C){if(C&&C.forEach!==b)try{w(C,"forEach",b)}catch{C.forEach=b}};for(var x in m)m[x]&&k(d[x]&&d[x].prototype);k(v)},3948:(y,j,i)=>{var d=i(7854),m=i(8324),v=i(8509),b=i(6992),w=i(8880),k=i(5112),x=k("iterator"),C=k("toStringTag"),E=b.values,P=function(D,$){if(D){if(D[x]!==E)try{w(D,x,E)}catch{D[x]=E}if(D[C]||w(D,C,$),m[$]){for(var M in b)if(D[M]!==b[M])try{w(D,M,b[M])}catch{D[M]=b[M]}}}};for(var A in m)P(d[A]&&d[A].prototype,A);P(v,"DOMTokenList")},6815:(y,j,i)=>{var d=i(2109),m=i(7854),v=i(7152)(m.setInterval,!0);d({global:!0,bind:!0,forced:m.setInterval!==v},{setInterval:v})},8417:(y,j,i)=>{var d=i(2109),m=i(7854),v=i(7152)(m.setTimeout,!0);d({global:!0,bind:!0,forced:m.setTimeout!==v},{setTimeout:v})},2564:(y,j,i)=>{i(6815),i(8417)}},L={};function R(y){var j=L[y];if(j!==void 0)return j.exports;var i=L[y]={exports:{}};return O[y](i,i.exports,R),i.exports}R.d=(y,j)=>{for(var i in j)R.o(j,i)&&!R.o(y,i)&&Object.defineProperty(y,i,{enumerable:!0,get:j[i]})},R.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),R.o=(y,j)=>Object.prototype.hasOwnProperty.call(y,j),R.r=y=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})};var J={};return(()=>{R.r(J),R.d(J,{JSONEditor:()=>Dr}),R(3710),R(1539),R(9714),R(5827),R(6833),R(9826),R(9554),R(4747),R(7941),R(2222),R(9601),R(6649),R(6078),R(2526),R(1817),R(9653),R(9070),R(8674),R(2165),R(6992),R(8783),R(3948),R(2443),R(3680),R(3706),R(2703),R(8011),R(489),R(8309),R(8304),R(5069),R(7042),R(9753),R(1038),R(4916),R(9720),R(5306),R(4603),R(6699);var y=["actionscript","batchfile","c","c++","cpp","coffee","csharp","css","dart","django","ejs","erlang","golang","groovy","handlebars","haskell","haxe","html","ini","jade","java","javascript","json","less","lisp","lua","makefile","matlab","mysql","objectivec","pascal","perl","pgsql","php","python","prql","r","ruby","rust","sass","scala","scss","sh","smarty","sql","sqlserver","stylus","svg","typescript","twig","vbscript","xml","yaml","zig"],j=[function(l){return l.type==="string"&&l.format==="color"&&"colorpicker"},function(l){return l.type==="string"&&["ip","ipv4","ipv6","hostname"].includes(l.format)&&"ip"},function(l){return l.type==="string"&&y.includes(l.format)&&"ace"},function(l){return l.type==="string"&&["xhtml","bbcode"].includes(l.format)&&"sceditor"},function(l){return l.type==="string"&&l.format==="markdown"&&"simplemde"},function(l){return l.type==="string"&&l.format==="jodit"&&"jodit"},function(l){return l.type==="string"&&l.format==="autocomplete"&&"autocomplete"},function(l){return l.type==="string"&&l.format==="uuid"&&"uuid"},function(l){return l.format==="info"&&"info"},function(l){return l.format==="button"&&"button"},function(l){if((l.type==="integer"||l.type==="number")&&l.format==="stepper")return"stepper"},function(l){if(l.links){for(var r=0;r<l.links.length;r++)if(l.links[r].rel&&l.links[r].rel.toLowerCase()==="describedby")return"describedBy"}},function(l){return["string","integer"].includes(l.type)&&["starrating","rating"].includes(l.format)&&"starrating"},function(l){return["string","integer"].includes(l.type)&&["date","time","datetime-local"].includes(l.format)&&"datetime"},function(l){return(l.oneOf||l.anyOf)&&"multiple"},function(l){return l.if&&"multiple"},function(l,r){if(l.items&&(l.items=r.expandSchema(l.items)),l.type==="array"&&l.items&&!Array.isArray(l.items)&&["string","number","integer"].includes(l.items.type)){if(l.format==="choices")return"arrayChoices";if(l.uniqueItems){if(l.format==="selectize")return"arraySelectize";if(l.format==="select2")return"arraySelect2";if(l.items.enum)return"multiselect"}}},function(l){if(l.enum){if(l.type==="array"||l.type==="object")return"enum";if(l.type==="number"||l.type==="integer"||l.type==="string")return l.format==="radio"?"radio":l.format==="select2"?"select2":l.format==="selectize"?"selectize":l.format==="choices"?"choices":"select"}},function(l){if(l.enumSource)return l.format==="radio"?"radio":l.format==="select2"?"select2":l.format==="selectize"?"selectize":l.format==="choices"?"choices":"select"},function(l){return l.type==="array"&&l.format==="table"&&"table"},function(l){return l.type==="string"&&l.format==="url"&&window.FileReader&&l.options&&l.options.upload===Object(l.options.upload)&&"upload"},function(l){return l.type==="string"&&l.media&&l.media.binaryEncoding==="base64"&&"base64"},function(l){return l.type==="any"&&"multiple"},function(l){if(l.type==="boolean")return l.format==="checkbox"||l.options&&l.options.checkbox?"checkbox":l.format==="select2"?"select2":l.format==="selectize"?"selectize":l.format==="choices"?"choices":"select"},function(l){return l.type==="string"&&l.format==="signature"&&"signature"},function(l){return typeof l.type=="string"&&l.type},function(l){return!l.type&&l.properties&&"object"},function(l){return typeof l.type!="string"&&"multiple"}];function i(l,r,p){return(r=function(n){var u=function(a,s){if(d(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(d(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n);return d(u)==="symbol"?u:String(u)}(r))in l?Object.defineProperty(l,r,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[r]=p,l}function d(l){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},d(l)}function m(l){return!(l===null||d(l)!=="object"||l.nodeType||l===l.window||l.constructor&&!x(l.constructor.prototype,"isPrototypeOf"))}function v(l){return m(l)?b({},l):Array.isArray(l)?l.map(v):l}function b(l){for(var r=arguments.length,p=new Array(r>1?r-1:0),n=1;n<r;n++)p[n-1]=arguments[n];return p.forEach(function(u){u&&Object.keys(u).forEach(function(a){u[a]&&m(u[a])?(x(l,a)||(l[a]={}),b(l[a],u[a])):Array.isArray(u[a])?l[a]=v(u[a]):l[a]=u[a]})}),l}function w(l,r){var p=document.createEvent("HTMLEvents");p.initEvent(r,!0,!0),l.dispatchEvent(p)}function k(l){return l&&(l.toString()==="[object ShadowRoot]"?l:k(l.parentNode))}function x(l,r){return l&&Object.prototype.hasOwnProperty.call(l,r)}R(4812),R(2419),R(4819),R(5003),R(4723),R(2023),R(9600),R(6755),R(5212),R(1249),R(4678),R(1058);var C=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,E=/^\s*(-|\+)?(\d+)\s*$/;function P(){var l=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(l+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var p=(l+16*Math.random())%16|0;return l=Math.floor(l/16),(r==="x"?p:3&p|8).toString(16)})}function A(l){return l&&d(l)==="object"&&!Array.isArray(l)}function D(l){for(var r=arguments.length,p=new Array(r>1?r-1:0),n=1;n<r;n++)p[n-1]=arguments[n];if(!p.length)return l;var u=p.shift();if(A(l)&&A(u))for(var a in u)A(u[a])?(l[a]||Object.assign(l,i({},a,{})),D(l[a],u[a])):Object.assign(l,i({},a,u[a]));return D.apply(void 0,[l].concat(p))}function $(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function M(l){return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},M(l)}function W(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(M(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(M(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),M(u)==="symbol"?u:String(u)),n)}var u}var H=function(){function l(n,u){(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.defaults=u,this.jsoneditor=n.jsoneditor,this.theme=this.jsoneditor.theme,this.template_engine=this.jsoneditor.template,this.iconlib=this.jsoneditor.iconlib,this.translate=this.jsoneditor.translate||this.defaults.translate,this.translateProperty=this.jsoneditor.translateProperty||this.defaults.translateProperty,this.original_schema=n.schema,this.schema=this.jsoneditor.expandSchema(this.original_schema),this.active=!0,this.options=b({},this.options||{},this.schema.options||{},n.schema.options||{},n),this.formname=this.jsoneditor.options.form_name_root||"root",n.path||this.schema.id||(this.schema.id=this.formname),this.path=n.path||this.formname,this.formname=n.formname||this.path.replace(/\.([^.]+)/g,"[$1]"),this.parent=n.parent,this.key=this.parent!==void 0?this.path.split(".").slice(this.parent.path.split(".").length).join("."):this.path,this.link_watchers=[],this.watchLoop=!1,n.container&&this.setContainer(n.container),this.registerDependencies()}var r,p;return r=l,p=[{key:"onChildEditorChange",value:function(n){this.onChange(!0)}},{key:"notify",value:function(){this.path&&this.jsoneditor.notifyWatchers(this.path)}},{key:"change",value:function(){this.parent?this.parent.onChildEditorChange(this):this.jsoneditor&&this.jsoneditor.onChange()}},{key:"onChange",value:function(n){this.notify(),this.watch_listener&&this.watch_listener(),n&&this.change()}},{key:"register",value:function(){this.jsoneditor.registerEditor(this),this.onChange()}},{key:"unregister",value:function(){this.jsoneditor&&this.jsoneditor.unregisterEditor(this)}},{key:"getNumColumns",value:function(){return 12}},{key:"isActive",value:function(){return this.active}},{key:"activate",value:function(){this.active=!0,this.optInCheckbox.checked=!0,this.enable(),this.change()}},{key:"deactivate",value:function(){this.isRequired()||(this.active=!1,this.optInCheckbox.checked=!1,this.disable(),this.change())}},{key:"registerDependencies",value:function(){var n=this;this.dependenciesFulfilled=!0;var u=this.options.dependencies;u&&Object.keys(u).forEach(function(a){var s;a.startsWith(n.jsoneditor.root.path)?s=a:((s=n.path.split("."))[s.length-1]=a,s=s.join(".")),n.jsoneditor.watch(s,function(){n.evaluateDependencies()})})}},{key:"evaluateDependencies",value:function(){var n=this,u=this.container||this.control;if(u&&this.jsoneditor!==null){var a=this.options.dependencies;if(a){var s=this.dependenciesFulfilled;this.dependenciesFulfilled=!0,Object.keys(a).forEach(function(e){var o;e.startsWith(n.jsoneditor.root.path)?o=e:((o=n.path.split("."))[o.length-1]=e,o=o.join("."));var c=a[e];n.checkDependency(o,c)}),this.dependenciesFulfilled!==s&&this.notify();var t=this.dependenciesFulfilled?"block":"none";this.options.hidden&&(t="none"),u.tagName==="TD"?Object.keys(u.childNodes).forEach(function(e){return u.childNodes[e].style.display=t}):u.style.display=t}}}},{key:"checkDependency",value:function(n,u){var a=this;if(this.path!==n&&this.jsoneditor!==null){var s=this.jsoneditor.getEditor(n),t=s?s.getValue():void 0;s&&s.dependenciesFulfilled?Array.isArray(u)?this.dependenciesFulfilled=u.some(function(e){if(JSON.stringify(t)===JSON.stringify(e))return!0}):M(u)==="object"?M(t)!=="object"?this.dependenciesFulfilled=u===t:Object.keys(u).some(function(e){return!!x(u,e)&&(x(t,e)&&u[e]===t[e]?void 0:(a.dependenciesFulfilled=!1,!0))}):typeof u=="string"||typeof u=="number"?this.dependenciesFulfilled=this.dependenciesFulfilled&&t===u:typeof u=="boolean"&&(this.dependenciesFulfilled=u?this.dependenciesFulfilled&&(t||t.length>0):this.dependenciesFulfilled&&(!t||t.length===0)):this.dependenciesFulfilled=!1}}},{key:"setContainer",value:function(n){this.container=n,this.setContainerAttributes(),this.schema.id&&this.container.setAttribute("data-schemaid",this.schema.id),this.schema.type&&typeof this.schema.type=="string"&&this.container.setAttribute("data-schematype",this.schema.type),this.container.setAttribute("data-schemapath",this.path)}},{key:"setOptInCheckbox",value:function(n){var u=this;this.optInCheckbox=document.createElement("input"),this.optInCheckbox.setAttribute("type","checkbox"),this.optInCheckbox.setAttribute("style","margin: 0 10px 0 0;"),this.optInCheckbox.classList.add("json-editor-opt-in"),this.optInCheckbox.addEventListener("click",function(){u.isActive()?u.deactivate():u.activate()});var a=this.jsoneditor.options.show_opt_in,s=this.parent.options.show_opt_in!==void 0,t=s&&this.parent.options.show_opt_in===!0,e=s&&this.parent.options.show_opt_in===!1;(t||!e&&a||!s&&a)&&this.parent&&this.parent.schema.type==="object"&&!this.isRequired()&&this.header&&(this.header.appendChild(this.optInCheckbox),this.header.insertBefore(this.optInCheckbox,this.header.firstChild))}},{key:"preBuild",value:function(){}},{key:"build",value:function(){}},{key:"postBuild",value:function(){this.setupWatchListeners(),this.addLinks(),this.register(),this.setValue(this.getDefault(),!0),this.updateHeaderText(),this.onWatchedFieldChange()}},{key:"setupWatchListeners",value:function(){var n=this;if(this.watched={},this.schema.vars&&(this.schema.watch=this.schema.vars),this.watched_values={},this.watch_listener=function(){n.refreshWatchedFieldValues()&&n.onWatchedFieldChange()},x(this.schema,"watch")){var u,a,s,t,e,o=this.container.getAttribute("data-schemapath");Object.keys(this.schema.watch).forEach(function(c){if(u=n.schema.watch[c],Array.isArray(u)){if(u.length<2)return;a=[u[0]].concat(u[1].split("."))}else a=u.split("."),n.theme.closest(n.container,'[data-schemaid="'.concat(a[0],'"]'))||a.unshift("#");if((s=a.shift())==="#"&&(s=n.jsoneditor.schema.id||n.jsoneditor.root.formname),!(t=n.theme.closest(n.container,'[data-schemaid="'.concat(s,'"]'))))throw new Error("Could not find ancestor node with id ".concat(s));e="".concat(t.getAttribute("data-schemapath"),".").concat(a.join(".")),o.startsWith(e)&&(n.watchLoop=!0),n.jsoneditor.watch(e,n.watch_listener),n.watched[c]=e})}this.schema.headerTemplate&&(this.header_template=this.jsoneditor.compileTemplate(this.schema.headerTemplate,this.template_engine))}},{key:"addLinks",value:function(){if(!this.no_link_holder&&(this.link_holder=this.theme.getLinksHolder(),this.description!==void 0?this.description.parentNode.insertBefore(this.link_holder,this.description):this.container.appendChild(this.link_holder),this.schema.links))for(var n=0;n<this.schema.links.length;n++)this.addLink(this.getLink(this.schema.links[n]))}},{key:"onMove",value:function(){}},{key:"getButton",value:function(n,u,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],t="json-editor-btn-".concat(u);u=this.iconlib?this.iconlib.getIcon(u):null,n=this.translate(n,s),a=this.translate(a,s),!u&&a&&(n=a,a=null);var e=this.theme.getButton(n,u,a);return e.classList.add(t),e}},{key:"setButtonText",value:function(n,u,a,s){var t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];return a=this.iconlib?this.iconlib.getIcon(a):null,u=this.translate(u,t),s=this.translate(s,t),!a&&s&&(u=s,s=null),this.theme.setButtonText(n,u,a,s)}},{key:"addLink",value:function(n){this.link_holder&&this.link_holder.appendChild(n)}},{key:"getLink",value:function(n){var u,a,s=(n.mediaType||"application/javascript").split("/")[0],t=this.jsoneditor.compileTemplate(n.href,this.template_engine),e=this.jsoneditor.compileTemplate(n.rel?n.rel:n.href,this.template_engine),o=null;if(n.download&&(o=n.download),o&&o!==!0&&(o=this.jsoneditor.compileTemplate(o,this.template_engine)),s==="image"){u=this.theme.getBlockLinkHolder(),(a=document.createElement("a")).setAttribute("target","_blank");var c=document.createElement("img");this.theme.createImageLink(u,a,c),this.link_watchers.push(function(f){var _=t(f),T=e(f);a.setAttribute("href",_),a.setAttribute("title",T||_),c.setAttribute("src",_)})}else if(["audio","video"].includes(s)){u=this.theme.getBlockLinkHolder(),(a=this.theme.getBlockLink()).setAttribute("target","_blank");var h=document.createElement(s);h.setAttribute("controls","controls"),this.theme.createMediaLink(u,a,h),this.link_watchers.push(function(f){var _=t(f),T=e(f);a.setAttribute("href",_),a.textContent=T||_,h.setAttribute("src",_)})}else a=u=this.theme.getBlockLink(),u.setAttribute("target","_blank"),u.textContent=n.rel,u.style.display="none",this.link_watchers.push(function(f){var _=t(f),T=e(f);_&&(u.style.display=""),u.setAttribute("href",_),u.textContent=T||_});return o&&a&&(o===!0?a.setAttribute("download",""):this.link_watchers.push(function(f){a.setAttribute("download",o(f))})),n.class&&a.classList.add(n.class),u}},{key:"refreshWatchedFieldValues",value:function(){var n=this;if(this.watched_values){var u={},a=!1;return this.watched&&Object.keys(this.watched).forEach(function(s){var t=n.jsoneditor.getEditor(n.watched[s]),e=t?t.getValue():null;n.watched_values[s]!==e&&(a=!0),u[s]=e}),u.self=this.getValue(),this.watched_values.self!==u.self&&(a=!0),this.watched_values=u,a}}},{key:"getWatchedFieldValues",value:function(){return this.watched_values}},{key:"updateHeaderText",value:function(){if(this.header){var n=this.getHeaderText();if(this.header.children.length){for(var u=0;u<this.header.childNodes.length;u++)if(this.header.childNodes[u].nodeType===3){this.header.childNodes[u].nodeValue=this.cleanText(n);break}}else window.DOMPurify?this.header.innerHTML=window.DOMPurify.sanitize(n):this.header.textContent=this.cleanText(n)}}},{key:"getHeaderText",value:function(n){return this.header_text?this.header_text:n?this.translateProperty(this.schema.title):this.getTitle()}},{key:"getPathDepth",value:function(){return this.path.split(".").length}},{key:"cleanText",value:function(n){var u=document.createElement("div");return u.innerHTML=n,u.textContent||u.innerText}},{key:"onWatchedFieldChange",value:function(){var n;if(this.header_template){n=b(this.getWatchedFieldValues(),{key:this.key,i:this.key,i0:1*this.key,i1:1*this.key+1,title:this.getTitle()});var u=this.header_template(n);u!==this.header_text&&(this.header_text=u,this.updateHeaderText(),this.notify())}if(this.link_watchers.length){n=this.getWatchedFieldValues();for(var a=0;a<this.link_watchers.length;a++)this.link_watchers[a](n)}}},{key:"setValue",value:function(n){this.value=n}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.value}},{key:"refreshValue",value:function(){}},{key:"getChildEditors",value:function(){return!1}},{key:"destroy",value:function(){var n=this;this.unregister(this),this.watched&&Object.values(this.watched).forEach(function(u){return n.jsoneditor.unwatch(u,n.watch_listener)}),this.watched=null,this.watched_values=null,this.watch_listener=null,this.header_text=null,this.header_template=null,this.value=null,this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.jsoneditor=null,this.schema=null,this.path=null,this.key=null,this.parent=null}},{key:"isDefaultRequired",value:function(){return this.isRequired()||!!this.jsoneditor.options.use_default_values}},{key:"getDefault",value:function(){if(this.schema.default!==void 0)return this.schema.default;if(this.schema.enum!==void 0)return this.schema.enum[0];var n=this.schema.type||this.schema.oneOf;if(n&&Array.isArray(n)&&(n=n[0]),n&&M(n)==="object"&&(n=n.type),n&&Array.isArray(n)&&(n=n[0]),typeof n=="string"){if(n==="number")return this.isDefaultRequired()?0:void 0;if(n==="boolean")return!this.isDefaultRequired()&&void 0;if(n==="integer")return this.isDefaultRequired()?0:void 0;if(n==="string")return this.isDefaultRequired()?"":void 0;if(n==="null")return null;if(n==="object")return{};if(n==="array")return[]}}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title||this.key)}},{key:"enable",value:function(){this.disabled=!1}},{key:"disable",value:function(){this.disabled=!0}},{key:"isEnabled",value:function(){return!this.disabled}},{key:"isRequired",value:function(){return typeof this.schema.required=="boolean"?this.schema.required:this.parent&&this.parent.schema&&Array.isArray(this.parent.schema.required)?this.parent.schema.required.includes(this.key):!!this.jsoneditor.options.required_by_default}},{key:"getDisplayText",value:function(n){var u=[],a={};n.forEach(function(t){t.title&&(a[t.title]=a[t.title]||0,a[t.title]++),t.description&&(a[t.description]=a[t.description]||0,a[t.description]++),t.format&&(a[t.format]=a[t.format]||0,a[t.format]++),t.type&&(a[t.type]=a[t.type]||0,a[t.type]++)}),n.forEach(function(t){var e;e=typeof t=="string"?t:t.title&&a[t.title]<=1?t.title:t.format&&a[t.format]<=1?t.format:t.type&&a[t.type]<=1?t.type:t.description&&a[t.description]<=1?t.description:t.title?t.title:t.format?t.format:t.type?t.type:t.description?t.description:JSON.stringify(t).length<500?JSON.stringify(t):"type",u.push(e)});var s={};return u.forEach(function(t,e){s[t]=s[t]||0,s[t]++,a[t]>1&&(u[e]="".concat(t," ").concat(s[t]))}),u}},{key:"getValidId",value:function(n){return(n=n===void 0?"":n.toString()).replace(/\s+/g,"-")}},{key:"setInputAttributes",value:function(n){var u=this;if(this.schema.options&&this.schema.options.inputAttributes){var a=this.schema.options.inputAttributes,s=["name","type"].concat(n);Object.keys(a).forEach(function(t){s.includes(t.toLowerCase())||u.input.setAttribute(t,a[t])})}}},{key:"setContainerAttributes",value:function(){var n=this;if(this.schema.options&&this.schema.options.containerAttributes){var u=this.schema.options.containerAttributes,a=["data-schemapath","data-schematype","data-schemaid"];Object.keys(u).forEach(function(s){a.includes(s.toLowerCase())||n.container.setAttribute(s,u[s])})}}},{key:"expandCallbacks",value:function(n,u){var a=this,s=this.defaults.callbacks[n];return Object.entries(u).forEach(function(t){var e,o,c=(o=2,function(_){if(Array.isArray(_))return _}(e=t)||function(_,T){var Y=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(Y!=null){var nt,ut,ht,xt,Ot=[],It=!0,Qt=!1;try{if(ht=(Y=Y.call(_)).next,T===0){if(Object(Y)!==Y)return;It=!1}else for(;!(It=(nt=ht.call(Y)).done)&&(Ot.push(nt.value),Ot.length!==T);It=!0);}catch(be){Qt=!0,ut=be}finally{try{if(!It&&Y.return!=null&&(xt=Y.return(),Object(xt)!==xt))return}finally{if(Qt)throw ut}}return Ot}}(e,o)||function(_,T){if(_){if(typeof _=="string")return $(_,T);var Y=Object.prototype.toString.call(_).slice(8,-1);return Y==="Object"&&_.constructor&&(Y=_.constructor.name),Y==="Map"||Y==="Set"?Array.from(_):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?$(_,T):void 0}}(e,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),h=c[0],f=c[1];f===Object(f)?u[h]=a.expandCallbacks(n,f):typeof f=="string"&&M(s)==="object"&&typeof s[f]=="function"&&(u[h]=s[f].bind(null,a))}),u}},{key:"showValidationErrors",value:function(n){}}],p&&W(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}();function B(l){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},B(l)}function V(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(B(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(B(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),B(u)==="symbol"?u:String(u)),n)}var u}function N(){return N=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=K(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},N.apply(this,arguments)}function Z(l,r){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Z(l,r)}function K(l){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},K(l)}var Q=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Z(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=K(n);if(u){var o=K(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(B(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"register",value:function(){N(K(s.prototype),"register",this).call(this),this.input&&(this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname),this.input.setAttribute("aria-label",this.formname))}},{key:"unregister",value:function(){N(K(s.prototype),"unregister",this).call(this),this.input&&(this.input.removeAttribute("name"),this.input.removeAttribute("aria-label"))}},{key:"setValue",value:function(t,e,o){if((!this.template||o)&&(this.shouldBeUnset()||t!=null?B(t)==="object"?t=JSON.stringify(t):this.shouldBeUnset()||typeof t=="string"||(t="".concat(t)):t="",t!==this.serialized)){var c=this.sanitize(t);if(this.input.value!==c){if(this.setValueToInputField(c),this.format==="range"){var h=this.control.querySelector("output");h&&(h.value=c)}var f=o||this.getValue()!==t;return this.refreshValue(),e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),this.onChange(f),{changed:f,value:c}}}}},{key:"setValueToInputField",value:function(t){this.input.value=t===void 0?"":t}},{key:"getNumColumns",value:function(){var t,e=Math.ceil(Math.max(this.getTitle().length,this.schema.maxLength||0,this.schema.minLength||0)/5);return t=this.input_type==="textarea"?6:["text","email"].includes(this.input_type)?4:2,Math.min(12,Math.max(e,t))}},{key:"build",value:function(){var t=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.format=this.schema.format,!this.format&&this.schema.media&&this.schema.media.type&&(this.format=this.schema.media.type.replace(/(^(application|text)\/(x-)?(script\.)?)|(-source$)/g,"")),!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.format)if(this.format==="textarea")this.input_type="textarea",this.input=this.theme.getTextareaInput();else if(this.format==="range"){this.input_type="range";var e=this.schema.minimum||0,o=this.schema.maximum||Math.max(100,e+1),c=1;this.schema.multipleOf&&(e%this.schema.multipleOf&&(e=Math.ceil(e/this.schema.multipleOf)*this.schema.multipleOf),o%this.schema.multipleOf&&(o=Math.floor(o/this.schema.multipleOf)*this.schema.multipleOf),c=this.schema.multipleOf),this.input=this.theme.getRangeInput(e,o,c)}else this.input_type="text",["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","reset","search","submit","tel","text","time","url","week"].includes(this.format)&&(this.input_type=this.format),this.input=this.theme.getFormInputField(this.input_type);else this.input_type="text",this.input=this.theme.getFormInputField(this.input_type);this.schema.maxLength!==void 0&&this.input.setAttribute("maxlength",this.schema.maxLength),this.schema.pattern!==void 0?this.input.setAttribute("pattern",this.schema.pattern):this.schema.minLength!==void 0&&this.input.setAttribute("pattern",".{".concat(this.schema.minLength,",}")),this.options.compact?this.container.classList.add("compact"):this.options.input_width&&(this.input.style.width=this.options.input_width),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"]),this.input.addEventListener("change",function(_){if(_.preventDefault(),_.stopPropagation(),t.schema.template)_.currentTarget.value=t.value;else{var T=_.currentTarget.value,Y=t.sanitize(T);T!==Y&&(_.currentTarget.value=Y),t.is_dirty=!0,t.refreshValue(),t.onChange(!0)}}),this.options.input_height&&(this.input.style.height=this.options.input_height),this.options.expand_height&&(this.adjust_height=function(_){if(_){var T,Y=_.offsetHeight;if(_.offsetHeight<_.scrollHeight)for(T=0;_.offsetHeight<_.scrollHeight+3&&!(T>100);)T++,Y++,_.style.height="".concat(Y,"px");else{for(T=0;_.offsetHeight>=_.scrollHeight+3&&!(T>100);)T++,Y--,_.style.height="".concat(Y,"px");_.style.height="".concat(Y+1,"px")}}},this.input.addEventListener("keyup",function(_){t.adjust_height(_.currentTarget)}),this.input.addEventListener("change",function(_){t.adjust_height(_.currentTarget)}),this.adjust_height()),this.format&&this.input.setAttribute("data-schemaformat",this.format);var h=this.input;if(this.format==="range"&&(h=this.theme.getRangeControl(this.input,this.theme.getRangeOutput(this.input,this.schema.default||Math.max(this.schema.minimum||0,0)))),this.control=this.theme.getFormControl(this.label,h,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),window.requestAnimationFrame(function(){t.input.parentNode&&t.afterInputReady(),t.adjust_height&&t.adjust_height(t.input),t.format==="range"&&(t.control.querySelector("output").value=t.input.value)}),this.schema.template){var f=this.expandCallbacks("template",{template:this.schema.template});typeof f.template=="function"?this.template=f.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}},{key:"setupCleave",value:function(t){var e=this.expandCallbacks("cleave",b({},this.defaults.options.cleave||{},this.options.cleave||{}));B(e)==="object"&&Object.keys(e).length>0&&(this.cleave_instance=new window.Cleave(t,e))}},{key:"setupImask",value:function(t){var e=this.expandCallbacks("imask",b({},this.defaults.options.imask||{},this.options.imask||{}));B(e)==="object"&&Object.keys(e).length>0&&(this.imask_instance=window.IMask(t,this.ajustIMaskOptions(e)))}},{key:"ajustIMaskOptions",value:function(t){var e=this;return Object.keys(t).forEach(function(o){if(t[o]===Object(t[o]))t[o]=e.ajustIMaskOptions(t[o]);else if(o==="mask")if(t[o].substr(0,6)==="regex:"){var c=t[o].match(/^regex:\/(.*)\/([gimsuy]*)$/);if(c!==null)try{t[o]=new RegExp(c[1],c[2])}catch{}}else t[o]=e.getGlobalPropertyFromString(t[o])}),t}},{key:"getGlobalPropertyFromString",value:function(t){if(t.includes(".")){var e=t.split("."),o=e[0],c=e[1];if(window[o]!==void 0&&window[o][c]!==void 0)return window[o][c]}else if(window[t]!==void 0)return window[t];return t}},{key:"shouldBeUnset",value:function(){return!this.jsoneditor.options.use_default_values&&!this.is_dirty}},{key:"getValue",value:function(){var t=!(!this.input||!this.input.value);if(!this.shouldBeUnset()||t)return this.imask_instance&&this.dependenciesFulfilled&&this.options.imask.returnUnmasked?this.imask_instance.unmaskedValue:N(K(s.prototype),"getValue",this).call(this)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,N(K(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.input.disabled=!0,N(K(s.prototype),"disable",this).call(this)}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input),window.Cleave&&!this.cleave_instance?this.setupCleave(this.input):window.IMask&&!this.imask_instance&&this.setupImask(this.input)}},{key:"refreshValue",value:function(){this.input&&(this.value=this.input.value,typeof this.value=="string"||this.shouldBeUnset()||(this.value=""),this.serialized=this.value)}},{key:"destroy",value:function(){this.cleave_instance&&this.cleave_instance.destroy(),this.imask_instance&&this.imask_instance.destroy(),this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),N(K(s.prototype),"destroy",this).call(this)}},{key:"sanitize",value:function(t){return t}},{key:"onWatchedFieldChange",value:function(){var t;this.template&&(t=this.getWatchedFieldValues(),this.setValue(this.template(t),!1,!0)),N(K(s.prototype),"onWatchedFieldChange",this).call(this)}},{key:"showValidationErrors",value:function(t){var e=this;if(!(this.jsoneditor.options.show_errors!=="always"&&!this.is_dirty&&this.previous_error_setting===this.jsoneditor.options.show_errors)){this.previous_error_setting=this.jsoneditor.options.show_errors;var o=t.reduce(function(c,h){return h.path===e.path&&c.push(h.message),c},[]);o.length?this.theme.addInputError(this.input,"".concat(o.join(". "),".")):this.theme.removeInputError(this.input)}}}])&&V(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function et(l){return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},et(l)}function at(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(et(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(et(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),et(u)==="symbol"?u:String(u)),n)}var u}function lt(){return lt=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=ct(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},lt.apply(this,arguments)}function wt(l,r){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},wt(l,r)}function ct(l){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ct(l)}var Ct=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&wt(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=ct(n);if(u){var o=ct(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(et(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e,o){var c=lt(ct(s.prototype),"setValue",this).call(this,t,e,o);c!==void 0&&c.changed&&this.ace_editor_instance&&(this.ace_editor_instance.setValue(c.value),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize())}},{key:"build",value:function(){this.options.format="textarea",lt(ct(s.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var t,e=this;if(window.ace){var o=this.input_type;o!=="cpp"&&o!=="c++"&&o!=="c"||(o="c_cpp"),t=this.expandCallbacks("ace",b({},{selectionStyle:"text",minLines:30,maxLines:30},this.defaults.options.ace||{},this.options.ace||{},{mode:"ace/mode/".concat(o)})),this.ace_container=document.createElement("div"),this.ace_container.style.width="100%",this.ace_container.style.position="relative",this.input.parentNode.insertBefore(this.ace_container,this.input),this.input.style.display="none",this.ace_editor_instance=window.ace.edit(this.ace_container,t),this.ace_editor_instance.setValue(this.getValue()),this.ace_editor_instance.session.getSelection().clearSelection(),this.ace_editor_instance.resize(),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.ace_editor_instance.setReadOnly(!0),this.ace_editor_instance.on("change",function(){e.input.value=e.ace_editor_instance.getValue(),e.refreshValue(),e.is_dirty=!0,e.onChange(!0)}),this.theme.afterInputReady(this.input)}else lt(ct(s.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!1),lt(ct(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.ace_editor_instance&&this.ace_editor_instance.setReadOnly(!0),lt(ct(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.ace_editor_instance&&(this.ace_editor_instance.destroy(),this.ace_editor_instance=null),lt(ct(s.prototype),"destroy",this).call(this)}}])&&at(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function Tt(l){return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tt(l)}function $t(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Tt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Tt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Tt(u)==="symbol"?u:String(u)),n)}var u}function st(){return st=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=gt(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},st.apply(this,arguments)}function bt(l,r){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},bt(l,r)}function gt(l){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gt(l)}R(7327);var Mt=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&bt(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=gt(n);if(u){var o=gt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Tt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,p=[{key:"askConfirmation",value:function(){return this.jsoneditor.options.prompt_before_delete!==!0||window.confirm(this.translate("button_delete_node_warning"))!==!1}},{key:"getDefault",value:function(){return this.schema.default||[]}},{key:"register",value:function(){st(gt(s.prototype),"register",this).call(this),this.rows&&this.rows.forEach(function(t){return t.register()})}},{key:"unregister",value:function(){st(gt(s.prototype),"unregister",this).call(this),this.rows&&this.rows.forEach(function(t){return t.unregister()})}},{key:"getNumColumns",value:function(){var t=this.getItemInfo(0);return this.tabs_holder&&this.schema.format!=="tabs-top"?Math.max(Math.min(12,t.width+2),4):t.width}},{key:"enable",value:function(){var t=this;this.always_disabled||(this.setAvailability(this,!1),this.rows&&this.rows.forEach(function(e){e.enable(),t.setAvailability(e,!1)}),st(gt(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){var e=this;t&&(this.always_disabled=!0),this.setAvailability(this,!0),this.rows&&this.rows.forEach(function(o){o.disable(t),e.setAvailability(o,!0)}),st(gt(s.prototype),"disable",this).call(this)}},{key:"setAvailability",value:function(t,e){t.add_row_button&&(t.add_row_button.disabled=e),t.remove_all_rows_button&&(t.remove_all_rows_button.disabled=e),t.delete_last_row_button&&(t.delete_last_row_button.disabled=e),t.copy_button&&(t.copy_button.disabled=e),t.delete_button&&(t.delete_button.disabled=e),t.moveup_button&&(t.moveup_button.disabled=e),t.movedown_button&&(t.movedown_button.disabled=e)}},{key:"preBuild",value:function(){st(gt(s.prototype),"preBuild",this).call(this),this.rows=[],this.row_cache=[],this.hide_delete_buttons=this.options.disable_array_delete||this.jsoneditor.options.disable_array_delete,this.hide_delete_all_rows_buttons=this.hide_delete_buttons||this.options.disable_array_delete_all_rows||this.jsoneditor.options.disable_array_delete_all_rows,this.hide_delete_last_row_buttons=this.hide_delete_buttons||this.options.disable_array_delete_last_row||this.jsoneditor.options.disable_array_delete_last_row,this.hide_move_buttons=this.options.disable_array_reorder||this.jsoneditor.options.disable_array_reorder,this.hide_add_button=this.options.disable_array_add||this.jsoneditor.options.disable_array_add,this.show_copy_button=this.options.enable_array_copy||this.jsoneditor.options.enable_array_copy,this.array_controls_top=this.options.array_controls_top||this.jsoneditor.options.array_controls_top}},{key:"build",value:function(){this.options.compact?(this.title=this.theme.getHeader("",this.getPathDepth()),this.container.appendChild(this.title),this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder)):(this.header=document.createElement("label"),this.header.textContent=this.getTitle(),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.container.appendChild(this.title),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText)),this.container.appendChild(this.infoButton)),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.schema.format==="tabs-top"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTopTabContentHolder(this.tabs_holder),this.active_tab=null):this.schema.format==="tabs"?(this.controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.controls),this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.getItemTitle())),this.container.appendChild(this.tabs_holder),this.row_holder=this.theme.getTabContentHolder(this.tabs_holder),this.active_tab=null):(this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.row_holder=document.createElement("div"),this.panel.appendChild(this.row_holder),this.controls=this.theme.getButtonHolder(),this.array_controls_top?this.title.appendChild(this.controls):this.panel.appendChild(this.controls))),this.addControls()}},{key:"onChildEditorChange",value:function(t){this.refreshValue(),this.refreshTabs(!0),st(gt(s.prototype),"onChildEditorChange",this).call(this,t)}},{key:"getItemTitle",value:function(){if(!this.item_title)if(this.schema.items&&!Array.isArray(this.schema.items)){var t=this.jsoneditor.expandRefs(this.schema.items);this.item_title=this.translateProperty(t.title)||this.translate("default_array_item_title")}else this.item_title=this.translate("default_array_item_title");return this.cleanText(this.item_title)}},{key:"getItemSchema",value:function(t){return Array.isArray(this.schema.items)?t>=this.schema.items.length?this.schema.additionalItems===!0?{}:this.schema.additionalItems?b({},this.schema.additionalItems):void 0:b({},this.schema.items[t]):this.schema.items?b({},this.schema.items):{}}},{key:"getItemInfo",value:function(t){var e=this.getItemSchema(t);this.item_info=this.item_info||{};var o=JSON.stringify(e);return this.item_info[o]!==void 0||(e=this.jsoneditor.expandRefs(e),this.item_info[o]={title:this.translateProperty(e.title)||this.translate("default_array_item_title"),default:e.default,width:12,child_editors:e.properties||e.items}),this.item_info[o]}},{key:"getElementEditor",value:function(t){var e=this.getItemInfo(t),o=this.getItemSchema(t);(o=this.jsoneditor.expandRefs(o)).title="".concat(e.title," ").concat(t+1);var c,h=this.jsoneditor.getEditorClass(o);this.tabs_holder?(c=this.schema.format==="tabs-top"?this.theme.getTopTabContent():this.theme.getTabContent()).id="".concat(this.path,".").concat(t):c=e.child_editors?this.theme.getChildEditorHolder():this.theme.getIndentedPanel(),this.row_holder.appendChild(c);var f=this.jsoneditor.createEditor(h,{jsoneditor:this.jsoneditor,schema:o,container:c,path:"".concat(this.path,".").concat(t),parent:this,required:!0});return f.preBuild(),f.build(),f.postBuild(),f.title_controls||(f.array_controls=this.theme.getButtonHolder(),c.appendChild(f.array_controls)),f}},{key:"checkParent",value:function(t){return t&&t.parentNode}},{key:"destroy",value:function(){this.empty(!0),this.checkParent(this.title)&&this.title.parentNode.removeChild(this.title),this.checkParent(this.description)&&this.description.parentNode.removeChild(this.description),this.checkParent(this.row_holder)&&this.row_holder.parentNode.removeChild(this.row_holder),this.checkParent(this.controls)&&this.controls.parentNode.removeChild(this.controls),this.checkParent(this.panel)&&this.panel.parentNode.removeChild(this.panel),this.rows=this.row_cache=this.title=this.description=this.row_holder=this.panel=this.controls=null,st(gt(s.prototype),"destroy",this).call(this)}},{key:"empty",value:function(t){var e=this;this.rows&&(this.rows.forEach(function(o,c){t&&(e.checkParent(o.tab)&&o.tab.parentNode.removeChild(o.tab),e.destroyRow(o,!0),e.row_cache[c]=null),e.rows[c]=null}),this.rows=[],t&&(this.row_cache=[]))}},{key:"destroyRow",value:function(t,e){var o=t.container;e?(t.destroy(),o.parentNode&&o.parentNode.removeChild(o),this.checkParent(t.tab)&&t.tab.parentNode.removeChild(t.tab)):(t.tab&&(t.tab.style.display="none"),o.style.display="none",t.unregister())}},{key:"getMax",value:function(){return Array.isArray(this.schema.items)&&this.schema.additionalItems===!1?Math.min(this.schema.items.length,this.schema.maxItems||1/0):this.schema.maxItems||1/0}},{key:"refreshTabs",value:function(t){var e=this;this.rows.forEach(function(o){o.tab&&(t?o.tab_text.textContent=o.getHeaderText():o.tab===e.active_tab?e.theme.markTabActive(o):e.theme.markTabInactive(o))})}},{key:"ensureArraySize",value:function(t){if(Array.isArray(t)||(t=[t]),this.schema.minItems)for(;t.length<this.schema.minItems;)t.push(this.getItemInfo(t.length).default);return this.getMax()&&t.length>this.getMax()&&(t=t.slice(0,this.getMax())),t}},{key:"setValue",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;if(e=this.ensureArraySize(e),JSON.stringify(e)!==this.serialized){e.forEach(function(_,T){if(t.rows[T])t.rows[T].setValue(_,o);else if(t.row_cache[T])t.rows[T]=t.row_cache[T],t.rows[T].setValue(_,o),t.rows[T].container.style.display="",t.rows[T].tab&&(t.rows[T].tab.style.display=""),t.rows[T].register(),t.jsoneditor.trigger("addRow",t.rows[T]);else{var Y=t.addRow(_,o);t.jsoneditor.trigger("addRow",Y)}});for(var c=e.length;c<this.rows.length;c++)this.destroyRow(this.rows[c]),this.rows[c]=null;this.rows=this.rows.slice(0,e.length);var h=this.rows.find(function(_){return _.tab===t.active_tab}),f=h!==void 0?h.tab:null;!f&&this.rows.length&&(f=this.rows[0].tab),this.active_tab=f,this.refreshValue(o),this.refreshTabs(!0),this.refreshTabs(),this.onChange()}}},{key:"setButtonState",value:function(t,e){switch(this.options.button_state_mode||this.jsoneditor.options.button_state_mode){case 1:default:t.style.display=e?"":"none";break;case 2:t.disabled=!e}}},{key:"setupButtons",value:function(t){var e=[];if(this.value.length)if(this.value.length===1){this.setButtonState(this.remove_all_rows_button,!1);var o=!(t||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,o),e.push(o)}else{var c=!(t||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,c),e.push(c);var h=!(t||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,h),e.push(h)}else this.setButtonState(this.delete_last_row_button,!1),this.setButtonState(this.remove_all_rows_button,!1);var f=!(this.getMax()&&this.getMax()<=this.rows.length||this.hide_add_button);return this.setButtonState(this.add_row_button,f),e.push(f),e.some(function(_){return _})}},{key:"refreshValue",value:function(t){var e=this,o=this.value?this.value.length:0;if(this.value=this.rows.map(function(h){return h.getValue()}),o!==this.value.length||t){var c=this.schema.minItems&&this.schema.minItems>=this.rows.length;this.rows.forEach(function(h,f){if(h.movedown_button){var _=f!==e.rows.length-1;e.setButtonState(h.movedown_button,_)}h.delete_button&&e.setButtonState(h.delete_button,!c),e.value[f]=h.getValue()}),!this.collapsed&&this.setupButtons(c)?this.controls.style.display="inline-block":this.controls.style.display="none"}this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(t,e){var o=this,c=this.rows.length;this.rows[c]=this.getElementEditor(c),this.row_cache[c]=this.rows[c],this.tabs_holder&&(this.rows[c].tab_text=document.createElement("span"),this.rows[c].tab_text.textContent=this.rows[c].getHeaderText(),this.schema.format==="tabs-top"?(this.rows[c].tab=this.theme.getTopTab(this.rows[c].tab_text,this.getValidId(this.rows[c].path)),this.theme.addTopTab(this.tabs_holder,this.rows[c].tab)):(this.rows[c].tab=this.theme.getTab(this.rows[c].tab_text,this.getValidId(this.rows[c].path)),this.theme.addTab(this.tabs_holder,this.rows[c].tab)),this.rows[c].tab.addEventListener("click",function(f){o.active_tab=o.rows[c].tab,o.refreshTabs(),f.preventDefault(),f.stopPropagation()}));var h=this.rows[c].title_controls||this.rows[c].array_controls;return this.hide_delete_buttons||(this.rows[c].delete_button=this._createDeleteButton(c,h)),this.show_copy_button&&(this.rows[c].copy_button=this._createCopyButton(c,h)),c&&!this.hide_move_buttons&&(this.rows[c].moveup_button=this._createMoveUpButton(c,h)),this.hide_move_buttons||(this.rows[c].movedown_button=this._createMoveDownButton(c,h)),t!==void 0&&this.rows[c].setValue(t,e),this.refreshTabs(),this.rows[c]}},{key:"_createDeleteButton",value:function(t,e){var o=this,c=this.getButton(this.getItemTitle(),"delete","button_delete_row_title",[this.getItemTitle()]);return c.classList.add("delete","json-editor-btntype-delete"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){if(h.preventDefault(),h.stopPropagation(),!o.askConfirmation())return!1;var f=1*h.currentTarget.getAttribute("data-i"),_=o.getValue().filter(function(nt,ut){return ut!==f}),T=null,Y=o.rows[f].getValue();o.setValue(_),o.rows[f]?T=o.rows[f].tab:o.rows[f-1]&&(T=o.rows[f-1].tab),T&&(o.active_tab=T,o.refreshTabs()),o.onChange(!0),o.jsoneditor.trigger("deleteRow",Y)}),e&&e.appendChild(c),c}},{key:"_createCopyButton",value:function(t,e){var o=this,c=this.getButton(this.getItemTitle(),"copy","button_copy_row_title",[this.getItemTitle()]),h=this.schema;return c.classList.add("copy","json-editor-btntype-copy"),c.setAttribute("data-i",t),c.addEventListener("click",function(f){var _=o.getValue();f.preventDefault(),f.stopPropagation();var T=1*f.currentTarget.getAttribute("data-i");_.forEach(function(Y,nt){if(nt===T){if(h.items.type==="string"&&h.items.format==="uuid")Y=P();else if(h.items.type==="object"&&h.items.properties)for(var ut=0,ht=Object.keys(Y);ut<ht.length;ut++){var xt=ht[ut];h.items.properties&&h.items.properties[xt]&&h.items.properties[xt].format==="uuid"&&(Y[xt]=P())}_.push(Y)}}),o.setValue(_),o.refreshValue(!0),o.onChange(!0)}),e.appendChild(c),c}},{key:"_createMoveUpButton",value:function(t,e){var o=this,c=this.getButton("",this.schema.format==="tabs-top"?"moveleft":"moveup","button_move_up_title");return c.classList.add("moveup","json-editor-btntype-move"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){h.preventDefault(),h.stopPropagation();var f=1*h.currentTarget.getAttribute("data-i");if(!(f<=0)){var _=o.getValue(),T=_[f-1];_[f-1]=_[f],_[f]=T,o.setValue(_),o.active_tab=o.rows[f-1].tab,o.refreshTabs(),o.onChange(!0),o.jsoneditor.trigger("moveRow",o.rows[f-1])}}),e&&e.appendChild(c),c}},{key:"_createMoveDownButton",value:function(t,e){var o=this,c=this.getButton("",this.schema.format==="tabs-top"?"moveright":"movedown","button_move_down_title");return c.classList.add("movedown","json-editor-btntype-move"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){h.preventDefault(),h.stopPropagation();var f=1*h.currentTarget.getAttribute("data-i"),_=o.getValue();if(!(f>=_.length-1)){var T=_[f+1];_[f+1]=_[f],_[f]=T,o.setValue(_),o.active_tab=o.rows[f+1].tab,o.refreshTabs(),o.onChange(!0),o.jsoneditor.trigger("moveRow",o.rows[f+1])}}),e&&e.appendChild(c),c}},{key:"addControls",value:function(){this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.options.collapsed&&w(this.toggle_button,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none"),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton(),this.tabs&&(this.add_row_button.classList.add("je-array-control-btn"),this.delete_last_row_button.classList.add("je-array-control-btn"),this.remove_all_rows_button.classList.add("je-array-control-btn"))}},{key:"_createToggleButton",value:function(){var t=this,e=this.getButton("","collapse","button_collapse");e.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(e,this.title.childNodes[0]);var o=this.row_holder.style.display,c=this.controls.style.display;return e.addEventListener("click",function(h){h.preventDefault(),h.stopPropagation(),t.panel&&t.setButtonState(t.panel,t.collapsed),t.tabs_holder&&t.setButtonState(t.tabs_holder,t.collapsed),t.collapsed?(t.collapsed=!1,t.row_holder.style.display=o,t.controls.style.display=c,t.setButtonText(h.currentTarget,"","collapse","button_collapse")):(t.collapsed=!0,t.row_holder.style.display="none",t.controls.style.display="none",t.setButtonText(h.currentTarget,"","expand","button_expand"))}),e}},{key:"_createAddRowButton",value:function(){var t=this,e=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-add"),e.addEventListener("click",function(o){o.preventDefault(),o.stopPropagation();var c,h=t.rows.length;t.row_cache[h]?(c=t.rows[h]=t.row_cache[h],t.rows[h].setValue(t.rows[h].getDefault(),!0),t.rows[h].container.style.display="",t.rows[h].tab&&(t.rows[h].tab.style.display=""),t.rows[h].register()):c=t.addRow(),t.active_tab=t.rows[h].tab,t.refreshTabs(),t.refreshValue(),t.onChange(!0),t.jsoneditor.trigger("addRow",c)}),this.controls.appendChild(e),e}},{key:"_createDeleteLastRowButton",value:function(){var t=this,e=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-deletelast"),e.addEventListener("click",function(o){if(o.preventDefault(),o.stopPropagation(),!t.askConfirmation())return!1;var c=t.getValue(),h=null,f=c.pop();t.setValue(c),t.rows[t.rows.length-1]&&(h=t.rows[t.rows.length-1].tab),h&&(t.active_tab=h,t.refreshTabs()),t.onChange(!0),t.jsoneditor.trigger("deleteRow",f)}),this.controls.appendChild(e),e}},{key:"_createRemoveAllRowsButton",value:function(){var t=this,e=this.getButton("button_delete_all","delete","button_delete_all_title");return e.classList.add("json-editor-btntype-deleteall"),e.addEventListener("click",function(o){if(o.preventDefault(),o.stopPropagation(),!t.askConfirmation())return!1;var c=t.getValue();t.empty(!0),t.setValue([]),t.onChange(!0),t.jsoneditor.trigger("deleteAllRows",c)}),this.controls.appendChild(e),e}},{key:"showValidationErrors",value:function(t){var e=this,o=[],c=[];t.forEach(function(h){h.path===e.path?o.push(h):c.push(h)}),this.error_holder&&(o.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",o.forEach(function(h){e.error_holder.appendChild(e.theme.getErrorMessage(h.message))})):this.error_holder.style.display="none"),this.rows.forEach(function(h){return h.showValidationErrors(c)})}}],p&&$t(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Jt(l){return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jt(l)}function ie(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Jt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Jt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Jt(u)==="symbol"?u:String(u)),n)}var u}function St(){return St=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Rt(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},St.apply(this,arguments)}function kt(l,r){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},kt(l,r)}function Rt(l){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rt(l)}Mt.rules={".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-array-control-btn":"width:100%25;text-align:left;margin-bottom:3px"};var Vt=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&kt(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Rt(n);if(u){var o=Rt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Jt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"onInputChange",value:function(){this.value=this.input.value,this.onChange(!0)}},{key:"register",value:function(){St(Rt(s.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){St(Rt(s.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){var t=this,e=this.getTitle().length;return Object.keys(this.select_values).forEach(function(o){return e=Math.max(e,"".concat(t.select_values[o]).length+4)}),Math.min(12,Math.max(e/7,2))}},{key:"preBuild",value:function(){var t;St(Rt(s.prototype),"preBuild",this).call(this),this.select_options={},this.select_values={},this.option_titles=[],this.option_keys=[],this.option_enum=[];var e=this.jsoneditor.expandRefs(this.schema.items||{}),o=e.enum||[],c=e.options&&e.options.enum||[],h=e.options&&e.options.enum_titles||[];for(t=0;t<o.length;t++)if(this.sanitize(o[t])===o[t]){var f=c[t]||{};"title"in f||(f.title="".concat(h[t]||o[t])),this.option_keys.push("".concat(o[t])),this.option_enum.push(f),this.select_values["".concat(o[t])]=o[t]}}},{key:"build",value:function(){var t,e=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),!this.schema.format&&this.option_keys.length<8||this.schema.format==="checkbox"){for(this.input_type="checkboxes",this.inputs={},this.controls={},t=0;t<this.option_keys.length;t++){var o=this.formname+t.toString();this.inputs[this.option_keys[t]]=this.theme.getCheckbox(),this.inputs[this.option_keys[t]].id=o,this.select_options[this.option_keys[t]]=this.inputs[this.option_keys[t]];var c=this.theme.getCheckboxLabel(this.option_enum[t].title);if(c.htmlFor=o,this.option_enum[t].infoText){var h=this.theme.getInfoButton(this.translateProperty(this.option_enum[t].infoText));c.appendChild(h)}this.controls["_"+this.option_keys[t]]=this.theme.getFormControl(c,this.inputs[this.option_keys[t]])}this.control=this.theme.getMultiCheckboxHolder(this.controls,this.label,this.description,this.infoButton),this.inputs.controlgroup=this.inputs.controls=this.control}else{for(this.input_type="select",this.input=this.theme.getSelectInput(this.option_keys,!0),this.theme.setSelectOptions(this.input,this.option_keys,this.option_enum.map(function(f){return f.title})),this.input.setAttribute("multiple","multiple"),this.input.size=Math.min(10,this.option_keys.length),t=0;t<this.option_keys.length;t++)this.select_options[this.option_keys[t]]=this.input.children[t];this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton)}(this.schema.readOnly||this.schema.readonly)&&this.disable(!0),this.container.appendChild(this.control),this.multiselectChangeHandler=function(f){var _=[];for(t=0;t<e.option_keys.length;t++)e.select_options[e.option_keys[t]]&&(e.select_options[e.option_keys[t]].selected||e.select_options[e.option_keys[t]].checked)&&_.push(e.select_values[e.option_keys[t]]);e.updateValue(_),e.onChange(!0)},this.control.addEventListener("change",this.multiselectChangeHandler,!1),window.requestAnimationFrame(function(){e.afterInputReady()})}},{key:"postBuild",value:function(){St(Rt(s.prototype),"postBuild",this).call(this)}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input||this.inputs)}},{key:"setValue",value:function(t,e){var o=this;t=t||[],Array.isArray(t)||(t=[t]),t=t.map(function(c){return"".concat(c)}),Object.keys(this.select_options).forEach(function(c){o.select_options[c][o.input_type==="select"?"selected":"checked"]=t.includes(c)}),this.updateValue(t),this.onChange(!0)}},{key:"removeValue",value:function(t){t=[].concat(t),this.setValue(this.getValue().filter(function(e){return!t.includes(e)}))}},{key:"addValue",value:function(t){this.setValue(this.getValue().concat(t))}},{key:"updateValue",value:function(t){for(var e=!1,o=[],c=0;c<t.length;c++)if(this.select_options["".concat(t[c])]){var h=this.sanitize(this.select_values[t[c]]);o.push(h),h!==t[c]&&(e=!0)}else e=!0;return this.value=o,e}},{key:"sanitize",value:function(t){return this.schema.items.type==="boolean"?!!t:this.schema.items.type==="number"?1*t||0:this.schema.items.type==="integer"?Math.floor(1*t||0):"".concat(t)}},{key:"enable",value:function(){var t=this;this.always_disabled||(this.input?this.input.disabled=!1:this.inputs&&Object.keys(this.inputs).forEach(function(e){return t.inputs[e].disabled=!1}),St(Rt(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){var e=this;t&&(this.always_disabled=!0),this.input?this.input.disabled=!0:this.inputs&&Object.keys(this.inputs).forEach(function(o){return e.inputs[o].disabled=!0}),St(Rt(s.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){St(Rt(s.prototype),"destroy",this).call(this)}},{key:"escapeRegExp",value:function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},{key:"showValidationErrors",value:function(t){var e=new RegExp("^".concat(this.escapeRegExp(this.path),"(\\.\\d+)?$")),o=t.reduce(function(c,h){return h.path.match(e)&&c.push(h.message),c},[]);o.length?this.theme.addInputError(this.input||this.inputs,"".concat(o.join(". "),".")):this.theme.removeInputError(this.input||this.inputs)}}])&&ie(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function _t(l){return _t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_t(l)}function De(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(_t(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(_t(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),_t(u)==="symbol"?u:String(u)),n)}var u}function ne(){return ne=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=se(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},ne.apply(this,arguments)}function we(l,r){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},we(l,r)}function se(l){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},se(l)}var Fe=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&we(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=se(n);if(u){var o=se(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(_t(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){this.choices_instance?(t=[].concat(t).map(function(o){return"".concat(o)}),this.updateValue(t),this.choices_instance.removeActiveItems(),this.choices_instance.setChoiceByValue(this.value),this.onChange(!0)):ne(se(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){var t=this;if(window.Choices&&!this.choices_instance){var e=this.expandCallbacks("choices",b({},{removeItems:!0,removeItemButton:!0},this.defaults.options.choices||{},this.options.choices||{},{addItems:!0,editItems:!1,duplicateItemsAllowed:!1}));this.newEnumAllowed=!1,this.choices_instance=new window.Choices(this.input,e),this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(o){var c=t.choices_instance.getValue(!0);t.updateValue(c),t.onChange(!0)},this.control.addEventListener("change",this.multiselectChangeHandler,!1)}ne(se(s.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(t){t=[].concat(t);for(var e=!1,o=[],c=0;c<t.length;c++)if(!(!this.select_values["".concat(t[c])]&&(e=!0,!this.newEnumAllowed||!this.addNewOption(t[c])))){var h=this.sanitize(this.select_values[t[c]]);o.push(h),h!==t[c]&&(e=!0)}return this.value=o,e}},{key:"addNewOption",value:function(t){return this.option_keys.push("".concat(t)),this.option_titles.push("".concat(t)),this.select_values["".concat(t)]=t,this.schema.items.enum.push(t),this.choices_instance.setChoices([{value:"".concat(t),label:"".concat(t)}],"value","label",!1),!0}},{key:"enable",value:function(){!this.always_disabled&&this.choices_instance&&this.choices_instance.enable(),ne(se(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.choices_instance&&this.choices_instance.disable(),ne(se(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.choices_instance&&(this.choices_instance.destroy(),this.choices_instance=null),ne(se(s.prototype),"destroy",this).call(this)}}])&&De(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Vt);function me(l){return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},me(l)}function Me(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(me(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(me(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),me(u)==="symbol"?u:String(u)),n)}var u}function ve(){return ve=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=pe(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},ve.apply(this,arguments)}function Ee(l,r){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Ee(l,r)}function pe(l){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pe(l)}var $e=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Ee(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=pe(n);if(u){var o=pe(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(me(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){this.select2_instance?(t=[].concat(t).map(function(o){return"".concat(o)}),this.updateValue(t),this.select2v4?this.select2_instance.val(this.value).change():this.select2_instance.select2("val",this.value),this.onChange(!0)):ve(pe(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){var t,e=this;window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance&&(t=this.expandCallbacks("select2",b({},{tags:!0,width:"100%"},this.defaults.options.select2||{},this.options.select2||{})),this.newEnumAllowed=t.tags=!!t.tags&&this.schema.items&&this.schema.items.type==="string",this.select2_instance=window.jQuery(this.input).select2(t),this.select2v4=x(this.select2_instance.select2,"amd"),this.selectChangeHandler=function(){var o=e.select2v4?e.select2_instance.val():e.select2_instance.select2("val");e.updateValue(o),e.onChange(!0)},this.select2_instance.on("select2-blur",this.selectChangeHandler),this.select2_instance.on("change",this.selectChangeHandler)),ve(pe(s.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(t){t=[].concat(t);for(var e=!1,o=[],c=0;c<t.length;c++)if(!(!this.select_values["".concat(t[c])]&&(e=!0,!this.newEnumAllowed||!this.addNewOption(t[c])))){var h=this.sanitize(this.select_values[t[c]]);o.push(h),h!==t[c]&&(e=!0)}return this.value=o,e}},{key:"addNewOption",value:function(t){this.option_keys.push("".concat(t)),this.option_titles.push("".concat(t)),this.select_values["".concat(t)]=t,this.schema.items.enum.push(t);var e=this.input.querySelector('option[value="'.concat(t,'"]'));return e?e.removeAttribute("data-select2-tag"):this.input.appendChild(new Option(t,t,!1,!1)).trigger("change"),!0}},{key:"enable",value:function(){!this.always_disabled&&this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!1):this.select2_instance.select2("enable",!0)),ve(pe(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!0):this.select2_instance.select2("enable",!1)),ve(pe(s.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.select2_instance&&(this.select2_instance.select2("destroy"),this.select2_instance=null),ve(pe(s.prototype),"destroy",this).call(this)}}])&&Me(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Vt);function ot(l){return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ot(l)}function yt(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ot(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ot(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ot(u)==="symbol"?u:String(u)),n)}var u}function Ft(){return Ft=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Yt(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Ft.apply(this,arguments)}function Dt(l,r){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Dt(l,r)}function Yt(l){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yt(l)}var Pe=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Dt(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Yt(n);if(u){var o=Yt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ot(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){this.selectize_instance?(t=[].concat(t).map(function(o){return"".concat(o)}),this.updateValue(t),this.selectize_instance.setValue(this.value),this.onChange(!0)):Ft(Yt(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){var t,e=this;window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance&&(t=this.expandCallbacks("selectize",b({},{plugins:["remove_button"],delimiter:!1,createOnBlur:!0,create:!0},this.defaults.options.selectize||{},this.options.selectize||{})),this.newEnumAllowed=t.create=!!t.create&&this.schema.items&&this.schema.items.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(t)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(o){var c=e.selectize_instance.getValue();e.updateValue(c),e.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler)),Ft(Yt(s.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(t){t=[].concat(t);for(var e=!1,o=[],c=0;c<t.length;c++)if(!(!this.select_values["".concat(t[c])]&&(e=!0,!this.newEnumAllowed||!this.addNewOption(t[c])))){var h=this.sanitize(this.select_values[t[c]]);o.push(h),h!==t[c]&&(e=!0)}return this.value=o,e}},{key:"addNewOption",value:function(t){return this.option_keys.push("".concat(t)),this.option_titles.push("".concat(t)),this.select_values["".concat(t)]=t,this.selectize_instance.addOption({text:t,value:t}),!0}},{key:"enable",value:function(){!this.always_disabled&&this.selectize_instance&&this.selectize_instance.unlock(),Ft(Yt(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.selectize_instance&&this.selectize_instance.lock(),Ft(Yt(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.selectize_instance&&(this.selectize_instance.destroy(),this.selectize_instance=null),Ft(Yt(s.prototype),"destroy",this).call(this)}}])&&yt(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Vt);function Te(l){return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Te(l)}function Ye(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Te(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Te(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Te(u)==="symbol"?u:String(u)),n)}var u}function Le(){return Le=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=de(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Le.apply(this,arguments)}function Ve(l,r){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Ve(l,r)}function de(l){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},de(l)}var Fr=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Ve(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=de(n);if(u){var o=de(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Te(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"postBuild",value:function(){window.Autocomplete&&(this.autocomplete_wrapper=document.createElement("div"),this.input.parentNode.insertBefore(this.autocomplete_wrapper,this.input.nextSibling),this.autocomplete_wrapper.appendChild(this.input),this.autocomplete_dropdown=document.createElement("ul"),this.input.parentNode.insertBefore(this.autocomplete_dropdown,this.input.nextSibling)),Le(de(s.prototype),"postBuild",this).call(this)}},{key:"afterInputReady",value:function(){var t,e=this;window.Autocomplete&&!this.autocomplete_instance&&(t=this.expandCallbacks("autocomplete",b({},{search:function(o){return console.log('No "search" callback defined for autocomplete in property "'.concat(o.key,'"')),[]},onSubmit:function(){e.input.blur()},baseClass:"autocomplete"},this.defaults.options.autocomplete||{},this.options.autocomplete||{})),this.autocomplete_wrapper.classList.add(t.baseClass),this.autocomplete_dropdown.classList.add("".concat(t.baseClass,"-result-list")),this.autocomplete_instance=new window.Autocomplete(this.autocomplete_wrapper,t)),Le(de(s.prototype),"afterInputReady",this).call(this)}},{key:"destroy",value:function(){this.autocomplete_instance&&(this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.autocomplete_dropdown&&this.autocomplete_dropdown.parentNode&&this.autocomplete_dropdown.parentNode.removeChild(this.autocomplete_dropdown),this.autocomplete_wrapper&&this.autocomplete_wrapper.parentNode&&this.autocomplete_wrapper.parentNode.removeChild(this.autocomplete_wrapper),this.autocomplete_instance=null),Le(de(s.prototype),"destroy",this).call(this)}}])&&Ye(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function Bt(l){return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bt(l)}function Kt(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Bt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Bt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Bt(u)==="symbol"?u:String(u)),n)}var u}function Wt(){return Wt=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=je(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Wt.apply(this,arguments)}function ee(l,r){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},ee(l,r)}function je(l){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},je(l)}R(561);var jn=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&ee(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=je(n);if(u){var o=je(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Bt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getNumColumns",value:function(){return 4}},{key:"setFileReaderListener",value:function(t){var e=this;t.addEventListener("load",function(o){if(e.count===e.current_item_index)e.value[e.count][e.key]=o.target.result;else{var c={};for(var h in e.parent.schema.properties)c[h]="";c[e.key]=o.target.result,e.value.splice(e.count,0,c)}e.count+=1,e.count===e.total+e.current_item_index&&e.arrayEditor.setValue(e.value)})}},{key:"build",value:function(){var t=this;if(this.options.compact||(this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(!window.FileReader)throw new Error("FileReader required for base64 editor");this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.schema.options&&this.schema.options.multiple&&this.schema.options.multiple===!0&&this.parent&&this.parent.schema.type==="object"&&this.parent.parent&&this.parent.parent.schema.type==="array"&&this.uploader.setAttribute("multiple",""),this.uploader.addEventListener("change",function(o){if(o.preventDefault(),o.stopPropagation(),o.currentTarget.files&&o.currentTarget.files.length)if(o.currentTarget.files.length>1&&t.schema.options&&t.schema.options.multiple&&t.schema.options.multiple===!0&&t.parent&&t.parent.schema.type==="object"&&t.parent.parent&&t.parent.parent.schema.type==="array"){t.arrayEditor=t.jsoneditor.getEditor(t.parent.parent.path),t.value=t.arrayEditor.getValue(),t.total=o.currentTarget.files.length,t.current_item_index=parseInt(t.parent.key),t.count=t.current_item_index;for(var c=0;c<t.total;c++){var h=new FileReader;t.setFileReaderListener(h),h.readAsDataURL(o.currentTarget.files[c])}}else{var f=new FileReader;f.onload=function(_){t.value=_.target.result,t.refreshPreview(),t.onChange(!0),f=null},f.readAsDataURL(o.currentTarget.files[0])}})}this.preview=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.preview),this.control=this.theme.getFormControl(this.label,this.uploader||this.input,this.preview,this.infoButton),this.container.appendChild(this.control);var e=this.getButton("button_upload","upload","button_upload");e.addEventListener("click",function(){t.uploader.click()}),this.control.appendChild(e)}},{key:"refreshPreview",value:function(){if(this.last_preview!==this.value&&(this.last_preview=this.value,this.preview.innerHTML="",this.value)){var t=this.value.match(/^data:([^;,]+)[;,]/);if(t&&(t=t[1]),t){if(this.preview.innerHTML="<strong>Type:</strong> ".concat(t,", <strong>Size:</strong> ").concat(Math.floor((this.value.length-this.value.split(",")[0].length-1)/1.33333)," bytes"),t.substr(0,5)==="image"){this.preview.innerHTML+="<br>";var e=document.createElement("img");e.style.maxWidth="100%",e.style.maxHeight="100px",e.src=this.value,this.preview.appendChild(e)}}else this.preview.innerHTML="<em>Invalid data URI</em>"}}},{key:"enable",value:function(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),Wt(je(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),Wt(je(s.prototype),"disable",this).call(this)}},{key:"setValue",value:function(t){this.value!==t&&(this.schema.readOnly&&this.schema.enum&&!this.schema.enum.includes(t)?this.value=this.schema.enum[0]:this.value=t,this.input.value=this.value,this.refreshPreview(),this.onChange())}},{key:"destroy",value:function(){this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.uploader&&this.uploader.parentNode&&this.uploader.parentNode.removeChild(this.uploader),Wt(je(s.prototype),"destroy",this).call(this)}}])&&Kt(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Nr(l){return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nr(l)}function Vi(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Nr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Nr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Nr(u)==="symbol"?u:String(u)),n)}var u}function rn(){return rn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=cr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},rn.apply(this,arguments)}function vr(l,r){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},vr(l,r)}function cr(l){return cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cr(l)}var Hi=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&vr(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=cr(n);if(u){var o=cr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Nr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t,e){var o;return function(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}(this,s),(o=a.call(this,t,e)).active=!1,o.parent&&o.parent.schema&&(Array.isArray(o.parent.schema.required)?o.parent.schema.required.includes(o.key)||o.parent.schema.required.push(o.key):o.parent.schema.required=[o.key]),o}return r=s,(p=[{key:"build",value:function(){var t=this;this.options.compact=!0;var e=this.translateProperty(this.schema.title)||this.key,o=this.expandCallbacks("button",b({},{icon:"",validated:!1,align:"left",action:function(c,h){window.alert('No button action defined for "'.concat(c.path,'"'))}},this.defaults.options.button||{},this.options.button||{}));this.input=this.getButton(e,o.icon,e),this.input.addEventListener("click",o.action,!1),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.disable(!0),this.input.setAttribute("readonly","true")),this.setInputAttributes(["readonly"]),this.control=this.theme.getFormButtonHolder(o.align),this.control.appendChild(this.input),this.container.appendChild(this.control),this.changeHandler=function(){t.jsoneditor.validate(t.jsoneditor.getValue()).length>0?t.disable():t.enable()},o.validated&&this.jsoneditor.on("change",this.changeHandler)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,rn(cr(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.input.disabled=!0,rn(cr(s.prototype),"disable",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"activate",value:function(){this.active=!1,this.enable()}},{key:"deactivate",value:function(){this.isRequired()||(this.active=!1,this.disable())}},{key:"destroy",value:function(){this.jsoneditor.off("change",this.changeHandler),this.changeHandler=null,rn(cr(s.prototype),"destroy",this).call(this)}}])&&Vi(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Mr(l){return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mr(l)}function zi(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Mr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Mr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Mr(u)==="symbol"?u:String(u)),n)}var u}function Pr(){return Pr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=nr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Pr.apply(this,arguments)}function On(l,r){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},On(l,r)}function nr(l){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nr(l)}var Ui=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&On(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=nr(n);if(u){var o=nr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Mr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){t=!!t;var o=this.getValue()!==t;this.value=t,this.input.checked=this.value,this.onChange(o)}},{key:"register",value:function(){Pr(nr(s.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){Pr(nr(s.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){return Math.min(12,Math.max(this.getTitle().length/7,2))}},{key:"build",value:function(){var t=this;this.parent.options.table_row||(this.label=this.header=this.theme.getCheckboxLabel(this.getTitle(),this.isRequired()),this.label.htmlFor=this.formname),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&!this.options.compact&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.input=this.theme.getCheckbox(),this.input.id=this.formname,this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.input.addEventListener("change",function(e){e.preventDefault(),e.stopPropagation(),t.value=e.currentTarget.checked,t.onChange(!0)}),this.container.appendChild(this.control)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,Pr(nr(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.input.disabled=!0,Pr(nr(s.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),Pr(nr(s.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(t){var e=this;this.previous_error_setting=this.jsoneditor.options.show_errors;var o=t.reduce(function(c,h){return h.path===e.path&&c.push(h.message),c},[]);this.input.controlgroup=this.control,o.length?this.theme.addInputError(this.input,"".concat(o.join(". "),".")):this.theme.removeInputError(this.input)}}])&&zi(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function $r(l){return $r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$r(l)}function yi(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if($r(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if($r(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),$r(u)==="symbol"?u:String(u)),n)}var u}function Ze(){return Ze=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Ge(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Ze.apply(this,arguments)}function br(l,r){return br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},br(l,r)}function Ge(l){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ge(l)}R(2772),R(2707);var nn=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&br(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Ge(n);if(u){var o=Ge(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&($r(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){var o=this.typecast(t),c=!!this.jsoneditor.options.use_default_values||this.schema.default!==void 0;(this.enum_options.length>0&&!this.enum_values.includes(o)||e&&!this.isRequired()&&!c)&&(o=this.enum_values[0]),this.value!==o&&(e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.input.value=this.enum_options[this.enum_values.indexOf(o)],this.value=o,this.onChange(),this.change())}},{key:"register",value:function(){Ze(Ge(s.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){Ze(Ge(s.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"getNumColumns",value:function(){if(!this.enum_options)return 3;for(var t=this.getTitle().length,e=0;e<this.enum_options.length;e++)t=Math.max(t,this.enum_options[e].length+4);return Math.min(12,Math.max(t/7,2))}},{key:"typecast",value:function(t){return this.schema.type==="boolean"?t==="undefined"||t===void 0?void 0:!!t:this.schema.type==="number"?1*t||0:this.schema.type==="integer"?Math.floor(1*t||0):this.schema.enum&&t===void 0?void 0:"".concat(t)}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.typecast(this.value)}},{key:"preBuild",value:function(){var t,e,o=this;if(this.input_type="select",this.enum_options=[],this.enum_values=[],this.enum_display=[],this.schema.enum){var c=this.schema.options&&this.schema.options.enum_titles||[];this.schema.enum.forEach(function(h,f){o.enum_options[f]="".concat(h),o.enum_display[f]="".concat(o.translateProperty(c[f])||h),o.enum_values[f]=o.typecast(h)})}else if(this.schema.type==="boolean")this.enum_display=this.schema.options&&this.schema.options.enum_titles||["true","false"],this.enum_options=["1",""],this.enum_values=[!0,!1],this.isRequired()||(this.enum_display.unshift(" "),this.enum_options.unshift("undefined"),this.enum_values.unshift(void 0));else{if(!this.schema.enumSource)throw new Error("'select' editor requires the enum property to be set.");if(this.enumSource=[],this.enum_display=[],this.enum_options=[],this.enum_values=[],Array.isArray(this.schema.enumSource))for(t=0;t<this.schema.enumSource.length;t++)typeof this.schema.enumSource[t]=="string"?this.enumSource[t]={source:this.schema.enumSource[t]}:Array.isArray(this.schema.enumSource[t])?this.enumSource[t]=this.schema.enumSource[t]:this.enumSource[t]=b({},this.schema.enumSource[t]);else this.schema.enumValue?this.enumSource=[{source:this.schema.enumSource,value:this.schema.enumValue}]:this.enumSource=[{source:this.schema.enumSource}];for(t=0;t<this.enumSource.length;t++)this.enumSource[t].value&&(typeof(e=this.expandCallbacks("template",{template:this.enumSource[t].value})).template=="function"?this.enumSource[t].value=e.template:this.enumSource[t].value=this.jsoneditor.compileTemplate(this.enumSource[t].value,this.template_engine)),this.enumSource[t].title&&(typeof(e=this.expandCallbacks("template",{template:this.enumSource[t].title})).template=="function"?this.enumSource[t].title=e.template:this.enumSource[t].title=this.jsoneditor.compileTemplate(this.enumSource[t].title,this.template_engine)),this.enumSource[t].filter&&this.enumSource[t].value&&(typeof(e=this.expandCallbacks("template",{template:this.enumSource[t].filter})).template=="function"?this.enumSource[t].filter=e.template:this.enumSource[t].filter=this.jsoneditor.compileTemplate(this.enumSource[t].filter,this.template_engine))}}},{key:"build",value:function(){var t=this;this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.input=this.theme.getSelectInput(this.enum_options,!1),this.theme.setSelectOptions(this.input,this.enum_options,this.enum_display),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.setInputAttributes([]),this.input.addEventListener("change",function(e){e.preventDefault(),e.stopPropagation(),t.onInputChange()}),this.control=this.theme.getFormControl(this.label,this.input,this.description,this.infoButton),this.container.appendChild(this.control),this.value=this.enum_values[0],window.requestAnimationFrame(function(){t.input.parentNode&&t.afterInputReady()})}},{key:"afterInputReady",value:function(){this.theme.afterInputReady(this.input)}},{key:"onInputChange",value:function(){var t,e=this.typecast(this.input.value);(t=this.enum_values.includes(e)?this.enum_values[this.enum_values.indexOf(e)]:this.enum_values[0])!==this.value&&(this.is_dirty=!0,this.value=t,this.onChange(!0))}},{key:"onWatchedFieldChange",value:function(){var t,e,o=[],c=[];if(this.enumSource){t=this.getWatchedFieldValues();for(var h=0;h<this.enumSource.length;h++)if(Array.isArray(this.enumSource[h]))o=o.concat(this.enumSource[h]),c=c.concat(this.enumSource[h]);else{var f=[];if(f=Array.isArray(this.enumSource[h].source)?this.enumSource[h].source:t[this.enumSource[h].source]){if(this.enumSource[h].slice&&(f=Array.prototype.slice.apply(f,this.enumSource[h].slice)),this.enumSource[h].filter){var _=[];for(e=0;e<f.length;e++)this.enumSource[h].filter({i:e,item:f[e],watched:t})&&_.push(f[e]);f=_}var T=[],Y=[];for(e=0;e<f.length;e++){var nt=f[e];this.enumSource[h].value?Y[e]=this.typecast(this.enumSource[h].value({i:e,item:nt})):Y[e]=f[e],this.enumSource[h].title?T[e]=this.enumSource[h].title({i:e,item:nt}):T[e]=Y[e]}this.enumSource[h].sort&&(function(ht,xt,Ot){ht.map(function(It,Qt){return{v:It,t:xt[Qt]}}).sort(function(It,Qt){return It.v<Qt.v?-Ot:It.v===Qt.v?0:Ot}).forEach(function(It,Qt){ht[Qt]=It.v,xt[Qt]=It.t})}).bind(null,Y,T,this.enumSource[h].sort==="desc"?1:-1)(),o=o.concat(Y),c=c.concat(T)}}var ut=this.value;this.theme.setSelectOptions(this.input,o,c),this.enum_options=o,this.enum_display=c,this.enum_values=o,o.includes(ut)||this.jsoneditor.options.enum_source_value_auto_select!==!1?(this.input.value=ut,this.value=ut):(this.input.value=o[0],this.value=this.typecast(o[0]||""),this.parent&&!this.watchLoop?this.parent.onChildEditorChange(this):this.jsoneditor.onChange(),this.jsoneditor.notifyWatchers(this.path))}Ze(Ge(s.prototype),"onWatchedFieldChange",this).call(this)}},{key:"enable",value:function(){this.always_disabled||(this.input.disabled=!1,Ze(Ge(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.input.disabled=!0,Ze(Ge(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),Ze(Ge(s.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(t){var e=this;this.previous_error_setting=this.jsoneditor.options.show_errors;var o=t.reduce(function(c,h){return h.path===e.path&&c.push(h.message),c},[]);o.length?this.theme.addInputError(this.input,"".concat(o.join(". "),".")):this.theme.removeInputError(this.input)}}])&&yi(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Vr(l){return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vr(l)}function mo(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Vr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Vr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Vr(u)==="symbol"?u:String(u)),n)}var u}function ir(){return ir=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=F(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},ir.apply(this,arguments)}function S(l,r){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},S(l,r)}function F(l){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},F(l)}var rt=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&S(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=F(n);if(u){var o=F(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Vr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){if(this.choices_instance){var o=this.typecast(t||"");if(this.enum_values.includes(o)||(o=this.enum_values[0]),this.value===o)return;e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.input.value=this.enum_options[this.enum_values.indexOf(o)],this.choices_instance.setChoiceByValue(this.input.value),this.value=o,this.onChange()}else ir(F(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){if(window.Choices&&!this.choices_instance){var t=this.expandCallbacks("choices",b({},this.defaults.options.choices||{},this.options.choices||{}));this.choices_instance=new window.Choices(this.input,t)}ir(F(s.prototype),"afterInputReady",this).call(this)}},{key:"onWatchedFieldChange",value:function(){var t=this;if(ir(F(s.prototype),"onWatchedFieldChange",this).call(this),this.choices_instance){var e=this.enum_options.map(function(o,c){return{value:o,label:t.enum_display[c]}});this.choices_instance.setChoices(e,"value","label",!0),this.choices_instance.setChoiceByValue("".concat(this.value))}}},{key:"enable",value:function(){!this.always_disabled&&this.choices_instance&&this.choices_instance.enable(),ir(F(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.choices_instance&&this.choices_instance.disable(),ir(F(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.choices_instance&&(this.choices_instance.destroy(),this.choices_instance=null),ir(F(s.prototype),"destroy",this).call(this)}}])&&mo(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(nn);function X(l){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},X(l)}function ft(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(X(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(X(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),X(u)==="symbol"?u:String(u)),n)}var u}function At(){return At=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=dt(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},At.apply(this,arguments)}function qt(l,r){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},qt(l,r)}function dt(l){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dt(l)}rt.rules={".choices > *":"box-sizing:border-box"};var mt=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&qt(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=dt(n);if(u){var o=dt(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(X(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){if(At(dt(s.prototype),"build",this).call(this),this.input&&(this.schema.max&&typeof this.schema.max=="string"&&this.input.setAttribute("max",this.schema.max),this.schema.min&&typeof this.schema.max=="string"&&this.input.setAttribute("min",this.schema.min),window.flatpickr&&X(this.options.flatpickr)==="object")){this.options.flatpickr.enableTime=this.schema.format!=="date",this.options.flatpickr.noCalendar=this.schema.format==="time",this.schema.type==="integer"&&(this.options.flatpickr.mode="single"),this.input.setAttribute("data-input","");var t=this.input;if(this.options.flatpickr.wrap===!0){var e=[];if(this.options.flatpickr.showToggleButton!==!1){var o=this.getButton("",this.schema.format==="time"?"time":"calendar","flatpickr_toggle_button");o.setAttribute("data-toggle",""),e.push(o)}if(this.options.flatpickr.showClearButton!==!1){var c=this.getButton("","clear","flatpickr_clear_button");c.setAttribute("data-clear",""),e.push(c)}var h=this.input.parentNode,f=this.input.nextSibling,_=this.theme.getInputGroup(this.input,e);_!==void 0?(this.options.flatpickr.inline=!1,h.insertBefore(_,f),t=_):this.options.flatpickr.wrap=!1}this.flatpickr=window.flatpickr(t,this.options.flatpickr),this.options.flatpickr.inline===!0&&this.options.flatpickr.inlineHideInput===!0&&this.input.setAttribute("type","hidden")}}},{key:"getValue",value:function(){if(this.dependenciesFulfilled){if(this.schema.type==="string")return this.value;if(this.value!==""&&this.value!==void 0){var t=this.schema.format==="time"?"1970-01-01 ".concat(this.value):this.value;return parseInt(new Date(t).getTime()/1e3)}}}},{key:"setValue",value:function(t,e,o){if(this.schema.type==="string")At(dt(s.prototype),"setValue",this).call(this,t,e,o),this.flatpickr&&this.flatpickr.setDate(t);else if(t>0){var c=new Date(1e3*t),h=c.getFullYear(),f=this.zeroPad(c.getMonth()+1),_=this.zeroPad(c.getDate()),T=this.zeroPad(c.getHours()),Y=this.zeroPad(c.getMinutes()),nt=this.zeroPad(c.getSeconds()),ut=[h,f,_].join("-"),ht=[T,Y,nt].join(":"),xt="".concat(ut,"T").concat(ht);this.schema.format==="date"?xt=ut:this.schema.format==="time"&&(xt=ht),this.input.value=xt,this.refreshValue(),this.flatpickr&&this.flatpickr.setDate(xt)}}},{key:"destroy",value:function(){this.flatpickr&&this.flatpickr.destroy(),this.flatpickr=null,At(dt(s.prototype),"destroy",this).call(this)}},{key:"zeroPad",value:function(t){return"0".concat(t).slice(-2)}}])&&ft(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function zt(l){return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zt(l)}function Xt(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(zt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(zt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),zt(u)==="symbol"?u:String(u)),n)}var u}function Et(){return Et=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=ge(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Et.apply(this,arguments)}function re(l,r){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},re(l,r)}function ge(l){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ge(l)}var Be=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&re(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=ge(n);if(u){var o=ge(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(zt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"register",value:function(){if(this.editors){for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].unregister();this.editors[this.currentEditor]&&this.editors[this.currentEditor].register()}Et(ge(s.prototype),"register",this).call(this)}},{key:"unregister",value:function(){if(Et(ge(s.prototype),"unregister",this).call(this),this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].unregister()}},{key:"getNumColumns",value:function(){return this.editors[this.currentEditor]?Math.max(this.editors[this.currentEditor].getNumColumns(),4):4}},{key:"enable",value:function(){if(this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].enable();Et(ge(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(){if(this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].disable();Et(ge(s.prototype),"disable",this).call(this)}},{key:"switchEditor",value:function(){var t=this,e=this.getWatchedFieldValues();if(e){var o=document.location.origin+document.location.pathname+this.template(e);this.editors[this.refs[o]]||this.buildChildEditor(o),this.currentEditor=this.refs[o],this.register(),this.editors.forEach(function(c,h){c&&(t.currentEditor===h?c.container.style.display="":c.container.style.display="none")}),this.refreshValue(),this.onChange(!0)}}},{key:"buildChildEditor",value:function(t){this.refs[t]=this.editors.length;var e=this.theme.getChildEditorHolder();this.editor_holder.appendChild(e);var o=b({},this.schema,this.jsoneditor.refs[t]),c=this.jsoneditor.getEditorClass(o,this.jsoneditor),h=this.jsoneditor.createEditor(c,{jsoneditor:this.jsoneditor,schema:o,container:e,path:this.path,parent:this,required:!0});this.editors.push(h),h.preBuild(),h.build(),h.postBuild()}},{key:"preBuild",value:function(){var t;for(this.refs={},this.editors=[],this.currentEditor="",t=0;t<this.schema.links.length;t++)if(this.schema.links[t].rel.toLowerCase()==="describedby"){this.template=this.jsoneditor.compileTemplate(this.schema.links[t].href,this.template_engine);break}this.schema.links=this.schema.links.slice(0,t).concat(this.schema.links.slice(t+1)),this.schema.links.length===0&&delete this.schema.links,this.baseSchema=b({},this.schema)}},{key:"build",value:function(){this.editor_holder=document.createElement("div"),this.container.appendChild(this.editor_holder),this.switchEditor()}},{key:"onWatchedFieldChange",value:function(){this.switchEditor()}},{key:"onChildEditorChange",value:function(t){this.editors[this.currentEditor]&&this.refreshValue(),Et(ge(s.prototype),"onChildEditorChange",this).call(this,t)}},{key:"refreshValue",value:function(){this.editors[this.currentEditor]&&(this.value=this.editors[this.currentEditor].getValue())}},{key:"setValue",value:function(t,e){this.editors[this.currentEditor]&&(this.editors[this.currentEditor].setValue(t,e),this.refreshValue(),this.onChange())}},{key:"destroy",value:function(){this.editors.forEach(function(t){t&&t.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),Et(ge(s.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(t){this.editors.forEach(function(e){e&&e.showValidationErrors(t)})}}])&&Xt(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Lt(l){return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lt(l)}function Zt(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function Nt(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Lt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Lt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Lt(u)==="symbol"?u:String(u)),n)}var u}function oe(){return oe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=he(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},oe.apply(this,arguments)}function Oe(l,r){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Oe(l,r)}function he(l){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},he(l)}var _e=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Oe(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=he(n);if(u){var o=he(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Lt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getNumColumns",value:function(){return 4}},{key:"build",value:function(){var t=this;this.title=this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired()),this.container.appendChild(this.title),this.options.enum_titles=this.options.enum_titles||[],this.enum=this.schema.enum,this.selected=0,this.select_options=[],this.html_values=[];for(var e=0;e<this.enum.length;e++)this.select_options[e]=this.options.enum_titles[e]||"Value ".concat(e+1),this.html_values[e]=this.getHTML(this.enum[e]);this.switcher=this.theme.getSwitcher(this.select_options),this.container.appendChild(this.switcher),this.display_area=this.theme.getIndentedPanel(),this.container.appendChild(this.display_area),this.options.hide_display&&(this.display_area.style.display="none"),this.switcher.addEventListener("change",function(o){t.selected=t.select_options.indexOf(o.currentTarget.value),t.value=t.enum[t.selected],t.refreshValue(),t.onChange(!0)}),this.value=this.enum[0],this.refreshValue(),this.enum.length===1&&(this.switcher.style.display="none")}},{key:"refreshValue",value:function(){var t=this;this.selected=-1;var e=JSON.stringify(this.value);this.enum.forEach(function(o,c){if(e===JSON.stringify(o))return t.selected=c,!1}),this.selected<0?this.setValue(this.enum[0]):(this.switcher.value=this.select_options[this.selected],this.display_area.innerHTML=this.html_values[this.selected])}},{key:"enable",value:function(){this.always_disabled||(this.switcher.disabled=!1,oe(he(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.switcher.disabled=!0,oe(he(s.prototype),"disable",this).call(this)}},{key:"getHTML",value:function(t){var e,o,c=this;if(t===null)return"<em>null</em>";if(Lt(t)==="object"){var h="";return e=t,o=function(f,_){var T=c.getHTML(_);Array.isArray(t)||(T="<div><em>".concat(f,"</em>: ").concat(T,"</div>")),h+="<li>".concat(T,"</li>")},Array.isArray(e)||typeof e.length=="number"&&e.length>0&&e.length-1 in e?Array.from(e).forEach(function(f,_){return o(_,f)}):Object.entries(e).forEach(function(f){var _,T,Y=(T=2,function(ht){if(Array.isArray(ht))return ht}(_=f)||function(ht,xt){var Ot=ht==null?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(Ot!=null){var It,Qt,be,Ht,vt=[],Ut=!0,Se=!1;try{if(be=(Ot=Ot.call(ht)).next,xt===0){if(Object(Ot)!==Ot)return;Ut=!1}else for(;!(Ut=(It=be.call(Ot)).done)&&(vt.push(It.value),vt.length!==xt);Ut=!0);}catch(U){Se=!0,Qt=U}finally{try{if(!Ut&&Ot.return!=null&&(Ht=Ot.return(),Object(Ht)!==Ht))return}finally{if(Se)throw Qt}}return vt}}(_,T)||function(ht,xt){if(ht){if(typeof ht=="string")return Zt(ht,xt);var Ot=Object.prototype.toString.call(ht).slice(8,-1);return Ot==="Object"&&ht.constructor&&(Ot=ht.constructor.name),Ot==="Map"||Ot==="Set"?Array.from(ht):Ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ot)?Zt(ht,xt):void 0}}(_,T)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),nt=Y[0],ut=Y[1];return o(nt,ut)}),h=Array.isArray(t)?"<ol>".concat(h,"</ol>"):"<ul style='margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;'>".concat(h,"</ul>")}return typeof t=="boolean"?t?"true":"false":typeof t=="string"?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}},{key:"setValue",value:function(t){this.value!==t&&(this.value=t,this.refreshValue(),this.onChange())}},{key:"destroy",value:function(){this.display_area&&this.display_area.parentNode&&this.display_area.parentNode.removeChild(this.display_area),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),oe(he(s.prototype),"destroy",this).call(this)}}])&&Nt(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function ce(l){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ce(l)}function He(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ce(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ce(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ce(u)==="symbol"?u:String(u)),n)}var u}function xe(){return xe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Qe(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},xe.apply(this,arguments)}function or(l,r){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},or(l,r)}function Qe(l){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qe(l)}var qi=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&or(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Qe(n);if(u){var o=Qe(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ce(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"register",value:function(){xe(Qe(s.prototype),"register",this).call(this),this.input&&this.jsoneditor.options.use_name_attributes&&this.input.setAttribute("name",this.formname)}},{key:"unregister",value:function(){xe(Qe(s.prototype),"unregister",this).call(this),this.input&&this.input.removeAttribute("name")}},{key:"setValue",value:function(t,e,o){if((!this.template||o)&&(t==null?t="":ce(t)==="object"?t=JSON.stringify(t):typeof t!="string"&&(t="".concat(t)),t!==this.serialized)){var c=this.sanitize(t);if(this.input.value!==c){this.input.value=c;var h=o||this.getValue()!==t;this.refreshValue(),e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0),this.adjust_height&&this.adjust_height(this.input),this.onChange(h)}}}},{key:"getNumColumns",value:function(){return 2}},{key:"enable",value:function(){xe(Qe(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(){xe(Qe(s.prototype),"disable",this).call(this)}},{key:"refreshValue",value:function(){this.value=this.input.value,typeof this.value!="string"&&(this.value=""),this.serialized=this.value}},{key:"destroy",value:function(){this.template=null,this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),xe(Qe(s.prototype),"destroy",this).call(this)}},{key:"sanitize",value:function(t){return t}},{key:"onWatchedFieldChange",value:function(){var t;this.template&&(t=this.getWatchedFieldValues(),this.setValue(this.template(t),!1,!0)),xe(Qe(s.prototype),"onWatchedFieldChange",this).call(this)}},{key:"build",value:function(){if(this.format=this.schema.format,!this.format&&this.options.default_format&&(this.format=this.options.default_format),this.options.format&&(this.format=this.options.format),this.input_type="hidden",this.input=this.theme.getFormInputField(this.input_type),this.format&&this.input.setAttribute("data-schemaformat",this.format),this.container.appendChild(this.input),this.schema.template){var t=this.expandCallbacks("template",{template:this.schema.template});typeof t.template=="function"?this.template=t.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine),this.refreshValue()}else this.refreshValue()}}])&&He(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function ur(l){return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ur(l)}function vo(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ur(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ur(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ur(u)==="symbol"?u:String(u)),n)}var u}function Cn(l,r){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Cn(l,r)}function ar(l){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ar(l)}var Sn=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Cn(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=ar(n);if(u){var o=ar(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ur(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){this.options.compact=!1,this.header=this.label=this.theme.getFormInputLabel(this.getTitle()),this.description=this.theme.getDescription(this.schema.description||""),this.control=this.theme.getFormControl(this.label,this.description,null),this.container.appendChild(this.control)}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title)}},{key:"getNumColumns",value:function(){return 12}}])&&vo(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Hi);function Tr(l){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tr(l)}function Wi(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Tr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Tr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Tr(u)==="symbol"?u:String(u)),n)}var u}function En(){return En=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Hr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},En.apply(this,arguments)}function Pn(l,r){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Pn(l,r)}function Hr(l){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(l)}var Ji=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Pn(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Hr(n);if(u){var o=Hr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Tr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){if(En(Hr(s.prototype),"build",this).call(this),this.schema.minimum!==void 0){var t=this.schema.minimum;this.schema.exclusiveMinimum!==void 0&&(t+=1),this.input.setAttribute("min",t)}if(this.schema.maximum!==void 0){var e=this.schema.maximum;this.schema.exclusiveMaximum!==void 0&&(e-=1),this.input.setAttribute("max",e)}if(this.schema.step!==void 0){var o=this.schema.step||1;this.input.setAttribute("step",o)}this.setInputAttributes(["maxlength","pattern","readonly","min","max","step"])}},{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.default||this.jsoneditor.options.use_default_values||this.value!==""?function(t){if(t==null)return!1;var e=t.match(C),o=parseFloat(t);return e!==null&&!isNaN(o)&&isFinite(o)}(this.value)?parseFloat(this.value):this.value:void(this.shouldBeUnset()&&(this.input.value=""))}}])&&Wi(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function sr(l){return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sr(l)}function on(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(sr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(sr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),sr(u)==="symbol"?u:String(u)),n)}var u}function hr(l,r){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},hr(l,r)}function Tn(l){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(l)}var Yi=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&hr(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Tn(n);if(u){var o=Tn(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(sr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.default||this.jsoneditor.options.use_default_values||this.value!==""?function(t){if(t==null)return!1;var e=t.match(E),o=parseInt(t);return e!==null&&!isNaN(o)&&isFinite(o)}(this.value)?parseInt(this.value):this.value:void this.shouldBeUnset()}}])&&on(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Ji);function zr(l){return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zr(l)}function Ln(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(zr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(zr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),zr(u)==="symbol"?u:String(u)),n)}var u}function gr(){return gr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=pr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},gr.apply(this,arguments)}function Ur(l,r){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Ur(l,r)}function pr(l){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pr(l)}var mi=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Ur(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=pr(n);if(u){var o=pr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(zr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"preBuild",value:function(){if(gr(pr(s.prototype),"preBuild",this).call(this),this.schema.options||(this.schema.options={}),!this.schema.options.cleave)switch(this.format){case"ipv6":this.schema.options.cleave={delimiters:[":"],blocks:[4,4,4,4,4,4,4,4],uppercase:!0};break;case"ipv4":this.schema.options.cleave={delimiters:["."],blocks:[3,3,3,3],numericOnly:!0}}this.options=b(this.options,this.schema.options||{})}}])&&Ln(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function qr(l){return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qr(l)}function bo(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(qr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(qr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),qr(u)==="symbol"?u:String(u)),n)}var u}function dr(){return dr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Xe(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},dr.apply(this,arguments)}function Rn(l,r){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Rn(l,r)}function Xe(l){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xe(l)}var Ki=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Rn(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Xe(n);if(u){var o=Xe(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(qr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e,o){var c=dr(Xe(s.prototype),"setValue",this).call(this,t,e,o);c!==void 0&&c.changed&&this.jodit_instance&&this.jodit_instance.setEditorValue(c.value)}},{key:"build",value:function(){this.options.format="textarea",dr(Xe(s.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var t,e=this;window.Jodit?(t=this.expandCallbacks("jodit",b({},{height:300},this.defaults.options.jodit||{},this.options.jodit||{})),this.jodit_instance=new window.Jodit(this.input,t),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&this.jodit_instance.setReadOnly(!0),this.jodit_instance.events.on("change",function(){e.value=e.jodit_instance.getEditorValue(),e.is_dirty=!0,e.onChange(!0)}),this.theme.afterInputReady(this.input)):dr(Xe(s.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.jodit_instance&&this.jodit_instance.setReadOnly(!1),dr(Xe(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.jodit_instance&&this.jodit_instance.setReadOnly(!0),dr(Xe(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.jodit_instance&&(this.jodit_instance.destruct(),this.jodit_instance=null),dr(Xe(s.prototype),"destroy",this).call(this)}}])&&bo(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q),Zi=(R(6541),R(9337),R(3321),function(l){var r=l.split(".");if(r.length!==4)throw new Error("error_ipv4");r.forEach(function(p){if(isNaN(+p)||+p<0||+p>255)throw new Error("error_ipv4")})}),vi=function(l){if(!l.match("^(?:(?:(?:[a-fA-F0-9]{1,4}:){6}|(?=(?:[a-fA-F0-9]{0,4}:){2,6}(?:[0-9]{1,3}.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){1,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[a-fA-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}|(?=(?:[a-fA-F0-9]{0,4}:){0,7}[a-fA-F0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[a-fA-F0-9]{1,4}:){7}:|:(:[a-fA-F0-9]{1,4}){7})$"))throw new Error("error_ipv6")},bi=function(l){if(!l.match("(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9].)+[a-zA-Z]{2,63}$)"))throw new Error("error_hostname")};function gi(l,r,p,n){try{switch(l.format){case"ipv4":Zi(r);break;case"ipv6":vi(r);break;case"hostname":bi(r)}return[]}catch(u){return[{path:p,property:"format",message:n(u.message)}]}}function An(l,r){var p=Object.keys(l);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(l);r&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),p.push.apply(p,n)}return p}function wi(l,r,p){return(r=Bn(r))in l?Object.defineProperty(l,r,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[r]=p,l}function an(l,r){return function(p){if(Array.isArray(p))return p}(l)||function(p,n){var u=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(u!=null){var a,s,t,e,o=[],c=!0,h=!1;try{if(t=(u=u.call(p)).next,n===0){if(Object(u)!==u)return;c=!1}else for(;!(c=(a=t.call(u)).done)&&(o.push(a.value),o.length!==n);c=!0);}catch(f){h=!0,s=f}finally{try{if(!c&&u.return!=null&&(e=u.return(),Object(e)!==e))return}finally{if(h)throw s}}return o}}(l,r)||sn(l,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ze(l){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ze(l)}function ue(l){return function(r){if(Array.isArray(r))return ln(r)}(l)||function(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}(l)||sn(l)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sn(l,r){if(l){if(typeof l=="string")return ln(l,r);var p=Object.prototype.toString.call(l).slice(8,-1);return p==="Object"&&l.constructor&&(p=l.constructor.name),p==="Map"||p==="Set"?Array.from(l):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?ln(l,r):void 0}}function ln(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function _i(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,Bn(n.key),n)}}function Bn(l){var r=function(p,n){if(ze(p)!=="object"||p===null)return p;var u=p[Symbol.toPrimitive];if(u!==void 0){var a=u.call(p,"string");if(ze(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(l);return ze(r)==="symbol"?r:String(r)}var In=function(){function l(n,u,a,s){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,l),this.jsoneditor=n,this.schema=u||this.jsoneditor.schema,this.options=a||{},this.translate=this.jsoneditor.translate||s.translate,this.translateProperty=this.jsoneditor.translateProperty||s.translateProperty,this.defaults=s,this._validateSubSchema={dependentRequired:function(t,e,o){var c=[];if(t.dependentRequired!==void 0){var h=[];Object.keys(t.dependentRequired).forEach(function(f){if(e[f]!==void 0){var _=t.dependentRequired[f];h=_.filter(function(T){return!x(e,T)})}}),h.length>0&&c.push({message:"Must have the required properties: "+h.join(", "),path:o})}return c},dependentSchemas:function(t,e,o){var c=this,h=[];return Object.keys(t.dependentSchemas).forEach(function(f){if(e[f]!==void 0){var _=t.dependentSchemas[f],T=c._validateSchema(_,e,o);h=[].concat(ue(h),ue(T))}}),h},contains:function(t,e,o){var c=this,h=[],f=0;e.forEach(function(T){c._validateSchema(t.contains,T,o).length===0&&f++});var _=f===0;return t.minContains!==void 0?f<t.minContains&&h.push({message:this.translate("error_minContains",[f,t.minContains],t),path:o}):_&&h.push({message:this.translate("error_contains",null,t),path:o}),t.maxContains!==void 0&&f>t.maxContains&&h.push({message:this.translate("error_maxContains",[f,t.maxContains],t),path:o}),h},if:function(t,e,o){if(t.then===void 0&&t.else===void 0)return[];var c=this._validateSchema(t.if,e,o),h=[],f=[];return t.then!==void 0&&(h=this._validateSchema(t.then,e,o)),t.else!==void 0&&(f=this._validateSchema(t.else,e,o)),t.if===!0?h:t.if===!1?f:c.length===0?h:c.length>0?f:[]},const:function(t,e,o){return JSON.stringify(t.const)!==JSON.stringify(e)||Array.isArray(e)||ze(e)==="object"?[{path:o,property:"const",message:this.translate("error_const",null,t)}]:[]},enum:function(t,e,o){var c=JSON.stringify(e);return t.enum.some(function(h){return c===JSON.stringify(h)})?[]:[{path:o,property:"enum",message:this.translate("error_enum",null,t)}]},extends:function(t,e,o){var c=this;return t.extends.reduce(function(h,f){return h.push.apply(h,ue(c._validateSchema(f,e,o))),h},[])},allOf:function(t,e,o){var c=this;return t.allOf.reduce(function(h,f){return h.push.apply(h,ue(c._validateSchema(f,e,o))),h},[])},anyOf:function(t,e,o){var c=this;return t.anyOf.some(function(h){return!c._validateSchema(h,e,o).length})?[]:[{path:o,property:"anyOf",message:this.translate("error_anyOf",null,t)}]},oneOf:function(t,e,o){var c=this,h=0,f=[];t.oneOf.forEach(function(T,Y){var nt=c._validateSchema(T,e,o);nt.length||h++,nt.forEach(function(ut){ut.path="".concat(o,".oneOf[").concat(Y,"]").concat(ut.path.substr(o.length))}),f.push.apply(f,ue(nt))});var _=[];return h!==1&&(_.push({path:o,property:"oneOf",message:this.translate("error_oneOf",[h],t)}),_.push.apply(_,f)),_},not:function(t,e,o){return this._validateSchema(t.not,e,o).length?[]:[{path:o,property:"not",message:this.translate("error_not",null,t)}]},type:function(t,e,o){var c=this;if(Array.isArray(t.type)){if(!t.type.some(function(h){return c._checkType(h,e)}))return[{path:o,property:"type",message:this.translate("error_type_union",null,t)}]}else if(["date","time","datetime-local"].includes(t.format)&&t.type==="integer"){if(!this._checkType("string","".concat(e)))return[{path:o,property:"type",message:this.translate("error_type",[t.format],t)}]}else if(!this._checkType(t.type,e))return[{path:o,property:"type",message:this.translate("error_type",[t.type],t)}];return[]},disallow:function(t,e,o){var c=this;if(Array.isArray(t.disallow)){if(t.disallow.some(function(h){return c._checkType(h,e)}))return[{path:o,property:"disallow",message:this.translate("error_disallow_union",null,t)}]}else if(this._checkType(t.disallow,e))return[{path:o,property:"disallow",message:this.translate("error_disallow",[t.disallow],t)}];return[]}},this._validateNumberSubSchema={multipleOf:function(t,e,o){return this._validateNumberSubSchemaMultipleDivisible(t,e,o)},divisibleBy:function(t,e,o){return this._validateNumberSubSchemaMultipleDivisible(t,e,o)},maximum:function(t,e,o){var c=t.exclusiveMaximum?e<t.maximum:e<=t.maximum;return window.math?c=window.math[t.exclusiveMaximum?"smaller":"smallerEq"](window.math.bignumber(e),window.math.bignumber(t.maximum)):window.Decimal&&(c=new window.Decimal(e)[t.exclusiveMaximum?"lt":"lte"](new window.Decimal(t.maximum))),c?[]:[{path:o,property:"maximum",message:this.translate(t.exclusiveMaximum?"error_maximum_excl":"error_maximum_incl",[t.maximum],t)}]},minimum:function(t,e,o){var c=t.exclusiveMinimum?e>t.minimum:e>=t.minimum;return window.math?c=window.math[t.exclusiveMinimum?"larger":"largerEq"](window.math.bignumber(e),window.math.bignumber(t.minimum)):window.Decimal&&(c=new window.Decimal(e)[t.exclusiveMinimum?"gt":"gte"](new window.Decimal(t.minimum))),c?[]:[{path:o,property:"minimum",message:this.translate(t.exclusiveMinimum?"error_minimum_excl":"error_minimum_incl",[t.minimum],t)}]}},this._validateStringSubSchema={maxLength:function(t,e,o){var c=[];return"".concat(e).length>t.maxLength&&c.push({path:o,property:"maxLength",message:this.translate("error_maxLength",[t.maxLength],t)}),c},minLength:function(t,e,o){return"".concat(e).length<t.minLength?[{path:o,property:"minLength",message:this.translate(t.minLength===1?"error_notempty":"error_minLength",[t.minLength],t)}]:[]},pattern:function(t,e,o){return new RegExp(t.pattern).test(e)?[]:[{path:o,property:"pattern",message:t.options&&t.options.patternmessage?t.options.patternmessage:this.translate("error_pattern",[t.pattern],t)}]}},this._validateArraySubSchema={items:function(t,e,o){var c=this,h=[];if(Array.isArray(t.items))for(var f=0;f<e.length;f++)if(t.items[f])h.push.apply(h,ue(this._validateSchema(t.items[f],e[f],"".concat(o,".").concat(f))));else{if(t.additionalItems===!0)break;if(!t.additionalItems){if(t.additionalItems===!1){h.push({path:o,property:"additionalItems",message:this.translate("error_additionalItems",null,t)});break}break}h.push.apply(h,ue(this._validateSchema(t.additionalItems,e[f],"".concat(o,".").concat(f))))}else e.forEach(function(_,T){h.push.apply(h,ue(c._validateSchema(t.items,_,"".concat(o,".").concat(T))))});return h},maxItems:function(t,e,o){return e.length>t.maxItems?[{path:o,property:"maxItems",message:this.translate("error_maxItems",[t.maxItems],t)}]:[]},minItems:function(t,e,o){return e.length<t.minItems?[{path:o,property:"minItems",message:this.translate("error_minItems",[t.minItems],t)}]:[]},uniqueItems:function(t,e,o){for(var c={},h=0;h<e.length;h++){var f=JSON.stringify(e[h]);if(c[f])return[{path:o,property:"uniqueItems",message:this.translate("error_uniqueItems",null,t)}];c[f]=!0}return[]}},this._validateObjectSubSchema={maxProperties:function(t,e,o){return Object.keys(e).length>t.maxProperties?[{path:o,property:"maxProperties",message:this.translate("error_maxProperties",[t.maxProperties],t)}]:[]},minProperties:function(t,e,o){return Object.keys(e).length<t.minProperties?[{path:o,property:"minProperties",message:this.translate("error_minProperties",[t.minProperties],t)}]:[]},required:function(t,e,o){var c=this,h=[];return Array.isArray(t.required)&&t.required.forEach(function(f){if(e[f]===void 0){var _=c.jsoneditor.getEditor("".concat(o,".").concat(f));_&&_.dependenciesFulfilled===!1||_&&["button","info"].includes(_.schema.format||_.schema.type)||h.push({path:o,property:"required",message:c.translate("error_required",[t&&t.properties&&t.properties[f]&&t.properties[f].title?t.properties[f].title:f],t)})}}),h},properties:function(t,e,o,c){var h=this,f=[];return Object.entries(t.properties).forEach(function(_){var T=an(_,2),Y=T[0],nt=T[1];c[Y]=!0,f.push.apply(f,ue(h._validateSchema(nt,e[Y],"".concat(o,".").concat(Y))))}),f},patternProperties:function(t,e,o,c){var h=this,f=[];return Object.entries(t.patternProperties).forEach(function(_){var T=an(_,2),Y=T[0],nt=T[1],ut=new RegExp(Y);Object.entries(e).forEach(function(ht){var xt=an(ht,2),Ot=xt[0],It=xt[1];ut.test(Ot)&&(c[Ot]=!0,f.push.apply(f,ue(h._validateSchema(nt,It,"".concat(o,".").concat(Ot)))))})}),f}},this._validateObjectSubSchema2={propertyNames:function(t,e,o,c){for(var h=this,f=[],_=Object.keys(e),T=null,Y=function(){var ht="";return T=_[nt],typeof t.propertyNames=="boolean"?t.propertyNames===!0?"continue":(f.push({path:o,property:"propertyNames",message:h.translate("error_property_names_false",[T],t)}),"break"):Object.entries(t.propertyNames).every(function(xt){var Ot=an(xt,2),It=Ot[0],Qt=Ot[1],be=!1;switch(It){case"maxLength":if(typeof Qt!="number"){ht="error_property_names_maxlength";break}if(T.length>Qt){ht="error_property_names_exceeds_maxlength";break}return!0;case"const":if(Qt!==T){ht="error_property_names_const_mismatch";break}return!0;case"enum":if(!Array.isArray(Qt)){ht="error_property_names_enum";break}if(Qt.forEach(function(Ht){Ht===T&&(be=!0)}),!be){ht="error_property_names_enum_mismatch";break}return!0;case"pattern":if(typeof Qt!="string"){ht="error_property_names_pattern";break}if(!new RegExp(Qt).test(T)){ht="error_property_names_pattern_mismatch";break}return!0;default:return f.push({path:o,property:"propertyNames",message:h.translate("error_property_names_unsupported",[It],t)}),!1}return f.push({path:o,property:"propertyNames",message:h.translate(ht,[T],t)}),!1})?void 0:"break"},nt=0;nt<_.length;nt++){var ut=Y();if(ut!=="continue"&&ut==="break")break}return f},additionalProperties:function(t,e,o,c){for(var h=[],f=Object.keys(e),_=0;_<f.length;_++){var T=f[_];if(!c[T]){if(!t.additionalProperties){h.push({path:o,property:"additionalProperties",message:this.translate("error_additional_properties",[T],t)});break}if(t.additionalProperties===!0)break;h.push.apply(h,ue(this._validateSchema(t.additionalProperties,e[T],"".concat(o,".").concat(T))))}}return h},dependencies:function(t,e,o){var c=this,h=[];return Object.entries(t.dependencies).forEach(function(f){var _=an(f,2),T=_[0],Y=_[1];e[T]!==void 0&&(Array.isArray(Y)?Y.forEach(function(nt){e[nt]===void 0&&h.push({path:o,property:"dependencies",message:c.translate("error_dependency",[nt],t)})}):h.push.apply(h,ue(c._validateSchema(Y,e,o))))}),h}}}var r,p;return r=l,p=[{key:"fitTest",value:function(n,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e7,s={match:0,extra:0};if(ze(n)==="object"&&n!==null){var t=this._getSchema(u);if(t.anyOf){var e,o=function(nt){for(var ut=1;ut<arguments.length;ut++){var ht=arguments[ut]!=null?arguments[ut]:{};ut%2?An(Object(ht),!0).forEach(function(xt){wi(nt,xt,ht[xt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nt,Object.getOwnPropertyDescriptors(ht)):An(Object(ht)).forEach(function(xt){Object.defineProperty(nt,xt,Object.getOwnPropertyDescriptor(ht,xt))})}return nt}({},s),c=function(nt,ut){var ht=typeof Symbol<"u"&&nt[Symbol.iterator]||nt["@@iterator"];if(!ht){if(Array.isArray(nt)||(ht=sn(nt))){ht&&(nt=ht);var xt=0,Ot=function(){};return{s:Ot,n:function(){return xt>=nt.length?{done:!0}:{done:!1,value:nt[xt++]}},e:function(Ht){throw Ht},f:Ot}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var It,Qt=!0,be=!1;return{s:function(){ht=ht.call(nt)},n:function(){var Ht=ht.next();return Qt=Ht.done,Ht},e:function(Ht){be=!0,It=Ht},f:function(){try{Qt||ht.return==null||ht.return()}finally{if(be)throw It}}}}(t.anyOf);try{for(c.s();!(e=c.n()).done;){var h=e.value,f=this.fitTest(n,h,a);(f.match>o.match||f.match===o.match&&f.extra<o.extra)&&(o=f)}}catch(nt){c.e(nt)}finally{c.f()}return o}var _=this._getSchema(u).properties;for(var T in _)if(x(_,T)){if(ze(n[T])==="object"&&ze(_[T])==="object"&&ze(_[T].properties)==="object"){var Y=this.fitTest(n[T],_[T],a/100);s.match+=Y.match,s.extra+=Y.extra}n[T]!==void 0&&(s.match+=a)}else s.extra+=a}return s}},{key:"_getSchema",value:function(n){return n===void 0?b({},this.jsoneditor.expandRefs(this.schema)):n}},{key:"validate",value:function(n){return this._validateSchema(this.schema,n)}},{key:"_validateSchema",value:function(n,u,a){var s=this,t=[];return a=a||this.jsoneditor.root.formname,n=b({},this.jsoneditor.expandRefs(n)),u===void 0?this._validateV3Required(n,u,a):(Object.keys(n).forEach(function(e){s._validateSubSchema[e]&&t.push.apply(t,ue(s._validateSubSchema[e].call(s,n,u,a)))}),t.push.apply(t,ue(this._validateByValueType(n,u,a))),n.links&&n.links.forEach(function(e,o){e.rel&&e.rel.toLowerCase()==="describedby"&&(n=s._expandSchemaLink(n,o),t.push.apply(t,ue(s._validateSchema(n,u,a,s.translate))))}),["date","time","datetime-local"].includes(n.format)&&t.push.apply(t,ue(this._validateDateTimeSubSchema(n,u,a))),["uuid"].includes(n.format)&&t.push.apply(t,ue(this._validateUUIDSchema(n,u,a))),t.push.apply(t,ue(this._validateCustomValidator(n,u,a))),this._removeDuplicateErrors(t))}},{key:"_expandSchemaLink",value:function(n,u){var a=n.links[u].href,s=this.jsoneditor.root.getValue(),t=this.jsoneditor.compileTemplate(a,this.jsoneditor.template),e=document.location.origin+document.location.pathname+t(s);return n.links=n.links.slice(0,u).concat(n.links.slice(u+1)),b({},n,this.jsoneditor.refs[e])}},{key:"_validateV3Required",value:function(n,u,a){return(n.required!==void 0&&n.required===!0||n.required===void 0&&this.jsoneditor.options.required_by_default===!0)&&n.type!=="info"?[{path:a,property:"required",message:this.translate("error_notset",null,n)}]:[]}},{key:"_validateByValueType",value:function(n,u,a){var s=this,t=[];if(u===null)return t;if(typeof u=="number")Object.keys(n).forEach(function(o){s._validateNumberSubSchema[o]&&t.push.apply(t,ue(s._validateNumberSubSchema[o].call(s,n,u,a)))});else if(typeof u=="string")Object.keys(n).forEach(function(o){s._validateStringSubSchema[o]&&t.push.apply(t,ue(s._validateStringSubSchema[o].call(s,n,u,a)))});else if(Array.isArray(u))Object.keys(n).forEach(function(o){s._validateArraySubSchema[o]&&t.push.apply(t,ue(s._validateArraySubSchema[o].call(s,n,u,a)))});else if(ze(u)==="object"){var e={};Object.keys(n).forEach(function(o){s._validateObjectSubSchema[o]&&t.push.apply(t,ue(s._validateObjectSubSchema[o].call(s,n,u,a,e)))}),n.additionalProperties!==void 0||!this.jsoneditor.options.no_additional_properties||n.oneOf||n.anyOf||n.allOf||(n.additionalProperties=!1),Object.keys(n).forEach(function(o){s._validateObjectSubSchema2[o]!==void 0&&t.push.apply(t,ue(s._validateObjectSubSchema2[o].call(s,n,u,a,e)))})}return t}},{key:"_validateUUIDSchema",value:function(n,u,a){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(u)?[]:[{path:a,property:"format",message:this.translate("error_pattern",["^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"],n)}]}},{key:"_validateNumberSubSchemaMultipleDivisible",value:function(n,u,a){var s=n.multipleOf||n.divisibleBy,t=u/s===Math.floor(u/s);return window.math?t=window.math.mod(window.math.bignumber(u),window.math.bignumber(s)).equals(0):window.Decimal&&(t=new window.Decimal(u).mod(new window.Decimal(s)).equals(0)),t?[]:[{path:a,property:n.multipleOf?"multipleOf":"divisibleBy",message:this.translate("error_multipleOf",[s],n)}]}},{key:"_validateDateTimeSubSchema",value:function(n,u,a){var s=this,t=this.jsoneditor.getEditor(a),e=t&&t.flatpickr?t.flatpickr.config.dateFormat:{date:'"YYYY-MM-DD"',time:'"HH:MM"',"datetime-local":'"YYYY-MM-DD HH:MM"'}[n.format];if(n.type==="integer")return function(o,c,h){return 1*c<1?[{path:h,property:"format",message:s.translate("error_invalid_epoch",null,o)}]:c!==Math.abs(parseInt(c))?[{path:h,property:"format",message:s.translate("error_".concat(o.format.replace(/-/g,"_")),[e],o)}]:[]}(n,u,a);if(t&&t.flatpickr){if(t)return function(o,c,h,f){if(c!==""){var _;if(f.flatpickr.config.mode!=="single"){var T=f.flatpickr.config.mode==="range"?f.flatpickr.l10n.rangeSeparator:", ";_=f.flatpickr.selectedDates.map(function(nt){return f.flatpickr.formatDate(nt,f.flatpickr.config.dateFormat)}).join(T)}try{if(_){if(_!==c)throw new Error("".concat(f.flatpickr.config.mode," mismatch"))}else if(f.flatpickr.formatDate(f.flatpickr.parseDate(c,f.flatpickr.config.dateFormat),f.flatpickr.config.dateFormat)!==c)throw new Error("mismatch")}catch{var Y=f.flatpickr.config.errorDateFormat!==void 0?f.flatpickr.config.errorDateFormat:f.flatpickr.config.dateFormat;return[{path:h,property:"format",message:s.translate("error_".concat(f.format.replace(/-/g,"_")),[Y],o)}]}}return[]}(n,u,a,t)}else if(!{date:/^(\d{4}\D\d{2}\D\d{2})?$/,time:/^(\d{2}:\d{2}(?::\d{2})?)?$/,"datetime-local":/^(\d{4}\D\d{2}\D\d{2}[ T]\d{2}:\d{2}(?::\d{2})?)?$/}[n.format].test(u))return[{path:a,property:"format",message:this.translate("error_".concat(n.format.replace(/-/g,"_")),[e],n)}];return[]}},{key:"_validateCustomValidator",value:function(n,u,a){var s=this,t=[];t.push.apply(t,ue(gi.call(this,n,u,a,this.translate)));var e=function(o){t.push.apply(t,ue(o.call(s,n,u,a)))};return this.defaults.custom_validators.forEach(e),this.options.custom_validators&&this.options.custom_validators.forEach(e),t}},{key:"_removeDuplicateErrors",value:function(n){return n.reduce(function(u,a){var s=!0;return u||(u=[]),u.forEach(function(t){t.message===a.message&&t.path===a.path&&t.property===a.property&&(t.errorcount++,s=!1)}),s&&(a.errorcount=1,u.push(a)),u},[])}},{key:"_checkType",value:function(n,u){var a={string:function(s){return typeof s=="string"},number:function(s){return typeof s=="number"},integer:function(s){return typeof s=="number"&&s===Math.floor(s)},boolean:function(s){return typeof s=="boolean"},array:function(s){return Array.isArray(s)},object:function(s){return s!==null&&!Array.isArray(s)&&ze(s)==="object"},null:function(s){return s===null}};return typeof n=="string"?!a[n]||a[n](u):!this._validateSchema(n,u).length}}],p&&_i(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ce(l){return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ce(l)}function lr(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Ce(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Ce(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Ce(u)==="symbol"?u:String(u)),n)}var u}function wr(){return wr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Ue(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},wr.apply(this,arguments)}function xi(l,r){return xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},xi(l,r)}function Ue(l){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ue(l)}var Dn=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&xi(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Ue(n);if(u){var o=Ue(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Ce(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"register",value:function(){if(this.editors){for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].unregister();this.editors[this.type]&&this.editors[this.type].register()}wr(Ue(s.prototype),"register",this).call(this)}},{key:"unregister",value:function(){if(wr(Ue(s.prototype),"unregister",this).call(this),this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].unregister()}},{key:"getNumColumns",value:function(){return this.editors[this.type]?Math.max(this.editors[this.type].getNumColumns(),4):4}},{key:"enable",value:function(){if(!this.always_disabled){if(this.editors)for(var t=0;t<this.editors.length;t++)this.editors[t]&&this.editors[t].enable();this.switcher.disabled=!1,wr(Ue(s.prototype),"enable",this).call(this)}}},{key:"disable",value:function(t){if(t&&(this.always_disabled=!0),this.editors)for(var e=0;e<this.editors.length;e++)this.editors[e]&&this.editors[e].disable(t);this.switcher.disabled=!0,wr(Ue(s.prototype),"disable",this).call(this)}},{key:"switchEditor",value:function(t){var e=this;this.lastType=this.type,this.editors[t]||this.buildChildEditor(t);var o=this.getValue();this.type=t,this.register(),this.editors.forEach(function(c,h){var f,_;c&&(e.type===h?(e.keep_only_existing_values&&(f=c.getValue(),_=o,Object.keys(_).forEach(function(T){T in f&&(f[T]=_[T])}),o=f),(e.keep_values||e.if)&&c.setValue(o,!0),c.container.style.display=""):c.container.style.display="none")}),this.refreshValue(),this.refreshHeaderText()}},{key:"buildChildEditor",value:function(t){var e,o=this,c=this.types[t],h=this.theme.getChildEditorHolder();this.editor_holder.appendChild(h),typeof c=="string"?(e=b({},this.schema)).type=c:(e=b({},this.schema,c),e=this.jsoneditor.expandRefs(e),c&&c.required&&Array.isArray(c.required)&&this.schema.required&&Array.isArray(this.schema.required)&&(e.required=this.schema.required.concat(c.required)));var f=this.jsoneditor.getEditorClass(e);this.editors[t]=this.jsoneditor.createEditor(f,{jsoneditor:this.jsoneditor,schema:e,container:h,path:this.path,parent:this,required:!0}),this.editors[t].preBuild(),this.editors[t].build(),this.editors[t].postBuild(),this.editors[t].header&&(this.editors[t].header.style.display="none"),this.editors[t].option=this.switcher_options[t],h.addEventListener("change_header_text",function(){o.refreshHeaderText()}),t!==this.type&&(h.style.display="none")}},{key:"preBuild",value:function(){if(this.types=[],this.type=0,this.editors=[],this.validators=[],this.keep_values=!0,this.jsoneditor.options.keep_oneof_values!==void 0&&(this.keep_values=this.jsoneditor.options.keep_oneof_values),this.options.keep_oneof_values!==void 0&&(this.keep_values=this.options.keep_oneof_values),this.keep_only_existing_values=!1,this.jsoneditor.options.keep_only_existing_values!==void 0&&(this.keep_only_existing_values=this.jsoneditor.options.keep_only_existing_values),this.options.keep_only_existing_values!==void 0&&(this.keep_only_existing_values=this.options.keep_only_existing_values),this.schema.oneOf)this.oneOf=!0,this.types=this.schema.oneOf,delete this.schema.oneOf;else if(this.schema.anyOf)this.anyOf=!0,this.types=this.schema.anyOf,delete this.schema.anyOf;else if(this.schema.if)this.if=!0,this.ifSchema=JSON.parse(JSON.stringify(this.schema.if)),this.thenSchema={title:"then"},this.elseSchema={title:"else"},this.types=[],this.schema.then&&D(this.thenSchema,this.schema,this.schema.then),this.schema.else&&D(this.elseSchema,this.schema,this.schema.else),this.types.push(this.thenSchema),this.types.push(this.elseSchema),this.types.forEach(function(o){delete o.if,delete o.then,delete o.else}),delete this.schema.if;else{if(this.schema.type&&this.schema.type!=="any")Array.isArray(this.schema.type)?this.types=this.schema.type:this.types=[this.schema.type];else if(this.types=["string","number","integer","boolean","object","array","null"],this.schema.disallow){var t=this.schema.disallow;Ce(t)==="object"&&Array.isArray(t)||(t=[t]);var e=[];this.types.forEach(function(o){t.includes(o)||e.push(o)}),this.types=e}delete this.schema.type}this.display_text=this.getDisplayText(this.types)}},{key:"build",value:function(){var t=this,e=this.container;this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired()),this.switcher=this.theme.getSwitcher(this.display_text),this.if||(this.container.appendChild(this.header),e.appendChild(this.switcher)),this.switcher.addEventListener("change",function(c){c.preventDefault(),c.stopPropagation(),t.switchEditor(t.display_text.indexOf(c.currentTarget.value)),t.onChange(!0)}),this.editor_holder=document.createElement("div"),e.appendChild(this.editor_holder);var o={};this.jsoneditor.options.custom_validators&&(o.custom_validators=this.jsoneditor.options.custom_validators),this.switcher_options=this.theme.getSwitcherOptions(this.switcher),this.types.forEach(function(c,h){var f;t.editors[h]=!1,typeof c=="string"?(f=b({},t.schema)).type=c:(f=b({},t.schema,c),c.required&&Array.isArray(c.required)&&t.schema.required&&Array.isArray(t.schema.required)&&(f.required=t.schema.required.concat(c.required))),t.validators[h]=new In(t.jsoneditor,f,o,t.defaults)}),this.jsoneditor.on("change",function(){t.switchIf()}),this.switchEditor(0)}},{key:"onChildEditorChange",value:function(t){this.editors[this.type]&&(this.refreshValue(),this.refreshHeaderText()),wr(Ue(s.prototype),"onChildEditorChange",this).call(this)}},{key:"refreshHeaderText",value:function(){var t=this.getDisplayText(this.types);Array.from(this.switcher_options).forEach(function(e,o){e.textContent=t[o]})}},{key:"refreshValue",value:function(){this.editors[this.type]&&(this.value=this.editors[this.type].getValue())}},{key:"switchIf",value:function(){if(this.ifSchema&&this.value){var t=this.getIfType(this.value);this.lastType!==t&&(this.switchEditor(t),this.editors[this.type].setValue(this.value,!0)),this.switcher.value=this.display_text[this.type]}}},{key:"getIfType",value:function(t){return this.jsoneditor.validator._validateSchema(this.ifSchema,t).length===0?0:1}},{key:"setValue",value:function(t,e){var o=this,c=this.type,h={match:0,extra:0,i:this.type},f={match:0,i:null};this.validators.forEach(function(Y,nt){var ut=null;o.anyOf!==void 0&&o.anyOf&&(ut=Y.fitTest(t),(h.match<ut.match||h.match===ut.match&&h.extra>ut.extra)&&((h=ut).i=nt)),Y.validate(t).length||f.i!==null?h=f:(f.i=nt,ut!==null&&(f.match=ut.match))});var _=f.i;this.anyOf!==void 0&&this.anyOf&&f.match<h.match&&(_=h.i),this.if&&(_=this.getIfType(t)),_===null&&(_=this.type),this.type=_,this.switcher.value=this.display_text[_];var T=this.type!==c;T&&(this.switchEditor(this.type),this.editors[this.type].setValue(t,e)),t!==void 0&&this.editors[this.type].setValue(t,e),this.refreshValue(),this.onChange(T)}},{key:"destroy",value:function(){this.editors.forEach(function(t){t&&t.destroy()}),this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.switcher&&this.switcher.parentNode&&this.switcher.parentNode.removeChild(this.switcher),wr(Ue(s.prototype),"destroy",this).call(this)}},{key:"showValidationErrors",value:function(t){var e=this;if(this.oneOf||this.anyOf){var o=this.oneOf?"oneOf":"anyOf";this.editors.forEach(function(c,h){if(c){var f="".concat(e.path,".").concat(o,"[").concat(h,"]");c.showValidationErrors(t.reduce(function(_,T){if(T.path.startsWith(f)||T.path===f.substr(0,T.path.length)){var Y=b({},T);T.path.startsWith(f)&&(Y.path=e.path+Y.path.substr(f.length)),_.push(Y)}return _},[]))}})}else this.editors.forEach(function(c){c&&c.showValidationErrors(t)})}},{key:"addLinks",value:function(){}}])&&lr(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Lr(l){return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lr(l)}function Fn(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Lr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Lr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Lr(u)==="symbol"?u:String(u)),n)}var u}function Wr(l,r){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Wr(l,r)}function Jr(l){return Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jr(l)}var ki=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Wr(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Jr(n);if(u){var o=Jr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Lr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getValue",value:function(){if(this.dependenciesFulfilled)return null}},{key:"setValue",value:function(){this.onChange()}},{key:"getNumColumns",value:function(){return 2}}])&&Fn(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Nn(l,r){var p=Object.keys(l);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(l);r&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(l,u).enumerable})),p.push.apply(p,n)}return p}function _r(l){for(var r=1;r<arguments.length;r++){var p=arguments[r]!=null?arguments[r]:{};r%2?Nn(Object(p),!0).forEach(function(n){cn(l,n,p[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(p)):Nn(Object(p)).forEach(function(n){Object.defineProperty(l,n,Object.getOwnPropertyDescriptor(p,n))})}return l}function cn(l,r,p){return(r=$n(r))in l?Object.defineProperty(l,r,{value:p,enumerable:!0,configurable:!0,writable:!0}):l[r]=p,l}function Rr(l,r){return function(p){if(Array.isArray(p))return p}(l)||function(p,n){var u=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(u!=null){var a,s,t,e,o=[],c=!0,h=!1;try{if(t=(u=u.call(p)).next,n===0){if(Object(u)!==u)return;c=!1}else for(;!(c=(a=t.call(u)).done)&&(o.push(a.value),o.length!==n);c=!0);}catch(f){h=!0,s=f}finally{try{if(!c&&u.return!=null&&(e=u.return(),Object(e)!==e))return}finally{if(h)throw s}}return o}}(l,r)||function(p,n){if(p){if(typeof p=="string")return Mn(p,n);var u=Object.prototype.toString.call(p).slice(8,-1);return u==="Object"&&p.constructor&&(u=p.constructor.name),u==="Map"||u==="Set"?Array.from(p):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Mn(p,n):void 0}}(l,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Mn(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function er(l){return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},er(l)}function ji(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,$n(n.key),n)}}function $n(l){var r=function(p,n){if(er(p)!=="object"||p===null)return p;var u=p[Symbol.toPrimitive];if(u!==void 0){var a=u.call(p,"string");if(er(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(l);return er(r)==="symbol"?r:String(r)}function tr(){return tr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=qe(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},tr.apply(this,arguments)}function Vn(l,r){return Vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Vn(l,r)}function qe(l){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qe(l)}var un=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Vn(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=qe(n);if(u){var o=qe(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(er(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t,e,o){var c;return function(h,f){if(!(h instanceof f))throw new TypeError("Cannot call a class as a function")}(this,s),(c=a.call(this,t,e)).currentDepth=o,c}return r=s,(p=[{key:"getDefault",value:function(){return b({},this.schema.default||{})}},{key:"getChildEditors",value:function(){return this.editors}},{key:"register",value:function(){tr(qe(s.prototype),"register",this).call(this),this.editors&&Object.values(this.editors).forEach(function(t){return t.register()})}},{key:"unregister",value:function(){tr(qe(s.prototype),"unregister",this).call(this),this.editors&&Object.values(this.editors).forEach(function(t){return t.unregister()})}},{key:"getNumColumns",value:function(){return Math.max(Math.min(12,this.maxwidth),3)}},{key:"enable",value:function(){this.always_disabled||(this.editjson_control&&(this.editjson_control.disabled=!1),this.addproperty_button&&(this.addproperty_button.disabled=!1),tr(qe(s.prototype),"enable",this).call(this),this.editors&&Object.values(this.editors).forEach(function(t){t.isActive()&&t.enable(),t.optInCheckbox.disabled=!1}))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.editjson_control&&(this.editjson_control.disabled=!0),this.addproperty_button&&(this.addproperty_button.disabled=!0),this.hideEditJSON(),tr(qe(s.prototype),"disable",this).call(this),this.editors&&Object.values(this.editors).forEach(function(e){e.isActive()&&e.disable(t),e.optInCheckbox.disabled=!0})}},{key:"layoutEditors",value:function(){var t,e,o=this;if(this.row_container){var c;this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(Ht,vt){var Ut=o.editors[Ht].schema.propertyOrder,Se=o.editors[vt].schema.propertyOrder;return typeof Ut!="number"&&(Ut=1e3),typeof Se!="number"&&(Se=1e3),Ut-Se});var h,f=this.format==="categories",_=[],T=null,Y=null;if(this.format==="grid-strict"){var nt=0;if(h=[],this.property_order.forEach(function(Ht){var vt=o.editors[Ht];if(!vt.property_removed){var Ut=vt.options.hidden?0:vt.options.grid_columns||vt.getNumColumns(),Se=vt.options.hidden?0:vt.options.grid_offset||0,U=!vt.options.hidden&&(vt.options.grid_break||!1),z={key:Ht,width:Ut,offset:Se,height:vt.options.hidden?0:vt.container.offsetHeight};h.push(z),_[nt]=h,U&&(nt++,h=[])}}),this.layout===JSON.stringify(_))return!1;for(this.layout=JSON.stringify(_),c=document.createElement("div"),t=0;t<_.length;t++)for(h=this.theme.getGridRow(),c.appendChild(h),e=0;e<_[t].length;e++)T=_[t][e].key,(Y=this.editors[T]).options.hidden?Y.container.style.display="none":this.theme.setGridColumnSize(Y.container,_[t][e].width,_[t][e].offset),h.appendChild(Y.container)}else if(this.format==="grid"){for(this.property_order.forEach(function(Ht){var vt=o.editors[Ht];if(!vt.property_removed){for(var Ut=!1,Se=vt.options.hidden?0:vt.options.grid_columns||vt.getNumColumns(),U=vt.options.hidden?0:vt.container.offsetHeight,z=0;z<_.length;z++)_[z].width+Se<=12&&(!U||.5*_[z].minh<U&&2*_[z].maxh>U)&&(Ut=z);Ut===!1&&(_.push({width:0,minh:999999,maxh:0,editors:[]}),Ut=_.length-1),_[Ut].editors.push({key:Ht,width:Se,height:U}),_[Ut].width+=Se,_[Ut].minh=Math.min(_[Ut].minh,U),_[Ut].maxh=Math.max(_[Ut].maxh,U)}}),t=0;t<_.length;t++)if(_[t].width<12){var ut=!1,ht=0;for(e=0;e<_[t].editors.length;e++)(ut===!1||_[t].editors[e].width>_[t].editors[ut].width)&&(ut=e),_[t].editors[e].width*=12/_[t].width,_[t].editors[e].width=Math.floor(_[t].editors[e].width),ht+=_[t].editors[e].width;ht<12&&(_[t].editors[ut].width+=12-ht),_[t].width=12}if(this.layout===JSON.stringify(_))return!1;for(this.layout=JSON.stringify(_),c=document.createElement("div"),t=0;t<_.length;t++)for(h=this.theme.getGridRow(),c.appendChild(h),e=0;e<_[t].editors.length;e++)T=_[t].editors[e].key,(Y=this.editors[T]).options.hidden?Y.container.style.display="none":this.theme.setGridColumnSize(Y.container,_[t].editors[e].width),h.appendChild(Y.container)}else{if(c=document.createElement("div"),f){var xt=document.createElement("div"),Ot=this.theme.getTopTabHolder(this.translateProperty(this.schema.title)),It=this.theme.getTopTabContentHolder(Ot);for(this.property_order.forEach(function(Ht){var vt=o.editors[Ht];if(!vt.property_removed){var Ut=o.theme.getTabContent(),Se=vt.schema&&(vt.schema.type==="object"||vt.schema.type==="array");Ut.isObjOrArray=Se;var U=o.theme.getGridRow();vt.tab||(o.basicPane===void 0?o.addRow(vt,Ot,Ut):o.addRow(vt,Ot,o.basicPane)),Ut.id=o.getValidId(vt.tab_text.textContent),Se?(Ut.appendChild(U),It.appendChild(Ut),o.theme.addTopTab(Ot,vt.tab)):(xt.appendChild(U),It.childElementCount>0?It.firstChild.isObjOrArray&&(Ut.appendChild(xt),It.insertBefore(Ut,It.firstChild),o.theme.insertBasicTopTab(vt.tab,Ot),vt.basicPane=Ut):(Ut.appendChild(xt),It.appendChild(Ut),o.theme.addTopTab(Ot,vt.tab),vt.basicPane=Ut)),vt.options.hidden?vt.container.style.display="none":o.theme.setGridColumnSize(vt.container,12),U.appendChild(vt.container),vt.rowPane=Ut}});this.tabPanesContainer.firstChild;)this.tabPanesContainer.removeChild(this.tabPanesContainer.firstChild);var Qt=this.tabs_holder.parentNode;Qt.removeChild(Qt.firstChild),Qt.appendChild(Ot),this.tabPanesContainer=It,this.tabs_holder=Ot;var be=this.theme.getFirstTab(this.tabs_holder);return void(be&&w(be,"click"))}this.property_order.forEach(function(Ht){var vt=o.editors[Ht];vt.property_removed||(h=o.theme.getGridRow(),c.appendChild(h),vt.options.hidden?vt.container.style.display="none":o.theme.setGridColumnSize(vt.container,12),h.appendChild(vt.container))})}for(;this.row_container.firstChild;)this.row_container.removeChild(this.row_container.firstChild);this.row_container.appendChild(c)}}},{key:"getPropertySchema",value:function(t){var e=this,o=this.schema.properties[t]||{};o=b({},o);var c=!!this.schema.properties[t];return this.schema.patternProperties&&Object.keys(this.schema.patternProperties).forEach(function(h){new RegExp(h).test(t)&&(o.allOf=o.allOf||[],o.allOf.push(e.schema.patternProperties[h]),c=!0)}),!c&&this.schema.additionalProperties&&er(this.schema.additionalProperties)==="object"&&(o=b({},this.schema.additionalProperties)),o}},{key:"preBuild",value:function(){var t=this;if(tr(qe(s.prototype),"preBuild",this).call(this),this.editors={},this.cached_editors={},this.format=this.options.layout||this.options.object_layout||this.schema.format||this.jsoneditor.options.object_layout||"normal",this.schema.properties=this.schema.properties||{},this.minwidth=0,this.maxwidth=0,this.options.table_row)Object.entries(this.schema.properties).forEach(function(e){var o=Rr(e,2),c=o[0],h=o[1],f=t.jsoneditor.getEditorClass(h);t.editors[c]=t.jsoneditor.createEditor(f,{jsoneditor:t.jsoneditor,schema:h,path:"".concat(t.path,".").concat(c),parent:t,compact:!0,required:!0},t.currentDepth+1),t.editors[c].preBuild();var _=t.editors[c].options.hidden?0:t.editors[c].options.grid_columns||t.editors[c].getNumColumns();t.minwidth+=_,t.maxwidth+=_}),this.no_link_holder=!0;else{if(this.options.table)throw new Error("Not supported yet");this.schema.defaultProperties||(this.jsoneditor.options.display_required_only||this.options.display_required_only?this.schema.defaultProperties=Object.keys(this.schema.properties).filter(function(e){return t.isRequiredObject({key:e,schema:t.schema.properties[e]})}):this.schema.defaultProperties=Object.keys(this.schema.properties)),this.maxwidth+=1,Array.isArray(this.schema.defaultProperties)&&this.schema.defaultProperties.forEach(function(e){t.addObjectProperty(e,!0),t.editors[e]&&(t.minwidth=Math.max(t.minwidth,t.editors[e].options.grid_columns||t.editors[e].getNumColumns()),t.maxwidth+=t.editors[e].options.grid_columns||t.editors[e].getNumColumns())})}this.property_order=Object.keys(this.editors),this.property_order=this.property_order.sort(function(e,o){var c=t.editors[e].schema.propertyOrder,h=t.editors[o].schema.propertyOrder;return typeof c!="number"&&(c=1e3),typeof h!="number"&&(h=1e3),c-h})}},{key:"addTab",value:function(t){var e=this,o=this.rows[t].schema&&(this.rows[t].schema.type==="object"||this.rows[t].schema.type==="array");this.tabs_holder&&(this.rows[t].tab_text=document.createElement("span"),this.rows[t].tab_text.textContent=o?this.rows[t].getHeaderText():this.schema.basicCategoryTitle===void 0?"Basic":this.schema.basicCategoryTitle,this.rows[t].tab=this.theme.getTopTab(this.rows[t].tab_text,this.getValidId(this.rows[t].tab_text.textContent)),this.rows[t].tab.addEventListener("click",function(c){e.active_tab=e.rows[t].tab,e.refreshTabs(),c.preventDefault(),c.stopPropagation()}))}},{key:"addRow",value:function(t,e,o){var c=this.rows.length,h=t.schema.type==="object"||t.schema.type==="array";this.rows[c]=t,this.rows[c].rowPane=o,h?(this.addTab(c),this.theme.addTopTab(e,this.rows[c].tab)):this.basicTab===void 0?(this.addTab(c),this.basicTab=c,this.basicPane=o,this.theme.addTopTab(e,this.rows[c].tab)):(this.rows[c].tab=this.rows[this.basicTab].tab,this.rows[c].tab_text=this.rows[this.basicTab].tab_text,this.rows[c].rowPane=this.rows[this.basicTab].rowPane)}},{key:"refreshTabs",value:function(t){var e=this,o=this.basicTab!==void 0,c=!1;this.rows.forEach(function(h){h.tab&&h.rowPane&&h.rowPane.parentNode&&(o&&h.tab===e.rows[e.basicTab].tab&&c||(t?h.tab_text.textContent=h.getHeaderText():(o&&h.tab===e.rows[e.basicTab].tab&&(c=!0),h.tab===e.active_tab?e.theme.markTabActive(h):e.theme.markTabInactive(h))))})}},{key:"build",value:function(){var t=this,e=this.format==="categories";if(this.rows=[],this.active_tab=null,this.options.table_row)this.editor_holder=this.container,Object.entries(this.editors).forEach(function(c){var h=Rr(c,2),f=h[0],_=h[1],T=t.theme.getTableCell();t.editor_holder.appendChild(T),_.setContainer(T),_.build(),_.postBuild(),_.setOptInCheckbox(_.header),_.setValue(_.getDefault(),!0),t.editors[f].options.hidden&&(T.style.display="none"),t.editors[f].options.input_width&&(T.style.width=t.editors[f].options.input_width)});else{if(this.options.table)throw new Error("Not supported yet");this.header="",this.options.compact||(this.header=document.createElement("label"),this.header.textContent=this.getTitle()),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.title.classList.add("je-object__title"),this.controls=this.theme.getButtonHolder(),this.controls.classList.add("je-object__controls"),this.container.appendChild(this.title),this.container.appendChild(this.controls),this.container.classList.add("je-object__container"),this.editjson_holder=this.theme.getModal(),this.editjson_textarea=this.theme.getTextareaInput(),this.editjson_textarea.classList.add("je-edit-json--textarea"),this.editjson_save=this.getButton("button_save","save","button_save"),this.editjson_save.classList.add("json-editor-btntype-save"),this.editjson_save.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.saveJSON()}),this.editjson_copy=this.getButton("button_copy","copy","button_copy"),this.editjson_copy.classList.add("json-editor-btntype-copy"),this.editjson_copy.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.copyJSON()}),this.editjson_cancel=this.getButton("button_cancel","cancel","button_cancel"),this.editjson_cancel.classList.add("json-editor-btntype-cancel"),this.editjson_cancel.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.hideEditJSON()}),this.editjson_holder.appendChild(this.editjson_textarea),this.editjson_holder.appendChild(this.editjson_save),this.editjson_holder.appendChild(this.editjson_copy),this.editjson_holder.appendChild(this.editjson_cancel),this.addproperty_holder=this.theme.getModal(),this.addproperty_list=document.createElement("div"),this.addproperty_list.classList.add("property-selector"),this.addproperty_add=this.getButton("button_add","add","button_add"),this.addproperty_add.classList.add("json-editor-btntype-add"),this.addproperty_input=this.theme.getFormInputField("text"),this.addproperty_input.setAttribute("placeholder","Property name..."),this.addproperty_input.classList.add("property-selector-input"),this.addproperty_add.addEventListener("click",function(c){if(c.preventDefault(),c.stopPropagation(),t.addproperty_input.value){if(t.editors[t.addproperty_input.value])return void window.alert("there is already a property with that name");t.addObjectProperty(t.addproperty_input.value),t.editors[t.addproperty_input.value]&&t.editors[t.addproperty_input.value].disable(),t.onChange(!0)}}),this.addproperty_input.addEventListener("input",function(c){c.target.previousSibling.childNodes.forEach(function(h){var f=h.innerText,_=c.target.value;t.options.case_sensitive_property_search||t.jsoneditor.options.case_sensitive_property_search||(f=f.toLowerCase(),_=_.toLowerCase()),f.includes(_)?h.style.display="":h.style.display="none"})}),this.addproperty_holder.appendChild(this.addproperty_list),this.addproperty_holder.appendChild(this.addproperty_input),this.addproperty_holder.appendChild(this.addproperty_add);var o=document.createElement("div");o.style.clear="both",this.addproperty_holder.appendChild(o),this.onOutsideModalClickListener=this.onOutsideModalClick.bind(this),document.addEventListener("click",this.onOutsideModalClickListener,!0),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.error_holder=document.createElement("div"),this.container.appendChild(this.error_holder),this.editor_holder=this.theme.getIndentedPanel(),this.container.appendChild(this.editor_holder),this.row_container=this.theme.getGridContainer(),e?(this.tabs_holder=this.theme.getTopTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTopTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.tabs_holder)):(this.tabs_holder=this.theme.getTabHolder(this.getValidId(this.translateProperty(this.schema.title))),this.tabPanesContainer=this.theme.getTabContentHolder(this.tabs_holder),this.editor_holder.appendChild(this.row_container)),Object.values(this.editors).forEach(function(c){var h=t.theme.getTabContent(),f=t.theme.getGridColumn(),_=!(!c.schema||c.schema.type!=="object"&&c.schema.type!=="array");if(h.isObjOrArray=_,e){if(_){var T=t.theme.getGridContainer();T.appendChild(f),h.appendChild(T),t.tabPanesContainer.appendChild(h),t.row_container=T}else t.row_container_basic===void 0&&(t.row_container_basic=t.theme.getGridContainer(),h.appendChild(t.row_container_basic),t.tabPanesContainer.childElementCount===0?t.tabPanesContainer.appendChild(h):t.tabPanesContainer.insertBefore(h,t.tabPanesContainer.childNodes[1])),t.row_container_basic.appendChild(f);t.addRow(c,t.tabs_holder,h),h.id=t.getValidId(c.schema.title)}else t.row_container.appendChild(f);c.setContainer(f),c.build(),c.postBuild(),c.setOptInCheckbox(c.header)}),this.rows[0]&&w(this.rows[0].tab,"click"),this.collapsed=!1,this.collapse_control=this.getButton("","collapse","button_collapse"),this.collapse_control.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(this.collapse_control,this.title.childNodes[0]),this.collapse_control.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.collapsed?(t.editor_holder.style.display="",t.collapsed=!1,t.setButtonText(t.collapse_control,"","collapse","button_collapse")):(t.editor_holder.style.display="none",t.collapsed=!0,t.setButtonText(t.collapse_control,"","expand","button_expand"))}),this.options.collapsed&&w(this.collapse_control,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.collapse_control.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.collapse_control.style.display="none"),this.editjson_control=this.getButton("JSON","edit","button_edit_json"),this.editjson_control.classList.add("json-editor-btntype-editjson"),this.editjson_control.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.toggleEditJSON()}),this.controls.appendChild(this.editjson_control),this.controls.insertBefore(this.editjson_holder,this.controls.childNodes[0]),this.schema.options&&this.schema.options.disable_edit_json!==void 0?this.schema.options.disable_edit_json&&(this.editjson_control.style.display="none"):this.jsoneditor.options.disable_edit_json&&(this.editjson_control.style.display="none"),this.addproperty_button=this.getButton("properties","edit_properties","button_object_properties"),this.addproperty_button.classList.add("json-editor-btntype-properties"),this.addproperty_button.addEventListener("click",function(c){c.preventDefault(),c.stopPropagation(),t.toggleAddProperty()}),this.controls.appendChild(this.addproperty_button),this.controls.insertBefore(this.addproperty_holder,this.controls.childNodes[1]),this.refreshAddProperties(),this.deactivateNonRequiredProperties()}this.options.table_row?(this.editor_holder=this.container,this.property_order.forEach(function(c){t.editor_holder.appendChild(t.editors[c].container)})):(this.layoutEditors(),this.layoutEditors())}},{key:"deactivateNonRequiredProperties",value:function(){var t=this,e=this.jsoneditor.options.show_opt_in,o=this.options.show_opt_in!==void 0,c=o&&this.options.show_opt_in===!0,h=o&&this.options.show_opt_in===!1;(c||!h&&e||!o&&e)&&Object.entries(this.editors).forEach(function(f){var _=Rr(f,2),T=_[0],Y=_[1];t.isRequiredObject(Y)||t.editors[T].deactivate()})}},{key:"showEditJSON",value:function(){this.editjson_holder&&(this.hideAddProperty(),this.editjson_holder.style.left="".concat(this.editjson_control.offsetLeft,"px"),this.editjson_holder.style.top="".concat(this.editjson_control.offsetTop+this.editjson_control.offsetHeight,"px"),this.editjson_textarea.value=JSON.stringify(this.getValue(),null,2),this.disable(),this.editjson_holder.style.display="",this.editjson_control.disabled=!1,this.editing_json=!0)}},{key:"hideEditJSON",value:function(){this.editjson_holder&&this.editing_json&&(this.editjson_holder.style.display="none",this.enable(),this.editing_json=!1)}},{key:"copyJSON",value:function(){if(this.editjson_holder){var t=document.createElement("textarea");t.value=this.editjson_textarea.value,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}}},{key:"saveJSON",value:function(){if(this.editjson_holder)try{var t=JSON.parse(this.editjson_textarea.value);this.setValue(t),this.hideEditJSON(),this.onChange(!0)}catch(e){throw window.alert("invalid JSON"),e}}},{key:"toggleEditJSON",value:function(){this.editing_json?this.hideEditJSON():this.showEditJSON()}},{key:"insertPropertyControlUsingPropertyOrder",value:function(t,e,o){var c;this.schema.properties[t]&&(c=this.schema.properties[t].propertyOrder),typeof c!="number"&&(c=1e3),e.propertyOrder=c;for(var h=0;h<o.childNodes.length;h++){var f=o.childNodes[h];if(e.propertyOrder<f.propertyOrder){this.addproperty_list.insertBefore(e,f),e=null;break}}e&&this.addproperty_list.appendChild(e)}},{key:"addPropertyCheckbox",value:function(t){var e,o=this,c=this.theme.getCheckbox();e=this.schema.properties[t]&&this.schema.properties[t].title?this.schema.properties[t].title:t;var h=this.theme.getCheckboxLabel(e),f=this.theme.getFormControl(h,c);return f.style.paddingBottom=f.style.marginBottom=f.style.paddingTop=f.style.marginTop=0,f.style.height="auto",this.insertPropertyControlUsingPropertyOrder(t,f,this.addproperty_list),c.checked=t in this.editors,c.addEventListener("change",function(){c.checked?o.addObjectProperty(t):o.removeObjectProperty(t),o.onChange(!0)}),this.addproperty_checkboxes[t]=c,c}},{key:"showAddProperty",value:function(){this.addproperty_holder&&(this.hideEditJSON(),this.addproperty_holder.style.left="".concat(this.addproperty_button.offsetLeft,"px"),this.addproperty_holder.style.top="".concat(this.addproperty_button.offsetTop+this.addproperty_button.offsetHeight,"px"),this.disable(),this.adding_property=!0,this.addproperty_button.disabled=!1,this.addproperty_holder.style.display="",this.refreshAddProperties())}},{key:"hideAddProperty",value:function(){this.addproperty_holder&&this.adding_property&&(this.addproperty_holder.style.display="none",this.enable(),this.adding_property=!1)}},{key:"toggleAddProperty",value:function(){this.adding_property?this.hideAddProperty():this.showAddProperty()}},{key:"removeObjectProperty",value:function(t){this.editors[t]&&(this.editors[t].unregister(),delete this.editors[t],this.refreshValue(),this.layoutEditors())}},{key:"getSchemaOnMaxDepth",value:function(t){return Object.keys(t).reduce(function(e,o){switch(o){case"$ref":return e;case"properties":case"items":return _r(_r({},e),{},cn({},o,{}));case"additionalProperties":case"propertyNames":return _r(_r({},e),{},cn({},o,!0));default:return _r(_r({},e),{},cn({},o,t[o]))}},{})}},{key:"addObjectProperty",value:function(t,e){if(!this.editors[t]){if(this.cached_editors[t]){if(this.editors[t]=this.cached_editors[t],e)return;this.editors[t].register()}else{if(!(this.canHaveAdditionalProperties()||this.schema.properties&&this.schema.properties[t]||this.schema.patternProperties&&Object.keys(this.schema.patternProperties).find(function(_){return new RegExp(_).test(t)})))return;var o=this.getPropertySchema(t);typeof o.propertyOrder!="number"&&(o.propertyOrder=Object.keys(this.editors).length+1e3);var c=this.jsoneditor.getEditorClass(o),h=this.jsoneditor.options.max_depth;if(this.editors[t]=this.jsoneditor.createEditor(c,{jsoneditor:this.jsoneditor,schema:h&&this.currentDepth>=h?this.getSchemaOnMaxDepth(o):o,path:"".concat(this.path,".").concat(t),parent:this},this.currentDepth+1),this.editors[t].preBuild(),!e){var f=this.theme.getChildEditorHolder();this.editor_holder.appendChild(f),this.editors[t].setContainer(f),this.editors[t].build(),this.editors[t].postBuild(),this.editors[t].setOptInCheckbox(c.header),this.editors[t].activate()}this.cached_editors[t]=this.editors[t]}e||(this.refreshValue(),this.layoutEditors())}}},{key:"onOutsideModalClick",value:function(t){var e=t.path||t.composedPath&&t.composedPath();this.addproperty_holder&&!this.addproperty_holder.contains(e[0])&&this.adding_property&&(t.preventDefault(),t.stopPropagation(),this.toggleAddProperty())}},{key:"onChildEditorChange",value:function(t){this.refreshValue(),tr(qe(s.prototype),"onChildEditorChange",this).call(this,t)}},{key:"canHaveAdditionalProperties",value:function(){return typeof this.schema.additionalProperties=="boolean"?this.schema.additionalProperties:er(this.schema.additionalProperties)==="object"&&this.schema.additionalProperties!==null||(typeof this.options.no_additional_properties=="boolean"?!this.options.no_additional_properties:typeof this.jsoneditor.options.no_additional_properties!="boolean"||!this.jsoneditor.options.no_additional_properties)}},{key:"destroy",value:function(){Object.values(this.cached_editors).forEach(function(t){return t.destroy()}),this.editor_holder&&(this.editor_holder.innerHTML=""),this.title&&this.title.parentNode&&this.title.parentNode.removeChild(this.title),this.error_holder&&this.error_holder.parentNode&&this.error_holder.parentNode.removeChild(this.error_holder),this.editors=null,this.cached_editors=null,this.editor_holder&&this.editor_holder.parentNode&&this.editor_holder.parentNode.removeChild(this.editor_holder),this.editor_holder=null,document.removeEventListener("click",this.onOutsideModalClickListener,!0),tr(qe(s.prototype),"destroy",this).call(this)}},{key:"getValue",value:function(){if(this.dependenciesFulfilled){var t=tr(qe(s.prototype),"getValue",this).call(this);return t&&(this.jsoneditor.options.remove_empty_properties||this.options.remove_empty_properties)&&Object.keys(t).forEach(function(e){var o;((o=t[e])===void 0||o===""||o===Object(o)&&Object.keys(o).length===0&&o.constructor===Object)&&delete t[e]}),t}}},{key:"refreshValue",value:function(){var t=this;this.value={},this.editors&&(Object.keys(this.editors).forEach(function(e){t.editors[e].isActive()&&(t.editors[e].refreshValue(),t.value[e]=t.editors[e].getValue())}),Object.keys(this.editors).forEach(function(e){t.editors[e].isActive()&&t.activateDependentRequired(t.editors[e].key)}),this.adding_property&&this.refreshAddProperties())}},{key:"activateDependentRequired",value:function(t){var e=this;this.getDependentRequired(t).forEach(function(o){var c;Object.entries(e.cached_editors).forEach(function(h){var f=Rr(h,2),_=(f[0],f[1]);_.key===o&&(c=_)}),c&&!c.isActive()&&c.activate()})}},{key:"getDependentRequired",value:function(t){return this.schema.dependentRequired&&x(this.schema.dependentRequired,t)?this.schema.dependentRequired[t]:[]}},{key:"refreshAddProperties",value:function(){var t=this;if(this.options.disable_properties||this.options.disable_properties!==!1&&this.jsoneditor.options.disable_properties)this.addproperty_button.style.display="none";else{var e,o=0,c=!1;Object.keys(this.editors).forEach(function(h){return o++}),e=this.canHaveAdditionalProperties()&&!(this.schema.maxProperties!==void 0&&o>=this.schema.maxProperties),this.addproperty_checkboxes&&(this.addproperty_list.innerHTML=""),this.addproperty_checkboxes={},Object.keys(this.cached_editors).forEach(function(h){t.addPropertyCheckbox(h),t.isRequiredObject(t.cached_editors[h])&&h in t.editors&&(t.addproperty_checkboxes[h].disabled=!0),t.schema.minProperties!==void 0&&o<=t.schema.minProperties?(t.addproperty_checkboxes[h].disabled=t.addproperty_checkboxes[h].checked,t.addproperty_checkboxes[h].checked||(c=!0)):h in t.editors?c=!0:e||x(t.schema.properties,h)?(t.addproperty_checkboxes[h].disabled=!1,c=!0):t.addproperty_checkboxes[h].disabled=!0}),this.canHaveAdditionalProperties()&&(c=!0),Object.keys(this.schema.properties).forEach(function(h){t.cached_editors[h]||(c=!0,t.addPropertyCheckbox(h))}),c?this.canHaveAdditionalProperties()?this.addproperty_add.disabled=!e:(this.addproperty_add.style.display="none",this.addproperty_input.style.display="none"):(this.hideAddProperty(),this.addproperty_button.style.display="none")}}},{key:"isRequiredObject",value:function(t){if(t)return typeof t.schema.required=="boolean"?t.schema.required:Array.isArray(this.schema.required)?this.schema.required.includes(t.key):!!this.jsoneditor.options.required_by_default}},{key:"setValue",value:function(t,e){var o=this;(er(t=t||{})!=="object"||Array.isArray(t))&&(t={}),Object.entries(this.cached_editors).forEach(function(c){var h=Rr(c,2),f=h[0],_=h[1];t[f]!==void 0?(o.addObjectProperty(f),_.setValue(t[f],e),_.activate()):e||o.isRequiredObject(_)?_.setValue(_.getDefault(),e):o.jsoneditor.options.show_opt_in||o.options.show_opt_in?_.deactivate():o.removeObjectProperty(f)}),Object.entries(t).forEach(function(c){var h=Rr(c,2),f=h[0],_=h[1];o.cached_editors[f]||(o.addObjectProperty(f),o.editors[f]&&o.editors[f].setValue(_,e,!!o.editors[f].template))}),this.refreshValue(),this.layoutEditors(),this.onChange()}},{key:"showValidationErrors",value:function(t){var e=this,o=[],c=[];t.forEach(function(h){h.path===e.path?o.push(h):c.push(h)}),this.error_holder&&(o.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",o.forEach(function(h){h.errorcount&&h.errorcount>1&&(h.message+=" (".concat(h.errorcount," errors)")),e.error_holder.appendChild(e.theme.getErrorMessage(h.message))})):this.error_holder.style.display="none"),this.options.table_row&&(o.length?this.theme.addTableRowError(this.container):this.theme.removeTableRowError(this.container)),Object.values(this.editors).forEach(function(h){h.showValidationErrors(c)})}}])&&ji(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H);function Yr(l){return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yr(l)}function go(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Yr(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Yr(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Yr(u)==="symbol"?u:String(u)),n)}var u}function Kr(){return Kr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=I(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Kr.apply(this,arguments)}function Oi(l,r){return Oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Oi(l,r)}function I(l){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},I(l)}un.rules={".je-object__title":"display:inline-block",".je-object__controls":"margin:0%200%200%2010px",".je-object__container":"position:relative",".je-object__property-checkbox":"margin:0;height:auto",".property-selector":"width:295px;max-height:160px;padding:5px%200;overflow-y:auto;overflow-x:hidden;padding-left:5px",".property-selector-input":"width:220px;margin-bottom:0;display:inline-block",".json-editor-btntype-toggle":"margin:0%2010px%200%200",".je-edit-json--textarea":"height:170px;width:300px;display:block"};var it=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Oi(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=I(n);if(u){var o=I(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Yr(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"preBuild",value:function(){Kr(I(s.prototype),"preBuild",this).call(this)}},{key:"build",value:function(){var t=this;this.label="",this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.radioContainer=document.createElement("div"),this.radioGroup=[];for(var e=function(Y){t.setValue(Y.currentTarget.value),t.onChange(!0)},o=0;o<this.enum_values.length;o++){var c={id:"".concat(this.formname,"[").concat(o,"]"),value:this.enum_values[o]};this.jsoneditor.options.use_name_attributes&&(c.name=this.formname),this.input=this.theme.getFormRadio(c),this.setInputAttributes(["id","value","name"]),this.input.addEventListener("change",e,!1),this.radioGroup.push(this.input);var h=this.theme.getFormRadioLabel(this.enum_display[o]);h.htmlFor=this.input.id;var f=this.theme.getFormRadioControl(h,this.input,!(this.options.layout!=="horizontal"&&!this.options.compact));this.radioContainer.appendChild(f)}if(this.schema.readOnly||this.schema.readonly){this.disable(!0);for(var _=0;_<this.radioGroup.length;_++)this.radioGroup[_].disabled=!0;this.radioContainer.classList.add("readonly")}var T=this.theme.getContainer();T.appendChild(this.radioContainer),T.dataset.containerFor="radio",this.input=T,this.control=this.theme.getFormControl(this.label,T,this.description,this.infoButton),this.container.appendChild(this.control),window.requestAnimationFrame(function(){t.input.parentNode&&t.afterInputReady()})}},{key:"enable",value:function(){if(!this.always_disabled){for(var t=0;t<this.radioGroup.length;t++)this.radioGroup[t].disabled=!1;this.radioContainer.classList.remove("readonly"),Kr(I(s.prototype),"enable",this).call(this)}}},{key:"disable",value:function(t){t&&(this.always_disabled=!0);for(var e=0;e<this.radioGroup.length;e++)this.radioGroup[e].disabled=!0;this.radioContainer.classList.add("readonly"),Kr(I(s.prototype),"disable",this).call(this)}},{key:"destroy",value:function(){this.radioContainer.parentNode&&this.radioContainer.parentNode.parentNode&&this.radioContainer.parentNode.parentNode.removeChild(this.radioContainer.parentNode),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),Kr(I(s.prototype),"destroy",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"setValue",value:function(t){typeof t!="string"&&(t=String(t));for(var e=0;e<this.radioGroup.length;e++)if(this.radioGroup[e].value===t){this.radioGroup[e].checked=!0,this.value=t,this.onChange();break}}}])&&go(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(nn);function jt(l){return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jt(l)}function ae(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(jt(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(jt(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),jt(u)==="symbol"?u:String(u)),n)}var u}function le(){return le=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=ke(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},le.apply(this,arguments)}function te(l,r){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},te(l,r)}function ke(l){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ke(l)}var Hn=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&te(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=ke(n);if(u){var o=ke(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(jt(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e,o){var c=le(ke(s.prototype),"setValue",this).call(this,t,e,o);c!==void 0&&c.changed&&this.sceditor_instance&&this.sceditor_instance.val(c.value)}},{key:"build",value:function(){this.options.format="textarea",le(ke(s.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var t=this;if(window.sceditor){var e=this.expandCallbacks("sceditor",b({},{format:this.input_type,emoticonsEnabled:!1,width:"100%",height:300,readOnly:this.schema.readOnly||this.schema.readonly||this.schema.template},this.defaults.options.sceditor||{},this.options.sceditor||{},{element:this.input})),o=window.sceditor.instance(this.input);o===void 0&&window.sceditor.create(this.input,e),this.sceditor_instance=o||window.sceditor.instance(this.input),this.sceditor_instance.blur(function(){t.value=t.sceditor_instance.val(),t.sceditor_instance.updateOriginal(),t.is_dirty=!0,t.onChange(!0)}),this.theme.afterInputReady(this.input)}else le(ke(s.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.sceditor_instance&&this.sceditor_instance.readOnly(!1),le(ke(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.sceditor_instance&&this.sceditor_instance.readOnly(!0),le(ke(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.sceditor_instance&&(this.sceditor_instance.destroy(),this.sceditor_instance=null),le(ke(s.prototype),"destroy",this).call(this)}}])&&ae(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function zn(l){return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zn(l)}function rs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(zn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(zn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),zn(u)==="symbol"?u:String(u)),n)}var u}function hn(){return hn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=xr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},hn.apply(this,arguments)}function wo(l,r){return wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},wo(l,r)}function xr(l){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xr(l)}var ns=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&wo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=xr(n);if(u){var o=xr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(zn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){if(this.select2_instance){e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);var o=this.updateValue(t);this.input.value=o,this.select2v4?this.select2_instance.val(o).trigger("change"):this.select2_instance.select2("val",o),this.onChange(!0)}else hn(xr(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){var t=this;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.select2&&!this.select2_instance){var e=this.expandCallbacks("select2",b({},this.defaults.options.select2||{},this.options.select2||{}));this.newEnumAllowed=e.tags=!!e.tags&&this.schema.type==="string",this.select2_instance=window.jQuery(this.input).select2(e),this.select2v4=x(this.select2_instance.select2,"amd"),this.selectChangeHandler=function(){var o=t.select2v4?t.select2_instance.val():t.select2_instance.select2("val");t.updateValue(o),t.onChange(!0)},this.select2_instance.on("change",this.selectChangeHandler),this.select2_instance.on("select2-blur",this.selectChangeHandler)}hn(xr(s.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(t){var e=this.enum_values[0];return t=this.typecast(t||""),this.enum_values.includes(t)?e=t:this.newEnumAllowed&&(e=this.addNewOption(t)?t:e),this.value=e,e}},{key:"addNewOption",value:function(t){var e,o=this.typecast(t),c=!1;return this.enum_values.includes(o)||o===""||(this.enum_options.push("".concat(o)),this.enum_display.push("".concat(o)),this.enum_values.push(o),this.schema.enum.push(o),(e=this.input.querySelector('option[value="'.concat(o,'"]')))?e.removeAttribute("data-select2-tag"):this.input.appendChild(new Option(o,o,!1,!1)).trigger("change"),c=!0),c}},{key:"enable",value:function(){this.always_disabled||this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!1):this.select2_instance.select2("enable",!0)),hn(xr(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.select2_instance&&(this.select2v4?this.select2_instance.prop("disabled",!0):this.select2_instance.select2("enable",!1)),hn(xr(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.select2_instance&&(this.select2_instance.select2("destroy"),this.select2_instance=null),hn(xr(s.prototype),"destroy",this).call(this)}}])&&rs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(nn);function Un(l){return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Un(l)}function is(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Un(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Un(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Un(u)==="symbol"?u:String(u)),n)}var u}function Zr(){return Zr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=fr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Zr.apply(this,arguments)}function _o(l,r){return _o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},_o(l,r)}function fr(l){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fr(l)}var os=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&_o(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=fr(n);if(u){var o=fr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Un(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e){if(this.selectize_instance){e?this.is_dirty=!1:this.jsoneditor.options.show_errors==="change"&&(this.is_dirty=!0);var o=this.updateValue(t);this.input.value=o,this.selectize_instance.clear(!0),this.selectize_instance.setValue(o),this.onChange(!0)}else Zr(fr(s.prototype),"setValue",this).call(this,t,e)}},{key:"afterInputReady",value:function(){var t=this;if(window.jQuery&&window.jQuery.fn&&window.jQuery.fn.selectize&&!this.selectize_instance){var e=this.expandCallbacks("selectize",b({},this.defaults.options.selectize||{},this.options.selectize||{}));this.newEnumAllowed=e.create=!!e.create&&this.schema.type==="string",this.selectize_instance=window.jQuery(this.input).selectize(e)[0].selectize,this.control.removeEventListener("change",this.multiselectChangeHandler),this.multiselectChangeHandler=function(o){t.updateValue(o),t.onChange(!0)},this.selectize_instance.on("change",this.multiselectChangeHandler)}Zr(fr(s.prototype),"afterInputReady",this).call(this)}},{key:"updateValue",value:function(t){var e=this.enum_values[0];return t=this.typecast(t||""),this.enum_values.includes(t)?e=t:this.newEnumAllowed&&(e=this.addNewOption(t)?t:e),this.value=e,e}},{key:"addNewOption",value:function(t){var e=this.typecast(t),o=!1;return this.enum_values.includes(e)||e===""||(this.enum_options.push("".concat(e)),this.enum_display.push("".concat(e)),this.enum_values.push(e),this.schema.enum.push(e),this.selectize_instance.addItem(e),this.selectize_instance.refreshOptions(!1),o=!0),o}},{key:"onWatchedFieldChange",value:function(){var t=this;Zr(fr(s.prototype),"onWatchedFieldChange",this).call(this),this.selectize_instance&&(this.selectize_instance.clear(!0),this.selectize_instance.clearOptions(!0),this.enum_options.forEach(function(e,o){t.selectize_instance.addOption({value:e,text:t.enum_display[o]})}),this.selectize_instance.addItem("".concat(this.value),!0))}},{key:"enable",value:function(){!this.always_disabled&&this.selectize_instance&&this.selectize_instance.unlock(),Zr(fr(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.selectize_instance&&this.selectize_instance.lock(),Zr(fr(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.selectize_instance&&(this.selectize_instance.destroy(),this.selectize_instance=null),Zr(fr(s.prototype),"destroy",this).call(this)}}])&&is(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(nn);function qn(l){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qn(l)}function as(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(qn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(qn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),qn(u)==="symbol"?u:String(u)),n)}var u}function xo(l,r){return xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},xo(l,r)}function Gi(l){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(l)}var ss=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&xo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Gi(n);if(u){var o=Gi(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(qn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){var t=this;this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description)));var e=this.formname.replace(/\W/g,"");if(typeof SignaturePad=="function"){this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input);var o=document.createElement("div");o.classList.add("signature-container");var c=document.createElement("canvas");this.jsoneditor.options.use_name_attributes&&c.setAttribute("name",e),c.classList.add("signature"),o.appendChild(c),this.signaturePad=new window.SignaturePad(c),this.signaturePad.onEnd=function(){t.signaturePad.isEmpty()?t.input.value="":t.input.value=t.signaturePad.toDataURL(),t.is_dirty=!0,t.refreshValue(),t.watch_listener(),t.jsoneditor.notifyWatchers(t.path),t.parent?t.parent.onChildEditorChange(t):t.jsoneditor.onChange()};var h=document.createElement("div"),f=document.createElement("button");f.classList.add("tiny","button"),f.innerHTML="Clear signature",h.appendChild(f),o.appendChild(h),this.options.compact&&this.container.setAttribute("class","".concat(this.container.getAttribute("class")," compact")),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),Array.from(this.inputs).forEach(function(T){c.setAttribute("readOnly","readOnly"),T.disabled=!0})),f.addEventListener("click",function(T){T.preventDefault(),T.stopPropagation(),t.signaturePad.clear(),t.signaturePad.strokeEnd()}),this.control=this.theme.getFormControl(this.label,o,this.description),this.container.appendChild(this.control),this.refreshValue(),c.width=o.offsetWidth,this.options&&this.options.canvas_height?c.height=this.options.canvas_height:c.height="300"}else{var _=document.createElement("p");_.innerHTML="Signature pad is not available, please include SignaturePad from https://github.com/szimek/signature_pad",this.container.appendChild(_)}}},{key:"setValue",value:function(t){if(typeof SignaturePad=="function"){var e=this.sanitize(t);return this.value===e?void 0:(this.value=e,this.input.value=this.value,this.signaturePad.clear(),t&&t!==""&&this.signaturePad.fromDataURL(t),this.watch_listener(),this.jsoneditor.notifyWatchers(this.path),!1)}}},{key:"destroy",value:function(){this.signaturePad.off(),delete this.signaturePad}}])&&as(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function Wn(l){return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wn(l)}function ls(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Wn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Wn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Wn(u)==="symbol"?u:String(u)),n)}var u}function Gr(){return Gr=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=yr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Gr.apply(this,arguments)}function ko(l,r){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},ko(l,r)}function yr(l){return yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yr(l)}R(2564);var cs=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&ko(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=yr(n);if(u){var o=yr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Wn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"setValue",value:function(t,e,o){var c=Gr(yr(s.prototype),"setValue",this).call(this,t,e,o);c!==void 0&&c.changed&&this.simplemde_instance&&this.simplemde_instance.value(c.value)}},{key:"build",value:function(){this.options.format="textarea",Gr(yr(s.prototype),"build",this).call(this),this.input_type=this.schema.format,this.input.setAttribute("data-schemaformat",this.input_type)}},{key:"afterInputReady",value:function(){var t,e=this;window.SimpleMDE?(t=this.expandCallbacks("simplemde",b({},{height:300},this.defaults.options.simplemde||{},this.options.simplemde||{},{element:this.input})),this.simplemde_instance=new window.SimpleMDE(t),(this.schema.readOnly||this.schema.readonly||this.schema.template)&&(this.simplemde_instance.codemirror.options.readOnly=!0),this.simplemde_instance.codemirror.on("change",function(){e.value=e.simplemde_instance.value(),e.is_dirty=!0,e.onChange(!0)}),t.autorefresh&&this.startListening(this.simplemde_instance.codemirror,this.simplemde_instance.codemirror.state.autoRefresh={delay:250}),this.theme.afterInputReady(this.input)):Gr(yr(s.prototype),"afterInputReady",this).call(this)}},{key:"getNumColumns",value:function(){return 6}},{key:"enable",value:function(){!this.always_disabled&&this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!1),Gr(yr(s.prototype),"enable",this).call(this)}},{key:"disable",value:function(t){this.simplemde_instance&&(this.simplemde_instance.codemirror.options.readOnly=!0),Gr(yr(s.prototype),"disable",this).call(this,t)}},{key:"destroy",value:function(){this.simplemde_instance&&(this.simplemde_instance.toTextArea(),this.simplemde_instance=null),Gr(yr(s.prototype),"destroy",this).call(this)}},{key:"startListening",value:function(t,e){function o(){t.display.wrapper.offsetHeight?(this.stopListening(t,e),t.display.lastWrapHeight!==t.display.wrapper.clientHeight&&t.refresh()):e.timeout=window.setTimeout(o,e.delay)}e.timeout=window.setTimeout(o,e.delay),e.hurry=function(){window.clearTimeout(e.timeout),e.timeout=window.setTimeout(o,50)},t.on(window,"mouseup",e.hurry),t.on(window,"keyup",e.hurry)}},{key:"stopListening",value:function(t,e){window.clearTimeout(e.timeout),t.off(window,"mouseup",e.hurry),t.off(window,"keyup",e.hurry)}}])&&ls(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function Jn(l){return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jn(l)}function us(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Jn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Jn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Jn(u)==="symbol"?u:String(u)),n)}var u}function jo(){return jo=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Yn(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},jo.apply(this,arguments)}function Oo(l,r){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Oo(l,r)}function Yn(l){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(l)}var ha=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Oo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Yn(n);if(u){var o=Yn(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Jn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){var t=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.compact&&this.container.classList.add("compact"),this.ratingContainer=document.createElement("div"),this.ratingContainer.classList.add("starrating"),this.schema.enum===void 0){var e=this.schema.maximum?this.schema.maximum:5;this.schema.exclusiveMaximum&&e--,this.enum_values=[];for(var o=0;o<e;o++)this.enum_values.push(o+1)}else this.enum_values=this.schema.enum;this.radioGroup=[];for(var c=function(ut){ut.preventDefault(),ut.stopPropagation(),t.setValue(ut.currentTarget.value),t.onChange(!0)},h=this.enum_values.length-1;h>-1;h--){var f=this.formname+(h+1),_=this.theme.getFormInputField("radio");_.name="".concat(this.formname,"[starrating]"),_.value=this.enum_values[h],_.id=f,_.addEventListener("change",c,!1),this.radioGroup.push(_);var T=document.createElement("label");T.htmlFor=f,T.title=this.enum_values[h],this.options.displayValue&&T.classList.add("starrating-display-enabled"),this.ratingContainer.appendChild(_),this.ratingContainer.appendChild(T)}if(this.options.displayValue&&(this.displayRating=document.createElement("div"),this.displayRating.classList.add("starrating-display"),this.displayRating.innerText=this.enum_values[0],this.ratingContainer.appendChild(this.displayRating)),this.schema.readOnly||this.schema.readonly){this.disable(!0);for(var Y=0;Y<this.radioGroup.length;Y++)this.radioGroup[Y].disabled=!0;this.ratingContainer.classList.add("readonly")}var nt=this.theme.getContainer();nt.appendChild(this.ratingContainer),this.input=nt,this.control=this.theme.getFormControl(this.label,nt,this.description,this.infoButton),this.container.appendChild(this.control),this.refreshValue()}},{key:"enable",value:function(){if(!this.always_disabled){for(var t=0;t<this.radioGroup.length;t++)this.radioGroup[t].disabled=!1;this.ratingContainer.classList.remove("readonly"),this.disabled=!1}}},{key:"disable",value:function(t){t&&(this.always_disabled=!0);for(var e=0;e<this.radioGroup.length;e++)this.radioGroup[e].disabled=!0;this.ratingContainer.classList.add("readonly"),this.disabled=!0}},{key:"destroy",value:function(){this.ratingContainer.parentNode&&this.ratingContainer.parentNode.parentNode&&this.ratingContainer.parentNode.parentNode.removeChild(this.ratingContainer.parentNode),this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),jo(Yn(s.prototype),"destroy",this).call(this)}},{key:"getNumColumns",value:function(){return 2}},{key:"getValue",value:function(){if(this.dependenciesFulfilled)return this.schema.type==="integer"?this.value===""?void 0:1*this.value:this.value}},{key:"setValue",value:function(t){for(var e=0;e<this.radioGroup.length;e++)if(this.radioGroup[e].value==="".concat(t)){this.radioGroup[e].checked=!0,this.value=t,this.options.displayValue&&(this.displayRating.innerHTML=this.value),this.onChange(!0);break}}}])&&us(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q);function Kn(l){return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kn(l)}function hs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Kn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Kn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Kn(u)==="symbol"?u:String(u)),n)}var u}function Ci(){return Ci=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Qr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Ci.apply(this,arguments)}function Co(l,r){return Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Co(l,r)}function Qr(l){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qr(l)}ha.rules={".starrating":"direction:rtl;display:inline-block;white-space:nowrap",".starrating > input":"display:none",".starrating > label:before":"content:'%5C2606';margin:1px;font-size:18px;font-style:normal;font-weight:400;line-height:1;font-family:'Arial';display:inline-block",".starrating > label":"color:%23888;cursor:pointer;margin:8px%200%202px%200",".starrating > label.starrating-display-enabled":"margin:1px%200%200%200",".starrating > input:checked ~ label":"color:%23ffca08",".starrating:not(.readonly) > input:hover ~ label":"color:%23ffca08",".starrating > input:checked ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating:not(.readonly) > input:hover ~ label:before":"content:'%5C2605';text-shadow:0%200%201px%20rgba(0%2C20%2C20%2C1)",".starrating .starrating-display":"position:relative;direction:rtl;text-align:center;font-size:10px;line-height:0px"};var ps=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Co(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Qr(n);if(u){var o=Qr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Kn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"build",value:function(){Ci(Qr(s.prototype),"build",this).call(this),this.input.setAttribute("type","number"),this.input.getAttribute("step")||this.input.setAttribute("step","1");var t=this.theme.getStepperButtons(this.input);this.control.appendChild(t),this.stepperDown=this.control.querySelector(".stepper-down"),this.stepperUp=this.control.querySelector(".stepper-up")}},{key:"enable",value:function(){Ci(Qr(s.prototype),"enable",this).call(this),this.stepperDown.removeAttribute("disabled"),this.stepperUp.removeAttribute("disabled")}},{key:"disable",value:function(){Ci(Qr(s.prototype),"disable",this).call(this),this.stepperDown.setAttribute("disabled",!0),this.stepperUp.setAttribute("disabled",!0)}}])&&hs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Yi);function Zn(l){return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zn(l)}function ds(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Zn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Zn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Zn(u)==="symbol"?u:String(u)),n)}var u}function pn(){return pn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=kr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},pn.apply(this,arguments)}function So(l,r){return So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},So(l,r)}function kr(l){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kr(l)}var fs=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&So(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=kr(n);if(u){var o=kr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Zn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,p=[{key:"register",value:function(){if(pn(kr(s.prototype),"register",this).call(this),this.rows)for(var t=0;t<this.rows.length;t++)this.rows[t].register()}},{key:"unregister",value:function(){if(pn(kr(s.prototype),"unregister",this).call(this),this.rows)for(var t=0;t<this.rows.length;t++)this.rows[t].unregister()}},{key:"getNumColumns",value:function(){return Math.max(Math.min(12,this.width),3)}},{key:"preBuild",value:function(){var t=this.jsoneditor.expandRefs(this.schema.items||{});this.item_title=t.title||"row",this.item_default=t.default||null,this.item_has_child_editors=t.properties||t.items,this.width=12,this.array_controls_top=this.options.array_controls_top||this.jsoneditor.options.array_controls_top,pn(kr(s.prototype),"preBuild",this).call(this)}},{key:"build",value:function(){this.tableContainer=this.theme.getTableContainer(),this.table=this.theme.getTable(),this.tableContainer.appendChild(this.table),this.container.appendChild(this.tableContainer),this.thead=this.theme.getTableHead(),this.table.appendChild(this.thead),this.header_row=this.theme.getTableRow(),this.thead.appendChild(this.header_row),this.row_holder=this.theme.getTableBody(),this.table.appendChild(this.row_holder);var t=this.getElementEditor(0,!0);if(this.item_default=t.getDefault(),this.width=t.getNumColumns()+2,this.options.compact?(this.panel=document.createElement("div"),this.container.appendChild(this.panel)):(this.header=document.createElement("label"),this.header.textContent=this.getTitle(),this.title=this.theme.getHeader(this.header,this.getPathDepth()),this.container.appendChild(this.title),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText)),this.container.appendChild(this.infoButton)),this.title_controls=this.theme.getHeaderButtonHolder(),this.title.appendChild(this.title_controls),this.schema.description&&(this.description=this.theme.getDescription(this.translateProperty(this.schema.description)),this.container.appendChild(this.description)),this.panel=this.theme.getIndentedPanel(),this.container.appendChild(this.panel),this.error_holder=document.createElement("div"),this.panel.appendChild(this.error_holder)),this.panel.appendChild(this.tableContainer),this.controls=this.theme.getButtonHolder(),this.array_controls_top?this.title.appendChild(this.controls):this.panel.appendChild(this.controls),this.item_has_child_editors)for(var e=t.getChildEditors(),o=t.property_order||Object.keys(e),c=0;c<o.length;c++){var h=this.theme.getTableHeaderCell(e[o[c]].getTitle());e[o[c]].options.hidden&&(h.style.display="none"),this.header_row.appendChild(h)}else this.header_row.appendChild(this.theme.getTableHeaderCell(this.item_title));t.destroy(),this.row_holder.innerHTML="",this.controls_header_cell=this.theme.getTableHeaderCell(" "),this.controls_header_cell.setAttribute("aria-hidden","true"),this.header_row.appendChild(this.controls_header_cell),this.addControls()}},{key:"onChildEditorChange",value:function(t){this.refreshValue(),pn(kr(s.prototype),"onChildEditorChange",this).call(this)}},{key:"getItemDefault",value:function(){return b({},{default:this.item_default}).default}},{key:"getItemTitle",value:function(){return this.item_title}},{key:"getElementEditor",value:function(t,e){var o=b({},this.schema.items),c=this.jsoneditor.getEditorClass(o,this.jsoneditor),h=this.row_holder.appendChild(this.theme.getTableRow()),f=h;this.item_has_child_editors||(f=this.theme.getTableCell(),h.appendChild(f));var _=this.jsoneditor.createEditor(c,{jsoneditor:this.jsoneditor,schema:o,container:f,path:"".concat(this.path,".").concat(t),parent:this,compact:!0,table_row:!0});return _.preBuild(),e||(_.build(),_.postBuild(),_.controls_cell=h.appendChild(this.theme.getTableCell()),_.row=h,_.table_controls=this.theme.getButtonHolder(),_.controls_cell.appendChild(_.table_controls),_.table_controls.style.margin=0,_.table_controls.style.padding=0),_}},{key:"destroy",value:function(){this.innerHTML="",this.checkParent(this.title)&&this.title.parentNode.removeChild(this.title),this.checkParent(this.description)&&this.description.parentNode.removeChild(this.description),this.checkParent(this.row_holder)&&this.row_holder.parentNode.removeChild(this.row_holder),this.checkParent(this.table)&&this.table.parentNode.removeChild(this.table),this.checkParent(this.panel)&&this.panel.parentNode.removeChild(this.panel),this.rows=this.title=this.description=this.row_holder=this.table=this.panel=null,pn(kr(s.prototype),"destroy",this).call(this)}},{key:"ensureArraySize",value:function(t){if(Array.isArray(t)||(t=[t]),this.schema.minItems)for(;t.length<this.schema.minItems;)t.push(this.getItemDefault());return this.schema.maxItems&&t.length>this.schema.maxItems&&(t=t.slice(0,this.schema.maxItems)),t}},{key:"setValue",value:function(){var t=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;if(e=this.ensureArraySize(e),JSON.stringify(e)!==this.serialized){var c=!1;e.forEach(function(_,T){t.rows[T]?t.rows[T].setValue(_):(t.addRow(_),c=!0)});for(var h=e.length;h<this.rows.length;h++){var f=this.rows[h].container;this.item_has_child_editors||this.rows[h].row.parentNode.removeChild(this.rows[h].row),this.rows[h].destroy(),f.parentNode&&f.parentNode.removeChild(f),this.rows[h]=null,c=!0}this.rows=this.rows.slice(0,e.length),this.refreshValue(),(c||o)&&this.refreshRowButtons(),this.onChange()}}},{key:"refreshRowButtons",value:function(){var t=this,e=this.schema.minItems&&this.schema.minItems>=this.rows.length,o=this.schema.maxItems&&this.schema.maxItems<=this.rows.length,c=[];this.rows.forEach(function(nt,ut){if(nt.delete_button){var ht=!e;t.setButtonState(nt.delete_button,ht),c.push(ht)}if(nt.copy_button){var xt=!o;t.setButtonState(nt.copy_button,xt),c.push(xt)}if(nt.moveup_button){var Ot=ut!==0;t.setButtonState(nt.moveup_button,Ot),c.push(Ot)}if(nt.movedown_button){var It=ut!==t.rows.length-1;t.setButtonState(nt.movedown_button,It),c.push(It)}});var h=c.some(function(nt){return nt});this.rows.forEach(function(nt){return t.setButtonState(nt.controls_cell,h)}),this.setButtonState(this.controls_header_cell,h),this.setButtonState(this.table,this.value.length);var f=!(o||this.hide_add_button);this.setButtonState(this.add_row_button,f);var _=!(!this.value.length||e||this.hide_delete_last_row_buttons);this.setButtonState(this.delete_last_row_button,_);var T=!(this.value.length<=1||e||this.hide_delete_all_rows_buttons);this.setButtonState(this.remove_all_rows_button,T);var Y=f||_||T;this.setButtonState(this.controls,Y)}},{key:"refreshValue",value:function(){var t=this;this.value=[],this.rows.forEach(function(e,o){t.value[o]=e.getValue()}),this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(t){var e=this.rows.length;this.rows[e]=this.getElementEditor(e);var o=this.rows[e].table_controls;return this.hide_delete_buttons||(this.rows[e].delete_button=this._createDeleteButton(e,o)),this.show_copy_button&&(this.rows[e].copy_button=this._createCopyButton(e,o)),this.hide_move_buttons||(this.rows[e].moveup_button=this._createMoveUpButton(e,o)),this.hide_move_buttons||(this.rows[e].movedown_button=this._createMoveDownButton(e,o)),t!==void 0&&this.rows[e].setValue(t),this.rows[e]}},{key:"_createDeleteButton",value:function(t,e){var o=this,c=this.getButton("","delete","button_delete_row_title_short");return c.classList.add("delete","json-editor-btntype-delete"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){if(h.preventDefault(),h.stopPropagation(),!o.askConfirmation())return!1;var f=1*h.currentTarget.getAttribute("data-i"),_=o.getValue(),T=o.getValue()[f];_.splice(f,1),o.setValue(_),o.onChange(!0),o.jsoneditor.trigger("deleteRow",T)}),e.appendChild(c),c}},{key:"_createCopyButton",value:function(t,e){var o=this,c=this.getButton("","copy","button_copy_row_title_short"),h=this.schema;return c.classList.add("copy","json-editor-btntype-copy"),c.setAttribute("data-i",t),c.addEventListener("click",function(f){f.preventDefault(),f.stopPropagation();var _=1*f.currentTarget.getAttribute("data-i"),T=o.getValue(),Y=T[_];h.items.type==="string"&&h.items.format==="uuid"?Y=P():h.items.type==="object"&&h.items.properties&&T.forEach(function(nt,ut){if(_===ut)for(var ht=0,xt=Object.keys(nt);ht<xt.length;ht++){var Ot=xt[ht];h.items.properties&&h.items.properties[Ot]&&h.items.properties[Ot].format==="uuid"&&((Y=Object.assign({},T[_]))[Ot]=P())}}),T.splice(_+1,0,Y),o.setValue(T),o.onChange(!0),o.jsoneditor.trigger("copyRow",o.rows[_+1])}),e.appendChild(c),c}},{key:"_createMoveUpButton",value:function(t,e){var o=this,c=this.getButton("","moveup","button_move_up_title");return c.classList.add("moveup","json-editor-btntype-move"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){h.preventDefault(),h.stopPropagation();var f=1*h.currentTarget.getAttribute("data-i"),_=o.getValue();_.splice(f-1,0,_.splice(f,1)[0]),o.setValue(_),o.onChange(!0),o.jsoneditor.trigger("moveRow",o.rows[f-1])}),e.appendChild(c),c}},{key:"_createMoveDownButton",value:function(t,e){var o=this,c=this.getButton("","movedown","button_move_down_title");return c.classList.add("movedown","json-editor-btntype-move"),c.setAttribute("data-i",t),c.addEventListener("click",function(h){h.preventDefault(),h.stopPropagation();var f=1*h.currentTarget.getAttribute("data-i"),_=o.getValue();_.splice(f+1,0,_.splice(f,1)[0]),o.setValue(_),o.onChange(!0),o.jsoneditor.trigger("moveRow",o.rows[f+1])}),e.appendChild(c),c}},{key:"addControls",value:function(){var t=this;this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.title_controls&&(this.title.insertBefore(this.toggle_button,this.title.childNodes[0]),this.toggle_button.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.setButtonState(t.panel,t.collapsed),t.collapsed?(t.collapsed=!1,t.setButtonText(e.currentTarget,"","collapse","button_collapse")):(t.collapsed=!0,t.setButtonText(e.currentTarget,"","expand","button_expand"))}),this.options.collapsed&&w(this.toggle_button,"click"),this.schema.options&&this.schema.options.disable_collapse!==void 0?this.schema.options.disable_collapse&&(this.toggle_button.style.display="none"):this.jsoneditor.options.disable_collapse&&(this.toggle_button.style.display="none")),this.add_row_button=this._createAddRowButton(),this.delete_last_row_button=this._createDeleteLastRowButton(),this.remove_all_rows_button=this._createRemoveAllRowsButton()}},{key:"_createToggleButton",value:function(){var t=this.getButton("","collapse","button_collapse");return t.classList.add("json-editor-btntype-toggle"),t}},{key:"_createAddRowButton",value:function(){var t=this,e=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-add"),e.addEventListener("click",function(o){o.preventDefault(),o.stopPropagation();var c=t.addRow();t.refreshValue(),t.refreshRowButtons(),t.onChange(!0),t.jsoneditor.trigger("addRow",c)}),this.controls.appendChild(e),e}},{key:"_createDeleteLastRowButton",value:function(){var t=this,e=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return e.classList.add("json-editor-btntype-deletelast"),e.addEventListener("click",function(o){if(o.preventDefault(),o.stopPropagation(),!t.askConfirmation())return!1;var c=t.getValue(),h=c.pop();t.setValue(c),t.onChange(!0),t.jsoneditor.trigger("deleteRow",h)}),this.controls.appendChild(e),e}},{key:"_createRemoveAllRowsButton",value:function(){var t=this,e=this.getButton("button_delete_all","delete","button_delete_all_title");return e.classList.add("json-editor-btntype-deleteall"),e.addEventListener("click",function(o){if(o.preventDefault(),o.stopPropagation(),!t.askConfirmation())return!1;var c=t.getValue();t.setValue([]),t.onChange(!0),t.jsoneditor.trigger("deleteAllRows",c)}),this.controls.appendChild(e),e}}],p&&ds(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Mt);function Gn(l){return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gn(l)}function ys(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Gn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Gn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Gn(u)==="symbol"?u:String(u)),n)}var u}function Si(){return Si=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Xr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Si.apply(this,arguments)}function Eo(l,r){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Eo(l,r)}function Xr(l){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xr(l)}function Qn(l){return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qn(l)}function ms(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Qn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Qn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Qn(u)==="symbol"?u:String(u)),n)}var u}function Ei(){return Ei=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=tn(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Ei.apply(this,arguments)}function Po(l,r){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Po(l,r)}function tn(l){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tn(l)}function Xn(l){return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xn(l)}function vs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Xn(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Xn(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Xn(u)==="symbol"?u:String(u)),n)}var u}function dn(){return dn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=jr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},dn.apply(this,arguments)}function To(l,r){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},To(l,r)}function jr(l){return jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jr(l)}R(6977);var Qi={ace:Ct,array:Mt,arrayChoices:Fe,arraySelect2:$e,arraySelectize:Pe,autocomplete:Fr,base64:jn,button:Hi,checkbox:Ui,choices:rt,datetime:mt,describedBy:Be,enum:_e,hidden:qi,info:Sn,integer:Yi,ip:mi,jodit:Ki,multiple:Dn,multiselect:Vt,null:ki,number:Ji,object:un,radio:it,sceditor:Hn,select:nn,select2:ns,selectize:os,signature:ss,simplemde:cs,starrating:ha,stepper:ps,string:Q,table:fs,upload:function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Eo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Xr(n);if(u){var o=Xr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Gn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getNumColumns",value:function(){return 4}},{key:"build",value:function(){var t=this;if(this.options.compact||(this.header=this.label=this.theme.getFormInputLabel(this.getTitle(),this.isRequired())),this.schema.description&&(this.description=this.theme.getFormInputDescription(this.translateProperty(this.schema.description))),this.options.infoText&&(this.infoButton=this.theme.getInfoButton(this.translateProperty(this.options.infoText))),this.options.hidden&&(this.container.style.display="none"),this.options=this.expandCallbacks("upload",b({},{title:"Browse",icon:"",auto_upload:!1,hide_input:!1,enable_drag_drop:!1,drop_zone_text:"Drag & Drop file here",drop_zone_top:!1,alt_drop_zone:"",mime_type:"",max_upload_size:0,upload_handler:function(c,h,f,_){window.alert('No upload_handler defined for "'.concat(c.path,'". You must create your own handler to enable upload to server'))}},this.defaults.options.upload||{},this.options.upload||{})),this.options.mime_type=this.options.mime_type?[].concat(this.options.mime_type):[],this.input=this.theme.getFormInputField("hidden"),this.container.appendChild(this.input),!this.schema.readOnly&&!this.schema.readonly){if(typeof this.options.upload_handler!="function")throw new Error("Upload handler required for upload editor");if(this.uploader=this.theme.getFormInputField("file"),this.uploader.style.display="none",this.options.mime_type.length&&this.uploader.setAttribute("accept",this.options.mime_type),this.options.enable_drag_drop===!0&&this.options.hide_input===!0||(this.clickHandler=function(c){t.uploader.dispatchEvent(new window.MouseEvent("click",{view:window,bubbles:!0,cancelable:!1}))},this.browseButton=this.getButton(this.options.title,this.options.icon,this.options.title),this.browseButton.addEventListener("click",this.clickHandler),this.fileDisplay=this.theme.getFormInputField("input"),this.fileDisplay.setAttribute("readonly",!0),this.fileDisplay.value="No file selected.",this.fileDisplay.addEventListener("dblclick",this.clickHandler),this.fileUploadGroup=this.theme.getInputGroup(this.fileDisplay,[this.browseButton]),this.fileUploadGroup||(this.fileUploadGroup=document.createElement("div"),this.fileUploadGroup.appendChild(this.fileDisplay),this.fileUploadGroup.appendChild(this.browseButton))),this.options.enable_drag_drop===!0){if(this.options.alt_drop_zone!==""){if(this.altDropZone=document.querySelector(this.options.alt_drop_zone),!this.altDropZone)throw new Error('Error: alt_drop_zone selector "'.concat(this.options.alt_drop_zone,'" not found!'));this.dropZone=this.altDropZone}else this.dropZone=this.theme.getDropZone(this.options.drop_zone_text);this.dropZone&&(this.dropZone.classList.add("upload-dropzone"),this.dropZone.addEventListener("dblclick",this.clickHandler))}this.uploadHandler=function(c){c.preventDefault(),c.stopPropagation();var h=c.target.files||c.dataTransfer.files;if(h&&h.length)if(t.options.max_upload_size!==0&&h[0].size>t.options.max_upload_size)t.theme.addInputError(t.uploader,"".concat(t.translate("upload_max_size")," ").concat(t.options.max_upload_size));else if(t.options.mime_type.length===0||t.isValidMimeType(h[0].type,t.options.mime_type)){t.fileDisplay&&(t.fileDisplay.value=h[0].name);var f=new window.FileReader;f.onload=function(_){t.preview_value=_.target.result,t.refreshPreview(h),t.onChange(!0),f=null},f.readAsDataURL(h[0])}else t.theme.addInputError(t.uploader,"".concat(t.translate("upload_wrong_file_format")," ").concat(t.options.mime_type.toString()))},this.uploader.addEventListener("change",this.uploadHandler),this.dragHandler=function(c){var h=c.dataTransfer.items||c.dataTransfer.files,f=h&&h.length&&(t.options.mime_type.length===0||t.isValidMimeType(h[0].type,t.options.mime_type)),_=c.currentTarget.classList&&c.currentTarget.classList.contains("upload-dropzone")&&f;switch((c.currentTarget===window?"w_":"e_")+c.type){case"w_drop":case"w_dragover":_||(c.dataTransfer.dropEffect="none");break;case"e_dragenter":_?(t.dropZone.classList.add("valid-dropzone"),c.dataTransfer.dropEffect="copy"):t.dropZone.classList.add("invalid-dropzone");break;case"e_dragover":_&&(c.dataTransfer.dropEffect="copy");break;case"e_dragleave":t.dropZone.classList.remove("valid-dropzone","invalid-dropzone");break;case"e_drop":t.dropZone.classList.remove("valid-dropzone","invalid-dropzone"),_&&t.uploadHandler(c)}_||c.preventDefault()},this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(function(c){window.addEventListener(c,t.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(function(c){t.dropZone.addEventListener(c,t.dragHandler,!0)}))}this.preview=document.createElement("div"),this.control=this.input.controlgroup=this.theme.getFormControl(this.label,this.uploader||this.input,this.description,this.infoButton),this.uploader&&(this.uploader.controlgroup=this.control);var e=this.uploader||this.input,o=document.createElement("div");this.dropZone&&!this.altDropZone&&this.options.drop_zone_top===!0&&o.appendChild(this.dropZone),this.fileUploadGroup&&o.appendChild(this.fileUploadGroup),this.dropZone&&!this.altDropZone&&this.options.drop_zone_top!==!0&&o.appendChild(this.dropZone),o.appendChild(this.preview),e.parentNode.insertBefore(o,e.nextSibling),this.container.appendChild(this.control),window.requestAnimationFrame(function(){t.afterInputReady()})}},{key:"afterInputReady",value:function(){var t=this;if(this.value){var e=document.createElement("img");e.style.maxWidth="100%",e.style.maxHeight="100px",e.onload=function(o){t.preview.appendChild(e)},e.onerror=function(o){console.error("upload error",o,o.currentTarget)},e.src=this.container.querySelector("a").href}this.theme.afterInputReady(this.input)}},{key:"refreshPreview",value:function(t){var e=this;if(this.last_preview!==this.preview_value&&(this.last_preview=this.preview_value,this.preview.innerHTML="",this.preview_value)){var o=t[0],c=this.preview_value.match(/^data:([^;,]+)[;,]/);if(o.mimeType=c?c[1]:"unknown",o.size>0){var h=Math.floor(Math.log(o.size)/Math.log(1024));o.formattedSize="".concat(parseFloat((o.size/Math.pow(1024,h)).toFixed(2))," ").concat(["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][h])}else o.formattedSize="0 Bytes";var f=this.getButton("button_upload","upload","button_upload");f.addEventListener("click",function(_){_.preventDefault(),f.setAttribute("disabled","disabled"),e.theme.removeInputError(e.uploader),e.theme.getProgressBar&&(e.progressBar=e.theme.getProgressBar(),e.preview.appendChild(e.progressBar)),e.options.upload_handler(e.path,o,{success:function(T){e.setValue(T),e.parent?e.parent.onChildEditorChange(e):e.jsoneditor.onChange(),e.progressBar&&e.preview.removeChild(e.progressBar),f.removeAttribute("disabled")},failure:function(T){e.theme.addInputError(e.uploader,T),e.progressBar&&e.preview.removeChild(e.progressBar),f.removeAttribute("disabled")},updateProgress:function(T){e.progressBar&&(T?e.theme.updateProgressBar(e.progressBar,T):e.theme.updateProgressBarUnknown(e.progressBar))}})}),this.preview.appendChild(this.theme.getUploadPreview(o,f,this.preview_value)),this.options.auto_upload&&(f.dispatchEvent(new window.MouseEvent("click")),f.parentNode.removeChild(f))}}},{key:"enable",value:function(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),Si(Xr(s.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),Si(Xr(s.prototype),"disable",this).call(this)}},{key:"setValue",value:function(t){this.value!==t&&(this.value=t,this.input.value=this.value,this.onChange())}},{key:"destroy",value:function(){var t=this;this.options.enable_drag_drop===!0&&(["dragover","drop"].forEach(function(e){window.removeEventListener(e,t.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(function(e){t.dropZone.removeEventListener(e,t.dragHandler,!0)}),this.dropZone.removeEventListener("dblclick",this.clickHandler),this.dropZone&&this.dropZone.parentNode&&this.dropZone.parentNode.removeChild(this.dropZone)),this.uploader&&this.uploader.parentNode&&(this.uploader.removeEventListener("change",this.uploadHandler),this.uploader.parentNode.removeChild(this.uploader)),this.browseButton&&this.browseButton.parentNode&&(this.browseButton.removeEventListener("click",this.clickHandler),this.browseButton.parentNode.removeChild(this.browseButton)),this.fileDisplay&&this.fileDisplay.parentNode&&(this.fileDisplay.removeEventListener("dblclick",this.clickHandler),this.fileDisplay.parentNode.removeChild(this.fileDisplay)),this.fileUploadGroup&&this.fileUploadGroup.parentNode&&this.fileUploadGroup.parentNode.removeChild(this.fileUploadGroup),this.preview&&this.preview.parentNode&&this.preview.parentNode.removeChild(this.preview),this.header&&this.header.parentNode&&this.header.parentNode.removeChild(this.header),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),Si(Xr(s.prototype),"destroy",this).call(this)}},{key:"isValidMimeType",value:function(t,e){return e.reduce(function(o,c){return o||new RegExp(c.replace(/\*/g,".*"),"gi").test(t)},!1)}}])&&ys(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(H),uuid:function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Po(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=tn(n);if(u){var o=tn(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Qn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"preBuild",value:function(){Ei(tn(s.prototype),"preBuild",this).call(this),this.schema.default=this.uuid=this.getUuid(),this.schema.options||(this.schema.options={}),this.schema.options.cleave||(this.schema.options.cleave={delimiters:["-"],blocks:[8,4,4,4,12]})}},{key:"build",value:function(){Ei(tn(s.prototype),"build",this).call(this),this.disable(!0),this.input.setAttribute("readonly","true")}},{key:"sanitize",value:function(t){return this.testUuid(t)||(t=this.uuid),t}},{key:"setValue",value:function(t,e,o){this.testUuid(t)||(t=this.uuid),this.uuid=t,Ei(tn(s.prototype),"setValue",this).call(this,t,e,o)}},{key:"getUuid",value:function(){return P()}},{key:"testUuid",value:function(t){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}}])&&ms(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q),colorpicker:function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&To(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=jr(n);if(u){var o=jr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(Xn(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"postBuild",value:function(){window.Picker&&(this.input.type="text"),this.input.style.padding="3px"}},{key:"setValue",value:function(t,e,o){var c=dn(jr(s.prototype),"setValue",this).call(this,t,e,o);return this.picker_instance&&this.picker_instance.domElement&&c&&c.changed&&this.picker_instance.setColor(c.value,!0),c}},{key:"getNumColumns",value:function(){return 2}},{key:"afterInputReady",value:function(){dn(jr(s.prototype),"afterInputReady",this).call(this),this.createPicker(!0)}},{key:"disable",value:function(){if(dn(jr(s.prototype),"disable",this).call(this),this.picker_instance&&this.picker_instance.domElement){this.picker_instance.domElement.style.pointerEvents="none";for(var t=this.picker_instance.domElement.querySelectorAll("button"),e=0;e<t.length;e++)t[e].disabled=!0}}},{key:"enable",value:function(){if(dn(jr(s.prototype),"enable",this).call(this),this.picker_instance&&this.picker_instance.domElement){this.picker_instance.domElement.style.pointerEvents="auto";for(var t=this.picker_instance.domElement.querySelectorAll("button"),e=0;e<t.length;e++)t[e].disabled=!1}}},{key:"destroy",value:function(){this.createPicker(!1),dn(jr(s.prototype),"destroy",this).call(this)}},{key:"createPicker",value:function(t){var e=this;if(t){if(window.Picker&&!this.picker_instance){var o=this.expandCallbacks("colorpicker",b({},{editor:!1,alpha:!1,color:this.value,popup:"bottom"},this.defaults.options.colorpicker||{},this.options.colorpicker||{},{parent:this.container})),c=function(h){var f=e.picker_instance.settings.editorFormat,_=e.picker_instance.settings.alpha;e.setValue(f==="hex"?_?h.hex:h.hex.slice(0,7):h["".concat(f+(_?"a":""),"String")])};o.popup||typeof o.onChange=="function"?o.popup&&typeof o.onDone!="function"&&(o.onDone=c):o.onChange=c,this.picker_instance=new window.Picker(o),o.popup||(this.input.style.display="none",this.theme.afterInputReady(this.picker_instance.domElement))}}else this.picker_instance&&(this.picker_instance.destroy(),this.picker_instance=null,this.input.style.display="")}}])&&vs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Q)};function pa(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}var da={},Lo="en",bs=Lo;da.en={error_notset:"Property must be set",error_notempty:"Value required",error_enum:"Value must be one of the enumerated values",error_const:"Value must be the constant value",error_anyOf:"Value must validate against at least one of the provided schemas",error_oneOf:"Value must validate against exactly one of the provided schemas. It currently validates against {{0}} of the schemas.",error_not:"Value must not validate against the provided schema",error_type_union:"Value must be one of the provided types",error_type:"Value must be of type {{0}}",error_disallow_union:"Value must not be one of the provided disallowed types",error_disallow:"Value must not be of type {{0}}",error_multipleOf:"Value must be a multiple of {{0}}",error_maximum_excl:"Value must be less than {{0}}",error_maximum_incl:"Value must be at most {{0}}",error_minimum_excl:"Value must be greater than {{0}}",error_minimum_incl:"Value must be at least {{0}}",error_maxLength:"Value must be at most {{0}} characters long",error_contains:"No items match contains",error_minContains:"Contains match count {{0}} is less than minimum contains count of {{1}}",error_maxContains:"Contains match count {{0}} exceeds maximum contains count of {{1}}",error_minLength:"Value must be at least {{0}} characters long",error_pattern:"Value must match the pattern {{0}}",error_additionalItems:"No additional items allowed in this array",error_maxItems:"Value must have at most {{0}} items",error_minItems:"Value must have at least {{0}} items",error_uniqueItems:"Array must have unique items",error_maxProperties:"Object must have at most {{0}} properties",error_minProperties:"Object must have at least {{0}} properties",error_required:"Object is missing the required property '{{0}}'",error_additional_properties:"No additional properties allowed, but property {{0}} is set",error_property_names_exceeds_maxlength:"Property name {{0}} exceeds maxLength",error_property_names_enum_mismatch:"Property name {{0}} does not match any enum values",error_property_names_const_mismatch:"Property name {{0}} does not match the const value",error_property_names_pattern_mismatch:"Property name {{0}} does not match pattern",error_property_names_false:"Property name {{0}} fails when propertyName is false",error_property_names_maxlength:"Property name {{0}} cannot match invalid maxLength",error_property_names_enum:"Property name {{0}} cannot match invalid enum",error_property_names_pattern:"Property name {{0}} cannot match invalid pattern",error_property_names_unsupported:"Unsupported propertyName {{0}}",error_dependency:"Must have property {{0}}",error_date:"Date must be in the format {{0}}",error_time:"Time must be in the format {{0}}",error_datetime_local:"Datetime must be in the format {{0}}",error_invalid_epoch:"Date must be greater than 1 January 1970",error_ipv4:"Value must be a valid IPv4 address in the form of 4 numbers between 0 and 255, separated by dots",error_ipv6:"Value must be a valid IPv6 address",error_hostname:"The hostname has the wrong format",upload_max_size:"Filesize too large. Max size is ",upload_wrong_file_format:"Wrong file format. Allowed format(s): ",button_save:"Save",button_copy:"Copy",button_cancel:"Cancel",button_add:"Add",button_delete_all:"All",button_delete_all_title:"Delete All",button_delete_last:"Last {{0}}",button_delete_last_title:"Delete Last {{0}}",button_add_row_title:"Add {{0}}",button_move_down_title:"Move down",button_move_up_title:"Move up",button_properties:"Properties",button_object_properties:"Object Properties",button_copy_row_title:"Copy {{0}}",button_delete_row_title:"Delete {{0}}",button_delete_row_title_short:"Delete",button_copy_row_title_short:"Copy",button_collapse:"Collapse",button_expand:"Expand",button_edit_json:"Edit JSON",button_upload:"Upload",flatpickr_toggle_button:"Toggle",flatpickr_clear_button:"Clear",choices_placeholder_text:"Start typing to add value",default_array_item_title:"item",button_delete_node_warning:"Are you sure you want to remove this item?"},Object.entries(Qi).forEach(function(l){var r=function(u,a){return function(s){if(Array.isArray(s))return s}(u)||function(s,t){var e=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(e!=null){var o,c,h,f,_=[],T=!0,Y=!1;try{if(h=(e=e.call(s)).next,t===0){if(Object(e)!==e)return;T=!1}else for(;!(T=(o=h.call(e)).done)&&(_.push(o.value),_.length!==t);T=!0);}catch(nt){Y=!0,c=nt}finally{try{if(!T&&e.return!=null&&(f=e.return(),Object(f)!==f))return}finally{if(Y)throw c}}return _}}(u,a)||function(s,t){if(s){if(typeof s=="string")return pa(s,t);var e=Object.prototype.toString.call(s).slice(8,-1);return e==="Object"&&s.constructor&&(e=s.constructor.name),e==="Map"||e==="Set"?Array.from(s):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?pa(s,t):void 0}}(u,a)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(l,2),p=r[0],n=r[1];Qi[p].options=n.options||{}});var fn={options:{upload:function(l,r,p){console.log("Upload handler required for upload editor")},use_name_attributes:!0,prompt_before_delete:!0,use_default_values:!0,max_depth:0,button_state_mode:1,case_sensitive_property_search:!0},theme:"html",template:"default",themes:{},callbacks:{},templates:{},iconlibs:{},editors:Qi,languages:da,resolvers:j,custom_validators:[],default_language:Lo,language:bs,translate:function(l,r,p){var n={};p&&p.options&&p.options.error_messages&&p.options.error_messages[fn.language]&&(n=p.options.error_messages[fn.language]);var u=fn.languages[fn.language];if(!u)throw new Error("Unknown language ".concat(fn.language));var a=n[l]||u[l]||fn.languages[Lo][l]||l;if(r)for(var s=0;s<r.length;s++)a=a.replace(new RegExp("\\{\\{".concat(s,"}}"),"g"),r[s]);return a},translateProperty:function(l,r){return l}};function yn(){yn=function(){return l};var l={},r=Object.prototype,p=r.hasOwnProperty,n=Object.defineProperty||function(U,z,q){U[z]=q.value},u=typeof Symbol=="function"?Symbol:{},a=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",t=u.toStringTag||"@@toStringTag";function e(U,z,q){return Object.defineProperty(U,z,{value:q,enumerable:!0,configurable:!0,writable:!0}),U[z]}try{e({},"")}catch{e=function(U,z,q){return U[z]=q}}function o(U,z,q,pt){var tt=z&&z.prototype instanceof f?z:f,Pt=Object.create(tt.prototype),Gt=new vt(pt||[]);return n(Pt,"_invoke",{value:It(U,q,Gt)}),Pt}function c(U,z,q){try{return{type:"normal",arg:U.call(z,q)}}catch(pt){return{type:"throw",arg:pt}}}l.wrap=o;var h={};function f(){}function _(){}function T(){}var Y={};e(Y,a,function(){return this});var nt=Object.getPrototypeOf,ut=nt&&nt(nt(Ut([])));ut&&ut!==r&&p.call(ut,a)&&(Y=ut);var ht=T.prototype=f.prototype=Object.create(Y);function xt(U){["next","throw","return"].forEach(function(z){e(U,z,function(q){return this._invoke(z,q)})})}function Ot(U,z){function q(tt,Pt,Gt,fe){var ye=c(U[tt],U,Pt);if(ye.type!=="throw"){var rr=ye.arg,mr=rr.value;return mr&&Ne(mr)=="object"&&p.call(mr,"__await")?z.resolve(mr.__await).then(function(Ke){q("next",Ke,Gt,fe)},function(Ke){q("throw",Ke,Gt,fe)}):z.resolve(mr).then(function(Ke){rr.value=Ke,Gt(rr)},function(Ke){return q("throw",Ke,Gt,fe)})}fe(ye.arg)}var pt;n(this,"_invoke",{value:function(tt,Pt){function Gt(){return new z(function(fe,ye){q(tt,Pt,fe,ye)})}return pt=pt?pt.then(Gt,Gt):Gt()}})}function It(U,z,q){var pt="suspendedStart";return function(tt,Pt){if(pt==="executing")throw new Error("Generator is already running");if(pt==="completed"){if(tt==="throw")throw Pt;return{value:void 0,done:!0}}for(q.method=tt,q.arg=Pt;;){var Gt=q.delegate;if(Gt){var fe=Qt(Gt,q);if(fe){if(fe===h)continue;return fe}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(pt==="suspendedStart")throw pt="completed",q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);pt="executing";var ye=c(U,z,q);if(ye.type==="normal"){if(pt=q.done?"completed":"suspendedYield",ye.arg===h)continue;return{value:ye.arg,done:q.done}}ye.type==="throw"&&(pt="completed",q.method="throw",q.arg=ye.arg)}}}function Qt(U,z){var q=z.method,pt=U.iterator[q];if(pt===void 0)return z.delegate=null,q==="throw"&&U.iterator.return&&(z.method="return",z.arg=void 0,Qt(U,z),z.method==="throw")||q!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+q+"' method")),h;var tt=c(pt,U.iterator,z.arg);if(tt.type==="throw")return z.method="throw",z.arg=tt.arg,z.delegate=null,h;var Pt=tt.arg;return Pt?Pt.done?(z[U.resultName]=Pt.value,z.next=U.nextLoc,z.method!=="return"&&(z.method="next",z.arg=void 0),z.delegate=null,h):Pt:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,h)}function be(U){var z={tryLoc:U[0]};1 in U&&(z.catchLoc=U[1]),2 in U&&(z.finallyLoc=U[2],z.afterLoc=U[3]),this.tryEntries.push(z)}function Ht(U){var z=U.completion||{};z.type="normal",delete z.arg,U.completion=z}function vt(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(be,this),this.reset(!0)}function Ut(U){if(U){var z=U[a];if(z)return z.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var q=-1,pt=function tt(){for(;++q<U.length;)if(p.call(U,q))return tt.value=U[q],tt.done=!1,tt;return tt.value=void 0,tt.done=!0,tt};return pt.next=pt}}return{next:Se}}function Se(){return{value:void 0,done:!0}}return _.prototype=T,n(ht,"constructor",{value:T,configurable:!0}),n(T,"constructor",{value:_,configurable:!0}),_.displayName=e(T,t,"GeneratorFunction"),l.isGeneratorFunction=function(U){var z=typeof U=="function"&&U.constructor;return!!z&&(z===_||(z.displayName||z.name)==="GeneratorFunction")},l.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,T):(U.__proto__=T,e(U,t,"GeneratorFunction")),U.prototype=Object.create(ht),U},l.awrap=function(U){return{__await:U}},xt(Ot.prototype),e(Ot.prototype,s,function(){return this}),l.AsyncIterator=Ot,l.async=function(U,z,q,pt,tt){tt===void 0&&(tt=Promise);var Pt=new Ot(o(U,z,q,pt),tt);return l.isGeneratorFunction(z)?Pt:Pt.next().then(function(Gt){return Gt.done?Gt.value:Pt.next()})},xt(ht),e(ht,t,"Generator"),e(ht,a,function(){return this}),e(ht,"toString",function(){return"[object Generator]"}),l.keys=function(U){var z=Object(U),q=[];for(var pt in z)q.push(pt);return q.reverse(),function tt(){for(;q.length;){var Pt=q.pop();if(Pt in z)return tt.value=Pt,tt.done=!1,tt}return tt.done=!0,tt}},l.values=Ut,vt.prototype={constructor:vt,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ht),!U)for(var z in this)z.charAt(0)==="t"&&p.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=void 0)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var z=this;function q(ye,rr){return Pt.type="throw",Pt.arg=U,z.next=ye,rr&&(z.method="next",z.arg=void 0),!!rr}for(var pt=this.tryEntries.length-1;pt>=0;--pt){var tt=this.tryEntries[pt],Pt=tt.completion;if(tt.tryLoc==="root")return q("end");if(tt.tryLoc<=this.prev){var Gt=p.call(tt,"catchLoc"),fe=p.call(tt,"finallyLoc");if(Gt&&fe){if(this.prev<tt.catchLoc)return q(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return q(tt.finallyLoc)}else if(Gt){if(this.prev<tt.catchLoc)return q(tt.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return q(tt.finallyLoc)}}}},abrupt:function(U,z){for(var q=this.tryEntries.length-1;q>=0;--q){var pt=this.tryEntries[q];if(pt.tryLoc<=this.prev&&p.call(pt,"finallyLoc")&&this.prev<pt.finallyLoc){var tt=pt;break}}tt&&(U==="break"||U==="continue")&&tt.tryLoc<=z&&z<=tt.finallyLoc&&(tt=null);var Pt=tt?tt.completion:{};return Pt.type=U,Pt.arg=z,tt?(this.method="next",this.next=tt.finallyLoc,h):this.complete(Pt)},complete:function(U,z){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&z&&(this.next=z),h},finish:function(U){for(var z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z];if(q.finallyLoc===U)return this.complete(q.completion,q.afterLoc),Ht(q),h}},catch:function(U){for(var z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z];if(q.tryLoc===U){var pt=q.completion;if(pt.type==="throw"){var tt=pt.arg;Ht(q)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(U,z,q){return this.delegate={iterator:Ut(U),resultName:z,nextLoc:q},this.method==="next"&&(this.arg=void 0),h}},l}function fa(l,r,p,n,u,a,s){try{var t=l[a](s),e=t.value}catch(o){return void p(o)}t.done?r(e):Promise.resolve(e).then(n,u)}function ya(l){return function(){var r=this,p=arguments;return new Promise(function(n,u){var a=l.apply(r,p);function s(e){fa(a,n,u,s,t,"next",e)}function t(e){fa(a,n,u,s,t,"throw",e)}s(void 0)})}}function mn(l,r){return function(p){if(Array.isArray(p))return p}(l)||function(p,n){var u=p==null?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(u!=null){var a,s,t,e,o=[],c=!0,h=!1;try{if(t=(u=u.call(p)).next,n===0){if(Object(u)!==u)return;c=!1}else for(;!(c=(a=t.call(u)).done)&&(o.push(a.value),o.length!==n);c=!0);}catch(f){h=!0,s=f}finally{try{if(!c&&u.return!=null&&(e=u.return(),Object(e)!==e))return}finally{if(h)throw s}}return o}}(l,r)||function(p,n){if(p){if(typeof p=="string")return ma(p,n);var u=Object.prototype.toString.call(p).slice(8,-1);return u==="Object"&&p.constructor&&(u=p.constructor.name),u==="Map"||u==="Set"?Array.from(p):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?ma(p,n):void 0}}(l,r)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ma(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function Ne(l){return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ne(l)}function gs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Ne(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Ne(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Ne(u)==="symbol"?u:String(u)),n)}var u}R(8733);var ws=function(){function l(a){(function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")})(this,l),this.options=a||{},this.schema={},this.refs=this.options.refs||{},this.refs_with_info={},this.refs_prefix="#/counter/",this.refs_counter=1,this._subSchema1={type:function(s){Ne(s.type)==="object"&&(s.type=this._expandSubSchema(s.type))},disallow:function(s){Ne(s.disallow)==="object"&&(s.disallow=this._expandSubSchema(s.disallow))},anyOf:function(s){var t=this;Object.entries(s.anyOf).forEach(function(e){var o=mn(e,2),c=o[0],h=o[1];s.anyOf[c]=t.expandSchema(h)})},dependencies:function(s){var t=this;Object.entries(s.dependencies).forEach(function(e){var o=mn(e,2),c=o[0],h=o[1];Ne(h)!=="object"||Array.isArray(h)||(s.dependencies[c]=t.expandSchema(h))})},not:function(s){s.not=this.expandSchema(s.not)}},this._subSchema2={allOf:function(s,t){var e=this,o=b({},t);return Object.entries(s.allOf).forEach(function(c){var h=mn(c,2),f=h[0],_=h[1];s.allOf[f]=e.expandRefs(_,!0),o=e.extendSchemas(o,e.expandSchema(_))}),delete o.allOf,o},extends:function(s,t){var e,o=this;return delete(e=Array.isArray(s.extends)?s.extends.reduce(function(c,h,f){return o.extendSchemas(c,o.expandSchema(h))},t):this.extendSchemas(t,this.expandSchema(s.extends))).extends,e},oneOf:function(s,t){var e=this,o=b({},t);return delete o.oneOf,s.oneOf.reduce(function(c,h,f){return c.oneOf[f]=e.extendSchemas(e.expandSchema(h),o),c},t),t}}}var r,p,n,u;return r=l,p=[{key:"load",value:(u=ya(yn().mark(function a(s,t,e){return yn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.schema=s,o.next=3,this._asyncloadExternalRefs(s,t,this._getFileBase(e),!0);case 3:return o.abrupt("return",this.expandRefs(s));case 4:case"end":return o.stop()}},a,this)})),function(a,s,t){return u.apply(this,arguments)})},{key:"expandRefs",value:function(a,s){var t=this,e=b({},a);if(!e.$ref)return e;var o=e.$ref.split("#");if(o.length===2&&!this.refs_with_info[e.$ref]){var c=this.expandRecursivePointer(this.schema,o[1]),h=this.extendSchemas(e,this.expandSchema(c));return delete h.$ref,h}var f=o.length>2?this.refs_with_info["#"+o[1]]:this.refs_with_info[e.$ref];delete e.$ref;var _=f.$ref.startsWith("#")?f.fetchUrl:"",T=this._getRef(_,f);if(this.refs[T]){if(s&&x(this.refs[T],"allOf")){var Y=this.refs[T].allOf;Object.keys(Y).forEach(function(nt){Y[nt]=t.expandRefs(Y[nt],!0)})}}else console.warn("reference:'".concat(T,"' not found!"));return o.length>2?this.extendSchemas(e,this.expandSchema(this.expandRecursivePointer(this.refs[T],o[2]))):this.extendSchemas(e,this.expandSchema(this.refs[T]))}},{key:"expandRecursivePointer",value:function(a,s){var t=a;return s.split("/").slice(1).forEach(function(e){t[e]&&(t=t[e])}),t.$refs&&t.$refs.startsWith("#")?this.expandRecursivePointer(a,t.$refs):t}},{key:"expandSchema",value:function(a){var s=this;Object.entries(this._subSchema1).forEach(function(e){var o=mn(e,2),c=o[0],h=o[1];a[c]&&h.call(s,a)});var t=b({},a);return Object.entries(this._subSchema2).forEach(function(e){var o=mn(e,2),c=o[0],h=o[1];a[c]&&(t=h.call(s,a,t))}),this.expandRefs(t)}},{key:"_getRef",value:function(a,s){var t=a+s;return this.refs[t]?t:a+decodeURIComponent(s.$ref)}},{key:"_expandSubSchema",value:function(a){var s=this;return Array.isArray(a)?a.map(function(t){return Ne(t)==="object"?s.expandSchema(t):t}):this.expandSchema(a)}},{key:"_manageRecursivePointer",value:function(a,s){Object.keys(a).forEach(function(t){a[t].$ref&&a[t].$ref.indexOf("#")===0&&(a[t].$ref=s+a[t].$ref)})}},{key:"_getExternalRefs",value:function(a,s){var t=this,e=arguments.length>2&&arguments[2]!==void 0&&arguments[2];e||this._manageRecursivePointer(a,s);var o={},c=function(Y){return Object.keys(Y).forEach(function(nt){o[nt]=!0})};if(a.$ref&&Ne(a.$ref)!=="object"&&(a.$ref.indexOf("#")!==0||!e)){var h=a.$ref,f="";h.indexOf("#")>0&&(h=h.substr(0,h.indexOf("#"))),h!==a.$ref&&(f=a.$ref.substr(a.$ref.indexOf("#")));var _=this.refs_prefix+this.refs_counter++,T=_+f;a.$ref.substr(0,1)==="#"||this.refs[a.$ref]||(o[h]=!0),this.refs_with_info[_]={fetchUrl:s,$ref:h},a.$ref=T}return Object.values(a).forEach(function(Y){Y&&Ne(Y)==="object"&&(Array.isArray(Y)?Object.values(Y).forEach(function(nt){nt&&Ne(nt)==="object"&&c(t._getExternalRefs(nt,s,e))}):Y.$ref&&typeof Y.$ref=="string"&&Y.$ref.startsWith("#")||c(t._getExternalRefs(Y,s,e)))}),a.id&&typeof a.id=="string"&&a.id.substr(0,4)==="urn:"?this.refs[a.id]=a:a.$id&&typeof a.$id=="string"&&a.$id.substr(0,4)==="urn:"&&(this.refs[a.$id]=a),o}},{key:"_getFileBase",value:function(a){if(!a)return"/";var s=this.options.ajaxBase;return s===void 0?this._getFileBaseFromFileLocation(a):s}},{key:"_getFileBaseFromFileLocation",value:function(a){var s=a.split("/");return s.pop(),"".concat(s.join("/"),"/")}},{key:"_joinUrl",value:function(a,s){var t=a;return a.substr(0,7)!=="http://"&&a.substr(0,8)!=="https://"&&a.substr(0,5)!=="blob:"&&a.substr(0,5)!=="data:"&&a.substr(0,1)!=="#"&&a.substr(0,1)!=="/"&&(t=s+a),t.indexOf("#")>0&&(t=t.substr(0,t.indexOf("#"))),t}},{key:"_isUniformResourceName",value:function(a){return a.substr(0,4)==="urn:"}},{key:"_asyncloadExternalRefs",value:(n=ya(yn().mark(function a(s,t,e){var o,c,h,f,_,T,Y=this,nt=arguments;return yn().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:o=nt.length>3&&nt[3]!==void 0&&nt[3],c=this._getExternalRefs(s,t,o),h=0,f=yn().mark(function ht(){var xt,Ot,It,Qt,be,Ht,vt,Ut,Se,U,z;return yn().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if((xt=T[_])!==void 0){q.next=3;break}return q.abrupt("return","continue");case 3:if(!Y.refs[xt]){q.next=5;break}return q.abrupt("return","continue");case 5:if(!Y._isUniformResourceName(xt)){q.next=40;break}if(Y.refs[xt]="loading",h++,Ot=Y.options.urn_resolver,It=xt,typeof Ot=="function"){q.next=13;break}throw console.log('No "urn_resolver" callback defined to resolve "'.concat(It,'"')),new Error("Must set urn_resolver option to a callback to resolve ".concat(It));case 13:return It.indexOf("#")>0&&(It=It.substr(0,It.indexOf("#"))),q.prev=14,q.next=17,Ot(It);case 17:Qt=q.sent,q.prev=18,be=JSON.parse(Qt),q.next=26;break;case 22:throw q.prev=22,q.t0=q.catch(18),console.log(q.t0),new Error("Failed to parse external ref ".concat(It));case 26:if(!(typeof be!="boolean"&&Ne(be)!=="object"||be===null||Array.isArray(be))){q.next=28;break}throw new Error("External ref does not contain a valid schema - ".concat(It));case 28:return Y.refs[xt]=be,q.next=31,Y._asyncloadExternalRefs(be,xt,e);case 31:q.next=37;break;case 33:throw q.prev=33,q.t1=q.catch(14),console.log(q.t1),new Error("Failed to parse external ref ".concat(It));case 37:if(typeof Qt!="boolean"){q.next=39;break}throw new Error("External ref does not contain a valid schema - ".concat(It));case 39:return q.abrupt("return","continue");case 40:if(Y.options.ajax){q.next=42;break}throw new Error("Must set ajax option to true to load external ref ".concat(xt));case 42:if(h++,Ht=Y._joinUrl(xt,e),Y.options.ajax_cache_responses&&(Ut=Y.cacheGet(Ht))&&(vt=Ut),vt){q.next=61;break}return q.next=48,new Promise(function(pt){var tt=new XMLHttpRequest;Y.options.ajaxCredentials&&(tt.withCredentials=Y.options.ajaxCredentials),tt.overrideMimeType("application/json"),tt.open("GET",Ht,!0),tt.onload=function(){pt(tt)},tt.onerror=function(Pt){pt(void 0)},tt.send()});case 48:if((Se=q.sent)!==void 0){q.next=51;break}throw new Error("Failed to fetch ref via ajax - ".concat(xt));case 51:q.prev=51,vt=JSON.parse(Se.responseText),Y.onSchemaLoaded({schema:vt,schemaUrl:Ht}),Y.options.ajax_cache_responses&&Y.cacheSet(Ht,vt),q.next=61;break;case 57:throw q.prev=57,q.t2=q.catch(51),console.log(q.t2),new Error("Failed to parse external ref ".concat(Ht));case 61:if(!(typeof vt!="boolean"&&Ne(vt)!=="object"||vt===null||Array.isArray(vt))){q.next=63;break}throw new Error("External ref does not contain a valid schema - ".concat(Ht));case 63:return Y.refs[xt]=vt,U=Y._getFileBaseFromFileLocation(Ht),Ht!==xt&&(z=Ht.split("/"),Ht=(xt.substr(0,1)==="/"?"/":"")+z.pop()),q.next=68,Y._asyncloadExternalRefs(vt,Ht,U);case 68:case"end":return q.stop()}},ht,null,[[14,33],[18,22],[51,57]])}),_=0,T=Object.keys(c);case 5:if(!(_<T.length)){ut.next=13;break}return ut.delegateYield(f(),"t0",7);case 7:if(ut.t0!=="continue"){ut.next=10;break}return ut.abrupt("continue",10);case 10:_++,ut.next=5;break;case 13:if(h){ut.next=15;break}return ut.abrupt("return",!0);case 15:this.onAllSchemasLoaded();case 16:case"end":return ut.stop()}},a,this)})),function(a,s,t){return n.apply(this,arguments)})},{key:"onSchemaLoaded",value:function(a){}},{key:"onAllSchemasLoaded",value:function(){}},{key:"extendSchemas",value:function(a,s){var t=this;a=b({},a),s=b({},s);var e={},o=function(c){typeof c=="string"&&(c=[c]),typeof s.type=="string"&&(s.type=[s.type]),s.type&&s.type.length?e.type=c.filter(function(h){return s.type.includes(h)}):e.type=c,e.type.length===1&&typeof e.type[0]=="string"?e.type=e.type[0]:e.type.length===0&&delete e.type};return Object.entries(a).forEach(function(c){var h=mn(c,2),f=h[0],_=h[1];s[f]!==void 0?function(T,Y){(function(nt,ut){return(nt==="required"||nt==="defaultProperties")&&Ne(ut)==="object"&&Array.isArray(ut)})(T,Y)?e[T]=Y.concat(s[T]).reduce(function(nt,ut){return nt.includes(ut)||nt.push(ut),nt},[]):T!=="type"||typeof Y!="string"&&!Array.isArray(Y)?Ne(Y)!=="object"||Array.isArray(Y)||Y===null?e[T]=Y:e[T]=t.extendSchemas(Y,s[T]):o(Y)}(f,_):e[f]=_}),Object.entries(s).forEach(function(c){var h=mn(c,2),f=h[0],_=h[1];a[f]===void 0&&(e[f]=_)}),e}},{key:"getCacheKey",value:function(a){return["je-cache",a].join("::")}},{key:"getCacheBuster",value:function(){return this.options.ajax_cache_buster||new Date().toISOString().slice(0,10)}},{key:"cacheSet",value:function(a,s){try{window.localStorage.setItem(this.getCacheKey(a),JSON.stringify({cacheBuster:this.getCacheBuster(),schema:s}))}catch(t){console.error(t)}}},{key:"cacheGet",value:function(a){try{var s=window.localStorage.getItem(this.getCacheKey(a));if(s){var t=JSON.parse(s);if(t.cacheBuster&&t.schema&&t.cacheBuster===this.getCacheBuster())return t.schema;this.cacheDelete(a)}}catch(e){console.error(e)}}},{key:"cacheDelete",value:function(a){window.localStorage.removeItem(this.getCacheKey(a))}}],p&&gs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}(),_s=(R(3210),{default:function(){return{compile:function(l){var r=l.match(/{{\s*([a-zA-Z0-9\-_ .]+)\s*}}/g),p=r&&r.length;if(!p)return function(){return l};for(var n=[],u=function(s){var t,e,o=r[s].replace(/[{}]+/g,"").trim().split("."),c=o.length;c>1?t=function(h){for(e=h,s=0;s<c&&(e=e[o[s]]);s++);return e}:(o=o[0],t=function(h){return h[o]}),n.push({s:r[s],r:t})},a=0;a<p;a++)u(a);return function(s){var t,e="".concat(l);for(a=0;a<p;a++)t=n[a],e=e.replace(t.s,t.r(s));return e}}}},ejs:function(){return!!window.EJS&&{compile:function(l){var r=new window.EJS({text:l});return function(p){return r.render(p)}}}},handlebars:function(){return window.Handlebars},hogan:function(){return!!window.Hogan&&{compile:function(l){var r=window.Hogan.compile(l);return function(p){return r.render(p)}}}},lodash:function(){return!!window._&&{compile:function(l){return function(r){return window._.template(l)(r)}}}},markup:function(){return!(!window.Mark||!window.Mark.up)&&{compile:function(l){return function(r){return window.Mark.up(l,r)}}}},mustache:function(){return!!window.Mustache&&{compile:function(l){return function(r){return window.Mustache.render(l,r)}}}},swig:function(){return window.swig},underscore:function(){return!!window._&&{compile:function(l){return function(r){return window._.template(l)(r)}}}}});function Pi(l){return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pi(l)}function Ro(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function xs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Pi(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Pi(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Pi(u)==="symbol"?u:String(u)),n)}var u}var ks={collapse:"",expand:"",delete:"",edit:"",add:"",cancel:"",save:"",moveup:"",movedown:""},Ar=function(){function l(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ks;(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.mapping=u,this.icon_prefix=n}var r,p;return r=l,(p=[{key:"getIconClass",value:function(n){return this.mapping[n]?this.icon_prefix+this.mapping[n]:this.icon_prefix+n}},{key:"getIcon",value:function(n){var u,a=this.getIconClass(n);if(!a)return null;var s,t=document.createElement("i");return(u=t.classList).add.apply(u,function(e){if(Array.isArray(e))return Ro(e)}(s=a.split(" "))||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(s)||function(e,o){if(e){if(typeof e=="string")return Ro(e,o);var c=Object.prototype.toString.call(e).slice(8,-1);return c==="Object"&&e.constructor&&(c=e.constructor.name),c==="Map"||c==="Set"?Array.from(e):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?Ro(e,o):void 0}}(s)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),t}}])&&xs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ao(l){return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ao(l)}function Bo(l,r){return Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Bo(l,r)}function Xi(l){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(l)}var js="glyphicon glyphicon-",Os={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"floppy-remove",save:"floppy-saved",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"},Cs=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Bo(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=Xi(p);if(n){var e=Xi(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Ao(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,js,Os)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function Io(l){return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Io(l)}function Do(l,r){return Do=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Do(l,r)}function to(l){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(l)}var Ss="icon-",Es={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"remove-circle",time:"time",calendar:"calendar",edit_properties:"list"},Ps=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Do(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=to(p);if(n){var e=to(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Io(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,Ss,Es)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function Fo(l){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fo(l)}function No(l,r){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},No(l,r)}function eo(l){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(l)}var Ts="fa fa-",Ls={collapse:"caret-square-o-down",expand:"caret-square-o-right",delete:"times",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"files-o",clear:"times-circle-o",time:"clock-o",calendar:"calendar",edit_properties:"list"},Rs=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&No(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=eo(p);if(n){var e=eo(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Fo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,Ts,Ls)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function Mo(l){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mo(l)}function $o(l,r){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},$o(l,r)}function ro(l){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(l)}var As="fas fa-",Bs={collapse:"caret-down",expand:"caret-right",delete:"trash",edit:"pen",add:"plus",subtract:"minus",cancel:"ban",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"copy",clear:"times-circle",time:"clock",calendar:"calendar",edit_properties:"list"},Is=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&$o(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=ro(p);if(n){var e=ro(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Mo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,As,Bs)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function Vo(l){return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vo(l)}function Ho(l,r){return Ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Ho(l,r)}function no(l){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(l)}var Ds="ui-icon ui-icon-",Fs={collapse:"triangle-1-s",expand:"triangle-1-e",delete:"trash",edit:"pencil",add:"plusthick",subtract:"minusthick",cancel:"closethick",save:"disk",moveup:"arrowthick-1-n",moveright:"arrowthick-1-e",movedown:"arrowthick-1-s",moveleft:"arrowthick-1-w",copy:"copy",clear:"circle-close",time:"time",calendar:"calendar",edit_properties:"note"},Ns=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Ho(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=no(p);if(n){var e=no(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Vo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,Ds,Fs)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function zo(l){return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zo(l)}function Uo(l,r){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Uo(l,r)}function io(l){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(l)}var Ms="oi oi-",$s={collapse:"collapse-down",expand:"expand-right",delete:"trash",edit:"pencil",add:"plus",subtract:"minus",cancel:"ban",save:"file",moveup:"arrow-thick-top",moveright:"arrow-thick-right",movedown:"arrow-thick-bottom",moveleft:"arrow-thick-left",copy:"clipboard",clear:"circle-x",time:"clock",calendar:"calendar",edit_properties:"list"},Vs=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Uo(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=io(p);if(n){var e=io(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(zo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,Ms,$s)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function qo(l){return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qo(l)}function Wo(l,r){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Wo(l,r)}function oo(l){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(l)}var Hs="icon icon-",zs={collapse:"arrow-down",expand:"arrow-right",delete:"delete",edit:"edit",add:"plus",subtract:"minus",cancel:"cross",save:"check",moveup:"upward",moveright:"forward",movedown:"downward",moveleft:"back",copy:"copy",clear:"close",time:"time",calendar:"bookmark",edit_properties:"menu"},Us=function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Wo(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=oo(p);if(n){var e=oo(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(qo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,Hs,zs)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar);function Jo(l){return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jo(l)}function Yo(l,r){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Yo(l,r)}function ao(l){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(l)}var qs="bi bi-",Ws={collapse:"chevron-down",expand:"chevron-right",delete:"trash",edit:"pencil",add:"plus",subtract:"dash",cancel:"x-circle",save:"save",moveup:"arrow-up",moveright:"arrow-right",movedown:"arrow-down",moveleft:"arrow-left",copy:"clipboard",clear:"x-circle",time:"clock",calendar:"calendar",edit_properties:"list-ul"},Js={bootstrap:function(l){(function(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&Yo(s,t)})(a,l);var r,p,n,u=(p=a,n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var s,t=ao(p);if(n){var e=ao(this).constructor;s=Reflect.construct(t,arguments,e)}else s=t.apply(this,arguments);return function(o,c){if(c&&(Jo(c)==="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(o)}(this,s)});function a(){return function(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),u.call(this,qs,Ws)}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(Ar),bootstrap3:Cs,fontawesome3:Ps,fontawesome4:Rs,fontawesome5:Is,jqueryui:Ns,openiconic:Vs,spectre:Us};function Ti(l){return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ti(l)}function Ys(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(Ti(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(Ti(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),Ti(u)==="symbol"?u:String(u)),n)}var u}var va=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(function(l){return l in document.documentElement}),Br=function(){function l(n){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{disable_theme_rules:!1};(function(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")})(this,l),this.jsoneditor=n,Object.keys(u).forEach(function(a){n.options[a]!==void 0&&(u[a]=n.options[a])}),this.options=u}var r,p;return r=l,p=[{key:"getContainer",value:function(){return document.createElement("div")}},{key:"getFloatRightLinkHolder",value:function(){var n=document.createElement("div");return n.classList.add("je-float-right-linkholder"),n}},{key:"getModal",value:function(){var n=document.createElement("div");return n.style.display="none",n.classList.add("je-modal"),n}},{key:"getGridContainer",value:function(){return document.createElement("div")}},{key:"getGridRow",value:function(){var n=document.createElement("div");return n.classList.add("row"),n}},{key:"getGridColumn",value:function(){return document.createElement("div")}},{key:"setGridColumnSize",value:function(n,u){}},{key:"getLink",value:function(n){var u=document.createElement("a");return u.setAttribute("href","#"),u.appendChild(document.createTextNode(n)),u}},{key:"disableHeader",value:function(n){n.style.color="#ccc"}},{key:"disableLabel",value:function(n){n.style.color="#ccc"}},{key:"enableHeader",value:function(n){n.style.color=""}},{key:"enableLabel",value:function(n){n.style.color=""}},{key:"getInfoButton",value:function(n){var u=document.createElement("span");u.innerText="ⓘ",u.classList.add("je-infobutton-icon");var a=document.createElement("span");return a.classList.add("je-infobutton-tooltip"),a.innerText=n,u.onmouseover=function(){a.style.visibility="visible"},u.onmouseleave=function(){a.style.visibility="hidden"},u.appendChild(a),u}},{key:"getFormInputLabel",value:function(n,u){var a=document.createElement("label");return a.appendChild(document.createTextNode(n)),u&&a.classList.add("required"),a}},{key:"getHeader",value:function(n,u){var a=document.createElement("h3");return typeof n=="string"?a.textContent=n:a.appendChild(n),a.classList.add("je-header"),a}},{key:"getCheckbox",value:function(){var n=this.getFormInputField("checkbox");return n.classList.add("je-checkbox"),n}},{key:"getCheckboxLabel",value:function(n,u){var a=document.createElement("label");return a.appendChild(document.createTextNode(" ".concat(n))),u&&a.classList.add("required"),a}},{key:"getMultiCheckboxHolder",value:function(n,u,a,s){var t=document.createElement("div");return t.classList.add("control-group"),u&&(u.style.display="block",t.appendChild(u),s&&u.appendChild(s)),Object.values(n).forEach(function(e){e.style.display="inline-block",e.style.marginRight="20px",t.appendChild(e)}),a&&t.appendChild(a),t}},{key:"getFormCheckboxControl",value:function(n,u,a){var s=document.createElement("div");return s.appendChild(n),u.style.width="auto",n.insertBefore(u,n.firstChild),a&&s.classList.add("je-checkbox-control--compact"),s}},{key:"getFormRadio",value:function(n){var u=this.getFormInputField("radio");return Object.keys(n).forEach(function(a){return u.setAttribute(a,n[a])}),u.classList.add("je-radio"),u}},{key:"getFormRadioLabel",value:function(n,u){var a=document.createElement("label");return a.appendChild(document.createTextNode(" ".concat(n))),u&&a.classList.add("required"),a}},{key:"getFormRadioControl",value:function(n,u,a){var s=document.createElement("div");return s.appendChild(n),u.style.width="auto",n.insertBefore(u,n.firstChild),a&&s.classList.add("je-radio-control--compact"),s}},{key:"getSelectInput",value:function(n,u){var a=document.createElement("select");return n&&this.setSelectOptions(a,n),a}},{key:"getSwitcher",value:function(n){var u=this.getSelectInput(n,!1);return u.classList.add("je-switcher"),u}},{key:"getSwitcherOptions",value:function(n){return n.getElementsByTagName("option")}},{key:"setSwitcherOptions",value:function(n,u,a){this.setSelectOptions(n,u,a)}},{key:"setSelectOptions",value:function(n,u){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];n.innerHTML="";for(var s=0;s<u.length;s++){var t=document.createElement("option");t.setAttribute("value",u[s]),t.textContent=a[s]||u[s],n.appendChild(t)}}},{key:"getTextareaInput",value:function(){var n=document.createElement("textarea");return n.classList.add("je-textarea"),n}},{key:"getRangeInput",value:function(n,u,a){var s=this.getFormInputField("range");return s.setAttribute("min",n),s.setAttribute("max",u),s.setAttribute("step",a),s}},{key:"getStepperButtons",value:function(n){var u=document.createElement("div"),a=document.createElement("button");a.setAttribute("type","button"),a.classList.add("stepper-down");var s=document.createElement("button");s.setAttribute("type","button"),s.classList.add("stepper-up"),n.getAttribute("readonly")&&(a.setAttribute("disabled",!0),s.setAttribute("disabled",!0)),a.textContent="-",s.textContent="+";var t=function(c,h){c.value=Number(h||c.value),c.setAttribute("initialized","1")},e=n.getAttribute("min"),o=n.getAttribute("max");return a.addEventListener("click",function(){n.getAttribute("initialized")?e?Number(n.value)>Number(e)&&n.stepDown():n.stepDown():t(n,e),w(n,"change")}),s.addEventListener("click",function(){n.getAttribute("initialized")?o?Number(n.value)<Number(o)&&n.stepUp():n.stepUp():t(n,e),w(n,"change")}),u.appendChild(a),u.appendChild(s),u}},{key:"getRangeOutput",value:function(n,u){var a=document.createElement("output"),s=function(t){a.value=t.currentTarget.value};return n.addEventListener("change",s,!1),n.addEventListener("input",s,!1),a}},{key:"getRangeControl",value:function(n,u){var a=document.createElement("div");return a.classList.add("je-range-control"),u&&a.appendChild(u),a.appendChild(n),a}},{key:"getFormInputField",value:function(n){var u=document.createElement("input");return u.setAttribute("type",n),u}},{key:"afterInputReady",value:function(n){}},{key:"getFormControl",value:function(n,u,a,s,t){var e=document.createElement("div");return e.classList.add("form-control"),n&&(e.appendChild(n),t&&n.setAttribute("for",t)),u.type!=="checkbox"&&u.type!=="radio"||!n?(s&&n&&n.appendChild(s),e.appendChild(u)):(u.style.width="auto",n.insertBefore(u,n.firstChild),s&&n.appendChild(s)),a&&e.appendChild(a),e}},{key:"getIndentedPanel",value:function(){var n=document.createElement("div");return n.classList.add("je-indented-panel"),n}},{key:"getTopIndentedPanel",value:function(){var n=document.createElement("div");return n.classList.add("je-indented-panel--top"),n}},{key:"getChildEditorHolder",value:function(){return document.createElement("div")}},{key:"getDescription",value:function(n){var u=document.createElement("p");return window.DOMPurify?u.innerHTML=window.DOMPurify.sanitize(n):u.textContent=this.cleanText(n),u}},{key:"getCheckboxDescription",value:function(n){return this.getDescription(n)}},{key:"getFormInputDescription",value:function(n){return this.getDescription(n)}},{key:"getButtonHolder",value:function(){return document.createElement("span")}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getFormButtonHolder",value:function(n){return this.getButtonHolder()}},{key:"getButton",value:function(n,u,a){var s=document.createElement("button");return s.type="button",this.setButtonText(s,n,u,a),s}},{key:"getFormButton",value:function(n,u,a){return this.getButton(n,u,a)}},{key:"setButtonText",value:function(n,u,a,s){for(;n.firstChild;)n.removeChild(n.firstChild);if(a&&(n.appendChild(a),u=" ".concat(u)),!this.jsoneditor.options.iconlib||!this.jsoneditor.options.remove_button_labels||!a){var t=document.createElement("span");t.appendChild(document.createTextNode(u)),n.appendChild(t)}s&&n.setAttribute("title",s)}},{key:"getTableContainer",value:function(){return document.createElement("div")}},{key:"getTable",value:function(){return document.createElement("table")}},{key:"getTableRow",value:function(){return document.createElement("tr")}},{key:"getTableHead",value:function(){return document.createElement("thead")}},{key:"getTableBody",value:function(){return document.createElement("tbody")}},{key:"getTableHeaderCell",value:function(n){var u=document.createElement("th");return u.textContent=n,u}},{key:"getTableCell",value:function(){return document.createElement("td")}},{key:"getErrorMessage",value:function(n){var u=document.createElement("p");return u.style=u.style||{},u.style.color="red",u.appendChild(document.createTextNode(n)),u}},{key:"addInputError",value:function(n,u){}},{key:"removeInputError",value:function(n){}},{key:"addTableRowError",value:function(n){}},{key:"removeTableRowError",value:function(n){}},{key:"getTabHolder",value:function(n){var u=n===void 0?"":n,a=document.createElement("div");return a.innerHTML="<div class='je-tabholder tabs'></div><div class='content' id='".concat(u,"'></div><div class='je-tabholder--clear'></div>"),a}},{key:"getTopTabHolder",value:function(n){var u=n===void 0?"":n,a=document.createElement("div");return a.innerHTML="<div class='tabs je-tabholder--top'></div><div class='je-tabholder--clear'></div><div class='content' id='".concat(u,"'></div>"),a}},{key:"applyStyles",value:function(n,u){Object.keys(u).forEach(function(a){return n.style[a]=u[a]})}},{key:"closest",value:function(n,u){for(;n&&n!==document;){if(!n[va])return!1;if(n[va](u))return n;n=n.parentNode}return!1}},{key:"insertBasicTopTab",value:function(n,u){u.firstChild.insertBefore(n,u.firstChild.firstChild)}},{key:"getTab",value:function(n,u){var a=document.createElement("div");return a.appendChild(n),a.id=u,a.classList.add("je-tab"),a}},{key:"getTopTab",value:function(n,u){var a=document.createElement("div");return a.appendChild(n),a.id=u,a.classList.add("je-tab--top"),a}},{key:"getTabContentHolder",value:function(n){return n.children[1]}},{key:"getTopTabContentHolder",value:function(n){return n.children[1]}},{key:"getTabContent",value:function(){return this.getIndentedPanel()}},{key:"getTopTabContent",value:function(){return this.getTopIndentedPanel()}},{key:"markTabActive",value:function(n){this.applyStyles(n.tab,{opacity:1,background:"white"}),n.rowPane!==void 0?n.rowPane.style.display="":n.container.style.display=""}},{key:"markTabInactive",value:function(n){this.applyStyles(n.tab,{opacity:.5,background:""}),n.rowPane!==void 0?n.rowPane.style.display="none":n.container.style.display="none"}},{key:"addTab",value:function(n,u){n.children[0].appendChild(u)}},{key:"addTopTab",value:function(n,u){n.children[0].appendChild(u)}},{key:"getBlockLink",value:function(){var n=document.createElement("a");return n.classList.add("je-block-link"),n}},{key:"getBlockLinkHolder",value:function(){return document.createElement("div")}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"createMediaLink",value:function(n,u,a){n.appendChild(u),a.classList.add("je-media"),n.appendChild(a)}},{key:"createImageLink",value:function(n,u,a){n.appendChild(u),u.appendChild(a)}},{key:"getFirstTab",value:function(n){return n.firstChild.firstChild}},{key:"getInputGroup",value:function(n,u){}},{key:"cleanText",value:function(n){var u=document.createElement("div");return u.innerHTML=n,u.textContent||u.innerText}},{key:"getDropZone",value:function(n){var u=document.createElement("div");return u.setAttribute("data-text",n),u.classList.add("je-dropzone"),u}},{key:"getUploadPreview",value:function(n,u,a){var s=document.createElement("div");if(s.classList.add("je-upload-preview"),n.mimeType.substr(0,5)==="image"){var t=document.createElement("img");t.src=a,s.appendChild(t)}var e=document.createElement("div");e.innerHTML+="<strong>Name:</strong> ".concat(n.name,"<br><strong>Type:</strong> ").concat(n.type,"<br><strong>Size:</strong> ").concat(n.formattedSize),s.appendChild(e),s.appendChild(u);var o=document.createElement("div");return o.style.clear="left",s.appendChild(o),s}},{key:"getProgressBar",value:function(){var n=document.createElement("progress");return n.setAttribute("max",100),n.setAttribute("value",0),n}},{key:"updateProgressBar",value:function(n,u){n&&n.setAttribute("value",u)}},{key:"updateProgressBarUnknown",value:function(n){n&&n.removeAttribute("value")}}],p&&Ys(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}();function ti(l){return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ti(l)}function Ks(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ti(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ti(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ti(u)==="symbol"?u:String(u)),n)}var u}function vn(){return vn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Or(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},vn.apply(this,arguments)}function Ko(l,r){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Ko(l,r)}function Or(l){return Or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Or(l)}var ba=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Ko(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Or(n);if(u){var o=Or(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ti(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getFormInputLabel",value:function(t,e){var o=vn(Or(s.prototype),"getFormInputLabel",this).call(this,t,e);return o.classList.add("je-form-input-label"),o}},{key:"getFormInputDescription",value:function(t){var e=vn(Or(s.prototype),"getFormInputDescription",this).call(this,t);return e.classList.add("je-form-input-label"),e}},{key:"getIndentedPanel",value:function(){var t=vn(Or(s.prototype),"getIndentedPanel",this).call(this);return t.classList.add("je-indented-panel"),t}},{key:"getTopIndentedPanel",value:function(){return this.getIndentedPanel()}},{key:"getChildEditorHolder",value:function(){var t=vn(Or(s.prototype),"getChildEditorHolder",this).call(this);return t.classList.add("je-child-editor-holder"),t}},{key:"getHeaderButtonHolder",value:function(){var t=this.getButtonHolder();return t.classList.add("je-header-button-holder"),t}},{key:"getTable",value:function(){var t=vn(Or(s.prototype),"getTable",this).call(this);return t.classList.add("je-table"),t}},{key:"addInputError",value:function(t,e){var o=this.closest(t,".form-control")||t.controlgroup;t.errmsg?t.errmsg.style.display="block":(t.errmsg=document.createElement("div"),t.errmsg.setAttribute("class","errmsg"),t.errmsg.style=t.errmsg.style||{},t.errmsg.style.color="red",o.appendChild(t.errmsg)),t.errmsg.innerHTML="",t.errmsg.appendChild(document.createTextNode(e))}},{key:"removeInputError",value:function(t){t.style&&(t.style.borderColor=""),t.errmsg&&(t.errmsg.style.display="none")}}])&&Ks(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function ei(l){return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ei(l)}function Zs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ei(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ei(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ei(u)==="symbol"?u:String(u)),n)}var u}function bn(){return bn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Cr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},bn.apply(this,arguments)}function Zo(l,r){return Zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Zo(l,r)}function Cr(l){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cr(l)}ba.rules={".je-form-input-label":"display:block;margin-bottom:3px;font-weight:bold",".je-form-input-description":"display:inline-block;margin:0;font-size:0.8em;font-style:italic",".je-indented-panel":"padding:5px;margin:10px;border-radius:3px;border:1px%20solid%20%23ddd",".je-child-editor-holder":"margin-bottom:8px",".je-header-button-holder":"display:inline-block;margin-left:10px;font-size:0.8em;vertical-align:middle",".je-table":"margin-bottom:5px;border-bottom:1px%20solid%20%23ccc",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var ga=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Zo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Cr(n);if(u){var o=Cr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ei(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getSelectInput",value:function(t,e){var o=bn(Cr(s.prototype),"getSelectInput",this).call(this,t);return o.classList.add("form-control"),o}},{key:"setGridColumnSize",value:function(t,e,o){t.classList.add("col-md-".concat(e)),o&&t.classList.add("col-md-offset-".concat(o))}},{key:"afterInputReady",value:function(t){if(!t.controlgroup&&(t.controlgroup=this.closest(t,".form-group"),this.closest(t,".compact")&&(t.controlgroup.style.marginBottom=0),this.queuedInputErrorText)){var e=this.queuedInputErrorText;delete this.queuedInputErrorText,this.addInputError(t,e)}}},{key:"getTextareaInput",value:function(){var t=document.createElement("textarea");return t.classList.add("form-control"),t}},{key:"getRangeInput",value:function(t,e,o){return bn(Cr(s.prototype),"getRangeInput",this).call(this,t,e,o)}},{key:"getFormInputField",value:function(t){var e=bn(Cr(s.prototype),"getFormInputField",this).call(this,t);return t!=="checkbox"&&t!=="radio"&&e.classList.add("form-control"),e}},{key:"getFormControl",value:function(t,e,o,c){var h=document.createElement("div");return!t||e.type!=="checkbox"&&e.type!=="radio"?(h.classList.add("form-group"),t&&(t.classList.add("control-label"),h.appendChild(t),c&&t.appendChild(c)),h.appendChild(e)):(h.classList.add(e.type),c&&t.appendChild(c),t.insertBefore(e,t.firstChild),h.appendChild(t)),o&&h.appendChild(o),h}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("well","well-sm"),t.style.paddingBottom=0,t}},{key:"getInfoButton",value:function(t){var e=document.createElement("span");e.classList.add("glyphicon","glyphicon-info-sign","pull-right"),e.style.padding=".25rem",e.style.position="relative",e.style.display="inline-block";var o=document.createElement("span");return o.style["font-family"]="sans-serif",o.style.visibility="hidden",o.style["background-color"]="rgba(50, 50, 50, .75)",o.style.margin="0 .25rem",o.style.color="#FAFAFA",o.style.padding=".5rem 1rem",o.style["border-radius"]=".25rem",o.style.width="25rem",o.style.position="absolute",o.innerText=t,e.onmouseover=function(){o.style.visibility="visible"},e.onmouseleave=function(){o.style.visibility="hidden"},e.appendChild(o),e}},{key:"getFormInputDescription",value:function(t){var e=document.createElement("p");return e.classList.add("help-block"),window.DOMPurify?e.innerHTML=window.DOMPurify.sanitize(t):e.textContent=this.cleanText(t),e}},{key:"getHeaderButtonHolder",value:function(){var t=this.getButtonHolder();return t.style.marginLeft="10px",t}},{key:"getButtonHolder",value:function(){var t=document.createElement("span");return t.classList.add("btn-group"),t}},{key:"getButton",value:function(t,e,o){var c=bn(Cr(s.prototype),"getButton",this).call(this,t,e,o);return c.classList.add("btn","btn-default"),c}},{key:"getTableContainer",value:function(){var t=bn(Cr(s.prototype),"getTableContainer",this).call(this);return t.classList.add("table-responsive"),t}},{key:"getTable",value:function(){var t=document.createElement("table");return t.classList.add("table","table-bordered"),t.style.width="auto",t.style.maxWidth="none",t}},{key:"addInputError",value:function(t,e){t.controlgroup?(t.controlgroup.classList.add("has-error"),t.errmsg?t.errmsg.style.display="":(t.errmsg=document.createElement("p"),t.errmsg.classList.add("help-block","errormsg"),t.controlgroup.appendChild(t.errmsg)),t.errmsg.textContent=e):this.queuedInputErrorText=e}},{key:"removeInputError",value:function(t){t.controlgroup||delete this.queuedInputErrorText,t.errmsg&&(t.errmsg.style.display="none",t.controlgroup.classList.remove("has-error"))}},{key:"getTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.innerHTML="<ul class='col-md-2 nav nav-pills nav-stacked' id='".concat(e,"' role='tablist'></ul><div class='col-md-10 tab-content active well well-small' id='").concat(e,"'></div>"),o}},{key:"getTopTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.innerHTML="<ul class='nav nav-tabs' id='".concat(e,"' role='tablist'></ul><div class='tab-content active well well-small' id='").concat(e,"'></div>"),o}},{key:"getTab",value:function(t,e){var o=document.createElement("li");o.setAttribute("role","presentation");var c=document.createElement("a");return c.setAttribute("href","#".concat(e)),c.appendChild(t),c.setAttribute("aria-controls",e),c.setAttribute("role","tab"),c.setAttribute("data-toggle","tab"),o.appendChild(c),o}},{key:"getTopTab",value:function(t,e){var o=document.createElement("li");o.setAttribute("role","presentation");var c=document.createElement("a");return c.setAttribute("href","#".concat(e)),c.appendChild(t),c.setAttribute("aria-controls",e),c.setAttribute("role","tab"),c.setAttribute("data-toggle","tab"),o.appendChild(c),o}},{key:"getTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"getTopTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"markTabActive",value:function(t){t.tab.classList.add("active"),t.rowPane!==void 0?t.rowPane.classList.add("active"):t.container.classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.classList.remove("active"),t.rowPane!==void 0?t.rowPane.classList.remove("active"):t.container.classList.remove("active")}},{key:"getProgressBar",value:function(){var t=document.createElement("div");t.classList.add("progress");var e=document.createElement("div");return e.classList.add("progress-bar"),e.setAttribute("role","progressbar"),e.setAttribute("aria-valuenow",0),e.setAttribute("aria-valuemin",0),e.setAttribute("aria-valuenax",100),e.innerHTML="".concat(0,"%"),t.appendChild(e),t}},{key:"updateProgressBar",value:function(t,e){if(t){var o=t.firstChild,c="".concat(e,"%");o.setAttribute("aria-valuenow",e),o.style.width=c,o.innerHTML=c}}},{key:"updateProgressBarUnknown",value:function(t){if(t){var e=t.firstChild;t.classList.add("progress","progress-striped","active"),e.removeAttribute("aria-valuenow"),e.style.width="100%",e.innerHTML=""}}},{key:"getInputGroup",value:function(t,e){if(t){var o=document.createElement("div");o.classList.add("input-group"),o.appendChild(t);var c=document.createElement("div");c.classList.add("input-group-btn"),o.appendChild(c);for(var h=0;h<e.length;h++)c.appendChild(e[h]);return o}}}])&&Zs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function ri(l){return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ri(l)}function Gs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ri(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ri(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ri(u)==="symbol"?u:String(u)),n)}var u}function gn(){return gn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Sr(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},gn.apply(this,arguments)}function Go(l,r){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Go(l,r)}function Sr(l){return Sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sr(l)}ga.rules={},R(3843);var Qs={disable_theme_rules:!1,input_size:"normal",custom_forms:!1,object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"},wa=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Go(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Sr(n);if(u){var o=Sr(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ri(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t){return function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t,Qs)}return r=s,(p=[{key:"getSelectInput",value:function(t,e){var o=gn(Sr(s.prototype),"getSelectInput",this).call(this,t);return o.classList.add("form-control"),this.options.custom_forms===!1?(this.options.input_size==="small"&&o.classList.add("form-control-sm"),this.options.input_size==="large"&&o.classList.add("form-control-lg")):(o.classList.remove("form-control"),o.classList.add("custom-select"),this.options.input_size==="small"&&o.classList.add("custom-select-sm"),this.options.input_size==="large"&&o.classList.add("custom-select-lg")),o}},{key:"getContainer",value:function(){var t=document.createElement("div");return this.options.object_indent||t.classList.add("je-noindent"),t}},{key:"setGridColumnSize",value:function(t,e,o){t.classList.add("col-md-".concat(e)),o&&t.classList.add("offset-md-".concat(o))}},{key:"afterInputReady",value:function(t){if(!t.controlgroup){var e=t.name;t.id=e;var o=t.parentNode.parentNode.getElementsByTagName("label")[0];o&&(o.htmlFor=e),t.controlgroup=this.closest(t,".form-group")}}},{key:"getTextareaInput",value:function(){var t=document.createElement("textarea");return t.classList.add("form-control"),this.options.input_size==="small"&&t.classList.add("form-control-sm"),this.options.input_size==="large"&&t.classList.add("form-control-lg"),t}},{key:"getRangeInput",value:function(t,e,o){var c=gn(Sr(s.prototype),"getRangeInput",this).call(this,t,e,o);return this.options.custom_forms===!0&&(c.classList.remove("form-control"),c.classList.add("custom-range")),c}},{key:"getStepperButtons",value:function(t){var e=document.createElement("div"),o=document.createElement("div"),c=document.createElement("div"),h=document.createElement("button");h.setAttribute("type","button");var f=document.createElement("button");f.setAttribute("type","button"),e.appendChild(o),e.appendChild(t),e.appendChild(c),o.appendChild(h),c.appendChild(f),e.classList.add("input-group"),o.classList.add("input-group-prepend"),c.classList.add("input-group-append"),h.classList.add("btn"),h.classList.add("btn-secondary"),h.classList.add("stepper-down"),f.classList.add("btn"),f.classList.add("btn-secondary"),f.classList.add("stepper-up"),t.getAttribute("readonly")&&(h.setAttribute("disabled",!0),f.setAttribute("disabled",!0)),h.textContent="-",f.textContent="+";var _=function(nt,ut){nt.value=Number(ut||nt.value),nt.setAttribute("initialized","1")},T=t.getAttribute("min"),Y=t.getAttribute("max");return t.addEventListener("change",function(){t.getAttribute("initialized")||t.setAttribute("initialized","1")}),h.addEventListener("click",function(){t.getAttribute("initialized")?T?Number(t.value)>Number(T)&&t.stepDown():t.stepDown():_(t,T),w(t,"change")}),f.addEventListener("click",function(){t.getAttribute("initialized")?Y?Number(t.value)<Number(Y)&&t.stepUp():t.stepUp():_(t,T),w(t,"change")}),e}},{key:"getFormInputField",value:function(t){var e=gn(Sr(s.prototype),"getFormInputField",this).call(this,t);return t!=="checkbox"&&t!=="radio"&&t!=="file"&&(e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg")),t==="file"&&e.classList.add("form-control-file"),e}},{key:"getFormControl",value:function(t,e,o,c){var h=document.createElement("div");if(h.classList.add("form-group"),!t||e.type!=="checkbox"&&e.type!=="radio")t&&(h.appendChild(t),c&&h.appendChild(c)),h.appendChild(e);else{var f=document.createElement("div");this.options.custom_forms===!1?(f.classList.add("form-check"),e.classList.add("form-check-input"),t.classList.add("form-check-label")):(f.classList.add("custom-control"),e.classList.add("custom-control-input"),t.classList.add("custom-control-label"),e.type==="checkbox"?f.classList.add("custom-checkbox"):f.classList.add("custom-radio"));var _=(Date.now()*Math.random()).toFixed(0);e.setAttribute("id",_),t.setAttribute("for",_),f.appendChild(e),f.appendChild(t),c&&f.appendChild(c),h.appendChild(f)}return o&&h.appendChild(o),h}},{key:"getInfoButton",value:function(t){var e=document.createElement("button");e.type="button",e.classList.add("ml-3","jsoneditor-twbs4-text-button"),e.setAttribute("data-toggle","tooltip"),e.setAttribute("data-placement","auto"),e.title=t;var o=document.createTextNode("ⓘ");return e.appendChild(o),this.options.tooltip==="bootstrap"?window.jQuery&&window.jQuery().tooltip?window.jQuery(e).tooltip():console.warn("Could not find popper jQuery plugin of Bootstrap."):this.options.tooltip==="css"&&e.classList.add("je-tooltip"),e}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getMultiCheckboxHolder",value:function(t,e,o,c){var h=document.createElement("div");h.classList.add("form-group"),e&&(h.appendChild(e),c&&e.appendChild(c));var f=document.createElement("div");return Object.values(t).forEach(function(_){var T=_.firstChild;f.appendChild(T)}),h.appendChild(f),o&&h.appendChild(o),h}},{key:"getFormRadio",value:function(t){var e=this.getFormInputField("radio");for(var o in t)e.setAttribute(o,t[o]);return this.options.custom_forms===!1?e.classList.add("form-check-input"):e.classList.add("custom-control-input"),e}},{key:"getFormRadioLabel",value:function(t,e){var o=document.createElement("label");return this.options.custom_forms===!1?o.classList.add("form-check-label"):o.classList.add("custom-control-label"),o.appendChild(document.createTextNode(t)),o}},{key:"getFormRadioControl",value:function(t,e,o){var c=document.createElement("div");return this.options.custom_forms===!1?c.classList.add("form-check"):c.classList.add("custom-control","custom-radio"),c.appendChild(e),c.appendChild(t),o&&(this.options.custom_forms===!1?c.classList.add("form-check-inline"):c.classList.add("custom-control-inline")),c}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("card","card-body","mb-3"),this.options.object_background&&t.classList.add(this.options.object_background),this.options.object_text&&t.classList.add(this.options.object_text),t}},{key:"getFormInputDescription",value:function(t){var e=document.createElement("small");return e.classList.add("form-text"),window.DOMPurify?e.innerHTML=window.DOMPurify.sanitize(t):e.textContent=this.cleanText(t),e}},{key:"getHeader",value:function(t,e){var o=document.createElement("h3");return o.classList.add("card-title"),o.classList.add("level-"+e),typeof t=="string"?o.textContent=t:o.appendChild(t),o.style.display="inline-block",o}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var t=document.createElement("span");return t.classList.add("btn-group"),t}},{key:"getFormButtonHolder",value:function(t){var e=this.getButtonHolder();return e.classList.add("d-block"),t==="center"?e.classList.add("text-center"):t==="right"&&e.classList.add("text-right"),e}},{key:"getButton",value:function(t,e,o){var c=gn(Sr(s.prototype),"getButton",this).call(this,t,e,o);return c.classList.add("btn","btn-secondary","btn-sm"),c}},{key:"getTableContainer",value:function(){var t=gn(Sr(s.prototype),"getTableContainer",this).call(this);return t.classList.add("table-responsive"),t}},{key:"getTable",value:function(){var t=document.createElement("table");return t.classList.add("table","table-sm"),this.options.table_border&&t.classList.add("table-bordered"),this.options.table_zebrastyle&&t.classList.add("table-striped"),t}},{key:"getErrorMessage",value:function(t){var e=document.createElement("div");return e.classList.add("alert","alert-danger"),e.setAttribute("role","alert"),e.appendChild(document.createTextNode(t)),e}},{key:"addInputError",value:function(t,e){t.controlgroup&&(t.controlgroup.classList.add("is-invalid"),t.errmsg||(t.errmsg=document.createElement("p"),t.errmsg.classList.add("invalid-feedback"),t.controlgroup.appendChild(t.errmsg),t.errmsg.style.display="block"),t.errmsg.style.display="block",t.errmsg.textContent=e)}},{key:"removeInputError",value:function(t){t.errmsg&&(t.errmsg.style.display="none",t.controlgroup.classList.remove("is-invalid"))}},{key:"getTabHolder",value:function(t){var e=document.createElement("div"),o=t===void 0?"":t;return e.innerHTML="<div class='col-md-2' id='".concat(o,"'><ul class='nav flex-column nav-pills'></ul></div><div class='col-md-10'><div class='tab-content' id='").concat(o,"'></div></div>"),e.classList.add("row"),e}},{key:"addTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTabContentHolder",value:function(t){return t.children[1].children[0]}},{key:"getTopTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.classList.add("card"),o.innerHTML="<div class='card-header'><ul class='nav nav-tabs card-header-tabs' id='".concat(e,"'></ul></div><div class='card-body'><div class='tab-content' id='").concat(e,"'></div></div>"),o}},{key:"getTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item");var c=document.createElement("a");return c.classList.add("nav-link"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTopTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item");var c=document.createElement("a");return c.classList.add("nav-link"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"getTopTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"markTabActive",value:function(t){t.tab.firstChild.classList.add("active"),t.rowPane!==void 0?t.rowPane.classList.add("active"):t.container.classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.firstChild.classList.remove("active"),t.rowPane!==void 0?t.rowPane.classList.remove("active"):t.container.classList.remove("active")}},{key:"insertBasicTopTab",value:function(t,e){e.children[0].children[0].insertBefore(t,e.children[0].children[0].firstChild)}},{key:"addTopTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTopTabContentHolder",value:function(t){return t.children[1].children[0]}},{key:"getFirstTab",value:function(t){return t.firstChild.firstChild.firstChild}},{key:"getProgressBar",value:function(){var t=document.createElement("div");t.classList.add("progress");var e=document.createElement("div");return e.classList.add("progress-bar"),e.setAttribute("role","progressbar"),e.setAttribute("aria-valuenow",0),e.setAttribute("aria-valuemin",0),e.setAttribute("aria-valuenax",100),e.innerHTML="".concat(0,"%"),t.appendChild(e),t}},{key:"updateProgressBar",value:function(t,e){if(t){var o=t.firstChild,c="".concat(e,"%");o.setAttribute("aria-valuenow",e),o.style.width=c,o.innerHTML=c}}},{key:"updateProgressBarUnknown",value:function(t){if(t){var e=t.firstChild;t.classList.add("progress","progress-striped","active"),e.removeAttribute("aria-valuenow"),e.style.width="100%",e.innerHTML=""}}},{key:"getBlockLink",value:function(){var t=document.createElement("a");return t.classList.add("mb-3","d-inline-block"),t}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"getInputGroup",value:function(t,e){if(t){var o=document.createElement("div");o.classList.add("input-group"),o.appendChild(t);var c=document.createElement("div");c.classList.add("input-group-append"),o.appendChild(c);for(var h=0;h<e.length;h++)e[h].classList.remove("mr-2","btn-secondary"),e[h].classList.add("btn-outline-secondary"),c.appendChild(e[h]);return o}}}])&&Gs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function ni(l){return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ni(l)}function Xs(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ni(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ni(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ni(u)==="symbol"?u:String(u)),n)}var u}function wn(){return wn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Er(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},wn.apply(this,arguments)}function Qo(l,r){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Qo(l,r)}function Er(l){return Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Er(l)}wa.rules={".jsoneditor-twbs4-text-button":"background:none;padding:0;border:0;color:currentColor","td > .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var tl={disable_theme_rules:!1,input_size:"normal",object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"},_a=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Qo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Er(n);if(u){var o=Er(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ni(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t){return function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t,tl)}return r=s,(p=[{key:"getSelectInput",value:function(t,e){var o=wn(Er(s.prototype),"getSelectInput",this).call(this,t);return o.classList.add("form-control"),o.classList.add("form-select"),this.options.input_size==="small"&&o.classList.add("form-control-sm"),this.options.input_size==="large"&&o.classList.add("form-control-lg"),o}},{key:"getContainer",value:function(){var t=document.createElement("div");return this.options.object_indent||t.classList.add("je-noindent"),t}},{key:"setGridColumnSize",value:function(t,e,o){t.classList.add("col-md-".concat(e)),o&&t.classList.add("offset-md-".concat(o))}},{key:"afterInputReady",value:function(t){if(!t.controlgroup){var e=t.name;t.id=e;var o=t.parentNode.parentNode.getElementsByTagName("label")[0];o&&(o.classList.add("form-label"),o.htmlFor=e),t.controlgroup=this.closest(t,".form-group")}}},{key:"getTextareaInput",value:function(){var t=document.createElement("textarea");return t.classList.add("form-control"),this.options.input_size==="small"&&t.classList.add("form-control-sm"),this.options.input_size==="large"&&t.classList.add("form-control-lg"),t}},{key:"getRangeInput",value:function(t,e,o){var c=wn(Er(s.prototype),"getRangeInput",this).call(this,t,e,o);return c.classList.remove("form-control"),c.classList.add("form-range"),c}},{key:"getStepperButtons",value:function(t){var e=document.createElement("div"),o=document.createElement("button");o.setAttribute("type","button");var c=document.createElement("button");c.setAttribute("type","button"),e.appendChild(o),e.appendChild(t),e.appendChild(c),e.classList.add("input-group"),o.classList.add("btn"),o.classList.add("btn-secondary"),o.classList.add("stepper-down"),c.classList.add("btn"),c.classList.add("btn-secondary"),c.classList.add("stepper-up"),t.getAttribute("readonly")&&(o.setAttribute("disabled",!0),c.setAttribute("disabled",!0)),o.textContent="-",c.textContent="+";var h=function(T,Y){T.value=Number(Y||T.value),T.setAttribute("initialized","1")},f=t.getAttribute("min"),_=t.getAttribute("max");return t.addEventListener("change",function(){t.getAttribute("initialized")||t.setAttribute("initialized","1")}),o.addEventListener("click",function(){t.getAttribute("initialized")?f?Number(t.value)>Number(f)&&t.stepDown():t.stepDown():h(t,f),w(t,"change")}),c.addEventListener("click",function(){t.getAttribute("initialized")?_?Number(t.value)<Number(_)&&t.stepUp():t.stepUp():h(t,f),w(t,"change")}),e}},{key:"getFormInputField",value:function(t){var e=wn(Er(s.prototype),"getFormInputField",this).call(this,t);return t!=="checkbox"&&t!=="radio"&&(e.classList.add("form-control"),this.options.input_size==="small"&&e.classList.add("form-control-sm"),this.options.input_size==="large"&&e.classList.add("form-control-lg")),e}},{key:"getFormControl",value:function(t,e,o,c){var h=document.createElement("div");if(h.classList.add("form-group"),!t||e.type!=="checkbox"&&e.type!=="radio")t&&(t.classList.add("form-label"),h.appendChild(t),c&&h.appendChild(c)),h.appendChild(e);else{var f=document.createElement("div");f.classList.add("form-check"),e.classList.add("form-check-input"),t.classList.add("form-check-label");var _=(Date.now()*Math.random()).toFixed(0);e.setAttribute("id",_),t.setAttribute("for",_),f.appendChild(e),f.appendChild(t),c&&f.appendChild(c),h.appendChild(f)}return o&&h.appendChild(o),h}},{key:"getInfoButton",value:function(t){var e=document.createElement("button");e.type="button",e.classList.add("ms-3","jsoneditor-twbs5-text-button"),e.setAttribute("data-toggle","tooltip"),e.setAttribute("data-placement","auto"),e.title=t;var o=document.createTextNode("ⓘ");return e.appendChild(o),this.options.tooltip==="bootstrap"?window.jQuery&&window.jQuery().tooltip?window.jQuery(e).tooltip():console.warn("Could not find popper jQuery plugin of Bootstrap."):this.options.tooltip==="css"&&e.classList.add("je-tooltip"),e}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getMultiCheckboxHolder",value:function(t,e,o,c){var h=document.createElement("div");h.classList.add("form-group"),e&&(h.appendChild(e),c&&e.appendChild(c));var f=document.createElement("div");return Object.values(t).forEach(function(_){var T=_.firstChild;f.appendChild(T)}),h.appendChild(f),o&&h.appendChild(o),h}},{key:"getFormRadio",value:function(t){var e=this.getFormInputField("radio");for(var o in t)e.setAttribute(o,t[o]);return e.classList.add("form-check-input"),e}},{key:"getFormRadioLabel",value:function(t,e){var o=document.createElement("label");return o.classList.add("form-check-label"),o.appendChild(document.createTextNode(t)),o}},{key:"getFormRadioControl",value:function(t,e,o){var c=document.createElement("div");return c.classList.add("form-check"),c.appendChild(e),c.appendChild(t),o&&c.classList.add("form-check-inline"),c}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("card","card-body","my-3"),this.options.object_background&&t.classList.add(this.options.object_background),this.options.object_text&&t.classList.add(this.options.object_text),t}},{key:"getFormInputDescription",value:function(t){var e=document.createElement("small");return e.classList.add("form-text"),e.classList.add("d-block"),window.DOMPurify?e.innerHTML=window.DOMPurify.sanitize(t):e.textContent=this.cleanText(t),e}},{key:"getHeader",value:function(t,e){var o=document.createElement("h3");return o.classList.add("card-title"),o.classList.add("level-"+e),typeof t=="string"?o.textContent=t:o.appendChild(t),o.style.display="inline-block",o}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var t=document.createElement("span");return t.classList.add("btn-group"),t}},{key:"getFormButtonHolder",value:function(t){var e=this.getButtonHolder();return e.classList.add("d-block"),t==="center"?e.classList.add("text-center"):t==="right"&&e.classList.add("text-end"),e}},{key:"getButton",value:function(t,e,o){var c=wn(Er(s.prototype),"getButton",this).call(this,t,e,o);return c.classList.add("btn","btn-secondary","btn-sm"),c}},{key:"getTableContainer",value:function(){var t=wn(Er(s.prototype),"getTableContainer",this).call(this);return t.classList.add("table-responsive"),t}},{key:"getTable",value:function(){var t=document.createElement("table");return t.classList.add("table","table-sm"),this.options.table_border&&t.classList.add("table-bordered"),this.options.table_zebrastyle&&t.classList.add("table-striped"),t}},{key:"getErrorMessage",value:function(t){var e=document.createElement("div");return e.classList.add("alert","alert-danger"),e.setAttribute("role","alert"),e.appendChild(document.createTextNode(t)),e}},{key:"addInputError",value:function(t,e){t.controlgroup&&(t.controlgroup.classList.add("is-invalid"),t.errmsg||(t.errmsg=document.createElement("p"),t.errmsg.classList.add("invalid-feedback"),t.controlgroup.appendChild(t.errmsg),t.errmsg.style.display="block"),t.errmsg.style.display="block",t.errmsg.textContent=e)}},{key:"removeInputError",value:function(t){t.errmsg&&(t.errmsg.style.display="none",t.controlgroup.classList.remove("is-invalid"))}},{key:"getTabHolder",value:function(t){var e=document.createElement("div"),o=t===void 0?"":t;return e.innerHTML="<div class='col-md-2' id='".concat(o,"'><ul class='nav flex-column nav-pills'></ul></div><div class='col-md-10'><div class='tab-content' id='").concat(o,"'></div></div>"),e.classList.add("row"),e}},{key:"addTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTabContentHolder",value:function(t){return t.children[1].children[0]}},{key:"getTopTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.classList.add("card"),o.innerHTML="<div class='card-header'><ul class='nav nav-tabs card-header-tabs' id='".concat(e,"'></ul></div><div class='card-body'><div class='tab-content' id='").concat(e,"'></div></div>"),o}},{key:"getTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item");var c=document.createElement("a");return c.classList.add("nav-link"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTopTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item");var c=document.createElement("a");return c.classList.add("nav-link"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"getTopTabContent",value:function(){var t=document.createElement("div");return t.classList.add("tab-pane"),t.setAttribute("role","tabpanel"),t}},{key:"markTabActive",value:function(t){t.tab.firstChild.classList.add("active"),t.rowPane!==void 0?t.rowPane.classList.add("active"):t.container.classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.firstChild.classList.remove("active"),t.rowPane!==void 0?t.rowPane.classList.remove("active"):t.container.classList.remove("active")}},{key:"insertBasicTopTab",value:function(t,e){e.children[0].children[0].insertBefore(t,e.children[0].children[0].firstChild)}},{key:"addTopTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTopTabContentHolder",value:function(t){return t.children[1].children[0]}},{key:"getFirstTab",value:function(t){return t.firstChild.firstChild.firstChild}},{key:"getProgressBar",value:function(){var t=document.createElement("div");t.classList.add("progress");var e=document.createElement("div");return e.classList.add("progress-bar"),e.setAttribute("role","progressbar"),e.setAttribute("aria-valuenow",0),e.setAttribute("aria-valuemin",0),e.setAttribute("aria-valuenax",100),e.innerHTML="".concat(0,"%"),t.appendChild(e),t}},{key:"updateProgressBar",value:function(t,e){if(t){var o=t.firstChild,c="".concat(e,"%");o.setAttribute("aria-valuenow",e),o.style.width=c,o.innerHTML=c}}},{key:"updateProgressBarUnknown",value:function(t){if(t){var e=t.firstChild;t.classList.add("progress","progress-striped","active"),e.removeAttribute("aria-valuenow"),e.style.width="100%",e.innerHTML=""}}},{key:"getBlockLink",value:function(){var t=document.createElement("a");return t.classList.add("mb-3","d-inline-block"),t}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"getInputGroup",value:function(t,e){if(t){var o=document.createElement("div");o.classList.add("input-group"),o.appendChild(t);for(var c=0;c<e.length;c++)e[c].classList.remove("me-2","btn-secondary"),e[c].classList.add("btn-outline-secondary"),o.appendChild(e[c]);return o}}}])&&Xs(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function ii(l){return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ii(l)}function el(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ii(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ii(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ii(u)==="symbol"?u:String(u)),n)}var u}function oi(){return oi=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Ir(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},oi.apply(this,arguments)}function Xo(l,r){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},Xo(l,r)}function Ir(l){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ir(l)}_a.rules={".form-group":"margin-bottom:1rem",".form-text":"display:block",".jsoneditor-twbs5-text-button":"background:none;padding:0;border:0;color:currentColor","td > .form-group":"margin-bottom:0",".json-editor-btn-upload":"margin-top:1rem",".je-noindent .card":"padding:0;border:0",".je-tooltip:hover::before":"display:block;position:absolute;font-size:0.8em;color:%23fff;border-radius:0.2em;content:attr(title);background-color:%23000;margin-top:-2.5em;padding:0.3em",".je-tooltip:hover::after":"display:block;position:absolute;font-size:0.8em;color:%23fff",".select2-container--default .select2-selection--single":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__arrow":"height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".select2-container--default .select2-selection--single .select2-selection__rendered":"line-height:calc(1.5em%20%2B%200.75rem%20%2B%202px)",".selectize-control.form-control":"padding:0",".selectize-dropdown.form-control":"padding:0;height:auto",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var xa=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&Xo(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Ir(n);if(u){var o=Ir(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ii(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"getTable",value:function(){var t=oi(Ir(s.prototype),"getTable",this).call(this);return t.setAttribute("cellpadding",5),t.setAttribute("cellspacing",0),t}},{key:"getTableHeaderCell",value:function(t){var e=oi(Ir(s.prototype),"getTableHeaderCell",this).call(this,t);return e.classList.add("ui-state-active"),e.style.fontWeight="bold",e}},{key:"getTableCell",value:function(){var t=oi(Ir(s.prototype),"getTableCell",this).call(this);return t.classList.add("ui-widget-content"),t}},{key:"getHeaderButtonHolder",value:function(){var t=this.getButtonHolder();return t.style.marginLeft="10px",t.style.fontSize=".6em",t.style.display="inline-block",t}},{key:"getFormInputDescription",value:function(t){var e=this.getDescription(t);return e.style.marginLeft="10px",e.style.display="inline-block",e}},{key:"getFormControl",value:function(t,e,o,c){var h=oi(Ir(s.prototype),"getFormControl",this).call(this,t,e,o,c);return e.type==="checkbox"?(h.style.lineHeight="25px",h.style.padding="3px 0"):h.style.padding="4px 0 8px 0",h}},{key:"getDescription",value:function(t){var e=document.createElement("span");return e.style.fontSize=".8em",e.style.fontStyle="italic",window.DOMPurify?e.innerHTML=window.DOMPurify.sanitize(t):e.textContent=this.cleanText(t),e}},{key:"getButtonHolder",value:function(){var t=document.createElement("div");return t.classList.add("ui-buttonset"),t.style.fontSize=".7em",t}},{key:"getFormInputLabel",value:function(t,e){var o=document.createElement("label");return o.style.fontWeight="bold",o.style.display="block",o.textContent=t,e&&o.classList.add("required"),o}},{key:"getButton",value:function(t,e,o){var c=document.createElement("button");c.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),e&&!t?(c.classList.add("ui-button-icon-only"),e.classList.add("ui-button-icon-primary","ui-icon-primary"),c.appendChild(e)):e?(c.classList.add("ui-button-text-icon-primary"),e.classList.add("ui-button-icon-primary","ui-icon-primary"),c.appendChild(e)):c.classList.add("ui-button-text-only");var h=document.createElement("span");return h.classList.add("ui-button-text"),h.textContent=t||o||".",c.appendChild(h),c.setAttribute("title",o),c}},{key:"setButtonText",value:function(t,e,o,c){t.innerHTML="",t.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),o&&!e?(t.classList.add("ui-button-icon-only"),o.classList.add("ui-button-icon-primary","ui-icon-primary"),t.appendChild(o)):o?(t.classList.add("ui-button-text-icon-primary"),o.classList.add("ui-button-icon-primary","ui-icon-primary"),t.appendChild(o)):t.classList.add("ui-button-text-only");var h=document.createElement("span");h.classList.add("ui-button-text"),h.textContent=e||c||".",t.appendChild(h),t.setAttribute("title",c)}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("ui-widget-content","ui-corner-all"),t.style.padding="1em 1.4em",t.style.marginBottom="20px",t}},{key:"afterInputReady",value:function(t){if(!t.controls&&(t.controls=this.closest(t,".form-control"),this.queuedInputErrorText)){var e=this.queuedInputErrorText;delete this.queuedInputErrorText,this.addInputError(t,e)}}},{key:"addInputError",value:function(t,e){t.controls?(t.errmsg?t.errmsg.style.display="":(t.errmsg=document.createElement("div"),t.errmsg.classList.add("ui-state-error"),t.controls.appendChild(t.errmsg)),t.errmsg.textContent=e):this.queuedInputErrorText=e}},{key:"removeInputError",value:function(t){t.controls||delete this.queuedInputErrorText,t.errmsg&&(t.errmsg.style.display="none")}},{key:"markTabActive",value:function(t){t.tab.classList.remove("ui-widget-header"),t.tab.classList.add("ui-state-active"),t.rowPane!==void 0?t.rowPane.style.display="":t.container.style.display=""}},{key:"markTabInactive",value:function(t){t.tab.classList.add("ui-widget-header"),t.tab.classList.remove("ui-state-active"),t.rowPane!==void 0?t.rowPane.style.display="none":t.container.style.display="none"}}])&&el(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function ai(l){return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ai(l)}function rl(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ai(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ai(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ai(u)==="symbol"?u:String(u)),n)}var u}function ta(l,r){return ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},ta(l,r)}function so(l){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},so(l)}xa.rules={'div[data-schemaid="root"]:after':'position:relative;color:red;margin:10px 0;font-weight:600;display:block;width:100%;text-align:center;content:"This is an old JSON-Editor 1.x Theme and might not display elements correctly when used with the 2.x version"'};var ka=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&ta(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=so(n);if(u){var o=so(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(ai(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return r=s,(p=[{key:"addInputError",value:function(t,e){if(t.errmsg)t.errmsg.style.display="block";else{var o=this.closest(t,".form-control");t.errmsg=document.createElement("div"),t.errmsg.setAttribute("class","errmsg"),o.nodeName&&o.appendChild(t.errmsg)}t.errmsg.innerHTML="",t.errmsg.appendChild(document.createTextNode(e))}},{key:"removeInputError",value:function(t){t.style&&(t.style.borderColor=""),t.errmsg&&(t.errmsg.style.display="none")}}])&&rl(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function si(l){return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},si(l)}function nl(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(si(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(si(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),si(u)==="symbol"?u:String(u)),n)}var u}function We(){return We=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Re(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},We.apply(this,arguments)}function ea(l,r){return ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},ea(l,r)}function Re(l){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Re(l)}ka.rules={".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var il={disable_theme_rules:!1,label_bold:!0,align_bottom:!1,object_indent:!1,object_border:!1,table_border:!1,table_zebrastyle:!1,input_size:"normal"},ja=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&ea(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Re(n);if(u){var o=Re(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(si(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t){return function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t,il)}return r=s,(p=[{key:"setGridColumnSize",value:function(t,e,o){t.classList.add("col-".concat(e)),o&&t.classList.add("col-mx-auto")}},{key:"getGridContainer",value:function(){var t=document.createElement("div");return t.classList.add("container"),this.options.object_indent||t.classList.add("je-noindent"),t}},{key:"getGridRow",value:function(){var t=document.createElement("div");return t.classList.add("columns"),t}},{key:"getGridColumn",value:function(){var t=document.createElement("div");return t.classList.add("column"),this.options.align_bottom&&t.classList.add("je-align-bottom"),t}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("je-panel"),this.options.object_border&&t.classList.add("je-border"),t}},{key:"getTopIndentedPanel",value:function(){var t=document.createElement("div");return t.classList.add("je-panel-top"),this.options.object_border&&t.classList.add("je-border"),t}},{key:"getHeaderButtonHolder",value:function(){return this.getButtonHolder()}},{key:"getButtonHolder",value:function(){var t=We(Re(s.prototype),"getButtonHolder",this).call(this);return t.classList.add("btn-group"),t}},{key:"getFormButtonHolder",value:function(t){var e=We(Re(s.prototype),"getFormButtonHolder",this).call(this);return e.classList.remove("btn-group"),e.classList.add("d-block"),t==="center"?e.classList.add("text-center"):t==="right"?e.classList.add("text-right"):e.classList.add("text-left"),e}},{key:"getFormButton",value:function(t,e,o){var c=We(Re(s.prototype),"getFormButton",this).call(this,t,e,o);return c.classList.add("btn","btn-primary","mx-2","my-1"),this.options.input_size!=="small"&&c.classList.remove("btn-sm"),this.options.input_size==="large"&&c.classList.add("btn-lg"),c}},{key:"getButton",value:function(t,e,o){var c=We(Re(s.prototype),"getButton",this).call(this,t,e,o);return c.classList.add("btn","btn-sm","btn-primary","mr-2","my-1"),c}},{key:"getHeader",value:function(t,e){var o=document.createElement("h4");return typeof t=="string"?o.textContent=t:o.appendChild(t),o.style.display="inline-block",o}},{key:"getFormInputDescription",value:function(t){var e=We(Re(s.prototype),"getFormInputDescription",this).call(this,t);return e.classList.add("je-desc","hide-sm"),e}},{key:"getFormInputLabel",value:function(t,e){var o=We(Re(s.prototype),"getFormInputLabel",this).call(this,t,e);return this.options.label_bold&&o.classList.add("je-label"),o}},{key:"getCheckbox",value:function(){return this.getFormInputField("checkbox")}},{key:"getCheckboxLabel",value:function(t,e){var o=We(Re(s.prototype),"getCheckboxLabel",this).call(this,t,e),c=document.createElement("i");return c.classList.add("form-icon"),o.classList.add("form-checkbox","pr-0"),o.insertBefore(c,o.firstChild),o}},{key:"getFormCheckboxControl",value:function(t,e,o){return t.insertBefore(e,t.firstChild),o&&t.classList.add("form-inline"),t}},{key:"getMultiCheckboxHolder",value:function(t,e,o,c){return We(Re(s.prototype),"getMultiCheckboxHolder",this).call(this,t,e,o,c)}},{key:"getFormRadio",value:function(t){var e=this.getFormInputField("radio");for(var o in t)e.setAttribute(o,t[o]);return e}},{key:"getFormRadioLabel",value:function(t,e){var o=We(Re(s.prototype),"getFormRadioLabel",this).call(this,t,e),c=document.createElement("i");return c.classList.add("form-icon"),o.classList.add("form-radio"),o.insertBefore(c,o.firstChild),o}},{key:"getFormRadioControl",value:function(t,e,o){return t.insertBefore(e,t.firstChild),o&&t.classList.add("form-inline"),t}},{key:"getFormInputField",value:function(t){var e=We(Re(s.prototype),"getFormInputField",this).call(this,t);return["checkbox","radio"].includes(t)||e.classList.add("form-input"),e}},{key:"getRangeInput",value:function(t,e,o){var c=this.getFormInputField("range");return c.classList.add("slider"),c.classList.remove("form-input"),c.setAttribute("oninput",'this.setAttribute("value", this.value)'),c.setAttribute("min",t),c.setAttribute("max",e),c.setAttribute("step",o),c}},{key:"getRangeControl",value:function(t,e){var o=We(Re(s.prototype),"getRangeControl",this).call(this,t,e);return o.classList.add("text-center"),o}},{key:"getSelectInput",value:function(t,e){var o=We(Re(s.prototype),"getSelectInput",this).call(this,t);return o.classList.add("form-select"),o}},{key:"getTextareaInput",value:function(){var t=document.createElement("textarea");return t.classList.add("form-input"),t}},{key:"getFormControl",value:function(t,e,o,c){var h=document.createElement("div");return h.classList.add("form-group"),!t||e.type!=="checkbox"&&e.type!=="radio"?(t&&(t.classList.add("form-label"),h.appendChild(t),c&&t.appendChild(c)),h.appendChild(e)):(h.classList.add(e.type),c&&t.appendChild(c),t.insertBefore(e,t.firstChild),h.appendChild(t)),this.options.input_size==="small"?e.classList.add("input-sm","select-sm"):this.options.input_size==="large"&&e.classList.add("input-lg","select-lg"),e.type!=="checkbox"&&h.appendChild(e),o&&h.appendChild(o),h}},{key:"getInputGroup",value:function(t,e){if(t){var o=document.createElement("div");o.classList.add("input-group"),o.appendChild(t);for(var c=0;c<e.length;c++)e[c].classList.add("input-group-btn"),e[c].classList.remove("btn-sm","mr-2","my-1"),o.appendChild(e[c]);return o}}},{key:"getInfoButton",value:function(t){var e=document.createElement("div");e.classList.add("popover","popover-left","float-right");var o=document.createElement("button");o.classList.add("btn","btn-secondary","btn-info","btn-action","s-circle"),o.setAttribute("tabindex","-1"),e.appendChild(o);var c=document.createTextNode("I");o.appendChild(c);var h=document.createElement("div");h.classList.add("popover-container"),e.appendChild(h);var f=document.createElement("div");f.classList.add("card"),h.appendChild(f);var _=document.createElement("div");return _.classList.add("card-body"),_.innerHTML=t,f.appendChild(_),e}},{key:"getTable",value:function(){var t=We(Re(s.prototype),"getTable",this).call(this);return t.classList.add("table","table-scroll"),this.options.table_border&&t.classList.add("je-table-border"),this.options.table_zebrastyle&&t.classList.add("table-striped"),t}},{key:"getProgressBar",value:function(){var t=We(Re(s.prototype),"getProgressBar",this).call(this);return t.classList.add("progress"),t}},{key:"getTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.classList.add("columns"),o.innerHTML='<div class="column col-2"></div><div class="column col-10 content" id="'.concat(e,'"></div>'),o}},{key:"getTopTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.innerHTML='<ul class="tab"></ul><div class="content" id="'.concat(e,'"></div>'),o}},{key:"getTab",value:function(t,e){var o=document.createElement("a");return o.classList.add("btn","btn-secondary","btn-block"),o.setAttribute("href","#".concat(e)),o.appendChild(t),o}},{key:"getTopTab",value:function(t,e){var o=document.createElement("li");o.id=e,o.classList.add("tab-item");var c=document.createElement("a");return c.setAttribute("href","#".concat(e)),c.appendChild(t),o.appendChild(c),o}},{key:"markTabActive",value:function(t){t.tab.classList.add("active"),t.rowPane!==void 0?t.rowPane.style.display="":t.container.style.display=""}},{key:"markTabInactive",value:function(t){t.tab.classList.remove("active"),t.rowPane!==void 0?t.rowPane.style.display="none":t.container.style.display="none"}},{key:"afterInputReady",value:function(t){if(t.localName==="select"){if(t.classList.contains("selectized")){var e=t.nextSibling;e&&(e.classList.remove("form-select"),Array.from(e.querySelectorAll(".form-select")).forEach(function(c){c.classList.remove("form-select")}))}else if(t.classList.contains("select2-hidden-accessible")){var o=t.nextSibling;o&&o.querySelector(".select2-selection--single")&&o.classList.add("form-select")}}t.controlgroup||(t.controlgroup=this.closest(t,".form-group"),this.closest(t,".compact")&&(t.controlgroup.style.marginBottom=0))}},{key:"addInputError",value:function(t,e){t.controlgroup&&(t.controlgroup.classList.add("has-error"),t.errmsg||(t.errmsg=document.createElement("p"),t.errmsg.classList.add("form-input-hint"),t.controlgroup.appendChild(t.errmsg)),t.errmsg.classList.remove("d-hide"),t.errmsg.textContent=e)}},{key:"removeInputError",value:function(t){t.errmsg&&(t.errmsg.classList.add("d-hide"),t.controlgroup.classList.remove("has-error"))}}])&&nl(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);function li(l){return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},li(l)}function ol(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(li(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(li(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),li(u)==="symbol"?u:String(u)),n)}var u}function Je(){return Je=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,p){var n=function(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=Ae(a))!==null;);return a}(l,r);if(n){var u=Object.getOwnPropertyDescriptor(n,r);return u.get?u.get.call(arguments.length<3?l:p):u.value}},Je.apply(this,arguments)}function ra(l,r){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,n){return p.__proto__=n,p},ra(l,r)}function Ae(l){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ae(l)}ja.rules={"*":"--primary-color:%235755d9;--gray-color:%23bcc3ce;--light-color:%23fff",".slider:focus":"box-shadow:none","h4 > label + .btn-group":"margin-left:1rem",".text-right > button":"margin-right:0%20!important",".text-left > button":"margin-left:0%20!important",".property-selector":"font-size:0.7rem;font-weight:normal;max-height:260px%20!important;width:395px%20!important",".property-selector .form-checkbox":"margin:0",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"border-collapse:collapse",".table td":"padding:0.4rem%200.4rem",".mr-5":"margin-right:1rem%20!important","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23eee",".je-table-border td":"border:0.05rem%20solid%20%23dadee4%20!important",".btn-info":"font-size:0.5rem;font-weight:bold;height:0.8rem;padding:0.15rem%200;line-height:0.8;margin:0.3rem%200%200.3rem%200.1rem",".je-label + select":"min-width:5rem",".je-label":"font-weight:600",".btn-action.btn-info":"width:0.8rem",".je-border":"border:0.05rem%20solid%20%23dadee4",".je-panel":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit",".je-align-bottom":"margin-top:auto",".je-desc":"font-size:smaller;margin:0.2rem%200",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem;border:3px%20solid%20white;box-shadow:0px%200px%208px%20rgba(0%2C%200%2C%200%2C%200.3);box-sizing:border-box",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red",".columns .container.je-noindent":"padding-left:0;padding-right:0",".selectize-control.multi .item":"background:var(--primary-color)%20!important",".select2-container--default .select2-selection--single .select2-selection__arrow":"display:none",".select2-container--default .select2-selection--single":"border:none",".select2-container .select2-selection--single .select2-selection__rendered":"padding:0",".select2-container .select2-search--inline .select2-search__field":"margin-top:0",".select2-container--default.select2-container--focus .select2-selection--multiple":"border:0.05rem%20solid%20var(--gray-color)",".select2-container--default .select2-selection--multiple .select2-selection__choice":"margin:0.4rem%200.2rem%200.2rem%200;padding:2px%205px;background-color:var(--primary-color);color:var(--light-color)",".select2-container--default .select2-search--inline .select2-search__field":"line-height:normal",".choices":"margin-bottom:auto",".choices__list--multiple .choices__item":"border:none;background-color:var(--primary-color);color:var(--light-color)",".choices[data-type*='select-multiple'] .choices__button":"border-left:0.05rem%20solid%20%232826a6",".choices__inner":"font-size:inherit;min-height:20px;padding:4px%207.5px%204px%203.75px",".choices[data-type*='select-one'] .choices__inner":"padding-bottom:4px",".choices__list--dropdown .choices__item":"font-size:inherit"};var al={disable_theme_rules:!1,label_bold:!1,object_panel_default:!0,object_indent:!0,object_border:!1,table_border:!1,table_hdiv:!1,table_zebrastyle:!1,input_size:"small",enable_compact:!1},Oa=function(l){(function(t,e){if(typeof e!="function"&&e!==null)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&&ra(t,e)})(s,l);var r,p,n,u,a=(n=s,u=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var t,e=Ae(n);if(u){var o=Ae(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return function(c,h){if(h&&(li(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}(c)}(this,t)});function s(t){return function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t,al)}return r=s,(p=[{key:"getGridContainer",value:function(){var t=document.createElement("div");return t.classList.add("flex","flex-col","w-full"),this.options.object_indent||t.classList.add("je-noindent"),t}},{key:"getGridRow",value:function(){var t=document.createElement("div");return t.classList.add("flex","flex-wrap","w-full"),t}},{key:"getGridColumn",value:function(){var t=document.createElement("div");return t.classList.add("flex","flex-col"),t}},{key:"setGridColumnSize",value:function(t,e,o){e>0&&e<12?t.classList.add("w-".concat(e,"/12"),"px-1"):t.classList.add("w-full","px-1"),o&&(t.style.marginLeft="".concat(100/12*o,"%"))}},{key:"getIndentedPanel",value:function(){var t=document.createElement("div");return this.options.object_panel_default?t.classList.add("w-full","p-1"):t.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&t.classList.add("je-border"),t}},{key:"getTopIndentedPanel",value:function(){var t=document.createElement("div");return this.options.object_panel_default?t.classList.add("w-full","m-2"):t.classList.add("relative","flex","flex-col","rounded","break-words","border","bg-white","border-0","border-blue-400","p-1","shadow-md"),this.options.object_border&&t.classList.add("je-border"),t}},{key:"getTitle",value:function(){return this.translateProperty(this.schema.title)}},{key:"getSelectInput",value:function(t,e){var o=Je(Ae(s.prototype),"getSelectInput",this).call(this,t);return e?o.classList.add("form-multiselect","block","py-0","h-auto","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"):o.classList.add("form-select","block","py-0","h-6","w-full","px-1","text-sm","text-black","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&o.classList.add("compact"),o}},{key:"afterInputReady",value:function(t){t.controlgroup||(t.controlgroup=this.closest(t,".form-group"),this.closest(t,".compact")&&(t.controlgroup.style.marginBottom=0))}},{key:"getTextareaInput",value:function(){var t=Je(Ae(s.prototype),"getTextareaInput",this).call(this);return t.classList.add("block","w-full","px-1","text-sm","leading-normal","bg-white","text-black","border","border-grey","rounded"),this.options.enable_compact&&t.classList.add("compact"),t.style.height=0,t}},{key:"getRangeInput",value:function(t,e,o){var c=this.getFormInputField("range");return c.classList.add("slider"),this.options.enable_compact&&c.classList.add("compact"),c.setAttribute("oninput",'this.setAttribute("value", this.value)'),c.setAttribute("min",t),c.setAttribute("max",e),c.setAttribute("step",o),c}},{key:"getRangeControl",value:function(t,e){var o=Je(Ae(s.prototype),"getRangeControl",this).call(this,t,e);return o.classList.add("text-center","text-black"),o}},{key:"getCheckbox",value:function(){var t=this.getFormInputField("checkbox");return t.classList.add("form-checkbox","text-red-600"),t}},{key:"getCheckboxLabel",value:function(t,e){var o=Je(Ae(s.prototype),"getCheckboxLabel",this).call(this,t,e);return o.classList.add("inline-flex","items-center"),o}},{key:"getFormCheckboxControl",value:function(t,e,o){return t.insertBefore(e,t.firstChild),o&&t.classList.add("inline-flex flex-row"),t}},{key:"getMultiCheckboxHolder",value:function(t,e,o,c){var h=Je(Ae(s.prototype),"getMultiCheckboxHolder",this).call(this,t,e,o,c);return h.classList.add("inline-flex","flex-col"),h}},{key:"getFormRadio",value:function(t){var e=this.getFormInputField("radio");for(var o in e.classList.add("form-radio","text-red-600"),t)e.setAttribute(o,t[o]);return e}},{key:"getFormRadioLabel",value:function(t,e){var o=Je(Ae(s.prototype),"getFormRadioLabel",this).call(this,t,e);return o.classList.add("inline-flex","items-center","mr-2"),o}},{key:"getFormRadioControl",value:function(t,e,o){return t.insertBefore(e,t.firstChild),o&&t.classList.add("form-radio"),t}},{key:"getRadioHolder",value:function(t,e,o,c,h){var f=Je(Ae(s.prototype),"getRadioHolder",this).call(this,e,o,c,h);return t.options.layout==="h"?f.classList.add("inline-flex","flex-row"):f.classList.add("inline-flex","flex-col"),f}},{key:"getFormInputLabel",value:function(t,e){var o=Je(Ae(s.prototype),"getFormInputLabel",this).call(this,t,e);return this.options.label_bold?o.classList.add("font-bold"):o.classList.add("required"),o}},{key:"getFormInputField",value:function(t){var e=Je(Ae(s.prototype),"getFormInputField",this).call(this,t);return["checkbox","radio"].includes(t)||e.classList.add("block","w-full","px-1","text-black","text-sm","leading-normal","bg-white","border","border-grey","rounded"),this.options.enable_compact&&e.classList.add("compact"),e}},{key:"getFormInputDescription",value:function(t){var e=document.createElement("p");return e.classList.add("block","mt-1","text-xs"),window.DOMPurify?e.innerHTML=window.DOMPurify.sanitize(t):e.textContent=this.cleanText(t),e}},{key:"getFormControl",value:function(t,e,o,c){var h=document.createElement("div");return h.classList.add("form-group","mb-1","w-full"),t&&(t.classList.add("text-xs"),e.type==="checkbox"&&(e.classList.add("form-checkbox","text-xs","text-red-600","mr-1"),t.classList.add("items-center","flex"),t=this.getFormCheckboxControl(t,e,!1,c)),e.type==="radio"&&(e.classList.add("form-radio","text-red-600","mr-1"),t.classList.add("items-center","flex"),t=this.getFormRadioControl(t,e,!1,c)),h.appendChild(t),!["checkbox","radio"].includes(e.type)&&c&&h.appendChild(c)),["checkbox","radio"].includes(e.type)||(this.options.input_size==="small"?e.classList.add("text-xs"):this.options.input_size==="normal"?e.classList.add("text-base"):this.options.input_size==="large"&&e.classList.add("text-xl"),h.appendChild(e)),o&&h.appendChild(o),h}},{key:"getHeaderButtonHolder",value:function(){var t=this.getButtonHolder();return t.classList.add("text-sm"),t}},{key:"getButtonHolder",value:function(){var t=document.createElement("div");return t.classList.add("flex","relative","inline-flex","align-middle"),t}},{key:"getButton",value:function(t,e,o){var c=Je(Ae(s.prototype),"getButton",this).call(this,t,e,o);return c.classList.add("inline-block","align-middle","text-center","text-sm","bg-blue-700","text-white","py-1","pr-1","m-2","shadow","select-none","whitespace-no-wrap","rounded"),c}},{key:"getInfoButton",value:function(t){var e=document.createElement("a");e.classList.add("tooltips","float-right"),e.innerHTML="ⓘ";var o=document.createElement("span");return o.innerHTML=t,e.appendChild(o),e}},{key:"getTable",value:function(){var t=Je(Ae(s.prototype),"getTable",this).call(this);return this.options.table_border?t.classList.add("je-table-border"):t.classList.add("table","border","p-0"),t}},{key:"getTableRow",value:function(){var t=Je(Ae(s.prototype),"getTableRow",this).call(this);return this.options.table_border&&t.classList.add("je-table-border"),this.options.table_zebrastyle&&t.classList.add("je-table-zebra"),t}},{key:"getTableHeaderCell",value:function(t){var e=Je(Ae(s.prototype),"getTableHeaderCell",this).call(this,t);return this.options.table_border?e.classList.add("je-table-border"):this.options.table_hdiv?e.classList.add("je-table-hdiv"):e.classList.add("text-xs","border","p-0","m-0"),e}},{key:"getTableCell",value:function(){var t=Je(Ae(s.prototype),"getTableCell",this).call(this);return this.options.table_border?t.classList.add("je-table-border"):this.options.table_hdiv?t.classList.add("je-table-hdiv"):t.classList.add("border-0","p-0","m-0"),t}},{key:"addInputError",value:function(t,e){t.controlgroup&&(t.controlgroup.classList.add("has-error"),t.controlgroup.classList.add("text-red-600"),t.errmsg?t.errmsg.style.display="":(t.errmsg=document.createElement("p"),t.errmsg.classList.add("block","mt-1","text-xs","text-red"),t.controlgroup.appendChild(t.errmsg)),t.errmsg.textContent=e)}},{key:"removeInputError",value:function(t){t.errmsg&&(t.errmsg.style.display="none",t.controlgroup.classList.remove("text-red-600"),t.controlgroup.classList.remove("has-error"))}},{key:"getTabHolder",value:function(t){var e=document.createElement("div"),o=t===void 0?"":t;return e.innerHTML="<div class='w-2/12' id='".concat(o,"'><ul class='list-reset pl-0 mb-0'></ul></div><div class='w-10/12' id='").concat(o,"'></div>"),e.classList.add("flex"),e}},{key:"addTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTopTabHolder",value:function(t){var e=t===void 0?"":t,o=document.createElement("div");return o.innerHTML="<ul class='nav-tabs flex list-reset pl-0 mb-0 border-b border-grey-light' id='".concat(e,"'></ul><div class='p-6 block' id='").concat(e,"'></div>"),o}},{key:"getTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item","flex-col","text-center","text-white","bg-blue-500","shadow-md","border","p-2","mb-2","mr-2","hover:bg-blue-400","rounded");var c=document.createElement("a");return c.classList.add("nav-link","text-center"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTopTab",value:function(t,e){var o=document.createElement("li");o.classList.add("nav-item","flex","border-l","border-t","border-r");var c=document.createElement("a");return c.classList.add("nav-link","-mb-px","flex-row","text-center","bg-white","p-2","hover:bg-blue-400","rounded-t"),c.setAttribute("href","#".concat(e)),c.setAttribute("data-toggle","tab"),c.appendChild(t),o.appendChild(c),o}},{key:"getTabContent",value:function(){var t=document.createElement("div");return t.setAttribute("role","tabpanel"),t}},{key:"getTopTabContent",value:function(){var t=document.createElement("div");return t.setAttribute("role","tabpanel"),t}},{key:"markTabActive",value:function(t){t.tab.firstChild.classList.add("block"),t.tab.firstChild.classList.contains("border-b")===!0?(t.tab.firstChild.classList.add("border-b-0"),t.tab.firstChild.classList.remove("border-b")):t.tab.firstChild.classList.add("border-b-0"),t.container.classList.contains("hidden")===!0&&t.container.classList.remove("hidden"),t.container.classList.add("block")}},{key:"markTabInactive",value:function(t){t.tab.firstChild.classList.contains("border-b-0")===!0?(t.tab.firstChild.classList.add("border-b"),t.tab.firstChild.classList.remove("border-b-0")):t.tab.firstChild.classList.add("border-b"),t.container.classList.contains("block")===!0&&(t.container.classList.remove("block"),t.container.classList.add("hidden"))}},{key:"getProgressBar",value:function(){var t=document.createElement("div");t.classList.add("progress");var e=document.createElement("div");return e.classList.add("bg-blue","leading-none","py-1","text-xs","text-center","text-white"),e.setAttribute("role","progressbar"),e.setAttribute("aria-valuenow",0),e.setAttribute("aria-valuemin",0),e.setAttribute("aria-valuenax",100),e.innerHTML="".concat(0,"%"),t.appendChild(e),t}},{key:"updateProgressBar",value:function(t,e){if(t){var o=t.firstChild,c="".concat(e,"%");o.setAttribute("aria-valuenow",e),o.style.width=c,o.innerHTML=c}}},{key:"updateProgressBarUnknown",value:function(t){if(t){var e=t.firstChild;t.classList.add("progress","bg-blue","leading-none","py-1","text-xs","text-center","text-white","block"),e.removeAttribute("aria-valuenow"),e.classList.add("w-full"),e.innerHTML=""}}},{key:"getInputGroup",value:function(t,e){if(t){var o=document.createElement("div");o.classList.add("relative","items-stretch","w-full"),o.appendChild(t);var c=document.createElement("div");c.classList.add("-mr-1"),o.appendChild(c);for(var h=0;h<e.length;h++)c.appendChild(e[h]);return o}}}])&&ol(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),s}(Br);Oa.rules={".slider":"-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;display:block;border:none;height:1.2rem;width:100%25",".slider:focus":"box-shadow:0%200%200%200%20rgba(87%2C%2085%2C%20217%2C%200.2);outline:none",".slider.tooltip:not([data-tooltip])::after":"content:attr(value)",".slider::-webkit-slider-thumb":"-webkit-appearance:none;background:%23f17405;border-radius:100%25;height:0.6rem;margin-top:-0.25rem;transition:transform%200.2s;width:0.6rem",".slider:active::-webkit-slider-thumb":"transform:scale(1.25);outline:none",".slider::-webkit-slider-runnable-track":"background:%23b2b4b6;border-radius:0.1rem;height:0.1rem;width:100%25","a.tooltips":"position:relative;display:inline","a.tooltips span":"position:absolute;white-space:nowrap;width:auto;padding-left:1rem;padding-right:1rem;color:%23ffffff;background:rgba(56%2C%2056%2C%2056%2C%200.85);height:1.5rem;line-height:1.5rem;text-align:center;visibility:hidden;border-radius:3px","a.tooltips span:after":"content:%22%22;position:absolute;top:50%25;left:100%25;margin-top:-5px;width:0;height:0;border-left:5px%20solid%20rgba(56%2C%2056%2C%2056%2C%200.85);border-top:5px%20solid%20transparent;border-bottom:5px%20solid%20transparent","a:hover.tooltips span":"visibility:visible;opacity:0.9;font-size:0.8rem;right:100%25;top:50%25;margin-top:-12px;margin-right:10px;z-index:999",".json-editor-btntype-properties + div":"font-size:0.8rem;font-weight:normal",textarea:"width:100%25;min-height:2rem;resize:vertical",table:"width:100%25;border-collapse:collapse",".table td":"padding:0rem%200rem","div[data-schematype]:not([data-schematype='object'])":"transition:0.5s","div[data-schematype]:not([data-schematype='object']):hover":"background-color:%23e6f4fe","div[data-schemaid='root']":"position:relative;width:inherit;display:inherit;overflow-x:hidden;z-index:10","select[multiple]":"height:auto","select[multiple].from-select":"height:auto",".je-table-zebra:nth-child(even)":"background-color:%23f2f2f2",".je-table-border":"border:0.5px%20solid%20black",".je-table-hdiv":"border-bottom:1px%20solid%20black",".je-border":"border:0.05rem%20solid%20%233182ce",".je-panel":"width:inherit;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-panel-top":"width:100%25;padding:0.2rem;margin:0.2rem;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".required:after":"content:%22%20*%22;color:red;font:inherit;font-weight:bold",".je-desc":"font-size:smaller;margin:0.2rem%200",".container-xl.je-noindent":"padding-left:0;padding-right:0",".json-editor-btntype-add":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%234299e1;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deletelast":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23e53e3e;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-deleteall":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%23000000;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-save":"float:right;color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btn-back":"color:white;margin:0.3rem;padding:0.3rem%200.8rem;background-color:%232b6cb0;box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-webkit-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2);-moz-box-shadow:3px%203px%205px%201px%20rgba(4%2C%204%2C%204%2C%200.2)",".json-editor-btntype-delete":"color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btntype-move":"color:%23000000;background-color:rgba(218%2C%20222%2C%20228%2C%200.1);margin:0.03rem;padding:0.1rem",".json-editor-btn-collapse":"padding:0em%200.8rem;font-size:1.3rem;color:%23e53e3e;background-color:rgba(218%2C%20222%2C%20228%2C%200.1)",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-dropzone":"position:relative;margin:0.5rem%200;border:2px%20dashed%20black;width:100%25;height:60px;background:teal;transition:all%200.5s",".je-dropzone:before":"position:absolute;content:attr(data-text);color:rgba(0%2C%200%2C%200%2C%200.6);left:50%25;top:50%25;transform:translate(-50%25%2C%20-50%25)",".je-dropzone.valid-dropzone":"background:green",".je-dropzone.invalid-dropzone":"background:red"};var sl={html:ba,bootstrap3:ga,bootstrap4:wa,bootstrap5:_a,jqueryui:xa,barebones:ka,spectre:ja,tailwind:Oa};const ll={".je-float-right-linkholder":"float:right;margin-left:10px",".je-modal":"background-color:white;border:1px%20solid%20black;box-shadow:3px%203px%20black;position:absolute;z-index:10",".je-infobutton-icon":"font-size:16px;font-weight:bold;padding:0.25rem;position:relative;display:inline-block",".je-infobutton-tooltip":"font-size:12px;font-weight:normal;font-family:sans-serif;visibility:hidden;background-color:rgba(50%2C%2050%2C%2050%2C%200.75);margin:0%200.25rem;color:%23fafafa;padding:0.5rem%201rem;border-radius:0.25rem;width:20rem;position:absolute",".je-not-loaded":"pointer-events:none",".je-header":"display:inline-block",".je-upload-preview img":"float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",".je-checkbox":"display:inline-block;width:auto",".je-checkbox-control--compact":"display:inline-block;margin-right:1rem",".je-radio":"display:inline-block;width:auto",".je-radio-control--compact":"display:inline-block;margin-right:1rem",".je-switcher":"background-color:transparent;display:inline-block;font-style:italic;font-weight:normal;height:auto;width:auto;margin-bottom:0;margin-left:5px;padding:0%200%200%203px",".je-textarea":"width:100%25;height:300px;box-sizing:border-box",".je-range-control":"text-align:center",".je-indented-panel":"padding-left:10px;margin-left:10px;border-left:1px%20solid%20%23ccc",".je-indented-panel--top":"padding-left:10px;margin-left:10px",".je-tabholder":"float:left;width:130px",".je-tabholder .content":"margin-left:120px",".je-tabholder--top":"margin-left:10px",".je-tabholder--clear":"clear:both",".je-tab":"border:1px%20solid%20%23ccc;border-width:1px%200%201px%201px;text-align:center;line-height:30px;border-radius:5px;border-bottom-right-radius:0;border-top-right-radius:0;font-weight:bold;cursor:pointer",".je-tab--top":"float:left;border:1px%20solid%20%23ccc;border-width:1px%201px%200px%201px;text-align:center;line-height:30px;border-radius:5px;padding-left:5px;padding-right:5px;border-bottom-right-radius:0;border-bottom-left-radius:0;font-weight:bold;cursor:pointer",".je-block-link":"display:block",".je-media":"width:100%25"};function ci(l){return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ci(l)}function na(l,r){(r==null||r>l.length)&&(r=l.length);for(var p=0,n=new Array(r);p<r;p++)n[p]=l[p];return n}function ia(){ia=function(){return l};var l={},r=Object.prototype,p=r.hasOwnProperty,n=Object.defineProperty||function(U,z,q){U[z]=q.value},u=typeof Symbol=="function"?Symbol:{},a=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",t=u.toStringTag||"@@toStringTag";function e(U,z,q){return Object.defineProperty(U,z,{value:q,enumerable:!0,configurable:!0,writable:!0}),U[z]}try{e({},"")}catch{e=function(U,z,q){return U[z]=q}}function o(U,z,q,pt){var tt=z&&z.prototype instanceof f?z:f,Pt=Object.create(tt.prototype),Gt=new vt(pt||[]);return n(Pt,"_invoke",{value:It(U,q,Gt)}),Pt}function c(U,z,q){try{return{type:"normal",arg:U.call(z,q)}}catch(pt){return{type:"throw",arg:pt}}}l.wrap=o;var h={};function f(){}function _(){}function T(){}var Y={};e(Y,a,function(){return this});var nt=Object.getPrototypeOf,ut=nt&&nt(nt(Ut([])));ut&&ut!==r&&p.call(ut,a)&&(Y=ut);var ht=T.prototype=f.prototype=Object.create(Y);function xt(U){["next","throw","return"].forEach(function(z){e(U,z,function(q){return this._invoke(z,q)})})}function Ot(U,z){function q(tt,Pt,Gt,fe){var ye=c(U[tt],U,Pt);if(ye.type!=="throw"){var rr=ye.arg,mr=rr.value;return mr&&ci(mr)=="object"&&p.call(mr,"__await")?z.resolve(mr.__await).then(function(Ke){q("next",Ke,Gt,fe)},function(Ke){q("throw",Ke,Gt,fe)}):z.resolve(mr).then(function(Ke){rr.value=Ke,Gt(rr)},function(Ke){return q("throw",Ke,Gt,fe)})}fe(ye.arg)}var pt;n(this,"_invoke",{value:function(tt,Pt){function Gt(){return new z(function(fe,ye){q(tt,Pt,fe,ye)})}return pt=pt?pt.then(Gt,Gt):Gt()}})}function It(U,z,q){var pt="suspendedStart";return function(tt,Pt){if(pt==="executing")throw new Error("Generator is already running");if(pt==="completed"){if(tt==="throw")throw Pt;return{value:void 0,done:!0}}for(q.method=tt,q.arg=Pt;;){var Gt=q.delegate;if(Gt){var fe=Qt(Gt,q);if(fe){if(fe===h)continue;return fe}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(pt==="suspendedStart")throw pt="completed",q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);pt="executing";var ye=c(U,z,q);if(ye.type==="normal"){if(pt=q.done?"completed":"suspendedYield",ye.arg===h)continue;return{value:ye.arg,done:q.done}}ye.type==="throw"&&(pt="completed",q.method="throw",q.arg=ye.arg)}}}function Qt(U,z){var q=z.method,pt=U.iterator[q];if(pt===void 0)return z.delegate=null,q==="throw"&&U.iterator.return&&(z.method="return",z.arg=void 0,Qt(U,z),z.method==="throw")||q!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+q+"' method")),h;var tt=c(pt,U.iterator,z.arg);if(tt.type==="throw")return z.method="throw",z.arg=tt.arg,z.delegate=null,h;var Pt=tt.arg;return Pt?Pt.done?(z[U.resultName]=Pt.value,z.next=U.nextLoc,z.method!=="return"&&(z.method="next",z.arg=void 0),z.delegate=null,h):Pt:(z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,h)}function be(U){var z={tryLoc:U[0]};1 in U&&(z.catchLoc=U[1]),2 in U&&(z.finallyLoc=U[2],z.afterLoc=U[3]),this.tryEntries.push(z)}function Ht(U){var z=U.completion||{};z.type="normal",delete z.arg,U.completion=z}function vt(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(be,this),this.reset(!0)}function Ut(U){if(U){var z=U[a];if(z)return z.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var q=-1,pt=function tt(){for(;++q<U.length;)if(p.call(U,q))return tt.value=U[q],tt.done=!1,tt;return tt.value=void 0,tt.done=!0,tt};return pt.next=pt}}return{next:Se}}function Se(){return{value:void 0,done:!0}}return _.prototype=T,n(ht,"constructor",{value:T,configurable:!0}),n(T,"constructor",{value:_,configurable:!0}),_.displayName=e(T,t,"GeneratorFunction"),l.isGeneratorFunction=function(U){var z=typeof U=="function"&&U.constructor;return!!z&&(z===_||(z.displayName||z.name)==="GeneratorFunction")},l.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,T):(U.__proto__=T,e(U,t,"GeneratorFunction")),U.prototype=Object.create(ht),U},l.awrap=function(U){return{__await:U}},xt(Ot.prototype),e(Ot.prototype,s,function(){return this}),l.AsyncIterator=Ot,l.async=function(U,z,q,pt,tt){tt===void 0&&(tt=Promise);var Pt=new Ot(o(U,z,q,pt),tt);return l.isGeneratorFunction(z)?Pt:Pt.next().then(function(Gt){return Gt.done?Gt.value:Pt.next()})},xt(ht),e(ht,t,"Generator"),e(ht,a,function(){return this}),e(ht,"toString",function(){return"[object Generator]"}),l.keys=function(U){var z=Object(U),q=[];for(var pt in z)q.push(pt);return q.reverse(),function tt(){for(;q.length;){var Pt=q.pop();if(Pt in z)return tt.value=Pt,tt.done=!1,tt}return tt.done=!0,tt}},l.values=Ut,vt.prototype={constructor:vt,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ht),!U)for(var z in this)z.charAt(0)==="t"&&p.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=void 0)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var z=this;function q(ye,rr){return Pt.type="throw",Pt.arg=U,z.next=ye,rr&&(z.method="next",z.arg=void 0),!!rr}for(var pt=this.tryEntries.length-1;pt>=0;--pt){var tt=this.tryEntries[pt],Pt=tt.completion;if(tt.tryLoc==="root")return q("end");if(tt.tryLoc<=this.prev){var Gt=p.call(tt,"catchLoc"),fe=p.call(tt,"finallyLoc");if(Gt&&fe){if(this.prev<tt.catchLoc)return q(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return q(tt.finallyLoc)}else if(Gt){if(this.prev<tt.catchLoc)return q(tt.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return q(tt.finallyLoc)}}}},abrupt:function(U,z){for(var q=this.tryEntries.length-1;q>=0;--q){var pt=this.tryEntries[q];if(pt.tryLoc<=this.prev&&p.call(pt,"finallyLoc")&&this.prev<pt.finallyLoc){var tt=pt;break}}tt&&(U==="break"||U==="continue")&&tt.tryLoc<=z&&z<=tt.finallyLoc&&(tt=null);var Pt=tt?tt.completion:{};return Pt.type=U,Pt.arg=z,tt?(this.method="next",this.next=tt.finallyLoc,h):this.complete(Pt)},complete:function(U,z){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&z&&(this.next=z),h},finish:function(U){for(var z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z];if(q.finallyLoc===U)return this.complete(q.completion,q.afterLoc),Ht(q),h}},catch:function(U){for(var z=this.tryEntries.length-1;z>=0;--z){var q=this.tryEntries[z];if(q.tryLoc===U){var pt=q.completion;if(pt.type==="throw"){var tt=pt.arg;Ht(q)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(U,z,q){return this.delegate={iterator:Ut(U),resultName:z,nextLoc:q},this.method==="next"&&(this.arg=void 0),h}},l}function Ca(l,r,p,n,u,a,s){try{var t=l[a](s),e=t.value}catch(o){return void p(o)}t.done?r(e):Promise.resolve(e).then(n,u)}function cl(l,r){for(var p=0;p<r.length;p++){var n=r[p];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,(u=function(a,s){if(ci(a)!=="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var e=t.call(a,"string");if(ci(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(n.key),ci(u)==="symbol"?u:String(u)),n)}var u}var Dr=function(){function l(a){var s=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(function(T,Y){if(!(T instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,l),!(a instanceof Element))throw new Error("element should be an instance of Element");this.element=a,this.options=b({},l.defaults.options,t),this.ready=!1,this.copyClipboard=null,this.schema=this.options.schema,this.template=this.options.template,this.translate=this.options.translate||l.defaults.translate,this.translateProperty=this.options.translateProperty||l.defaults.translateProperty,this.uuid=0,this.__data={};var e=this.options.theme||l.defaults.theme,o=l.defaults.themes[e];if(!o)throw new Error("Unknown theme ".concat(e));this.element.setAttribute("data-theme",e),this.element.classList.add("je-not-loaded"),this.element.classList.remove("je-ready"),this.theme=new o(this);var c=b(ll,this.getEditorsRules()),h=function(T,Y,nt){return nt?s.addNewStyleRulesToShadowRoot(T,Y,nt):s.addNewStyleRules(T,Y)};if(!this.theme.options.disable_theme_rules){var f=k(this.element);h("default",c,f),o.rules!==void 0&&h(e,o.rules,f)}var _=l.defaults.iconlibs[this.options.iconlib||l.defaults.iconlib];_&&(this.iconlib=new _),this.root_container=this.theme.getContainer(),this.element.appendChild(this.root_container),this.promise=this.load()}var r,p,n,u;return r=l,p=[{key:"load",value:(n=ia().mark(function a(){var s,t,e,o,c,h,f=this;return ia().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return s=document.location.origin+document.location.pathname.toString(),(t=new ws(this.options)).onSchemaLoaded=function(T){f.trigger("schemaLoaded",T)},t.onAllSchemasLoaded=function(){f.trigger("allSchemasLoaded")},this.expandSchema=function(T){return t.expandSchema(T)},this.expandRefs=function(T,Y){return t.expandRefs(T,Y)},e=document.location.toString(),_.next=9,t.load(this.schema,s,e);case 9:o=_.sent,c=this.options.custom_validators?{custom_validators:this.options.custom_validators}:{},this.validator=new In(this,null,c,l.defaults),h=this.getEditorClass(o),this.root=this.createEditor(h,{jsoneditor:this,schema:o,required:!0,container:this.root_container}),this.root.preBuild(),this.root.build(),this.root.postBuild(),x(this.options,"startval")&&this.root.setValue(this.options.startval),this.validation_results=this.validator.validate(this.root.getValue()),this.root.showValidationErrors(this.validation_results),this.ready=!0,this.element.classList.remove("je-not-loaded"),this.element.classList.add("je-ready"),window.requestAnimationFrame(function(){f.ready&&(f.validation_results=f.validator.validate(f.root.getValue()),f.root.showValidationErrors(f.validation_results),f.trigger("ready"),f.trigger("change"))});case 24:case"end":return _.stop()}},a,this)}),u=function(){var a=this,s=arguments;return new Promise(function(t,e){var o=n.apply(a,s);function c(f){Ca(o,t,e,c,h,"next",f)}function h(f){Ca(o,t,e,c,h,"throw",f)}c(void 0)})},function(){return u.apply(this,arguments)})},{key:"getValue",value:function(){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.getValue()}},{key:"setValue",value:function(a){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return this.root.setValue(a),this}},{key:"validate",value:function(a){if(!this.ready)throw new Error("JSON Editor not ready yet. Make sure the load method is complete");return arguments.length===1?this.validator.validate(a):this.validation_results}},{key:"destroy",value:function(){this.destroyed||this.ready&&(this.schema=null,this.options=null,this.root.destroy(),this.root=null,this.root_container=null,this.validator=null,this.validation_results=null,this.theme=null,this.iconlib=null,this.template=null,this.__data=null,this.ready=!1,this.element.innerHTML="",this.element.removeAttribute("data-theme"),this.destroyed=!0)}},{key:"on",value:function(a,s){return this.callbacks=this.callbacks||{},this.callbacks[a]=this.callbacks[a]||[],this.callbacks[a].push(s),this}},{key:"off",value:function(a,s){if(a&&s){this.callbacks=this.callbacks||{},this.callbacks[a]=this.callbacks[a]||[];for(var t=[],e=0;e<this.callbacks[a].length;e++)this.callbacks[a][e]!==s&&t.push(this.callbacks[a][e]);this.callbacks[a]=t}else a?(this.callbacks=this.callbacks||{},this.callbacks[a]=[]):this.callbacks={};return this}},{key:"trigger",value:function(a,s){if(this.callbacks&&this.callbacks[a]&&this.callbacks[a].length)for(var t=0;t<this.callbacks[a].length;t++)this.callbacks[a][t].apply(this,[s]);return this}},{key:"setOption",value:function(a,s){if(a!=="show_errors")throw new Error("Option ".concat(a," must be set during instantiation and cannot be changed later"));return this.options.show_errors=s,this.onChange(),this}},{key:"getEditorsRules",value:function(){return Object.values(l.defaults.editors).reduce(function(a,s){return s.rules?b(a,s.rules):a},{})}},{key:"getEditorClass",value:function(a){var s,t=this;if(a=this.expandSchema(a),l.defaults.resolvers.find(function(e){return(s=e(a,t))&&l.defaults.editors[s]}),!s)throw new Error("Unknown editor for schema ".concat(JSON.stringify(a)));if(!l.defaults.editors[s])throw new Error("Unknown editor ".concat(s));return l.defaults.editors[s]}},{key:"createEditor",value:function(a,s){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return new a(s=b({},a.options||{},s),l.defaults,t)}},{key:"onChange",value:function(){var a=this;if(this.ready&&!this.firing_change)return this.firing_change=!0,window.requestAnimationFrame(function(){a.firing_change=!1,a.ready&&(a.validation_results=a.validator.validate(a.root.getValue()),a.options.show_errors!=="never"?a.root.showValidationErrors(a.validation_results):a.root.showValidationErrors([]),a.trigger("change"))}),this}},{key:"compileTemplate",value:function(a){var s,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.defaults.template;if(typeof t=="string"){if(!l.defaults.templates[t])throw new Error("Unknown template engine ".concat(t));if(!(s=l.defaults.templates[t]()))throw new Error("Template engine ".concat(t," missing required library."))}else s=t;if(!s)throw new Error("No template engine set");if(!s.compile)throw new Error("Invalid template engine set");return s.compile(a)}},{key:"_data",value:function(a,s,t){if(arguments.length!==3)return a.hasAttribute("data-jsoneditor-".concat(s))?this.__data[a.getAttribute("data-jsoneditor-".concat(s))]:null;var e;a.hasAttribute("data-jsoneditor-".concat(s))?e=a.getAttribute("data-jsoneditor-".concat(s)):(e=this.uuid++,a.setAttribute("data-jsoneditor-".concat(s),e)),this.__data[e]=t}},{key:"registerEditor",value:function(a){return this.editors=this.editors||{},this.editors[a.path]=a,this}},{key:"unregisterEditor",value:function(a){return this.editors=this.editors||{},this.editors[a.path]=null,this}},{key:"getEditor",value:function(a){if(this.editors)return this.editors[a]}},{key:"watch",value:function(a,s){return this.watchlist=this.watchlist||{},this.watchlist[a]=this.watchlist[a]||[],this.watchlist[a].push(s),this}},{key:"unwatch",value:function(a,s){if(!this.watchlist||!this.watchlist[a])return this;if(!s)return this.watchlist[a]=null,this;for(var t=[],e=0;e<this.watchlist[a].length;e++)this.watchlist[a][e]!==s&&t.push(this.watchlist[a][e]);return this.watchlist[a]=t.length?t:null,this}},{key:"notifyWatchers",value:function(a){if(!this.watchlist||!this.watchlist[a])return this;for(var s=0;s<this.watchlist[a].length;s++)this.watchlist[a][s]()}},{key:"isEnabled",value:function(){return!this.root||this.root.isEnabled()}},{key:"enable",value:function(){this.root.enable()}},{key:"disable",value:function(){this.root.disable()}},{key:"setCopyClipboardContents",value:function(a){this.copyClipboard=a}},{key:"getCopyClipboardContents",value:function(){return this.copyClipboard}},{key:"addNewStyleRules",value:function(a,s){var t=document.querySelector("#theme-".concat(a));t||((t=document.createElement("style")).setAttribute("id","theme-".concat(a)),t.appendChild(document.createTextNode("")),document.head.appendChild(t));for(var e=t.sheet?t.sheet:t.styleSheet,o=this.element.nodeName.toLowerCase();e.cssRules.length>0;)e.deleteRule(0);Object.keys(s).forEach(function(c){var h=a==="default"?c:"".concat(o,'[data-theme="').concat(a,'"] ').concat(c);e.insertRule?e.insertRule(h+" {"+decodeURIComponent(s[c])+"}",0):e.addRule&&e.addRule(h,decodeURIComponent(s[c]),0)})}},{key:"addNewStyleRulesToShadowRoot",value:function(a,s,t){var e=this.element.nodeName.toLowerCase(),o="";Object.keys(s).forEach(function(f){var _=a==="default"?f:"".concat(e,'[data-theme="').concat(a,'"] ').concat(f);o+=_+" {"+decodeURIComponent(s[f])+`}
14
+ `});var c,h=new CSSStyleSheet;h.replaceSync(o),t.adoptedStyleSheets=[].concat(function(f){if(Array.isArray(f))return na(f)}(c=t.adoptedStyleSheets)||function(f){if(typeof Symbol<"u"&&f[Symbol.iterator]!=null||f["@@iterator"]!=null)return Array.from(f)}(c)||function(f,_){if(f){if(typeof f=="string")return na(f,_);var T=Object.prototype.toString.call(f).slice(8,-1);return T==="Object"&&f.constructor&&(T=f.constructor.name),T==="Map"||T==="Set"?Array.from(f):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?na(f,_):void 0}}(c)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),[h])}}],p&&cl(r.prototype,p),Object.defineProperty(r,"prototype",{writable:!1}),l}();Dr.defaults=fn,Dr.AbstractEditor=H,Dr.AbstractTheme=Br,Dr.AbstractIconLib=Ar,Object.assign(Dr.defaults.themes,sl),Object.assign(Dr.defaults.editors,Qi),Object.assign(Dr.defaults.templates,_s),Object.assign(Dr.defaults.iconlibs,Js)})(),J})())})(Ua);var co=Ua.exports;/**
16
+ * @license
17
+ * Copyright 2019 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const uo=globalThis,ua=uo.ShadowRoot&&(uo.ShadyCSS===void 0||uo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qa=Symbol(),Sa=new WeakMap;let dl=class{constructor(G,g,O){if(this._$cssResult$=!0,O!==qa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=G,this.t=g}get styleSheet(){let G=this.o;const g=this.t;if(ua&&G===void 0){const O=g!==void 0&&g.length===1;O&&(G=Sa.get(g)),G===void 0&&((this.o=G=new CSSStyleSheet).replaceSync(this.cssText),O&&Sa.set(g,G))}return G}toString(){return this.cssText}};const fl=G=>new dl(typeof G=="string"?G:G+"",void 0,qa),yl=(G,g)=>{if(ua)G.adoptedStyleSheets=g.map(O=>O instanceof CSSStyleSheet?O:O.styleSheet);else for(const O of g){const L=document.createElement("style"),R=uo.litNonce;R!==void 0&&L.setAttribute("nonce",R),L.textContent=O.cssText,G.appendChild(L)}},Ea=ua?G=>G:G=>G instanceof CSSStyleSheet?(g=>{let O="";for(const L of g.cssRules)O+=L.cssText;return fl(O)})(G):G;/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const{is:ml,defineProperty:vl,getOwnPropertyDescriptor:bl,getOwnPropertyNames:gl,getOwnPropertySymbols:wl,getPrototypeOf:_l}=Object,pi=globalThis,Pa=pi.trustedTypes,xl=Pa?Pa.emptyScript:"",Ta=pi.reactiveElementPolyfillSupport,Ai=(G,g)=>G,aa={toAttribute(G,g){switch(g){case Boolean:G=G?xl:null;break;case Object:case Array:G=G==null?G:JSON.stringify(G)}return G},fromAttribute(G,g){let O=G;switch(g){case Boolean:O=G!==null;break;case Number:O=G===null?null:Number(G);break;case Object:case Array:try{O=JSON.parse(G)}catch{O=null}}return O}},Wa=(G,g)=>!ml(G,g),La={attribute:!0,type:String,converter:aa,reflect:!1,hasChanged:Wa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),pi.litPropertyMetadata??(pi.litPropertyMetadata=new WeakMap);class ui extends HTMLElement{static addInitializer(g){this._$Ei(),(this.l??(this.l=[])).push(g)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(g,O=La){if(O.state&&(O.attribute=!1),this._$Ei(),this.elementProperties.set(g,O),!O.noAccessor){const L=Symbol(),R=this.getPropertyDescriptor(g,L,O);R!==void 0&&vl(this.prototype,g,R)}}static getPropertyDescriptor(g,O,L){const{get:R,set:J}=bl(this.prototype,g)??{get(){return this[O]},set(y){this[O]=y}};return{get(){return R==null?void 0:R.call(this)},set(y){const j=R==null?void 0:R.call(this);J.call(this,y),this.requestUpdate(g,j,L)},configurable:!0,enumerable:!0}}static getPropertyOptions(g){return this.elementProperties.get(g)??La}static _$Ei(){if(this.hasOwnProperty(Ai("elementProperties")))return;const g=_l(this);g.finalize(),g.l!==void 0&&(this.l=[...g.l]),this.elementProperties=new Map(g.elementProperties)}static finalize(){if(this.hasOwnProperty(Ai("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ai("properties"))){const O=this.properties,L=[...gl(O),...wl(O)];for(const R of L)this.createProperty(R,O[R])}const g=this[Symbol.metadata];if(g!==null){const O=litPropertyMetadata.get(g);if(O!==void 0)for(const[L,R]of O)this.elementProperties.set(L,R)}this._$Eh=new Map;for(const[O,L]of this.elementProperties){const R=this._$Eu(O,L);R!==void 0&&this._$Eh.set(R,O)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(g){const O=[];if(Array.isArray(g)){const L=new Set(g.flat(1/0).reverse());for(const R of L)O.unshift(Ea(R))}else g!==void 0&&O.push(Ea(g));return O}static _$Eu(g,O){const L=O.attribute;return L===!1?void 0:typeof L=="string"?L:typeof g=="string"?g.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var g;this._$Eg=new Promise(O=>this.enableUpdating=O),this._$AL=new Map,this._$E_(),this.requestUpdate(),(g=this.constructor.l)==null||g.forEach(O=>O(this))}addController(g){var O;(this._$ES??(this._$ES=[])).push(g),this.renderRoot!==void 0&&this.isConnected&&((O=g.hostConnected)==null||O.call(g))}removeController(g){var O;(O=this._$ES)==null||O.splice(this._$ES.indexOf(g)>>>0,1)}_$E_(){const g=new Map,O=this.constructor.elementProperties;for(const L of O.keys())this.hasOwnProperty(L)&&(g.set(L,this[L]),delete this[L]);g.size>0&&(this._$Ep=g)}createRenderRoot(){const g=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return yl(g,this.constructor.elementStyles),g}connectedCallback(){var g;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(g=this._$ES)==null||g.forEach(O=>{var L;return(L=O.hostConnected)==null?void 0:L.call(O)})}enableUpdating(g){}disconnectedCallback(){var g;(g=this._$ES)==null||g.forEach(O=>{var L;return(L=O.hostDisconnected)==null?void 0:L.call(O)})}attributeChangedCallback(g,O,L){this._$AK(g,L)}_$EO(g,O){var L;const R=this.constructor.elementProperties.get(g),J=this.constructor._$Eu(g,R);if(J!==void 0&&R.reflect===!0){const y=(((L=R.converter)==null?void 0:L.toAttribute)!==void 0?R.converter:aa).toAttribute(O,R.type);this._$Em=g,y==null?this.removeAttribute(J):this.setAttribute(J,y),this._$Em=null}}_$AK(g,O){var L;const R=this.constructor,J=R._$Eh.get(g);if(J!==void 0&&this._$Em!==J){const y=R.getPropertyOptions(J),j=typeof y.converter=="function"?{fromAttribute:y.converter}:((L=y.converter)==null?void 0:L.fromAttribute)!==void 0?y.converter:aa;this._$Em=J,this[J]=j.fromAttribute(O,y.type),this._$Em=null}}requestUpdate(g,O,L,R=!1,J){if(g!==void 0){if(L??(L=this.constructor.getPropertyOptions(g)),!(L.hasChanged??Wa)(R?J:this[g],O))return;this.C(g,O,L)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(g,O,L){this._$AL.has(g)||this._$AL.set(g,O),L.reflect===!0&&this._$Em!==g&&(this._$Ej??(this._$Ej=new Set)).add(g)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(O){Promise.reject(O)}const g=this.scheduleUpdate();return g!=null&&await g,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var g;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[J,y]of this._$Ep)this[J]=y;this._$Ep=void 0}const R=this.constructor.elementProperties;if(R.size>0)for(const[J,y]of R)y.wrapped!==!0||this._$AL.has(J)||this[J]===void 0||this.C(J,this[J],y)}let O=!1;const L=this._$AL;try{O=this.shouldUpdate(L),O?(this.willUpdate(L),(g=this._$ES)==null||g.forEach(R=>{var J;return(J=R.hostUpdate)==null?void 0:J.call(R)}),this.update(L)):this._$ET()}catch(R){throw O=!1,this._$ET(),R}O&&this._$AE(L)}willUpdate(g){}_$AE(g){var O;(O=this._$ES)==null||O.forEach(L=>{var R;return(R=L.hostUpdated)==null?void 0:R.call(L)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(g)),this.updated(g)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(g){return!0}update(g){this._$Ej&&(this._$Ej=this._$Ej.forEach(O=>this._$EO(O,this[O]))),this._$ET()}updated(g){}firstUpdated(g){}}ui.elementStyles=[],ui.shadowRootOptions={mode:"open"},ui[Ai("elementProperties")]=new Map,ui[Ai("finalized")]=new Map,Ta==null||Ta({ReactiveElement:ui}),(pi.reactiveElementVersions??(pi.reactiveElementVersions=[])).push("2.0.1");/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */const ho=globalThis,po=ho.trustedTypes,Ra=po?po.createPolicy("lit-html",{createHTML:G=>G}):void 0,Ja="$lit$",en=`lit$${(Math.random()+"").slice(9)}$`,Ya="?"+en,kl=`<${Ya}>`,kn=document,Fi=()=>kn.createComment(""),Ni=G=>G===null||typeof G!="object"&&typeof G!="function",Ka=Array.isArray,jl=G=>Ka(G)||typeof(G==null?void 0:G[Symbol.iterator])=="function",oa=`[
28
+ \f\r]`,Li=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Aa=/-->/g,Ba=/>/g,_n=RegExp(`>|${oa}(?:([^\\s"'>=/]+)(${oa}*=${oa}*(?:[^
29
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ia=/'/g,Da=/"/g,Za=/^(?:script|style|textarea|title)$/i,Ol=G=>(g,...O)=>({_$litType$:G,strings:g,values:O}),Cl=Ol(1),di=Symbol.for("lit-noChange"),Ie=Symbol.for("lit-nothing"),Fa=new WeakMap,xn=kn.createTreeWalker(kn,129);function Ga(G,g){if(!Array.isArray(G)||!G.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ra!==void 0?Ra.createHTML(g):g}const Sl=(G,g)=>{const O=G.length-1,L=[];let R,J=g===2?"<svg>":"",y=Li;for(let j=0;j<O;j++){const i=G[j];let d,m,v=-1,b=0;for(;b<i.length&&(y.lastIndex=b,m=y.exec(i),m!==null);)b=y.lastIndex,y===Li?m[1]==="!--"?y=Aa:m[1]!==void 0?y=Ba:m[2]!==void 0?(Za.test(m[2])&&(R=RegExp("</"+m[2],"g")),y=_n):m[3]!==void 0&&(y=_n):y===_n?m[0]===">"?(y=R??Li,v=-1):m[1]===void 0?v=-2:(v=y.lastIndex-m[2].length,d=m[1],y=m[3]===void 0?_n:m[3]==='"'?Da:Ia):y===Da||y===Ia?y=_n:y===Aa||y===Ba?y=Li:(y=_n,R=void 0);const w=y===_n&&G[j+1].startsWith("/>")?" ":"";J+=y===Li?i+kl:v>=0?(L.push(d),i.slice(0,v)+Ja+i.slice(v)+en+w):i+en+(v===-2?j:w)}return[Ga(G,J+(G[O]||"<?>")+(g===2?"</svg>":"")),L]};class Mi{constructor({strings:g,_$litType$:O},L){let R;this.parts=[];let J=0,y=0;const j=g.length-1,i=this.parts,[d,m]=Sl(g,O);if(this.el=Mi.createElement(d,L),xn.currentNode=this.el.content,O===2){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(R=xn.nextNode())!==null&&i.length<j;){if(R.nodeType===1){if(R.hasAttributes())for(const v of R.getAttributeNames())if(v.endsWith(Ja)){const b=m[y++],w=R.getAttribute(v).split(en),k=/([.?@])?(.*)/.exec(b);i.push({type:1,index:J,name:k[2],strings:w,ctor:k[1]==="."?Pl:k[1]==="?"?Tl:k[1]==="@"?Ll:yo}),R.removeAttribute(v)}else v.startsWith(en)&&(i.push({type:6,index:J}),R.removeAttribute(v));if(Za.test(R.tagName)){const v=R.textContent.split(en),b=v.length-1;if(b>0){R.textContent=po?po.emptyScript:"";for(let w=0;w<b;w++)R.append(v[w],Fi()),xn.nextNode(),i.push({type:2,index:++J});R.append(v[b],Fi())}}}else if(R.nodeType===8)if(R.data===Ya)i.push({type:2,index:J});else{let v=-1;for(;(v=R.data.indexOf(en,v+1))!==-1;)i.push({type:7,index:J}),v+=en.length-1}J++}}static createElement(g,O){const L=kn.createElement("template");return L.innerHTML=g,L}}function fi(G,g,O=G,L){var R,J;if(g===di)return g;let y=L!==void 0?(R=O._$Co)==null?void 0:R[L]:O._$Cl;const j=Ni(g)?void 0:g._$litDirective$;return(y==null?void 0:y.constructor)!==j&&((J=y==null?void 0:y._$AO)==null||J.call(y,!1),j===void 0?y=void 0:(y=new j(G),y._$AT(G,O,L)),L!==void 0?(O._$Co??(O._$Co=[]))[L]=y:O._$Cl=y),y!==void 0&&(g=fi(G,y._$AS(G,g.values),y,L)),g}class El{constructor(g,O){this._$AV=[],this._$AN=void 0,this._$AD=g,this._$AM=O}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(g){const{el:{content:O},parts:L}=this._$AD,R=((g==null?void 0:g.creationScope)??kn).importNode(O,!0);xn.currentNode=R;let J=xn.nextNode(),y=0,j=0,i=L[0];for(;i!==void 0;){if(y===i.index){let d;i.type===2?d=new $i(J,J.nextSibling,this,g):i.type===1?d=new i.ctor(J,i.name,i.strings,this,g):i.type===6&&(d=new Rl(J,this,g)),this._$AV.push(d),i=L[++j]}y!==(i==null?void 0:i.index)&&(J=xn.nextNode(),y++)}return xn.currentNode=kn,R}p(g){let O=0;for(const L of this._$AV)L!==void 0&&(L.strings!==void 0?(L._$AI(g,L,O),O+=L.strings.length-2):L._$AI(g[O])),O++}}class $i{get _$AU(){var g;return((g=this._$AM)==null?void 0:g._$AU)??this._$Cv}constructor(g,O,L,R){this.type=2,this._$AH=Ie,this._$AN=void 0,this._$AA=g,this._$AB=O,this._$AM=L,this.options=R,this._$Cv=(R==null?void 0:R.isConnected)??!0}get parentNode(){let g=this._$AA.parentNode;const O=this._$AM;return O!==void 0&&(g==null?void 0:g.nodeType)===11&&(g=O.parentNode),g}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(g,O=this){g=fi(this,g,O),Ni(g)?g===Ie||g==null||g===""?(this._$AH!==Ie&&this._$AR(),this._$AH=Ie):g!==this._$AH&&g!==di&&this._(g):g._$litType$!==void 0?this.g(g):g.nodeType!==void 0?this.$(g):jl(g)?this.T(g):this._(g)}k(g){return this._$AA.parentNode.insertBefore(g,this._$AB)}$(g){this._$AH!==g&&(this._$AR(),this._$AH=this.k(g))}_(g){this._$AH!==Ie&&Ni(this._$AH)?this._$AA.nextSibling.data=g:this.$(kn.createTextNode(g)),this._$AH=g}g(g){var O;const{values:L,_$litType$:R}=g,J=typeof R=="number"?this._$AC(g):(R.el===void 0&&(R.el=Mi.createElement(Ga(R.h,R.h[0]),this.options)),R);if(((O=this._$AH)==null?void 0:O._$AD)===J)this._$AH.p(L);else{const y=new El(J,this),j=y.u(this.options);y.p(L),this.$(j),this._$AH=y}}_$AC(g){let O=Fa.get(g.strings);return O===void 0&&Fa.set(g.strings,O=new Mi(g)),O}T(g){Ka(this._$AH)||(this._$AH=[],this._$AR());const O=this._$AH;let L,R=0;for(const J of g)R===O.length?O.push(L=new $i(this.k(Fi()),this.k(Fi()),this,this.options)):L=O[R],L._$AI(J),R++;R<O.length&&(this._$AR(L&&L._$AB.nextSibling,R),O.length=R)}_$AR(g=this._$AA.nextSibling,O){var L;for((L=this._$AP)==null?void 0:L.call(this,!1,!0,O);g&&g!==this._$AB;){const R=g.nextSibling;g.remove(),g=R}}setConnected(g){var O;this._$AM===void 0&&(this._$Cv=g,(O=this._$AP)==null||O.call(this,g))}}class yo{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(g,O,L,R,J){this.type=1,this._$AH=Ie,this._$AN=void 0,this.element=g,this.name=O,this._$AM=R,this.options=J,L.length>2||L[0]!==""||L[1]!==""?(this._$AH=Array(L.length-1).fill(new String),this.strings=L):this._$AH=Ie}_$AI(g,O=this,L,R){const J=this.strings;let y=!1;if(J===void 0)g=fi(this,g,O,0),y=!Ni(g)||g!==this._$AH&&g!==di,y&&(this._$AH=g);else{const j=g;let i,d;for(g=J[0],i=0;i<J.length-1;i++)d=fi(this,j[L+i],O,i),d===di&&(d=this._$AH[i]),y||(y=!Ni(d)||d!==this._$AH[i]),d===Ie?g=Ie:g!==Ie&&(g+=(d??"")+J[i+1]),this._$AH[i]=d}y&&!R&&this.O(g)}O(g){g===Ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,g??"")}}class Pl extends yo{constructor(){super(...arguments),this.type=3}O(g){this.element[this.name]=g===Ie?void 0:g}}class Tl extends yo{constructor(){super(...arguments),this.type=4}O(g){this.element.toggleAttribute(this.name,!!g&&g!==Ie)}}class Ll extends yo{constructor(g,O,L,R,J){super(g,O,L,R,J),this.type=5}_$AI(g,O=this){if((g=fi(this,g,O,0)??Ie)===di)return;const L=this._$AH,R=g===Ie&&L!==Ie||g.capture!==L.capture||g.once!==L.once||g.passive!==L.passive,J=g!==Ie&&(L===Ie||R);R&&this.element.removeEventListener(this.name,this,L),J&&this.element.addEventListener(this.name,this,g),this._$AH=g}handleEvent(g){var O;typeof this._$AH=="function"?this._$AH.call(((O=this.options)==null?void 0:O.host)??this.element,g):this._$AH.handleEvent(g)}}class Rl{constructor(g,O,L){this.element=g,this.type=6,this._$AN=void 0,this._$AM=O,this.options=L}get _$AU(){return this._$AM._$AU}_$AI(g){fi(this,g)}}const Na=ho.litHtmlPolyfillSupport;Na==null||Na(Mi,$i),(ho.litHtmlVersions??(ho.litHtmlVersions=[])).push("3.1.0");const Al=(G,g,O)=>{const L=(O==null?void 0:O.renderBefore)??g;let R=L._$litPart$;if(R===void 0){const J=(O==null?void 0:O.renderBefore)??null;L._$litPart$=R=new $i(g.insertBefore(Fi(),J),J,void 0,O??{})}return R._$AI(G),R};/**
30
+ * @license
31
+ * Copyright 2017 Google LLC
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */class Bi extends ui{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var g;const O=super.createRenderRoot();return(g=this.renderOptions).renderBefore??(g.renderBefore=O.firstChild),O}update(g){const O=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(g),this._$Do=Al(O,this.renderRoot,this.renderOptions)}connectedCallback(){var g;super.connectedCallback(),(g=this._$Do)==null||g.setConnected(!0)}disconnectedCallback(){var g;super.disconnectedCallback(),(g=this._$Do)==null||g.setConnected(!1)}render(){return di}}var Ma;Bi._$litElement$=!0,Bi.finalized=!0,(Ma=globalThis.litElementHydrateSupport)==null||Ma.call(globalThis,{LitElement:Bi});const $a=globalThis.litElementPolyfillSupport;$a==null||$a({LitElement:Bi});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");const Bl=`
34
+ * {
35
+ font-family: Roboto, sans-serif;
36
+ }
37
+ `,Il=`
38
+ input[type=checkbox] {
39
+ appearance: none;
40
+ -webkit-appearance: none;
41
+ margin: 0;
42
+ cursor: pointer;
43
+ display: flex;
44
+ flex-direction: row;
45
+ align-items: center;
46
+ width: 24px;
47
+ height: 24px;
48
+ }
49
+ input[type=checkbox]:after {
50
+ display: block;
51
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E");
52
+ width: 20px;
53
+ height: 20px;
54
+ margin-right: 4px;
55
+ }
56
+ input[type=checkbox]:checked:after {
57
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");
58
+
59
+ }
60
+ `,Dl=`
61
+ input[type=radio] {
62
+ appearance: none;
63
+ -webkit-appearance: none;
64
+ margin: 0;
65
+ cursor: pointer;
66
+ display: flex;
67
+ flex-direction: row;
68
+ align-items: center;
69
+ width: 24px;
70
+ height: 24px;
71
+ }
72
+
73
+ label span {
74
+ font-size: small;
75
+ }
76
+
77
+ input[type=radio]:after {
78
+ display: block;
79
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E");
80
+ width: 20px;
81
+ height: 20px;
82
+ margin-right: 4px;
83
+ }
84
+ input[type=radio]:checked:after {
85
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");
86
+
87
+ }
88
+ `,Fl=`
89
+ input[type="range"] {
90
+ -webkit-appearance: none;
91
+ width: 90%;
92
+ margin-left: 5%;
93
+ height: 6px;
94
+ border-radius: 5px;
95
+ background: #d7dcdf;
96
+ outline: none;
97
+ padding: 0;
98
+ }
99
+ input[type="range"]::-webkit-slider-thumb {
100
+ appearance: none;
101
+ width: 15px;
102
+ height: 15px;
103
+ border-radius: 50%;
104
+ background: #2c3e50;
105
+ cursor: pointer;
106
+ transition: background 0.15s ease-in-out;
107
+ }
108
+ .range-slider {
109
+ margin: 60px 0 0 0;
110
+ }
111
+ .range-slider {
112
+ width: 100%;
113
+ }
114
+ input[type="range"]::-webkit-slider-thumb:hover {
115
+ background: #00416F;
116
+ }
117
+ input[type="range"]:active::-webkit-slider-thumb {
118
+ background: #00416F;
119
+ }
120
+ input[type="range"]::-moz-range-thumb {
121
+ width: 15px;
122
+ height: 15px;
123
+ border: 0;
124
+ border-radius: 50%;
125
+ background: #2c3e50;
126
+ cursor: pointer;
127
+ transition: background 0.15s ease-in-out;
128
+ }
129
+ input[type="range"]::-moz-range-thumb:hover {
130
+ background: #00416F;
131
+ }
132
+ input[type="range"]:active::-moz-range-thumb {
133
+ background: #00416F;
134
+ }
135
+ input[type="range"]:focus::-webkit-slider-thumb {
136
+ box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416F00;
137
+ }
138
+ .range-slider__value {
139
+ display: inline-block;
140
+ position: relative;
141
+ width: 60px;
142
+ color: #fff;
143
+ line-height: 20px;
144
+ text-align: center;
145
+ border-radius: 3px;
146
+ background: #2c3e50;
147
+ padding: 5px 10px;
148
+ margin-left: 8px;
149
+ }
150
+ .range-slider__value:after {
151
+ position: absolute;
152
+ top: 8px;
153
+ left: -7px;
154
+ width: 0;
155
+ height: 0;
156
+ border-top: 7px solid transparent;
157
+ border-right: 7px solid #2c3e50;
158
+ border-bottom: 7px solid transparent;
159
+ content: '';
160
+ }
161
+
162
+ input::-moz-focus-inner, input::-moz-focus-outer {
163
+ border: 0;
164
+ }
165
+ `,Nl=`
166
+ ${Il}
167
+ ${Dl}
168
+ ${Fl}
169
+
170
+ [data-schemaid=root] > .je-header {
171
+ display: none;
172
+ }
173
+ input[type="text"], select {
174
+ box-sizing: border-box !important;
175
+ width: 100% !important;
176
+ margin: 0.5rem 0rem !important;
177
+ padding: 5px 7px !important;
178
+ border-radius: 4px !important;
179
+ border: 1px solid #0004 !important;
180
+ }
181
+ .je-range-control {
182
+ padding: 0.5rem 0;
183
+ }
184
+ .errmsg {
185
+ font-size: x-small;
186
+ }
187
+ tc-range-slider{
188
+ display: block;
189
+ margin: 0.5rem 0;
190
+ }
191
+ `;function Qa(G){return!(G===null||typeof G!="object"||G.nodeType||G===G.window||G.constructor&&!Ii(G.constructor.prototype,"isPrototypeOf"))}function Xa(G){return Qa(G)?fo({},G):Array.isArray(G)?G.map(Xa):G}function fo(G,...g){return g.forEach(O=>{O&&Object.keys(O).forEach(L=>{O[L]&&Qa(O[L])?(Ii(G,L)||(G[L]={}),fo(G[L],O[L])):Array.isArray(O[L])?G[L]=Xa(O[L]):G[L]=O[L]})}),G}function Ii(G,g){return G&&Object.prototype.hasOwnProperty.call(G,g)}class Ml{constructor(g,O){this.defaults=O,this.jsoneditor=g.jsoneditor,this.theme=this.jsoneditor.theme,this.template_engine=this.jsoneditor.template,this.iconlib=this.jsoneditor.iconlib,this.translate=this.jsoneditor.translate||this.defaults.translate,this.translateProperty=this.jsoneditor.translateProperty||this.defaults.translateProperty,this.original_schema=g.schema,this.schema=this.jsoneditor.expandSchema(this.original_schema),this.active=!0,this.options=fo({},this.options||{},this.schema.options||{},g.schema.options||{},g),this.formname=this.jsoneditor.options.form_name_root||"root",!g.path&&!this.schema.id&&(this.schema.id=this.formname),this.path=g.path||this.formname,this.formname=g.formname||this.path.replace(/\.([^.]+)/g,"[$1]"),this.parent=g.parent,this.key=this.parent!==void 0?this.path.split(".").slice(this.parent.path.split(".").length).join("."):this.path,this.link_watchers=[],this.watchLoop=!1,g.container&&this.setContainer(g.container),this.registerDependencies()}onChildEditorChange(g){this.onChange(!0)}notify(){this.path&&this.jsoneditor.notifyWatchers(this.path)}change(){this.parent?this.parent.onChildEditorChange(this):this.jsoneditor&&this.jsoneditor.onChange()}onChange(g){this.notify(),this.watch_listener&&this.watch_listener(),g&&this.change()}register(){this.jsoneditor.registerEditor(this),this.onChange()}unregister(){this.jsoneditor&&this.jsoneditor.unregisterEditor(this)}getNumColumns(){return 12}isActive(){return this.active}activate(){this.active=!0,this.optInCheckbox.checked=!0,this.enable(),this.change()}deactivate(){this.isRequired()||(this.active=!1,this.optInCheckbox.checked=!1,this.disable(),this.change())}registerDependencies(){this.dependenciesFulfilled=!0;const g=this.options.dependencies;g&&Object.keys(g).forEach(O=>{let L;O.startsWith(this.jsoneditor.root.path)?L=O:(L=this.path.split("."),L[L.length-1]=O,L=L.join(".")),this.jsoneditor.watch(L,()=>{this.evaluateDependencies()})})}evaluateDependencies(){const g=this.container||this.control;if(!g||this.jsoneditor===null)return;const O=this.options.dependencies;if(!O)return;const L=this.dependenciesFulfilled;this.dependenciesFulfilled=!0,Object.keys(O).forEach(J=>{let y;J.startsWith(this.jsoneditor.root.path)?y=J:(y=this.path.split("."),y[y.length-1]=J,y=y.join("."));const j=O[J];this.checkDependency(y,j)}),this.dependenciesFulfilled!==L&&this.notify();let R=this.dependenciesFulfilled?"block":"none";this.options.hidden&&(R="none"),g.tagName==="TD"?Object.keys(g.childNodes).forEach(J=>g.childNodes[J].style.display=R):g.style.display=R}checkDependency(g,O){if(this.path===g||this.jsoneditor===null)return;const L=this.jsoneditor.getEditor(g),R=L?L.getValue():void 0;!L||!L.dependenciesFulfilled?this.dependenciesFulfilled=!1:Array.isArray(O)?this.dependenciesFulfilled=O.some(J=>{if(JSON.stringify(R)===JSON.stringify(J))return!0}):typeof O=="object"?typeof R!="object"?this.dependenciesFulfilled=O===R:Object.keys(O).some(J=>{if(!Ii(O,J))return!1;if(!Ii(R,J)||O[J]!==R[J])return this.dependenciesFulfilled=!1,!0}):typeof O=="string"||typeof O=="number"?this.dependenciesFulfilled=this.dependenciesFulfilled&&R===O:typeof O=="boolean"&&(O?this.dependenciesFulfilled=this.dependenciesFulfilled&&(R||R.length>0):this.dependenciesFulfilled=this.dependenciesFulfilled&&(!R||R.length===0))}setContainer(g){this.container=g,this.setContainerAttributes(),this.schema.id&&this.container.setAttribute("data-schemaid",this.schema.id),this.schema.type&&typeof this.schema.type=="string"&&this.container.setAttribute("data-schematype",this.schema.type),this.container.setAttribute("data-schemapath",this.path)}setOptInCheckbox(g){this.optInCheckbox=document.createElement("input"),this.optInCheckbox.setAttribute("type","checkbox"),this.optInCheckbox.setAttribute("style","margin: 0 10px 0 0;"),this.optInCheckbox.classList.add("json-editor-opt-in"),this.optInCheckbox.addEventListener("click",()=>{this.isActive()?this.deactivate():this.activate()});const O=this.jsoneditor.options.show_opt_in,L=typeof this.parent.options.show_opt_in<"u",R=L&&this.parent.options.show_opt_in===!0,J=L&&this.parent.options.show_opt_in===!1;(R||!J&&O||!L&&O)&&this.parent&&this.parent.schema.type==="object"&&!this.isRequired()&&this.header&&(this.header.appendChild(this.optInCheckbox),this.header.insertBefore(this.optInCheckbox,this.header.firstChild))}preBuild(){}build(){}postBuild(){this.setupWatchListeners(),this.addLinks(),this.register(),this.setValue(this.getDefault(),!0),this.updateHeaderText(),this.onWatchedFieldChange()}setupWatchListeners(){if(this.watched={},this.schema.vars&&(this.schema.watch=this.schema.vars),this.watched_values={},this.watch_listener=()=>{this.refreshWatchedFieldValues()&&this.onWatchedFieldChange()},Ii(this.schema,"watch")){let g,O,L,R,J;const y=this.container.getAttribute("data-schemapath");Object.keys(this.schema.watch).forEach(j=>{if(g=this.schema.watch[j],Array.isArray(g)){if(g.length<2)return;O=[g[0]].concat(g[1].split("."))}else O=g.split("."),this.theme.closest(this.container,`[data-schemaid="${O[0]}"]`)||O.unshift("#");if(L=O.shift(),L==="#"&&(L=this.jsoneditor.schema.id||this.jsoneditor.root.formname),R=this.theme.closest(this.container,`[data-schemaid="${L}"]`),!R)throw new Error(`Could not find ancestor node with id ${L}`);J=`${R.getAttribute("data-schemapath")}.${O.join(".")}`,y.startsWith(J)&&(this.watchLoop=!0),this.jsoneditor.watch(J,this.watch_listener),this.watched[j]=J})}this.schema.headerTemplate&&(this.header_template=this.jsoneditor.compileTemplate(this.schema.headerTemplate,this.template_engine))}addLinks(){if(!this.no_link_holder&&(this.link_holder=this.theme.getLinksHolder(),typeof this.description<"u"?this.description.parentNode.insertBefore(this.link_holder,this.description):this.container.appendChild(this.link_holder),this.schema.links))for(let g=0;g<this.schema.links.length;g++)this.addLink(this.getLink(this.schema.links[g]))}onMove(){}getButton(g,O,L,R=[]){const J=`json-editor-btn-${O}`;this.iconlib?O=this.iconlib.getIcon(O):O=null,g=this.translate(g,R),L=this.translate(L,R),!O&&L&&(g=L,L=null);const y=this.theme.getButton(g,O,L);return y.classList.add(J),y}setButtonText(g,O,L,R,J=[]){return this.iconlib?L=this.iconlib.getIcon(L):L=null,O=this.translate(O,J),R=this.translate(R,J),!L&&R&&(O=R,R=null),this.theme.setButtonText(g,O,L,R)}addLink(g){this.link_holder&&this.link_holder.appendChild(g)}getLink(g){let O,L;const R=(g.mediaType||"application/javascript").split("/")[0],J=this.jsoneditor.compileTemplate(g.href,this.template_engine),y=this.jsoneditor.compileTemplate(g.rel?g.rel:g.href,this.template_engine);let j=null;if(g.download&&(j=g.download),j&&j!==!0&&(j=this.jsoneditor.compileTemplate(j,this.template_engine)),R==="image"){O=this.theme.getBlockLinkHolder(),L=document.createElement("a"),L.setAttribute("target","_blank");const i=document.createElement("img");this.theme.createImageLink(O,L,i),this.link_watchers.push(d=>{const m=J(d),v=y(d);L.setAttribute("href",m),L.setAttribute("title",v||m),i.setAttribute("src",m)})}else if(["audio","video"].includes(R)){O=this.theme.getBlockLinkHolder(),L=this.theme.getBlockLink(),L.setAttribute("target","_blank");const i=document.createElement(R);i.setAttribute("controls","controls"),this.theme.createMediaLink(O,L,i),this.link_watchers.push(d=>{const m=J(d),v=y(d);L.setAttribute("href",m),L.textContent=v||m,i.setAttribute("src",m)})}else L=O=this.theme.getBlockLink(),O.setAttribute("target","_blank"),O.textContent=g.rel,O.style.display="none",this.link_watchers.push(i=>{const d=J(i),m=y(i);d&&(O.style.display=""),O.setAttribute("href",d),O.textContent=m||d});return j&&L&&(j===!0?L.setAttribute("download",""):this.link_watchers.push(i=>{L.setAttribute("download",j(i))})),g.class&&L.classList.add(g.class),O}refreshWatchedFieldValues(){if(!this.watched_values)return;const g={};let O=!1;return this.watched&&Object.keys(this.watched).forEach(L=>{const R=this.jsoneditor.getEditor(this.watched[L]),J=R?R.getValue():null;this.watched_values[L]!==J&&(O=!0),g[L]=J}),g.self=this.getValue(),this.watched_values.self!==g.self&&(O=!0),this.watched_values=g,O}getWatchedFieldValues(){return this.watched_values}updateHeaderText(){if(this.header){const g=this.getHeaderText();if(this.header.children.length){for(let O=0;O<this.header.childNodes.length;O++)if(this.header.childNodes[O].nodeType===3){this.header.childNodes[O].nodeValue=this.cleanText(g);break}}else window.DOMPurify?this.header.innerHTML=window.DOMPurify.sanitize(g):this.header.textContent=this.cleanText(g)}}getHeaderText(g){return this.header_text?this.header_text:g?this.translateProperty(this.schema.title):this.getTitle()}getPathDepth(){return this.path.split(".").length}cleanText(g){const O=document.createElement("div");return O.innerHTML=g,O.textContent||O.innerText}onWatchedFieldChange(){let g;if(this.header_template){g=fo(this.getWatchedFieldValues(),{key:this.key,i:this.key,i0:this.key*1,i1:this.key*1+1,title:this.getTitle()});const O=this.header_template(g);O!==this.header_text&&(this.header_text=O,this.updateHeaderText(),this.notify())}if(this.link_watchers.length){g=this.getWatchedFieldValues();for(let O=0;O<this.link_watchers.length;O++)this.link_watchers[O](g)}}setValue(g){this.value=g}getValue(){if(this.dependenciesFulfilled)return this.value}refreshValue(){}getChildEditors(){return!1}destroy(){this.unregister(this),this.watched&&Object.values(this.watched).forEach(g=>this.jsoneditor.unwatch(g,this.watch_listener)),this.watched=null,this.watched_values=null,this.watch_listener=null,this.header_text=null,this.header_template=null,this.value=null,this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.container=null,this.jsoneditor=null,this.schema=null,this.path=null,this.key=null,this.parent=null}isDefaultRequired(){return this.isRequired()||!!this.jsoneditor.options.use_default_values}getDefault(){if(typeof this.schema.default<"u")return this.schema.default;if(typeof this.schema.enum<"u")return this.schema.enum[0];let g=this.schema.type||this.schema.oneOf;if(g&&Array.isArray(g)&&(g=g[0]),g&&typeof g=="object"&&(g=g.type),g&&Array.isArray(g)&&(g=g[0]),typeof g=="string"){if(g==="number")return this.isDefaultRequired()?0:void 0;if(g==="boolean")return this.isDefaultRequired()?!1:void 0;if(g==="integer")return this.isDefaultRequired()?0:void 0;if(g==="string")return this.isDefaultRequired()?"":void 0;if(g==="null")return null;if(g==="object")return{};if(g==="array")return[]}}getTitle(){return this.translateProperty(this.schema.title||this.key)}enable(){this.disabled=!1}disable(){this.disabled=!0}isEnabled(){return!this.disabled}isRequired(){return typeof this.schema.required=="boolean"?this.schema.required:this.parent&&this.parent.schema&&Array.isArray(this.parent.schema.required)?this.parent.schema.required.includes(this.key):!!this.jsoneditor.options.required_by_default}getDisplayText(g){const O=[],L={};g.forEach(J=>{J.title&&(L[J.title]=L[J.title]||0,L[J.title]++),J.description&&(L[J.description]=L[J.description]||0,L[J.description]++),J.format&&(L[J.format]=L[J.format]||0,L[J.format]++),J.type&&(L[J.type]=L[J.type]||0,L[J.type]++)}),g.forEach(J=>{let y;typeof J=="string"?y=J:J.title&&L[J.title]<=1?y=J.title:J.format&&L[J.format]<=1?y=J.format:J.type&&L[J.type]<=1?y=J.type:J.description&&L[J.description]<=1?y=J.description:J.title?y=J.title:J.format?y=J.format:J.type?y=J.type:J.description?y=J.description:JSON.stringify(J).length<500?y=JSON.stringify(J):y="type",O.push(y)});const R={};return O.forEach((J,y)=>{R[J]=R[J]||0,R[J]++,L[J]>1&&(O[y]=`${J} ${R[J]}`)}),O}getValidId(g){return g=g===void 0?"":g.toString(),g.replace(/\s+/g,"-")}setInputAttributes(g){if(this.schema.options&&this.schema.options.inputAttributes){const O=this.schema.options.inputAttributes,L=["name","type"].concat(g);Object.keys(O).forEach(R=>{L.includes(R.toLowerCase())||this.input.setAttribute(R,O[R])})}}setContainerAttributes(){if(this.schema.options&&this.schema.options.containerAttributes){const g=this.schema.options.containerAttributes,O=["data-schemapath","data-schematype","data-schemaid"];Object.keys(g).forEach(L=>{O.includes(L.toLowerCase())||this.container.setAttribute(L,g[L])})}}expandCallbacks(g,O){const L=this.defaults.callbacks[g];return Object.entries(O).forEach(([R,J])=>{J===Object(J)?O[R]=this.expandCallbacks(g,J):typeof J=="string"&&typeof L=="object"&&typeof L[J]=="function"&&(O[R]=L[J].bind(null,this))}),O}showValidationErrors(g){}}(()=>{var G=J=>J==null?!1:typeof J=="boolean"?J:J.trim().toLowerCase()==="true";window.tcRangeSliderPlugins=window.tcRangeSliderPlugins||[];var g="min-label",O="max-label",L="#1E293B",R=()=>{let J=null,y=null,j=null,i,d=!1,m=L,v="",b,w=null,k=null,x=null,C=[],E=()=>{var V;let N=(V=J==null?void 0:J.shadowRoot)==null?void 0:V.querySelector(".range-slider-box");w=document.createElement("div"),w.classList.add("labels-row"),N.prepend(w)},P=V=>{let N=document.createElement("label");return N.className=V,N.setAttribute("for","range-slider"),N},A=()=>{k=P(g),k.textContent=B(j==null?void 0:j.getTextMin(),v),x=P(O),x.textContent=B(j==null?void 0:j.getTextMax(),v),y==null||y.before(k),y==null||y.after(x);let V=j==null?void 0:j.getValues();if(V)for(let N=0;N<V.length;N++){let Z=P(`value${N+1}-label generated-label`);Z.textContent=B(V[N],v),C.push(Z),w==null||w.append(Z)}},D=()=>{for(let V of C)!V||V.remove();k==null||k.remove(),x==null||x.remove(),w==null||w.remove(),C=[]},$=V=>{d=V,d?(E(),A()):D()},M=V=>{m=V;for(let N of C)!N||(N.style.color=m??L);k&&(k.style.color=m??L),x&&(x.style.color=m??L)},W=V=>{v=V,i&&i()},H=()=>{!j||!w||w.classList.toggle("is-reversed",j.isRightToLeft()||j.isBottomToTop())},B=(V,N)=>{let Z=`${(V??"").toString()}${N}`;return b&&typeof b=="function"?b(V):Z};return{get name(){return"Generated Labels"},init:(V,N,Z,K)=>{var Q,et,at;J=V,j=K,y=(Q=V.shadowRoot)==null?void 0:Q.getElementById("range-slider"),i=N,m=(et=J.getAttribute("generate-labels-text-color"))!=null?et:L,v=(at=J.getAttribute("generate-labels-units"))!=null?at:"",$(G(J.getAttribute("generate-labels"))),H(),M(m)},update:V=>{if(!(!d||!V.values)){H();for(let N=0;N<V.values.length;N++){let Z=V.values[N],K=C[N];if(Z===void 0&&K){K.remove(),C[N]=void 0;continue}if(Z!==void 0&&!K){let Q=P(`value${N+1}-label generated-label`);if(Q.textContent=B(Z,v),C[N]=Q,V.values.length<=0)w==null||w.append(Q);else if(N===0)w==null||w.append(Q);else{let et=C[N-1];et==null||et.after(Q)}continue}!K||(K.textContent=B(Z,v))}k&&(k.textContent=B(V.textMin,v)),x&&(x.textContent=B(V.textMax,v)),M(m)}},onAttrChange:(V,N)=>{V==="generate-labels"&&$(G(N)),V==="generate-labels-text-color"&&M(N),V==="generate-labels-units"&&W(N)},gettersAndSetters:[{name:"generateLabels",attributes:{get(){return d??!1},set:V=>{$(G(V))}}},{name:"textColor",attributes:{get(){return m??""},set:V=>{M(V)}}},{name:"generateLabelsTextColor",attributes:{get(){return m??""},set:V=>{M(V)}}},{name:"units",attributes:{get(){return v??""},set:V=>{W(V)}}},{name:"generateLabelsUnits",attributes:{get(){return v??""},set:V=>{W(V)}}},{name:"generateLabelsFormat",attributes:{get(){return b},set:V=>{b=V,i&&i()}}}],css:`
192
+ .labels-row{
193
+ text-align: center;
194
+ display: flex;
195
+ justify-content: center;
196
+ }
197
+
198
+ .is-reversed,
199
+ .is-reversed + .row{
200
+ flex-direction: row-reverse;
201
+ }
202
+
203
+ .type-vertical{
204
+ position: relative;
205
+ }
206
+
207
+ .type-vertical .labels-row{
208
+ flex-direction: column;
209
+ position: absolute;
210
+ top: 50%;
211
+ right: -100%;
212
+ transform: translateY(-50%);
213
+ }
214
+
215
+ .type-vertical .is-reversed,
216
+ .type-vertical .is-reversed + .row{
217
+ flex-direction: column-reverse;
218
+ }
219
+
220
+ .max-label,
221
+ .min-label{
222
+ margin: 0 1rem;
223
+ width: 2rem;
224
+ text-align: center;
225
+ white-space: nowrap;
226
+ }
227
+
228
+ .generated-label{
229
+ text-align: center;
230
+ margin: 0 0.5rem;
231
+ white-space: nowrap;
232
+ }
233
+ `,destroy:D}};window.tcRangeSliderPlugins.push(R)})();(()=>{var G=Object.defineProperty,g=Math.pow,O=(S,F,rt)=>F in S?G(S,F,{enumerable:!0,configurable:!0,writable:!0,value:rt}):S[F]=rt,L=(S,F,rt)=>(O(S,typeof F!="symbol"?F+"":F,rt),rt),R=(S,F)=>` ${F&&F.length>0?F.map(rt=>`<link rel="stylesheet" href="${rt}" />`).join(""):""} <style> ${S} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,J=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",y="pointers-overlap",j="pointers-min-distance",i="pointers-max-distance",d="range-dragging",m="data",v="min",b="max",w="step",k="round",x="type",C="theme",E="rtl",P="btt",A="disabled",D="keyboard-disabled",$="mousewheel-disabled",M="slider-width",W="slider-height",H="slider-radius",B="slider-bg",V="slider-bg-hover",N="slider-bg-fill",Z="pointer-width",K="pointer-height",Q="pointer-radius",et="pointer-bg",at="pointer-bg-hover",lt="pointer-bg-focus",wt="pointer-shadow",ct="pointer-shadow-hover",Ct="pointer-shadow-focus",Tt="pointer-border",$t="pointer-border-hover",st="pointer-border-focus",bt="animate-onclick",gt="css-links",Mt="vertical",Jt="horizontal",ie=(S,F,rt,X,ft)=>{let At=F-S;return At===0?rt:(X-rt)*(ft-S)/At+rt},St=S=>!isNaN(parseFloat(S))&&isFinite(S),kt=(S,F)=>St(S)?Number(S):F,Rt=(S,F)=>F===0?0:Math.round(S/F)*F,Vt=(S,F=1/0)=>{if(F===1/0)return S;let rt=g(10,F);return Math.round(S*rt)/rt},_t=S=>S==null?!1:typeof S=="boolean"?S:S.trim().toLowerCase()==="true",De=(S,F)=>{S.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:F}}))},ne=(S,F)=>{S.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:F}}))},we=(S,F)=>{S.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:F}}))},se=(S,F)=>{S.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:F}}))},Fe=(S,F)=>{if(!F||F.length<=0)return;let rt=F.map(ft=>St(ft)?kt(ft,ft):ft),X={values:rt||[]};X.value=rt[0],X.value0=rt[0],X.value1=rt[0];for(let ft=1;ft<rt.length;ft++)X[`value${ft+1}`]=rt[ft];S.dispatchEvent(new CustomEvent("change",{detail:X}))},me=(S,F,rt)=>{let X=0,ft,At,qt,dt,mt=!1,zt=(Nt,oe,Oe,he,_e,ce)=>{let He=X;Oe!==void 0&&Nt>Oe&&(Nt=Oe),oe!==void 0&&Nt<oe&&(Nt=oe),X=Nt;let xe=X;return(he===Mt&&ce||he===Jt&&_e)&&(xe=100-xe),he===Mt?F.style.top=`${xe}%`:F.style.left=`${xe}%`,He!==X},Xt=Nt=>Nt===F||F.contains(Nt),Et=(Nt,oe,Oe,he)=>{ft=Nt,At=oe,qt=Oe,dt=he},re=Nt=>{mt=Nt,F.classList.toggle("disabled",mt),mt?F.setAttribute("aria-disabled","true"):F.hasAttribute("aria-disabled")&&F.removeAttribute("aria-disabled")},ge=(Nt,oe)=>{oe==null?F.removeAttribute(Nt):F.setAttribute(Nt,oe)},Be=Nt=>F.getAttribute(Nt),Lt=Nt=>{if(!mt){switch(Nt.key){case"ArrowLeft":{Nt.preventDefault(),typeof ft=="function"&&ft(rt);break}case"ArrowRight":{Nt.preventDefault(),typeof At=="function"&&At(rt);break}case"ArrowUp":{Nt.preventDefault(),typeof qt=="function"&&qt(rt);break}case"ArrowDown":{Nt.preventDefault(),typeof dt=="function"&&dt(rt);break}}se(S,Nt)}},Zt=()=>{mt||De(S,F)};return F.className=`pointer pointer-${rt}`,F.addEventListener("keydown",Lt),F.addEventListener("click",Zt),{$pointer:F,get percent(){return X},get disabled(){return mt},set disabled(Nt){re(Nt)},updatePosition:zt,isClicked:Xt,setCallbacks:Et,setAttr:ge,getAttr:Be,destroy:()=>{F.removeEventListener("keydown",Lt),F.removeEventListener("click",Zt),F.remove()}}},Me=S=>{if(S==null)return;if(Array.isArray(S))return S;if(S.trim()==="")return;let F=S.split(","),rt=[],X=!0;for(let ft=0;ft<F.length;ft++){let At=F[ft].trim();At!==""&&(rt.push(At),St(At)||(X=!1))}return X?rt.map(ft=>Number(ft)):rt},ve=(S,F)=>F?F.findIndex(rt=>rt===S||rt.toString().trim()===S.toString().trim()):-1,Ee=S=>({updatePosition:(F,rt,X,ft)=>{if(rt.length<=0)return;let At=rt.length===1,qt=rt[0],dt=rt[rt.length-1];F===Mt?(S.style.removeProperty("width"),S.style.removeProperty("right"),S.style.removeProperty("left"),At?S.style.height=`${qt}%`:S.style.height=`${Math.abs(qt-dt)}%`,ft?(S.style.bottom="0%",At?S.style.top="auto":S.style.top=`${Math.min(100-dt,100-qt)}%`):(S.style.bottom="auto",At?S.style.top="0%":S.style.top=`${Math.min(qt,dt)}%`)):(S.style.removeProperty("height"),S.style.removeProperty("top"),S.style.removeProperty("bottom"),At?S.style.width=`${qt}%`:S.style.width=`${Math.abs(qt-dt)}%`,X?(S.style.right="0%",At?S.style.left="auto":S.style.left=`${Math.min(100-dt,100-qt)}%`):(S.style.right="auto",At?S.style.left="0%":S.style.left=`${Math.min(qt,dt)}%`))}}),pe="--animate-onclick",$e="--width",ot="--height",yt="--panel-bg-border-radius",Ft="--panel-bg",Dt="--panel-bg-hover",Yt="--panel-bg-fill",Pe="--pointer-width",Te="--pointer-height",Ye="--pointer-border-radius",Le="--pointer-bg",Ve="--pointer-bg-hover",de="--pointer-bg-focus",Fr="--pointer-shadow",Bt="--pointer-shadow-hover",Kt="--pointer-shadow-focus",Wt="--pointer-border",ee="--pointer-border-hover",je="--pointer-border-focus",jn=(S,F,rt)=>{let X=new Map;for(let ft of S.attributes){let At=ft.nodeName.trim().toLowerCase();if(!F.test(At))continue;let qt=At.replace(/\D/g,"").trim(),dt=qt===""||qt==="0"||qt==="1"?0:kt(qt,0)-1,mt=rt&&typeof rt=="function"?rt(ft.value):ft.value;X.set(dt,mt)}return X},Nr=S=>{if(!S)return null;let F=S.getAttribute(gt);if(!F)return null;let rt=F.split(";"),X=[];for(let ft of rt)ft.trim()!==""&&X.push(ft.trim());return X},Vi=[[$e,M,"sliderWidth",null],[ot,W,"sliderHeight",null],[yt,H,"sliderRadius",null],[Ft,B,"sliderBg",null],[Dt,V,"sliderBgHover",null],[Yt,N,"sliderBgFill",null],[Pe,Z,"pointer#Width",/^pointer([0-9]*)-width$/],[Te,K,"pointer#Height",/^pointer([0-9]*)-height$/],[Ye,Q,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Le,et,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Ve,at,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[de,lt,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Fr,wt,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[Bt,ct,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[Kt,Ct,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Wt,Tt,"pointer#Border",/^pointer([0-9]*)-border$/],[ee,$t,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[je,st,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],rn=(S,F,rt)=>{let X=null,ft=[],At=new Map,qt=(Lt,Zt=F)=>{let Nt=[...Zt.classList];for(let oe of Nt)oe.startsWith(Lt)&&F.classList.remove(oe)},dt=()=>{qt("shape");let Lt=F.querySelectorAll(".pointer");for(let Zt of Lt)qt("shape",Zt)},mt=Lt=>{X=Lt,qt("theme-"),typeof Lt=="string"&&F.classList.add(`theme-${Lt}`)},zt=()=>{if(dt(),!(ft.length<=0)){F.classList.add("shape",`shape-${ft[0]}`);for(let Lt=1;Lt<ft.length;Lt++){let Zt=ft[Lt];if(!Zt)continue;let Nt=F.querySelector(`.pointer-${Lt}`);!Nt||Nt.classList.add("shape",`shape-${Zt}`)}}},Xt=(Lt,Zt)=>{ft[Lt]=Zt,zt()},Et=()=>{dt();let Lt=jn(S,/^pointer([0-9]*)-shape$/);if(!(Lt.size<=0)){for(let Zt of Lt){let Nt=Zt[0];ft[Nt]=Zt[1]}zt()}},re=(Lt,Zt)=>`${Lt}-${Zt}`,ge=(Lt,Zt,Nt)=>{let oe=rt[Nt];if(!oe)return;let Oe=Nt===0?F:oe.$pointer;if(Zt==null){At.has(re(Lt,Nt))&&At.delete(re(Lt,Nt)),Oe.style.removeProperty(Lt);return}At.set(re(Lt,Nt),Zt),Oe.style.setProperty(Lt,Zt)},Be=(Lt,Zt)=>At.get(re(Lt,Zt));return(()=>{for(let Lt of Vi){let[Zt,Nt,oe,Oe]=Lt;if(Oe){let _e=jn(S,Oe);for(let ce of _e){let He=ce[0],xe=ce[1];ge(Zt,xe,He)}}else{let _e=S.getAttribute(Nt);ge(Zt,_e,0)}let he=[];if(oe.indexOf("#")===-1)he.push([oe,0]);else{he.push([oe.replace("#",""),0]),he.push([oe.replace("#","0"),0]),he.push([oe.replace("#","1"),0]);for(let _e=1;_e<rt.length;_e++)he.push([oe.replace("#",(_e+1).toString()),_e])}for(let _e of he)try{let ce=_e[0],He=_e[1];Object.prototype.hasOwnProperty.call(S,ce)||Object.defineProperty(S,ce,{get(){return Be(Zt,He)},set:xe=>{ge(Zt,xe,He)}})}catch(ce){console.error(ce)}}mt(S.getAttribute(C)),Et()})(),{setStyle:ge,getStyle:Be,get theme(){return X},set theme(Lt){mt(Lt)},get pointerShapes(){return ft},setPointerShape:Xt}},vr="animate-on-click",cr="range-dragging",Hi=(S,F,rt,X)=>{let ft=[],At=Xt=>{for(let Et of ft)Et.update&&typeof Et.update=="function"&&Et.update(Xt)},qt=()=>{for(let Xt of ft)Xt.destroy&&typeof Xt.destroy=="function"&&Xt.destroy()},dt=(Xt,Et)=>{for(let re of ft)re.onAttrChange&&typeof re.onAttrChange=="function"&&re.onAttrChange(Xt,Et)},mt=Xt=>{if(Xt.gettersAndSetters){for(let Et of Xt.gettersAndSetters)if(!(!Et.name||!Et.attributes))try{Object.prototype.hasOwnProperty.call(S,Et.name)||Object.defineProperty(S,Et.name,Et.attributes)}catch(re){console.error("defineSettersGetters error:",re)}}},zt=Xt=>{var Et;if(!Xt.css)return;let re=(Et=S.shadowRoot)==null?void 0:Et.querySelector("style");!re||(re.innerHTML+=Xt.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let Xt of window.tcRangeSliderPlugins){let Et=Xt();ft.push(Et),Et.init&&typeof Et.init=="function"&&(Et.init(S,F,rt,X),mt(Et),zt(Et))}},update:At,onAttrChange:dt,destroy:qt}},Mr=10,zi=20,Pr=(S,F)=>{let rt=new Map,X=/^value([0-9]*)$/;for(let dt of S.attributes){let mt=dt.nodeName.trim().toLowerCase();if(!X.test(mt))continue;let zt=mt.replace("value","").trim(),Xt=zt===""||zt==="0"||zt==="1"?0:kt(zt,0)-1,Et=St(dt.value)?kt(dt.value,0):dt.value;rt.set(Xt,Et)}let ft=Math.max(...Array.from(rt.keys())),At=[];At.push([me(S,F,0),rt.get(0)]);let qt=F;for(let dt=1;dt<=ft;dt++){let mt=F.cloneNode(!0);qt.after(mt),qt=mt,At.push([me(S,mt,dt),rt.get(dt)])}return At},On=(S,F,rt,X,ft,At,qt)=>{try{Object.defineProperty(S,X,{configurable:!0,get(){if(!F)return;let dt=F.pointers[rt];if(!dt)return;let mt=F.getTextValue(dt.percent);return St(mt)?kt(mt,mt):mt},set:dt=>{F.pointers[rt]?F==null||F.setValue(dt,rt):F==null||F.addPointer(dt)}}),Object.defineProperty(S,ft,{configurable:!0,get(){var dt,mt;return(mt=(dt=F==null?void 0:F.pointers[rt])==null?void 0:dt.getAttr("aria-label"))!=null?mt:void 0},set:dt=>{!F||F.setAriaLabel(rt,dt)}}),Object.defineProperty(S,At,{configurable:!0,get(){var dt,mt;return(mt=(dt=F==null?void 0:F.styles)==null?void 0:dt.pointerShapes[rt])!=null?mt:null},set:dt=>{!F||!F.styles||F.styles.setPointerShape(rt,dt)}}),Object.defineProperty(S,qt,{configurable:!0,get(){var dt;return(dt=F==null?void 0:F.pointers[rt].disabled)!=null?dt:!1},set:dt=>{if(!F)return;let mt=F==null?void 0:F.pointers[rt];!mt||(mt.disabled=dt)}})}catch(dt){console.error(dt)}},nr=(S,F)=>{let rt=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let X=2;X<Mr;X++)rt.push([`value${X}`,`ariaLabel${X}`,`pointer${X}Shape`,`pointer${X}Disabled`,X-1]);for(let X of rt)On(S,F,X[4],X[0],X[1],X[2],X[3])},Ui=(S,F,rt)=>{var X;let ft=(X=rt.shadowRoot)==null?void 0:X.querySelector(".container");if(ft)for(let At of S)F?ft.prepend(At.$pointer):ft.append(At.$pointer)},$r=(S,F)=>{if(!(!F||S.length<=1)){for(let rt of S)rt.$pointer.style.zIndex=zi.toString();F.$pointer.style.zIndex=(zi*2).toString()}},yi=0,Ze=100,br=2,Ge="0.3s",nn=(S,F,rt)=>{let X=rt.map(I=>I[0]),ft=null,At=null,qt=null,dt=null,mt=yi,zt=Ze,Xt,Et,re=Jt,ge=br,Be=!1,Lt=!1,Zt=!1,Nt=0,oe=1/0,Oe=!1,he,_e,ce=!1,He=!1,xe=!1,or=Ge,Qe=[],qi=I=>{ce||(I.preventDefault&&I.preventDefault(),ar(I),window.addEventListener("mousemove",ar),window.addEventListener("mouseup",ur),ne(S,I))},ur=I=>{ce||(he=void 0,_e=void 0,window.removeEventListener("mousemove",ar),window.removeEventListener("mouseup",ur),or&&F.classList.add(vr),we(S,I))},vo=(I,it)=>{if(X.length<=0)return;if(X.length===1)return X[0].isClicked(I)&&or&&F.classList.remove(vr),X[0];let jt=Ji(I);if(Oe){let te=it,ke=Ln(te);ke!==void 0&&(te=Rt(te,ke)),jt?(he=te,_e=0,or&&F.classList.remove(vr)):he!==void 0&&(_e=te-he,he=te)}if(!Hr(I)&&!jt){for(let te of X)if(!(!te.isClicked(I)||te.disabled))return or&&F.classList.remove(vr),te;for(let te of X)if(ft===te)return te}let ae=1/0,le=null;for(let te of X){if(te.disabled)continue;let ke=Math.abs(it-te.percent);ke<ae&&(ae=ke,le=te)}return le},Cn=()=>X.findIndex(I=>ft===I&&!I.disabled),ar=I=>{let it;if(re===Mt){let{height:ae,top:le}=F.getBoundingClientRect(),te=I.type.indexOf("mouse")!==-1?I.clientY:I.touches[0].clientY;it=Math.min(Math.max(0,te-le),ae)*100/ae}else{let{width:ae,left:le}=F.getBoundingClientRect(),te=I.type.indexOf("mouse")!==-1?I.clientX:I.touches[0].clientX;it=Math.min(Math.max(0,te-le),ae)*100/ae}if((Be||Lt)&&(it=100-it),ft=vo(I.target,it),ft&&$r(X,ft),Oe&&X.length>1&&_e!==void 0){let ae=X[0],le=X[X.length-1],te=ae.percent+_e<0,ke=le.percent+_e>100;if(te||ke)return;for(let Hn=0;Hn<X.length;Hn++)Ce(Hn,X[Hn].percent+_e);return}let jt=Cn();jt!==-1&&(Ce(jt,it),ft==null||ft.$pointer.focus())},Sn=I=>{if(ce||document.activeElement!==S||ft!=null&&ft.disabled)return;I.stopPropagation(),I.preventDefault();let it=I.deltaY<0,jt=Be||Lt,ae=it?!jt:jt,le=Cn();le!==-1&&(ae?sr(le,X[le].percent):on(le,X[le].percent))},Tr=I=>{ce||He||(re===Mt?Lt?Ce(I,100):Ce(I,0):Be?on(I,X[I].percent):sr(I,X[I].percent))},Wi=I=>{ce||He||(re===Mt?Lt?Ce(I,0):Ce(I,100):Be?sr(I,X[I].percent):on(I,X[I].percent))},En=I=>{ce||He||(re===Mt?Lt?on(I,X[I].percent):sr(I,X[I].percent):Be?Ce(I,100):Ce(I,0))},Pn=I=>{ce||He||(re===Mt?Lt?sr(I,X[I].percent):on(I,X[I].percent):Be?Ce(I,0):Ce(I,100))},Hr=I=>I.classList.contains("panel"),Ji=I=>I.classList.contains("panel-fill"),sr=(I,it)=>{if(it===void 0)return;let jt=Ln(it);jt==null&&(jt=1),it-=jt,it<0&&(it=0),Ce(I,it)},on=(I,it)=>{if(it===void 0)return;let jt=Ln(it);jt==null&&(jt=1),it+=jt,it>100&&(it=100),Ce(I,it)},hr=()=>{!dt||dt.update({percents:dr(),values:Rn(),$pointers:Xe(),min:Ki(),max:Zi(),data:vi(),step:mi(),round:gi(),type:bi(),textMin:Ur(),textMax:pr(),rightToLeft:ze(),bottomToTop:ue(),pointersOverlap:Bn(),pointersMinDistance:An(),pointersMaxDistance:wi(),rangeDragging:In(),disabled:sn(),keyboardDisabled:ln(),mousewheelDisabled:_i()})},Tn=()=>{hr()},Yi=I=>{if(!(Zt||X.length<=1||zt===mt))if(I===0){let it=oe*100/(zt-mt);return Math.max(0,X[I+1].percent-it)}else{let it=Nt*100/(zt-mt);return Math.min(X[I-1].percent+it,100)}},zr=I=>{if(!(Zt||X.length<=1||zt===mt))if(I===X.length-1){let it=oe*100/(zt-mt);return Math.min(X[I-1].percent+it,100)}else{let it=Nt*100/(zt-mt);return Math.max(0,X[I+1].percent-it)}},Ln=I=>{let it;if(typeof Xt=="function"){let jt=ie(0,100,mt,zt,I);it=Xt(jt,I)}else it=Xt;if(St(it)){let jt=zt-mt;return it=jt===0?0:it*100/jt,it}},gr=I=>{if(I===void 0)return;let it=ie(0,100,mt,zt,I);return Et!==void 0?Et[Math.round(it)]:Vt(it,ge)},Ur=()=>Et!==void 0?Et[mt]:mt,pr=()=>Et!==void 0?Et[zt]:zt,mi=()=>Xt,qr=I=>{var it;return I<=0||Zt?Ur():(it=gr(X[I-1].percent))!=null?it:""},bo=I=>{var it;return X.length<=1||I>=X.length-1||Zt?pr():(it=gr(X[I+1].percent))!=null?it:""},dr=()=>X.map(I=>I.percent),Rn=()=>X.map(I=>gr(I.percent)),Xe=()=>X.map(I=>I.$pointer),Ki=()=>mt,Zi=()=>zt,vi=()=>Et,bi=()=>re,gi=()=>ge,An=()=>Nt,wi=()=>oe,an=I=>Qe[I],ze=()=>Be,ue=()=>Lt,sn=()=>ce,ln=()=>He,_i=()=>xe,Bn=()=>Zt,In=()=>Oe,Ce=(I,it)=>{if(it===void 0)return;let jt=Ln(it);jt!==void 0&&(it=Rt(it,jt));let ae=X[I];if(!ae)return;let le=ae.updatePosition(it,Yi(I),zr(I),re,Be,Lt);At==null||At.updatePosition(re,X.map(te=>te.percent),Be,Lt),hr();for(let te of X){let ke=gr(te.percent);ke!==void 0&&(te.setAttr("aria-valuenow",ke.toString()),te.setAttr("aria-valuetext",ke.toString()))}xi(),le&&Fe(S,X.map(te=>gr(te.percent)))},lr=()=>{for(let I=0;I<X.length;I++)Ce(I,X[I].percent)},wr=(I,it)=>{mt=Et!==void 0?0:kt(I,yi),zt=Et!==void 0?Et.length-1:kt(it,Ze),Ue(mt),Dn(zt)},xi=()=>{var I,it;for(let jt=0;jt<X.length;jt++){let ae=X[jt];ae.setAttr("aria-valuemin",((I=qr(jt))!=null?I:"").toString()),ae.setAttr("aria-valuemax",((it=bo(jt))!=null?it:"").toString())}},Ue=I=>{mt=kt(I,yi),mt>zt&&(zt=mt+Ze),lr()},Dn=I=>{zt=kt(I,Ze),zt<mt&&(zt=mt+Ze),lr()},Lr=I=>{Zt=!0;for(let it=0;it<I.length;it++)Fn(I[it],it);Zt=!1;for(let it=0;it<I.length;it++)Fn(I[it],it)},Fn=(I,it)=>{let jt;Et!==void 0?(jt=I==null?0:ve(I,Et),jt===-1&&(jt=0)):(jt=kt(I,mt),jt<mt&&(jt=mt),jt>zt&&(jt=zt));let ae=ie(mt,zt,0,100,jt);Ce(it,ae)},Wr=I=>{if(I==null){Xt=void 0;return}if(typeof I=="function"){Xt=I,lr();return}if(St(I)){Xt=kt(I,1);let it=Math.abs(zt-mt);Xt>it&&(Xt=void 0),lr();return}Xt=void 0},Jr=I=>{Zt=I,lr()},ki=I=>{(!St(I)||I<0)&&(I=0),Nt=I},Nn=I=>{(!St(I)||I<0)&&(I=1/0),oe=I},_r=I=>{ce=I,F.classList.toggle("disabled",ce),ce?F.setAttribute("aria-disabled","true"):F.hasAttribute("aria-disabled")&&F.removeAttribute("aria-disabled")},cn=I=>{He=I},Rr=I=>{xe=I,xe?document.removeEventListener("wheel",Sn):document.addEventListener("wheel",Sn,{passive:!1})},Mn=I=>{if(I==null){Et=void 0;return}if(Et=Me(I),Et===void 0||Et.length<=0){Et=void 0;return}Ue(0),Dn(Et.length-1),Xt===void 0&&Wr(1)},er=I=>{var it;typeof I=="string"?re=I.trim().toLowerCase()===Mt?Mt:Jt:re=Jt;let jt=(it=S.shadowRoot)==null?void 0:it.querySelector(".range-slider-box");if(!jt)return;jt.className=`range-slider-box type-${re}`,lr();let ae=re===Mt?"vertical":"horizontal";for(let le of X)le.setAttr("aria-orientation",ae)},ji=I=>{Be=I,X.length>1&&Ui(X,Be,S),lr(),hr()},$n=I=>{Lt=I,X.length>1&&Ui(X,Lt,S),lr(),hr()},tr=I=>{ge=kt(I,br),ge<0&&(ge=br),hr()},Vn=I=>{I==null||I.toString().trim().toLowerCase()==="false"?(or=void 0,F.style.removeProperty(pe),F.classList.remove(vr)):(or=I.toString(),F.style.setProperty(pe,or),F.classList.add(vr))},qe=(I,it)=>{let jt=X[I];!jt||(jt.setAttr("aria-label",it),Qe[I]=it)},un=I=>{if(he=void 0,X.length<=1){Oe=!1,F.classList.remove(cr);return}Oe=I,F.classList.toggle(cr,Oe)},Yr=()=>{_r(_t(S.getAttribute(A))),He=_t(S.getAttribute(D)),xe=_t(S.getAttribute($));let I=jn(S,/^pointer([0-9]*)-disabled$/,it=>_t(it));for(let it of I){let jt=it[0];!X[jt]||(X[jt].disabled=it[1])}},go=()=>{let I=jn(S,/^aria-label([0-9]*)$/);for(let it of I){let jt=it[0];qe(jt,it[1])}},Kr=I=>{let it=X.length,jt=X[it-1].$pointer,ae=jt.cloneNode(!0);jt.after(ae);let le=me(S,ae,it);return le.setCallbacks(Tr,Wi,En,Pn),X.push(le),Fn(I,it),lr(),hr(),it},Oi=()=>{let I=X.length,it=X[I-1];return it?(it.destroy(),X.pop(),X.length<=1&&un(!1),lr(),hr(),I-1):-1};return(()=>{var I,it;for(let ae of X)ae.setCallbacks(Tr,Wi,En,Pn);let jt=(I=S.shadowRoot)==null?void 0:I.querySelector(".panel-fill");jt&&(At=Ee(jt)),er(S.getAttribute(x)),ji(_t(S.getAttribute(E))),$n(_t(S.getAttribute(P))),wr(S.getAttribute(v),S.getAttribute(b)),Wr(S.getAttribute(w)),Mn(S.getAttribute(m)),Lr(rt.map(ae=>ae[1])),Jr(_t(S.getAttribute(y))),ki(kt(S.getAttribute(j),0)),Nn(kt(S.getAttribute(i),1/0)),un(_t(S.getAttribute(d))),tr(kt(S.getAttribute(k),br)),Yr(),go(),qt=rn(S,F,X),Vn((it=S.getAttribute(bt))!=null?it:Ge),F.addEventListener("mousedown",qi),F.addEventListener("mouseup",ur),F.addEventListener("touchmove",ar),F.addEventListener("touchstart",ar),xe||document.addEventListener("wheel",Sn,{passive:!1}),dt=Hi(S,Tn,{setValues:Lr,setMin:Ue,setMax:Dn,setStep:Wr,setPointersOverlap:Jr,setPointersMinDistance:ki,setPointersMaxDistance:Nn,setDisabled:_r,setType:er,setRightToLeft:ji,setBottomToTop:$n,setRound:tr,setKeyboardDisabled:cn,setMousewheelDisabled:Rr,setRangeDragging:un,setData:Mn},{getPercents:dr,getValues:Rn,getPointerElements:Xe,getMin:Ki,getMax:Zi,getStep:mi,getData:vi,getType:bi,getRound:gi,getTextMin:Ur,getTextMax:pr,isRightToLeft:ze,isBottomToTop:ue,isDisabled:sn,isKeyboardDisabled:ln,isMousewheelDisabled:_i,isPointersOverlap:Bn,isRangeDraggingEnabled:In,getPointersMinDistance:An,getPointersMaxDistance:wi}),dt.init()})(),{get pointers(){return X},get styles(){return qt},get pluginsManager(){return dt},get min(){return Ur()},get max(){return pr()},get step(){return mi()},get pointersOverlap(){return Bn()},set pointersOverlap(I){Jr(I)},get pointersMinDistance(){return An()},set pointersMinDistance(I){ki(I)},get pointersMaxDistance(){return wi()},set pointersMaxDistance(I){Nn(I)},get disabled(){return sn()},set disabled(I){_r(I)},get data(){return vi()},get type(){return bi()},set type(I){er(I)},get rightToLeft(){return ze()},set rightToLeft(I){ji(I)},get bottomToTop(){return ue()},set bottomToTop(I){$n(I)},get round(){return gi()},set round(I){tr(I)},get animateOnClick(){return or},set animateOnClick(I){Vn(I)},get keyboardDisabled(){return ln()},set keyboardDisabled(I){cn(I)},get mousewheelDisabled(){return _i()},set mousewheelDisabled(I){Rr(I)},get rangeDragging(){return In()},set rangeDragging(I){un(I)},setMin:Ue,setMax:Dn,setValue:Fn,setStep:Wr,setData:Mn,getTextValue:gr,setAriaLabel:qe,getAriaLabel:an,addPointer:Kr,removePointer:Oi,destroy:()=>{F.removeEventListener("mousedown",qi),F.removeEventListener("mouseup",ur),F.removeEventListener("touchmove",ar),F.removeEventListener("touchstart",ar),document.removeEventListener("wheel",Sn);for(let I of X)I.destroy();dt==null||dt.destroy()}}},Vr=(S,F,rt)=>{let X=Vi.find(([dt,mt,zt,Xt])=>mt.replace("#","")===F.replace(/\d+/g,""));if(X&&S.styles){let[dt,mt,zt,Xt]=X,Et=F.replace(/\D/g,"").trim(),re=Et===""||Et==="0"||Et==="1"?0:kt(Et,0)-1;S.styles.setStyle(dt,rt,re);return}switch(S&&S.pluginsManager&&S.pluginsManager.onAttrChange(F,rt),F){case v:{S.setMin(rt);break}case b:{S.setMax(rt);break}case w:{S.setStep(rt);break}case y:{S.pointersOverlap=_t(rt);break}case j:{S.pointersMinDistance=kt(rt,0);break}case d:{S.rangeDragging=_t(rt);break}case i:{S.pointersMaxDistance=kt(rt,1/0);break}case A:{S.disabled=_t(rt);break}case D:{S.keyboardDisabled=_t(rt);break}case $:{S.mousewheelDisabled=_t(rt);break}case m:{S.setData(rt);break}case x:{S.type=rt;break}case E:{S.rightToLeft=_t(rt);break}case P:{S.bottomToTop=_t(rt);break}case k:{S.round=kt(rt,br);break}case C:{S.styles&&(S.styles.theme=rt);break}case bt:{S.animateOnClick=rt;break}}let ft=null;if(/^value([0-9]*)$/.test(F)&&(ft="value"),/^pointer([0-9]*)-disabled$/.test(F)&&(ft="pointer-disabled"),/^aria-label([0-9]*)$/.test(F)&&(ft="aria-label"),/^pointer([0-9]*)-shape$/.test(F)&&(ft="pointer-shape"),!ft)return;let At=F.replace(/\D/g,"").trim(),qt=At===""||At==="0"||At==="1"?0:kt(At,0)-1;switch(ft){case"value":{S.setValue(rt,qt);break}case"pointer-disabled":{let dt=S==null?void 0:S.pointers[qt];if(!dt)return;dt.disabled=_t(rt);break}case"aria-label":{S.setAriaLabel(qt,rt);break}case"pointer-shape":{S.styles&&S.styles.setPointerShape(qt,rt);break}}},mo=class extends HTMLElement{constructor(){super(),L(this,"slider"),L(this,"_externalCSSList",[]),L(this,"_observer",null),this.attachShadow({mode:"open"})}set step(S){this.slider&&this.slider.setStep(S)}get step(){var S;return(S=this.slider)==null?void 0:S.step}set disabled(S){this.slider&&(this.slider.disabled=S)}get disabled(){var S,F;return(F=(S=this.slider)==null?void 0:S.disabled)!=null?F:!1}set data(S){var F;(F=this.slider)==null||F.setData(S)}get data(){var S;return(S=this.slider)==null?void 0:S.data}set min(S){var F;(F=this.slider)==null||F.setMin(S)}get min(){var S;return(S=this.slider)==null?void 0:S.min}set max(S){var F;(F=this.slider)==null||F.setMax(S)}get max(){var S;return(S=this.slider)==null?void 0:S.max}set round(S){!this.slider||(this.slider.round=S)}get round(){var S,F;return(F=(S=this.slider)==null?void 0:S.round)!=null?F:br}set type(S){!this.slider||(this.slider.type=S??Jt)}get type(){var S;return((S=this.slider)==null?void 0:S.type)||Jt}set pointersOverlap(S){!this.slider||(this.slider.pointersOverlap=S)}get pointersOverlap(){var S,F;return(F=(S=this.slider)==null?void 0:S.pointersOverlap)!=null?F:!1}set pointersMinDistance(S){!this.slider||(this.slider.pointersMinDistance=S)}get pointersMinDistance(){var S,F;return(F=(S=this.slider)==null?void 0:S.pointersMinDistance)!=null?F:0}set pointersMaxDistance(S){!this.slider||(this.slider.pointersMaxDistance=S)}get pointersMaxDistance(){var S,F;return(F=(S=this.slider)==null?void 0:S.pointersMaxDistance)!=null?F:1/0}set theme(S){!this.slider||!this.slider.styles||(this.slider.styles.theme=S)}get theme(){var S,F,rt;return(rt=(F=(S=this.slider)==null?void 0:S.styles)==null?void 0:F.theme)!=null?rt:null}set rtl(S){!this.slider||(this.slider.rightToLeft=S)}get rtl(){var S,F;return(F=(S=this.slider)==null?void 0:S.rightToLeft)!=null?F:!1}set btt(S){!this.slider||(this.slider.bottomToTop=S)}get btt(){var S,F;return(F=(S=this.slider)==null?void 0:S.bottomToTop)!=null?F:!1}set keyboardDisabled(S){!this.slider||(this.slider.keyboardDisabled=S)}get keyboardDisabled(){var S,F;return(F=(S=this.slider)==null?void 0:S.keyboardDisabled)!=null?F:!1}set mousewheelDisabled(S){!this.slider||(this.slider.mousewheelDisabled=S)}get mousewheelDisabled(){var S,F;return(F=(S=this.slider)==null?void 0:S.mousewheelDisabled)!=null?F:!1}set animateOnClick(S){!this.slider||(this.slider.animateOnClick=S)}get animateOnClick(){var S;return(S=this.slider)==null?void 0:S.animateOnClick}get rangeDragging(){var S,F;return(F=(S=this.slider)==null?void 0:S.rangeDragging)!=null?F:!1}set rangeDragging(S){this.slider&&(this.slider.rangeDragging=_t(S))}get externalCSSList(){return this._externalCSSList}addPointer(S){var F,rt;if(!this.slider)return;let X=(rt=(F=this.slider)==null?void 0:F.addPointer(S))!=null?rt:0;On(this,this.slider,X,`value${X+1}`,`ariaLabel${X+1}`,`pointerShape${X+1}`,`pointer${X+1}Disabled`)}removePointer(){var S;!this.slider||(S=this.slider)==null||S.removePointer()}addCSS(S){if(!this.shadowRoot)return;let F=document.createElement("style");F.textContent=S,this.shadowRoot.appendChild(F)}connectedCallback(){var S,F;if(!this.shadowRoot)return;this._externalCSSList=Nr(this),this.shadowRoot.innerHTML=R(J,this._externalCSSList);let rt=(S=this.shadowRoot)==null?void 0:S.querySelector(".pointer");if(!rt)return;let X=(F=this.shadowRoot)==null?void 0:F.getElementById("range-slider");if(!X)return;let ft=Pr(this,rt);this.slider=nn(this,X,ft),nr(this,this.slider),this._observer=new MutationObserver(At=>{At.forEach(qt=>{var dt;if(!this.slider||qt.type!=="attributes")return;let mt=qt.attributeName;!mt||Vr(this.slider,mt,(dt=this.getAttribute(mt))!=null?dt:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},ir=mo;window.tcRangeSlider=ir,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",ir),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends ir{})})();function $l(G,g){Object.keys(g).forEach(O=>{G.setAttribute(O,g[O])})}class Vl extends Ml{register(){super.register()}unregister(){super.unregister()}build(){const g=this.schema.properties,O=this.options,L=this.schema.description,R=this.theme,J=this.defaults.startVals[this.key];O.compact||(this.header=this.label=R.getFormInputLabel(this.getTitle(),this.isRequired())),L&&(this.description=R.getFormInputDescription(this.translateProperty(L))),O.infoText&&(this.infoButton=R.getInfoButton(this.translateProperty(O.infoText)));const y=document.createElement("tc-range-slider"),j=Object.keys(g).find(m=>m.includes("min")),i=Object.keys(g).find(m=>m.includes("max")),d={min:g[j].minimum,max:g[i].maximum,value1:(J==null?void 0:J[j])||g[j].default,value2:(J==null?void 0:J[i])||g[i].default,"slider-bg-fill":"#004170","generate-labels":"true","slider-width":"100%","range-dragging":"false"};$l(y,d),this.input=y,this.input.id=this.formname,this.control=R.getFormControl(this.label,this.input,this.description,this.infoButton),(this.schema.readOnly||this.schema.readonly)&&(this.disable(!0),this.input.disabled=!0),this.input.addEventListener("change",m=>{m.preventDefault(),m.stopPropagation(),this.value={[j]:m.detail.value1,[i]:m.detail.value2},this.onChange(!0)}),this.container.appendChild(this.control)}destroy(){this.label&&this.label.parentNode&&this.label.parentNode.removeChild(this.label),this.description&&this.description.parentNode&&this.description.parentNode.removeChild(this.description),this.input&&this.input.parentNode&&this.input.parentNode.removeChild(this.input),super.destroy()}}const Hl=[{type:"object",format:"minmax",func:Vl}],zl=G=>{Hl.map(({type:g,format:O,func:L})=>{co.JSONEditor.defaults.startVals=G,co.JSONEditor.defaults.editors[O]=L,co.JSONEditor.defaults.resolvers.unshift(R=>{if(R.type===g&&R.format===O)return O})})};var Di,hi,sa,Va,la,ts;class es extends Bi{constructor(){super(),lo(this,sa),lo(this,la),lo(this,Di,{}),lo(this,hi,null),this.schema,this.startVals,this.options={show_opt_in:!1,disable_collapse:!0,disable_edit_json:!0,disable_properties:!0,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,array_controls_top:!0},this.unstyled=!1}getSchema(){return this.schema}setSchema(g){this.schema=g}getDefaultValues(){return this.startVals}setDefaultValues(g){this.startVals=g}getValues(){return Ri(this,Di)}firstUpdated(){if(!Ri(this,hi)){zl(this.startVals||{});const g=this.renderRoot.querySelector("form");Ha(this,hi,new co.JSONEditor(g,{schema:this.schema,...this.startVals?{startval:this.startVals}:{},theme:"html",ajax:!0,...this.options})),za(this,la,ts).call(this)}}render(){return Cl`
234
+ <style>
235
+ ${Bl}
236
+ ${!this.unstyled&&Nl}
237
+ </style>
238
+ <form></form>
239
+ `}}Di=new WeakMap,hi=new WeakMap,sa=new WeakSet,Va=function(){this.dispatchEvent(new CustomEvent("change",{detail:Ri(this,Di),bubbles:!0,composed:!0})),this.requestUpdate()},la=new WeakSet,ts=function(){["ready","change"].map(G=>{Ri(this,hi).on(G,()=>{Ha(this,Di,Ri(this,hi).getValue()),za(this,sa,Va).call(this)})})},pl(es,"properties",{schema:{attribute:!1,type:Object},startVals:{attribute:!1,type:Object},options:{attribute:!1,type:Object},unstyled:{type:Boolean}});customElements.define("eox-jsonform",es);export{es as EOxJSONForm};