From 9b2fdb8098c5e3b9e555a242501977b3a7d6008a Mon Sep 17 00:00:00 2001 From: Jordan GAZEAU Date: Wed, 17 Jul 2024 07:17:22 +0200 Subject: [PATCH] feat: add json-editor shortcode --- .bmycconfig.json | 12 ++ .github/workflows/hugo.yml | 3 +- .../js/external/json-editor/jsoneditor.min.js | 1 + assets/js/shortcodes/jsoneditor.js | 60 ++++++++++ assets/sass/theme/main.sass | 1 + assets/sass/theme/shortcodes_jsoneditor.sass | 104 ++++++++++++++++++ assets/sass/theme/variables.sass | 4 + data/themeParams.toml | 4 + .../content/english/shortcodes/jsoneditor.md | 25 +++++ layouts/shortcodes/jsoneditor.html | 7 ++ 10 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 assets/js/external/json-editor/jsoneditor.min.js create mode 100644 assets/js/shortcodes/jsoneditor.js create mode 100644 assets/sass/theme/shortcodes_jsoneditor.sass create mode 100644 exampleSite/content/english/shortcodes/jsoneditor.md create mode 100644 layouts/shortcodes/jsoneditor.html diff --git a/.bmycconfig.json b/.bmycconfig.json index 731f2fbc..d2569598 100644 --- a/.bmycconfig.json +++ b/.bmycconfig.json @@ -131,6 +131,18 @@ }, "currentVersion": "7.2.0" }, + { + "package": "json-editor", + "hold": false, + "name": "js/json-editor", + "localPath": "assets/js/external/json-editor/jsoneditor.min.js", + "assetManager": { + "name": "cdnjs", + "library": "json-editor", + "fileName": "jsoneditor.min.js" + }, + "currentVersion": "2.15.1" + }, { "package": "fontawesome", "hold": false, diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 1e579507..d6218782 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -6,6 +6,7 @@ on: push: branches: - main + pull_request: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -61,7 +62,7 @@ jobs: --gc \ --minify \ --source exampleSite \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + --baseURL "${{ steps.pages.outputs.base_url }}/shadocs/" - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/assets/js/external/json-editor/jsoneditor.min.js b/assets/js/external/json-editor/jsoneditor.min.js new file mode 100644 index 00000000..91658bd2 --- /dev/null +++ b/assets/js/external/json-editor/jsoneditor.min.js @@ -0,0 +1 @@ +!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r,n=e();for(r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,()=>(()=>{"use strict";var i={9306:(t,e,r)=>{var n=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},5548:(t,e,r)=>{var n=r(3517),i=r(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a constructor")}},3506:(t,e,r)=>{var n=r(3925),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},6469:(t,e,r)=>{var n=r(8227),i=r(2360),r=r(4913).f,o=n("unscopables"),a=Array.prototype;void 0===a[o]&&r(a,o,{configurable:!0,value:i(null)}),t.exports=function(t){a[o][t]=!0}},7829:(t,e,r)=>{var n=r(8183).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},679:(t,e,r)=>{var n=r(1625),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},8551:(t,e,r)=>{var n=r(34),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},235:(t,e,r)=>{var n=r(9213).forEach,r=r(4598)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,1{var p=r(6080),d=r(9565),f=r(8981),y=r(6319),m=r(4209),b=r(3517),v=r(6198),g=r(4659),w=r(81),_=r(851),k=Array;t.exports=function(t){var e=f(t),t=b(this),r=arguments.length,n=1{function n(s){return function(t,e,r){var n=l(t),i=u(n);if(0===i)return!s&&-1;var o,a=c(r,i);if(s&&e!=e){for(;a{function n(p){var d=1===p,f=2===p,y=3===p,m=4===p,b=6===p,v=7===p,g=5===p||b;return function(t,e,r,n){for(var i,o,a=k(t),s=_(a),l=j(s),c=w(e,r),u=0,e=n||O,h=d?e(t,l):f||v?e(t,0):void 0;u{var n=r(9039),i=r(8227),o=r(7388),a=i("species");t.exports=function(e){return 51<=o||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},4598:(t,e,r)=>{var n=r(9039);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){return 1},1)})}},926:(t,e,r)=>{function n(c){return function(t,e,r,n){var i=h(t),o=p(i),a=d(i);if(u(e),0===a&&r<2)throw new f(y);var s=c?a-1:0,l=c?-1:1;if(r<2)for(;;){if(s in o){n=o[s],s+=l;break}if(s+=l,c?s<0:a<=s)throw new f(y)}for(;c?0<=s:s{var n=r(3724),i=r(4376),o=TypeError,a=Object.getOwnPropertyDescriptor,r=n&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=r?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:(t,e,r)=>{r=r(9504);t.exports=r([].slice)},4488:(t,e,r)=>{function d(t,e){var r=t.length;if(r<8)for(var n,i,o=1;o{var n=r(4376),i=r(3517),o=r(34),a=r(8227)("species"),s=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(i(e)&&(e===s||n(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:(t,e,r)=>{var n=r(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6319:(t,e,r)=>{var i=r(8551),o=r(9539);t.exports=function(t,e,r,n){try{return n?e(i(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},4428:(t,e,r)=>{var i=r(8227)("iterator"),o=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},4576:(t,e,r)=>{var r=r(9504),n=r({}.toString),i=r("".slice);t.exports=function(t){return i(n(t),8,-1)}},6955:(t,e,r)=>{var n=r(2140),i=r(4901),o=r(4576),a=r(8227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=s(t),a))?e:l?o(t):"Object"===(e=o(t))&&i(t.callee)?"Arguments":e}},7740:(t,e,r)=>{var l=r(9297),c=r(5031),u=r(7347),h=r(4913);t.exports=function(t,e,r){for(var n=c(e),i=h.f,o=u.f,a=0;a{var n=r(8227)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,"/./"[e](r)}catch(e){}}return!1}},2211:(t,e,r)=>{r=r(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529:t=>{t.exports=function(t,e){return{value:t,done:e}}},6699:(t,e,r)=>{var n=r(3724),i=r(4913),o=r(6980);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},6980:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:(t,e,r)=>{var n=r(3724),i=r(4913),o=r(6980);t.exports=function(t,e,r){n?i.f(t,e,o(0,r)):t[e]=r}},380:(t,e,r)=>{var n=r(9504),i=r(9039),o=r(533).start,a=RangeError,s=isFinite,l=Math.abs,r=Date.prototype,c=r.toISOString,u=n(r.getTime),h=n(r.getUTCDate),p=n(r.getUTCFullYear),d=n(r.getUTCHours),f=n(r.getUTCMilliseconds),y=n(r.getUTCMinutes),m=n(r.getUTCMonth),b=n(r.getUTCSeconds);t.exports=i(function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-50000000000001))})||!i(function(){c.call(new Date(NaN))})?function(){if(!s(u(this)))throw new a("Invalid time value");var t=this,e=p(t),r=f(t),n=e<0?"-":9999{var n=r(8551),i=r(4270),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},2106:(t,e,r)=>{var n=r(283),i=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},6840:(t,e,r)=>{var a=r(4901),s=r(4913),l=r(283),c=r(9433);t.exports=function(t,e,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:e;if(a(r)&&l(r,o,n),n.global)i?t[e]=r:c(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=r:s.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t}},9433:(t,e,r)=>{var n=r(4475),i=Object.defineProperty;t.exports=function(e,r){try{i(n,e,{value:r,configurable:!0,writable:!0})}catch(t){n[e]=r}return r}},4606:(t,e,r)=>{var n=r(6823),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+n(e)+" of "+n(t))}},3724:(t,e,r)=>{r=r(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:(t,e,r)=>{var n=r(4475),r=r(34),i=n.document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},6837:t=>{var e=TypeError;t.exports=function(t){if(9007199254740991{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:(t,e,r)=>{r=r(4055)("span").classList,r=r&&r.constructor&&r.constructor.prototype;t.exports=r===Object.prototype?void 0:r},8834:(t,e,r)=>{r=r(9392).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},7290:(t,e,r)=>{var n=r(516),r=r(9088);t.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},6763:t=>{t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},516:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},3202:(t,e,r)=>{r=r(9392);t.exports=/MSIE|Trident/.test(r)},28:(t,e,r)=>{r=r(9392);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},8119:(t,e,r)=>{r=r(9392);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},9088:(t,e,r)=>{var n=r(4475),r=r(4576);t.exports="process"===r(n.process)},6765:(t,e,r)=>{r=r(9392);t.exports=/web0s(?!.*chrome)/i.test(r)},9392:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,e,r)=>{var n,i,o=r(4475),r=r(9392),a=o.process,o=o.Deno,a=a&&a.versions||o&&o.version,o=a&&a.v8;!(i=o?0<(n=o.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):i)&&r&&(!(n=r.match(/Edge\/(\d+)/))||74<=n[1])&&(n=r.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},9160:(t,e,r)=>{r=r(9392).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(t,e,r)=>{var c=r(4475),u=r(7347).f,h=r(6699),p=r(6840),d=r(9433),f=r(7740),y=r(2796);t.exports=function(t,e){var r,n,i,o,a=t.target,s=t.global,l=t.stat;if(r=s?c:l?c[a]||d(a,{}):c[a]&&c[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(o=u(r,n))&&o.value:r[n],!y(s?n:a+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;f(i,o)}(t.sham||o&&o.sham)&&h(i,"sham",!0),p(r,n,i,t)}}},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:(t,e,r)=>{r(7495);var l=r(9565),c=r(6840),u=r(7323),h=r(9039),p=r(8227),d=r(6699),f=p("species"),y=RegExp.prototype;t.exports=function(r,t,e,n){var a,i=p(r),s=!h(function(){var t={};return t[i]=function(){return 7},7!==""[r](t)}),o=s&&!h(function(){var t=!1,e=/a/;return"split"===r&&((e={}).constructor={},e.constructor[f]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t});s&&o&&!e||(a=/./[i],o=t(i,""[r],function(t,e,r,n,i){var o=e.exec;return o===u||o===y.exec?s&&!i?{done:!0,value:l(a,e,r,n)}:{done:!0,value:l(t,r,e,n)}:{done:!1}}),c(String.prototype,r,o[0]),c(y,i,o[1])),n&&d(y[i],"sham",!0)}},8745:(t,e,r)=>{var r=r(616),n=Function.prototype,i=n.apply,o=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},6080:(t,e,r)=>{var n=r(7476),i=r(9306),o=r(616),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},616:(t,e,r)=>{r=r(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},566:(t,e,r)=>{var n=r(9504),i=r(9306),o=r(34),u=r(9297),h=r(7680),r=r(616),p=Function,d=n([].concat),f=n([].join),y={};t.exports=r?p.bind:function(a){var s=i(this),t=s.prototype,l=h(arguments,1),c=function(){var t=d(l,h(arguments));if(this instanceof c){var e=s,r=t.length,n=t;if(!u(y,r)){for(var i=[],o=0;o{var r=r(616),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},350:(t,e,r)=>{var n=r(3724),r=r(9297),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,r=r(i,"name"),a=r&&"something"===function(){}.name,n=r&&(!n||o(i,"name").configurable);t.exports={EXISTS:r,PROPER:a,CONFIGURABLE:n}},6706:(t,e,r)=>{var n=r(9504),i=r(9306);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},7476:(t,e,r)=>{var n=r(4576),i=r(9504);t.exports=function(t){if("Function"===n(t))return i(t)}},9504:(t,e,r)=>{var r=r(616),n=Function.prototype,i=n.call,n=r&&n.bind.bind(i,i);t.exports=r?n:function(t){return function(){return i.apply(t,arguments)}}},7751:(t,e,r)=>{var n=r(4475),i=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},851:(t,e,r)=>{var n=r(6955),i=r(5966),o=r(4117),a=r(6269),s=r(8227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[n(t)]}},81:(t,e,r)=>{var n=r(9565),i=r(9306),o=r(8551),a=r(6823),s=r(851),l=TypeError;t.exports=function(t,e){e=arguments.length<2?s(t):e;if(i(e))return o(n(e,t));throw new l(a(t)+" is not iterable")}},6933:(t,e,r)=>{var n=r(9504),s=r(4376),l=r(4901),c=r(4576),u=r(655),h=n([].push);t.exports=function(t){if(l(t))return t;if(s(t)){for(var e=t.length,n=[],r=0;r{var n=r(9306),i=r(4117);t.exports=function(t,e){t=t[e];return i(t)?void 0:n(t)}},2478:(t,e,r)=>{var n=r(9504),i=r(8981),p=Math.floor,d=n("".charAt),f=n("".replace),y=n("".slice),m=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;t.exports=function(o,a,s,l,c,t){var u=s+o.length,h=l.length,e=b;return void 0!==c&&(c=i(c),e=m),f(t,e,function(t,e){var r;switch(d(e,0)){case"$":return"$";case"&":return o;case"`":return y(a,0,s);case"'":return y(a,u);case"<":r=c[y(e,1,-1)];break;default:var n,i=+e;if(0==i)return t;if(h{var n=r(9504),i=r(8981),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},421:t=>{t.exports={}},3138:t=>{t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:(t,e,r)=>{r=r(7751);t.exports=r("document","documentElement")},5917:(t,e,r)=>{var n=r(3724),i=r(9039),o=r(4055);t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055:(t,e,r)=>{var n=r(9504),i=r(9039),o=r(4576),a=Object,s=n("".split);t.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?s(t,""):a(t)}:a},3167:(t,e,r)=>{var n=r(4901),i=r(34),o=r(2967);t.exports=function(t,e,r){return o&&n(e=e.constructor)&&e!==r&&i(e=e.prototype)&&e!==r.prototype&&o(t,e),t}},3706:(t,e,r)=>{var n=r(9504),i=r(4901),r=r(7629),o=n(Function.toString);i(r.inspectSource)||(r.inspectSource=function(t){return o(t)}),t.exports=r.inspectSource},1181:(t,e,r)=>{var n,i,o,a,s=r(8622),l=r(4475),c=r(34),u=r(6699),h=r(9297),p=r(7629),d=r(6119),r=r(421),f="Object already initialized",y=l.TypeError,l=l.WeakMap,m=s||p.state?((o=p.state||(p.state=new l)).get=o.get,o.has=o.has,o.set=o.set,n=function(t,e){if(o.has(t))throw new y(f);return e.facade=t,o.set(t,e),e},i=function(t){return o.get(t)||{}},function(t){return o.has(t)}):(r[a=d("state")]=!0,n=function(t,e){if(h(t,a))throw new y(f);return e.facade=t,u(t,a,e),e},i=function(t){return h(t,a)?t[a]:{}},function(t){return h(t,a)});t.exports={set:n,get:i,has:m,enforce:function(t){return m(t)?i(t):n(t,{})},getterFor:function(e){return function(t){if(c(t)&&(t=i(t)).type===e)return t;throw new y("Incompatible receiver, "+e+" required")}}}},4209:(t,e,r)=>{var n=r(8227),i=r(6269),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},4376:(t,e,r)=>{var n=r(4576);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:(t,e,r)=>{function n(){}function i(t){if(!l(t))return!1;try{return p(n,[],t),!0}catch(t){return!1}}function o(t){if(!l(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!f(d,h(t))}catch(t){return!0}}var a=r(9504),s=r(9039),l=r(4901),c=r(6955),u=r(7751),h=r(3706),p=u("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=a(d.exec),y=!d.test(n);o.sham=!0,t.exports=!p||s(function(){var t;return i(i.call)||!i(Object)||!i(function(){t=!0})||t})?o:i},6575:(t,e,r)=>{var n=r(9297);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},2796:(t,e,r)=>{function n(t,e){return(t=l[s(t)])===u||t!==c&&(o(e)?i(e):!!e)}var i=r(9039),o=r(4901),a=/#|\.prototype\./,s=n.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",u=n.POLYFILL="P";t.exports=n},4117:t=>{t.exports=function(t){return null==t}},34:(t,e,r)=>{var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:(t,e,r)=>{var n=r(34);t.exports=function(t){return n(t)||null===t}},6395:t=>{t.exports=!1},788:(t,e,r)=>{var n=r(34),i=r(4576),o=r(8227)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===i(t))}},757:(t,e,r)=>{var n=r(7751),i=r(4901),o=r(1625),r=r(7040),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,a(t))}},2652:(t,e,r)=>{function b(t,e){this.stopped=t,this.result=e}var v=r(6080),g=r(9565),w=r(8551),_=r(6823),k=r(4209),j=r(6198),O=r(1625),x=r(81),C=r(851),E=r(9539),S=TypeError,P=b.prototype;t.exports=function(t,e,r){function n(t){return o&&E(o,"normal",t),new b(!0,t)}function i(t){return p?(w(t),y?m(t[0],t[1],n):m(t[0],t[1])):y?m(t,n):m(t)}var o,a,s,l,c,u,h=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),m=v(e,h);if(d)o=t.iterator;else if(f)o=t;else{if(!(r=C(t)))throw new S(_(t)+" is not iterable");if(k(r)){for(a=0,s=j(t);a{var o=r(9565),a=r(8551),s=r(5966);t.exports=function(t,e,r){var n,i;a(t);try{if(!(n=s(t,"return"))){if("throw"===e)throw r;return r}n=o(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return a(n),r}},3994:(t,e,r)=>{function i(){return this}var o=r(7657).IteratorPrototype,a=r(2360),s=r(6980),l=r(687),c=r(6269);t.exports=function(t,e,r,n){e+=" Iterator";return t.prototype=a(o,{next:s(+!n,r)}),l(t,e,!1,!0),c[e]=i,t}},1088:(t,e,r)=>{function y(){return this}var m=r(6518),b=r(9565),v=r(6395),n=r(350),g=r(4901),w=r(3994),_=r(2787),k=r(2967),j=r(687),O=r(6699),x=r(6840),i=r(8227),C=r(6269),r=r(7657),E=n.PROPER,S=n.CONFIGURABLE,P=r.IteratorPrototype,T=r.BUGGY_SAFARI_ITERATORS,L=i("iterator"),A="values",R="entries";t.exports=function(t,e,r,n,i,o,a){w(r,e,n);function s(t){if(t===i&&d)return d;if(!T&&t&&t in h)return h[t];switch(t){case"keys":case A:case R:return function(){return new r(this,t)}}return function(){return new r(this)}}var l,c,n=e+" Iterator",u=!1,h=t.prototype,p=h[L]||h["@@iterator"]||i&&h[i],d=!T&&p||s(i),f="Array"===e&&h.entries||p;if(f&&(f=_(f.call(new t)))!==Object.prototype&&f.next&&(v||_(f)===P||(k?k(f,P):g(f[L])||x(f,L,y)),j(f,n,!0,!0),v&&(C[n]=y)),E&&i===A&&p&&p.name!==A&&(!v&&S?O(h,"name",A):(u=!0,d=function(){return b(p,this)})),i)if(l={values:s(A),keys:o?d:s("keys"),entries:s(R)},a)for(c in l)!T&&!u&&c in h||x(h,c,l[c]);else m({target:e,proto:!0,forced:T||u},l);return v&&!a||h[L]===d||x(h,L,d,{name:i}),C[e]=d,l}},7657:(t,e,r)=>{var n,i,o=r(9039),a=r(4901),s=r(34),l=r(2360),c=r(2787),u=r(6840),h=r(8227),r=r(6395),p=h("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(c=c(c(i)))!==Object.prototype&&(n=c):h=!0),!s(n)||o(function(){var t={};return n[p].call(t)!==t})?n={}:r&&(n=l(n)),a(n[p])||u(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},6269:t=>{t.exports={}},6198:(t,e,r)=>{var n=r(8014);t.exports=function(t){return n(t.length)}},283:(t,e,r)=>{var n=r(9504),i=r(9039),o=r(4901),a=r(9297),s=r(3724),l=r(350).CONFIGURABLE,c=r(3706),r=r(1181),u=r.enforce,h=r.get,p=String,d=Object.defineProperty,f=n("".slice),y=n("".replace),m=n([].join),b=s&&!i(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),r=t.exports=function(t,e,r){"Symbol("===f(p(e),0,7)&&(e="["+y(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),b&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}r=u(t);return a(r,"source")||(r.source=m(v,"string"==typeof e?e:"")),t};Function.prototype.toString=r(function(){return o(this)&&h(this).source||c(this)},"toString")},741:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0{var n,i,o,a,s,l,c=r(4475),u=r(3389),h=r(6080),p=r(9225).set,d=r(8265),f=r(8119),y=r(28),m=r(6765),b=r(9088),r=c.MutationObserver||c.WebKitMutationObserver,v=c.document,g=c.process,w=c.Promise,u=u("queueMicrotask");u||(a=new d,s=function(){var t,e;for(b&&(t=g.domain)&&t.exit();e=a.get();)try{e()}catch(t){throw a.head&&l(),t}t&&t.enter()},l=f||b||m||!r||!v?!y&&w&&w.resolve?((d=w.resolve(void 0)).constructor=w,o=h(d.then,d),function(){o(s)}):b?function(){g.nextTick(s)}:(p=h(p,c),function(){p(s)}):(n=!0,i=v.createTextNode(""),new r(s).observe(i,{characterData:!0}),function(){i.data=n=!n}),u=function(t){a.head||l(),a.add(t)}),t.exports=u},6043:(t,e,r)=>{function n(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw new o("Bad Promise constructor");r=t,n=e}),this.resolve=i(r),this.reject=i(n)}var i=r(9306),o=TypeError;t.exports.f=function(t){return new n(t)}},5749:(t,e,r)=>{var n=r(788),i=TypeError;t.exports=function(t){if(n(t))throw new i("The method doesn't accept regular expressions");return t}},3904:(t,e,r)=>{var n=r(4475),i=r(9039),o=r(9504),a=r(655),s=r(3802).trim,r=r(7452),l=o("".charAt),c=n.parseFloat,o=n.Symbol,u=o&&o.iterator,n=1/c(r+"-0")!=-1/0||u&&!i(function(){c(Object(u))});t.exports=n?function(t){var t=s(a(t)),e=c(t);return 0===e&&"-"===l(t,0)?-0:e}:c},2703:(t,e,r)=>{var n=r(4475),i=r(9039),o=r(9504),a=r(655),s=r(3802).trim,r=r(7452),l=n.parseInt,n=n.Symbol,c=n&&n.iterator,u=/^[+-]?0x/i,h=o(u.exec),n=8!==l(r+"08")||22!==l(r+"0x16")||c&&!i(function(){l(Object(c))});t.exports=n?function(t,e){t=s(a(t));return l(t,e>>>0||(h(u,t)?16:10))}:l},4213:(t,e,r)=>{var p=r(3724),n=r(9504),d=r(9565),i=r(9039),f=r(1072),y=r(3717),m=r(8773),b=r(8981),v=r(7055),o=Object.assign,a=Object.defineProperty,g=n([].concat);t.exports=!o||i(function(){if(p&&1!==o({b:1},o(a({},"a",{enumerable:!0,get:function(){a(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!==o({},t)[r]||f(o({},e)).join("")!==n})?function(t,e){for(var r=b(t),n=arguments.length,i=1,o=y.f,a=m.f;i{function n(){}function i(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e}var o,a=r(8551),s=r(6801),l=r(8727),c=r(421),u=r(397),h=r(4055),r=r(6119),p="prototype",d="script",f=r("IE_PROTO"),y=function(t){return"<"+d+">"+t+""},m=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;m="undefined"==typeof document||document.domain&&o?i(o):(e=h("iframe"),r="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F);for(var n=l.length;n--;)delete m[p][l[n]];return m()};c[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[p]=a(t),r=new n,n[p]=null,r[f]=t):r=m(),void 0===e?r:s.f(r,e)}},6801:(t,e,r)=>{var n=r(3724),i=r(8686),s=r(4913),l=r(8551),c=r(5397),u=r(1072);e.f=n&&!i?Object.defineProperties:function(t,e){l(t);for(var r,n=c(e),i=u(e),o=i.length,a=0;a{var n=r(3724),i=r(5917),o=r(8686),a=r(8551),s=r(6969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",d="writable";e.f=n?o?function(t,e,r){var n;return a(t),e=s(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]&&(n=u(t,e))&&n[d]&&(t[e]=r.value,r={configurable:(p in r?r:n)[p],enumerable:(h in r?r:n)[h],writable:!1}),c(t,e,r)}:c:function(t,e,r){if(a(t),e=s(e),a(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:(t,e,r)=>{var n=r(3724),i=r(9565),o=r(8773),a=r(6980),s=r(5397),l=r(6969),c=r(9297),u=r(5917),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},298:(t,e,r)=>{var n=r(4576),i=r(5397),o=r(8480).f,a=r(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){if(!s||"Window"!==n(t))return o(i(t));var e=t;try{return o(e)}catch(e){return a(s)}}},8480:(t,e,r)=>{var n=r(1828),i=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3717:(t,e)=>{e.f=Object.getOwnPropertySymbols},2787:(t,e,r)=>{var n=r(9297),i=r(4901),o=r(8981),a=r(6119),r=r(2211),s=a("IE_PROTO"),l=Object,c=l.prototype;t.exports=r?l.getPrototypeOf:function(t){t=o(t);if(n(t,s))return t[s];var e=t.constructor;return i(e)&&t instanceof e?e.prototype:t instanceof l?c:null}},1625:(t,e,r)=>{r=r(9504);t.exports=r({}.isPrototypeOf)},1828:(t,e,r)=>{var n=r(9504),a=r(9297),s=r(5397),l=r(9617).indexOf,c=r(421),u=n([].push);t.exports=function(t,e){var r,n=s(t),i=0,o=[];for(r in n)!a(c,r)&&a(n,r)&&u(o,r);for(;e.length>i;)!a(n,r=e[i++])||~l(o,r)||u(o,r);return o}},1072:(t,e,r)=>{var n=r(1828),i=r(8727);t.exports=Object.keys||function(t){return n(t,i)}},8773:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){t=n(this,t);return!!t&&t.enumerable}:r},2967:(t,e,r)=>{var i=r(6706),o=r(34),a=r(7750),s=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=i(Object.prototype,"__proto__","set"))(t,[]),n=t instanceof Array}catch(r){}return function(t,e){return a(t),s(e),o(t)&&(n?r(t,e):t.__proto__=e),t}}():void 0)},2357:(t,e,r)=>{function n(l){return function(t){for(var e,r=p(t),n=h(r),i=y&&null===u(r),o=n.length,a=0,s=[];a{var n=r(2140),i=r(6955);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},4270:(t,e,r)=>{var i=r(9565),o=r(4901),a=r(34),s=TypeError;t.exports=function(t,e){var r,n;if("string"===e&&o(r=t.toString)&&!a(n=i(r,t)))return n;if(o(r=t.valueOf)&&!a(n=i(r,t)))return n;if("string"!==e&&o(r=t.toString)&&!a(n=i(r,t)))return n;throw new s("Can't convert object to primitive value")}},5031:(t,e,r)=>{var n=r(7751),i=r(9504),o=r(8480),a=r(3717),s=r(8551),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=a.f;return r?l(e,r(t)):e}},9167:(t,e,r)=>{r=r(4475);t.exports=r},1103:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:(t,e,r)=>{var n=r(4475),i=r(550),o=r(4901),a=r(2796),s=r(3706),l=r(8227),c=r(7290),u=r(516),h=r(6395),p=r(7388),d=i&&i.prototype,f=l("species"),y=!1,m=o(n.PromiseRejectionEvent),r=a("Promise",function(){var t=s(i),e=t!==String(i);if(!e&&66===p)return!0;if(h&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(t)){var t=new i(function(t){t(1)}),r=function(t){t(function(){},function(){})};if((t.constructor={})[f]=r,!(y=t.then(function(){})instanceof r))return!0}return!e&&(c||u)&&!m});t.exports={CONSTRUCTOR:r,REJECTION_EVENT:m,SUBCLASSING:y}},550:(t,e,r)=>{r=r(4475);t.exports=r.Promise},3438:(t,e,r)=>{var n=r(8551),i=r(34),o=r(6043);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},537:(t,e,r)=>{var n=r(550),i=r(4428),r=r(916).CONSTRUCTOR;t.exports=r||!i(function(t){n.all(t).then(void 0,function(){})})},1056:(t,e,r)=>{var n=r(4913).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},8265:t=>{function e(){this.head=null,this.tail=null}e.prototype={add:function(t){var t={item:t,next:null},e=this.tail;e?e.next=t:this.head=t,this.tail=t},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},6682:(t,e,r)=>{var n=r(9565),i=r(8551),o=r(4901),a=r(4576),s=r(7323),l=TypeError;t.exports=function(t,e){var r=t.exec;if(o(r))return null!==(r=n(r,t,e))&&i(r),r;if("RegExp"===a(t))return n(s,t,e);throw new l("RegExp#exec called on incompatible receiver")}},7323:(t,e,r)=>{var f=r(9565),n=r(9504),y=r(655),m=r(7979),i=r(8429),o=r(5745),b=r(2360),v=r(1181).get,a=r(3635),r=r(8814),g=o("native-string-replace",String.prototype.replace),w=RegExp.prototype.exec,_=w,k=n("".charAt),j=n("".indexOf),O=n("".replace),x=n("".slice),C=(o=/b*/g,f(w,n=/a/,"a"),f(w,o,"a"),0!==n.lastIndex||0!==o.lastIndex),E=i.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(C||S||E||a||r)&&(_=function(t){var e,r,n,i,o,a,s=this,l=v(s),t=y(t),c=l.raw;if(c)return c.lastIndex=s.lastIndex,h=f(_,c,t),s.lastIndex=c.lastIndex,h;var u=l.groups,c=E&&s.sticky,h=f(m,s),l=s.source,p=0,d=t;if(c&&(h=O(h,"y",""),-1===j(h,"g")&&(h+="g"),d=x(t,s.lastIndex),0{var n=r(8551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},1034:(t,e,r)=>{var n=r(9565),i=r(9297),o=r(1625),a=r(7979),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:n(a,t)}},8429:(t,e,r)=>{var n=r(9039),i=r(4475).RegExp,r=n(function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),o=r||n(function(){return!i("a","y").sticky}),n=r||n(function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:n,MISSED_STICKY:o,UNSUPPORTED_Y:r}},3635:(t,e,r)=>{var n=r(9039),i=r(4475).RegExp;t.exports=n(function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},8814:(t,e,r)=>{var n=r(9039),i=r(4475).RegExp;t.exports=n(function(){var t=i("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})},7750:(t,e,r)=>{var n=r(4117),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},3389:(t,e,r)=>{var n=r(4475),i=r(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return n[t];t=o(n,t);return t&&t.value}},9472:(t,e,r)=>{var n=r(4475),l=r(8745),c=r(4901),i=r(6763),o=r(9392),u=r(7680),h=r(2812),p=n.Function,d=/MSIE .\./.test(o)||i&&((r=n.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(o,a){var s=a?2:1;return d?function(t,e){var r=h(arguments.length,1)>s,n=c(t)?t:p(t),i=r?u(arguments,s):[],t=r?function(){l(n,this,i)}:n;return a?o(t,e):o(t)}:o}},7633:(t,e,r)=>{var n=r(7751),i=r(2106),o=r(8227),a=r(3724),s=o("species");t.exports=function(t){t=n(t);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},687:(t,e,r)=>{var n=r(4913).f,i=r(9297),o=r(8227)("toStringTag");t.exports=function(t,e,r){(t=t&&!r?t.prototype:t)&&!i(t,o)&&n(t,o,{configurable:!0,value:e})}},6119:(t,e,r)=>{var n=r(5745),i=r(3392),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},7629:(t,e,r)=>{var n=r(6395),i=r(4475),r=r(9433),o="__core-js_shared__",t=t.exports=i[o]||r(o,{});(t.versions||(t.versions=[])).push({version:"3.36.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,e,r)=>{var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2293:(t,e,r)=>{var n=r(8551),i=r(5548),o=r(4117),a=r(8227)("species");t.exports=function(t,e){var t=n(t).constructor;return void 0===t||o(t=n(t)[a])?e:i(t)}},8183:(t,e,r)=>{function n(i){return function(t,e){var r,t=a(s(t)),e=o(e),n=t.length;return e<0||n<=e?i?"":void 0:(r=c(t,e))<55296||56319{function n(i){return function(t,e,r){var t=a(l(t)),e=o(e),n=t.length,r=void 0===r?" ":a(r);return e<=n||""===r?t:((n=c(r,h((e=e-n)/r.length))).length>e&&(n=u(n,0,e)),i?t+n:n+t)}}var i=r(9504),o=r(8014),a=r(655),s=r(2333),l=r(7750),c=i(s),u=i("".slice),h=Math.ceil;t.exports={start:n(!1),end:n(!0)}},2333:(t,e,r)=>{var i=r(1291),o=r(655),a=r(7750),s=RangeError;t.exports=function(t){var e=o(a(this)),r="",n=i(t);if(n<0||n===1/0)throw new s("Wrong number of repetitions");for(;0>>=1)&&(e+=e))1&n&&(r+=e);return r}},706:(t,e,r)=>{var n=r(350).PROPER,i=r(9039),o=r(7452);t.exports=function(t){return i(function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||n&&o[t].name!==t})}},3802:(t,e,r)=>{function n(e){return function(t){t=a(o(t));return 1&e&&(t=s(t,l,"")),t=2&e?s(t,c,"$1"):t}}var i=r(9504),o=r(7750),a=r(655),r=r(7452),s=i("".replace),l=RegExp("^["+r+"]+"),c=RegExp("(^|[^"+r+"])["+r+"]+$");t.exports={start:n(1),end:n(2),trim:n(3)}},4495:(t,e,r)=>{var n=r(7388),i=r(9039),o=r(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8242:(t,e,r)=>{var n=r(9565),i=r(7751),o=r(8227),a=r(6840);t.exports=function(){var t=i("Symbol"),t=t&&t.prototype,e=t&&t.valueOf,r=o("toPrimitive");t&&!t[r]&&a(t,r,function(t){return n(e,this)},{arity:1})}},1296:(t,e,r)=>{r=r(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},9225:(t,e,r)=>{function n(t){return function(){P(t)}}function i(t){P(t.data)}function o(t){l.postMessage(x(t),a.protocol+"//"+a.host)}var a,s,l=r(4475),c=r(8745),u=r(6080),h=r(4901),p=r(9297),d=r(9039),f=r(397),y=r(7680),m=r(4055),b=r(2812),v=r(8119),r=r(9088),g=l.setImmediate,w=l.clearImmediate,_=l.process,k=l.Dispatch,j=l.Function,O=l.MessageChannel,x=l.String,C=0,E={},S="onreadystatechange",P=(d(function(){a=l.location}),function(t){var e;p(E,t)&&(e=E[t],delete E[t],e())});g&&w||(g=function(t){b(arguments.length,1);var e=h(t)?t:j(t),r=y(arguments,1);return E[++C]=function(){c(e,void 0,r)},s(C),C},w=function(t){delete E[t]},r?s=function(t){_.nextTick(n(t))}:k&&k.now?s=function(t){k.now(n(t))}:O&&!v?(v=(r=new O).port2,r.port1.onmessage=i,s=u(v.postMessage,v)):l.addEventListener&&h(l.postMessage)&&!l.importScripts&&a&&"file:"!==a.protocol&&!d(o)?(s=o,l.addEventListener("message",i,!1)):s=S in m("script")?function(t){f.appendChild(m("script"))[S]=function(){f.removeChild(this),P(t)}}:function(t){setTimeout(n(t),0)}),t.exports={set:g,clear:w}},1240:(t,e,r)=>{r=r(9504);t.exports=r(1..valueOf)},5610:(t,e,r)=>{var n=r(1291),i=Math.max,o=Math.min;t.exports=function(t,e){t=n(t);return t<0?i(t+e,0):o(t,e)}},5397:(t,e,r)=>{var n=r(7055),i=r(7750);t.exports=function(t){return n(i(t))}},1291:(t,e,r)=>{var n=r(741);t.exports=function(t){t=+t;return t!=t||0==t?0:n(t)}},8014:(t,e,r)=>{var n=r(1291),i=Math.min;t.exports=function(t){t=n(t);return 0{var n=r(7750),i=Object;t.exports=function(t){return i(n(t))}},2777:(t,e,r)=>{var n=r(9565),i=r(34),o=r(757),a=r(5966),s=r(4270),r=r(8227),l=TypeError,c=r("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r=a(t,c);if(r){if(r=n(r,t,e=void 0===e?"default":e),!i(r)||o(r))return r;throw new l("Can't convert object to primitive value")}return s(t,e=void 0===e?"number":e)}},6969:(t,e,r)=>{var n=r(2777),i=r(757);t.exports=function(t){t=n(t,"string");return i(t)?t:t+""}},2140:(t,e,r)=>{var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655:(t,e,r)=>{var n=r(6955),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},6823:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:(t,e,r)=>{var r=r(9504),n=0,i=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++n+i,36)}},7040:(t,e,r)=>{r=r(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,e,r)=>{var n=r(3724),r=r(9039);t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:t=>{var r=TypeError;t.exports=function(t,e){if(t{var n=r(4475),r=r(4901),n=n.WeakMap;t.exports=r(n)&&/native code/.test(String(n))},511:(t,e,r)=>{var n=r(9167),i=r(9297),o=r(1951),a=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},1951:(t,e,r)=>{r=r(8227);e.f=r},8227:(t,e,r)=>{var n=r(4475),i=r(5745),o=r(9297),a=r(3392),s=r(4495),r=r(7040),l=n.Symbol,c=i("wks"),u=r?l.for||l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(c[t]=s&&o(l,t)?l[t]:u("Symbol."+t)),c[t]}},7452:t=>{t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8706:(t,e,r)=>{var n=r(6518),i=r(9039),c=r(4376),u=r(34),h=r(8981),p=r(6198),d=r(6837),f=r(4659),y=r(1469),o=r(597),a=r(8227),r=r(7388),m=a("isConcatSpreadable"),a=51<=r||!i(function(){var t=[];return t[m]=!1,t.concat()[0]!==t});n({target:"Array",proto:!0,arity:1,forced:!a||!o("concat")},{concat:function(t){for(var e,r,n,i=h(this),o=y(i,0),a=0,s=-1,l=arguments.length;s{var n=r(6518),i=r(9213).every;n({target:"Array",proto:!0,forced:!r(4598)("every")},{every:function(t){return i(this,t,1{var n=r(6518),i=r(9213).filter;n({target:"Array",proto:!0,forced:!r(597)("filter")},{filter:function(t){return i(this,t,1{var n=r(6518),i=r(9213).find,r=r(6469),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),n({target:"Array",proto:!0,forced:a},{find:function(t){return i(this,t,1{var n=r(6518),r=r(235);n({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},3418:(t,e,r)=>{var n=r(6518),i=r(7916);n({target:"Array",stat:!0,forced:!r(4428)(function(t){Array.from(t)})},{from:i})},4423:(t,e,r)=>{var n=r(6518),i=r(9617).includes,o=r(9039),r=r(6469);n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(t){return i(this,t,1{var n=r(6518),i=r(7476),o=r(9617).indexOf,r=r(4598),a=i([].indexOf),s=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!r("indexOf")},{indexOf:function(t){var e=1{r(6518)({target:"Array",stat:!0},{isArray:r(4376)})},3792:(t,e,r)=>{var n=r(5397),i=r(6469),o=r(6269),a=r(1181),s=r(4913).f,l=r(1088),c=r(2529),u=r(6395),r=r(3724),h="Array Iterator",p=a.set,d=a.getterFor(h),a=(t.exports=l(Array,"Array",function(t,e){p(this,{type:h,target:n(t),index:0,kind:e})},function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)},"values"),o.Arguments=o.Array);if(i("keys"),i("values"),i("entries"),!u&&r&&"values"!==a.name)try{s(a,"name",{value:"values"})}catch(t){}},8598:(t,e,r)=>{var n=r(6518),i=r(9504),o=r(7055),a=r(5397),r=r(4598),s=i([].join);n({target:"Array",proto:!0,forced:o!==Object||!r("join",",")},{join:function(t){return s(a(this),void 0===t?",":t)}})},2062:(t,e,r)=>{var n=r(6518),i=r(9213).map;n({target:"Array",proto:!0,forced:!r(597)("map")},{map:function(t){return i(this,t,1{var n=r(6518),i=r(926).left,o=r(4598),a=r(7388);n({target:"Array",proto:!0,forced:!r(9088)&&79{var n=r(6518),i=r(9504),o=r(4376),a=i([].reverse),r=[1,2];n({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},4782:(t,e,r)=>{var n=r(6518),c=r(4376),u=r(3517),h=r(34),p=r(5610),d=r(6198),f=r(5397),y=r(4659),i=r(8227),o=r(597),m=r(7680),r=o("slice"),b=i("species"),v=Array,g=Math.max;n({target:"Array",proto:!0,forced:!r},{slice:function(t,e){var r,n,i,o=f(this),a=d(o),s=p(t,a),l=p(void 0===e?a:e,a);if(c(o)&&(r=o.constructor,(r=u(r)&&(r===v||c(r.prototype))||h(r)&&null===(r=r[b])?void 0:r)===v||void 0===r))return m(o,s,l);for(n=new(void 0===r?v:r)(g(l-s,0)),i=0;s{var n=r(6518),i=r(9213).some;n({target:"Array",proto:!0,forced:!r(4598)("some")},{some:function(t){return i(this,t,1{var n=r(6518),i=r(9504),s=r(9306),l=r(8981),c=r(6198),u=r(4606),h=r(655),o=r(9039),p=r(4488),a=r(4598),d=r(8834),f=r(3202),y=r(7388),m=r(9160),b=[],v=i(b.sort),g=i(b.push),r=o(function(){b.sort(void 0)}),i=o(function(){b.sort(null)}),a=a("sort"),w=!o(function(){if(y)return y<70;if(!(d&&3h(e)?1:-1})),r=c(i),a=0;a{var n=r(6518),h=r(8981),p=r(5610),d=r(1291),f=r(6198),y=r(4527),m=r(6837),b=r(1469),v=r(4659),g=r(4606),r=r(597)("splice"),w=Math.max,_=Math.min;n({target:"Array",proto:!0,forced:!r},{splice:function(t,e){var r,n,i,o,a,s,l=h(this),c=f(l),u=p(t,c),t=arguments.length;for(0===t?r=n=0:n=1===t?(r=0,c-u):(r=t-2,_(w(d(e),0),c-u)),m(c+r-n),i=b(l,n),o=0;o{var n=r(6518),r=r(380);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r})},739:(t,e,r)=>{var n=r(6518),i=r(9039),o=r(8981),a=r(2777);n({target:"Date",proto:!0,arity:1,forced:i(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=o(this),r=a(e,"number");return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},9572:(t,e,r)=>{var n=r(9297),i=r(6840),o=r(3640),r=r(8227)("toPrimitive"),a=Date.prototype;n(a,r)||i(a,r,o)},3288:(t,e,r)=>{var n=r(9504),r=r(6840),i=Date.prototype,o="Invalid Date",a="toString",s=n(i[a]),l=n(i.getTime);String(new Date(NaN))!==o&&r(i,a,function(){var t=l(this);return t==t?s(this):o})},4170:(t,e,r)=>{var n=r(6518),r=r(566);n({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},2010:(t,e,r)=>{var n=r(3724),i=r(350).EXISTS,o=r(9504),r=r(2106),a=Function.prototype,s=o(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec);n&&!i&&r(a,"name",{configurable:!0,get:function(){try{return c(l,s(this))[1]}catch(t){return""}}})},3110:(t,e,r)=>{function i(t,e){var r=d(arguments),n=f(e);if(h(n)||void 0!==t&&!p(t))return r[1]=function(t,e){if(h(n)&&(e=l(n,this,y(t),e)),!p(e))return e},s(m,null,r)}function o(t,e,r){var n=v(r,e-1),r=v(r,e+1);return b(j,t)&&!b(O,r)||b(O,t)&&!b(j,n)?"\\u"+_(g(t,0),16):t}var n=r(6518),a=r(7751),s=r(8745),l=r(9565),c=r(9504),u=r(9039),h=r(4901),p=r(757),d=r(7680),f=r(6933),r=r(4495),y=String,m=a("JSON","stringify"),b=c(/./.exec),v=c("".charAt),g=c("".charCodeAt),w=c("".replace),_=c(1..toString),k=/[\uD800-\uDFFF]/g,j=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,x=!r||u(function(){var t=a("Symbol")("stringify detection");return"[null]"!==m([t])||"{}"!==m({a:t})||"{}"!==m(Object(t))}),C=u(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")});m&&n({target:"JSON",stat:!0,arity:3,forced:x||C},{stringify:function(t,e,r){var n=d(arguments),n=s(x?i:m,null,n);return C&&"string"==typeof n?w(n,k,o):n}})},4731:(t,e,r)=>{var n=r(4475);r(687)(n.JSON,"JSON",!0)},479:(t,e,r)=>{r(687)(Math,"Math",!0)},2892:(t,e,r)=>{function n(c){var t,e=arguments.length<1?0:j(function(){var t=m(c,"number");if("bigint"==typeof t)return t;var e,r,n,i,o,a,s,l=m(t,"number");if(y(l))throw new C("Cannot convert a Symbol value to a number");if("string"==typeof l&&2i;i++)p(e,r=n[i])&&!p(t,r)&&w(t,r,g(e,r))}var o=r(6518),a=r(6395),s=r(3724),l=r(4475),c=r(9167),u=r(9504),h=r(2796),p=r(9297),d=r(3167),f=r(1625),y=r(757),m=r(2777),b=r(9039),v=r(8480).f,g=r(7347).f,w=r(4913).f,_=r(1240),k=r(3802).trim,r="Number",j=l[r],O=c[r],x=j.prototype,C=l.TypeError,E=u("".slice),S=u("".charCodeAt),l=h(r,!j(" 0o1")||!j("0b1")||j("+0x1"));n.prototype=x,l&&!a&&(x.constructor=n),o({global:!0,constructor:!0,wrap:!0,forced:l},{Number:n});a&&O&&i(c[r],O),(l||a)&&i(c[r],j)},9868:(t,e,r)=>{function l(t,e,r){return 0===e?r:e%2==1?l(t,e-1,r*t):l(t*t,e/2,r)}function c(t,e,r){for(var n=-1,i=r;++n<6;)i+=e*t[n],t[n]=i%1e7,i=a(i/1e7)}function u(t,e){for(var r=6,n=0;0<=--r;)n+=t[r],t[r]=a(n/e),n=n%e*1e7}function h(t){for(var e,r=6,n="";0<=--r;)""===n&&0!==r&&0===t[r]||(e=y(t[r]),n=""===n?e:n+m("0",7-e.length)+e);return n}var n=r(6518),i=r(9504),p=r(1291),d=r(1240),o=r(2333),r=r(9039),f=RangeError,y=String,a=Math.floor,m=i(o),b=i("".slice),s=i(1..toFixed);n({target:"Number",proto:!0,forced:r(function(){return"0.000"!==s(8e-5,3)||"1"!==s(.9,0)||"1.25"!==s(1.255,2)||"1000000000000000128"!==s(0xde0b6b3a7640080,0)})||!r(function(){s({})})},{toFixed:function(t){var e,r,n,i=d(this),t=p(t),o=[0,0,0,0,0,0],a="",s="0";if(t<0||20{var n=r(6518),r=r(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},9904:(t,e,r)=>{r(6518)({target:"Object",stat:!0,sham:!r(3724)},{create:r(2360)})},7945:(t,e,r)=>{var n=r(6518),i=r(3724),r=r(6801).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==r,sham:!i},{defineProperties:r})},4185:(t,e,r)=>{var n=r(6518),i=r(3724),r=r(4913).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==r,sham:!i},{defineProperty:r})},5506:(t,e,r)=>{var n=r(6518),i=r(2357).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},3851:(t,e,r)=>{var n=r(6518),i=r(9039),o=r(5397),a=r(7347).f,r=r(3724);n({target:"Object",stat:!0,forced:!r||i(function(){a(1)}),sham:!r},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},1278:(t,e,r)=>{var n=r(6518),i=r(3724),l=r(5031),c=r(5397),u=r(7347),h=r(4659);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=c(t),i=u.f,o=l(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&h(a,e,r);return a}})},9773:(t,e,r)=>{var n=r(6518),i=r(4495),o=r(9039),a=r(3717),s=r(8981);n({target:"Object",stat:!0,forced:!i||o(function(){a.f(1)})},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},875:(t,e,r)=>{var n=r(6518),i=r(9039),o=r(8981),a=r(2787),r=r(2211);n({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!r},{getPrototypeOf:function(t){return a(o(t))}})},9432:(t,e,r)=>{var n=r(6518),i=r(8981),o=r(1072);n({target:"Object",stat:!0,forced:r(9039)(function(){o(1)})},{keys:function(t){return o(i(t))}})},287:(t,e,r)=>{r(6518)({target:"Object",stat:!0},{setPrototypeOf:r(2967)})},6099:(t,e,r)=>{var n=r(2140),i=r(6840),r=r(3179);n||i(Object.prototype,"toString",r,{unsafe:!0})},6034:(t,e,r)=>{var n=r(6518),i=r(2357).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},8459:(t,e,r)=>{var n=r(6518),r=r(3904);n({global:!0,forced:parseFloat!==r},{parseFloat:r})},8940:(t,e,r)=>{var n=r(6518),r=r(2703);n({global:!0,forced:parseInt!==r},{parseInt:r})},6499:(t,e,r)=>{var n=r(6518),u=r(9565),h=r(9306),i=r(6043),o=r(1103),p=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var s=this,e=i.f(s),l=e.resolve,c=e.reject,r=o(function(){var n=h(s.resolve),i=[],o=0,a=1;p(t,function(t){var e=o++,r=!1;a++,u(n,s,t).then(function(t){r||(r=!0,i[e]=t,--a||l(i))},c)}),--a||l(i)});return r.error&&c(r.value),e.promise}})},2003:(t,e,r)=>{var n=r(6518),i=r(6395),o=r(916).CONSTRUCTOR,a=r(550),s=r(7751),l=r(4901),r=r(6840),c=a&&a.prototype;n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&l(a)&&(n=s("Promise").prototype.catch,c.catch!==n&&r(c,"catch",n,{unsafe:!0}))},436:(t,N,e)=>{function o(t,e){var r,n,i,o,a=e.value,s=1===e.state,l=s?t.ok:t.fail,c=t.resolve,u=t.reject,h=t.domain;try{l?(s||(2===e.rejection&&(o=e,f(y,d,function(){var t=o.facade;p?C.emit("rejectionHandled",t):L("rejectionhandled",t,o.value)})),e.rejection=1),!0===l?r=a:(h&&h.enter(),r=l(a),h&&(h.exit(),i=!0)),r===t.promise?u(new O("Promise-chain cycle")):(n=P(r))?f(n,r,c,u):c(r)):u(a)}catch(t){h&&!i&&h.exit(),u(t)}}var r,n,i,a=e(6518),s=e(6395),p=e(9088),d=e(4475),f=e(9565),l=e(6840),c=e(2967),D=e(687),F=e(7633),H=e(9306),u=e(4901),V=e(34),z=e(679),M=e(2293),y=e(9225).set,h=e(1955),q=e(3138),U=e(1103),G=e(8265),m=e(1181),b=e(550),v=e(916),e=e(6043),g="Promise",w=v.CONSTRUCTOR,$=v.REJECTION_EVENT,v=v.SUBCLASSING,_=m.getterFor(g),J=m.set,m=b&&b.prototype,k=b,j=m,O=d.TypeError,x=d.document,C=d.process,E=e.f,W=E,Z=!!(x&&x.createEvent&&d.dispatchEvent),S="unhandledrejection",P=function(t){var e;return!(!V(t)||!u(e=t.then))&&e},T=function(r,i){r.notified||(r.notified=!0,h(function(){for(var t,n,e=r.reactions;t=e.get();)o(t,r);r.notified=!1,i&&!r.rejection&&(n=r,f(y,d,function(){var t,e=n.facade,r=n.value;if(A(n)&&(t=U(function(){p?C.emit("unhandledRejection",r,e):L(S,e,r)}),n.rejection=p||A(n)?2:1,t.error))throw t.value}))}))},L=function(t,e,r){var n;Z?((n=x.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},!$&&(e=d["on"+t])?e(n):t===S&&q("Unhandled promise rejection",r)},A=function(t){return 1!==t.rejection&&!t.parent},R=function(e,r,n){return function(t){e(r,t,n)}},I=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=2,T(t,!0))},B=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw new O("Promise can't be resolved itself");var n=P(t);n?h(function(){var e={done:!1};try{f(n,t,R(B,e,r),R(I,e,r))}catch(t){I(e,t,r)}}):(r.value=t,r.state=1,T(r,!1))}catch(t){I({done:!1},t,r)}}};if(w&&(j=(k=function(t){z(this,j),H(t),f(r,this);var e=_(this);try{t(R(B,e),R(I,e))}catch(t){I(e,t)}}).prototype,(r=function(t){J(this,{type:g,done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=l(j,"then",function(t,e){var r=_(this),n=E(M(this,k));return r.parent=!0,n.ok=!u(t)||t,n.fail=u(e)&&e,n.domain=p?C.domain:void 0,0===r.state?r.reactions.add(n):h(function(){o(n,r)}),n.promise}),n=function(){var t=new r,e=_(t);this.promise=t,this.resolve=R(B,e),this.reject=R(I,e)},e.f=E=function(t){return t===k||void 0===t?new n:W(t)},!s&&u(b)&&m!==Object.prototype)){i=m.then,v||l(m,"then",function(t,e){var r=this;return new k(function(t,e){f(i,r,t,e)}).then(t,e)},{unsafe:!0});try{delete m.constructor}catch(t){}c&&c(m,j)}a({global:!0,constructor:!0,wrap:!0,forced:w},{Promise:k}),D(k,g,!1,!0),F(g)},3362:(t,e,r)=>{r(436),r(6499),r(2003),r(7743),r(1481),r(280)},7743:(t,e,r)=>{var n=r(6518),o=r(9565),a=r(9306),s=r(6043),l=r(1103),c=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{race:function(t){var r=this,n=s.f(r),i=n.reject,e=l(function(){var e=a(r.resolve);c(t,function(t){o(e,r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},1481:(t,e,r)=>{var n=r(6518),i=r(6043);n({target:"Promise",stat:!0,forced:r(916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},280:(t,e,r)=>{var n=r(6518),i=r(7751),o=r(6395),a=r(550),s=r(916).CONSTRUCTOR,l=r(3438),c=i("Promise"),u=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return l(u&&this===c?a:this,t)}})},825:(t,e,r)=>{var n=r(6518),i=r(7751),o=r(8745),a=r(566),s=r(5548),l=r(8551),c=r(34),u=r(2360),r=r(9039),h=i("Reflect","construct"),p=Object.prototype,d=[].push,f=r(function(){function t(){}return!(h(function(){},[],t)instanceof t)}),y=!r(function(){h(function(){})}),i=f||y;n({target:"Reflect",stat:!0,forced:i,sham:i},{construct:function(t,e){s(t),l(e);var r=arguments.length<3?t:s(arguments[2]);if(y&&!f)return h(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return o(d,n,e),new(o(a,t,n))}n=r.prototype,r=u(c(n)?n:p),n=o(t,r,e);return c(n)?n:r}})},888:(t,e,r)=>{var n=r(6518),o=r(9565),a=r(34),s=r(8551),l=r(6575),c=r(7347),u=r(2787);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,i=arguments.length<3?e:arguments[2];return s(e)===i?e[r]:(n=c.f(e,r))?l(n)?n.value:void 0===n.get?void 0:o(n.get,i):a(n=u(e))?t(n,r,i):void 0}})},4864:(N,D,t)=>{var e=t(3724),r=t(4475),n=t(9504),i=t(2796),c=t(3167),u=t(6699),h=t(2360),o=t(8480).f,p=t(1625),d=t(788),f=t(655),y=t(1034),a=t(8429),s=t(1056),l=t(6840),m=t(9039),b=t(9297),v=t(1181).enforce,g=t(7633),w=t(8227),_=t(3635),k=t(8814),j=w("match"),O=r.RegExp,x=O.prototype,C=r.SyntaxError,F=n(x.exec),E=n("".charAt),S=n("".replace),P=n("".indexOf),H=n("".slice),V=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,L=/a/g,t=new O(T)!==T,A=a.MISSED_STICKY,z=a.UNSUPPORTED_Y;if(i("RegExp",e&&(!t||A||_||k||m(function(){return L[j]=!1,O(T)!==T||O(L)===L||"/a/i"!==String(O(T,"i"))})))){for(var R=function(t,e){var r,n,i=p(x,this),o=d(t),a=void 0===e,s=[],l=t;if(!i&&o&&a&&t.constructor===R)return t;if((o||p(x,t))&&(t=t.source,a&&(e=y(l))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),l=t,o=e=_&&"dotAll"in T&&(r=!!e&&-1"===e&&l:if(""===u||b(a,u))throw new C("Invalid capture group name");a[u]=!0,l=!(o[o.length]=[u,c]),u="";continue}l?u+=e:i+=e}return[i,o]}(t))[0],s=a[1]),a=c(O(t,e),i?this:x,R),(r||n||s.length)&&(e=v(a),r&&(e.dotAll=!0,e.raw=R(function(t){for(var e,r=t.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(e=E(t,n))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+E(t,++n);return i}(t),o)),n&&(e.sticky=!0),s.length&&(e.groups=s)),t!==l)try{u(a,"source",""===l?"(?:)":l)}catch(t){}return a},I=o(O),B=0;I.length>B;)s(R,O,I[B++]);(x.constructor=R).prototype=x,l(r,"RegExp",R,{constructor:!0})}g("RegExp")},7495:(t,e,r)=>{var n=r(6518),r=r(7323);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},8781:(t,e,r)=>{var n=r(350).PROPER,i=r(6840),o=r(8551),a=r(655),s=r(9039),l=r(1034),r="toString",c=RegExp.prototype,u=c[r],s=s(function(){return"/a/b"!==u.call({source:"a",flags:"b"})}),n=n&&u.name!==r;(s||n)&&i(c,r,function(){var t=o(this);return"/"+a(t.source)+"/"+a(l(t))},{unsafe:!0})},1699:(t,e,r)=>{var n=r(6518),i=r(9504),o=r(5749),a=r(7750),s=r(655),r=r(1436),l=i("".indexOf);n({target:"String",proto:!0,forced:!r("includes")},{includes:function(t){return!!~l(s(a(this)),s(o(t)),1{var n=r(8183).charAt,i=r(655),o=r(1181),a=r(1088),s=r(2529),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",function(t){c(this,{type:l,string:i(t),index:0})},function(){var t=u(this),e=t.string,r=t.index;return r>=e.length?s(void 0,!0):(e=n(e,r),t.index+=e.length,s(e,!1))})},1761:(t,e,r)=>{var i=r(9565),n=r(9228),c=r(8551),o=r(4117),u=r(8014),h=r(655),a=r(7750),p=r(5966),d=r(7829),f=r(6682);n("match",function(n,s,l){return[function(t){var e=a(this),r=o(t)?void 0:p(t,n);return r?i(r,t,e):new RegExp(t)[n](h(e))},function(t){var e=c(this),r=h(t),t=l(s,e,r);if(t.done)return t.value;if(!e.global)return f(e,r);for(var n=e.unicode,i=[],o=e.lastIndex=0;null!==(a=f(e,r));){var a=h(a[0]);""===(i[o]=a)&&(e.lastIndex=d(r,u(e.lastIndex),n)),o++}return 0===o?null:i}]})},5440:(t,e,r)=>{var k=r(8745),i=r(9565),n=r(9504),o=r(9228),a=r(9039),j=r(8551),O=r(4901),s=r(4117),x=r(1291),C=r(8014),E=r(655),l=r(7750),S=r(7829),c=r(5966),P=r(2478),T=r(6682),u=r(8227)("replace"),L=Math.max,A=Math.min,R=n([].concat),I=n([].push),B=n("".indexOf),N=n("".slice),r="$0"==="a".replace(/./,"$0"),h=!!/./[u]&&""===/./[u]("a","$0");o("replace",function(t,g,w){var _=h?"$":"$0";return[function(t,e){var r=l(this),n=s(t)?void 0:c(t,u);return n?i(n,t,r,e):i(g,E(r),t,e)},function(t,e){var r=j(this),n=E(t);if("string"==typeof e&&-1===B(e,_)&&-1===B(e,"$<")){t=w(g,r,n,e);if(t.done)return t.value}var i=O(e);i||(e=E(e));var o,a=r.global;a&&(o=r.unicode,r.lastIndex=0);for(var s,l=[];null!==(s=T(r,n))&&(I(l,s),a);)""===E(s[0])&&(r.lastIndex=S(n,C(r.lastIndex),o));for(var c,u="",h=0,p=0;p")})||!r||h)},1392:(t,e,r)=>{var n=r(6518),i=r(7476),o=r(7347).f,a=r(8014),s=r(655),l=r(5749),c=r(7750),u=r(1436),r=r(6395),h=i("".slice),p=Math.min,i=u("startsWith");n({target:"String",proto:!0,forced:!(!r&&!i&&((u=o(String.prototype,"startsWith"))&&!u.writable)||i)},{startsWith:function(t){var e=s(c(this)),r=(l(t),a(p(1{var n=r(6518),i=r(3802).trim;n({target:"String",proto:!0,forced:r(706)("trim")},{trim:function(){return i(this)}})},6412:(t,e,r)=>{r(511)("asyncIterator")},6761:(N,D,t)=>{function o(t,e,r){var n=st(P,e);n&&delete P[e],L(t,e,r),n&&t!==P&&L(P,e,n)}function e(t,e){var r=A[t]=w(T);return nt(r,{type:S,tag:t,description:e}),d||(r.description=e),r}function n(t,e,r){return t===P&&n(R,e,r),m(t),e=v(e),m(r),y(A,e)?(r.enumerable?(y(t,E)&&t[E][e]&&(t[E][e]=!1),r=w(r,{enumerable:g(0,!1)})):(y(t,E)||L(t,E,g(1,w(null))),t[E][e]=!0),B(t,e,r)):L(t,e,r)}function r(e,t){m(e);var r=b(t),t=_(r).concat(l(r));return C(t,function(t){d&&!h(i,r,t)||n(e,t,r[t])}),e}function i(t){var t=v(t),e=h(ct,this,t);return!(this===P&&y(A,t)&&!y(R,t))&&(!(e||!y(this,t)||!y(A,t)||y(this,E)&&this[E][t])||e)}function a(t,e){var r,t=b(t),e=v(e);if(t!==P||!y(A,e)||y(R,e))return!(r=st(t,e))||!y(A,e)||y(t,E)&&t[E][e]||(r.enumerable=!0),r}function s(t){var t=lt(b(t)),e=[];return C(t,function(t){y(A,t)||y(Y,t)||ut(e,t)}),e}function l(t){var e=t===P,t=lt(e?R:b(t)),r=[];return C(t,function(t){!y(A,t)||e&&!y(P,t)||ut(r,A[t])}),r}var c=t(6518),u=t(4475),h=t(9565),p=t(9504),F=t(6395),d=t(3724),f=t(4495),H=t(9039),y=t(9297),V=t(1625),m=t(8551),b=t(5397),v=t(6969),z=t(655),g=t(6980),w=t(2360),_=t(1072),M=t(8480),q=t(298),U=t(3717),G=t(7347),$=t(4913),J=t(6801),W=t(8773),k=t(6840),Z=t(2106),j=t(5745),O=t(6119),Y=t(421),Q=t(3392),K=t(8227),X=t(1951),tt=t(511),et=t(8242),rt=t(687),x=t(1181),C=t(9213).forEach,E=O("hidden"),S="Symbol",t="prototype",nt=x.set,it=x.getterFor(S),P=Object[t],O=u.Symbol,T=O&&O[t],ot=u.RangeError,at=u.TypeError,x=u.QObject,st=G.f,L=$.f,lt=q.f,ct=W.f,ut=p([].push),A=j("symbols"),R=j("op-symbols"),p=j("wks"),I=!x||!x[t]||!x[t].findChild,B=d&&H(function(){return 7!==w(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?o:L;f||(k(T=(O=function(){if(V(T,this))throw new at("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?z(arguments[0]):void 0,n=Q(t),i=function(t){var e=void 0===this?u:this,r=(e===P&&h(i,R,t),y(e,E)&&y(e[E],n)&&(e[E][n]=!1),g(1,t));try{B(e,n,r)}catch(t){if(!(t instanceof ot))throw t;o(e,n,r)}};return d&&I&&B(P,n,{configurable:!0,set:i}),e(n,t)})[t],"toString",function(){return it(this).tag}),k(O,"withoutSetter",function(t){return e(Q(t),t)}),W.f=i,$.f=n,J.f=r,G.f=a,M.f=q.f=s,U.f=l,X.f=function(t){return e(K(t),t)},d&&(Z(T,"description",{configurable:!0,get:function(){return it(this).description}}),F||k(P,"propertyIsEnumerable",i,{unsafe:!0}))),c({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:O}),C(_(p),function(t){tt(t)}),c({target:S,stat:!0,forced:!f},{useSetter:function(){I=!0},useSimple:function(){I=!1}}),c({target:"Object",stat:!0,forced:!f,sham:!d},{create:function(t,e){return void 0===e?w(t):r(w(t),e)},defineProperty:n,defineProperties:r,getOwnPropertyDescriptor:a}),c({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:s}),et(),rt(O,S),Y[E]=!0},9463:(t,e,r)=>{var n,i,o,a,s,l,c,u=r(6518),h=r(3724),p=r(4475),d=r(9504),f=r(9297),y=r(4901),m=r(1625),b=r(655),v=r(2106),r=r(7740),g=p.Symbol,w=g&&g.prototype;!h||!y(g)||"description"in w&&void 0===g().description||(n={},r(p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:b(arguments[0]),e=m(w,this)?new g(t):void 0===t?g():g(t);return""===t&&(n[e]=!0),e},g),(p.prototype=w).constructor=p,i="Symbol(description detection)"===String(g("description detection")),o=d(w.valueOf),a=d(w.toString),s=/^Symbol\((.*)\)[^)]+$/,l=d("".replace),c=d("".slice),v(w,"description",{configurable:!0,get:function(){var t=o(this);if(f(n,t))return"";t=a(t),t=i?c(t,7,-1):l(t,s,"$1");return""===t?void 0:t}}),u({global:!0,constructor:!0,forced:!0},{Symbol:p}))},1510:(t,e,r)=>{var n=r(6518),i=r(7751),o=r(9297),a=r(655),s=r(5745),r=r(1296),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!r},{for:function(t){t=a(t);if(o(l,t))return l[t];var e=i("Symbol")(t);return l[t]=e,c[e]=t,e}})},2259:(t,e,r)=>{r(511)("iterator")},2675:(t,e,r)=>{r(6761),r(1510),r(7812),r(3110),r(9773)},7812:(t,e,r)=>{var n=r(6518),i=r(9297),o=r(757),a=r(6823),s=r(5745),r=r(1296),l=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!r},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(l,t))return l[t]}})},5700:(t,e,r)=>{var n=r(511),r=r(8242);n("toPrimitive"),r()},8125:(t,e,r)=>{var n=r(7751),i=r(511),r=r(687);i("toStringTag"),r(n("Symbol"),"Symbol")},3500:(t,e,r)=>{function n(e){if(e&&e.forEach!==l)try{c(e,"forEach",l)}catch(t){e.forEach=l}}var i,o=r(4475),a=r(7400),s=r(9296),l=r(235),c=r(6699);for(i in a)a[i]&&n(o[i]&&o[i].prototype);n(s)},2953:(t,e,r)=>{function n(t,e){if(t){if(t[h]!==p)try{c(t,h,p)}catch(e){t[h]=p}if(u(t,e,!0),a[e])for(var r in l)if(t[r]!==l[r])try{c(t,r,l[r])}catch(e){t[r]=l[r]}}}var i,o=r(4475),a=r(7400),s=r(9296),l=r(3792),c=r(6699),u=r(687),h=r(8227)("iterator"),p=l.values;for(i in a)n(o[i]&&o[i].prototype,i);n(s,"DOMTokenList")},5575:(t,e,r)=>{var n=r(6518),i=r(4475),r=r(9472)(i.setInterval,!0);n({global:!0,bind:!0,forced:i.setInterval!==r},{setInterval:r})},4599:(t,e,r)=>{var n=r(6518),i=r(4475),r=r(9472)(i.setTimeout,!0);n({global:!0,bind:!0,forced:i.setTimeout!==r},{setTimeout:r})},6031:(t,e,r)=>{r(5575),r(4599)}},H={};function n(t){var e=H[t];if(void 0!==e)return e.exports;e=H[t]={exports:{}};return i[t].call(e.exports,e,e.exports,n),e.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var t={};{n.r(t),n.d(t,{JSONEditor:()=>Ra}),n(2675),n(9463),n(6412),n(2259),n(5700),n(8125),n(8706),n(113),n(1629),n(3418),n(4346),n(3792),n(2712),n(4490),n(4782),n(739),n(9572),n(3288),n(2010),n(4731),n(479),n(2892),n(9085),n(9904),n(4185),n(875),n(9432),n(287),n(6099),n(6034),n(3362),n(7495),n(8781),n(7764),n(3500),n(2953),n(5506),n(4864),n(5440),n(4423);var e=["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"],V=[function(t){return"string"===t.type&&"color"===t.format&&"colorpicker"},function(t){return"string"===t.type&&["ip","ipv4","ipv6","hostname"].includes(t.format)&&"ip"},function(t){return"string"===t.type&&e.includes(t.format)&&"ace"},function(t){return"string"===t.type&&["xhtml","bbcode"].includes(t.format)&&"sceditor"},function(t){return"string"===t.type&&"markdown"===t.format&&"simplemde"},function(t){return"string"===t.type&&"jodit"===t.format&&"jodit"},function(t){return"string"===t.type&&"autocomplete"===t.format&&"autocomplete"},function(t){return"string"===t.type&&"uuid"===t.format&&"uuid"},function(t){return"info"===t.format&&"info"},function(t){return"button"===t.format&&"button"},function(t){if(("integer"===t.type||"number"===t.type)&&"stepper"===t.format)return"stepper"},function(t){if(t.links)for(var e=0;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.scrollHeight+3&&!(100r.schema.maxLength&&alert(r.translate("paste_max_length_reached",[r.schema.maxLength]))}),this.format&&this.input.setAttribute("data-schemaformat",this.format),this.input);"range"===this.format&&(n=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,n,this.description,this.infoButton,this.formname),this.container.appendChild(this.control),window.requestAnimationFrame(function(){r.input.parentNode&&r.afterInputReady(),r.adjust_height&&r.adjust_height(r.input),"range"===r.format&&(r.control.querySelector("output").value=r.input.value)}),this.schema.template&&("function"==typeof(t=this.expandCallbacks("template",{template:this.schema.template})).template?this.template=t.template:this.template=this.jsoneditor.compileTemplate(this.schema.template,this.template_engine)),this.refreshValue()}},{key:"setupCleave",value:function(t){var e=this.expandCallbacks("cleave",l({},this.defaults.options.cleave||{},this.options.cleave||{}));"object"===X(e)&&0=this.schema.items.length?!0===this.schema.additionalItems?{}:this.schema.additionalItems?l({},this.schema.additionalItems):void 0:l({},this.schema.items[t]):this.schema.items?l({},this.schema.items):{}}},{key:"getItemInfo",value:function(t){var t=this.getItemSchema(t),e=(this.item_info=this.item_info||{},JSON.stringify(t));return void 0===this.item_info[e]&&(t=this.jsoneditor.expandRefs(t),this.item_info[e]={title:this.translateProperty(t.title)||this.translate("default_array_item_title"),default:t.default,width:12,child_editors:t.properties||t.items}),this.item_info[e]}},{key:"getElementEditor",value:function(t){var e=this.getItemInfo(t),r=this.getItemSchema(t);(r=this.jsoneditor.expandRefs(r)).title="".concat(e.title," ").concat(t+1);var n,i=this.jsoneditor.getEditorClass(r),e=(this.tabs_holder?(n="tabs-top"===this.schema.format?this.theme.getTopTabContent():this.theme.getTabContent()).id="".concat(this.path,".").concat(t):n=e.child_editors?this.theme.getChildEditorHolder():this.theme.getIndentedPanel(),this.row_holder.appendChild(n),this.jsoneditor.createEditor(i,{jsoneditor:this.jsoneditor,schema:r,container:n,path:"".concat(this.path,".").concat(t),parent:this,required:!0}));return e.preBuild(),e.build(),e.postBuild(),e.title_controls||(e.array_controls=this.theme.getButtonHolder(),n.appendChild(e.array_controls)),e}},{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,c(u(i.prototype),"destroy",this).call(this)}},{key:"empty",value:function(r){var n=this;if(null!==this.rows){if(this.rows.forEach(function(t,e){r&&(n.checkParent(t.tab)&&t.tab.parentNode.removeChild(t.tab),n.destroyRow(t,!0),n.row_cache[e]=null),n.rows[e]=null}),r)for(var t=this.rows.length;tthis.getMax()?t.slice(0,this.getMax()):t}},{key:"setValue",value:function(){var r=this,t=0=this.rows.length,this.rows.forEach(function(t,e){var r;t.movedown_button&&(r=e!==i.rows.length-1,i.setButtonState(t.movedown_button,r)),t.delete_button&&i.setButtonState(t.delete_button,!n),i.value[e]=t.getValue()}),this.setupButtons(n)&&!this.collapsed?this.controls.style.display="inline-block":this.controls.style.display="none"),this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(t,e){var r=this,n=this.rows.length,i=(this.rows[n]=this.getElementEditor(n),this.row_cache[n]=this.rows[n],this.tabs_holder&&(this.rows[n].tab_text=document.createElement("span"),this.rows[n].tab_text.textContent=this.rows[n].getHeaderText(),"tabs-top"===this.schema.format?(this.rows[n].tab=this.theme.getTopTab(this.rows[n].tab_text,this.getValidId(this.rows[n].path)),this.theme.addTopTab(this.tabs_holder,this.rows[n].tab)):(this.rows[n].tab=this.theme.getTab(this.rows[n].tab_text,this.getValidId(this.rows[n].path)),this.theme.addTab(this.tabs_holder,this.rows[n].tab)),this.rows[n].tab.addEventListener("click",function(t){r.active_tab=r.rows[n].tab,r.refreshTabs(),t.preventDefault(),t.stopPropagation()})),this.rows[n].title_controls||this.rows[n].array_controls);return this.hide_delete_buttons||(this.rows[n].delete_button=this._createDeleteButton(n,i)),this.show_copy_button&&(this.rows[n].copy_button=this._createCopyButton(n,i)),n&&!this.hide_move_buttons&&(this.rows[n].moveup_button=this._createMoveUpButton(n,i)),this.hide_move_buttons||(this.rows[n].movedown_button=this._createMoveDownButton(n,i)),void 0!==t&&this.rows[n].setValue(t,e),this.refreshTabs(),this.rows[n]}},{key:"_createDeleteButton",value:function(t,e){var i=this,r=this.getButton(this.getItemTitle(),"delete","button_delete_row_title",[this.getItemTitle()]);return r.classList.add("delete","json-editor-btntype-delete"),r.setAttribute("data-i",t),r.addEventListener("click",function(t){if(t.preventDefault(),t.stopPropagation(),!i.askConfirmation())return!1;var r=+t.currentTarget.getAttribute("data-i"),t=i.getValue().filter(function(t,e){return e!==r}),e=null,n=i.rows[r].getValue();i.setValue(t),i.rows[r]?e=i.rows[r].tab:i.rows[r-1]&&(e=i.rows[r-1].tab),e&&(i.active_tab=e,i.refreshTabs()),i.onChange(!0),i.jsoneditor.trigger("deleteRow",n)}),e&&e.appendChild(r),r}},{key:"_createCopyButton",value:function(t,e){var r=this,n=this.getButton(this.getItemTitle(),"copy","button_copy_row_title",[this.getItemTitle()]),s=this.schema;return n.classList.add("copy","json-editor-btntype-copy"),n.setAttribute("data-i",t),n.addEventListener("click",function(t){var o=r.getValue(),a=(t.preventDefault(),t.stopPropagation(),+t.currentTarget.getAttribute("data-i"));o.forEach(function(t,e){if(e===a){if("string"===s.items.type&&"uuid"===s.items.format)t=J();else if("object"===s.items.type&&s.items.properties)for(var r=0,n=Object.keys(t);r=r.length-1||(e=r[1+t],r[1+t]=r[t],r[t]=e,n.setValue(r),n.active_tab=n.rows[1+t].tab,n.refreshTabs(),n.onChange(!0),n.jsoneditor.trigger("moveRow",n.rows[1+t]))}),e&&e.appendChild(r),r}},{key:"addControls",value:function(){this.collapsed=!1,this.toggle_button=this._createToggleButton(),this.options.collapsed&&y(this.toggle_button,"click"),this.schema.options&&void 0!==this.schema.options.disable_collapse?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 e=this,t=this.getButton("","collapse","button_collapse"),r=(t.classList.add("json-editor-btntype-toggle"),this.title.insertBefore(t,this.title.childNodes[0]),this.row_holder.style.display),n=this.controls.style.display;return t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),e.panel&&e.setButtonState(e.panel,e.collapsed),e.tabs_holder&&e.setButtonState(e.tabs_holder,e.collapsed),e.collapsed?(e.collapsed=!1,e.row_holder.style.display=r,e.controls.style.display=n,e.setButtonText(t.currentTarget,"","collapse","button_collapse")):(e.collapsed=!0,e.row_holder.style.display="none",e.controls.style.display="none",e.setButtonText(t.currentTarget,"","expand","button_expand"))}),t}},{key:"_createAddRowButton",value:function(){var r=this,t=this.getButton(this.getItemTitle(),"add","button_add_row_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-add"),t.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var e,t=r.rows.length;r.row_cache[t]?(e=r.rows[t]=r.row_cache[t],r.rows[t].setValue(r.rows[t].getDefault(),!0),r.rows[t].container.style.display="",r.rows[t].tab&&(r.rows[t].tab.style.display=""),r.rows[t].register()):e=r.addRow(),r.active_tab=r.rows[t].tab,r.refreshTabs(),r.refreshValue(),r.onChange(!0),r.jsoneditor.trigger("addRow",e)}),this.controls.appendChild(t),t}},{key:"_createDeleteLastRowButton",value:function(){var n=this,t=this.getButton("button_delete_last","subtract","button_delete_last_title",[this.getItemTitle()]);return t.classList.add("json-editor-btntype-deletelast"),t.addEventListener("click",function(t){if(t.preventDefault(),t.stopPropagation(),!n.askConfirmation())return!1;var t=n.getValue(),e=null,r=t.pop();n.setValue(t),(e=n.rows[n.rows.length-1]?n.rows[n.rows.length-1].tab:e)&&(n.active_tab=e,n.refreshTabs()),n.onChange(!0),n.jsoneditor.trigger("deleteRow",r)}),this.controls.appendChild(t),t}},{key:"_createRemoveAllRowsButton",value:function(){var e=this,t=this.getButton("button_delete_all","delete","button_delete_all_title");return t.classList.add("json-editor-btntype-deleteall"),t.addEventListener("click",function(t){if(t.preventDefault(),t.stopPropagation(),!e.askConfirmation())return!1;t=e.getValue();e.empty(!0),e.setValue([]),e.onChange(!0),e.jsoneditor.trigger("deleteAllRows",t)}),this.controls.appendChild(t),t}},{key:"showValidationErrors",value:function(t){var e=this,r=[],n=[];t.forEach(function(t){(t.path===e.path?r:n).push(t)}),this.error_holder&&(r.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",r.forEach(function(t){e.error_holder.appendChild(e.theme.getErrorMessage(t.message))})):this.error_holder.style.display="none"),this.rows.forEach(function(t){return t.showValidationErrors(n)})}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}();function yt(t){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mt(t,e){for(var r=0;rType: ".concat(t,", Size: ").concat(Math.floor((this.value.length-this.value.split(",")[0].length-1)/1.33333)," bytes"),"image"===t.substr(0,5)&&(this.preview.innerHTML+="
",(t=document.createElement("img")).style.maxWidth="100%",t.style.maxHeight="100px",t.src=this.value,this.preview.appendChild(t))):this.preview.innerHTML="Invalid data URI")}},{key:"enable",value:function(){this.always_disabled||(this.uploader&&(this.uploader.disabled=!1),Zt(Yt(i.prototype),"enable",this).call(this))}},{key:"disable",value:function(t){t&&(this.always_disabled=!0),this.uploader&&(this.uploader.disabled=!0),Zt(Yt(i.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),Zt(Yt(i.prototype),"destroy",this).call(this)}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}();function Xt(t){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function te(t,e){for(var r=0;r *":"box-sizing:border-box"};var Te=function(){function a(){var t=this;if(!(t instanceof a))throw new TypeError("Cannot call a class as a function");var t=this,e=a,r=arguments,n=(e=Se(e),t);if((e=Ce()?Reflect.construct(e,r||[],Se(t).constructor):e.apply(t,r))&&("object"===Oe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t=a,e=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pe(t,e),xe((t=a).prototype,[{key:"build",value:function(){var t,e,r,n;Ee(Se(a.prototype),"build",this).call(this),this.input&&(this.schema.max&&"string"==typeof this.schema.max&&this.input.setAttribute("max",this.schema.max),this.schema.min&&"string"==typeof this.schema.max&&this.input.setAttribute("min",this.schema.min),window.flatpickr&&"object"===Oe(this.options.flatpickr))&&(this.options.flatpickr.enableTime="date"!==this.schema.format,this.options.flatpickr.noCalendar="time"===this.schema.format,"integer"===this.schema.type&&(this.options.flatpickr.mode="single"),this.input.setAttribute("data-input",""),t=this.input,!0===this.options.flatpickr.wrap&&(!(n=[])!==this.options.flatpickr.showToggleButton&&((e=this.getButton("","time"===this.schema.format?"time":"calendar","flatpickr_toggle_button")).setAttribute("data-toggle",""),n.push(e)),!1!==this.options.flatpickr.showClearButton&&((e=this.getButton("","clear","flatpickr_clear_button")).setAttribute("data-clear",""),n.push(e)),e=this.input.parentNode,r=this.input.nextSibling,void 0!==(n=this.theme.getInputGroup(this.input,n))?(this.options.flatpickr.inline=!1,e.insertBefore(n,r),t=n):this.options.flatpickr.wrap=!1),this.flatpickr=window.flatpickr(t,this.options.flatpickr),!0===this.options.flatpickr.inline&&!0===this.options.flatpickr.inlineHideInput&&this.input.setAttribute("type","hidden"))}},{key:"getValue",value:function(){var t;if(this.dependenciesFulfilled)return"string"===this.schema.type?this.value:""!==this.value&&void 0!==this.value?(t="time"===this.schema.format?"1970-01-01 ".concat(this.value):this.value,parseInt(new Date(t).getTime()/1e3)):void 0}},{key:"setValue",value:function(t,e,r){var n,i,o;"string"===this.schema.type?(Ee(Se(a.prototype),"setValue",this).call(this,t,e,r),this.flatpickr&&this.flatpickr.setDate(t)):0t.length)&&(e=t.length);for(var r=0,n=new Array(e);rnull":"object"===De(r)?(n="",t=r,i=function(t,e){e=o.getHTML(e);Array.isArray(r)||(e="
".concat(t,": ").concat(e,"
")),n+="
  • ".concat(e,"
  • ")},Array.isArray(t)||"number"==typeof t.length&&0".concat(n,""):"
      ".concat(n,"
    ")):"boolean"==typeof r?r?"true":"false":"string"==typeof r?r.replace(/&/g,"&").replace(//g,">"):r}},{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),ze(Me(i.prototype),"destroy",this).call(this)}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}();function Ge(t){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $e(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);re.maxContains&&i.push({message:this.translate("error_maxContains",[o,e.maxContains],e),path:r}),i},if:function(t,e,r){if(void 0===t.then&&void 0===t.else)return[];var n=this._validateSchema(t.if,e,r),i=[],o=[];return void 0!==t.then&&(i=this._validateSchema(t.then,e,r)),void 0!==t.else&&(o=this._validateSchema(t.else,e,r)),!0===t.if?i:!1===t.if?o:0===n.length?i:0t.minimum:e>=t.minimum;return window.math?n=window.math[t.exclusiveMinimum?"larger":"largerEq"](window.math.bignumber(e),window.math.bignumber(t.minimum)):window.Decimal&&(n=new window.Decimal(e)[t.exclusiveMinimum?"gt":"gte"](new window.Decimal(t.minimum))),n?[]:[{path:r,property:"minimum",message:this.translate(t.exclusiveMinimum?"error_minimum_excl":"error_minimum_incl",[t.minimum],t)}]}},this._validateStringSubSchema={maxLength:function(t,e,r){var n=[];return"".concat(e).length>t.maxLength&&n.push({path:r,property:"maxLength",message:this.translate("error_maxLength",[t.maxLength],t)}),n},minLength:function(t,e,r){return"".concat(e).lengtht.maxItems?[{path:r,property:"maxItems",message:this.translate("error_maxItems",[t.maxItems],t)}]:[]},minItems:function(t,e,r){return e.lengtht.maxProperties?[{path:r,property:"maxProperties",message:this.translate("error_maxProperties",[t.maxProperties],t)}]:[]},minProperties:function(t,e,r){return Object.keys(e).lengthr){i="error_property_names_exceeds_maxlength";break}return!0;case"const":if(r===c)return!0;i="error_property_names_const_mismatch";break;case"enum":if(!Array.isArray(r)){i="error_property_names_enum";break}if(r.forEach(function(t){t===c&&(n=!0)}),n)return!0;i="error_property_names_enum_mismatch";break;case"pattern":if("string"!=typeof r){i="error_property_names_pattern";break}if(new RegExp(r).test(c))return!0;i="error_property_names_pattern_mismatch";break;default:return l.push({path:a,property:"propertyNames",message:s.translate("error_property_names_unsupported",[e],o)}),!1}return l.push({path:a,property:"propertyNames",message:s.translate(i,[c],o)}),!1})?void 0:1}())||1!==r);u++);return l},additionalProperties:function(t,e,r,n){for(var i=[],o=Object.keys(e),a=0;a=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}(i.anyOf);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=this.fitTest(t,l,r);(c.match>a.match||c.match===a.match&&c.extrar.extra)&&((o=r).i=e)),t.validate(n).length||null!==a.i?o=a:(a.i=e,null!==r&&(a.match=r.match))}),a.i),r=(void 0!==this.anyOf&&this.anyOf&&a.matcht.length)&&(e=t.length);for(var r=0,n=new Array(e);ri)&&(r=o);!1===r&&(s.push({width:0,minh:999999,maxh:0,editors:[]}),r=s.length-1),s[r].editors.push({key:t,width:n,height:i}),s[r].width+=n,s[r].minh=Math.min(s[r].minh,i),s[r].maxh=Math.max(s[r].maxh,i)}}),t=0;ts[t].editors[c].width)&&(c=h),s[t].editors[h].width*=12/s[t].width,s[t].editors[h].width=Math.floor(s[t].editors[h].width),u+=s[t].editors[h].width;u<12&&(s[t].editors[c].width+=12-u),s[t].width=12}if(this.layout===JSON.stringify(s))return!1;for(this.layout=JSON.stringify(s),e=document.createElement("div"),t=0;t=i?this.getSchemaOnMaxDepth(r):r,path:"".concat(this.path,".").concat(e),parent:this},this.currentDepth+1),this.editors[e].preBuild(),t||(i=this.theme.getChildEditorHolder(),this.editor_holder.appendChild(i),this.editors[e].setContainer(i),this.editors[e].build(),this.editors[e].postBuild(),this.editors[e].setOptInCheckbox(n.header),this.editors[e].activate()),this.cached_editors[e]=this.editors[e]}t||(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,e){this.refreshValue(),C(E(i.prototype),"onChildEditorChange",this).call(this,t,e)}},{key:"canHaveAdditionalProperties",value:function(){return"boolean"==typeof this.schema.additionalProperties?this.schema.additionalProperties:"object"===Kr(this.schema.additionalProperties)&&null!==this.schema.additionalProperties||("boolean"==typeof this.options.no_additional_properties?!this.options.no_additional_properties:"boolean"!=typeof this.jsoneditor.options.no_additional_properties||!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),C(E(i.prototype),"destroy",this).call(this)}},{key:"getValue",value:function(){var r;if(this.dependenciesFulfilled)return(r=C(E(i.prototype),"getValue",this).call(this))&&(this.jsoneditor.options.remove_empty_properties||this.options.remove_empty_properties)&&Object.keys(r).forEach(function(t){var e;(void 0===(e=r[t])||""===e||e===Object(e)&&0===Object.keys(e).length&&e.constructor===Object)&&delete r[t]}),r&&(this.jsoneditor.options.remove_false_properties||this.options.remove_false_properties)&&Object.keys(r).forEach(function(t){!1===r[t]&&delete r[t]}),r}},{key:"refreshValue",value:function(){var e=this;this.value={},this.editors&&(Object.keys(this.editors).forEach(function(t){e.editors[t].isActive()&&(e.editors[t].refreshValue(),e.value[t]=e.editors[t].getValue())}),Object.keys(this.editors).forEach(function(t){e.editors[t].isActive()&&e.activateDependentRequired(e.editors[t].key)}),this.adding_property&&this.refreshAddProperties())}},{key:"activateDependentRequired",value:function(t){var n=this;this.getDependentRequired(t).forEach(function(e){var r;Object.entries(n.cached_editors).forEach(function(t){t=Yr(t,2),t[0],t=t[1];t.key===e&&(r=t)}),r&&!r.isActive()&&r.activate()})}},{key:"getDependentRequired",value:function(t){return this.schema.dependentRequired&&d(this.schema.dependentRequired,t)?this.schema.dependentRequired[t]:[]}},{key:"refreshAddProperties",value:function(){var e,r,n,i=this;this.options.disable_properties||!1!==this.options.disable_properties&&this.jsoneditor.options.disable_properties?this.addproperty_button.style.display="none":(r=0,n=!1,Object.keys(this.editors).forEach(function(t){return r++}),e=this.canHaveAdditionalProperties()&&!(void 0!==this.schema.maxProperties&&r>=this.schema.maxProperties),this.addproperty_checkboxes&&(this.addproperty_list.innerHTML=""),this.addproperty_checkboxes={},Object.keys(this.cached_editors).forEach(function(t){i.addPropertyCheckbox(t),i.isRequiredObject(i.cached_editors[t])&&t in i.editors&&(i.addproperty_checkboxes[t].disabled=!0),void 0!==i.schema.minProperties&&r<=i.schema.minProperties?(i.addproperty_checkboxes[t].disabled=i.addproperty_checkboxes[t].checked,i.addproperty_checkboxes[t].checked||(n=!0)):t in i.editors?n=!0:e||d(i.schema.properties,t)?(i.addproperty_checkboxes[t].disabled=!1,n=!0):i.addproperty_checkboxes[t].disabled=!0}),this.canHaveAdditionalProperties()&&(n=!0),Object.keys(this.schema.properties).forEach(function(t){i.cached_editors[t]||(n=!0,i.addPropertyCheckbox(t))}),n?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"boolean"==typeof t.schema.required?t.schema.required:Array.isArray(this.schema.required)?this.schema.required.includes(t.key):!!this.jsoneditor.options.required_by_default}},{key:"setValue",value:function(r,n){var i=this;"object"===Kr(r=r||{})&&!Array.isArray(r)||(r={}),Object.entries(this.cached_editors).forEach(function(t){var t=Yr(t,2),e=t[0],t=t[1];void 0!==r[e]?(i.addObjectProperty(e),t.setValue(r[e],n),t.activate(),i.disabled&&t.disable()):n||i.isRequiredObject(t)?t.setValue(t.getDefault(),n):i.jsoneditor.options.show_opt_in||i.options.show_opt_in?t.deactivate():i.removeObjectProperty(e)}),Object.entries(r).forEach(function(t){var t=Yr(t,2),e=t[0],t=t[1];i.cached_editors[e]||(i.addObjectProperty(e),i.editors[e]&&i.editors[e].setValue(t,n,!!i.editors[e].template))}),this.refreshValue(),this.layoutEditors(),this.onChange()}},{key:"showValidationErrors",value:function(t){var e=this,r=[],n=[];t.forEach(function(t){(t.path===e.path?r:n).push(t)}),this.error_holder&&(r.length?(this.error_holder.innerHTML="",this.error_holder.style.display="",r.forEach(function(t){t.errorcount&&1 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 ti=function(){function i(){var t=this;if(!(t instanceof i))throw new TypeError("Cannot call a class as a function");var t=this,e=i,r=arguments,n=(e=Kn(e),t);if((e=Yn()?Reflect.construct(e,r||[],Kn(t).constructor):e.apply(t,r))&&("object"===Wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t=i,e=yr;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xn(t,e),Zn((t=i).prototype,[{key:"build",value:function(){Qn(Kn(i.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(){Qn(Kn(i.prototype),"enable",this).call(this),this.stepperDown.removeAttribute("disabled"),this.stepperUp.removeAttribute("disabled")}},{key:"disable",value:function(){Qn(Kn(i.prototype),"disable",this).call(this),this.stepperDown.setAttribute("disabled",!0),this.stepperUp.setAttribute("disabled",!0)}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}();function ei(t){return(ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ri(t,e){for(var r=0;rthis.schema.maxItems?t.slice(0,this.schema.maxItems):t}},{key:"setValue",value:function(){var r=this,t=0=this.rows.length,o=this.schema.maxItems&&this.schema.maxItems<=this.rows.length,a=[],e=(this.rows.forEach(function(t,e){var r;t.delete_button&&(n.setButtonState(t.delete_button,r=!i),a.push(r)),t.copy_button&&(n.setButtonState(t.copy_button,r=!o),a.push(r)),t.moveup_button&&(n.setButtonState(t.moveup_button,r=0!==e),a.push(r)),t.movedown_button&&(r=e!==n.rows.length-1,n.setButtonState(t.movedown_button,r),a.push(r))}),a.some(function(t){return t})),t=(this.rows.forEach(function(t){return n.setButtonState(t.controls_cell,e)}),this.setButtonState(this.controls_header_cell,e),this.setButtonState(this.table,this.value.length),!(o||this.hide_add_button)),r=(this.setButtonState(this.add_row_button,t),!(!this.value.length||i||this.hide_delete_last_row_buttons)),s=(this.setButtonState(this.delete_last_row_button,r),!(this.value.length<=1||i||this.hide_delete_all_rows_buttons)),t=(this.setButtonState(this.remove_all_rows_button,s),t||r||s);this.setButtonState(this.controls,t)}},{key:"refreshValue",value:function(){var r=this;this.value=[],this.rows.forEach(function(t,e){r.value[e]=t.getValue()}),this.serialized=JSON.stringify(this.value)}},{key:"addRow",value:function(t){var e=this.rows.length,r=(this.rows[e]=this.getElementEditor(e),this.rows[e].table_controls);return this.hide_delete_buttons||(this.rows[e].delete_button=this._createDeleteButton(e,r)),this.show_copy_button&&(this.rows[e].copy_button=this._createCopyButton(e,r)),this.hide_move_buttons||(this.rows[e].moveup_button=this._createMoveUpButton(e,r)),this.hide_move_buttons||(this.rows[e].movedown_button=this._createMoveDownButton(e,r)),void 0!==t&&this.rows[e].setValue(t),this.rows[e]}},{key:"_createDeleteButton",value:function(t,e){var n=this,r=this.getButton("","delete","button_delete_row_title_short");return r.classList.add("delete","json-editor-btntype-delete"),r.setAttribute("data-i",t),r.addEventListener("click",function(t){if(t.preventDefault(),t.stopPropagation(),!n.askConfirmation())return!1;var t=+t.currentTarget.getAttribute("data-i"),e=n.getValue(),r=n.getValue()[t];e.splice(t,1),n.setValue(e),n.onChange(!0),n.jsoneditor.trigger("deleteRow",r)}),e.appendChild(r),r}},{key:"_createCopyButton",value:function(t,e){var r=this,n=this.getButton("","copy","button_copy_row_title_short"),l=this.schema;return n.classList.add("copy","json-editor-btntype-copy"),n.setAttribute("data-i",t),n.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var o=+t.currentTarget.getAttribute("data-i"),a=r.getValue(),s=a[o];"string"===l.items.type&&"uuid"===l.items.format?s=J():"object"===l.items.type&&l.items.properties&&a.forEach(function(t,e){if(o===e)for(var r=0,n=Object.keys(t);rn.options.max_upload_size?n.theme.addInputError(n.uploader,"".concat(n.translate("upload_max_size")," ").concat(n.options.max_upload_size)):0===n.options.mime_type.length||n.isValidMimeType(r[0].type,n.options.mime_type)?(n.fileDisplay&&(n.fileDisplay.value=r[0].name),(e=new window.FileReader).onload=function(t){n.preview_value=t.target.result,n.refreshPreview(r),n.onChange(!0),e=null},e.readAsDataURL(r[0])):n.theme.addInputError(n.uploader,"".concat(n.translate("upload_wrong_file_format")," ").concat(n.options.mime_type.toString())))},this.uploader.addEventListener("change",this.uploadHandler),this.dragHandler=function(t){var e=t.dataTransfer.items||t.dataTransfer.files,e=e&&e.length&&(0===n.options.mime_type.length||n.isValidMimeType(e[0].type,n.options.mime_type)),r=t.currentTarget.classList&&t.currentTarget.classList.contains("upload-dropzone")&&e;switch((t.currentTarget===window?"w_":"e_")+t.type){case"w_drop":case"w_dragover":r||(t.dataTransfer.dropEffect="none");break;case"e_dragenter":r?(n.dropZone.classList.add("valid-dropzone"),t.dataTransfer.dropEffect="copy"):n.dropZone.classList.add("invalid-dropzone");break;case"e_dragover":r&&(t.dataTransfer.dropEffect="copy");break;case"e_dragleave":n.dropZone.classList.remove("valid-dropzone","invalid-dropzone");break;case"e_drop":n.dropZone.classList.remove("valid-dropzone","invalid-dropzone"),r&&n.uploadHandler(t)}r||t.preventDefault()},!0===this.options.enable_drag_drop&&(["dragover","drop"].forEach(function(t){window.addEventListener(t,n.dragHandler,!0)}),["dragenter","dragover","dragleave","drop"].forEach(function(t){n.dropZone.addEventListener(t,n.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 t=this.uploader||this.input,e=document.createElement("div");this.dropZone&&!this.altDropZone&&!0===this.options.drop_zone_top&&e.appendChild(this.dropZone),this.fileUploadGroup&&e.appendChild(this.fileUploadGroup),this.dropZone&&!this.altDropZone&&!0!==this.options.drop_zone_top&&e.appendChild(this.dropZone),e.appendChild(this.preview),t.parentNode.insertBefore(e,t.nextSibling),this.container.appendChild(this.control),window.requestAnimationFrame(function(){n.afterInputReady()})}},{key:"afterInputReady",value:function(){var e,r=this;this.value&&((e=document.createElement("img")).style.maxWidth="100%",e.style.maxHeight="100px",e.onload=function(t){r.preview.appendChild(e)},e.onerror=function(t){console.error("upload error",t,t.currentTarget)},e.src=this.container.querySelector("a").href),this.theme.afterInputReady(this.input)}},{key:"refreshPreview",value:function(t){var e,r,n=this;this.last_preview!==this.preview_value&&(this.last_preview=this.preview_value,this.preview.innerHTML="",this.preview_value)&&(e=t[0],t=this.preview_value.match(/^data:([^;,]+)[;,]/),e.mimeType=t?t[1]:"unknown",0t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rNumber(o))&&t.stepDown():e(t,o),y(t,"change")}),i.addEventListener("click",function(){t.getAttribute("initialized")?(!a||Number(t.value)
    "),e}},{key:"getTopTabHolder",value:function(t){var t=void 0===t?"":t,e=document.createElement("div");return e.innerHTML="
    "),e}},{key:"applyStyles",value:function(e,r){Object.keys(r).forEach(function(t){return e.style[t]=r[t]})}},{key:"closest",value:function(t,e){for(;t&&t!==document;){if(!t[Lo])return!1;if(t[Lo](e))return t;t=t.parentNode}return!1}},{key:"insertBasicTopTab",value:function(t,e){e.firstChild.insertBefore(t,e.firstChild.firstChild)}},{key:"getTab",value:function(t,e){var r=document.createElement("div");return r.appendChild(t),r.id=e,r.classList.add("je-tab"),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("div");return r.appendChild(t),r.id=e,r.classList.add("je-tab--top"),r}},{key:"getTabContentHolder",value:function(t){return t.children[1]}},{key:"getTopTabContentHolder",value:function(t){return t.children[1]}},{key:"getTabContent",value:function(){return this.getIndentedPanel()}},{key:"getTopTabContent",value:function(){return this.getTopIndentedPanel()}},{key:"markTabActive",value:function(t){this.applyStyles(t.tab,{opacity:1,background:"white"}),void 0!==t.rowPane?t.rowPane.style.display="":t.container.style.display=""}},{key:"markTabInactive",value:function(t){this.applyStyles(t.tab,{opacity:.5,background:""}),void 0!==t.rowPane?t.rowPane.style.display="none":t.container.style.display="none"}},{key:"addTab",value:function(t,e){t.children[0].appendChild(e)}},{key:"addTopTab",value:function(t,e){t.children[0].appendChild(e)}},{key:"getBlockLink",value:function(){var t=document.createElement("a");return t.classList.add("je-block-link"),t}},{key:"getBlockLinkHolder",value:function(){return document.createElement("div")}},{key:"getLinksHolder",value:function(){return document.createElement("div")}},{key:"createMediaLink",value:function(t,e,r){t.appendChild(e),r.classList.add("je-media"),t.appendChild(r)}},{key:"createImageLink",value:function(t,e,r){t.appendChild(e),e.appendChild(r)}},{key:"getFirstTab",value:function(t){return t.firstChild.firstChild}},{key:"getInputGroup",value:function(t,e){}},{key:"cleanText",value:function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText}},{key:"getDropZone",value:function(t){var e=document.createElement("div");return e.setAttribute("data-text",t),e.classList.add("je-dropzone"),e}},{key:"getUploadPreview",value:function(t,e,r){var n=document.createElement("div"),r=(n.classList.add("je-upload-preview"),"image"===t.mimeType.substr(0,5)&&((i=document.createElement("img")).src=r,n.appendChild(i)),document.createElement("div")),i=(r.innerHTML+="Name: ".concat(t.name,"
    Type: ").concat(t.type,"
    Size: ").concat(t.formattedSize),n.appendChild(r),n.appendChild(e),document.createElement("div"));return i.style.clear="left",n.appendChild(i),n}},{key:"getProgressBar",value:function(){var t=document.createElement("progress");return t.setAttribute("max",100),t.setAttribute("value",0),t}},{key:"updateProgressBar",value:function(t,e){t&&t.setAttribute("value",e)}},{key:"updateProgressBarUnknown",value:function(t){t&&t.removeAttribute("value")}}]),Object.defineProperty(kr,"prototype",{writable:!1}),kr);function Ro(t){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Io(t,e){for(var r=0;r
    "),e}},{key:"getTopTabHolder",value:function(t){var t=void 0===t?"":t,e=document.createElement("div");return e.innerHTML="
    "),e}},{key:"getTab",value:function(t,e){var r=document.createElement("li"),n=(r.setAttribute("role","presentation"),document.createElement("a"));return n.setAttribute("href","#".concat(e)),n.appendChild(t),n.setAttribute("aria-controls",e),n.setAttribute("role","tab"),n.setAttribute("data-toggle","tab"),r.appendChild(n),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("li"),n=(r.setAttribute("role","presentation"),document.createElement("a"));return n.setAttribute("href","#".concat(e)),n.appendChild(t),n.setAttribute("aria-controls",e),n.setAttribute("role","tab"),n.setAttribute("data-toggle","tab"),r.appendChild(n),r}},{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"),(void 0!==t.rowPane?t.rowPane:t.container).classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.classList.remove("active"),(void 0!==t.rowPane?t.rowPane:t.container).classList.remove("active")}},{key:"getProgressBar",value:function(){var t=document.createElement("div"),e=(t.classList.add("progress"),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){var r;t&&(t=t.firstChild,r="".concat(e,"%"),t.setAttribute("aria-valuenow",e),t.style.width=r,t.innerHTML=r)}},{key:"updateProgressBarUnknown",value:function(t){var e;t&&(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 r=document.createElement("div"),n=(r.classList.add("input-group"),r.appendChild(t),document.createElement("div"));n.classList.add("input-group-btn"),r.appendChild(n);for(var i=0;iNumber(s))&&t.stepDown():e(t,s),y(t,"change")}),a.addEventListener("click",function(){t.getAttribute("initialized")?(!l||Number(t.value)
    "),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 t=void 0===t?"":t,e=document.createElement("div");return e.classList.add("card"),e.innerHTML="
    "),e}},{key:"getTab",value:function(t,e){var r=document.createElement("li"),n=(r.classList.add("nav-item"),document.createElement("a"));return n.classList.add("nav-link"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("li"),n=(r.classList.add("nav-item"),document.createElement("a"));return n.classList.add("nav-link"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{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"),(void 0!==t.rowPane?t.rowPane:t.container).classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.firstChild.classList.remove("active"),(void 0!==t.rowPane?t.rowPane: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"),e=(t.classList.add("progress"),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){var r;t&&(t=t.firstChild,r="".concat(e,"%"),t.setAttribute("aria-valuenow",e),t.style.width=r,t.innerHTML=r)}},{key:"updateProgressBarUnknown",value:function(t){var e;t&&(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 r=document.createElement("div"),n=(r.classList.add("input-group"),r.appendChild(t),document.createElement("div"));n.classList.add("input-group-append"),r.appendChild(n);for(var i=0;i .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"}),input_size:"normal",object_indent:!0,object_background:"bg-light",object_text:"",table_border:!1,table_zebrastyle:!1,tooltip:"bootstrap"},rn;function oa(t){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function aa(t,e){for(var r=0;rNumber(o))&&t.stepDown():e(t,o),y(t,"change")}),i.addEventListener("click",function(){t.getAttribute("initialized")?(!a||Number(t.value)
    "),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 t=void 0===t?"":t,e=document.createElement("div");return e.classList.add("card"),e.innerHTML="
    "),e}},{key:"getTab",value:function(t,e){var r=document.createElement("li"),n=(r.classList.add("nav-item"),document.createElement("a"));return n.classList.add("nav-link"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("li"),n=(r.classList.add("nav-item"),document.createElement("a"));return n.classList.add("nav-link"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{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"),(void 0!==t.rowPane?t.rowPane:t.container).classList.add("active")}},{key:"markTabInactive",value:function(t){t.tab.firstChild.classList.remove("active"),(void 0!==t.rowPane?t.rowPane: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"),e=(t.classList.add("progress"),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){var r;t&&(t=t.firstChild,r="".concat(e,"%"),t.setAttribute("aria-valuenow",e),t.style.width=r,t.innerHTML=r)}},{key:"updateProgressBarUnknown",value:function(t){var e;t&&(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 r=document.createElement("div");r.classList.add("input-group"),r.appendChild(t);for(var n=0;n .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"},(un=function(){function i(){var t=this;if(!(t instanceof i))throw new TypeError("Cannot call a class as a function");var t=this,e=i,r=arguments,n=(e=ca(e),t);if((e=sa()?Reflect.construct(e,r||[],ca(t).constructor):e.apply(t,r))&&("object"===oa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t=i,e=Ao;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),ua(t,e),aa((t=i).prototype,[{key:"getTable",value:function(){var t=la(ca(i.prototype),"getTable",this).call(this);return t.setAttribute("cellpadding",5),t.setAttribute("cellspacing",0),t}},{key:"getTableHeaderCell",value:function(t){t=la(ca(i.prototype),"getTableHeaderCell",this).call(this,t);return t.classList.add("ui-state-active"),t.style.fontWeight="bold",t}},{key:"getTableCell",value:function(){var t=la(ca(i.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){t=this.getDescription(t);return t.style.marginLeft="10px",t.style.display="inline-block",t}},{key:"getFormControl",value:function(t,e,r,n){t=la(ca(i.prototype),"getFormControl",this).call(this,t,e,r,n);return"checkbox"===e.type?(t.style.lineHeight="25px",t.style.padding="3px 0"):t.style.padding="4px 0 8px 0",t}},{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 r=document.createElement("label");return r.style.fontWeight="bold",r.style.display="block",r.textContent=t,e&&r.classList.add("required"),r}},{key:"getButton",value:function(t,e,r){var n=document.createElement("button"),e=(n.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),e&&!t?(n.classList.add("ui-button-icon-only"),e.classList.add("ui-button-icon-primary","ui-icon-primary"),n.appendChild(e)):e?(n.classList.add("ui-button-text-icon-primary"),e.classList.add("ui-button-icon-primary","ui-icon-primary"),n.appendChild(e)):n.classList.add("ui-button-text-only"),document.createElement("span"));return e.classList.add("ui-button-text"),e.textContent=t||r||".",n.appendChild(e),n.setAttribute("title",r),n}},{key:"setButtonText",value:function(t,e,r,n){t.innerHTML="",t.classList.add("ui-button","ui-widget","ui-state-default","ui-corner-all"),r&&!e?(t.classList.add("ui-button-icon-only"),r.classList.add("ui-button-icon-primary","ui-icon-primary"),t.appendChild(r)):r?(t.classList.add("ui-button-text-icon-primary"),r.classList.add("ui-button-icon-primary","ui-icon-primary"),t.appendChild(r)):t.classList.add("ui-button-text-only");r=document.createElement("span");r.classList.add("ui-button-text"),r.textContent=e||n||".",t.appendChild(r),t.setAttribute("title",n)}},{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){var e;!t.controls&&(t.controls=this.closest(t,".form-control"),this.queuedInputErrorText)&&(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"),void 0!==t.rowPane?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"),void 0!==t.rowPane?t.rowPane.style.display="none":t.container.style.display="none"}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}()).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 wa={disable_theme_rules:!((mn=function(){function i(){var t=this;if(!(t instanceof i))throw new TypeError("Cannot call a class as a function");var t=this,e=i,r=arguments,n=(e=fa(e),t);if((e=da()?Reflect.construct(e,r||[],fa(t).constructor):e.apply(t,r))&&("object"===ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t=i,e=Ao;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),ya(t,e),pa((t=i).prototype,[{key:"addInputError",value:function(t,e){var r;t.errmsg?t.errmsg.style.display="block":(r=this.closest(t,".form-control"),t.errmsg=document.createElement("div"),t.errmsg.setAttribute("class","errmsg"),r.nodeName&&r.appendChild(t.errmsg)),t.errmsg.innerHTML="",t.errmsg.appendChild(document.createTextNode(e)),t.errmsg.setAttribute("role","alert")}},{key:"removeInputError",value:function(t){t.style&&(t.style.borderColor=""),t.errmsg&&(t.errmsg.style.display="none")}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}()).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"}),label_bold:!0,align_bottom:!1,object_indent:!1,object_border:!1,table_border:!1,table_zebrastyle:!1,input_size:"normal"},kn;function _a(t){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ka(t,e){for(var r=0;r'),e}},{key:"getTopTabHolder",value:function(t){var t=void 0===t?"":t,e=document.createElement("div");return e.innerHTML='
      '),e}},{key:"getTab",value:function(t,e){var r=document.createElement("a");return r.classList.add("btn","btn-secondary","btn-block"),r.setAttribute("href","#".concat(e)),r.appendChild(t),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("li"),n=(r.id=e,r.classList.add("tab-item"),document.createElement("a"));return n.setAttribute("href","#".concat(e)),n.appendChild(t),r.appendChild(n),r}},{key:"markTabActive",value:function(t){t.tab.classList.add("active"),void 0!==t.rowPane?t.rowPane.style.display="":t.container.style.display=""}},{key:"markTabInactive",value:function(t){t.tab.classList.remove("active"),void 0!==t.rowPane?t.rowPane.style.display="none":t.container.style.display="none"}},{key:"afterInputReady",value:function(t){var e;"select"===t.localName&&(t.classList.contains("selectized")?(e=t.nextSibling)&&(e.classList.remove("form-select"),Array.from(e.querySelectorAll(".form-select")).forEach(function(t){t.classList.remove("form-select")})):t.classList.contains("select2-hidden-accessible")&&(e=t.nextSibling)&&e.querySelector(".select2-selection--single")&&e.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,t.errmsg.setAttribute("role","alert"))}},{key:"removeInputError",value:function(t){t.errmsg&&(t.errmsg.classList.add("d-hide"),t.controlgroup.classList.remove("has-error"))}}]),Object.defineProperty(t,"prototype",{writable:!1}),t}()).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"}),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},Sn,In=((Sn=function(){function o(t){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");var e=this,r=o,t=[t,xa],n=(r=D(r),e);if((r=ja()?Reflect.construct(r,t||[],D(e).constructor):r.apply(e,t))&&("object"===_a(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(r=n))throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var t=o,e=Ao;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),Oa(t,e),ka((t=o).prototype,[{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,r){0
        "),e.classList.add("flex"),e}},{key:"addTab",value:function(t,e){t.children[0].children[0].appendChild(e)}},{key:"getTopTabHolder",value:function(t){var t=void 0===t?"":t,e=document.createElement("div");return e.innerHTML="
        "),e}},{key:"getTab",value:function(t,e){var r=document.createElement("li"),n=(r.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"),document.createElement("a"));return n.classList.add("nav-link","text-center"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{key:"getTopTab",value:function(t,e){var r=document.createElement("li"),n=(r.classList.add("nav-item","flex","border-l","border-t","border-r"),document.createElement("a"));return n.classList.add("nav-link","-mb-px","flex-row","text-center","bg-white","p-2","hover:bg-blue-400","rounded-t"),n.setAttribute("href","#".concat(e)),n.setAttribute("data-toggle","tab"),n.appendChild(t),r.appendChild(n),r}},{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"),!0===t.tab.firstChild.classList.contains("border-b")?(t.tab.firstChild.classList.add("border-b-0"),t.tab.firstChild.classList.remove("border-b")):t.tab.firstChild.classList.add("border-b-0"),!0===t.container.classList.contains("hidden")&&t.container.classList.remove("hidden"),t.container.classList.add("block")}},{key:"markTabInactive",value:function(t){!0===t.tab.firstChild.classList.contains("border-b-0")?(t.tab.firstChild.classList.add("border-b"),t.tab.firstChild.classList.remove("border-b-0")):t.tab.firstChild.classList.add("border-b"),!0===t.container.classList.contains("block")&&(t.container.classList.remove("block"),t.container.classList.add("hidden"))}},{key:"getProgressBar",value:function(){var t=document.createElement("div"),e=(t.classList.add("progress"),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){var r;t&&(t=t.firstChild,r="".concat(e,"%"),t.setAttribute("aria-valuenow",e),t.style.width=r,t.innerHTML=r)}},{key:"updateProgressBarUnknown",value:function(t){var e;t&&(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 r=document.createElement("div"),n=(r.classList.add("relative","items-stretch","w-full"),r.appendChild(t),document.createElement("div"));n.classList.add("-mr-1"),r.appendChild(n);for(var i=0;it.length)&&(e=t.length);for(var r=0,n=new Array(e);r.je-indented-panel + padding: 0 + div[data-schematype="array"] + >.je-indented-panel + div[data-schematype].je-indented-panel + &:focus-within, + &:hover + background: smooth-color($content-background, 15) + >div + >div[data-schematype]+div[data-schematype] + margin: $theme-gap-medium-size 0 + >div[data-schematype]:first-child + margin-bottom: $theme-gap-medium-size + div:has(span>button.json-editor-btntype-delete), + div:has(span>button.json-editor-btntype-move) + position: relative + >span + &:has(button.json-editor-btntype-delete) + &:has(button.json-editor-btntype-move) + justify-content: space-between + flex-direction: row + position: absolute + flex-wrap: nowrap + display: flex + right: 0 + top: 0 + div[data-schematype="object"]>span + &:has(button.json-editor-btntype-delete), + &:has(button.json-editor-btntype-move) + button + margin-left: $theme-gap-small-size + .je-indented-panel>span + &:has(button.json-editor-btntype-delete), + &:has(button.json-editor-btntype-move) + margin: $theme-gap-medium-size $theme-gap-small-size + button + margin-right: $theme-gap-small-size + .je-header + font-weight: bold + button + border: 1px solid smooth-color($json-editor-color, 25) + padding: $theme-gap-small-size $theme-gap-medium-size + color: findColorInvert($json-editor-color) + background: $json-editor-color + &:before + padding-right: $theme-gap-medium-size + font: var(--fa-font-solid) + content: "\f550" + &:hover + background: smooth-color($json-editor-color, 20) + cursor: pointer + &.je-object__title + button:before + content: "\f1b2" + .json-editor-btn-add + border: 1px solid smooth-color($json-editor-add-color, 25) + color: findColorInvert($json-editor-add-color) + background: $json-editor-add-color + &:hover + background: smooth-color($json-editor-add-color, 15) + cursor: pointer + .json-editor-btntype-delete + border: 1px solid smooth-color($json-editor-delete-color, 25) + color: findColorInvert($json-editor-delete-color) + background: $json-editor-delete-color + &:hover + background: smooth-color($json-editor-delete-color, 15) + cursor: pointer + .json-editor-btntype-move + border: 1px solid smooth-color($json-editor-move-color, 25) + color: findColorInvert($json-editor-move-color) + background: $json-editor-move-color + &:hover + background: smooth-color($json-editor-move-color, 15) + cursor: pointer + .form-control + label + &:after + content: ":" + input + width: 100% + .errmsg + font-style: italic + color: red diff --git a/assets/sass/theme/variables.sass b/assets/sass/theme/variables.sass index 441a322d..b0d8e366 100644 --- a/assets/sass/theme/variables.sass +++ b/assets/sass/theme/variables.sass @@ -77,5 +77,9 @@ $intro-progressbar-color: mediumseagreen $intro-skipbutton-color: firebrick $intro-tooltip-min-width: 250px $intro-tooltip-max-width: 350px +$json-editor-color: steelblue +$json-editor-add-color: darkgreen +$json-editor-delete-color: firebrick +$json-editor-move-color: steelblue $mermaid-label-font-size: 0.875rem $treeview-icon-color: darkgreen \ No newline at end of file diff --git a/data/themeParams.toml b/data/themeParams.toml index 5811990d..9c8b55ed 100644 --- a/data/themeParams.toml +++ b/data/themeParams.toml @@ -107,6 +107,10 @@ "js/external/intro/intro.min.js", "js/shortcodes/intro.js" ] + jsoneditor = [ + "js/external/json-editor/jsoneditor.min.js", + "js/shortcodes/jsoneditor.js" + ] openapi = [ "js/shortcodes/openapi.js", ] diff --git a/exampleSite/content/english/shortcodes/jsoneditor.md b/exampleSite/content/english/shortcodes/jsoneditor.md new file mode 100644 index 00000000..c409c446 --- /dev/null +++ b/exampleSite/content/english/shortcodes/jsoneditor.md @@ -0,0 +1,25 @@ +--- +title: "{{< jsoneditor >}}" +description: "Shortcode {{< jsoneditor >}}." +categories: ["Shortcode"] +tags: ["Content management"] +--- + +# Description +--- + +The **jsoneditor** shortcode allows to ... + +# Paramètres +--- + +| Name | Type(named/positional) | Description | +| ---- | ---------------------- | ----------- | + +{{< jsoneditor >}} + +# Examples +--- + +| Markdown | Rendering | +| -------- | --------- | diff --git a/layouts/shortcodes/jsoneditor.html b/layouts/shortcodes/jsoneditor.html new file mode 100644 index 00000000..401744ce --- /dev/null +++ b/layouts/shortcodes/jsoneditor.html @@ -0,0 +1,7 @@ +

        Basic JSON Editor Example

        + +
        +
        +
        +
        + \ No newline at end of file