@pinegrow/quasar-module 3.0.49 → 3.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugin.cjs +1 -1
- package/package.json +2 -2
package/dist/plugin.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see plugin.cjs.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(global,(()=>(()=>{var t,e,i={294:t=>{"use strict";function e(t,e,s){t instanceof RegExp&&(t=i(t,s)),e instanceof RegExp&&(e=i(e,s));var r=n(t,e,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+t.length,r[1]),post:s.slice(r[1]+e.length)}}function i(t,e){var i=e.match(t);return i?i[0]:null}function n(t,e,i){var n,s,r,o,a,l=i.indexOf(t),c=i.indexOf(e,l+1),h=l;if(l>=0&&c>0){if(t===e)return[l,c];for(n=[],r=i.length;h>=0&&!a;)h==l?(n.push(h),l=i.indexOf(t,h+1)):1==n.length?a=[n.pop(),c]:((s=n.pop())<r&&(r=s,o=c),c=i.indexOf(e,h+1)),h=l<c&&l>=0?l:c;n.length&&(a=[r,o])}return a}t.exports=e,e.range=n},783:t=>{"use strict";const e=/[\p{Lu}]/u,i=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,s=/([\p{Alpha}\p{N}_]|$)/u,r=/[_.\- ]+/,o=new RegExp("^"+r.source),a=new RegExp(r.source+s.source,"gu"),l=new RegExp("\\d+"+s.source,"gu"),c=(t,s)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(s={pascalCase:!1,preserveConsecutiveUppercase:!1,...s},0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length)return"";const r=!1===s.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(s.locale),c=!1===s.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(s.locale);return 1===t.length?s.pascalCase?c(t):r(t):(t!==r(t)&&(t=((t,n,s)=>{let r=!1,o=!1,a=!1;for(let l=0;l<t.length;l++){const c=t[l];r&&e.test(c)?(t=t.slice(0,l)+"-"+t.slice(l),r=!1,a=o,o=!0,l++):o&&a&&i.test(c)?(t=t.slice(0,l-1)+"-"+t.slice(l-1),a=o,o=!1,r=!0):(r=n(c)===c&&s(c)!==c,a=o,o=s(c)===c&&n(c)!==c)}return t})(t,r,c)),t=t.replace(o,""),t=s.preserveConsecutiveUppercase?((t,e)=>(n.lastIndex=0,t.replace(n,(t=>e(t)))))(t,r):r(t),s.pascalCase&&(t=c(t.charAt(0))+t.slice(1)),((t,e)=>(a.lastIndex=0,l.lastIndex=0,t.replace(a,((t,i)=>e(i))).replace(l,(t=>e(t)))))(t,c))};t.exports=c,t.exports.default=c},199:(t,e,i)=>{var n=i(294);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(s).split("\\{").join(r).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)):[]};var s="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(s).join("\\").split(r).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],i=n("{","}",t);if(!i)return t.split(",");var s=i.pre,r=i.body,o=i.post,a=s.split(",");a[a.length-1]+="{"+r+"}";var l=u(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function p(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function m(t,e){return t>=e}function g(t,e){var i=[],s=n("{","}",t);if(!s)return[t];var r=s.pre,a=s.post.length?g(s.post,!1):[""];if(/\$$/.test(s.pre))for(var l=0;l<a.length;l++){var h=r+"{"+s.body+"}"+a[l];i.push(h)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),k=v||w,_=s.body.indexOf(",")>=0;if(!k&&!_)return s.post.match(/,.*\}/)?g(t=s.pre+"{"+s.body+o+s.post):[t];if(k)y=s.body.split(/\.\./);else if(1===(y=u(s.body)).length&&1===(y=g(y[0],!1).map(p)).length)return a.map((function(t){return s.pre+y[0]+t}));if(k){var x=c(y[0]),S=c(y[1]),C=Math.max(y[0].length,y[1].length),T=3==y.length?Math.abs(c(y[2])):1,A=f;S<x&&(T*=-1,A=m);var E=y.some(d);b=[];for(var O=x;A(O,S);O+=T){var P;if(w)"\\"===(P=String.fromCharCode(O))&&(P="");else if(P=String(O),E){var F=C-P.length;if(F>0){var L=new Array(F+1).join("0");P=O<0?"-"+L+P.slice(1):L+P}}b.push(P)}}else{b=[];for(var M=0;M<y.length;M++)b.push.apply(b,g(y[M],!1))}for(M=0;M<b.length;M++)for(l=0;l<a.length;l++)h=r+b[M]+a[l],(!e||k||h)&&i.push(h)}return i}},17:t=>{"use strict";t.exports=require("path")},748:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n},t.exports.__esModule=!0,t.exports.default=t.exports},314:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},850:(t,e,i)=>{var n=i(748);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},297:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},461:t=>{function e(t,e,i,n,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,s)}t.exports=function(t){return function(){var i=this,n=arguments;return new Promise((function(s,r){var o=t.apply(i,n);function a(t){e(o,s,r,a,l,"next",t)}function l(t){e(o,s,r,a,l,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},100:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},870:(t,e,i)=>{var n=i(739);function s(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,n(s.key),s)}}t.exports=function(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},290:(t,e,i)=>{var n=i(739);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},611:(t,e,i)=>{var n=i(209);function s(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=s=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=s=function(t,e,i){var s=n(t,e);if(s){var r=Object.getOwnPropertyDescriptor(s,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},t.exports.__esModule=!0,t.exports.default=t.exports),s.apply(this,arguments)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},660:t=>{function e(i){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},230:(t,e,i)=>{var n=i(560);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},912:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},193:t=>{t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},147:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},96:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},421:(t,e,i)=>{var n=i(425).default,s=i(297);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)},t.exports.__esModule=!0,t.exports.default=t.exports},609:(t,e,i)=>{var n=i(425).default;function s(){"use strict";t.exports=s=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var s=e&&e.prototype instanceof w?e:w,r=Object.create(s.prototype),o=new M(n||[]);return a(r,"_invoke",{value:O(t,i,o)}),r}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",b="completed",v={};function w(){}function k(){}function _(){}var x={};p(x,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==r&&o.call(C,c)&&(x=C);var T=_.prototype=w.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(s,r,a,l){var c=f(t[s],t,r);if("throw"!==c.type){var h=c.arg,u=h.value;return u&&"object"==n(u)&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,a,l)}),(function(t){i("throw",t,a,l)})):e.resolve(u).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,l)}))}l(c.arg)}var s;a(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,s){i(t,n,e,s)}))}return s=s?s.then(r,r):r()}})}function O(t,i,n){var s=m;return function(r,o){if(s===y)throw new Error("Generator is already running");if(s===b){if("throw"===r)throw o;return{value:e,done:!0}}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var l=P(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(s===m)throw s=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);s=y;var c=f(t,i,n);if("normal"===c.type){if(s=n.done?b:g,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(s=b,n.method="throw",n.arg=c.arg)}}}function P(t,i){var n=i.method,s=t.iterator[n];if(s===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,P(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var r=f(s,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,v;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,v):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function j(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,r=function i(){for(;++s<t.length;)if(o.call(t,s))return i.value=t[s],i.done=!1,i;return i.value=e,i.done=!0,i};return r.next=r}}throw new TypeError(n(t)+" is not iterable")}return k.prototype=_,a(T,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:k,configurable:!0}),k.displayName=p(_,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,u,"GeneratorFunction")),t.prototype=Object.create(T),t},i.awrap=function(t){return{__await:t}},A(E.prototype),p(E.prototype,h,(function(){return this})),i.AsyncIterator=E,i.async=function(t,e,n,s,r){void 0===r&&(r=Promise);var o=new E(d(t,e,n,s),r);return i.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(T),p(T,u,"Generator"),p(T,c,(function(){return this})),p(T,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},i.values=j,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var i in this)"t"===i.charAt(0)&&o.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function n(n,s){return a.type="throw",a.arg=t,i.next=n,s&&(i.method="next",i.arg=e),!!s}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var l=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=t,r.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),L(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var s=n.arg;L(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:j(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),v}},i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},560:t=>{function e(i,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},681:(t,e,i)=>{var n=i(314),s=i(193),r=i(121),o=i(147);t.exports=function(t,e){return n(t)||s(t,e)||r(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},209:(t,e,i)=>{var n=i(660);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},408:(t,e,i)=>{var n=i(850),s=i(912),r=i(121),o=i(96);t.exports=function(t){return n(t)||s(t)||r(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},64:(t,e,i)=>{var n=i(425).default;t.exports=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},739:(t,e,i)=>{var n=i(425).default,s=i(64);t.exports=function(t){var e=s(t,"string");return"symbol"===n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},425:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},121:(t,e,i)=>{var n=i(748);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},841:(t,e,i)=>{var n=i(609)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},813:(t,e,i)=>{"use strict";i.r(e),i.d(e,{def_all:()=>K});var n={};i.r(n),i.d(n,{amber:()=>S,blue:()=>g,blueGrey:()=>O,brown:()=>A,common:()=>h,cyan:()=>b,deepOrange:()=>T,deepPurple:()=>f,green:()=>w,grey:()=>E,indigo:()=>m,lightBlue:()=>y,lightGreen:()=>k,lime:()=>_,orange:()=>C,pink:()=>p,purple:()=>d,red:()=>u,teal:()=>v,yellow:()=>x});var s=i(290),r=i(506),o=i(681),a=i(408),l=i(870),c=i(100);const h={black:"#000",white:"#fff"},u={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},m={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},v={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},w={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},k={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},_={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},x={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},S={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},C={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},T={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},A={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},E={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},O={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};var P=function(t){var e=["lighten","darken","accent"],i=Object.keys(t).reduce((function(t,i){var n=i.split("-");return n.length>=3&&e.includes(n[n.length-2])?[].concat(a(t),[n.slice(0,n.length-2).join("-")]):[].concat(a(t),[i])}),[]);return(i=a(new Set(i))).map((function(i){var n=Object.entries(t).reduce((function(n,s){var r=o(s,2),l=r[0],c=r[1],h=l.split("-"),u=h.slice(h.length-2).join("-");if(!(h.length>1&&n.map((function(t){return t.name})).includes(u))&&l.startsWith(i)&&h.length>=3&&e.includes(h[h.length-2])){var p=[].concat(a(n),[{name:u,hex:c}]);return"lighten-1"===u&&p.push({name:"",hex:t[i]}),p}return n}),[]);return{color:i,variants:n,hex:t[i]}}))},F=function(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#333333":"#ebedef"},L=new(l((function t(){var e=this;c(this,t),s(this,"init",(function(){e.buildColorsMapAndSwatches(),e.buildColorsMeta()})),s(this,"initOptions",(function(){e.buildColorsOptionsAndTextOptions()})),s(this,"buildColorsMapAndSwatches",(function(){e.colors.forEach((function(t){var i=n[t];if(i){var s=[];s.push(i[500]),Object.entries(i).forEach((function(i){var n,r=o(i,2),a=r[0],l=r[1];("brown"!==t&&"grey"!==t&&"blueGrey"!==t||"A100"!==a&&"A200"!==a&&"A400"!==a&&"A700"!==a)&&(e.colorsMap["".concat((n=t,n.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).join(""))).concat("500"===a?"":"-"+e.colorWeights[a]).toLowerCase()]=l,"500"!==a&&s.push(l))})),e.swatches.push(s)}})),e.colorsMap.black="#000000",e.colorsMap.white="#ffffff",e.swatches.push(["#000000","#ffffff"])})),s(this,"buildColorsMeta",(function(){e.colorsMeta=P(e.colorsMap)})),s(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,i=[],n=[];e.colorsMeta.forEach((function(e){var s=e.color,r=e.hex;if(s&&r){var o=s.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");i.push({key:s,name:o,html:t.makeColor(r,"",{attributes:{title:o}})}),n.push({key:s,name:o,html:t.makeColorText(r,"",{attributes:{title:o}})})}})),e.colorOptions=i,e.colorTextOptions=n})),s(this,"hexToName",(function(t){var i;return""===t&&(i="none"),Object.entries(e.colorsMap).forEach((function(e){var n=o(e,2),s=n[0],r=n[1];t===r&&(i=s)})),i||t})),s(this,"nameToHex",(function(t){return""===t?"none":e.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.colors=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","grey","blueGrey","black","white"],this.colorWeights={50:"lighten-5",100:"lighten-4",200:"lighten-3",300:"lighten-2",400:"lighten-1",500:"",600:"darken-1",700:"darken-2",800:"darken-3",900:"darken-4",A100:"accent-1",A200:"accent-2",A400:"accent-3",A700:"accent-4"},this.colorsMap={},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.swatches=[],this.init()}))),M=new(l((function t(){var e=this;c(this,t),s(this,"init",(function(t){e.colorsMap=t||{},e.buildColorsMeta(),e.buildColors()})),s(this,"initOptions",(function(){e.buildColorsOptionsAndTextOptions()})),s(this,"buildColorsMeta",(function(){e.colorsMeta=P(e.colorsMap)})),s(this,"buildColors",(function(){e.colors=e.colorsMeta.map((function(t){return t.color}))})),s(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,i=[],n=[];e.colorsMeta.forEach((function(e){var s=e.color,r=e.hex;if(s&&r){var o=s.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");i.push({key:s,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px","background-color":"".concat(r),color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":F(r)),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})}),n.push({key:s,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px",color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":"Neutral"===o?F(r):r),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})})}})),e.colorOptions=i,e.colorTextOptions=n})),s(this,"hexToName",(function(t){var i;return""===t&&(i="none"),Object.entries(e.colorsMap).forEach((function(e){var n=o(e,2),s=n[0],r=n[1];t===r&&(i=s)})),i||t})),s(this,"nameToHex",(function(t){return""===t?"none":e.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.colors=[],this.colorsMap={neutral:"#121212"},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.init()})));function j(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function z(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?j(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var D=function(){L.swatches,z(z({},L.colorsMap),M.colorsMap),[].concat(a(L.colorsMeta),a(M.colorsMeta)),M.colorsMap};D();var R,B=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(){var t;try{t=componentStateRef.state.find((function(t){return"$vuetify"===t.key}))}catch(t){}var e={};if(t){try{var i,n;e=null===(i=t)||void 0===i||null===(i=i.value)||void 0===i||null===(i=i.theme)||void 0===i||null===(i=i.global)||void 0===i||null===(i=i.current)||void 0===i?void 0:i.colors,null===(n=t)||void 0===n||null===(n=n.value)||void 0===n||null===(n=n.theme)||void 0===n||null===(n=n.global)||void 0===n||null===(n=n.current)||void 0===n||n.dark}catch(t){}e||(e={});var s=z({},e),r=Object.entries(s).reduce((function(t,e){var i=o(e,2),n=i[0],s=i[1];if(n.startsWith("background")||n.startsWith("surface")||n.startsWith("on-"))return t;var r={};return r[n]=s,z(z({},t),r)}),{});R=z(z({},r),{},{transparent:"#ffffff"}),function(t){t||(t={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1","primary-darken-1":"#6750a4",secondary:"#787285","secondary-darken-1":"#625b71",tertiary:"#906a76","tertiary-darken-1":"#7d5260",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"});try{var e=z(z({},{}),t());e=Object.fromEntries(Object.entries(e).map((function(t){var e=o(t,2),i=e[0],n=e[1];return[i.toLowerCase(),n.toLowerCase()]}))),M.init(e),D(),L.initOptions(),M.initOptions(),[].concat(a(L.colorOptions),a(M.colorOptions)),[].concat(a(L.colorTextOptions),a(M.colorTextOptions))}catch(t){}}((function(){return R}))}}();var i=[],n=[],s=[],r=e?[].concat(a(M.colorsMeta.map((function(t){return z(z({},t),{},{palette:!0})}))),a(L.colorsMeta)):L.colorsMeta,l=["lighten","darken","accent"];return r.forEach((function(e){var r,o=[];e.variants.forEach((function(i){var a="".concat(e.color).concat(i.name?"-".concat(i.name):""),c={key:"".concat(t).concat(a),name:a,color:i.hex},h=a.split("-");e.palette&&h.length>=2&&l.includes(h[h.length-2])&&(c.second_row=!0),e.palette&&!c.second_row&&n.push(c),c.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?s.push(c):o.push(c),i.name||(r=c)})),r&&o.unshift(z({},r));var a=e.color.split("-");e.palette&&a.length>=2&&l.includes(a[a.length-2])&&(c.second_row=!0);var c={key:"".concat(t).concat(e.color),name:"".concat(e.color),color:e.hex};e.palette&&!c.second_row&&n.push(c),c.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?s.push(c):e.palette||e.variants.length||o.push(c),o.length&&i.push(o)})),[n,s].concat(i)};function I(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return N(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var W,$=function(t,e){var i={"lighten-5":"1","lighten-4":"2","lighten-3":"3","lighten-2":"4","lighten-1":"5","darken-1":"7","darken-2":"8","darken-3":"9","darken-4":"10","accent-1":"11","accent-2":"12","accent-3":"13","accent-4":"14"};return t.forEach((function(t){t.forEach((function(t,e){if(t&&t.key){var n=Object.keys(i).reduce((function(e,i){return e&&!t.key.endsWith(i)}),!0);"white"!==t.name&&"black"!==t.name&&n&&0!==e?(t.key="".concat(t.key,"-6"),t.name="".concat(t.name,"-6")):Object.entries(i).forEach((function(e){var i=o(e,2),n=i[0],s=i[1];t.key=t.key.replace(n,s),t.name=t.name.replace(n,s)}))}}))})),Object.entries({brown:{11:"#d7ccc8",12:"#bcaaa4",13:"#8d6e63",14:"#5d4037"},grey:{11:"#f5f5f5",12:"#eee",13:"#bdbdbd",14:"#616161"},"blue-grey":{11:"#cfd8dc",12:"#b0bec5",13:"#78909c",14:"#455a64"}}).forEach((function(i){var n=o(i,2),s=n[0],r=n[1],a=t.find((function(t){var e;return(null===(e=t[0])||void 0===e?void 0:e.name)==="".concat(s,"-1")}));a&&Object.entries(r).forEach((function(t){var i=o(t,2),n=i[0],r=i[1];a.push({key:"".concat(e,"-").concat(s,"-").concat(n),name:"".concat(s,"-").concat(n),color:r})}))})),t},q=function(t,e){var i=$(B(t,e),t),n=[];return i.forEach((function(t){t.forEach((function(t){n.push({key:"".concat(t.key),name:"".concat(t.name),color:t.color})}))})),n},U=function(t,e,i){var n=t||"text-";return{type:"color",name:e||"Color",show_empty:!0,toggle_buttons:!0,options:function(){return q(n,!0)},fill_list_on_open:!0,text_color:"text-"===n,colors:function(t){return $(B(n),n)},parent_section_id:i,action:"custom",get_value:function(t,e,i,s){var r,o=q(n,!0).map((function(t){return t.key})),a=I(t.getClasses());try{for(a.s();!(r=a.n()).done;){var l=r.value;if(o.includes(l))return l}}catch(t){a.e(t)}finally{a.f()}},set_value:function(t,e,i,s,r,o,a){var l=q("".concat(n,"-"),!0).map((function(t){return t.key})),c=t.getClasses(),h=!1;if(c.length){var u,p=I(c);try{for(p.s();!(u=p.n()).done;){var d=u.value;(s===d||l.includes(d))&&(t.removeClass(d),h=!0)}}catch(t){p.e(t)}finally{p.f()}}return e&&(t.addClass(e),h=!0),h&&pinegrow.reselectElement(t),e}}},G=r.MS.getQuasarColor=function(t){switch(t){case"primary":return"#1976d2";case"secondary":return"#26A69A";case"accent":return"#9C27B0";case"dark":return"#1d1d1d";case"positive":return"#21BA45";case"negative":return"#C10015";case"info":return"#31CCEC";case"warning":return"#F2C037";case"white":default:return"#fff";case"black":return"#000"}},H=r.MS.getButtonTypeToggleButton=function(t,e,i,n){var s={};if(e&&(s.title=e),n=n||t,"link"==t)return r.bm.makeColor(null,"T",{"text-decoration":"underline",attributes:s});var o={title:t,default_color:G(t)};return i&&(o.height=i),r.bm.makeColorFromCSSVariable("--q-"+n,o)},V=(r.MS.getPaletteColors=function(){var t={};return["primary","secondary","accent","dark","positive","negative","info","warning","white","black"].forEach((function(e){t[e]=G(e)})),t},r.MS.getQuasarPaletteOptions=function(t){return[{key:"".concat(t,"-primary"),name:"Primary",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-primary",{title:"Primary",default_color:G("primary")}):H("primary","Primary",null,"primary"),ahtml:r.bm.makeColorText(G("primary"))},{key:"".concat(t,"-secondary"),name:"Secondary",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-secondary",{title:"Secondary",default_color:G("secondary")}):H("secondary","Secondary",null,"secondary"),ahtml:r.bm.makeColorText(G("secondary"))},{key:"".concat(t,"-accent"),name:"Accent",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-accent",{title:"Accent",default_color:G("accent")}):H("accent","Accent",null,"accent"),ahtml:r.bm.makeColorText(G("accent"))},{key:"".concat(t,"-dark"),name:"Dark",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-dark",{title:"Dark",default_color:G("dark")}):H("dark","Dark",null,"dark"),ahtml:r.bm.makeColorText(G("dark"))},{key:"".concat(t,"-positive"),name:"Positive",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-positive",{title:"Positive",default_color:G("positive")}):H("positive","Positive",null,"positive"),ahtml:r.bm.makeColorText(G("positive"))},{key:"".concat(t,"-negative"),name:"Negative",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-negative",{title:"Negative",default_color:G("negative")}):H("negative","Negative",null,"negative"),ahtml:r.bm.makeColorText(G("negative"))},{key:"".concat(t,"-info"),name:"Info",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-info",{title:"Info",default_color:G("info")}):H("info","Info",null,"info"),ahtml:r.bm.makeColorText(G("info"))},{key:"".concat(t,"-warning"),name:"Warning",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-warning",{title:"Warning",default_color:G("warning")}):H("warning","Warning",null,"warning"),ahtml:r.bm.makeColorText(G("warning"))},{key:"".concat(t,"-white"),name:"White",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-white",{title:"White",default_color:G("white")}):r.bm.makeColor("#fff","",{attributes:{title:"White"}}),ahtml:r.bm.makeColorText(G("white"))},{key:"".concat(t,"-black"),name:"Black",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-black",{title:"Black",default_color:G("black")}):r.bm.makeColor("#000","",{attributes:{title:"Black"}}),ahtml:r.bm.makeColorText(G("black"))}]}),Y=i(991),J=i(161),Z=function(t){return t.children,t.children.reduce((function(t,e){var i=e.getClasses().reduce((function(t,e){return t||e.startsWith("col")||e.startsWith("offset")}),!1);return t||i}),!1)},Q=function(t){return!Z(t)},X=function(t){return function(){return{name:"column"===t?"Column Gutter":"Gutter",on_section_shown:r.vz,show_if:"column"===t?Z:Q,fields:s({},"".concat(t,"_gutter'"),{type:"custom",name:"".concat(t,"_gutter'"),action:"none",control:(0,r.of)(t)})}}},K=new PgComponentType(r.O4+"all","All elements",{selector:function(t){return Y.hC},name:"Div",display_name:"tag",priority:2001,sections:(0,r.e9)({textcolor:{name:"Text Color",compact:!0,fields:{palette:{type:"select",name:"Palette",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:function(){return V("text")}},swatches:U("text-","Swatches",r.O4+"textcolor")}},typography:{name:"Typography",fields:{typography:(W={name:"Typography",action:"none",type:"select"},s(W,"action","apply_class"),s(W,"show_empty",!0),s(W,"toggle_buttons",!0),s(W,"options",[{key:"text-h1",name:"1",html:r.bm.makeText("H1",{attributes:{title:"Heading 1"}})},{key:"text-h2",name:"2",html:r.bm.makeText("H2",{attributes:{title:"Heading 2"}})},{key:"text-h3",name:"3",html:r.bm.makeText("H3",{attributes:{title:"Heading 3"}})},{key:"text-h4",name:"4",html:r.bm.makeText("H4",{attributes:{title:"Heading 4"}})},{key:"text-h5",name:"5",html:r.bm.makeText("H5",{attributes:{title:"Heading 5"}})},{key:"text-h6",name:"6",html:r.bm.makeText("H6",{attributes:{title:"Heading 6"}})},{key:"text-subtitle-1",name:"Subtitle 1",html:r.bm.makeText("Subtitle 1",{attributes:{title:"Subtitle 1"}})},{key:"text-subtitle-2",name:"Subtitle 2",html:r.bm.makeText("Subtitle 2",{attributes:{title:"Subtitle 2"}})},{key:"text-body-1",name:"Body 1",html:r.bm.makeText("Body 1",{attributes:{title:"Body 1"}})},{key:"text-body-2",name:"Body 2",html:r.bm.makeText("Body 2",{attributes:{title:"Body 2"}})},{key:"text-caption",name:"Caption",html:r.bm.makeText("Caption",{attributes:{title:"Caption"}})},{key:"text-overline",name:"Overline",html:r.bm.makeText("Overline",{attributes:{title:"Overline"}})}]),W),fontweight:{type:"select",name:"Font weight",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-weight-bolder",name:"Bolder",html:r.bm.makeText("Bolder",{attributes:{title:"Bolder"}})},{key:"text-weight-bold",name:"Bold",html:r.bm.makeText("Bold",{attributes:{title:"Bold"}})},{key:"text-weight-medium",name:"Medium",html:r.bm.makeText("Medium",{attributes:{title:"Medium"}})},{key:"text-weight-regular",name:"Regular",html:r.bm.makeText("Regular",{attributes:{title:"Regular"}})},{key:"text-weight-light",name:"Light",html:r.bm.makeText("Light",{attributes:{title:"Light"}})},{key:"text-weight-thin",name:"Thin",html:r.bm.makeText("Thin",{attributes:{title:"Thin"}})}]},textalign:{name:"Text align",type:"select",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-left",name:"Left",html:r.bm.makeIcon("align-left",{attributes:{title:"Left"}})},{key:"text-center",name:"Center",html:r.bm.makeIcon("align-center",{attributes:{title:"Center"}})},{key:"text-right",name:"Right",html:r.bm.makeIcon("align-right",{attributes:{title:"Right"}})},{key:"text-justify",name:"Justify",html:r.bm.makeIcon("align-full",{attributes:{title:"Justify"}})}]},transform:{type:"select",name:"Transform",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-lowercase",name:"Lowercase",html:r.bm.makeIcon("lowercase")},{key:"text-uppercase",name:"Uppercase",html:r.bm.makeIcon("uppercase")},{key:"text-capitalize",name:"Capitalize",html:r.bm.makeIcon("sentence-case")}]},whitespace:{type:"checkbox",name:"No Wrap",action:"apply_class",value:"text-no-wrap"},fontstyle:{type:"checkbox",name:"Italic",action:"apply_class",value:"text-italic"},fontbold:{type:"checkbox",name:"Bold",action:"apply_class",value:"text-bold"},decoration:{type:"checkbox",name:"Line through",action:"apply_class",value:"text-strike"}}},background:{name:"Background Color",compact:!0,fields:{bg_palette:{type:"select",name:"Palette",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:function(){return V("bg")}},bg_swatches:U("bg-","Swatches",r.O4+"background"),dimmed:{type:"select",name:"Dimmed",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"transparent",name:"Transparent",html:r.bm.makeText("Transparent",{attributes:{title:"Transparent"}})},{key:"dimmed",name:"Dimmed",html:r.bm.makeText("Dimmed",{attributes:{title:"Dimmed"}})},{key:"light-dimmed",name:"Light Dimmed",html:r.bm.makeText("Light Dimmed",{attributes:{title:"Light Dimmed"}})}]},glossy:{type:"checkbox",name:"Glossy",action:"apply_class",value:"glossy"}}},spacing:{name:"Spacing",on_section_shown:r.vz,fields:{margin_control:{type:"custom",name:"Spacing",action:"none",control:(0,r.Cw)()},no_margin:{type:"checkbox",name:"No Margin",action:"apply_class",value:"no-margin"},no_padding:{type:"checkbox",name:"No Padding",action:"apply_class",value:"no-padding"}}},dimension:{name:"Dimension",fields:{display:{type:"select",name:"Display",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"block",name:"Block",html:r.bm.makeText("Block",{attributes:{title:"Block"}})},{key:"inline-block",name:"Inline Block",html:r.bm.makeText("Inline Block",{attributes:{title:"Inline Block"}})}]},width:{type:"select",name:"Width",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-width",name:"Full Width",html:r.bm.makeText("Full Width",{attributes:{title:"Full Width"}})},{key:"window-width",name:"Window Width",html:r.bm.makeText("Window Width",{attributes:{title:"Window Width"}})}]},height:{type:"select",name:"Height",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-height",name:"Full Height",html:r.bm.makeText("Full Height",{attributes:{title:"Full Height"}})},{key:"window-height",name:"Window Height",html:r.bm.makeText("Window Height",{attributes:{title:"Window Height"}})}]},fit:{type:"checkbox",name:"Fit",action:"apply_class",value:"fit"}}},visibility:{name:"Visibility",fields:{disabled:{type:"checkbox",name:"Disabled",action:"apply_class",value:"disabled"},hidden:{type:"checkbox",name:"Hidden (display:none)",action:"apply_class",value:"hidden"},invisible:{type:"checkbox",name:"Invisible (visibility:hidden)",action:"apply_class",value:"invisible"},readonly:{type:"checkbox",name:"Readonly",action:"apply_class",value:"readonly"},ellipsis:{type:"select",name:"Ellipsis",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"ellipsis",name:"Ellipsis",html:r.bm.makeText("Ellipsis",{attributes:{title:"Ellipsis"}})},{key:"ellipsis-2-lines",name:"Ellipsis 2 lines",html:r.bm.makeText("Ellipsis 2 lines",{attributes:{title:"Ellipsis 2 lines"}})},{key:"ellipsis-3-lines",name:"Ellipsis 3 lines",html:r.bm.makeText("Ellipsis 3 lines",{attributes:{title:"Ellipsis 3 lines"}})}]},zindex:{type:"select",name:"Z-index",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"z-top",name:"Z Top",html:r.bm.makeText("Z Top",{attributes:{title:"Z Top"}})},{key:"z-max",name:"Z Max",html:r.bm.makeText("Z Max",{attributes:{title:"Z Max"}})}]},orientation:{type:"select",name:"Orientation",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"orientation-portrait",name:"Portrait",html:r.bm.makeText("Portrait",{attributes:{title:"Portrait"}})},{key:"orientation-landscape",name:"Landscape",html:r.bm.makeText("Landscape",{attributes:{title:"Landscape"}})}]},platform_only:{type:"select",name:"Only in Platform",action:"apply_class",show_empty:!0,options:[{key:"desktop-only",name:"Desktop"},{key:"mobile-only",name:"Mobile"},{key:"native-mobile-only",name:"Native Mobile"},{key:"cordova-only",name:"Cordova"},{key:"capacitor-only",name:"Capacitor"},{key:"electron-only",name:"Electron"},{key:"touch-only",name:"Touch"},{key:"platform-ios-only",name:"iOS"},{key:"platform-android-only",name:"Android"},{key:"within-iframe-only",name:"iframe"}]},platform_hide:{type:"select",name:"Hide in Platform",action:"apply_class_multiple",show_empty:!0,multiple:!0,options:[{key:"desktop-hide",name:"Desktop"},{key:"mobile-hide",name:"Mobile"},{key:"native-mobile-hide",name:"Native Mobile"},{key:"cordova-hide",name:"Cordova"},{key:"capacitor-hide",name:"Capacitor"},{key:"electron-hide",name:"Electron"},{key:"touch-hide",name:"Touch"},{key:"platform-ios-hide",name:"iOS"},{key:"platform-android-hide",name:"Android"},{key:"within-iframe-hide",name:"iframe"}]},print:{type:"select",name:"Print",action:"apply_class",show_empty:!0,options:[{key:"print-only",name:"Print only"},{key:"print-hide",name:"Screen only"}]}}},position:{name:"Position",fields:{position_common:{type:"select",name:"Position",action:"apply_class",show_empty:!0,options:[{key:"fullscreen",name:"Fullscreen"},{key:"relative-position",name:"Relative Position"},{key:"absolute",name:"Absolute"},{key:"absolute-full",name:"Absolute Full"},{key:"absolute-center",name:"Absolute Center"},{key:"absolute-bottom",name:"Absolute Bottom"},{key:"absolute-left",name:"Absolute Left"},{key:"absolute-right",name:"Absolute Right"},{key:"absolute-top",name:"Absolute Top"},{key:"absolute-top-left",name:"Absolute Top Left"},{key:"absolute-top-right",name:"Absolute Top Right"},{key:"absolute-bottom-left",name:"Absolute Bottom Left"},{key:"absolute-bottom-right",name:"Absolute Bottom Right"},{key:"fixed",name:"Fixed"},{key:"fixed-full",name:"Fixed Full"},{key:"fixed-center",name:"Fixed Center"},{key:"fixed-bottom",name:"Fixed Bottom"},{key:"fixed-left",name:"Fixed Left"},{key:"fixed-right",name:"Fixed Right"},{key:"fixed-top",name:"Fixed Top"},{key:"fixed-top-left",name:"Fixed Top Left"},{key:"fixed-top-right",name:"Fixed Top Right"},{key:"fixed-bottom-left",name:"Fixed Bottom Left"},{key:"fixed-bottom-right",name:"Fixed Bottom Right"}]},horizontal_alignment:{type:"select",name:"Horizontal Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"on-left",name:"On Left",html:r.bm.makeText("On Left",{attributes:{title:"On Left"}})},{key:"on-right",name:"On Right",html:r.bm.makeText("On Right",{attributes:{title:"On Right"}})}]},vertical_alignment:{type:"select",name:"Vertical Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"vertical-top",name:"Top",html:r.bm.makeText("Top",{attributes:{title:"Top"}})},{key:"vertical-middle",name:"Middle",html:r.bm.makeText("Middle",{attributes:{title:"Middle"}})},{key:"vertical-bottom",name:"Bottom",html:r.bm.makeText("Bottom",{attributes:{title:"Bottom"}})}]}}},overflow:{name:"Overflow",fields:{overflow:{type:"select",name:"Scroll",action:"apply_class",show_empty:!0,options:[{key:"scroll",name:"Scroll"},{key:"no-scroll",name:"No Scroll"},{key:"overflow-auto",name:"Overflow Auto"},{key:"overflow-hidden",name:"Overflow Hidden"},{key:"overflow-hidden-y",name:"Overflow Hidden Y"},{key:"hide-scrollbar",name:"Hide Scrollbar"}]}}},mouse:{name:"Mouse",compact:!0,fields:{user_select:{type:"checkbox",name:"Non selectable",action:"apply_class",value:"non-selectable"},pointer_events:{type:"select",name:"Pointer Events",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-pointer-events\t",name:"None",html:r.bm.makeText("None",{attributes:{title:"None"}})},{key:"all-pointer-events\t",name:"All",html:r.bm.makeText("All",{attributes:{title:"All"}})}]},cursor:{type:"select",name:"Cursor",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"cursor-pointer",name:"Pointer",html:r.bm.makeText("Pointer",{attributes:{title:"Pointer"}})},{key:"cursor-not-allowed",name:"Not Allowed",html:r.bm.makeText("Not Allowed",{attributes:{title:"Not Allowed"}})},{key:"cursor-inherit",name:"Inherit",html:r.bm.makeText("Inherit",{attributes:{title:"Inherit"}})},{key:"cursor-none",name:"None",html:r.bm.makeText("None",{attributes:{title:"None"}})}]}}},elevation:{name:"Elevation",compact:!0,fields:{shadow:{type:"select",name:"Shadow",action:"apply_class",show_empty:!0,draggable_list:!0,options:function(){for(var t=[{key:"no-shadow",name:"No Shadow"},{key:"inset-shadow",name:"Inset Shadow"},{key:"inset-shadow-down",name:"Inset Shadow Down"}],e=0;e<=24;e++)t.push({key:"shadow-"+e,name:"shadow-"+e});for(e=0;e<=24;e++)t.push({key:"shadow-up-"+e,name:"shadow-up-"+e});return t}},shadow_transition:{type:"checkbox",name:"Shadow Transition",action:"apply_class",value:"shadow-transition"}}},border:{name:"Border",fields:{border_radius:{type:"select",name:"Border Radius",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rounded-borders",name:"Rounded Borders",html:r.bm.makeText("Rounded Borders",{attributes:{title:"Rounded Borders"}})},{key:"border-radius-inherit",name:"Border Radius Inherit",html:r.bm.makeText("Border Radius Inherit",{attributes:{title:"Border Radius Inherit"}})},{key:"no-border-radius",name:"No Border Radius",html:r.bm.makeText("No Border Radius",{attributes:{title:"No Border Radius"}})}]},no_border:{type:"checkbox",name:"No Border",action:"apply_class",value:"no-border"},no_border_shadow:{type:"checkbox",name:"No Border Shadow",action:"apply_class",value:"no-border-shadow"},no_outline:{type:"checkbox",name:"No Outline",action:"apply_class",value:"no-outline"}}},flexcontainer:{name:"Flex / Row / Column",on_section_shown:r.vz,fields:{flex_direction:{type:"custom",name:"flex_direction",action:"none",control:(0,r.ac)("flex.direction","Direction",(function(t,e){return{type:"select",name:(0,r.qV)("Direction",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"flex"+(e||""),name:"Flex",html:r.bm.makeIcon("Pin22",{attributes:{title:"Flex"}})},{key:"row"+(e||""),name:"Row",html:r.bm.makeIcon("225",{attributes:{title:"Row"}})},{key:"column"+(e||""),name:"Column",html:r.bm.makeIcon("227",{attributes:{title:"Column"}})}]}}))},flex_display:{type:"custom",name:"Display",action:"none",control:(0,r.ac)("flex_display","Display",(function(t,e){return{type:"checkbox",name:"Inline flex",action:"apply_class",value:"inline"+(e||"")}}))},flex_reverse:{type:"custom",name:"Direction",action:"none",control:(0,r.ac)("flex_reverse","Direction",(function(t,e){return{type:"checkbox",name:"Reverse",action:"apply_class",value:"reverse"+(e||"")}}))},flex_justify_content:{type:"custom",name:"Justify content",action:"none",control:(0,r.ac)("flex_justify_content","Justify content",(function(t,e){var i="justify"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Justify content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("218",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("219",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:r.bm.makeIcon("206",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:r.bm.makeIcon("205",{attributes:{title:"Around"}})},{key:i+"evenly",name:"",html:r.bm.makeIcon("205",{attributes:{title:"Evenly"}})}]}}))},flex_align_items:{type:"custom",name:"Align items",action:"none",control:(0,r.ac)("flex_align_items","Align items",(function(t,e){var i="items"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Align items",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("220",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("221",{attributes:{title:"Center"}})},{key:i+"baseline",name:"",html:r.bm.makeIcon("212",{attributes:{title:"Baseline"}})},{key:i+"stretch",name:"",html:r.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_align_content:{type:"custom",name:"Align content",action:"none",control:(0,r.ac)("flex_align_content","Align content",(function(t,e){var i="content"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Align content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("217",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("216",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("215",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:r.bm.makeIcon("210",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:r.bm.makeIcon("209",{attributes:{title:"Around"}})},{key:i+"stretch",name:"",html:r.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_wrap:{type:"custom",name:"Wrap",action:"none",control:(0,r.ac)("flex_wrap","Wrap",(function(t,e){var i=e||"";return{type:"select",name:(0,r.qV)("Wrap",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-wrap"+i,name:"",html:r.bm.makeIcon("203",{attributes:{title:"No wrap"}})},{key:"wrap"+i,name:"",html:r.bm.makeIcon("204",{attributes:{title:"Wrap"}})},{key:"reverse-wrap"+i,name:"",html:r.bm.makeIcon("202",{attributes:{title:"Wrap reverse"}})}]}}))}}},gutter:X("any")(),gutter_col:X("column")(),flexchild:(0,J.D)("flexchild")(),columns:(0,J.D)("column")(),transform:{name:"Transform and Transition",fields:{rotate:{type:"select",name:"Rotate by degrees",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rotate-45",name:"rotate-45",html:r.bm.makeText("45",{attributes:{title:"45"}})},{key:"rotate-90",name:"rotate-90",html:r.bm.makeText("90",{attributes:{title:"90"}})},{key:"rotate-135",name:"rotate-135",html:r.bm.makeText("135",{attributes:{title:"135"}})},{key:"rotate-180",name:"rotate-180",html:r.bm.makeText("180",{attributes:{title:"180"}})},{key:"rotate-225",name:"rotate-225",html:r.bm.makeText("225",{attributes:{title:"225"}})},{key:"rotate-270",name:"rotate-270",html:r.bm.makeText("270",{attributes:{title:"270"}})},{key:"rotate-315",name:"rotate-315",html:r.bm.makeText("315",{attributes:{title:"315"}})},{key:"flip-horizontal",name:"flip-horizontal",html:r.bm.makeText("Flip Horizontal",{attributes:{title:"Flip Horizontal"}})},{key:"flip-vertical",name:"flip-vertical",html:r.bm.makeText("Flip Vertical",{attributes:{title:"Flip Vertical"}})}]},transition:{type:"select",name:"Transition",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-transition",name:"No Transition",html:r.bm.makeText("No Transition",{attributes:{title:"No Transition"}})},{key:"transition-0",name:"Transition 0s",html:r.bm.makeText("Transition 0s",{attributes:{title:"Transition 0s"}})}]}}}})});r.MS.addComponentType(K)},259:(t,e,i)=>{"use strict";i.d(e,{c:()=>mn});var n=i(290);function s(t,e){return e?e.toUpperCase():""}var r=/-(\w)/g,o=function(t){return t&&t.replace(r,s)},a=function(t){return t.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).map((function(t){return t.startsWith("-")&&!isNaN(+t[1])?t.replace("-",""):t})).join("")},l=i(681),c=i(461),h=i(841),u=i(199);const p=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},d={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},f=t=>t.replace(/[[\]\\-]/g,"\\$&"),m=t=>t.join(""),g=(t,e)=>{const i=e;if("["!==t.charAt(i))throw new Error("not in a brace expression");const n=[],s=[];let r=i+1,o=!1,a=!1,l=!1,c=!1,h=i,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==i+1){if("]"===e&&o&&!l){h=r+1;break}if(o=!0,"\\"!==e||l){if("["===e&&!l)for(const[e,[o,l,c]]of Object.entries(d))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-i,!0];r+=e.length,c?s.push(o):n.push(o),a=a||l;continue t}l=!1,u?(e>u?n.push(f(u)+"-"+f(e)):e===u&&n.push(f(e)),u="",r++):t.startsWith("-]",r+1)?(n.push(f(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(n.push(f(e)),r++)}else l=!0,r++}else c=!0,r++}if(h<r)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,t.length-i,!0];if(0===s.length&&1===n.length&&/^\\?.$/.test(n[0])&&!c){return[(p=2===n[0].length?n[0].slice(-1):n[0],p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,h-i,!1]}var p;const g="["+(c?"^":"")+m(n)+"]",y="["+(c?"":"^")+m(s)+"]";return[n.length&&s.length?"("+g+"|"+y+")":n.length?g:y,a,h-i,!0]},y=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),b=new Set(["!","?","+","*","@"]),v=t=>b.has(t),w="(?!\\.)",k=new Set(["[","."]),_=new Set(["..","."]),x=new Set("().*{}+?[]^$\\!"),S="[^/]",C=S+"*?",T=S+"+?";class A{type;#t;#e;#i=!1;#n=[];#s;#r;#o;#a=!1;#l;#c;#h=!1;constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#s=e,this.#t=this.#s?this.#s.#t:this,this.#l=this.#t===this?i:this.#t.#l,this.#o=this.#t===this?[]:this.#t.#o,"!"!==t||this.#t.#a||this.#o.push(this),this.#r=this.#s?this.#s.#n.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#n)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#n.map((t=>String(t))).join("|")+")":this.#c=this.#n.map((t=>String(t))).join("")}#u(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#o.pop();){if("!"!==t.type)continue;let e=t,i=e.#s;for(;i;){for(let n=e.#r+1;!i.type&&n<i.#n.length;n++)for(const e of t.#n){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(i.#n[n])}e=i,i=e.#s}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof A&&e.#s===this))throw new Error("invalid part: "+e);this.#n.push(e)}}toJSON(){const t=null===this.type?this.#n.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#n.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#s?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#s?.isStart())return!1;if(0===this.#r)return!0;const t=this.#s;for(let e=0;e<this.#r;e++){const i=t.#n[e];if(!(i instanceof A&&"!"===i.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#s?.type)return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();const t=this.#s?this.#s.#n.length:0;return this.#r===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new A(this.type,t);for(const t of this.#n)e.copyIn(t);return e}static#p(t,e,i,n){let s=!1,r=!1,o=-1,a=!1;if(null===e.type){let l=i,c="";for(;l<t.length;){const i=t.charAt(l++);if(s||"\\"===i)s=!s,c+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),c+=i;else if("["!==i)if(n.noext||!v(i)||"("!==t.charAt(l))c+=i;else{e.push(c),c="";const s=new A(i,e);l=A.#p(t,s,l,n),e.push(s)}else r=!0,o=l,a=!1,c+=i}return e.push(c),l}let l=i+1,c=new A(null,e);const h=[];let u="";for(;l<t.length;){const i=t.charAt(l++);if(s||"\\"===i)s=!s,u+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),u+=i;else if("["!==i)if(v(i)&&"("===t.charAt(l)){c.push(u),u="";const e=new A(i,c);c.push(e),l=A.#p(t,e,l,n)}else if("|"!==i){if(")"===i)return""===u&&0===e.#n.length&&(e.#h=!0),c.push(u),u="",e.push(...h,c),l;u+=i}else c.push(u),u="",h.push(c),c=new A(null,e);else r=!0,o=l,a=!1,u+=i}return e.type=null,e.#e=void 0,e.#n=[t.substring(i-1)],l}static fromGlob(t,e={}){const i=new A(null,void 0,e);return A.#p(t,i,0,e),i}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,i,n,s]=this.toRegExpSource();if(!(n||this.#e||this.#l.nocase&&!this.#l.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const r=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${e}$`,r),{_src:e,_glob:t})}toRegExpSource(t){const e=t??!!this.#l.dot;if(this.#t===this&&this.#u(),!this.type){const i=this.isStart()&&this.isEnd(),n=this.#n.map((e=>{const[n,s,r,o]="string"==typeof e?A.#d(e,this.#e,i):e.toRegExpSource(t);return this.#e=this.#e||r,this.#i=this.#i||o,n})).join("");let s="";if(this.isStart()&&"string"==typeof this.#n[0]&&(1!==this.#n.length||!_.has(this.#n[0]))){const i=k,r=e&&i.has(n.charAt(0))||n.startsWith("\\.")&&i.has(n.charAt(2))||n.startsWith("\\.\\.")&&i.has(n.charAt(4)),o=!e&&!t&&i.has(n.charAt(0));s=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?w:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#s?.type&&(r="(?:$|\\/)"),[s+n+r,y(n),this.#e=!!this.#e,this.#i]}const i="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let s=this.#f(e);if(this.isStart()&&this.isEnd()&&!s&&"!"!==this.type){const t=this.toString();return this.#n=[t],this.type=null,this.#e=void 0,[t,y(this.toString()),!1,!1]}let r=!i||t||e?"":this.#f(!0);r===s&&(r=""),r&&(s=`(?:${s})(?:${r})*?`);let o="";return o="!"===this.type&&this.#h?(this.isStart()&&!e?w:"")+T:n+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":w)+C+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[o,y(s),this.#e=!!this.#e,this.#i]}#f(t){return this.#n.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[i,n,s,r]=e.toRegExpSource(t);return this.#i=this.#i||r,i})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#d(t,e,i=!1){let n=!1,s="",r=!1;for(let o=0;o<t.length;o++){const a=t.charAt(o);if(n)n=!1,s+=(x.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[i,n,a,l]=g(t,o);if(a){s+=i,r=r||n,o+=a-1,e=e||l;continue}}"*"!==a?"?"!==a?s+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+=S,e=!0):(s+=i&&"*"===t?T:C,e=!0)}else o===t.length-1?s+="\\\\":n=!0}return[s,y(t),!!e,r]}}const E=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),O=(t,e,i={})=>(p(e),!(!i.nocomment&&"#"===e.charAt(0))&&new et(e,i).match(t)),P=/^\*+([^+@!?\*\[\(]*)$/,F=t=>e=>!e.startsWith(".")&&e.endsWith(t),L=t=>e=>e.endsWith(t),M=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),j=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),z=/^\*+\.\*+$/,D=t=>!t.startsWith(".")&&t.includes("."),R=t=>"."!==t&&".."!==t&&t.includes("."),B=/^\.\*+$/,I=t=>"."!==t&&".."!==t&&t.startsWith("."),N=/^\*+$/,W=t=>0!==t.length&&!t.startsWith("."),$=t=>0!==t.length&&"."!==t&&".."!==t,q=/^\?+([^+@!?\*\[\(]*)?$/,U=([t,e=""])=>{const i=Y([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},G=([t,e=""])=>{const i=J([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},H=([t,e=""])=>{const i=J([t]);return e?t=>i(t)&&t.endsWith(e):i},V=([t,e=""])=>{const i=Y([t]);return e?t=>i(t)&&t.endsWith(e):i},Y=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},J=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Z="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";O.sep="win32"===Z?"\\":"/";const Q=Symbol("globstar **");O.GLOBSTAR=Q,O.filter=(t,e={})=>i=>O(i,t,e);const X=(t,e={})=>Object.assign({},t,e);O.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return O;const e=O;return Object.assign(((i,n,s={})=>e(i,n,X(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,X(t,i))}static defaults(i){return e.defaults(X(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,n={}){super(e,i,X(t,n))}static fromGlob(i,n={}){return e.AST.fromGlob(i,X(t,n))}},unescape:(i,n={})=>e.unescape(i,X(t,n)),escape:(i,n={})=>e.escape(i,X(t,n)),filter:(i,n={})=>e.filter(i,X(t,n)),defaults:i=>e.defaults(X(t,i)),makeRe:(i,n={})=>e.makeRe(i,X(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,X(t,n)),match:(i,n,s={})=>e.match(i,n,X(t,s)),sep:e.sep,GLOBSTAR:Q})};const K=(t,e={})=>(p(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:u(t));O.braceExpand=K,O.makeRe=(t,e={})=>new et(t,e).makeRe(),O.match=(t,e,i={})=>{const n=new et(e,i);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};const tt=/[?*]|[+@!]\(.*?\)|\[|\]/;class et{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){p(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Z,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&tt.test(t[2])||tt.test(t[3])),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(i)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const i=t[t.length-1];return"**"===e&&"**"===i?t:".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const n=t[i];1===i&&""===n&&""===t[0]||"."!==n&&""!==n||(e=!0,t.splice(i,1),i--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){const n=t[i-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let i of t){let n=-1;for(;-1!==(n=i.indexOf("**",n+1));){let s=n;for(;"**"===i[s+1];)s++;s>n&&i.splice(n+1,s-n);let r=i[n+1];const o=i[n+2],a=i[n+3];if(".."!==r)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,i.splice(n,1);const l=i.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const n=i[t];1===t&&""===n&&""===i[0]||"."!==n&&""!==n||(e=!0,i.splice(t,1),t--)}"."!==i[0]||2!==i.length||"."!==i[1]&&""!==i[1]||(e=!0,i.pop())}let s=0;for(;-1!==(s=i.indexOf("..",s+1));){const t=i[s-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===s&&"**"===i[s+1]?["."]:[];i.splice(s-1,2,...t),0===i.length&&i.push(""),s-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){const n=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);n&&(t[e]=n,t[i]=[])}return t.filter((t=>t.length))}partsMatch(t,e,i=!1){let n=0,s=0,r=[],o="";for(;n<t.length&&s<e.length;)if(t[n]===e[s])r.push("b"===o?e[s]:t[n]),n++,s++;else if(i&&"**"===t[n]&&e[s]===t[n+1])r.push(t[n]),n++;else if(i&&"**"===e[s]&&t[n]===e[s+1])r.push(e[s]),s++;else if("*"!==t[n]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]){if("*"!==e[s]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===o)return!1;o="b",r.push(e[s]),n++,s++}else{if("b"===o)return!1;o="a",r.push(t[n]),n++,s++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,i=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){const n=this.options;if(this.isWindows){const i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),s="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=n?3:i?0:void 0,o=!s&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:s?0:void 0;if("number"==typeof r&&"number"==typeof o){const[i,n]=[t[r],e[o]];i.toLowerCase()===n.toLowerCase()&&(e[o]=i,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,a=t.length,l=e.length;r<a&&o<l;r++,o++){this.debug("matchOne loop");var c=e[o],h=t[r];if(this.debug(e,c,h),!1===c)return!1;if(c===Q){this.debug("GLOBSTAR",[e,c,h]);var u=r,p=o+1;if(p===l){for(this.debug("** at the end");r<a;r++)if("."===t[r]||".."===t[r]||!n.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<a;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,p,d),this.matchOne(t.slice(u),e.slice(p),i))return this.debug("globstar found match!",u,a,d),!0;if("."===d||".."===d||!n.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!i||(this.debug("\n>>> no match, partial?",t,u,e,p),u!==a))}let s;if("string"==typeof c?(s=h===c,this.debug("string match",c,h,s)):(s=c.test(h),this.debug("pattern match",c,h,s)),!s)return!1}if(r===a&&o===l)return!0;if(r===a)return i;if(o===l)return r===a-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return K(this.pattern,this.options)}parse(t){p(t);const e=this.options;if("**"===t)return Q;if(""===t)return"";let i,n=null;(i=t.match(N))?n=e.dot?$:W:(i=t.match(P))?n=(e.nocase?e.dot?j:M:e.dot?L:F)(i[1]):(i=t.match(q))?n=(e.nocase?e.dot?G:U:e.dot?H:V)(i):(i=t.match(z))?n=e.dot?R:D:(i=t.match(B))&&(n=I);const s=A.fromGlob(t,this.options).toMMPattern();return n?Object.assign(s,{test:n}):s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===Q?Q:t._src}));return e.forEach(((t,n)=>{const s=e[n+1],r=e[n-1];t===Q&&r!==Q&&(void 0===r?void 0!==s&&s!==Q?e[n+1]="(?:\\/|"+i+"\\/)?"+s:e[n]=i:void 0===s?e[n-1]=r+"(?:\\/|"+i+")?":s!==Q&&(e[n-1]=r+"(?:\\/|\\/"+i+"\\/)"+s,e[n+1]=Q))})),e.filter((t=>t!==Q)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+o+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let r=n[n.length-1];if(!r)for(let t=n.length-2;!r&&t>=0;t--)r=n[t];for(let t=0;t<s.length;t++){const o=s[t];let a=n;if(i.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return O.defaults(t).Minimatch}}O.AST=A,O.Minimatch=et,O.escape=E,O.unescape=y;const it="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,nt=new Set,st="object"==typeof process&&process?process:{},rt=(t,e,i,n)=>{"function"==typeof st.emitWarning?st.emitWarning(t,e,i,n):console.error(`[${i}] ${e}: ${t}`)};let ot=globalThis.AbortController,at=globalThis.AbortSignal;if(void 0===ot){at=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},ot=class{constructor(){e()}signal=new at;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==st.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,rt("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const lt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),ct=t=>lt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ht:null:null;class ht extends Array{constructor(t){super(t),this.fill(0)}}class ut{heap;length;static#m=!1;static create(t){const e=ct(t);if(!e)return[];ut.#m=!0;const i=new ut(t,e);return ut.#m=!1,i}constructor(t,e){if(!ut.#m)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class pt{#g;#y;#b;#v;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#k;#_;#x;#S;#C;#T;#A;#E;#O;#P;#F;#L;#M;#j;#z;#D;#R;static unsafeExposeInternals(t){return{starts:t.#M,ttls:t.#j,sizes:t.#L,keyMap:t.#x,keyList:t.#S,valList:t.#C,next:t.#T,prev:t.#A,get head(){return t.#E},get tail(){return t.#O},free:t.#P,isBackgroundFetch:e=>t.#B(e),backgroundFetch:(e,i,n,s)=>t.#I(e,i,n,s),moveToTail:e=>t.#N(e),indexes:e=>t.#W(e),rindexes:e=>t.#$(e),isStale:e=>t.#q(e)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#_}get size(){return this.#k}get fetchMethod(){return this.#w}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(t){const{max:e=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:u,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:f,fetchMethod:m,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:w}=t;if(0!==e&&!lt(e))throw new TypeError("max option must be a nonnegative integer");const k=e?ct(e):Array;if(!k)throw new Error("invalid max value: "+e);if(this.#g=e,this.#y=p,this.maxEntrySize=d||this.#y,this.sizeCalculation=f,this.sizeCalculation){if(!this.#y&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#w=m,this.#D=!!m,this.#x=new Map,this.#S=new Array(e).fill(void 0),this.#C=new Array(e).fill(void 0),this.#T=new k(e),this.#A=new k(e),this.#E=0,this.#O=0,this.#P=ut.create(e),this.#k=0,this.#_=0,"function"==typeof l&&(this.#b=l),"function"==typeof c?(this.#v=c,this.#F=[]):(this.#v=void 0,this.#F=void 0),this.#z=!!this.#b,this.#R=!!this.#v,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!w,0!==this.maxEntrySize){if(0!==this.#y&&!lt(this.#y))throw new TypeError("maxSize must be a positive integer if specified");if(!lt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=lt(n)||0===n?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!lt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(0===this.#g&&0===this.ttl&&0===this.#y)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#g&&!this.#y){const t="LRU_CACHE_UNBOUNDED";(t=>!nt.has(t))(t)&&(nt.add(t),rt("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,pt))}}getRemainingTTL(t){return this.#x.has(t)?1/0:0}#G(){const t=new ht(this.#g),e=new ht(this.#g);this.#j=t,this.#M=e,this.#H=(i,n,s=it.now())=>{if(e[i]=0!==n?s:0,t[i]=n,0!==n&&this.ttlAutopurge){const t=setTimeout((()=>{this.#q(i)&&this.delete(this.#S[i])}),n+1);t.unref&&t.unref()}},this.#V=i=>{e[i]=0!==t[i]?it.now():0},this.#Y=(s,r)=>{if(t[r]){const o=t[r],a=e[r];s.ttl=o,s.start=a,s.now=i||n();const l=s.now-a;s.remainingTTL=o-l}};let i=0;const n=()=>{const t=it.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=s=>{const r=this.#x.get(s);if(void 0===r)return 0;const o=t[r],a=e[r];return 0===o||0===a?1/0:o-((i||n())-a)},this.#q=s=>0!==t[s]&&0!==e[s]&&(i||n())-e[s]>t[s]}#V=()=>{};#Y=()=>{};#H=()=>{};#q=()=>!1;#U(){const t=new ht(this.#g);this.#_=0,this.#L=t,this.#J=e=>{this.#_-=t[e],t[e]=0},this.#Z=(t,e,i,n)=>{if(this.#B(e))return 0;if(!lt(i)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(i=n(e,t),!lt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#Q=(e,i,n)=>{if(t[e]=i,this.#y){const i=this.#y-t[e];for(;this.#_>i;)this.#X(!0)}this.#_+=t[e],n&&(n.entrySize=i,n.totalCalculatedSize=this.#_)}}#J=t=>{};#Q=(t,e,i)=>{};#Z=(t,e,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#W({allowStale:t=this.allowStale}={}){if(this.#k)for(let e=this.#O;this.#K(e)&&(!t&&this.#q(e)||(yield e),e!==this.#E);)e=this.#A[e]}*#$({allowStale:t=this.allowStale}={}){if(this.#k)for(let e=this.#E;this.#K(e)&&(!t&&this.#q(e)||(yield e),e!==this.#O);)e=this.#T[e]}#K(t){return void 0!==t&&this.#x.get(this.#S[t])===t}*entries(){for(const t of this.#W())void 0===this.#C[t]||void 0===this.#S[t]||this.#B(this.#C[t])||(yield[this.#S[t],this.#C[t]])}*rentries(){for(const t of this.#$())void 0===this.#C[t]||void 0===this.#S[t]||this.#B(this.#C[t])||(yield[this.#S[t],this.#C[t]])}*keys(){for(const t of this.#W()){const e=this.#S[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*rkeys(){for(const t of this.#$()){const e=this.#S[t];void 0===e||this.#B(this.#C[t])||(yield e)}}*values(){for(const t of this.#W())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}*rvalues(){for(const t of this.#$())void 0===this.#C[t]||this.#B(this.#C[t])||(yield this.#C[t])}[Symbol.iterator](){return this.entries()}find(t,e={}){for(const i of this.#W()){const n=this.#C[i],s=this.#B(n)?n.__staleWhileFetching:n;if(void 0!==s&&t(s,this.#S[i],this))return this.get(this.#S[i],e)}}forEach(t,e=this){for(const i of this.#W()){const n=this.#C[i],s=this.#B(n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,this.#S[i],this)}}rforEach(t,e=this){for(const i of this.#$()){const n=this.#C[i],s=this.#B(n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,this.#S[i],this)}}purgeStale(){let t=!1;for(const e of this.#$({allowStale:!0}))this.#q(e)&&(this.delete(this.#S[e]),t=!0);return t}dump(){const t=[];for(const e of this.#W({allowStale:!0})){const i=this.#S[e],n=this.#C[e],s=this.#B(n)?n.__staleWhileFetching:n;if(void 0===s||void 0===i)continue;const r={value:s};if(this.#j&&this.#M){r.ttl=this.#j[e];const t=it.now()-this.#M[e];r.start=Math.floor(Date.now()-t)}this.#L&&(r.size=this.#L[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=it.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:n=this.ttl,start:s,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:l=this.noUpdateTTL}=i;const c=this.#Z(t,e,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let h=0===this.#k?void 0:this.#x.get(t);if(void 0===h)h=0===this.#k?this.#O:0!==this.#P.length?this.#P.pop():this.#k===this.#g?this.#X(!1):this.#k,this.#S[h]=t,this.#C[h]=e,this.#x.set(t,h),this.#T[this.#O]=h,this.#A[h]=this.#O,this.#O=h,this.#k++,this.#Q(h,c,a),a&&(a.set="add"),l=!1;else{this.#N(h);const i=this.#C[h];if(e!==i){if(this.#D&&this.#B(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#z&&this.#b?.(e,t,"set"),this.#R&&this.#F?.push([e,t,"set"]))}else r||(this.#z&&this.#b?.(i,t,"set"),this.#R&&this.#F?.push([i,t,"set"]));if(this.#J(h),this.#Q(h,c,a),this.#C[h]=e,a){a.set="replace";const t=i&&this.#B(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===n||this.#j||this.#G(),this.#j&&(l||this.#H(h,n,s),a&&this.#Y(a,h)),!r&&this.#R&&this.#F){const t=this.#F;let e;for(;e=t?.shift();)this.#v?.(...e)}return this}pop(){try{for(;this.#k;){const t=this.#C[this.#E];if(this.#X(!0),this.#B(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#R&&this.#F){const t=this.#F;let e;for(;e=t?.shift();)this.#v?.(...e)}}}#X(t){const e=this.#E,i=this.#S[e],n=this.#C[e];return this.#D&&this.#B(n)?n.__abortController.abort(new Error("evicted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(n,i,"evict"),this.#R&&this.#F?.push([n,i,"evict"])),this.#J(e),t&&(this.#S[e]=void 0,this.#C[e]=void 0,this.#P.push(e)),1===this.#k?(this.#E=this.#O=0,this.#P.length=0):this.#E=this.#T[e],this.#x.delete(i),this.#k--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=e,s=this.#x.get(t);if(void 0!==s){const t=this.#C[s];if(this.#B(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#q(s))return i&&this.#V(s),n&&(n.has="hit",this.#Y(n,s)),!0;n&&(n.has="stale",this.#Y(n,s))}else n&&(n.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,n=this.#x.get(t);if(void 0!==n&&(i||!this.#q(n))){const t=this.#C[n];return this.#B(t)?t.__staleWhileFetching:t}}#I(t,e,i,n){const s=void 0===e?void 0:this.#C[e];if(this.#B(s))return s;const r=new ot,{signal:o}=i;o?.addEventListener("abort",(()=>r.abort(o.reason)),{signal:r.signal});const a={signal:r.signal,options:i,context:n},l=(n,s=!1)=>{const{aborted:o}=r.signal,l=i.ignoreFetchAbort&&void 0!==n;if(i.status&&(o&&!s?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!l&&!s)return c(r.signal.reason);const u=h;return this.#C[e]===h&&(void 0===n?u.__staleWhileFetching?this.#C[e]=u.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,n,a.options))),n},c=n=>{const{aborted:s}=r.signal,o=s&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection,c=h;if(this.#C[e]===h&&(l&&void 0!==c.__staleWhileFetching?o||(this.#C[e]=c.__staleWhileFetching):this.delete(t)),a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};i.status&&(i.status.fetchDispatched=!0);const h=new Promise(((e,n)=>{const o=this.#w?.(t,s,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),n),r.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(h,{__abortController:r,__staleWhileFetching:s,__returned:void 0});return void 0===e?(this.set(t,u,{...a.options,status:void 0}),e=this.#x.get(t)):this.#C[e]=u,u}#B(t){if(!this.#D)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof ot}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:y}=e;if(!this.#D)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:g});const b={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:g,signal:y};let v=this.#x.get(t);if(void 0===v){g&&(g.fetch="miss");const e=this.#I(t,v,b,f);return e.__returned=e}{const e=this.#C[v];if(this.#B(e)){const t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const s=this.#q(v);if(!m&&!s)return g&&(g.fetch="hit"),this.#N(v),n&&this.#V(v),g&&this.#Y(g,v),e;const r=this.#I(t,v,b,f),o=void 0!==r.__staleWhileFetching&&i;return g&&(g.fetch=s?"stale":"refresh",o&&s&&(g.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:r}=e,o=this.#x.get(t);if(void 0!==o){const e=this.#C[o],a=this.#B(e);return r&&this.#Y(r,o),this.#q(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(s||this.delete(t),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#N(o),n&&this.#V(o),e))}r&&(r.get="miss")}#tt(t,e){this.#A[e]=t,this.#T[t]=e}#N(t){t!==this.#O&&(t===this.#E?this.#E=this.#T[t]:this.#tt(this.#A[t],this.#T[t]),this.#tt(this.#O,t),this.#O=t)}delete(t){let e=!1;if(0!==this.#k){const i=this.#x.get(t);if(void 0!==i)if(e=!0,1===this.#k)this.clear();else{this.#J(i);const e=this.#C[i];this.#B(e)?e.__abortController.abort(new Error("deleted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(e,t,"delete"),this.#R&&this.#F?.push([e,t,"delete"])),this.#x.delete(t),this.#S[i]=void 0,this.#C[i]=void 0,i===this.#O?this.#O=this.#A[i]:i===this.#E?this.#E=this.#T[i]:(this.#T[this.#A[i]]=this.#T[i],this.#A[this.#T[i]]=this.#A[i]),this.#k--,this.#P.push(i)}}if(this.#R&&this.#F?.length){const t=this.#F;let e;for(;e=t?.shift();)this.#v?.(...e)}return e}clear(){for(const t of this.#$({allowStale:!0})){const e=this.#C[t];if(this.#B(e))e.__abortController.abort(new Error("deleted"));else{const i=this.#S[t];this.#z&&this.#b?.(e,i,"delete"),this.#R&&this.#F?.push([e,i,"delete"])}}if(this.#x.clear(),this.#C.fill(void 0),this.#S.fill(void 0),this.#j&&this.#M&&(this.#j.fill(0),this.#M.fill(0)),this.#L&&this.#L.fill(0),this.#E=0,this.#O=0,this.#P.length=0,this.#_=0,this.#k=0,this.#R&&this.#F){const t=this.#F;let e;for(;e=t?.shift();)this.#v?.(...e)}}}var dt=i(17);const ft=require("url"),mt=require("fs");var gt=i.t(mt,2);const yt=require("fs/promises"),bt=require("events"),vt=require("stream"),wt=require("string_decoder"),kt="object"==typeof process&&process?process:{stdout:null,stderr:null},_t=t=>!!t&&"object"==typeof t&&(t instanceof oe||t instanceof vt||xt(t)||St(t)),xt=t=>!!t&&"object"==typeof t&&t instanceof bt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==vt.Writable.prototype.pipe,St=t=>!!t&&"object"==typeof t&&t instanceof bt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Ct=Symbol("EOF"),Tt=Symbol("maybeEmitEnd"),At=Symbol("emittedEnd"),Et=Symbol("emittingEnd"),Ot=Symbol("emittedError"),Pt=Symbol("closed"),Ft=Symbol("read"),Lt=Symbol("flush"),Mt=Symbol("flushChunk"),jt=Symbol("encoding"),zt=Symbol("decoder"),Dt=Symbol("flowing"),Rt=Symbol("paused"),Bt=Symbol("resume"),It=Symbol("buffer"),Nt=Symbol("pipes"),Wt=Symbol("bufferLength"),$t=Symbol("bufferPush"),qt=Symbol("bufferShift"),Ut=Symbol("objectMode"),Gt=Symbol("destroyed"),Ht=Symbol("error"),Vt=Symbol("emitData"),Yt=Symbol("emitEnd"),Jt=Symbol("emitEnd2"),Zt=Symbol("async"),Qt=Symbol("abort"),Xt=Symbol("aborted"),Kt=Symbol("signal"),te=Symbol("dataListeners"),ee=Symbol("discarded"),ie=t=>Promise.resolve().then(t),ne=t=>t();class se{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Bt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class re extends se{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class oe extends bt.EventEmitter{[Dt]=!1;[Rt]=!1;[Nt]=[];[It]=[];[Ut];[jt];[Zt];[zt];[Ct]=!1;[At]=!1;[Et]=!1;[Pt]=!1;[Ot]=null;[Wt]=0;[Gt]=!1;[Kt];[Xt]=!1;[te]=0;[ee]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[Ut]=!0,this[jt]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[jt]=e.encoding,this[Ut]=!1):(this[Ut]=!1,this[jt]=null),this[Zt]=!!e.async,this[zt]=this[jt]?new wt.StringDecoder(this[jt]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[It]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Nt]});const{signal:n}=e;n&&(this[Kt]=n,n.aborted?this[Qt]():n.addEventListener("abort",(()=>this[Qt]())))}get bufferLength(){return this[Wt]}get encoding(){return this[jt]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ut]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Zt]}set async(t){this[Zt]=this[Zt]||!!t}[Qt](){this[Xt]=!0,this.emit("abort",this[Kt]?.reason),this.destroy(this[Kt]?.reason)}get aborted(){return this[Xt]}set aborted(t){}write(t,e,i){if(this[Xt])return!1;if(this[Ct])throw new Error("write after end");if(this[Gt])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const n=this[Zt]?ie:ne;if(!this[Ut]&&!Buffer.isBuffer(t))if(s=t,!Buffer.isBuffer(s)&&ArrayBuffer.isView(s))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var s;return this[Ut]?(this[Dt]&&0!==this[Wt]&&this[Lt](!0),this[Dt]?this.emit("data",t):this[$t](t),0!==this[Wt]&&this.emit("readable"),i&&n(i),this[Dt]):t.length?("string"!=typeof t||e===this[jt]&&!this[zt]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[jt]&&(t=this[zt].write(t)),this[Dt]&&0!==this[Wt]&&this[Lt](!0),this[Dt]?this.emit("data",t):this[$t](t),0!==this[Wt]&&this.emit("readable"),i&&n(i),this[Dt]):(0!==this[Wt]&&this.emit("readable"),i&&n(i),this[Dt])}read(t){if(this[Gt])return null;if(this[ee]=!1,0===this[Wt]||0===t||t&&t>this[Wt])return this[Tt](),null;this[Ut]&&(t=null),this[It].length>1&&!this[Ut]&&(this[It]=[this[jt]?this[It].join(""):Buffer.concat(this[It],this[Wt])]);const e=this[Ft](t||null,this[It][0]);return this[Tt](),e}[Ft](t,e){if(this[Ut])this[qt]();else{const i=e;t===i.length||null===t?this[qt]():"string"==typeof i?(this[It][0]=i.slice(t),e=i.slice(0,t),this[Wt]-=t):(this[It][0]=i.subarray(t),e=i.subarray(0,t),this[Wt]-=t)}return this.emit("data",e),this[It].length||this[Ct]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Ct]=!0,this.writable=!1,!this[Dt]&&this[Rt]||this[Tt](),this}[Bt](){this[Gt]||(this[te]||this[Nt].length||(this[ee]=!0),this[Rt]=!1,this[Dt]=!0,this.emit("resume"),this[It].length?this[Lt]():this[Ct]?this[Tt]():this.emit("drain"))}resume(){return this[Bt]()}pause(){this[Dt]=!1,this[Rt]=!0,this[ee]=!1}get destroyed(){return this[Gt]}get flowing(){return this[Dt]}get paused(){return this[Rt]}[$t](t){this[Ut]?this[Wt]+=1:this[Wt]+=t.length,this[It].push(t)}[qt](){return this[Ut]?this[Wt]-=1:this[Wt]-=this[It][0].length,this[It].shift()}[Lt](t=!1){do{}while(this[Mt](this[qt]())&&this[It].length);t||this[It].length||this[Ct]||this.emit("drain")}[Mt](t){return this.emit("data",t),this[Dt]}pipe(t,e){if(this[Gt])return t;this[ee]=!1;const i=this[At];return e=e||{},t===kt.stdout||t===kt.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[Nt].push(e.proxyErrors?new re(this,t,e):new se(this,t,e)),this[Zt]?ie((()=>this[Bt]())):this[Bt]()),t}unpipe(t){const e=this[Nt].find((e=>e.dest===t));e&&(1===this[Nt].length?(this[Dt]&&0===this[te]&&(this[Dt]=!1),this[Nt]=[]):this[Nt].splice(this[Nt].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[ee]=!1,this[te]++,this[Nt].length||this[Dt]||this[Bt]();else if("readable"===t&&0!==this[Wt])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[At])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Ot]){const t=e;this[Zt]?ie((()=>t.call(this,this[Ot]))):t.call(this,this[Ot])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[te]=this.listeners("data").length,0!==this[te]||this[ee]||this[Nt].length||(this[Dt]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[te]=0,this[ee]||this[Nt].length||(this[Dt]=!1)),e}get emittedEnd(){return this[At]}[Tt](){this[Et]||this[At]||this[Gt]||0!==this[It].length||!this[Ct]||(this[Et]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Pt]&&this.emit("close"),this[Et]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==Gt&&this[Gt])return!1;if("data"===t)return!(!this[Ut]&&!i)&&(this[Zt]?(ie((()=>this[Vt](i))),!0):this[Vt](i));if("end"===t)return this[Yt]();if("close"===t){if(this[Pt]=!0,!this[At]&&!this[Gt])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Ot]=i,super.emit(Ht,i);const t=!(this[Kt]&&!this.listeners("error").length)&&super.emit("error",i);return this[Tt](),t}if("resume"===t){const t=super.emit("resume");return this[Tt](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[Tt](),n}[Vt](t){for(const e of this[Nt])!1===e.dest.write(t)&&this.pause();const e=!this[ee]&&super.emit("data",t);return this[Tt](),e}[Yt](){return!this[At]&&(this[At]=!0,this.readable=!1,this[Zt]?(ie((()=>this[Jt]())),!0):this[Jt]())}[Jt](){if(this[zt]){const t=this[zt].end();if(t){for(const e of this[Nt])e.dest.write(t);this[ee]||super.emit("data",t)}}for(const t of this[Nt])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Ut]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[Ut]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[Ut])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[jt]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(Gt,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[ee]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Ct])return e();let n,s;const r=t=>{this.off("data",o),this.off("end",a),this.off(Gt,l),e(),s(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(Gt,l),this.pause(),n({value:t,done:!!this[Ct]})},a=()=>{this.off("error",r),this.off("data",o),this.off(Gt,l),e(),n({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{s=e,n=t,this.once(Gt,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ee]=!1;let t=!1;const e=()=>(this.pause(),this.off(Ht,e),this.off(Gt,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Ht,e),this.once(Gt,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[Gt]?(t?this.emit("error",t):this.emit(Gt),this):(this[Gt]=!0,this[ee]=!0,this[It].length=0,this[Wt]=0,"function"!=typeof this.close||this[Pt]||this.close(),t?this.emit("error",t):this.emit(Gt),this)}static get isStream(){return _t}}const ae=mt.realpathSync.native,le={lstatSync:mt.lstatSync,readdir:mt.readdir,readdirSync:mt.readdirSync,readlinkSync:mt.readlinkSync,realpathSync:ae,promises:{lstat:yt.lstat,readdir:yt.readdir,readlink:yt.readlink,realpath:yt.realpath}},ce=t=>t&&t!==le&&t!==gt?{...le,...t,promises:{...le.promises,...t.promises||{}}}:le,he=/^\\\\\?\\([a-z]:)\\?$/i,ue=/[\\\/]/,pe=10,de=15,fe=-16,me=128,ge=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?pe:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,ye=new Map,be=t=>{const e=ye.get(t);if(e)return e;const i=t.normalize("NFKD");return ye.set(t,i),i},ve=new Map,we=t=>{const e=ve.get(t);if(e)return e;const i=be(t.toLowerCase());return ve.set(t,i),i};class ke extends pt{constructor(){super({max:256})}}class _e extends pt{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}const xe=Symbol("PathScurry setAsCwd");class Se{name;root;roots;parent;nocase;#et;#it;get dev(){return this.#it}#nt;get mode(){return this.#nt}#st;get nlink(){return this.#st}#rt;get uid(){return this.#rt}#ot;get gid(){return this.#ot}#at;get rdev(){return this.#at}#lt;get blksize(){return this.#lt}#ct;get ino(){return this.#ct}#k;get size(){return this.#k}#ht;get blocks(){return this.#ht}#ut;get atimeMs(){return this.#ut}#pt;get mtimeMs(){return this.#pt}#dt;get ctimeMs(){return this.#dt}#ft;get birthtimeMs(){return this.#ft}#mt;get atime(){return this.#mt}#gt;get mtime(){return this.#gt}#yt;get ctime(){return this.#yt}#bt;get birthtime(){return this.#bt}#vt;#wt;#kt;#_t;#xt;#St;#Ct;#Tt;#At;#Et;get path(){return(this.parent||this).fullpath()}constructor(t,e=0,i,n,s,r,o){this.name=t,this.#vt=s?we(t):be(t),this.#Ct=1023&e,this.nocase=s,this.roots=n,this.root=i||this,this.#Tt=r,this.#kt=o.fullpath,this.#xt=o.relative,this.#St=o.relativePosix,this.parent=o.parent,this.parent?this.#et=this.parent.#et:this.#et=ce(o.fs)}depth(){return void 0!==this.#wt?this.#wt:this.parent?this.#wt=this.parent.depth()+1:this.#wt=0}childrenCache(){return this.#Tt}resolve(t){if(!t)return this;const e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Ot(i):this.#Ot(i)}#Ot(t){let e=this;for(const i of t)e=e.child(i);return e}children(){const t=this.#Tt.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#Tt.set(this,e),this.#Ct&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const i=this.children(),n=this.nocase?we(t):be(t);for(const t of i)if(t.#vt===n)return t;const s=this.parent?this.sep:"",r=this.#kt?this.#kt+s+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:r});return this.canReaddir()||(o.#Ct|=me),i.push(o),o}relative(){if(void 0!==this.#xt)return this.#xt;const t=this.name,e=this.parent;if(!e)return this.#xt=this.name;const i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(void 0!==this.#St)return this.#St;const t=this.name,e=this.parent;if(!e)return this.#St=this.fullpathPosix();const i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#kt)return this.#kt;const t=this.name,e=this.parent;if(!e)return this.#kt=this.name;const i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#kt=i}fullpathPosix(){if(void 0!==this.#_t)return this.#_t;if("/"===this.sep)return this.#_t=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#_t=`//?/${t}`:this.#_t=t}const t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#_t=i}isUnknown(){return 0==(this.#Ct&de)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Ct&de)}isDirectory(){return 4==(this.#Ct&de)}isCharacterDevice(){return 2==(this.#Ct&de)}isBlockDevice(){return 6==(this.#Ct&de)}isFIFO(){return 1==(this.#Ct&de)}isSocket(){return 12==(this.#Ct&de)}isSymbolicLink(){return(this.#Ct&pe)===pe}lstatCached(){return 32&this.#Ct?this:void 0}readlinkCached(){return this.#At}realpathCached(){return this.#Et}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#At)return!0;if(!this.parent)return!1;const t=this.#Ct&de;return!(0!==t&&t!==pe||256&this.#Ct||this.#Ct&me)}calledReaddir(){return!!(16&this.#Ct)}isENOENT(){return!!(this.#Ct&me)}isNamed(t){return this.nocase?this.#vt===we(t):this.#vt===be(t)}async readlink(){const t=this.#At;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#et.promises.readlink(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#At=e}catch(t){return void this.#Pt(t.code)}}readlinkSync(){const t=this.#At;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#et.readlinkSync(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#At=e}catch(t){return void this.#Pt(t.code)}}#Ft(t){this.#Ct|=16;for(let e=t.provisional;e<t.length;e++)t[e].#Lt()}#Lt(){this.#Ct&me||(this.#Ct=(this.#Ct|me)&fe,this.#Mt())}#Mt(){const t=this.children();t.provisional=0;for(const e of t)e.#Lt()}#jt(){this.#Ct|=512,this.#zt()}#zt(){if(64&this.#Ct)return;let t=this.#Ct;4==(t&de)&&(t&=fe),this.#Ct=64|t,this.#Mt()}#Dt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#zt():"ENOENT"===t?this.#Lt():this.children().provisional=0}#Rt(t=""){"ENOTDIR"===t?this.parent.#zt():"ENOENT"===t&&this.#Lt()}#Pt(t=""){let e=this.#Ct;e|=256,"ENOENT"===t&&(e|=me),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=fe),this.#Ct=e,"ENOTDIR"===t&&this.parent&&this.parent.#zt()}#Bt(t,e){return this.#It(t,e)||this.#Nt(t,e)}#Nt(t,e){const i=ge(t),n=this.newChild(t.name,i,{parent:this}),s=n.#Ct&de;return 4!==s&&s!==pe&&0!==s&&(n.#Ct|=64),e.unshift(n),e.provisional++,n}#It(t,e){for(let i=e.provisional;i<e.length;i++){const n=e[i];if((this.nocase?we(t.name):be(t.name))===n.#vt)return this.#Wt(t,n,i,e)}}#Wt(t,e,i,n){const s=e.name;return e.#Ct=e.#Ct&fe|ge(t),s!==t.name&&(e.name=t.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(e)),n.provisional++,e}async lstat(){if(0==(this.#Ct&me))try{return this.#$t(await this.#et.promises.lstat(this.fullpath())),this}catch(t){this.#Rt(t.code)}}lstatSync(){if(0==(this.#Ct&me))try{return this.#$t(this.#et.lstatSync(this.fullpath())),this}catch(t){this.#Rt(t.code)}}#$t(t){const{atime:e,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:r,blocks:o,ctime:a,ctimeMs:l,dev:c,gid:h,ino:u,mode:p,mtime:d,mtimeMs:f,nlink:m,rdev:g,size:y,uid:b}=t;this.#mt=e,this.#ut=i,this.#bt=n,this.#ft=s,this.#lt=r,this.#ht=o,this.#yt=a,this.#dt=l,this.#it=c,this.#ot=h,this.#ct=u,this.#nt=p,this.#gt=d,this.#pt=f,this.#st=m,this.#at=g,this.#k=y,this.#rt=b;const v=ge(t);this.#Ct=this.#Ct&fe|v|32,0!==v&&4!==v&&v!==pe&&(this.#Ct|=64)}#qt=[];#Ut=!1;#Gt(t){this.#Ut=!1;const e=this.#qt.slice();this.#qt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const i=this.children();if(this.calledReaddir()){const n=i.slice(0,i.provisional);return void(e?t(null,n):queueMicrotask((()=>t(null,n))))}if(this.#qt.push(t),this.#Ut)return;this.#Ut=!0;const n=this.fullpath();this.#et.readdir(n,{withFileTypes:!0},((t,e)=>{if(t)this.#Dt(t.code),i.provisional=0;else{for(const t of e)this.#Bt(t,i);this.#Ft(i)}this.#Gt(i.slice(0,i.provisional))}))}#Ht;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#Ht)await this.#Ht;else{let i=()=>{};this.#Ht=new Promise((t=>i=t));try{for(const i of await this.#et.promises.readdir(e,{withFileTypes:!0}))this.#Bt(i,t);this.#Ft(t)}catch(e){this.#Dt(e.code),t.provisional=0}this.#Ht=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const i of this.#et.readdirSync(e,{withFileTypes:!0}))this.#Bt(i,t);this.#Ft(t)}catch(e){this.#Dt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#Ct)return!1;const t=de&this.#Ct;return 0===t||4===t||t===pe}shouldWalk(t,e){return 4==(4&this.#Ct)&&!(704&this.#Ct)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Et)return this.#Et;if(!(896&this.#Ct))try{const t=await this.#et.promises.realpath(this.fullpath());return this.#Et=this.resolve(t)}catch(t){this.#jt()}}realpathSync(){if(this.#Et)return this.#Et;if(!(896&this.#Ct))try{const t=this.#et.realpathSync(this.fullpath());return this.#Et=this.resolve(t)}catch(t){this.#jt()}}[xe](t){if(t===this)return;const e=new Set([]);let i=[],n=this;for(;n&&n.parent;)e.add(n),n.#xt=i.join(this.sep),n.#St=i.join("/"),n=n.parent,i.push("..");for(n=t;n&&n.parent&&!e.has(n);)n.#xt=void 0,n.#St=void 0,n=n.parent}}class Ce extends Se{sep="\\";splitSep=ue;constructor(t,e=0,i,n,s,r,o){super(t,e,i,n,s,r,o)}newChild(t,e=0,i={}){return new Ce(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return dt.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(he,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new Ee(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(he,"$1\\"))===e}}class Te extends Se{splitSep="/";sep="/";constructor(t,e=0,i,n,s,r,o){super(t,e,i,n,s,r,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,i={}){return new Te(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}}class Ae{root;rootPath;roots;cwd;#Vt;#Yt;#Tt;nocase;#et;constructor(t=process.cwd(),e,i,{nocase:n,childrenCacheSize:s=16384,fs:r=le}={}){this.#et=ce(r),(t instanceof URL||t.startsWith("file://"))&&(t=(0,ft.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Vt=new ke,this.#Yt=new ke,this.#Tt=new _e(s);const a=o.substring(this.rootPath.length).split(i);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#et),this.roots[this.rootPath]=this.root;let l=this.root,c=a.length-1;const h=e.sep;let u=this.rootPath,p=!1;for(const t of a){const e=c--;l=l.child(t,{relative:new Array(e).fill("..").join(h),relativePosix:new Array(e).fill("..").join("/"),fullpath:u+=(p?"":h)+t}),p=!0}this.cwd=l}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#Tt}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){const n=t[i];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const i=this.#Vt.get(e);if(void 0!==i)return i;const n=this.cwd.resolve(e).fullpath();return this.#Vt.set(e,n),n}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){const n=t[i];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const i=this.#Yt.get(e);if(void 0!==i)return i;const n=this.cwd.resolve(e).fullpathPosix();return this.#Yt.set(e,n),n}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i}=e;if(t.canReaddir()){const e=await t.readdir();return i?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t.withFileTypes,t=this.cwd);const i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t.withFileTypes,t=this.cwd);const i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t.withFileTypes,t=this.cwd);const i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t.withFileTypes,t=this.cwd);const i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=[];s&&!s(t)||o.push(i?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,c)=>{if(t)return e(t);let h=c.length;if(!h)return e();const u=()=>{0==--h&&e()};for(const t of c)s&&!s(t)||o.push(i?t:t.fullpath()),n&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,r)?l(t,u):u())):t.shouldWalk(a,r)?l(t,u):u()}),!0)},c=t;return new Promise(((t,e)=>{l(c,(i=>{if(i)return e(i);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=[];s&&!s(t)||o.push(i?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){s&&!s(t)||o.push(i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e;s&&!s(t)||(yield i?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){s&&!s(t)||(yield i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,r)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=new oe({objectMode:!0});s&&!s(t)||o.write(i?t:t.fullpath());const a=new Set,l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const u=(e,d,f=!1)=>{if(e)return o.emit("error",e);if(n&&!f){const t=[];for(const e of d)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>u(null,d,!0)))}for(const e of d)!e||s&&!s(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of d){const e=t.realpathCached()||t;e.shouldWalk(a,r)&&l.push(e)}t&&!o.flowing?o.once("drain",h):p||h()};let p=!0;e.readdirCB(u,!0),p=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Se||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=new oe({objectMode:!0}),a=new Set;s&&!s(t)||o.write(i?t:t.fullpath());const l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const h=e.readdirSync();for(const e of h)s&&!s(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[xe](e)}}class Ee extends Ae{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,dt.win32,"\\",{...e,nocase:i}),this.nocase=i;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return dt.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ce(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}class Oe extends Ae{sep="/";constructor(t=process.cwd(),e={}){const{nocase:i=!1}=e;super(t,dt.posix,"/",{...e,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Te(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}class Pe extends Oe{constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,{...e,nocase:i})}}process.platform;const Fe="win32"===process.platform?Ee:"darwin"===process.platform?Pe:Oe;class Le{#Jt;#Zt;#Qt;length;#Xt;#Kt;#te;#ee;#ie;#ne;#se=!0;constructor(t,e,i,n){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#Jt=t,this.#Zt=e,this.#Qt=i,this.#Xt=n,0===this.#Qt)if(this.isUNC()){const[t,e,i,n,...s]=this.#Jt,[r,o,a,l,...c]=this.#Zt;""===s[0]&&(s.shift(),c.shift());const h=[t,e,i,n,""].join("/"),u=[r,o,a,l,""].join("/");this.#Jt=[h,...s],this.#Zt=[u,...c],this.length=this.#Jt.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#Jt,[i,...n]=this.#Zt;""===e[0]&&(e.shift(),n.shift());const s=t+"/",r=i+"/";this.#Jt=[s,...e],this.#Zt=[r,...n],this.length=this.#Jt.length}}pattern(){return this.#Jt[this.#Qt]}isString(){return"string"==typeof this.#Jt[this.#Qt]}isGlobstar(){return this.#Jt[this.#Qt]===Q}isRegExp(){return this.#Jt[this.#Qt]instanceof RegExp}globString(){return this.#te=this.#te||(0===this.#Qt?this.isAbsolute()?this.#Zt[0]+this.#Zt.slice(1).join("/"):this.#Zt.join("/"):this.#Zt.slice(this.#Qt).join("/"))}hasMore(){return this.length>this.#Qt+1}rest(){return void 0!==this.#Kt?this.#Kt:this.hasMore()?(this.#Kt=new Le(this.#Jt,this.#Zt,this.#Qt+1,this.#Xt),this.#Kt.#ne=this.#ne,this.#Kt.#ie=this.#ie,this.#Kt.#ee=this.#ee,this.#Kt):this.#Kt=null}isUNC(){const t=this.#Jt;return void 0!==this.#ie?this.#ie:this.#ie="win32"===this.#Xt&&0===this.#Qt&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#Jt;return void 0!==this.#ee?this.#ee:this.#ee="win32"===this.#Xt&&0===this.#Qt&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#Jt;return void 0!==this.#ne?this.#ne:this.#ne=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#Jt[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#Qt?t:""}checkFollowGlobstar(){return!(0===this.#Qt||!this.isGlobstar()||!this.#se)}markFollowGlobstar(){return!(0===this.#Qt||!this.isGlobstar()||!this.#se||(this.#se=!1,0))}}const Me="object"==typeof process&&process?process:{stdout:null,stderr:null},je=t=>!!t&&"object"==typeof t&&(t instanceof bi||t instanceof vt||ze(t)||De(t)),ze=t=>!!t&&"object"==typeof t&&t instanceof bt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==vt.Writable.prototype.pipe,De=t=>!!t&&"object"==typeof t&&t instanceof bt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Re=Symbol("EOF"),Be=Symbol("maybeEmitEnd"),Ie=Symbol("emittedEnd"),Ne=Symbol("emittingEnd"),We=Symbol("emittedError"),$e=Symbol("closed"),qe=Symbol("read"),Ue=Symbol("flush"),Ge=Symbol("flushChunk"),He=Symbol("encoding"),Ve=Symbol("decoder"),Ye=Symbol("flowing"),Je=Symbol("paused"),Ze=Symbol("resume"),Qe=Symbol("buffer"),Xe=Symbol("pipes"),Ke=Symbol("bufferLength"),ti=Symbol("bufferPush"),ei=Symbol("bufferShift"),ii=Symbol("objectMode"),ni=Symbol("destroyed"),si=Symbol("error"),ri=Symbol("emitData"),oi=Symbol("emitEnd"),ai=Symbol("emitEnd2"),li=Symbol("async"),ci=Symbol("abort"),hi=Symbol("aborted"),ui=Symbol("signal"),pi=Symbol("dataListeners"),di=Symbol("discarded"),fi=t=>Promise.resolve().then(t),mi=t=>t();class gi{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Ze](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class yi extends gi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class bi extends bt.EventEmitter{[Ye]=!1;[Je]=!1;[Xe]=[];[Qe]=[];[ii];[He];[li];[Ve];[Re]=!1;[Ie]=!1;[Ne]=!1;[$e]=!1;[We]=null;[Ke]=0;[ni]=!1;[ui];[hi]=!1;[pi]=0;[di]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[ii]=!0,this[He]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[He]=e.encoding,this[ii]=!1):(this[ii]=!1,this[He]=null),this[li]=!!e.async,this[Ve]=this[He]?new wt.StringDecoder(this[He]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Qe]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Xe]});const{signal:n}=e;n&&(this[ui]=n,n.aborted?this[ci]():n.addEventListener("abort",(()=>this[ci]())))}get bufferLength(){return this[Ke]}get encoding(){return this[He]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ii]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[li]}set async(t){this[li]=this[li]||!!t}[ci](){this[hi]=!0,this.emit("abort",this[ui]?.reason),this.destroy(this[ui]?.reason)}get aborted(){return this[hi]}set aborted(t){}write(t,e,i){if(this[hi])return!1;if(this[Re])throw new Error("write after end");if(this[ni])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const n=this[li]?fi:mi;if(!this[ii]&&!Buffer.isBuffer(t))if(s=t,!Buffer.isBuffer(s)&&ArrayBuffer.isView(s))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var s;return this[ii]?(this[Ye]&&0!==this[Ke]&&this[Ue](!0),this[Ye]?this.emit("data",t):this[ti](t),0!==this[Ke]&&this.emit("readable"),i&&n(i),this[Ye]):t.length?("string"!=typeof t||e===this[He]&&!this[Ve]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[He]&&(t=this[Ve].write(t)),this[Ye]&&0!==this[Ke]&&this[Ue](!0),this[Ye]?this.emit("data",t):this[ti](t),0!==this[Ke]&&this.emit("readable"),i&&n(i),this[Ye]):(0!==this[Ke]&&this.emit("readable"),i&&n(i),this[Ye])}read(t){if(this[ni])return null;if(this[di]=!1,0===this[Ke]||0===t||t&&t>this[Ke])return this[Be](),null;this[ii]&&(t=null),this[Qe].length>1&&!this[ii]&&(this[Qe]=[this[He]?this[Qe].join(""):Buffer.concat(this[Qe],this[Ke])]);const e=this[qe](t||null,this[Qe][0]);return this[Be](),e}[qe](t,e){if(this[ii])this[ei]();else{const i=e;t===i.length||null===t?this[ei]():"string"==typeof i?(this[Qe][0]=i.slice(t),e=i.slice(0,t),this[Ke]-=t):(this[Qe][0]=i.subarray(t),e=i.subarray(0,t),this[Ke]-=t)}return this.emit("data",e),this[Qe].length||this[Re]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Re]=!0,this.writable=!1,!this[Ye]&&this[Je]||this[Be](),this}[Ze](){this[ni]||(this[pi]||this[Xe].length||(this[di]=!0),this[Je]=!1,this[Ye]=!0,this.emit("resume"),this[Qe].length?this[Ue]():this[Re]?this[Be]():this.emit("drain"))}resume(){return this[Ze]()}pause(){this[Ye]=!1,this[Je]=!0,this[di]=!1}get destroyed(){return this[ni]}get flowing(){return this[Ye]}get paused(){return this[Je]}[ti](t){this[ii]?this[Ke]+=1:this[Ke]+=t.length,this[Qe].push(t)}[ei](){return this[ii]?this[Ke]-=1:this[Ke]-=this[Qe][0].length,this[Qe].shift()}[Ue](t=!1){do{}while(this[Ge](this[ei]())&&this[Qe].length);t||this[Qe].length||this[Re]||this.emit("drain")}[Ge](t){return this.emit("data",t),this[Ye]}pipe(t,e){if(this[ni])return t;this[di]=!1;const i=this[Ie];return e=e||{},t===Me.stdout||t===Me.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[Xe].push(e.proxyErrors?new yi(this,t,e):new gi(this,t,e)),this[li]?fi((()=>this[Ze]())):this[Ze]()),t}unpipe(t){const e=this[Xe].find((e=>e.dest===t));e&&(1===this[Xe].length?(this[Ye]&&0===this[pi]&&(this[Ye]=!1),this[Xe]=[]):this[Xe].splice(this[Xe].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[di]=!1,this[pi]++,this[Xe].length||this[Ye]||this[Ze]();else if("readable"===t&&0!==this[Ke])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Ie])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[We]){const t=e;this[li]?fi((()=>t.call(this,this[We]))):t.call(this,this[We])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[pi]=this.listeners("data").length,0!==this[pi]||this[di]||this[Xe].length||(this[Ye]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[pi]=0,this[di]||this[Xe].length||(this[Ye]=!1)),e}get emittedEnd(){return this[Ie]}[Be](){this[Ne]||this[Ie]||this[ni]||0!==this[Qe].length||!this[Re]||(this[Ne]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[$e]&&this.emit("close"),this[Ne]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==ni&&this[ni])return!1;if("data"===t)return!(!this[ii]&&!i)&&(this[li]?(fi((()=>this[ri](i))),!0):this[ri](i));if("end"===t)return this[oi]();if("close"===t){if(this[$e]=!0,!this[Ie]&&!this[ni])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[We]=i,super.emit(si,i);const t=!(this[ui]&&!this.listeners("error").length)&&super.emit("error",i);return this[Be](),t}if("resume"===t){const t=super.emit("resume");return this[Be](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[Be](),n}[ri](t){for(const e of this[Xe])!1===e.dest.write(t)&&this.pause();const e=!this[di]&&super.emit("data",t);return this[Be](),e}[oi](){return!this[Ie]&&(this[Ie]=!0,this.readable=!1,this[li]?(fi((()=>this[ai]())),!0):this[ai]())}[ai](){if(this[Ve]){const t=this[Ve].end();if(t){for(const e of this[Xe])e.dest.write(t);this[di]||super.emit("data",t)}}for(const t of this[Xe])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[ii]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[ii]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[ii])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[He]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(ni,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[di]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Re])return e();let n,s;const r=t=>{this.off("data",o),this.off("end",a),this.off(ni,l),e(),s(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(ni,l),this.pause(),n({value:t,done:!!this[Re]})},a=()=>{this.off("error",r),this.off("data",o),this.off(ni,l),e(),n({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{s=e,n=t,this.once(ni,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[di]=!1;let t=!1;const e=()=>(this.pause(),this.off(si,e),this.off(ni,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(si,e),this.once(ni,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[ni]?(t?this.emit("error",t):this.emit(ni),this):(this[ni]=!0,this[di]=!0,this[Qe].length=0,this[Ke]=0,"function"!=typeof this.close||this[$e]||this.close(),t?this.emit("error",t):this.emit(ni),this)}static get isStream(){return je}}const vi="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class wi{relative;relativeChildren;absolute;absoluteChildren;constructor(t,{nobrace:e,nocase:i,noext:n,noglobstar:s,platform:r=vi}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];const o={dot:!0,nobrace:e,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:r,nocomment:!0,nonegate:!0};for(const e of t){const t=new et(e,o);for(let e=0;e<t.set.length;e++){const i=t.set[e],n=t.globParts[e],s=new Le(i,n,0,r),a=new et(s.globString(),o),l="**"===n[n.length-1],c=s.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}}ignored(t){const e=t.fullpath(),i=`${e}/`,n=t.relative()||".",s=`${n}/`;for(const t of this.relative)if(t.match(n)||t.match(s))return!0;for(const t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(i))return!0;for(const t of this.absoluteChildren)t.match(e);return!1}}class ki{store;constructor(t=new Map){this.store=t}copy(){return new ki(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const i=t.fullpath(),n=this.store.get(i);n?n.add(e.globString()):this.store.set(i,new Set([e.globString()]))}}class _i{store=new Map;add(t,e,i){const n=(e?2:0)|(i?1:0),s=this.store.get(t);this.store.set(t,void 0===s?n:n&s)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}class xi{store=new Map;add(t,e){if(!t.canReaddir())return;const i=this.store.get(t);i?i.find((t=>t.globString()===e.globString()))||i.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}class Si{hasWalkedCache;matches=new _i;subwalks=new xi;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new ki}processPatterns(t,e){this.patterns=e;const i=e.map((e=>[t,e]));for(let[t,e]of i){this.hasWalkedCache.storeWalked(t,e);const i=e.root(),n=e.isAbsolute()&&!1!==this.opts.absolute;if(i){t=t.resolve("/"===i&&void 0!==this.opts.root?this.opts.root:i);const n=e.rest();if(!n){this.matches.add(t,!0,!1);continue}e=n}if(t.isENOENT())continue;let s,r,o=!1;for(;"string"==typeof(s=e.pattern())&&(r=e.rest());){const i=t.resolve(s);t=i,e=r,o=!0}if(s=e.pattern(),r=e.rest(),o){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof s)if(s===Q){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const i=r?.pattern(),s=r?.rest();if(r&&(""!==i&&"."!==i||s)){if(".."===i){const e=t.parent||t;s?this.hasWalkedCache.hasWalked(e,s)||this.subwalks.add(e,s):this.matches.add(e,n,!0)}}else this.matches.add(t,n,""===i||"."===i)}else s instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===s||""===s||"."===s;this.matches.add(t.resolve(s),n,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Si(this.opts,this.hasWalkedCache)}filterEntries(t,e){const i=this.subwalks.get(t),n=this.child();for(const t of e)for(const e of i){const i=e.isAbsolute(),s=e.pattern(),r=e.rest();s===Q?n.testGlobstar(t,e,r,i):s instanceof RegExp?n.testRegExp(t,s,r,i):n.testString(t,s,r,i)}return n}testGlobstar(t,e,i,n){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){const e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),n);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),n)}}testRegExp(t,e,i,n){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}testString(t,e,i,n){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}}class Ci{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#re=[];#oe;#ae;signal;maxDepth;constructor(t,e,i){this.patterns=t,this.path=e,this.opts=i,this.#ae=i.posix||"win32"!==i.platform?"/":"\\",i.ignore&&(this.#oe=((t,e)=>"string"==typeof t?new wi([t],e):Array.isArray(t)?new wi(t,e):t)(i.ignore,i)),this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",(()=>{this.#re.length=0})))}#le(t){return this.seen.has(t)||!!this.#oe?.ignored?.(t)}#ce(t){return!!this.#oe?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#re.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#re.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?await t.lstat():t,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.#le(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?t.lstatSync():t,e)}matchFinish(t,e){if(this.#le(t))return;const i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const n=this.opts.mark&&t.isDirectory()?this.#ae:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+n)}else{const e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#ae)?"."+this.#ae:"";this.matchEmit(e?i+e+n:"."+n)}}async match(t,e,i){const n=await this.matchCheck(t,i);n&&this.matchFinish(n,e)}matchSync(t,e,i){const n=this.matchCheckSync(t,i);n&&this.matchFinish(n,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new Si(this.opts),i)}walkCB2(t,e,i,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,i,n)));i.processPatterns(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||(s++,this.match(t,e,n).then((()=>r())));for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;s++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,r):t.readdirCB(((e,n)=>this.walkCB3(t,n,i,r)),!0)}r()}walkCB3(t,e,i,n){i=i.filterEntries(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||(s++,this.match(t,e,n).then((()=>r())));for(const[t,e]of i.subwalks.entries())s++,this.walkCB2(t,e,i.child(),r);r()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new Si(this.opts),i)}walkCB2Sync(t,e,i,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,i,n)));i.processPatterns(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||this.matchSync(t,e,n);for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;s++;const e=t.readdirSync();this.walkCB3Sync(t,e,i,r)}r()}walkCB3Sync(t,e,i,n){i=i.filterEntries(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||this.matchSync(t,e,n);for(const[t,e]of i.subwalks.entries())s++,this.walkCB2Sync(t,e,i.child(),r);r()}}class Ti extends Ci{matches;constructor(t,e,i){super(t,e,i),this.matches=new Set}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}}class Ai extends Ci{results;constructor(t,e,i){super(t,e,i),this.results=new bi({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}const Ei="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class Oi{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,ft.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||Ei,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?Ee:"darwin"===e.platform?Pe:e.platform?Oe:Fe;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const i="darwin"===this.platform||"win32"===this.platform,n={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map((t=>new et(t,n))),[r,o]=s.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=r.map(((t,e)=>new Le(t,o[e],0,this.platform)))}async walk(){return[...await new Ti(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new Ti(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new Ai(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new Ai(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}function Pi(t,e={}){return new Oi(t,e).streamSync()}function Fi(t,e={}){return new Oi(t,e).stream()}function Li(t,e={}){return new Oi(t,e).walkSync()}async function Mi(t,e={}){return new Oi(t,e).walk()}function ji(t,e={}){return new Oi(t,e).iterateSync()}function zi(t,e={}){return new Oi(t,e).iterate()}const Di=Pi,Ri=Object.assign(Fi,{sync:Pi}),Bi=ji,Ii=Object.assign(zi,{sync:ji}),Ni=Object.assign(Li,{stream:Pi,iterate:ji}),Wi=Object.assign(Mi,{glob:Mi,globSync:Li,sync:Ni,globStream:Fi,stream:Ri,globStreamSync:Pi,streamSync:Di,globIterate:zi,iterate:Ii,globIterateSync:ji,iterateSync:Bi,Glob:Oi,hasMagic:(t,e={})=>{Array.isArray(t)||(t=[t]);for(const i of t)if(new et(i,e).hasMagic())return!0;return!1},escape:E,unescape:y});Wi.glob=Wi;var $i,qi=i(991);function Ui(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Gi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Gi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function Gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Hi={};pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===qi.Yr.key&&function(){($i=$i||c(h.mark((function t(){var e,i,n,s,r,o;return h.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=28;break}if(i=path.resolve(e,"node_modules","quasar","dist","api"),!fs.existsSync(i)||!fs.statSync(i).isDirectory()){t.next=28;break}return t.next=8,Wi("*.json",{cwd:path.resolve(i),withFileTypes:!0});case 8:n=(n=t.sent).sort((function(t,e){return t.fullpath().localeCompare(e.fullpath())})),s=Ui(n),t.prev=11,o=h.mark((function t(){var e,i,n,s,o,a,c;return h.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=r.value).isFile()){t.next=11;break}if(i=e.fullpath(),n=e.name,s=n.replace(path.extname(n),""),(a=fs.readFileSync(i,{encoding:"utf8",flag:"r"})).trim()&&(o=JSON.parse(a)||{}),"component"===o.type){t.next=9;break}return t.abrupt("return",1);case 9:c=o.props||{},Object.entries(c).filter((function(t){var e=l(t,2);return e[0],e[1].values})).forEach((function(t){var e=l(t,2),i=e[0],n=e[1];Hi[s]||(Hi[s]={}),Hi[s][i]={customType:"select",options:n.values}}));case 11:case"end":return t.stop()}}),t)})),s.s();case 14:if((r=s.n()).done){t.next=20;break}return t.delegateYield(o(),"t0",16);case 16:if(!t.t0){t.next=18;break}return t.abrupt("continue",18);case 18:t.next=14;break;case 20:t.next=25;break;case 22:t.prev=22,t.t1=t.catch(11),s.e(t.t1);case 25:return t.prev=25,s.f(),t.finish(25);case 28:case"end":return t.stop()}}),t,null,[[11,22,25,28]])})))).apply(this,arguments)}()}));var Vi={default:function(t){return["placeholderSrc","src","srcset","imgSrc","trackImg","innerTrackImg","selectionImg","avatar","appendAvatar","prependAvatar"].includes(t)?{customType:"image"}:t.toLowerCase().endsWith("icon")?{customType:"icon"}:t.toLowerCase().endsWith("color")?{customType:"color"}:void 0}};function Yi(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ji(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Yi(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Yi(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var Zi={QBtn:{props:{label:"My Button"}},QIcon:{props:{name:"i-mdi-home"}},QImg:{props:{src:"https://images.unsplash.com/photo-1551120738-c3fcea8d0cf8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDkyMnwwfDF8c2VhcmNofDJ8fHBpbmUlMjB0cmVlfGVufDB8fHx8MTY1Njc1MzAyMg&ixlib=rb-1.2.1&q=80&w=1080"}}},Qi=i(408);function Xi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ki(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function tn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ki(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ki(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var en,nn=function(t){return t.replaceAll(" ","-").toLowerCase()},sn=[{label:"Buttons",value:"button"},{label:"Inputs",value:"input"},{label:"Loading",value:"loading"},{label:"Media",value:"media"},{label:"Navigation",value:"navigation"},{label:"Panels & Popups",value:"panel"},{label:"Scroll",value:"scroll"},{label:"Tables",value:"table"},{label:"Other Components",value:"other"},{label:"Directives",value:"directive"},{label:"Plugins",value:"plugin"},{label:"Utils",value:"util"}],rn=[].concat(Qi([{label:"Ajax-bar",name:"ajax-bar",description:"A loading bar for ajax calls in progress",tag:"loading"},{label:"Avatar",name:"avatar",description:"A space for your portrait, icon or text",tag:"media"},{label:"Badge",name:"badge",description:"To highlight small but important info",tag:"media"},{label:"Banner",name:"banner",description:"To display important messages and actions",tag:"panel"},{label:"Bar",name:"bar",description:"A small top bar for side info and actions",tag:"other"},{label:"Breadcrumbs",name:"breadcrumbs",description:"To keep track of your position inside app",tag:"navigation"},{label:"BreadcrumbsEl",name:"breadcrumbs-el",description:"To keep track of your position inside app",tag:"navigation"},{label:"Buttons",name:"btn",description:"To access the most important actions",tag:"button",path:"button"},{label:"Buttons Dropdown",name:"btn-dropdown",description:"To access more actions at once in less space",tag:"button",path:"button-dropdown"},{label:"Buttons Group",name:"btn-group",description:"An alternative to classic buttons",tag:"button",path:"button-group"},{label:"Floating Action Button",name:"fab",description:"To display the page primary action",tag:"button"},{label:"Toggle Buttons",name:"btn-toggle",description:"An alternative to pick an option among many",tag:"button",path:"button-toggle"},{label:"Toggle",name:"toggle",description:"To switch an option on and off",tag:"button"},{label:"Card",name:"card",description:"To display grouped contents",tag:"panel",path:"card"},{label:"Card Section",name:"card-section",description:"",tag:"panel",path:"card"},{label:"Card Actions",name:"card-actions",description:"",tag:"panel",path:"card"},{label:"Carousel",name:"carousel",description:"To display images and other contents",tag:"media",path:"carousel"},{label:"Carousel Control",name:"carousel-control",description:"",tag:"media",path:"carousel"},{label:"Carousel Slide",name:"carousel-slide",description:"",tag:"media",path:"carousel"},{label:"Chat Message",name:"chat-message",description:"To display users' conversations",tag:"other",path:"chat"},{label:"Checkbox",name:"checkbox",description:"To flag one or more options in a list",tag:"input"},{label:"Chips",name:"chip",description:"A small container for info and actions",tag:"media",path:"chip"},{label:"Circular Progress",name:"circular-progress",description:"To inform when content is still loading",tag:"loading"},{label:"Color Pickers",name:"color",description:"To select color values and codes",tag:"input",path:"color-picker"},{label:"Date Picker",name:"date",description:"To access the most important actions",tag:"input",path:"date"},{label:"Dialogs",name:"dialog",description:"To show actions and info only when needed",tag:"panel",path:"dialog"},{label:"Editor WYSIWYG",name:"editor",description:"To write text and style it directly",tag:"other",path:"editor"},{label:"Expansion Panels",name:"expansion-item",description:"To show hidden extra info and actions",tag:"panel",path:"expansion-item"},{label:"File Pickers",name:"file",description:"To access and choose a file from users' device",tag:"media",path:"file"},{label:"Forms",name:"form",description:"A system to submit validated inputs",tag:"input",path:"form"},{label:"Form Fields",name:"field",description:"Wrapper for your own custom form elements",tag:"input",path:"field"},{label:"Icon",name:"icon",description:"To insert icons inside other components",tag:"media"},{label:"Img",name:"img",description:"To set some basic image features",tag:"media"},{label:"Infinite Scroll",name:"infinite-scroll",description:"To enable new content display while scrolling",tag:"scroll"},{label:"Inner Loading",name:"inner-loading",description:"To add content loading inside a component",tag:"loading"},{label:"Input Text Fields",name:"input",description:"To collect users' typed text input",tag:"input",path:"input"},{label:"Intersection",name:"intersection",description:"Set how UI elements enter the screen",tag:"loading"},{label:"Knob",name:"knob",description:"To set a value with a draggable gauge",tag:"input"},{label:"Linear Progress",name:"linear-progress",description:"A loading bar with various behaviors",tag:"loading"},{label:"List",name:"list",description:"To display contents on a vertical list",tag:"other"},{label:"List Items",name:"item",description:"",tag:"other"},{label:"List Item Section",name:"item-section",description:"",tag:"other"},{label:"List Item Label",name:"item-label",description:"",tag:"other"},{label:"Markup Table",name:"markup-table",description:"To display data and content on a table",tag:"table"},{label:"Menu",name:"menu",description:"A dropdown panel to access options",tag:"panel"},{label:"No SSR",name:"no-ssr",description:"Ignore irrelevant code during SSR generation",tag:"other"},{label:"Observer resize",name:"resize-observer",description:"Emit an Event when an element resizes",tag:"other",path:"resize-observer"},{label:"Observer scroll",name:"scroll-observer",description:"Emit an Event when the user scrolls",tag:"other",path:"scroll-observer"},{label:"Option Group",name:"option-group",description:"Helper component to set groups of options",tag:"input"},{label:"Pagination",name:"pagination",description:"To navigate content on multiple pages",tag:["navigation"]},{label:"Parallax",name:"parallax",description:"To create interesting UI image background",tag:"media"},{label:"Popup Edit",name:"popup-edit",description:"To access inline editing of data",tag:"input"},{label:"Popup Proxy",name:"popup-proxy",description:"To show extra content on click",tag:"panel"},{label:"Pull to Refresh",name:"pull-to-refresh",description:"To refresh the page content with a gesture",tag:"loading"},{label:"Radio",name:"radio",description:"To select a single option in a list",tag:"input"},{label:"Range",name:"range",description:"To pick a period on a range of values",tag:"input"},{label:"Rating",name:"rating",description:'The classic "star rating" component',tag:"other"},{label:"Responsive",name:"responsive",description:"To keep content aspect ratio consistent",tag:"other"},{label:"Scroll Area",name:"scroll-area",description:"To set a scrollable content in components",tag:"scroll"},{label:"Select",name:"select",description:"To choose one item from a dropdown list",tag:"input"},{label:"Separator",name:"separator",description:"The linear visual divider for contents",tag:"other"},{label:"Skeleton",name:"skeleton",description:"To set loading content placeholders",tag:"loading"},{label:"Slide Item",name:"slide-item",description:"To add dragging feature to list items",tag:"other"},{label:"Slider",name:"slider",description:"To pick a single value on a range",tag:"input"},{label:"Slide Transition",name:"slide-transition",description:"To show a hidden content",tag:"other"},{label:"Space",name:"space",description:"Fill space inside elements using flexbox",tag:"other"},{label:"Spinners",name:"spinner",description:"A loading indicator with various behaviors",tag:"loading"},{label:"Spinner Cube",name:"spinner-cube",description:"",tag:"loading"},{label:"Splitter",name:"splitter",description:"To add a draggable resizer for containers",tag:"other"},{label:"Stepper",name:"stepper",description:"To divide content in progressive steps",tag:"navigation"},{label:"Step",name:"step",description:"",tag:"navigation"},{label:"Stepper Navigation",name:"stepper-navigation",description:"",tag:"navigation"},{label:"Table",name:"table",description:"To display much data on a datatable",tag:"table"},{label:"Th",name:"th",description:"",tag:"table"},{label:"Tr",name:"tr",description:"",tag:"table"},{label:"Td",name:"td",description:"",tag:"table"},{label:"Tab Panels",name:"tab-panels",description:"To split out content view in the same page",tag:"navigation"},{label:"Tab Panel",name:"tab-panel",description:"To navigate separate content in one page",tag:"navigation"},{label:"Timeline",name:"timeline",description:"A vertical solution to set milestones in time",tag:"other"},{label:"Timeline Entry",name:"timeline-entry",description:"",tag:"other"},{label:"Time Picker",name:"time",description:"To set a specific time on the clock",tag:"input",path:"time"},{label:"Toolbar",name:"toolbar",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Toolbar Title",name:"toolbar-title",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Tooltip",name:"tooltip",description:"To show extra useful info about the UI",tag:"media"},{label:"Tree",name:"tree",description:"An indented structure for hierarchical data",tag:"navigation"},{label:"Uploader",name:"uploader",description:"To upload any kind of file from the computer",tag:"media"},{label:"Video",name:"video",description:"To embed and display a video player in UI",tag:"media"},{label:"Virtual Scroll",name:"virtual-scroll",description:"To render new content while scrolling it",tag:"scroll"}].map((function(t){var e=sn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label,i=nn(t.name);return tn(tn({},t),{},{category:e,img:"https://cdn.quasar.dev/img/components/".concat(i,".jpg"),to:"/vue-components/".concat(t.path||i)})}))),Qi([{name:"Intersection",description:"Handle elements coming into the view",tag:"directive"},{name:"Material Ripples",description:"Apply Material ripples to elements",tag:"directive"},{name:"Mutation",description:"Watch changes being made to the DOM tree",tag:"directive"},{name:"Morph",description:"Morph DOM elements between two states",tag:"directive"},{name:"Scroll",description:"Handle page scroll",tag:"directive"},{name:"Scroll Fire",description:"Take action when element comes into view",tag:"directive"},{name:"Touch Hold",description:"Handle touch & mouse hold user actions",tag:"directive"},{name:"Touch Pan",description:"Handle touch & mouse panning user actions",tag:"directive"},{name:"Touch Repeat",description:"Handle repeated touch & mouse taps/clicks",tag:"directive"},{name:"Touch Swipe",description:"Handle touch & mouse swipe user actions",tag:"directive"}].map((function(t){var e=sn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return tn(tn({},t),{},{category:e,to:"/vue-directives/".concat(t.path||nn(t.name)),name:"".concat(t.path||nn(t.name))})}))),Qi([{name:"Addressbar Color",description:"Manage the browser addressbar color",tag:"plugin"},{name:"App Fullscreen",description:"Handle app fullscreen mode",tag:"plugin"},{name:"App Visibility",description:"For app coming into (or out of) view",tag:"plugin"},{name:"Bottom Sheet",description:"Quick way to offer a list of actions",tag:"plugin"},{name:"Cookies",description:"Easy way to manage browser cookies",tag:"plugin"},{name:"Dark Mode",description:"Manage dark mode",tag:"plugin",path:"dark"},{name:"Dialog",description:"Plugin to display a floating modal",tag:"plugin"},{name:"Loading",description:"Overlay for a background action in progress",tag:"plugin"},{name:"Loading Bar",description:"Display a loading bar for in progress Ajax calls",tag:"plugin"},{name:"Local/Session Storage",description:"Manage the local storage and session storage",tag:"plugin",path:"web-storage"},{name:"Meta Plugin",description:"Helps with SEO by managing the meta tags",tag:"plugin",path:"meta"},{name:"Notify",description:"Display floating animated messages",tag:"plugin"}].map((function(t){var e=sn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return tn(tn({},t),{},{category:e,to:"/quasar-plugins/".concat(t.path||nn(t.name)),name:"".concat(t.path||nn(t.name))})}))),Qi([{name:"Date utils",description:"Easily handle date objects",tag:"util"},{name:"DOM utils",description:"Various DOM-related helper utils",tag:"util"},{name:"Morph utils",description:"Morph DOM elements helper util",tag:"util"},{name:"Formatter utils",description:"Various text formatting utils",tag:"util"},{name:"Scrolling utils",description:"Various scrolling-related utils",tag:"util"},{name:"Type checking utils",description:"Helpers to determine variable types",tag:"util"},{name:"Event bus util",description:"Global event bus",tag:"util"},{name:"Other utils",description:"Various other utils that Quasar supplies",tag:"util"}].map((function(t){var e=sn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return tn(tn({},t),{},{category:e,to:"/quasar-utils/".concat(nn(t.name)),name:"".concat(nn(t.name))})})))).filter((function(t){return t.to.startsWith("/vue-components/")})).map((function(t,e){return{key:e,name:"q-".concat(t.name),description:t.description,tag:t.tag,category:t.category,img:t.img,haystack:"".concat(t.name," ").concat(t.description," ").concat(t.short||"").toLowerCase(),to:t.to}})),on={},an=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Xi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Xi(t,e):void 0}}(t))){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}(rn);try{for(an.s();!(en=an.n()).done;){var ln=en.value,cn=ln.name,hn=ln.category;on[hn]||(on[hn]=[]),on[hn].push(cn)}}catch(t){an.e(t)}finally{an.f()}var un=i(783);const pn=/[^\p{L}\p{N}]+/gu,dn=(t,e={})=>{const i=(t=>null==t?"":Array.isArray(t)?t.map((t=>t.toString().trim())).filter((t=>t.length>0)).join(" "):"function"==typeof t?t.name?t.name:"":"function"!=typeof t.toString?"":t.toString().trim())(t),n=e.punctuationRegex??pn,s=i?un(n?i.replace(n," "):i,e):"";return s?s[0].toLocaleUpperCase(e.locale)+s.slice(1):""};var fn={};Object.entries({breadcrumbs:["breadcrumbs","breadcrumbs-el"],card:["card","card-section","card-actions"],carousel:["carousel","carousel-control","carousel-slide"],list:["list","item","item-section","item-label"],spinner:["spinner","spinner-cube"],stepper:["stepper","step","stepper-navigation"],table:["table","th","tr","td"],"tab-panels":["tab-panels","tab-panel"],timeline:["timeline","timeline-entry"],toolbar:["toolbar","toolbar-title"]}).forEach((function(t){var e=l(t,2),i=(e[0],e[1]),n=i[0],s=i.slice(1,i.length);fn[dn("q-".concat(n))]=s.map((function(t){return dn("q-".concat(t))}))}));var mn={metaOverrides:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={customType:null,type:i.value&&i.value.type,multiple:i.multiple,options:null,required:i.required,validator:i.validator,default:i.default&&"null"!==i.default&&"undefined"!==i.default?i.default:null};return[Hi,Vi].reduce((function(n,s){if(Object.keys(n).length)return n;var r;s.default&&"function"==typeof s.default&&(r=null==s?void 0:s.default(o(i.name)));var a=s[t]&&s[t][o(i.name)];return e=Ji(Ji({},r||{}),a||{})}),{}),e&&(n.customType=e.customType||n.customType,n.type=e.type||n.type,n.multiple=e.multiple||n.multiple,n.options=e.options||n.options,n.required=e.required||n.required,n.validator=e.validator||n.validator,n.default=e.default||n.default),n},metaAdditions:function(t){return[Hi,Vi].reduce((function(e,i){if(i[t]){var n=Object.keys(i[t]),s=e.map((function(t){return o(t.name)}));n.filter((function(t){return!s.includes(t)})).forEach((function(n){var s=i[t][n];e.push({name:n,description:s.description,"doc-url":s.docUrl,default:s.default,value:s.value})}))}return e}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])},libraryCodeStubs:function(t){var e=Zi[t],i="",n="";return e&&(e.props&&(i=Object.entries(e.props).reduce((function(t,e){var i=l(e,2),n=i[0],s=i[1],r=!0===s?"":'="'.concat(s,'"');return"".concat(t," ").concat(a(n)).concat(r)}),"")),e.defaultSlot&&(n=e.defaultSlot)),"<".concat(a(t)," ").concat(i,">").concat(n,"</").concat(a(t),">")},componentsCategorised:on,componentGroups:fn}},991:(t,e,i)=>{"use strict";i.d(e,{EX:()=>o,JF:()=>s,Yr:()=>a,fh:()=>r,hC:()=>n});var n=!0,s=function(t){n=t},r=!1,o=function(t){r=t},a={plugin_path:"./plugin.cjs",templates_path:"./templates",version:"2.0.0",major_version:"2",minor_version:"2",info_badge:"",type:"quasar",short_type:"quasar",allow_single_type:!0,short_name:"Quasar",dependency:"@pinegrow/quasar-module",get name(){return"".concat(this.short_name," ").concat(this.minor_version)},get key(){return"".concat(this.type)},get scriptTagId(){return"".concat(this.short_type)},get prefix(){return"".concat(this.short_type).concat(this.minor_version)},get library(){return"".concat(this.type)},syncWithLibrarySemVer:"minor",get description(){return'<a href="http://quasar.dev/">'.concat(this.name,"</a> components. Some samples are from ").concat(this.name," documentation and based on ").concat(this.short_name," ").concat(this.version,".")},author:"Pinegrow",get author_link(){return"http://github.com/pinegrow/".concat(this.type,"-plugin")},get default(){return this.pgf_type&&this.pgf_type.activated_by_default||!1},get show_in_manager(){return!1},skip_opening_new_pages_created_from_templates:!0,show_templates_only_inside_projects:!0,get simple(){return this.pgf_type&&this.pgf_type.simple||!1},ignore_css_files:[/(^|\/)quasar\.(css)/i,/(^|\/)quasar\.min\.(css)/i,/(^|\/)materialdesignicons\.(css)/i,/(^|\/)materialdesignicons\.min\.(css)/i],detect_async:function(t,e){t.stylesheetsThatContain(/quasar\sv3/i,/quasar(\.min|)\.(css)/i,(function(t){e(t.length>0)}))}}},161:(t,e,i)=>{"use strict";i.d(e,{D:()=>f});for(var n=i(290),s=i(506),r=[{key:"",name:"Distribute"},{key:"-auto",name:"Auto"},{key:"-grow",name:"Grow"},{key:"-shrink",name:"Shrink"}],o=[],a=[{key:"-first",name:"First"},{key:"-last",name:"Last"},{key:"-none",name:"None"}],l=[{key:"-grow",name:"Grow"}],c=[{key:"-shrink",name:"Shrink"}],h=[{key:"-start",name:"Start"},{key:"-end",name:"End"},{key:"-center",name:"Center"},{key:"-baseline",name:"Baseline"},{key:"-stretch",name:"Stretch"}],u=0;u<=s.XL;u++)0==u||r.push({key:"-"+u,name:u}),u!=s.XL&&o.push({key:"-"+u,name:u});var p=function(t){return t.parent&&t.parent.isSelector(".flex")},d=function(t){return!(!t.parent||!(t.parent.isSelector(".row")&&!t.hasClass("row")||t.parent.isSelector(".column")||!t.hasClass("column")&&(0,s.t3)(t.parent)))},f=function(t){return function(){var e,i,u=[],f={field_prefix:"".concat(t,"_col"),class_prefix:"col",values:r,name:"Size"},m={field_prefix:"".concat(t,"_offset"),class_prefix:"offset",values:o,name:"Offset"},g={field_prefix:"".concat(t,"_order"),class_prefix:"order",values:a,name:"Order"},y={field_prefix:"".concat(t,"_align"),class_prefix:"self",values:h,name:"Align self"};return"column"===t?u.push(f,m,g,y):u.push(m,g,{field_prefix:"".concat(t,"_grow"),class_prefix:"col",values:l,name:"Grow"},{field_prefix:"".concat(t,"_shrink"),class_prefix:"col",values:c,name:"Shrink"},y),{name:"column"===t?"Column":"Flex Child",show_if:"column"===t?d:p,fields:n({},"".concat(t,"_control'"),{type:"custom",name:"".concat(t,"_control'"),action:"none",control:(e="".concat(t,"_span'"),i=u,function(){var t=new PgCustomPropertyControl(s.O4+e);t.onDefine=function(){for(var t=0;t<i.length;t++)for(var e=0;e<s.J7.length;e++){var r=s.O4+i[t].field_prefix+"."+s.J7[e];this.registerInputField(r,n(i[t],s.J7[e]))}},t.onShow=function(){var t=$("<table/>",{class:"grid-control columns-control seven-col-grid"}),e="<td></td>";s.J7.forEach((function(t){e+='<td><label class="grid-control-size">'+t+"</label></td>"}));for(var r=$("<tr/>").html(e).appendTo(t),o=0;o<i.length;o++){r=$("<tr/>",{class:""}).appendTo(t);for(var a=$("<td/>").html('<label style="text-align:left">'+i[o].name+"</label>").appendTo(r),l=0;l<s.J7.length;l++){a=$("<td/>").appendTo(r);var c=s.O4+i[o].field_prefix+"."+s.J7[l];this.showInputField(a,c,n(i[o],s.J7[l]))}}return t},t.onSetValues=function(){};var n=function(t,e){var i=e==s.Ff?"":"-"+e,n=t.class_prefix+i,r={type:"select",name:null,action:"apply_class",draggable_list:!0,show_empty:!0,options:[],on_changed:function(t,e,i){t.setData(s.O4+"was-column",!0)}};return t.values.forEach((function(t){r.options.push({key:n+t.key,name:t.name})})),r};return t})})}}}},855:(t,e,i)=>{"use strict";i.d(e,{M:()=>r});var n=i(991),s=i(259),r=new PgFramework(n.Yr.key,n.Yr.name);r.type=n.Yr.type,r.allow_single_type=n.Yr.allow_single_type,r.description=n.Yr.description,r.author=n.Yr.author,r.author_link=n.Yr.author_link,r.info_badge=n.Yr.info_badge,r.default=n.Yr.default,r.show_in_manager=n.Yr.show_in_manager,r.ignore_css_files=n.Yr.ignore_css_files,r.detect_async=n.Yr.detect_async,r.setScriptFileByScriptTagId("plugin-".concat(n.Yr.scriptTagId,"-").concat(n.Yr.major_version,"-mt")),r.skip_opening_new_pages_created_from_templates=n.Yr.skip_opening_new_pages_created_from_templates,r.show_templates_only_inside_projects=n.Yr.show_templates_only_inside_projects,r.super_web_types=s.c,r.no_prop_section_subtitles=n.Yr.no_prop_section_subtitles,pinegrow.addFramework(r,3)},506:(t,e,i)=>{"use strict";i.d(e,{r2:()=>c,e9:()=>S,bm:()=>b,MS:()=>n.M,ac:()=>k,of:()=>w,Cw:()=>v,t3:()=>h,qV:()=>x,XL:()=>u,vz:()=>_,O4:()=>o,Ff:()=>f,J7:()=>p});for(var n=i(855),s=i(869),r=i(991),o=r.Yr.prefix,a=r.Yr.simple,l=r.Yr.short_name,c=(r.Yr.key,function(t){a||n.M.addLibSection(t)}),h=function(t){if("div"==t.tagName){if(t.parent&&t.parent.isSelector(".row")&&!t.hasClass("row"))return!0;if(t.getData(o+"was-column"))return!0}var e=t.getAttr("class");return!(!e||!e.match(/(\s|^)col($|[\-\s])/i))},u=parseInt(pinegrow.getSetting("quasar-col-num","12"))||12,p=["xs","sm","md","lg","xl"],d=[0,600,1024,1440,1920],f=p[0],m={},g=0;g<p.length;g++)m[p[g]]=d[g];var y=function(t,e,i){var n=new PgFrameworkHelpers("Quasar",t,e,i,PgBSMenuPointColumnSize);n.getCodeForLarge=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},n.getCodeForSmall=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper d-block d-sm-none" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper visible-xs visible-xs-block" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},n.getClassForSize=function(e,i,n){return null==n?n="":n+="",i+(e==t.size_for_all?"":"-"+e)+(n.length?"-"+n:"")},n.getColumnSizes=function(e){var i=new RegExp("^col(\\-("+t.sizes.join("|")+"))?(\\-([0-9]+|auto))?"),n={};return(e instanceof pgParserNode?e.getClasses():e.classList).forEach((function(e){var s=e.match(i);if(s){var r=s[2]||t.size_for_all,o=s[4]||"";n[r]=o}})),n},new PgDelayedTasks,n.makeFieldLabelForSize=function(t,e){return'<span class="sc-label">'+t+'</span><span class="sc-device-size" style="padding:6px">'+e+"</span>"},n.getDevicesControlFactory=function(e,i,n){var s=function(i){t.sizes.forEach((function(n){i(n,n==t.size_for_all?"":"-"+n,t.prefix+e+"."+n)}))};return function(){var r=new PgCustomPropertyControl(t.prefix+e);return r.onDefine=function(){s((function(t,e,i){var s=n(t,e);r.registerInputField(i,s)}))},r.onShow=function(){var t=$("<div/>",{class:"sc-device-control"});return $('<div class="sc-device-control-title">'+i+"</div>").appendTo(t),s((function(e,i,s){var o=n(e,i);r.showInputField(t,s,o).$field.attr("data-device-size",e)})),t},r.onSetValues=function(e){var i=!0;s((function(e,n,s){var o=r.get$Field(s);r.values[s]?(o.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1)):o.removeClass("sc-has-value")})),i?r.$element.addClass("sc-none-or-all"):r.$element.removeClass("sc-none-or-all")},r}};var s={};n.onSectionWithDevicesControlsShown=function(e,i){var r=n,o={},a=!0;t.sizes.forEach((function(t){s[e.section_key]&&s[e.section_key][t]&&(o[t]=!0)}));var l=i.$content.get(0).querySelectorAll("[data-device-size]");l.forEach((function(t){var e=t.getAttribute("data-device-size");if(!o[e]){var i=t.classList.contains("sc-has-value");o[e]=i,a=a&&!i}})),a&&(o[t.size_for_all]=!0),l.forEach((function(t){var e=t.getAttribute("data-device-size"),i=t.getAttribute("data-device-display")||"flex";o[e]?pgShow(t,i):pgHide(t)}));var c='<ul class="sc-device-selector">';t.sizes.forEach((function(t){c+='<li data-size="'+t+'" class="'+(o[t]?"sc-active":"")+'">'+t+"</li>"})),c+="</ul>";var h=$(c);i.$title.append(h),h.on("click","li",(function(t){t.preventDefault(),t.stopPropagation();var n=$(this),r=n.attr("data-size"),a=n.hasClass("sc-active");a=!a,o[r]=a,a||1!=h.find("li.sc-active").length?(s[e.section_key]||(s[e.section_key]={}),s[e.section_key][r]=a,i.$content.find('[data-device-size="'+r+'"]').each((function(t,e){var i=e.getAttribute("data-device-display")||"flex";a?(pg$Show($(e),i),n.addClass("sc-active")):(pg$Hide($(e)),n.removeClass("sc-active"))})),p()):pinegrow.showQuickError("At least one device size must be active.")}));var u,p=function(){var e=0,n=!1;t.sizes.forEach((function(i){o[i]&&(e++,i==t.size_for_all&&(n=!0))}));var s=i.$content.find(".sc-device-control");e>1?s.removeClass("sc-single-size"):s.addClass("sc-single-size"),n?s.addClass("sc-for-all-shown"):s.removeClass("sc-for-all-shown")};u=pinegrow.getSelectedPage(),l.forEach((function(t){var e=t.getAttribute("data-device-size");r.isSizeVisible(u,e)?t.classList.remove("sc-size-not-visible"):t.classList.add("sc-size-not-visible")})),h.children().each((function(t,e){var i=e.getAttribute("data-size");r.isSizeVisible(u,i)?e.classList.remove("sc-size-not-visible"):e.classList.add("sc-size-not-visible")})),p()};var r=["a","x","y","t","r","b","l"],a=["none","xs","sm","md","lg","xl","auto"],l={},c={},h=function(t){if(!t)return null;var e=t.split("-");return e.length>1?e[e.length-1]:""},u=function(t,e,i,n,s,r){var o=s[n+r];return o?t+e+("xs"!=i?"-"+i:"")+"-"+h(o):null},d=function(t,e,i,n,s,o){for(var a=3;a<r.length;a++)if(t.removeClass(s[n+r[a]]),r[a]!=o){var c=l[i][e+r[a]],h=u(e,r[a],i,n,s,"a");s[n+r[a]]=h,c.setValue(h)}},m=function(t,e,i,n){return n?t+e+("xs"!=i?"-"+i:"")+"-"+n:null},g=function(t,e,i){var n=$(t.target).closest(".change-all-icon");if(n.toggleClass("active"),n.hasClass("active")){var s=n.data("size");!function(t,e,i,n,s,o){var l=n+"."+i+"."+e,c=pinegrow.getCollectionForElement(t);pinegrow.makeChanges(c,"Set spacing",(function(){c.forEachElement((function(t){for(var n=!1,o=0;o<r.length;o++){for(var c=0;c<a.length;c++){var h=m(e,r[o],i,a[c]);if(t.hasClass(h)){t.removeClass(h);var u=e+"a"+("xs"!=i?"-"+i:"")+"-"+a[c];t.addClass(u),s[l+"a"]=u,d(t,e,i,l,s,r[o]),n=!0;break}}if(n)break}}))}))}(i.obj,e,s,i.control_id,i.values)}};n.getDevicesMarginAndPaddingControlFactory=function(e,i){var n=["q-m","q-p"],s=function(i){t.sizes.forEach((function(n){i(n,n==t.size_for_all?"":"-"+n,t.prefix+e+"."+n)}))};return function(){var o=new PgCustomPropertyControl(t.prefix+e);return o.onDefine=function(){s((function(t,e,s){for(var a=0;a<n.length;a++)for(var l=0;l<r.length;l++){var c=i(t,n[a],r[l],e),h=s+"."+n[a]+r[l];o.registerInputField(h,c)}}))},o.onShow=function(){var t,e,n,r=$('<div class="crsa-css-gui bs4-margin-and-padding"></div>'),a=this,h="",u="";return s((function(s,p,d){var f=$('<div class="margin-and-padding-container text-center" data-device-size="'+s+'"></div>').appendTo(r);$("<label/>",{class:"size-label"}).html('<span class="sc-device-size">'+s+"</span>").appendTo(f),l[s]={},c[s]={},t=i(s,h="q-m",u="t",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="l",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e;var m=$('<div class="margin-border"></div>').appendTo(f),y=$('<div class="change-all-margin-icon change-all-icon"> <i class="icon-same"></i> </div>').appendTo(m);c[s]["q-m"]=y,y.data("size",s),y.on("click",(function(t){g(t,"q-m",a)}));var b=$('<div class="padding-container"></div>').appendTo(m);t=i(s,h="q-p",u="t",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="l",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e;var v=$('<div class="padding-border"> <div class="change-all-padding-icon change-all-icon"><i class="icon-same"></i></div> </div>').appendTo(b).find("> .change-all-icon");c[s]["q-p"]=v,v.data("size",s),v.on("click",(function(t){g(t,"q-p",a)})),t=i(s,h,u="r",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="b",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h="q-m",u="r",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="b",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e})),r},o.onSetValues=function(e){var i=!0;s((function(e,n,s){!function(t,e,i){for(var n=["q-p","q-m"],s=["t","r","l","b"],r=function(t){for(var e=i+"."+t,n=["a","x","y"],s=[],r=0;r<n.length;r++){var a=n[r],l=o.values[e+a];if(l){var c=l.split("-");s.push({direction:a,value:c[c.length-1]})}}return s.length>0?s:null},a=function(t,i,n){return t+i+(e?"-"+e:"")+"-"+n},h=function(t,e){if("a"==e)return!0;if("x"==e){if(["r","l"].indexOf(t)>-1)return!0}else if("y"==e&&["t","b"].indexOf(t)>-1)return!0;return!1},u=0;u<n.length;u++){var p=n[u],d=r(p),f=c[t][p];if(d&&d.length>0)for(var m=0;m<d.length;m++){for(var g=d[m],y=g.value,b=g.direction,v=0;v<s.length;v++){var w=s[v];if(h(w,b)){var k=i+"."+p+w;if(!o.values[k]){var _=l[t][p+w],x=a(p,w,y);o.values[k]=x,_.setValue(x)}}}if("a"==g.direction){f.addClass("active");break}}else f.removeClass("active")}}(e,n,s);var r=o.$element.find('> [data-device-size="'+e+'"]');!function(t){for(var e=["q-m","q-p"],i=["t","l","r","b"],n=0;n<e.length;n++)for(var s=e[n],r=0;r<i.length;r++){var a=t+"."+s+i[r];if(o.values[a])return!0}return!1}(s)?r.removeClass("sc-has-value"):(r.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1))})),i?o.$element.addClass("sc-none-or-all"):o.$element.removeClass("sc-none-or-all")},o}},n.getSpacingControl=function(){return n.getDevicesMarginAndPaddingControlFactory("margin.padding",(function(e,i,n,s){var o={type:"select",name:null,placeholder:n,show_empty:!0,options:function(){var t=i+n+s+"-",e=[];return a.forEach((function(i){e.push({key:t+i,name:i,num:i})})),e},action:"custom",draggable_list:!0,async_options_function:!0,fill_list_on_open:!0,more_prop:{size:e,type:i,direction:n},get_value:function(e,i,n,s){for(var r=s.options(),o=0;o<r.length;o++)if(e.hasClass(r[o].key))return r[o].key;var a=s.more_prop.size,l=s.more_prop.type,c=s.more_prop.direction;if(c&&"a"!=c&&"x"!=c&&"y"!=c){var h=t.prefix+"margin.padding."+a+"."+l;if(n[h+"a"]){var p=u(l,c,a,h,n,"a");return n[h+c]=p,p}if("r"==c||"l"==c){if(n[h+"x"])return p=u(l,c,a,h,n,"x"),n[h+c]=p,p}else if(("t"==c||"b"==c)&&n[h+"y"])return p=u(l,c,a,h,n,"y"),n[h+c]=p,p}return""},set_value:function(e,i,n,s,o,a){var l=a.options();$.each(l,(function(t,n){if(n.key==i)return!0;e.hasClass(n.key)&&e.removeClass(n.key)}));var u=a.more_prop.size,p=a.more_prop.type,f=a.more_prop.direction,g=t.prefix+"margin.padding.";if(c[u][p].hasClass("active")||function(t,e,i,n,s,o){for(var a=h(o),l=!0,c=3;c<r.length;c++)if(r[c]!=s){var u=e+r[c]+("xs"!=i?"-"+i:"")+"-"+a;if(!t.hasClass(u)){l=!1;break}}return l}(e,p,u,0,f,i)){var y=g+u+"."+p,b=m(p,"a",u,h(s)),v=m(p,"a",u,h(i));e.removeClass(b);for(var w=0;w<r.length;w++){var k;k=h(r[w]==f?s:i);var _=p+r[w]+("xs"!=u?"-"+u:"")+"-"+k;e.removeClass(_)}e.addClass(v),n[y+"a"]=v,d(e,p,u,y,n,f)}else{var x=n[(y=g+u+"."+p)+f];for(n[y+f]="",e.removeClass(x),e.removeClass(n[y+"a"]),n[y+"a"]="",w=3;w<r.length;w++)r[w]!=f&&e.addClass(n[y+r[w]]);e.addClass(i)}return i}};return o}))};var y=["","x","y"],b=["xs","sm","md","lg","xl"],v={},w=function(t,e,i,n){return"q-".concat("column"===n?"col-":"","gutter")+(e||"")+(t?"-".concat(t):"")+"-"+i};return n.getDevicesRowGapControlFactory=function(t,e,i){var n=y,s=b,r=function(e){p.forEach((function(i){e(i,i==f?"":"-"+i,o+t+"."+i)}))};return function(){var a=new PgCustomPropertyControl(o+t);return a.onDefine=function(){r((function(t,e,s){for(var r=0;r<n.length;r++){var o=i(t,n[r],e),l=s+"."+n[r];a.registerInputField(l,o)}}))},a.onShow=function(){var t,e,n,s=$('<div class="bs5-row-gap sc-device-control sc-single-size"></div>'),o=($('<div class="sc-device-control-title"></div>').appendTo(s),"");return r((function(r,l,c){var h=$('<div class="row-gap-container" data-device-size="'+r+'"></div>').appendTo(s),u=($("<label/>",{class:"size-label"}).html('<span class="sc-label"></span><span class="sc-device-size">'+r+"</span>").appendTo(h),$('<div class="main-row-gap-container"></div>').appendTo(h));v[r]={};var p=$('<div class="row-gap-fields-container"></div>').appendTo(u),d=$("<div></div>").appendTo(p);t=i(r,o="x",l),n=c+"."+o,(e=a.showInputField(d,n,t)).$field.addClass(""),v[r][o]=e;var f=$("<div></div>").appendTo(p);t=i(r,o="y",l),n=c+"."+o,(e=a.showInputField(f,n,t)).$field.addClass(""),v[r][o]=e})),s},a.onSetValues=function(t){var i=!0;r((function(t,r,o){var l=a.$element.find('> [data-device-size="'+t+'"]');!function(t,i){for(var r=0;r<n.length;r++)for(var o=n[r],a=0;a<s.length;a++){var l=s[a];if(t.hasClass(w(o,i,l,e)))return!0}return!1}(a.obj,r)?l.removeClass("sc-has-value"):(l.addClass("sc-has-value"),t!=f&&(i=!1))})),i?a.$element.addClass("sc-none-or-all"):a.$element.removeClass("sc-none-or-all")},a}},n.getGappingControl=function(t){return n.getDevicesRowGapControlFactory("".concat(t,".row.rowGap"),t,(function(e,i,n){var s=b,r={type:"select",name:null,placeholder:i,show_empty:!0,options:function(){for(var e=[],r=0;r<s.length;r++){var o=s[r];e.push({key:w(i,n,o,t),name:o,num:o})}return e},action:"custom",async_options_function:!0,more_prop:{size:e,direction:i},get_value:function(e,i,n,r){for(var o=r.options(),a=0;a<o.length;a++)if(e.hasClass(o[a].key))return o[a].key;var l=r.more_prop.size,c=r.more_prop.direction,h=l==f?"":"-"+l;for(a=0;a<s.length;a++){var u=s[a],p=w("",h,u,t);if(e.hasClass(p))return w(c,h,u,t)}return null},set_value:function(e,i,n,r,o,a){var l=a.options();$.each(l,(function(t,n){if(n.key==i)return!0;e.hasClass(n.key)&&e.removeClass(n.key)}));for(var c=a.more_prop.size,h=a.more_prop.direction,u="x"===h?"y":"x",p=c==f?"":"-"+c,d=!0,m=0;m<s.length;m++){var g=s[m],y=w("",p,g,t);e.hasClass(y)&&(e.removeClass(y),e.addClass(w(u,p,g,t)))}var b=function(t,e,i,n){return t?t.replace("q-".concat("column"===n?"col-":"","gutter")+(i||"")+(e?"-".concat(e):"")+"-",""):null}(i,h,p,t),v=w(u,p,b,t);return e.hasClass(v)&&(e.removeClass(v),e.addClass(w("",p,b,t)),d=!1),d&&e.addClass(i),i}};return r}))},n.init(),n}({num_columns:u,sizes:p,sizes_breakpoints:d,sizes_breakpoints_map:m,sizes_view_sizes:[375,960,1280,1920,2560],sizes_icons:["icon-Xs","icon-IPAD","icon-tableta-lezeca","icon-ikone100--copy_laptop","icon-Lg"],size_for_all:f,sizes_names:["All","Small","Medium","Large","Extra Large"],prefix:o,col_prefix_class:"col",isColumn:h,onClickOnColumnPoint:function(){var t=this;Promise.resolve().then(i.bind(i,813)).then((function(e){var i=e.def_all;try{PgQuickProperties([i.sections[t.options.prefix+"columns"]],t.menu.pgel,t.$element,"Column size & order",300)}catch(t){}}))},version_name:"".concat(l," ").concat(s.Fq),reqVersion:s.N$,skipVersion:s.Zo,framework_prefix:o,container_selector:".container,.container-fluid",grid_container_selector:"row",style:"",no_include_local_question:!0,createDisplayHelpers:!1,showGridInMenu:!1,showColumnInMenu:!1},n.M,r.Yr.minor_version),b=new PgToggleButtonMaker,v=y.getSpacingControl,w=y.getGappingControl,k=(y.executeScriptInPageDelayed,y.getDevicesControlFactory),_=y.onSectionWithDevicesControlsShown,x=y.makeFieldLabelForSize,S=function(t){return y.addPrefixToSectionsAndFields(t)};n.M.on_get_menu_points=function(t,e,i,n){y.getMenuPoints(t,e,i,n)},n.M.on_page_view_resized=function(t,e){y.onPageViewResized(t,e)},n.M.on_get_device_sizes=function(t,e){y.getDeviceSizesForPageViewMenu(t,e),!1!==r.fh&&t.setAllBreakpoints(e.filter((function(t){return t.w_range[0]})).map((function(t){return"".concat(t.w_range[0],"px")})))},n.M.on_page_shown_in_live_view=function(t,e){y.show(e)},n.M.on_get_floating_tools_sections=function(t,e){if(!floating_sections){floating_sections=[];var i=function(t){for(var e=["border","border-top","border-end","border-bottom","border-start"],i=!1,n=0;n<e.length;n++)if(t.hasClass(e[n])){i=!0;break}i||t.addClass("border")},s=new PgFloatingToolsSection(o+"border","Border");s.addControl(getControl("bsborders","bordercolor",{on_before_set:i,label:'<i class="icon icon-Pin20"></i>',buttons:!1,submenu:{name:"Border sides",all_classes:["border","border-top","border-end","border-bottom","border-start","border-0","border-top-0","border-end-0","border-bottom-0","border-start-0"],combine_with_parent:!0,items:[{key:"border",name:"All sides"},{key:"border-top",name:"Top"},{key:"border-end",name:"End"},{key:"border-bottom",name:"Bottom"},{key:"border-start",name:"Start"},{key:"border-bottom border-top",name:"Top & Bottom"},{key:"border-start border-end",name:"Start & End"}]},on_get_current_value_label:function(t,e){for(var i=n.M.bsGetBorderColorOptions(""),s=0;s<i.length;s++)if(t.classes.indexOf(i[s].key)>=0)return i[s].html;return this.options.label}})),s.addControl(getControl("bsborders","widthbotder",{on_before_set:i,name:"Border width",label:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="bi bi-border-width" viewBox="0 0 16 16">\n <path d="M0 3.5A.5.5 0 0 1 .5 3h15a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2zm0 5A.5.5 0 0 1 .5 8h15a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-1zm0 4a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>\n </svg>'}));var r=getControl("bsborders","raduisborder",{label:'<i class="icon icon-round_lu"></i>',buttons:!1});r.def.options=[{key:"rounded",name:"All sides"},{key:"rounded-0",name:"All sides none"},{key:"rounded-1",name:"All sides small"},{key:"rounded-2",name:"All sides medium"},{key:"rounded-3",name:"All sides large"},{key:"rounded-top",name:"Top"},{key:"rounded-bottom",name:"Bottom"},{key:"rounded-start",name:"Left"},{key:"rounded-end",name:"Right"},{key:"rounded-circle",name:"Circle"},{key:"rounded-pill",name:"Pill"}],s.addControl(r),floating_sections.push(s);var a=[{key:"justify-content-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"justify-content-end",name:"End",html:b.makeIcon("218",{attributes:{title:"End"}})},{key:"justify-content-center",name:"Center",html:b.makeIcon("219",{attributes:{title:"Center"}})},{key:"justify-content-between",name:"Between",html:b.makeIcon("206",{attributes:{title:"Between"}})},{key:"justify-content-around",name:"Around",html:b.makeIcon("205",{attributes:{title:"Around"}})},{key:"justify-content-evenly",name:"Evenly",html:b.makeIcon("205",{attributes:{title:"Evenly"}})}],l=[{key:"align-items-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"align-items-end",name:"End",html:b.makeIcon("220",{attributes:{title:"End"}})},{key:"align-items-center",name:"Center",html:b.makeIcon("221",{attributes:{title:"Center"}})},{key:"align-items-baseline",name:"Baseline",html:b.makeIcon("212",{attributes:{title:"Baseline"}})},{key:"align-items-stretch",name:"Stretch",html:b.makeIcon("214",{attributes:{title:"Stretch"}})}],c=function(t,e,i,n){var s=new PgApi,r=s.getFlexSettings(t);if(r.grid)return pinegrow.showQuickError("The element uses CSS Grid to position its children. Use the grid properties for the layout."),!1;var o=[],c=[];r.flex||o.push(r.inline?"d-inline-flex":"d-flex");var h=i,u=e[0];return"column"===r.direction&&(u=u.replace(h,n),h=n),c="align-items-"===h?l.map((function(t){return t.key})):a.map((function(t){return t.key})),c.filter((function(e){return s.hasClass(t,e)})),o.push(u),s.removeClass(t,c),s.addClass(t,o),!1},h=new PgFloatingToolsSection(o+"align","Align content");h.addControl(new PgFloatingToolsControl({key:o+"align.h",type:"select",name:"Align children horizontally w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:a},{label:'<i class="icon icon-219"></i>',on_before_set:function(t,e){return c(t,e,"justify-content-","align-items-")}})),h.addControl(new PgFloatingToolsControl({key:o+"align.v",type:"select",name:"Align children vertically w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:l},{label:'<i class="icon icon-221"></i>',on_before_set:function(t,e){return c(t,e,"align-items-","justify-content-")}}))}},n.M.on_plugin_activated=function(t,e){y.onFrameworkActivatedOnPage(t),e&&e(n.M)},n.M.on_page_changes_done=function(t,e,i){y.updateHelpersAfterChange(t,e,i)},n.M.on_inline_editing_done=function(t,e){y.updateHelpersAfterChange(t,null,new PgCollection(e))},n.M.on_page_selected=function(t){t&&(0,s.EB)(t)};var C=function(t,e){return e?"pg-classes"!==t&&!t.startsWith(o):!!t.startsWith(o)};n.M.on_before_properties_shown=function(t,e,i){t&&!t.data["".concat(r.Yr.type,"Version")]&&(0,s.EB)(t),r.hC&&e&&(i.show_classes_control=!0,i.show_section_nav_control=!0,i.filter_sections=C,i.show_custom_sections_in_general=!0)};var T=[{name:"Text color and typography",sections:[o+"textcolor",o+"typography"],icon:"icon-Pin18"},{name:"Background",sections:[o+"background"],icon:"icon-Pin21"},{name:"Margin, padding and dimension",sections:[o+"spacing",o+"dimension"],icon:"icon-Pin16"},{name:"Visibility and position",sections:[o+"visibility",o+"position",o+"overflow",o+"mouse"],icon:"icon-Pin17"},{name:"Shadows",sections:[o+"elevation"],icon:"icon-Pin23"},{name:"Border",sections:[o+"border"],icon:"icon-Pin20"},{name:"Flexbox",sections:[o+"flexcontainer",o+"columns"],icon:"icon-Pin22"},{name:"Transform and transition",sections:[o+"transform"],icon:"icon-Pin24"}];n.M.on_get_sections_for_prop_section_nav=function(t,e){r.hC&&T.forEach((function(t){t.ignore_has_data=!0,e.find((function(e){return e.name===t.name}))||e.push(t)}))}},525:(t,e,i)=>{"use strict";i.r(e);var n=i(855),s=(i(869),i(506)),r=i(681),o=i(297),a=i(100),l=i(870),c=i(611),h=i(230),u=i(421),p=i(660),d=i(991);function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=p(t);if(e){var s=p(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return u(this,i)}}var m=function(t){h(i,t);var e=f(i);function i(t){return a(this,i),e.call(this,"quasar.colors",t,(function(){return""}))}return l(i,[{key:"onGetConfigObject",value:function(t,e){"init"===t&&(e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.colors=e.theme.extend.colors||{},this.colors.forEachColor((function(t,i,n){try{if(n.hasShades()){var s={};n.forEachShade((function(t,e){s[t]=chroma(pgMakeCompatibleColor(e)).hex()})),e.theme.extend.colors[t]=s}else e.theme.extend.colors[t]=chroma(pgMakeCompatibleColor(i)).hex()}catch(t){}})))}},{key:"populateDefaultParams",value:function(t){t||this.colors.clear(),this.colors.add("primary","#6750a4",!1,{50:"#eeedf4",100:"#d8d1e6",200:"#c2b6d9",300:"#ac9ccc",400:"#9582bf",500:"#7e68b1",600:"#6750a4",700:"#5e4996",800:"#564388",900:"#4d3c7b",950:"#45366e",DEFAULT:"#3d2f61"},!0),this.colors.add("secondary","#625b71",!1,{50:"#eeeeef",100:"#d5d4d9",200:"#bdbac3",300:"#a6a1ae",400:"#8e8999",500:"#787285",600:"#625b71",700:"#5a5367",800:"#524c5e",900:"#4a4455",950:"#423d4c",DEFAULT:"#3a3643"},!0),this.colors.add("tertiary","#7d5260",!1,{50:"#f0edee",100:"#ddd2d5",200:"#c9b7bc",300:"#b69da4",400:"#a3838d",500:"#906a76",600:"#7d5260",700:"#724b58",800:"#684450",900:"#5e3e48",950:"#543740",DEFAULT:"#4a3139"},!0),this.colors.add("success","#2e7d32",!0,{50:"#ecf0ec",100:"#cdddcb",200:"#aec9ab",300:"#90b68c",400:"#71a36d",500:"#519050",600:"#2e7d32",700:"#2a722e",800:"#26682a",900:"#235e26",950:"#1f5422",DEFAULT:"#519050"},!0),this.colors.add("warning","#ed6c02",!0,{50:"#fcefeb",100:"#ffd9c7",200:"#ffc4a4",300:"#ffae7f",400:"#fb985c",500:"#f58238",600:"#ed6c02",700:"#d96302",800:"#c55a02",900:"#b25102",950:"#9f4801",DEFAULT:"#f58238"},!0),this.colors.add("error","#d32f2f",!0,{50:"#f9ecec",100:"#f9cfca",200:"#f6b2a9",300:"#f19488",400:"#e97669",500:"#df564c",600:"#d32f2f",700:"#c12b2b",800:"#b02727",900:"#9e2323",950:"#8d2020",DEFAULT:"#df564c"},!0),this.colors.add("info","#0288d1",!0,{50:"#ebf1f9",100:"#d0dff2",200:"#b4ccec",300:"#96bbe5",400:"#76a9df",500:"#5098d8",600:"#0288d1",700:"#027cbf",800:"#0271ae",900:"#02669d",950:"#015b8c",DEFAULT:"#5098d8"},!0),this.colors.add("neutral","#121212",!0,{50:"#ebebeb",100:"#c2c2c2",200:"#9b9b9b",300:"#757575",400:"#525252",500:"#303030",600:"#121212",700:"#111111",800:"#0f0f0f",900:"#0e0e0e",950:"#0c0c0c",DEFAULT:"#0b0b0b"},!0),c(p(i.prototype),"populateDefaultParams",this).call(this)}}]),i}(PgDmDesignSkillColors),g=function(t){h(i,t);var e=f(i);function i(t){var n;return a(this,i),(n=e.call(this,"quasar","Quasar Design")).framework=t,o(n),n.on_engine_ready_funcs=[],n.colors=new PgDmDesignColors,n.colors.can_edit=!0,n.colors.mode="class",n.colors.default_shades=["50","100","200","300","400","500","600","700","800","900","950","DEFAULT"],n.setDefaultSettings(),n.addSkills(),n}return l(i,[{key:"addSkills",value:function(){var t=new m(this.colors);this.addSkill(t),this.fonts_skill=new y,this.addSkill(this.fonts_skill),this.bck_skill=new PgDmDesignSkillBackground(t,"VUETIFY"),this.bck_skill.onGetConfigObject=function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.backgroundImage=e.theme.extend.backgroundImage||{};var i=this.getBackgroundImagesAsObject();$.each(i,(function(t,i){e.theme.extend.backgroundImage[t]=i}))}},this.addSkill(this.bck_skill)}},{key:"getActiveFonts",value:function(){return this.fonts_skill.getActiveFonts()}},{key:"canEditColors",value:function(){return!0}},{key:"supportsColorShades",value:function(){return!0}},{key:"getEngine",value:function(t){var e=this;this.engine?this.engine.isReady()?t(this.engine):e.on_engine_ready_funcs.push(t):this.engine=new b((function(i){e.on_engine_ready_funcs.forEach((function(t){t(i)})),e.on_engine_ready_funcs=[],t&&t(i)}),this)}},{key:"hasOnlyDefaultColors",value:function(){var t=["primary","secondary","tertiary","success","warning","error","info","neutral"];if(t.length!==this.colors.getNumberOfColors())return!1;var e=0,i=this;return t.forEach((function(t){i.colors.getColorObject(t)&&e++})),e===t.length}},{key:"onBeforeSurpriseMe",value:function(t){t()}},{key:"onGetDesignThumbHTML",value:function(t,e){e.fonts=this.fonts_skill.getDesignThumbHTML(t)}},{key:"addCustomizableColors",value:function(){}},{key:"getFontsOptions",value:function(t){return this.fonts_skill.getFontsOptions(t)}},{key:"getBackgroundImageOptions",value:function(){var t=[],e=this.bck_skill.getBackgroundImagesAsObject();return $.each(e,(function(e,i){t.push({key:"bg-"+e,name:e})})),t}},{key:"getColorOptions",value:function(t){for(var e=this.getColorsForPicker(t),i=[],n=0;n<e.length;n++)for(var s=e[n],r=0;r<s.length;r++)i.push(s[r]);return i}},{key:"getColorsForPicker",value:function(t){var e=[[{key:t+"current",name:"current",color:"white",text:"c"},{key:t+"transparent",name:"transparent",color:"rgba(0,0,0,0)"},{key:t+"black",name:"black",color:"black"},{key:t+"white",name:"white",color:"white"},{key:t+"inherit",name:"inherit",color:"rgba(0,0,0,0.5)"}]];return this.colors.getColorsForPicker(t,e)}},{key:"destroyEngine",value:function(){this.engine&&this.engine.destroy(),this.engine=null}},{key:"recreateEngine",value:function(t){this.destroyEngine(),this.getEngine(t,this)}}]),i}(PgDmDesignProvider),y=function(t){h(i,t);var e=f(i);function i(){var t;a(this,i),(t=e.call(this,"fonts","Fonts")).fixed=["sans","serif"],t.max_num=10;for(var n=o(t),s=new PgToggleButtonMaker,r=1;r<=t.max_num;r++){var l=r<=t.fixed.length?t.fixed[r-1]:null;t.addControl("name_".concat(r),{name:"Name",type:l?"hidden":"text",default_value:l,start_repeat_item:l||"Custom font ".concat(r-t.fixed.length),tw_repeat_item_index:r,repeat_item_open:null!==l,add_repeat_item_label:"Add font family",on_create_repeat_item_button:function(t){$('<button class="pg-button" style="margin-left:4px;height: 27px;vertical-align: top;">Manage fonts...</button>').appendTo(t).on("click",(function(t){t.preventDefault(),pinegrow.fontLibrary.showLibrary()}))},dm_no_lock:"placeholder",on_repeat_item_removed:function(t,e,i){e.removeClass("has-value"),pinegrow.requireProjectDB((function(t){t.startBatchUpdates();var e=i.tw_repeat_item_index;n.setParam("family_".concat(e),""),n.setParam("name_".concat(e),"");for(var s=e+1;s<=n.max_num;s++){var r=n.getParam("name_".concat(s)),o=n.getParam("family_".concat(s));(r||o)&&(n.setParam("family_".concat(s-1),o),n.setParam("name_".concat(s-1),r),n.setParam("family_".concat(s),""),n.setParam("name_".concat(s),""))}t.endBatchUpdates("Remove font family","design_panel"),pgDmStore.update()}))}}),t.addControl("family_".concat(r),{name:"Family",type:"select",show_empty:!0,fill_list_on_open:!0,can_add_items:!0,options:function(){return pinegrow.fontLibrary.getSelectOptions()}}),n.addControl("".concat(r,"_options_container"),{name:"Use for",type:"displayhtmlwithlabel",html:"",class:"crsa-field-text-font-options-container crsa-field-text-font-options-container-".concat(r),dm_no_lock:"placeholder"});for(var c=1;c<=6;c++)n.addControl("h".concat(c,"_").concat(r),{name:"H"+c,type:"select",toggle_buttons:!0,append_to:".crsa-field-text-font-options-container-".concat(r),without_text:!0,show_empty:!0,dm_no_lock:!0,options:[{key:"h"+c,name:"H"+c,html:s.makeText("H"+c,{attributes:{title:"Use for H"+c},styles:{padding:"4px 0"}})}]})}return t}return l(i,[{key:"getFontsOptions",value:function(t){for(var e=[],i=!1,n=1;n<=this.max_num;n++){var s=n<=this.fixed.length?this.fixed[n-1]:this.getParam("name_".concat(n)),r=this.getParam("family_".concat(n));s&&(n<=this.fixed.length||r)&&(e.push({key:t+s,name:s}),"mono"===s&&(i=!0))}return i||e.push({key:t+"mono",name:"mono"}),e}},{key:"getActiveFonts",value:function(){for(var t=[],e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),n=this.getParam("family_".concat(e));i&&n&&t.indexOf(n)<0&&t.push(n)}return t}},{key:"getDesignThumbHTML",value:function(t){var e=t.findOne('dmdesignskill[skill="fonts"]'),i="",n=0;if(e)for(var s=1;s<=this.max_num;s++){var r=s<=this.fixed.length?this.fixed[s-1]:e.getAttribute("name_".concat(s)),o=e.getAttribute("family_".concat(s));r&&o&&n<2&&(i+='<p style="font-family: '.concat(o.replace(/"/g,"'"),';margin: 0px 0px;white-space: nowrap;">').concat(o.replace(/["']/g,""),"</p>"),n++)}return i}},{key:"onSurpriseMe",value:function(t){for(var e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),n="family_".concat(e);if(!this.isLocked(n)&&i){var s="all";(this.getParam("h1_".concat(e))||this.getParam("h2_".concat(e)))&&(s="h1");var r=pinegrow.fontLibrary.getRandomFont(s);this.setParam(n,r.family)}}t()}},{key:"onGetCSS",value:function(t,e){if("import"===t){var i=pgDmStore.design.fonts;i.clear();for(var n=1;n<=this.max_num;n++){var s=n<=this.fixed.length?this.fixed[n-1]:this.getParam("name_".concat(n)),r=this.getParam("family_".concat(n));if(s&&r){var o={key:s,family:r};i.setFont(o)}}var a=i.getImportStatements(e),l=a.length?a.join("\n")+"\n\n":"",c=i.getFontFontFaceStatements();return l+(c.length?c.join("\n\n")+"\n\n":"")}if("rules"===t){for(var h="",u=1;u<=this.max_num;u++){var p=u<=this.fixed.length?this.fixed[u-1]:this.getParam("name_".concat(u)),d=this.getParam("family_".concat(u));if(p&&d){for(var f=[],m=1;m<=6;m++)this.getParam("h".concat(m,"_").concat(u))&&f.push("h"+m);f.length&&(h+="\n".concat(f.join(",")," {\n @apply font-").concat(p,";\n} \n"))}}return h}return""}},{key:"onGetConfigObject",value:function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.fontFamily=e.theme.extend.fontFamily||{};for(var i=1;i<=this.max_num;i++){var n=i<=this.fixed.length?this.fixed[i-1]:this.getParam("name_".concat(i)),s=this.getParam("family_".concat(i));if(n&&s){var r=pinegrow.fontLibrary.getFontByFamily(s);r&&(s=r.getFamilyWithFallback()),e.theme.extend.fontFamily[n]=[s]}}}}}]),i}(PgDmDesignSkill),b=function(t){h(i,t);var e=f(i);function i(t,n){var s;a(this,i),s=e.call(this,t);var r=o(s);if(s.design_provider=n,s.external_build=!0,s.is_ready=!1,s.done_list=[],s.delayedTasks=new PgDelayedTasks,s.busy=!1,s.update_on_done=!1,pinegrow.getCurrentProject(),s.custom_cs_url=null,s.fs=require("fs"),s.external_build){try{var l=pinegrow.app_designer.addonManager.pluginsManager.pluginsProcessed.find((function(t){return"quasar"===t.key}));l.options.cssPath&&(n.settings.external_source_url=l.options.cssPath&&crsaMakeUrlFromFile(l.options.cssPath)),n.settings.external_config_path=l.options.configPath,n.settings.external_theme_path=l.options.themePath}catch(t){}return s.is_ready=!0,setTimeout((function(){t&&t(r)}),1),u(s)}return t&&t(r),s}return l(i,[{key:"activateOnPage",value:function(t,e){e&&e()}},{key:"update",value:function(t){t&&this.done_list.push(t),this.delayedTasks.run("update",this.updateTask.bind(this),this.external_build?1:100)}},{key:"getConfigFile",value:function(){for(var t=0,e=["quasar.config.cjs","quasar.config.mjs","quasar.config.js","quasar.config.ts","quasar.config.cts","quasar.config.mts"];t<e.length;t++){var i=e[t];try{var n=pinegrow.getCurrentProject().getAbsolutePath(i);return this.fs.accessSync(n),n}catch(t){}}}},{key:"updateTask",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this,n=pinegrow.getCurrentProject(),s=pinegrow.getSelectedPage();if(!e&&!s)return i.done_list.forEach((function(t){t()})),void(i.done_list=[]);if(this.busy&&Date.now()-this.busy_time>4e3&&(this.busy=!1),this.busy)this.update_on_done=!0;else{var o={css:"",config:{},cs_url:this.custom_cs_url};pinegrow.dispatchEvent("on_dm_get_css",null,"import",o),pinegrow.dispatchEvent("on_dm_get_css",null,"init",o),o.css,o.font_urls=[];var a=null===(t=o.css)||void 0===t||null===(t=t.match(/'([^']+)'/))||void 0===t?void 0:t[1];a&&o.font_urls.push(a),o.background_urls={},Object.entries(o.config.theme.extend.backgroundImage).forEach((function(t){var e,i=r(t,2),n=i[0],s=i[1],a=null==s||null===(e=s.match(/'([^']+)'/))||void 0===e?void 0:e[1];a&&(o.background_urls[n]=a)})),o.css="",pinegrow.dispatchEvent("on_dm_get_css",null,"rules",o);try{this.external_config_path=this.design_provider.settings.external_config_path||this.getConfigFile(),this.external_theme_path=this.design_provider.settings.external_theme_path,this.external_theme_path_alt=this.external_theme_path&&!this.external_theme_path.endsWith(".mjs")?this.external_theme_path.replace(path.extname(this.external_theme_path),".mjs"):null,this.design_provider.settings.external_source_url&&(this.external_source_file=crsaMakeFileFromUrl(n.getAbsoluteUrl(this.design_provider.settings.external_source_url)));var l=this.fs.readFileSync(this.external_theme_path||this.external_config_path,{encoding:"utf8"}),c=new PgSimpleJsParser(l),h="\nconst pg_colors = ".concat(c.objToString(o.config.theme.extend.colors),"\n\nconst pg_fonts = ").concat(c.objToString(o.config.theme.extend.fontFamily)," \n\nconst pg_font_urls = ").concat(c.objToString(o.font_urls),"\n\nconst pg_backgrounds = ").concat(c.objToString(o.config.theme.extend.backgroundImage)," \n \nconst pg_background_urls = ").concat(c.objToString(o.background_urls),"\n\n ");l=pgf.uses_hot_reload?"/* Pinegrow generated Design Panel Begin */\n/* eslint-disable */\n/* prettier-disable */\n/* @ts-nocheck */\n".concat(h,"\nmodule.exports = {\npg_colors,\npg_fonts,\npg_font_urls,\npg_backgrounds,\npg_background_urls,\n}\n\n/* Pinegrow generated Design Panel End */"):pgUpdateGeneratedSectionContent(l,"Design Panel",h,"prepend"),this.fs.writeFileSync(this.external_theme_path||this.external_config_path,l,{encoding:"utf8"}),this.external_theme_path_alt&&this.fs.writeFileSync(this.external_theme_path_alt,l.replace("module.exports =","export ").replace("module.exports=","export "),{encoding:"utf8"})}catch(t){console.warn("Unable to update quasar config file and source file.",t)}setTimeout((function(){i.update_on_done?i.update():(i.done_list.forEach((function(t){t()})),i.done_list=[]),i.busy=!1,i.update_on_done=!1}),1)}}},{key:"destroy",value:function(){this.design_provider=null,this.delayedTasks.destroy()}}]),i}(PgDmEngine);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){if(e===d.Yr.key&&((0,d.EX)(i.options.themePath),!1!==i.options.themePath)){var n=null;void 0!==window.pgDmStore&&(n=window.pgDmStore);var r=new g(s.MS);n.registerDesignProvider("quasar",r),s.MS.on_dm_detect_design_providers=function(t,e){e.push("quasar")}}}));var v=i(813),w=null,k=function(t){"checkbox"===t.type&&(t.type="select",t.toggle_buttons=!0,t.options=[{key:t.value,name:t.name,html:s.bm.makeText(t.name,{attributes:{title:t.name}})}])};s.MS.on_get_floating_tools_sections=function(t,e){if(d.hC){var i=s.O4;if(!(w=null)){var n=function(t,e,n){var s,r=cloneObject(null===(s=v.def_all.sections[i+t])||void 0===s?void 0:s.fields[e]);return k(r),r.key=e,new PgFloatingToolsControl(r,n)},r=function(t,e,n){var s={name:"More",key:t,type:"select",options:[]},r={};return e.forEach((function(e){var n;r[e]=cloneObject(null===(n=v.def_all.sections[i+t])||void 0===n?void 0:n.fields[e]),k(r[e]);var o=r[e];s.options.push({key:e,name:o.name})})),(n=n||{}).buttons=!1,n.no_clear_on_first_level=!0,n.submenu=function(t){r[t].toggle_buttons&&(r[t].toggle_buttons=!1);var e="function"==typeof r[t].options?r[t].options():r[t].options;return{items:e,combine_with_parent:!1,name:r[t].name,require_submenu_selection:!0,all_classes:e.map((function(t){return t.key}))}},new PgFloatingToolsControl(s,n)};w=[];var o=new PgFloatingToolsSection(i+"text","Text color and typography");o.addControl(n("textcolor","".concat(i,"palette"),{label:'<i class="icon icon-ikone1-100-copy-63"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(n("textcolor","".concat(i,"swatches"),{label:'<i class="icon icon-ikone1-100-copy-63" style="background: linear-gradient(45deg, tomato, green)"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(n("typography","".concat(i,"typography"),{label:'<i class="icon icon-font-size"></i>'})),o.addControl(n("typography","".concat(i,"fontweight"),{label:'<i class="icon icon-weight"></i>'})),o.addControl(n("typography","".concat(i,"textalign"),{label:'<i class="icon icon-align-left"></i>'})),o.addControl(n("typography","".concat(i,"transform"),{label:'<i class="icon icon-Transform-uppercase"></i>'})),o.addControl(r("typography",["".concat(i,"whitespace"),"".concat(i,"fontstyle"),"".concat(i,"fontbold"),"".concat(i,"decoration")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(o);var a=new PgFloatingToolsSection(i+"background","Background");a.addControl(n("background","".concat(i,"bg_palette"),{label:'<i class="icon icon-Pin21"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),a.addControl(n("background","".concat(i,"bg_swatches"),{label:'<i class="icon icon-Pin21" style="background: linear-gradient(45deg, tomato, green)"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),w.push(a);var l=new PgFloatingToolsSection(i+"dimension","Dimension");l.addControl(n("dimension","".concat(i,"width"),{label:'<i class="icon icon-width"></i>'})),l.addControl(n("dimension","".concat(i,"height"),{label:'<i class="icon icon-height"></i>'})),l.addControl(r("dimension",["".concat(i,"display"),"".concat(i,"fit")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(l);var c=new PgFloatingToolsSection(i+"visibility","Visibility and position");c.addControl(n("position","".concat(i,"position_common"),{label:'<i class="icon icon-Pin17"></i>'})),c.addControl(n("position","".concat(i,"horizontal_alignment"),{label:'<i class="icon icon-template-columns"></i>'})),c.addControl(n("position","".concat(i,"vertical_alignment"),{label:'<i class="icon icon-template-rows"></i>'})),c.addControl(r("visibility",["".concat(i,"disabled"),"".concat(i,"hidden"),"".concat(i,"invisible"),"".concat(i,"readonly"),"".concat(i,"ellipsis"),"".concat(i,"zindex"),"".concat(i,"orientation"),"".concat(i,"platform_only"),"".concat(i,"print")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(c)}w.forEach((function(t){e.push(t)}))}},i(259),i(161);var _,x,S,C=new PgComponentType(s.O4+"row","Row",{selector:".row",tags:"major",preview:(x='<div style="height:60px;background:#eee;"></div>',S="border:2px solid #0098cc;",'<div class="container-fluid" style="'+(_="")+'"> <div class="row" style="'+S+'"> <div class="col-4" style="'+_+'">'+x+'</div> <div class="col-4">'+x+'</div> <div class="col-4">'+x+'</div> </div> <div class="row" style="margin-top:12px;"> <div class="col-4">'+x+'</div> <div class="col-4">'+x+'</div> <div class="col-4">'+x+"</div> </div> </div>"),code:'<div class="row"></div>',empty_placeholder:!0,action_menu:{add:[s.O4+"column"]}});s.MS.addComponentType(C);var T=new PgComponentType(s.O4+"column","Column",{tags:"major",selector:s.t3,parent_selector:".row",code:'<div class="col-md-4"><h3>Column title</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div>',empty_placeholder:!0,name:"Column"});s.MS.addComponentType(T);var A=new PgFrameworkLibSection(s.O4+"grid","Grid");A.setComponentTypes([C,T]),(0,s.r2)(A),i(17),pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===d.Yr.key&&(!1===i.options.utilities?(0,d.JF)(i.options.utilities):(0,d.JF)(!0),s.MS.utilities=d.hC)})),pinegrow.addEventHandler("on_project_closed",(function(){(0,d.JF)(!1),s.MS.utilities=d.hC}));var E,O,P,F=i(461),L=i(841),M={classes_map:{},classes_list:[],classes_changed:!1,classes_id:0,css_vars_map:{},css_vars_list:[],css_vars_id:0,css_vars_changed:!1,ids_map:{},ids_list:[],ids_changed:!1,attribute_values:{},tags_attribute_values:{},keywords_map:{},keywords_list:[],keywords_changed:!1,contents:{},meta:{},path_map:{},path_list:[],path_changed:!1,path_id:0},j=function(t,e,i){if(null!==t&&0!==t.length&&!t.startsWith("pg-main-cs-")&&"pg-empty-placeholder"!==t)if(t in M.classes_map)M.classes_map[t].count++,n=M.classes_map[t],e&&n.sources.indexOf(e)<0&&n.sources.push(e),i&&n.sourceids.indexOf(i)<0&&n.sourceids.push(i);else{M.classes_id++;var n={key:t,name:t,count:1,sources:[],sourceids:[],id:M.classes_id};M.classes_map[t]=n,M.classes_list.push(n),M.classes_changed=!0,e&&n.sources.indexOf(e)<0&&n.sources.push(e),i&&n.sourceids.indexOf(i)<0&&n.sourceids.push(i)}},z=function t(e){e&&e.nodes&&e.nodes.forEach((function(e){if("rule"===e.type){var i=e.selector.match(/\.([a-zA-Z][a-zA-Z0-9\-\_]*)/g);if(i)for(var n=0;n<i.length;n++){var s=i[n].substr(1,i[n].length-1);s.startsWith("pg-node-id")||j(s,"quasar","pquasar")}}t(e)}))},D=function(t){return(E=E||F(L.mark((function t(e){var i,n;return L.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.getAttribute("lang")||"css",t.t0=i,t.next="scss"===t.t0?4:"less"===t.t0?6:8;break;case 4:return n=PgSCSSStylesheet(),t.abrupt("break",9);case 6:return n=PgLESSStylesheet(),t.abrupt("break",9);case 8:n=PgCSSStylesheet();case 9:return t.next=11,n.loadInline(e,(function(){}));case 11:return t.abrupt("return",n);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},R=function(t){return(O=O||F(L.mark((function t(e){var i,n,s,r,o,a,l;return L.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=13;break}if(n=path.resolve(i,"node_modules","quasar","dist",e),!fs.existsSync(n)||!fs.statSync(n).isFile()){t.next=13;break}if((r=fs.readFileSync(n,{encoding:"utf8",flag:"r"})).trim()&&(s=r||""),!s){t.next=13;break}return o="<style>\n ".concat(s,"\n </style>"),a=pgCreate(o),t.next=11,D(a);case 11:l=t.sent,z(l.getRootNode());case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},B=null;!function(){(P=P||F(L.mark((function t(){return L.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,R("quasar.css");case 3:return t.next=5,R("quasar.addon.css");case 5:B=M.classes_list.map((function(t){return{key:t.key,id:t.id,name:t.name}})),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Pinegrow Quasar Module: Unable to fetch quasar classList!"),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}(),n.M.on_get_all_available_classes=function(t,e){B&&(e.classes=B)}},869:(t,e,i)=>{"use strict";i.d(e,{EB:()=>h,Fq:()=>a,N$:()=>u,Zo:()=>p});var n,s=i(855),r=i(991),o=r.Yr.minor_version,a=r.Yr.version,l=function(t){n=t,s.M.name_short="".concat(r.Yr.name)},c=pinegrow.getSetting("".concat(r.Yr.key,"-force-version"),"auto");"auto"!=c&&l(parseFloat(c));var h=function(t,e){"auto"==c?t.data["".concat(r.Yr.type,"Version")]&&!e?l(t.data["".concat(r.Yr.type,"Version")]):t.stylesheetsThatContain(/quasar\sv(5[0-9\.]*)/i,/quasar(\.min|)\.(css)/i,(function(e,i,s){if(e.length>0){var o=i[0][1].split("."),a=parseFloat(o[0]);o.length>1&&(a+=parseFloat(o[1])/10),l(a),t.data["".concat(r.Yr.type,"Version")]=a,s&&pinegrow.selectedElements.reselect(),console.log("version = "+n+" "+s)}}),e):l(parseFloat(c))},u=function(t){return n>=t},p=function(t){return n<t};l(o)}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var r=Object.create(null);s.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&i;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>i[t]));return o.default=()=>i,s.d(r,o),r},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";s.r(r);var t=s(991);$((function(){$("body").one("pinegrow-ready",(function(e,i){pgAddOnManager.isAddonActive("QUASAR")?Promise.resolve().then(s.bind(s,525)).then((function(){})):console.log("Pinegrow ".concat(t.Yr.short_name," addon is not active."))}))}))})(),r})()));
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(global,(()=>(()=>{var t,e,i={294:t=>{"use strict";function e(t,e,s){t instanceof RegExp&&(t=i(t,s)),e instanceof RegExp&&(e=i(e,s));var r=n(t,e,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+t.length,r[1]),post:s.slice(r[1]+e.length)}}function i(t,e){var i=e.match(t);return i?i[0]:null}function n(t,e,i){var n,s,r,o,a,l=i.indexOf(t),c=i.indexOf(e,l+1),h=l;if(l>=0&&c>0){if(t===e)return[l,c];for(n=[],r=i.length;h>=0&&!a;)h==l?(n.push(h),l=i.indexOf(t,h+1)):1==n.length?a=[n.pop(),c]:((s=n.pop())<r&&(r=s,o=c),c=i.indexOf(e,h+1)),h=l<c&&l>=0?l:c;n.length&&(a=[r,o])}return a}t.exports=e,e.range=n},783:t=>{"use strict";const e=/[\p{Lu}]/u,i=/[\p{Ll}]/u,n=/^[\p{Lu}](?![\p{Lu}])/gu,s=/([\p{Alpha}\p{N}_]|$)/u,r=/[_.\- ]+/,o=new RegExp("^"+r.source),a=new RegExp(r.source+s.source,"gu"),l=new RegExp("\\d+"+s.source,"gu"),c=(t,s)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(s={pascalCase:!1,preserveConsecutiveUppercase:!1,...s},0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length)return"";const r=!1===s.locale?t=>t.toLowerCase():t=>t.toLocaleLowerCase(s.locale),c=!1===s.locale?t=>t.toUpperCase():t=>t.toLocaleUpperCase(s.locale);return 1===t.length?s.pascalCase?c(t):r(t):(t!==r(t)&&(t=((t,n,s)=>{let r=!1,o=!1,a=!1;for(let l=0;l<t.length;l++){const c=t[l];r&&e.test(c)?(t=t.slice(0,l)+"-"+t.slice(l),r=!1,a=o,o=!0,l++):o&&a&&i.test(c)?(t=t.slice(0,l-1)+"-"+t.slice(l-1),a=o,o=!1,r=!0):(r=n(c)===c&&s(c)!==c,a=o,o=s(c)===c&&n(c)!==c)}return t})(t,r,c)),t=t.replace(o,""),t=s.preserveConsecutiveUppercase?((t,e)=>(n.lastIndex=0,t.replace(n,(t=>e(t)))))(t,r):r(t),s.pascalCase&&(t=c(t.charAt(0))+t.slice(1)),((t,e)=>(a.lastIndex=0,l.lastIndex=0,t.replace(a,((t,i)=>e(i))).replace(l,(t=>e(t)))))(t,c))};t.exports=c,t.exports.default=c},199:(t,e,i)=>{var n=i(294);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(s).split("\\{").join(r).split("\\}").join(o).split("\\,").join(a).split("\\.").join(l)}(t),!0).map(h)):[]};var s="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function h(t){return t.split(s).join("\\").split(r).join("{").split(o).join("}").split(a).join(",").split(l).join(".")}function u(t){if(!t)return[""];var e=[],i=n("{","}",t);if(!i)return t.split(",");var s=i.pre,r=i.body,o=i.post,a=s.split(",");a[a.length-1]+="{"+r+"}";var l=u(o);return o.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),e.push.apply(e,a),e}function p(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function m(t,e){return t>=e}function g(t,e){var i=[],s=n("{","}",t);if(!s)return[t];var r=s.pre,a=s.post.length?g(s.post,!1):[""];if(/\$$/.test(s.pre))for(var l=0;l<a.length;l++){var h=r+"{"+s.body+"}"+a[l];i.push(h)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),k=v||w,_=s.body.indexOf(",")>=0;if(!k&&!_)return s.post.match(/,.*\}/)?g(t=s.pre+"{"+s.body+o+s.post):[t];if(k)y=s.body.split(/\.\./);else if(1===(y=u(s.body)).length&&1===(y=g(y[0],!1).map(p)).length)return a.map((function(t){return s.pre+y[0]+t}));if(k){var x=c(y[0]),S=c(y[1]),T=Math.max(y[0].length,y[1].length),C=3==y.length?Math.abs(c(y[2])):1,A=f;S<x&&(C*=-1,A=m);var E=y.some(d);b=[];for(var O=x;A(O,S);O+=C){var M;if(w)"\\"===(M=String.fromCharCode(O))&&(M="");else if(M=String(O),E){var P=T-M.length;if(P>0){var F=new Array(P+1).join("0");M=O<0?"-"+F+M.slice(1):F+M}}b.push(M)}}else{b=[];for(var L=0;L<y.length;L++)b.push.apply(b,g(y[L],!1))}for(L=0;L<b.length;L++)for(l=0;l<a.length;l++)h=r+b[L]+a[l],(!e||k||h)&&i.push(h)}return i}},17:t=>{"use strict";t.exports=require("path")},748:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n},t.exports.__esModule=!0,t.exports.default=t.exports},314:t=>{t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},850:(t,e,i)=>{var n=i(748);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},297:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},461:t=>{function e(t,e,i,n,s,r,o){try{var a=t[r](o),l=a.value}catch(t){return void i(t)}a.done?e(l):Promise.resolve(l).then(n,s)}t.exports=function(t){return function(){var i=this,n=arguments;return new Promise((function(s,r){var o=t.apply(i,n);function a(t){e(o,s,r,a,l,"next",t)}function l(t){e(o,s,r,a,l,"throw",t)}a(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},100:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},870:(t,e,i)=>{var n=i(739);function s(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,n(s.key),s)}}t.exports=function(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},290:(t,e,i)=>{var n=i(739);t.exports=function(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},611:(t,e,i)=>{var n=i(209);function s(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=s=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=s=function(t,e,i){var s=n(t,e);if(s){var r=Object.getOwnPropertyDescriptor(s,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}},t.exports.__esModule=!0,t.exports.default=t.exports),s.apply(this,arguments)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},660:t=>{function e(i){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},230:(t,e,i)=>{var n=i(560);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},912:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},193:t=>{t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,r,o,a=[],l=!0,c=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,s=t}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw s}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports},147:t=>{t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},96:t=>{t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},421:(t,e,i)=>{var n=i(425).default,s=i(297);t.exports=function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)},t.exports.__esModule=!0,t.exports.default=t.exports},609:(t,e,i)=>{var n=i(425).default;function s(){"use strict";t.exports=s=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var s=e&&e.prototype instanceof w?e:w,r=Object.create(s.prototype),o=new L(n||[]);return a(r,"_invoke",{value:O(t,i,o)}),r}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",b="completed",v={};function w(){}function k(){}function _(){}var x={};p(x,c,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(j([])));T&&T!==r&&o.call(T,c)&&(x=T);var C=_.prototype=w.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function i(s,r,a,l){var c=f(t[s],t,r);if("throw"!==c.type){var h=c.arg,u=h.value;return u&&"object"==n(u)&&o.call(u,"__await")?e.resolve(u.__await).then((function(t){i("next",t,a,l)}),(function(t){i("throw",t,a,l)})):e.resolve(u).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,l)}))}l(c.arg)}var s;a(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,s){i(t,n,e,s)}))}return s=s?s.then(r,r):r()}})}function O(t,i,n){var s=m;return function(r,o){if(s===y)throw new Error("Generator is already running");if(s===b){if("throw"===r)throw o;return{value:e,done:!0}}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var l=M(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(s===m)throw s=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);s=y;var c=f(t,i,n);if("normal"===c.type){if(s=n.done?b:g,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(s=b,n.method="throw",n.arg=c.arg)}}}function M(t,i){var n=i.method,s=t.iterator[n];if(s===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,M(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var r=f(s,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,v;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,v):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,r=function i(){for(;++s<t.length;)if(o.call(t,s))return i.value=t[s],i.done=!1,i;return i.value=e,i.done=!0,i};return r.next=r}}throw new TypeError(n(t)+" is not iterable")}return k.prototype=_,a(C,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:k,configurable:!0}),k.displayName=p(_,u,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},i.awrap=function(t){return{__await:t}},A(E.prototype),p(E.prototype,h,(function(){return this})),i.AsyncIterator=E,i.async=function(t,e,n,s,r){void 0===r&&(r=Promise);var o=new E(d(t,e,n,s),r);return i.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},A(C),p(C,u,"Generator"),p(C,c,(function(){return this})),p(C,"toString",(function(){return"[object Generator]"})),i.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},i.values=j,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!t)for(var i in this)"t"===i.charAt(0)&&o.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function n(n,s){return a.type="throw",a.arg=t,i.next=n,s&&(i.method="next",i.arg=e),!!s}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var l=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=t,r.arg=e,s?(this.method="next",this.next=s.finallyLoc,v):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),F(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var s=n.arg;F(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:j(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),v}},i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},560:t=>{function e(i,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},681:(t,e,i)=>{var n=i(314),s=i(193),r=i(121),o=i(147);t.exports=function(t,e){return n(t)||s(t,e)||r(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},209:(t,e,i)=>{var n=i(660);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=n(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},408:(t,e,i)=>{var n=i(850),s=i(912),r=i(121),o=i(96);t.exports=function(t){return n(t)||s(t)||r(t)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},64:(t,e,i)=>{var n=i(425).default;t.exports=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!==n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},739:(t,e,i)=>{var n=i(425).default,s=i(64);t.exports=function(t){var e=s(t,"string");return"symbol"===n(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},425:t=>{function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},121:(t,e,i)=>{var n=i(748);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},841:(t,e,i)=>{var n=i(609)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},813:(t,e,i)=>{"use strict";i.r(e),i.d(e,{def_all:()=>K});var n={};i.r(n),i.d(n,{amber:()=>S,blue:()=>g,blueGrey:()=>O,brown:()=>A,common:()=>h,cyan:()=>b,deepOrange:()=>C,deepPurple:()=>f,green:()=>w,grey:()=>E,indigo:()=>m,lightBlue:()=>y,lightGreen:()=>k,lime:()=>_,orange:()=>T,pink:()=>p,purple:()=>d,red:()=>u,teal:()=>v,yellow:()=>x});var s=i(290),r=i(506),o=i(681),a=i(408),l=i(870),c=i(100);const h={black:"#000",white:"#fff"},u={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},m={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},v={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},w={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},k={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},_={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},x={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},S={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},T={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},C={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},A={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},E={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},O={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"};var M=function(t){var e=["lighten","darken","accent"],i=Object.keys(t).reduce((function(t,i){var n=i.split("-");return n.length>=3&&e.includes(n[n.length-2])?[].concat(a(t),[n.slice(0,n.length-2).join("-")]):[].concat(a(t),[i])}),[]);return(i=a(new Set(i))).map((function(i){var n=Object.entries(t).reduce((function(n,s){var r=o(s,2),l=r[0],c=r[1],h=l.split("-"),u=h.slice(h.length-2).join("-");if(!(h.length>1&&n.map((function(t){return t.name})).includes(u))&&l.startsWith(i)&&h.length>=3&&e.includes(h[h.length-2])){var p=[].concat(a(n),[{name:u,hex:c}]);return"lighten-1"===u&&p.push({name:"",hex:t[i]}),p}return n}),[]);return{color:i,variants:n,hex:t[i]}}))},P=function(t){return t=t.replace("#",""),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#333333":"#ebedef"},F=new(l((function t(){var e=this;c(this,t),s(this,"init",(function(){e.buildColorsMapAndSwatches(),e.buildColorsMeta()})),s(this,"initOptions",(function(){e.buildColorsOptionsAndTextOptions()})),s(this,"buildColorsMapAndSwatches",(function(){e.colors.forEach((function(t){var i=n[t];if(i){var s=[];s.push(i[500]),Object.entries(i).forEach((function(i){var n,r=o(i,2),a=r[0],l=r[1];("brown"!==t&&"grey"!==t&&"blueGrey"!==t||"A100"!==a&&"A200"!==a&&"A400"!==a&&"A700"!==a)&&(e.colorsMap["".concat((n=t,n.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).join(""))).concat("500"===a?"":"-"+e.colorWeights[a]).toLowerCase()]=l,"500"!==a&&s.push(l))})),e.swatches.push(s)}})),e.colorsMap.black="#000000",e.colorsMap.white="#ffffff",e.swatches.push(["#000000","#ffffff"])})),s(this,"buildColorsMeta",(function(){e.colorsMeta=M(e.colorsMap)})),s(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,i=[],n=[];e.colorsMeta.forEach((function(e){var s=e.color,r=e.hex;if(s&&r){var o=s.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");i.push({key:s,name:o,html:t.makeColor(r,"",{attributes:{title:o}})}),n.push({key:s,name:o,html:t.makeColorText(r,"",{attributes:{title:o}})})}})),e.colorOptions=i,e.colorTextOptions=n})),s(this,"hexToName",(function(t){var i;return""===t&&(i="none"),Object.entries(e.colorsMap).forEach((function(e){var n=o(e,2),s=n[0],r=n[1];t===r&&(i=s)})),i||t})),s(this,"nameToHex",(function(t){return""===t?"none":e.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.colors=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","grey","blueGrey","black","white"],this.colorWeights={50:"lighten-5",100:"lighten-4",200:"lighten-3",300:"lighten-2",400:"lighten-1",500:"",600:"darken-1",700:"darken-2",800:"darken-3",900:"darken-4",A100:"accent-1",A200:"accent-2",A400:"accent-3",A700:"accent-4"},this.colorsMap={},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.swatches=[],this.init()}))),L=new(l((function t(){var e=this;c(this,t),s(this,"init",(function(t){e.colorsMap=t||{},e.buildColorsMeta(),e.buildColors()})),s(this,"initOptions",(function(){e.buildColorsOptionsAndTextOptions()})),s(this,"buildColorsMeta",(function(){e.colorsMeta=M(e.colorsMap)})),s(this,"buildColors",(function(){e.colors=e.colorsMeta.map((function(t){return t.color}))})),s(this,"buildColorsOptionsAndTextOptions",(function(){var t=new PgToggleButtonMaker,i=[],n=[];e.colorsMeta.forEach((function(e){var s=e.color,r=e.hex;if(s&&r){var o=s.split("-").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ");i.push({key:s,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px","background-color":"".concat(r),color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":P(r)),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})}),n.push({key:s,name:o,html:t.makeColor(r,o,{styles:{"font-size":"11px",padding:"6px",width:"auto",height:"16px",color:"".concat(r.toLowerCase().startsWith("#fff")?"#a5a5a5":"Neutral"===o?P(r):r),"border-radius":"3px",display:"flex","flex-direction":"column","justify-content":"center"},attributes:{title:o}})})}})),e.colorOptions=i,e.colorTextOptions=n})),s(this,"hexToName",(function(t){var i;return""===t&&(i="none"),Object.entries(e.colorsMap).forEach((function(e){var n=o(e,2),s=n[0],r=n[1];t===r&&(i=s)})),i||t})),s(this,"nameToHex",(function(t){return""===t?"none":e.colorsMap[t.toLowerCase()]||t.toLowerCase()})),this.colors=[],this.colorsMap={neutral:"#121212"},this.colorsMeta=[],this.colorOptions=[],this.colorTextOptions=[],this.init()})));function j(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function z(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?j(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var D=function(){F.swatches,z(z({},F.colorsMap),L.colorsMap),[].concat(a(F.colorsMeta),a(L.colorsMeta)),L.colorsMap};D();var R,I=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(){var t;try{t=componentStateRef.state.find((function(t){return"$vuetify"===t.key}))}catch(t){}var e={};if(t){try{var i,n;e=null===(i=t)||void 0===i||null===(i=i.value)||void 0===i||null===(i=i.theme)||void 0===i||null===(i=i.global)||void 0===i||null===(i=i.current)||void 0===i?void 0:i.colors,null===(n=t)||void 0===n||null===(n=n.value)||void 0===n||null===(n=n.theme)||void 0===n||null===(n=n.global)||void 0===n||null===(n=n.current)||void 0===n||n.dark}catch(t){}e||(e={});var s=z({},e),r=Object.entries(s).reduce((function(t,e){var i=o(e,2),n=i[0],s=i[1];if(n.startsWith("background")||n.startsWith("surface")||n.startsWith("on-"))return t;var r={};return r[n]=s,z(z({},t),r)}),{});R=z(z({},r),{},{transparent:"#ffffff"}),function(t){t||(t={background:"#ffffff",surface:"#ffffff",primary:"#7e68b1","primary-darken-1":"#6750a4",secondary:"#787285","secondary-darken-1":"#625b71",tertiary:"#906a76","tertiary-darken-1":"#7d5260",success:"#2e7d32",warning:"#ed6c02",error:"#d32f2f",info:"#0288d1",neutral:"#121212",transparent:"#ffffff"});try{var e=z(z({},{}),t());e=Object.fromEntries(Object.entries(e).map((function(t){var e=o(t,2),i=e[0],n=e[1];return[i.toLowerCase(),n.toLowerCase()]}))),L.init(e),D(),F.initOptions(),L.initOptions(),[].concat(a(F.colorOptions),a(L.colorOptions)),[].concat(a(F.colorTextOptions),a(L.colorTextOptions))}catch(t){}}((function(){return R}))}}();var i=[],n=[],s=[],r=e?[].concat(a(L.colorsMeta.map((function(t){return z(z({},t),{},{palette:!0})}))),a(F.colorsMeta)):F.colorsMeta,l=["lighten","darken","accent"];return r.forEach((function(e){var r,o=[];e.variants.forEach((function(i){var a="".concat(e.color).concat(i.name?"-".concat(i.name):""),c={key:"".concat(t).concat(a),name:a,color:i.hex},h=a.split("-");e.palette&&h.length>=2&&l.includes(h[h.length-2])&&(c.second_row=!0),e.palette&&!c.second_row&&n.push(c),c.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?s.push(c):o.push(c),i.name||(r=c)})),r&&o.unshift(z({},r));var a=e.color.split("-");e.palette&&a.length>=2&&l.includes(a[a.length-2])&&(c.second_row=!0);var c={key:"".concat(t).concat(e.color),name:"".concat(e.color),color:e.hex};e.palette&&!c.second_row&&n.push(c),c.second_row||"white"===e.color||"black"===e.color||"transparent"===e.color?s.push(c):e.palette||e.variants.length||o.push(c),o.length&&i.push(o)})),[n,s].concat(i)};function B(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return N(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var W,$=function(t,e){var i={"lighten-5":"1","lighten-4":"2","lighten-3":"3","lighten-2":"4","lighten-1":"5","darken-1":"7","darken-2":"8","darken-3":"9","darken-4":"10","accent-1":"11","accent-2":"12","accent-3":"13","accent-4":"14"};return t.forEach((function(t){t.forEach((function(t,e){if(t&&t.key){var n=Object.keys(i).reduce((function(e,i){return e&&!t.key.endsWith(i)}),!0);"white"!==t.name&&"black"!==t.name&&n&&0!==e?(t.key="".concat(t.key,"-6"),t.name="".concat(t.name,"-6")):Object.entries(i).forEach((function(e){var i=o(e,2),n=i[0],s=i[1];t.key=t.key.replace(n,s),t.name=t.name.replace(n,s)}))}}))})),Object.entries({brown:{11:"#d7ccc8",12:"#bcaaa4",13:"#8d6e63",14:"#5d4037"},grey:{11:"#f5f5f5",12:"#eee",13:"#bdbdbd",14:"#616161"},"blue-grey":{11:"#cfd8dc",12:"#b0bec5",13:"#78909c",14:"#455a64"}}).forEach((function(i){var n=o(i,2),s=n[0],r=n[1],a=t.find((function(t){var e;return(null===(e=t[0])||void 0===e?void 0:e.name)==="".concat(s,"-1")}));a&&Object.entries(r).forEach((function(t){var i=o(t,2),n=i[0],r=i[1];a.push({key:"".concat(e,"-").concat(s,"-").concat(n),name:"".concat(s,"-").concat(n),color:r})}))})),t},q=function(t,e){var i=$(I(t,e),t),n=[];return i.forEach((function(t){t.forEach((function(t){n.push({key:"".concat(t.key),name:"".concat(t.name),color:t.color})}))})),n},U=function(t,e,i){var n=t||"text-";return{type:"color",name:e||"Color",show_empty:!0,toggle_buttons:!0,options:function(){return q(n,!0)},fill_list_on_open:!0,text_color:"text-"===n,colors:function(t){return $(I(n),n)},parent_section_id:i,action:"custom",get_value:function(t,e,i,s){var r,o=q(n,!0).map((function(t){return t.key})),a=B(t.getClasses());try{for(a.s();!(r=a.n()).done;){var l=r.value;if(o.includes(l))return l}}catch(t){a.e(t)}finally{a.f()}},set_value:function(t,e,i,s,r,o,a){var l=q("".concat(n,"-"),!0).map((function(t){return t.key})),c=t.getClasses(),h=!1;if(c.length){var u,p=B(c);try{for(p.s();!(u=p.n()).done;){var d=u.value;(s===d||l.includes(d))&&(t.removeClass(d),h=!0)}}catch(t){p.e(t)}finally{p.f()}}return e&&(t.addClass(e),h=!0),h&&pinegrow.reselectElement(t),e}}},G=r.MS.getQuasarColor=function(t){switch(t){case"primary":return"#1976d2";case"secondary":return"#26A69A";case"accent":return"#9C27B0";case"dark":return"#1d1d1d";case"positive":return"#21BA45";case"negative":return"#C10015";case"info":return"#31CCEC";case"warning":return"#F2C037";case"white":default:return"#fff";case"black":return"#000"}},H=r.MS.getButtonTypeToggleButton=function(t,e,i,n){var s={};if(e&&(s.title=e),n=n||t,"link"==t)return r.bm.makeColor(null,"T",{"text-decoration":"underline",attributes:s});var o={title:t,default_color:G(t)};return i&&(o.height=i),r.bm.makeColorFromCSSVariable("--q-"+n,o)},Y=(r.MS.getPaletteColors=function(){var t={};return["primary","secondary","accent","dark","positive","negative","info","warning","white","black"].forEach((function(e){t[e]=G(e)})),t},r.MS.getQuasarPaletteOptions=function(t){return[{key:"".concat(t,"-primary"),name:"Primary",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-primary",{title:"Primary",default_color:G("primary")}):H("primary","Primary",null,"primary"),ahtml:r.bm.makeColorText(G("primary"))},{key:"".concat(t,"-secondary"),name:"Secondary",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-secondary",{title:"Secondary",default_color:G("secondary")}):H("secondary","Secondary",null,"secondary"),ahtml:r.bm.makeColorText(G("secondary"))},{key:"".concat(t,"-accent"),name:"Accent",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-accent",{title:"Accent",default_color:G("accent")}):H("accent","Accent",null,"accent"),ahtml:r.bm.makeColorText(G("accent"))},{key:"".concat(t,"-dark"),name:"Dark",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-dark",{title:"Dark",default_color:G("dark")}):H("dark","Dark",null,"dark"),ahtml:r.bm.makeColorText(G("dark"))},{key:"".concat(t,"-positive"),name:"Positive",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-positive",{title:"Positive",default_color:G("positive")}):H("positive","Positive",null,"positive"),ahtml:r.bm.makeColorText(G("positive"))},{key:"".concat(t,"-negative"),name:"Negative",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-negative",{title:"Negative",default_color:G("negative")}):H("negative","Negative",null,"negative"),ahtml:r.bm.makeColorText(G("negative"))},{key:"".concat(t,"-info"),name:"Info",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-info",{title:"Info",default_color:G("info")}):H("info","Info",null,"info"),ahtml:r.bm.makeColorText(G("info"))},{key:"".concat(t,"-warning"),name:"Warning",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-warning",{title:"Warning",default_color:G("warning")}):H("warning","Warning",null,"warning"),ahtml:r.bm.makeColorText(G("warning"))},{key:"".concat(t,"-white"),name:"White",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-white",{title:"White",default_color:G("white")}):r.bm.makeColor("#fff","",{attributes:{title:"White"}}),ahtml:r.bm.makeColorText(G("white"))},{key:"".concat(t,"-black"),name:"Black",html:"text"===t?r.bm.makeColorTextFromCSSVariable("--q-black",{title:"Black",default_color:G("black")}):r.bm.makeColor("#000","",{attributes:{title:"Black"}}),ahtml:r.bm.makeColorText(G("black"))}]}),V=i(991),Q=i(161),J=function(t){return t.children,t.children.reduce((function(t,e){var i=e.getClasses().reduce((function(t,e){return t||e.startsWith("col")||e.startsWith("offset")}),!1);return t||i}),!1)},Z=function(t){return!J(t)},X=function(t){return function(){return{name:"column"===t?"Column Gutter":"Gutter",on_section_shown:r.vz,show_if:"column"===t?J:Z,fields:s({},"".concat(t,"_gutter'"),{type:"custom",name:"".concat(t,"_gutter'"),action:"none",control:(0,r.of)(t)})}}},K=new PgComponentType(r.O4+"all","All elements",{selector:function(t){return V.hC},name:"Div",display_name:"tag",priority:2001,sections:(0,r.e9)({textcolor:{name:"Text Color",compact:!0,fields:{palette:{type:"select",name:"Palette",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:function(){return Y("text")}},swatches:U("text-","Swatches",r.O4+"textcolor")}},typography:{name:"Typography",fields:{typography:(W={name:"Typography",action:"none",type:"select"},s(W,"action","apply_class"),s(W,"show_empty",!0),s(W,"toggle_buttons",!0),s(W,"options",[{key:"text-h1",name:"1",html:r.bm.makeText("H1",{attributes:{title:"Heading 1"}})},{key:"text-h2",name:"2",html:r.bm.makeText("H2",{attributes:{title:"Heading 2"}})},{key:"text-h3",name:"3",html:r.bm.makeText("H3",{attributes:{title:"Heading 3"}})},{key:"text-h4",name:"4",html:r.bm.makeText("H4",{attributes:{title:"Heading 4"}})},{key:"text-h5",name:"5",html:r.bm.makeText("H5",{attributes:{title:"Heading 5"}})},{key:"text-h6",name:"6",html:r.bm.makeText("H6",{attributes:{title:"Heading 6"}})},{key:"text-subtitle-1",name:"Subtitle 1",html:r.bm.makeText("Subtitle 1",{attributes:{title:"Subtitle 1"}})},{key:"text-subtitle-2",name:"Subtitle 2",html:r.bm.makeText("Subtitle 2",{attributes:{title:"Subtitle 2"}})},{key:"text-body-1",name:"Body 1",html:r.bm.makeText("Body 1",{attributes:{title:"Body 1"}})},{key:"text-body-2",name:"Body 2",html:r.bm.makeText("Body 2",{attributes:{title:"Body 2"}})},{key:"text-caption",name:"Caption",html:r.bm.makeText("Caption",{attributes:{title:"Caption"}})},{key:"text-overline",name:"Overline",html:r.bm.makeText("Overline",{attributes:{title:"Overline"}})}]),W),fontweight:{type:"select",name:"Font weight",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-weight-bolder",name:"Bolder",html:r.bm.makeText("Bolder",{attributes:{title:"Bolder"}})},{key:"text-weight-bold",name:"Bold",html:r.bm.makeText("Bold",{attributes:{title:"Bold"}})},{key:"text-weight-medium",name:"Medium",html:r.bm.makeText("Medium",{attributes:{title:"Medium"}})},{key:"text-weight-regular",name:"Regular",html:r.bm.makeText("Regular",{attributes:{title:"Regular"}})},{key:"text-weight-light",name:"Light",html:r.bm.makeText("Light",{attributes:{title:"Light"}})},{key:"text-weight-thin",name:"Thin",html:r.bm.makeText("Thin",{attributes:{title:"Thin"}})}]},textalign:{name:"Text align",type:"select",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-left",name:"Left",html:r.bm.makeIcon("align-left",{attributes:{title:"Left"}})},{key:"text-center",name:"Center",html:r.bm.makeIcon("align-center",{attributes:{title:"Center"}})},{key:"text-right",name:"Right",html:r.bm.makeIcon("align-right",{attributes:{title:"Right"}})},{key:"text-justify",name:"Justify",html:r.bm.makeIcon("align-full",{attributes:{title:"Justify"}})}]},transform:{type:"select",name:"Transform",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"text-lowercase",name:"Lowercase",html:r.bm.makeIcon("lowercase")},{key:"text-uppercase",name:"Uppercase",html:r.bm.makeIcon("uppercase")},{key:"text-capitalize",name:"Capitalize",html:r.bm.makeIcon("sentence-case")}]},whitespace:{type:"checkbox",name:"No Wrap",action:"apply_class",value:"text-no-wrap"},fontstyle:{type:"checkbox",name:"Italic",action:"apply_class",value:"text-italic"},fontbold:{type:"checkbox",name:"Bold",action:"apply_class",value:"text-bold"},decoration:{type:"checkbox",name:"Line through",action:"apply_class",value:"text-strike"}}},background:{name:"Background Color",compact:!0,fields:{bg_palette:{type:"select",name:"Palette",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:function(){return Y("bg")}},bg_swatches:U("bg-","Swatches",r.O4+"background"),dimmed:{type:"select",name:"Dimmed",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"transparent",name:"Transparent",html:r.bm.makeText("Transparent",{attributes:{title:"Transparent"}})},{key:"dimmed",name:"Dimmed",html:r.bm.makeText("Dimmed",{attributes:{title:"Dimmed"}})},{key:"light-dimmed",name:"Light Dimmed",html:r.bm.makeText("Light Dimmed",{attributes:{title:"Light Dimmed"}})}]},glossy:{type:"checkbox",name:"Glossy",action:"apply_class",value:"glossy"}}},spacing:{name:"Spacing",on_section_shown:r.vz,fields:{margin_control:{type:"custom",name:"Spacing",action:"none",control:(0,r.Cw)()},no_margin:{type:"checkbox",name:"No Margin",action:"apply_class",value:"no-margin"},no_padding:{type:"checkbox",name:"No Padding",action:"apply_class",value:"no-padding"}}},dimension:{name:"Dimension",fields:{display:{type:"select",name:"Display",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"block",name:"Block",html:r.bm.makeText("Block",{attributes:{title:"Block"}})},{key:"inline-block",name:"Inline Block",html:r.bm.makeText("Inline Block",{attributes:{title:"Inline Block"}})}]},width:{type:"select",name:"Width",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-width",name:"Full Width",html:r.bm.makeText("Full Width",{attributes:{title:"Full Width"}})},{key:"window-width",name:"Window Width",html:r.bm.makeText("Window Width",{attributes:{title:"Window Width"}})}]},height:{type:"select",name:"Height",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"full-height",name:"Full Height",html:r.bm.makeText("Full Height",{attributes:{title:"Full Height"}})},{key:"window-height",name:"Window Height",html:r.bm.makeText("Window Height",{attributes:{title:"Window Height"}})}]},fit:{type:"checkbox",name:"Fit",action:"apply_class",value:"fit"}}},visibility:{name:"Visibility",fields:{disabled:{type:"checkbox",name:"Disabled",action:"apply_class",value:"disabled"},hidden:{type:"checkbox",name:"Hidden (display:none)",action:"apply_class",value:"hidden"},invisible:{type:"checkbox",name:"Invisible (visibility:hidden)",action:"apply_class",value:"invisible"},readonly:{type:"checkbox",name:"Readonly",action:"apply_class",value:"readonly"},ellipsis:{type:"select",name:"Ellipsis",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"ellipsis",name:"Ellipsis",html:r.bm.makeText("Ellipsis",{attributes:{title:"Ellipsis"}})},{key:"ellipsis-2-lines",name:"Ellipsis 2 lines",html:r.bm.makeText("Ellipsis 2 lines",{attributes:{title:"Ellipsis 2 lines"}})},{key:"ellipsis-3-lines",name:"Ellipsis 3 lines",html:r.bm.makeText("Ellipsis 3 lines",{attributes:{title:"Ellipsis 3 lines"}})}]},zindex:{type:"select",name:"Z-index",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"z-top",name:"Z Top",html:r.bm.makeText("Z Top",{attributes:{title:"Z Top"}})},{key:"z-max",name:"Z Max",html:r.bm.makeText("Z Max",{attributes:{title:"Z Max"}})}]},orientation:{type:"select",name:"Orientation",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"orientation-portrait",name:"Portrait",html:r.bm.makeText("Portrait",{attributes:{title:"Portrait"}})},{key:"orientation-landscape",name:"Landscape",html:r.bm.makeText("Landscape",{attributes:{title:"Landscape"}})}]},platform_only:{type:"select",name:"Only in Platform",action:"apply_class",show_empty:!0,options:[{key:"desktop-only",name:"Desktop"},{key:"mobile-only",name:"Mobile"},{key:"native-mobile-only",name:"Native Mobile"},{key:"cordova-only",name:"Cordova"},{key:"capacitor-only",name:"Capacitor"},{key:"electron-only",name:"Electron"},{key:"touch-only",name:"Touch"},{key:"platform-ios-only",name:"iOS"},{key:"platform-android-only",name:"Android"},{key:"within-iframe-only",name:"iframe"}]},platform_hide:{type:"select",name:"Hide in Platform",action:"apply_class_multiple",show_empty:!0,multiple:!0,options:[{key:"desktop-hide",name:"Desktop"},{key:"mobile-hide",name:"Mobile"},{key:"native-mobile-hide",name:"Native Mobile"},{key:"cordova-hide",name:"Cordova"},{key:"capacitor-hide",name:"Capacitor"},{key:"electron-hide",name:"Electron"},{key:"touch-hide",name:"Touch"},{key:"platform-ios-hide",name:"iOS"},{key:"platform-android-hide",name:"Android"},{key:"within-iframe-hide",name:"iframe"}]},print:{type:"select",name:"Print",action:"apply_class",show_empty:!0,options:[{key:"print-only",name:"Print only"},{key:"print-hide",name:"Screen only"}]}}},position:{name:"Position",fields:{position_common:{type:"select",name:"Position",action:"apply_class",show_empty:!0,options:[{key:"fullscreen",name:"Fullscreen"},{key:"relative-position",name:"Relative Position"},{key:"absolute",name:"Absolute"},{key:"absolute-full",name:"Absolute Full"},{key:"absolute-center",name:"Absolute Center"},{key:"absolute-bottom",name:"Absolute Bottom"},{key:"absolute-left",name:"Absolute Left"},{key:"absolute-right",name:"Absolute Right"},{key:"absolute-top",name:"Absolute Top"},{key:"absolute-top-left",name:"Absolute Top Left"},{key:"absolute-top-right",name:"Absolute Top Right"},{key:"absolute-bottom-left",name:"Absolute Bottom Left"},{key:"absolute-bottom-right",name:"Absolute Bottom Right"},{key:"fixed",name:"Fixed"},{key:"fixed-full",name:"Fixed Full"},{key:"fixed-center",name:"Fixed Center"},{key:"fixed-bottom",name:"Fixed Bottom"},{key:"fixed-left",name:"Fixed Left"},{key:"fixed-right",name:"Fixed Right"},{key:"fixed-top",name:"Fixed Top"},{key:"fixed-top-left",name:"Fixed Top Left"},{key:"fixed-top-right",name:"Fixed Top Right"},{key:"fixed-bottom-left",name:"Fixed Bottom Left"},{key:"fixed-bottom-right",name:"Fixed Bottom Right"}]},horizontal_alignment:{type:"select",name:"Horizontal Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"on-left",name:"On Left",html:r.bm.makeText("On Left",{attributes:{title:"On Left"}})},{key:"on-right",name:"On Right",html:r.bm.makeText("On Right",{attributes:{title:"On Right"}})}]},vertical_alignment:{type:"select",name:"Vertical Alignment",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"vertical-top",name:"Top",html:r.bm.makeText("Top",{attributes:{title:"Top"}})},{key:"vertical-middle",name:"Middle",html:r.bm.makeText("Middle",{attributes:{title:"Middle"}})},{key:"vertical-bottom",name:"Bottom",html:r.bm.makeText("Bottom",{attributes:{title:"Bottom"}})}]}}},overflow:{name:"Overflow",fields:{overflow:{type:"select",name:"Scroll",action:"apply_class",show_empty:!0,options:[{key:"scroll",name:"Scroll"},{key:"no-scroll",name:"No Scroll"},{key:"overflow-auto",name:"Overflow Auto"},{key:"overflow-hidden",name:"Overflow Hidden"},{key:"overflow-hidden-y",name:"Overflow Hidden Y"},{key:"hide-scrollbar",name:"Hide Scrollbar"}]}}},mouse:{name:"Mouse",compact:!0,fields:{user_select:{type:"checkbox",name:"Non selectable",action:"apply_class",value:"non-selectable"},pointer_events:{type:"select",name:"Pointer Events",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-pointer-events\t",name:"None",html:r.bm.makeText("None",{attributes:{title:"None"}})},{key:"all-pointer-events\t",name:"All",html:r.bm.makeText("All",{attributes:{title:"All"}})}]},cursor:{type:"select",name:"Cursor",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"cursor-pointer",name:"Pointer",html:r.bm.makeText("Pointer",{attributes:{title:"Pointer"}})},{key:"cursor-not-allowed",name:"Not Allowed",html:r.bm.makeText("Not Allowed",{attributes:{title:"Not Allowed"}})},{key:"cursor-inherit",name:"Inherit",html:r.bm.makeText("Inherit",{attributes:{title:"Inherit"}})},{key:"cursor-none",name:"None",html:r.bm.makeText("None",{attributes:{title:"None"}})}]}}},elevation:{name:"Elevation",compact:!0,fields:{shadow:{type:"select",name:"Shadow",action:"apply_class",show_empty:!0,draggable_list:!0,options:function(){for(var t=[{key:"no-shadow",name:"No Shadow"},{key:"inset-shadow",name:"Inset Shadow"},{key:"inset-shadow-down",name:"Inset Shadow Down"}],e=0;e<=24;e++)t.push({key:"shadow-"+e,name:"shadow-"+e});for(e=0;e<=24;e++)t.push({key:"shadow-up-"+e,name:"shadow-up-"+e});return t}},shadow_transition:{type:"checkbox",name:"Shadow Transition",action:"apply_class",value:"shadow-transition"}}},border:{name:"Border",fields:{border_radius:{type:"select",name:"Border Radius",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rounded-borders",name:"Rounded Borders",html:r.bm.makeText("Rounded Borders",{attributes:{title:"Rounded Borders"}})},{key:"border-radius-inherit",name:"Border Radius Inherit",html:r.bm.makeText("Border Radius Inherit",{attributes:{title:"Border Radius Inherit"}})},{key:"no-border-radius",name:"No Border Radius",html:r.bm.makeText("No Border Radius",{attributes:{title:"No Border Radius"}})}]},no_border:{type:"checkbox",name:"No Border",action:"apply_class",value:"no-border"},no_border_shadow:{type:"checkbox",name:"No Border Shadow",action:"apply_class",value:"no-border-shadow"},no_outline:{type:"checkbox",name:"No Outline",action:"apply_class",value:"no-outline"}}},flexcontainer:{name:"Flex / Row / Column",on_section_shown:r.vz,fields:{flex_direction:{type:"custom",name:"flex_direction",action:"none",control:(0,r.ac)("flex.direction","Direction",(function(t,e){return{type:"select",name:(0,r.qV)("Direction",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"flex"+(e||""),name:"Flex",html:r.bm.makeIcon("Pin22",{attributes:{title:"Flex"}})},{key:"row"+(e||""),name:"Row",html:r.bm.makeIcon("225",{attributes:{title:"Row"}})},{key:"column"+(e||""),name:"Column",html:r.bm.makeIcon("227",{attributes:{title:"Column"}})}]}}))},flex_display:{type:"custom",name:"Display",action:"none",control:(0,r.ac)("flex_display","Display",(function(t,e){return{type:"checkbox",name:"Inline flex",action:"apply_class",value:"inline"+(e||"")}}))},flex_reverse:{type:"custom",name:"Direction",action:"none",control:(0,r.ac)("flex_reverse","Direction",(function(t,e){return{type:"checkbox",name:"Reverse",action:"apply_class",value:"reverse"+(e||"")}}))},flex_justify_content:{type:"custom",name:"Justify content",action:"none",control:(0,r.ac)("flex_justify_content","Justify content",(function(t,e){var i="justify"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Justify content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("218",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("219",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:r.bm.makeIcon("206",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:r.bm.makeIcon("205",{attributes:{title:"Around"}})},{key:i+"evenly",name:"",html:r.bm.makeIcon("205",{attributes:{title:"Evenly"}})}]}}))},flex_align_items:{type:"custom",name:"Align items",action:"none",control:(0,r.ac)("flex_align_items","Align items",(function(t,e){var i="items"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Align items",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("223",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("220",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("221",{attributes:{title:"Center"}})},{key:i+"baseline",name:"",html:r.bm.makeIcon("212",{attributes:{title:"Baseline"}})},{key:i+"stretch",name:"",html:r.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_align_content:{type:"custom",name:"Align content",action:"none",control:(0,r.ac)("flex_align_content","Align content",(function(t,e){var i="content"+(e||"")+"-";return{type:"select",name:(0,r.qV)("Align content",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:i+"start",name:"",html:r.bm.makeIcon("217",{attributes:{title:"Start"}})},{key:i+"end",name:"",html:r.bm.makeIcon("216",{attributes:{title:"End"}})},{key:i+"center",name:"",html:r.bm.makeIcon("215",{attributes:{title:"Center"}})},{key:i+"between",name:"",html:r.bm.makeIcon("210",{attributes:{title:"Between"}})},{key:i+"around",name:"",html:r.bm.makeIcon("209",{attributes:{title:"Around"}})},{key:i+"stretch",name:"",html:r.bm.makeIcon("214",{attributes:{title:"Stretch"}})}]}}))},flex_wrap:{type:"custom",name:"Wrap",action:"none",control:(0,r.ac)("flex_wrap","Wrap",(function(t,e){var i=e||"";return{type:"select",name:(0,r.qV)("Wrap",t),action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-wrap"+i,name:"",html:r.bm.makeIcon("203",{attributes:{title:"No wrap"}})},{key:"wrap"+i,name:"",html:r.bm.makeIcon("204",{attributes:{title:"Wrap"}})},{key:"reverse-wrap"+i,name:"",html:r.bm.makeIcon("202",{attributes:{title:"Wrap reverse"}})}]}}))}}},gutter:X("any")(),gutter_col:X("column")(),flexchild:(0,Q.D)("flexchild")(),columns:(0,Q.D)("column")(),transform:{name:"Transform and Transition",fields:{rotate:{type:"select",name:"Rotate by degrees",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"rotate-45",name:"rotate-45",html:r.bm.makeText("45",{attributes:{title:"45"}})},{key:"rotate-90",name:"rotate-90",html:r.bm.makeText("90",{attributes:{title:"90"}})},{key:"rotate-135",name:"rotate-135",html:r.bm.makeText("135",{attributes:{title:"135"}})},{key:"rotate-180",name:"rotate-180",html:r.bm.makeText("180",{attributes:{title:"180"}})},{key:"rotate-225",name:"rotate-225",html:r.bm.makeText("225",{attributes:{title:"225"}})},{key:"rotate-270",name:"rotate-270",html:r.bm.makeText("270",{attributes:{title:"270"}})},{key:"rotate-315",name:"rotate-315",html:r.bm.makeText("315",{attributes:{title:"315"}})},{key:"flip-horizontal",name:"flip-horizontal",html:r.bm.makeText("Flip Horizontal",{attributes:{title:"Flip Horizontal"}})},{key:"flip-vertical",name:"flip-vertical",html:r.bm.makeText("Flip Vertical",{attributes:{title:"Flip Vertical"}})}]},transition:{type:"select",name:"Transition",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:[{key:"no-transition",name:"No Transition",html:r.bm.makeText("No Transition",{attributes:{title:"No Transition"}})},{key:"transition-0",name:"Transition 0s",html:r.bm.makeText("Transition 0s",{attributes:{title:"Transition 0s"}})}]}}}})});r.MS.addComponentType(K)},259:(t,e,i)=>{"use strict";i.d(e,{c:()=>Tn});var n=i(290);function s(t,e){return e?e.toUpperCase():""}var r=/-(\w)/g,o=function(t){return t&&t.replace(r,s)},a=function(t){return t.split("").map((function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t})).map((function(t){return t.startsWith("-")&&!isNaN(+t[1])?t.replace("-",""):t})).join("")},l=i(681),c=i(461),h=i(408),u=i(841),p=i(199);const d=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},f={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},m=t=>t.replace(/[[\]\\-]/g,"\\$&"),g=t=>t.join(""),y=(t,e)=>{const i=e;if("["!==t.charAt(i))throw new Error("not in a brace expression");const n=[],s=[];let r=i+1,o=!1,a=!1,l=!1,c=!1,h=i,u="";t:for(;r<t.length;){const e=t.charAt(r);if("!"!==e&&"^"!==e||r!==i+1){if("]"===e&&o&&!l){h=r+1;break}if(o=!0,"\\"!==e||l){if("["===e&&!l)for(const[e,[o,l,c]]of Object.entries(f))if(t.startsWith(e,r)){if(u)return["$.",!1,t.length-i,!0];r+=e.length,c?s.push(o):n.push(o),a=a||l;continue t}l=!1,u?(e>u?n.push(m(u)+"-"+m(e)):e===u&&n.push(m(e)),u="",r++):t.startsWith("-]",r+1)?(n.push(m(e+"-")),r+=2):t.startsWith("-",r+1)?(u=e,r+=2):(n.push(m(e)),r++)}else l=!0,r++}else c=!0,r++}if(h<r)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,t.length-i,!0];if(0===s.length&&1===n.length&&/^\\?.$/.test(n[0])&&!c){return[(p=2===n[0].length?n[0].slice(-1):n[0],p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,h-i,!1]}var p;const d="["+(c?"^":"")+g(n)+"]",y="["+(c?"":"^")+g(s)+"]";return[n.length&&s.length?"("+d+"|"+y+")":n.length?d:y,a,h-i,!0]},b=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),v=new Set(["!","?","+","*","@"]),w=t=>v.has(t),k="(?!\\.)",_=new Set(["[","."]),x=new Set(["..","."]),S=new Set("().*{}+?[]^$\\!"),T="[^/]",C=T+"*?",A=T+"+?";class E{type;#t;#e;#i=!1;#n=[];#s;#r;#o;#a=!1;#l;#c;#h=!1;constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#s=e,this.#t=this.#s?this.#s.#t:this,this.#l=this.#t===this?i:this.#t.#l,this.#o=this.#t===this?[]:this.#t.#o,"!"!==t||this.#t.#a||this.#o.push(this),this.#r=this.#s?this.#s.#n.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#n)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#c?this.#c:this.type?this.#c=this.type+"("+this.#n.map((t=>String(t))).join("|")+")":this.#c=this.#n.map((t=>String(t))).join("")}#u(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#o.pop();){if("!"!==t.type)continue;let e=t,i=e.#s;for(;i;){for(let n=e.#r+1;!i.type&&n<i.#n.length;n++)for(const e of t.#n){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(i.#n[n])}e=i,i=e.#s}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof E&&e.#s===this))throw new Error("invalid part: "+e);this.#n.push(e)}}toJSON(){const t=null===this.type?this.#n.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#n.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#s?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#s?.isStart())return!1;if(0===this.#r)return!0;const t=this.#s;for(let e=0;e<this.#r;e++){const i=t.#n[e];if(!(i instanceof E&&"!"===i.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#s?.type)return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();const t=this.#s?this.#s.#n.length:0;return this.#r===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new E(this.type,t);for(const t of this.#n)e.copyIn(t);return e}static#p(t,e,i,n){let s=!1,r=!1,o=-1,a=!1;if(null===e.type){let l=i,c="";for(;l<t.length;){const i=t.charAt(l++);if(s||"\\"===i)s=!s,c+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),c+=i;else if("["!==i)if(n.noext||!w(i)||"("!==t.charAt(l))c+=i;else{e.push(c),c="";const s=new E(i,e);l=E.#p(t,s,l,n),e.push(s)}else r=!0,o=l,a=!1,c+=i}return e.push(c),l}let l=i+1,c=new E(null,e);const h=[];let u="";for(;l<t.length;){const i=t.charAt(l++);if(s||"\\"===i)s=!s,u+=i;else if(r)l===o+1?"^"!==i&&"!"!==i||(a=!0):"]"!==i||l===o+2&&a||(r=!1),u+=i;else if("["!==i)if(w(i)&&"("===t.charAt(l)){c.push(u),u="";const e=new E(i,c);c.push(e),l=E.#p(t,e,l,n)}else if("|"!==i){if(")"===i)return""===u&&0===e.#n.length&&(e.#h=!0),c.push(u),u="",e.push(...h,c),l;u+=i}else c.push(u),u="",h.push(c),c=new E(null,e);else r=!0,o=l,a=!1,u+=i}return e.type=null,e.#e=void 0,e.#n=[t.substring(i-1)],l}static fromGlob(t,e={}){const i=new E(null,void 0,e);return E.#p(t,i,0,e),i}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,i,n,s]=this.toRegExpSource();if(!(n||this.#e||this.#l.nocase&&!this.#l.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const r=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${e}$`,r),{_src:e,_glob:t})}toRegExpSource(t){const e=t??!!this.#l.dot;if(this.#t===this&&this.#u(),!this.type){const i=this.isStart()&&this.isEnd(),n=this.#n.map((e=>{const[n,s,r,o]="string"==typeof e?E.#d(e,this.#e,i):e.toRegExpSource(t);return this.#e=this.#e||r,this.#i=this.#i||o,n})).join("");let s="";if(this.isStart()&&"string"==typeof this.#n[0]&&(1!==this.#n.length||!x.has(this.#n[0]))){const i=_,r=e&&i.has(n.charAt(0))||n.startsWith("\\.")&&i.has(n.charAt(2))||n.startsWith("\\.\\.")&&i.has(n.charAt(4)),o=!e&&!t&&i.has(n.charAt(0));s=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?k:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#s?.type&&(r="(?:$|\\/)"),[s+n+r,b(n),this.#e=!!this.#e,this.#i]}const i="*"===this.type||"+"===this.type,n="!"===this.type?"(?:(?!(?:":"(?:";let s=this.#f(e);if(this.isStart()&&this.isEnd()&&!s&&"!"!==this.type){const t=this.toString();return this.#n=[t],this.type=null,this.#e=void 0,[t,b(this.toString()),!1,!1]}let r=!i||t||e?"":this.#f(!0);r===s&&(r=""),r&&(s=`(?:${s})(?:${r})*?`);let o="";return o="!"===this.type&&this.#h?(this.isStart()&&!e?k:"")+A:n+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":k)+C+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[o,b(s),this.#e=!!this.#e,this.#i]}#f(t){return this.#n.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[i,n,s,r]=e.toRegExpSource(t);return this.#i=this.#i||r,i})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#d(t,e,i=!1){let n=!1,s="",r=!1;for(let o=0;o<t.length;o++){const a=t.charAt(o);if(n)n=!1,s+=(S.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[i,n,a,l]=y(t,o);if(a){s+=i,r=r||n,o+=a-1,e=e||l;continue}}"*"!==a?"?"!==a?s+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+=T,e=!0):(s+=i&&"*"===t?A:C,e=!0)}else o===t.length-1?s+="\\\\":n=!0}return[s,b(t),!!e,r]}}const O=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),M=(t,e,i={})=>(d(e),!(!i.nocomment&&"#"===e.charAt(0))&&new it(e,i).match(t)),P=/^\*+([^+@!?\*\[\(]*)$/,F=t=>e=>!e.startsWith(".")&&e.endsWith(t),L=t=>e=>e.endsWith(t),j=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),z=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),D=/^\*+\.\*+$/,R=t=>!t.startsWith(".")&&t.includes("."),I=t=>"."!==t&&".."!==t&&t.includes("."),B=/^\.\*+$/,N=t=>"."!==t&&".."!==t&&t.startsWith("."),W=/^\*+$/,$=t=>0!==t.length&&!t.startsWith("."),q=t=>0!==t.length&&"."!==t&&".."!==t,U=/^\?+([^+@!?\*\[\(]*)?$/,G=([t,e=""])=>{const i=Q([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},H=([t,e=""])=>{const i=J([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},Y=([t,e=""])=>{const i=J([t]);return e?t=>i(t)&&t.endsWith(e):i},V=([t,e=""])=>{const i=Q([t]);return e?t=>i(t)&&t.endsWith(e):i},Q=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},J=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Z="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";M.sep="win32"===Z?"\\":"/";const X=Symbol("globstar **");M.GLOBSTAR=X,M.filter=(t,e={})=>i=>M(i,t,e);const K=(t,e={})=>Object.assign({},t,e);M.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return M;const e=M;return Object.assign(((i,n,s={})=>e(i,n,K(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,K(t,i))}static defaults(i){return e.defaults(K(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,n={}){super(e,i,K(t,n))}static fromGlob(i,n={}){return e.AST.fromGlob(i,K(t,n))}},unescape:(i,n={})=>e.unescape(i,K(t,n)),escape:(i,n={})=>e.escape(i,K(t,n)),filter:(i,n={})=>e.filter(i,K(t,n)),defaults:i=>e.defaults(K(t,i)),makeRe:(i,n={})=>e.makeRe(i,K(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,K(t,n)),match:(i,n,s={})=>e.match(i,n,K(t,s)),sep:e.sep,GLOBSTAR:X})};const tt=(t,e={})=>(d(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p(t));M.braceExpand=tt,M.makeRe=(t,e={})=>new it(t,e).makeRe(),M.match=(t,e,i={})=>{const n=new it(e,i);return t=t.filter((t=>n.match(t))),n.options.nonull&&!t.length&&t.push(e),t};const et=/[?*]|[+@!]\(.*?\)|\[|\]/;class it{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){d(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Z,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map(((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&et.test(t[2])||et.test(t[3])),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(i)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,n),this.set=n.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const i=t[t.length-1];return"**"===e&&"**"===i?t:".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const n=t[i];1===i&&""===n&&""===t[0]||"."!==n&&""!==n||(e=!0,t.splice(i,1),i--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){const n=t[i-1];n&&"."!==n&&".."!==n&&"**"!==n&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let i of t){let n=-1;for(;-1!==(n=i.indexOf("**",n+1));){let s=n;for(;"**"===i[s+1];)s++;s>n&&i.splice(n+1,s-n);let r=i[n+1];const o=i[n+2],a=i[n+3];if(".."!==r)continue;if(!o||"."===o||".."===o||!a||"."===a||".."===a)continue;e=!0,i.splice(n,1);const l=i.slice(0);l[n]="**",t.push(l),n--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const n=i[t];1===t&&""===n&&""===i[0]||"."!==n&&""!==n||(e=!0,i.splice(t,1),t--)}"."!==i[0]||2!==i.length||"."!==i[1]&&""!==i[1]||(e=!0,i.pop())}let s=0;for(;-1!==(s=i.indexOf("..",s+1));){const t=i[s-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===s&&"**"===i[s+1]?["."]:[];i.splice(s-1,2,...t),0===i.length&&i.push(""),s-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){const n=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);n&&(t[e]=n,t[i]=[])}return t.filter((t=>t.length))}partsMatch(t,e,i=!1){let n=0,s=0,r=[],o="";for(;n<t.length&&s<e.length;)if(t[n]===e[s])r.push("b"===o?e[s]:t[n]),n++,s++;else if(i&&"**"===t[n]&&e[s]===t[n+1])r.push(t[n]),n++;else if(i&&"**"===e[s]&&t[n]===e[s+1])r.push(e[s]),s++;else if("*"!==t[n]||!e[s]||!this.options.dot&&e[s].startsWith(".")||"**"===e[s]){if("*"!==e[s]||!t[n]||!this.options.dot&&t[n].startsWith(".")||"**"===t[n])return!1;if("a"===o)return!1;o="b",r.push(e[s]),n++,s++}else{if("b"===o)return!1;o="a",r.push(t[n]),n++,s++}return t.length===e.length&&r}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,i=0;for(let n=0;n<t.length&&"!"===t.charAt(n);n++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){const n=this.options;if(this.isWindows){const i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),s="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),r=n?3:i?0:void 0,o=!s&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:s?0:void 0;if("number"==typeof r&&"number"==typeof o){const[i,n]=[t[r],e[o]];i.toLowerCase()===n.toLowerCase()&&(e[o]=i,o>r?e=e.slice(o):r>o&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,o=0,a=t.length,l=e.length;r<a&&o<l;r++,o++){this.debug("matchOne loop");var c=e[o],h=t[r];if(this.debug(e,c,h),!1===c)return!1;if(c===X){this.debug("GLOBSTAR",[e,c,h]);var u=r,p=o+1;if(p===l){for(this.debug("** at the end");r<a;r++)if("."===t[r]||".."===t[r]||!n.dot&&"."===t[r].charAt(0))return!1;return!0}for(;u<a;){var d=t[u];if(this.debug("\nglobstar while",t,u,e,p,d),this.matchOne(t.slice(u),e.slice(p),i))return this.debug("globstar found match!",u,a,d),!0;if("."===d||".."===d||!n.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!i||(this.debug("\n>>> no match, partial?",t,u,e,p),u!==a))}let s;if("string"==typeof c?(s=h===c,this.debug("string match",c,h,s)):(s=c.test(h),this.debug("pattern match",c,h,s)),!s)return!1}if(r===a&&o===l)return!0;if(r===a)return i;if(o===l)return r===a-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return tt(this.pattern,this.options)}parse(t){d(t);const e=this.options;if("**"===t)return X;if(""===t)return"";let i,n=null;(i=t.match(W))?n=e.dot?q:$:(i=t.match(P))?n=(e.nocase?e.dot?z:j:e.dot?L:F)(i[1]):(i=t.match(U))?n=(e.nocase?e.dot?H:G:e.dot?Y:V)(i):(i=t.match(D))?n=e.dot?I:R:(i=t.match(B))&&(n=N);const s=E.fromGlob(t,this.options).toMMPattern();return n?Object.assign(s,{test:n}):s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))n.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===X?X:t._src}));return e.forEach(((t,n)=>{const s=e[n+1],r=e[n-1];t===X&&r!==X&&(void 0===r?void 0!==s&&s!==X?e[n+1]="(?:\\/|"+i+"\\/)?"+s:e[n]=i:void 0===s?e[n-1]=r+"(?:\\/|"+i+")?":s!==X&&(e[n-1]=r+"(?:\\/|\\/"+i+"\\/)"+s,e[n+1]=X))})),e.filter((t=>t!==X)).join("/")})).join("|");const[r,o]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+o+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const n=this.slashSplit(t);this.debug(this.pattern,"split",n);const s=this.set;this.debug(this.pattern,"set",s);let r=n[n.length-1];if(!r)for(let t=n.length-2;!r&&t>=0;t--)r=n[t];for(let t=0;t<s.length;t++){const o=s[t];let a=n;if(i.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,e))return!!i.flipNegate||!this.negate}return!i.flipNegate&&this.negate}static defaults(t){return M.defaults(t).Minimatch}}M.AST=E,M.Minimatch=it,M.escape=O,M.unescape=b;const nt="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,st=new Set,rt="object"==typeof process&&process?process:{},ot=(t,e,i,n)=>{"function"==typeof rt.emitWarning?rt.emitWarning(t,e,i,n):console.error(`[${i}] ${e}: ${t}`)};let at=globalThis.AbortController,lt=globalThis.AbortSignal;if(void 0===at){lt=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},at=class{constructor(){e()}signal=new lt;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==rt.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,ot("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const ct=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),ht=t=>ct(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ut:null:null;class ut extends Array{constructor(t){super(t),this.fill(0)}}class pt{heap;length;static#m=!1;static create(t){const e=ht(t);if(!e)return[];pt.#m=!0;const i=new pt(t,e);return pt.#m=!1,i}constructor(t,e){if(!pt.#m)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class dt{#g;#y;#b;#v;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#k;#_;#x;#S;#T;#C;#A;#E;#O;#M;#P;#F;#L;#j;#z;#D;#R;static unsafeExposeInternals(t){return{starts:t.#L,ttls:t.#j,sizes:t.#F,keyMap:t.#x,keyList:t.#S,valList:t.#T,next:t.#C,prev:t.#A,get head(){return t.#E},get tail(){return t.#O},free:t.#M,isBackgroundFetch:e=>t.#I(e),backgroundFetch:(e,i,n,s)=>t.#B(e,i,n,s),moveToTail:e=>t.#N(e),indexes:e=>t.#W(e),rindexes:e=>t.#$(e),isStale:e=>t.#q(e)}}get max(){return this.#g}get maxSize(){return this.#y}get calculatedSize(){return this.#_}get size(){return this.#k}get fetchMethod(){return this.#w}get dispose(){return this.#b}get disposeAfter(){return this.#v}constructor(t){const{max:e=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:l,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:u,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:f,fetchMethod:m,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:w}=t;if(0!==e&&!ct(e))throw new TypeError("max option must be a nonnegative integer");const k=e?ht(e):Array;if(!k)throw new Error("invalid max value: "+e);if(this.#g=e,this.#y=p,this.maxEntrySize=d||this.#y,this.sizeCalculation=f,this.sizeCalculation){if(!this.#y&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==m&&"function"!=typeof m)throw new TypeError("fetchMethod must be a function if specified");if(this.#w=m,this.#D=!!m,this.#x=new Map,this.#S=new Array(e).fill(void 0),this.#T=new Array(e).fill(void 0),this.#C=new k(e),this.#A=new k(e),this.#E=0,this.#O=0,this.#M=pt.create(e),this.#k=0,this.#_=0,"function"==typeof l&&(this.#b=l),"function"==typeof c?(this.#v=c,this.#P=[]):(this.#v=void 0,this.#P=void 0),this.#z=!!this.#b,this.#R=!!this.#v,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!w,0!==this.maxEntrySize){if(0!==this.#y&&!ct(this.#y))throw new TypeError("maxSize must be a positive integer if specified");if(!ct(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#U()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=ct(n)||0===n?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!ct(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#G()}if(0===this.#g&&0===this.ttl&&0===this.#y)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#g&&!this.#y){const t="LRU_CACHE_UNBOUNDED";(t=>!st.has(t))(t)&&(st.add(t),ot("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,dt))}}getRemainingTTL(t){return this.#x.has(t)?1/0:0}#G(){const t=new ut(this.#g),e=new ut(this.#g);this.#j=t,this.#L=e,this.#H=(i,n,s=nt.now())=>{if(e[i]=0!==n?s:0,t[i]=n,0!==n&&this.ttlAutopurge){const t=setTimeout((()=>{this.#q(i)&&this.delete(this.#S[i])}),n+1);t.unref&&t.unref()}},this.#Y=i=>{e[i]=0!==t[i]?nt.now():0},this.#V=(s,r)=>{if(t[r]){const o=t[r],a=e[r];s.ttl=o,s.start=a,s.now=i||n();const l=s.now-a;s.remainingTTL=o-l}};let i=0;const n=()=>{const t=nt.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=s=>{const r=this.#x.get(s);if(void 0===r)return 0;const o=t[r],a=e[r];return 0===o||0===a?1/0:o-((i||n())-a)},this.#q=s=>0!==t[s]&&0!==e[s]&&(i||n())-e[s]>t[s]}#Y=()=>{};#V=()=>{};#H=()=>{};#q=()=>!1;#U(){const t=new ut(this.#g);this.#_=0,this.#F=t,this.#Q=e=>{this.#_-=t[e],t[e]=0},this.#J=(t,e,i,n)=>{if(this.#I(e))return 0;if(!ct(i)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(i=n(e,t),!ct(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#Z=(e,i,n)=>{if(t[e]=i,this.#y){const i=this.#y-t[e];for(;this.#_>i;)this.#X(!0)}this.#_+=t[e],n&&(n.entrySize=i,n.totalCalculatedSize=this.#_)}}#Q=t=>{};#Z=(t,e,i)=>{};#J=(t,e,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#W({allowStale:t=this.allowStale}={}){if(this.#k)for(let e=this.#O;this.#K(e)&&(!t&&this.#q(e)||(yield e),e!==this.#E);)e=this.#A[e]}*#$({allowStale:t=this.allowStale}={}){if(this.#k)for(let e=this.#E;this.#K(e)&&(!t&&this.#q(e)||(yield e),e!==this.#O);)e=this.#C[e]}#K(t){return void 0!==t&&this.#x.get(this.#S[t])===t}*entries(){for(const t of this.#W())void 0===this.#T[t]||void 0===this.#S[t]||this.#I(this.#T[t])||(yield[this.#S[t],this.#T[t]])}*rentries(){for(const t of this.#$())void 0===this.#T[t]||void 0===this.#S[t]||this.#I(this.#T[t])||(yield[this.#S[t],this.#T[t]])}*keys(){for(const t of this.#W()){const e=this.#S[t];void 0===e||this.#I(this.#T[t])||(yield e)}}*rkeys(){for(const t of this.#$()){const e=this.#S[t];void 0===e||this.#I(this.#T[t])||(yield e)}}*values(){for(const t of this.#W())void 0===this.#T[t]||this.#I(this.#T[t])||(yield this.#T[t])}*rvalues(){for(const t of this.#$())void 0===this.#T[t]||this.#I(this.#T[t])||(yield this.#T[t])}[Symbol.iterator](){return this.entries()}find(t,e={}){for(const i of this.#W()){const n=this.#T[i],s=this.#I(n)?n.__staleWhileFetching:n;if(void 0!==s&&t(s,this.#S[i],this))return this.get(this.#S[i],e)}}forEach(t,e=this){for(const i of this.#W()){const n=this.#T[i],s=this.#I(n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,this.#S[i],this)}}rforEach(t,e=this){for(const i of this.#$()){const n=this.#T[i],s=this.#I(n)?n.__staleWhileFetching:n;void 0!==s&&t.call(e,s,this.#S[i],this)}}purgeStale(){let t=!1;for(const e of this.#$({allowStale:!0}))this.#q(e)&&(this.delete(this.#S[e]),t=!0);return t}dump(){const t=[];for(const e of this.#W({allowStale:!0})){const i=this.#S[e],n=this.#T[e],s=this.#I(n)?n.__staleWhileFetching:n;if(void 0===s||void 0===i)continue;const r={value:s};if(this.#j&&this.#L){r.ttl=this.#j[e];const t=nt.now()-this.#L[e];r.start=Math.floor(Date.now()-t)}this.#F&&(r.size=this.#F[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=nt.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:n=this.ttl,start:s,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:l=this.noUpdateTTL}=i;const c=this.#J(t,e,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let h=0===this.#k?void 0:this.#x.get(t);if(void 0===h)h=0===this.#k?this.#O:0!==this.#M.length?this.#M.pop():this.#k===this.#g?this.#X(!1):this.#k,this.#S[h]=t,this.#T[h]=e,this.#x.set(t,h),this.#C[this.#O]=h,this.#A[h]=this.#O,this.#O=h,this.#k++,this.#Z(h,c,a),a&&(a.set="add"),l=!1;else{this.#N(h);const i=this.#T[h];if(e!==i){if(this.#D&&this.#I(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||r||(this.#z&&this.#b?.(e,t,"set"),this.#R&&this.#P?.push([e,t,"set"]))}else r||(this.#z&&this.#b?.(i,t,"set"),this.#R&&this.#P?.push([i,t,"set"]));if(this.#Q(h),this.#Z(h,c,a),this.#T[h]=e,a){a.set="replace";const t=i&&this.#I(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===n||this.#j||this.#G(),this.#j&&(l||this.#H(h,n,s),a&&this.#V(a,h)),!r&&this.#R&&this.#P){const t=this.#P;let e;for(;e=t?.shift();)this.#v?.(...e)}return this}pop(){try{for(;this.#k;){const t=this.#T[this.#E];if(this.#X(!0),this.#I(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#R&&this.#P){const t=this.#P;let e;for(;e=t?.shift();)this.#v?.(...e)}}}#X(t){const e=this.#E,i=this.#S[e],n=this.#T[e];return this.#D&&this.#I(n)?n.__abortController.abort(new Error("evicted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(n,i,"evict"),this.#R&&this.#P?.push([n,i,"evict"])),this.#Q(e),t&&(this.#S[e]=void 0,this.#T[e]=void 0,this.#M.push(e)),1===this.#k?(this.#E=this.#O=0,this.#M.length=0):this.#E=this.#C[e],this.#x.delete(i),this.#k--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=e,s=this.#x.get(t);if(void 0!==s){const t=this.#T[s];if(this.#I(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#q(s))return i&&this.#Y(s),n&&(n.has="hit",this.#V(n,s)),!0;n&&(n.has="stale",this.#V(n,s))}else n&&(n.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,n=this.#x.get(t);if(void 0!==n&&(i||!this.#q(n))){const t=this.#T[n];return this.#I(t)?t.__staleWhileFetching:t}}#B(t,e,i,n){const s=void 0===e?void 0:this.#T[e];if(this.#I(s))return s;const r=new at,{signal:o}=i;o?.addEventListener("abort",(()=>r.abort(o.reason)),{signal:r.signal});const a={signal:r.signal,options:i,context:n},l=(n,s=!1)=>{const{aborted:o}=r.signal,l=i.ignoreFetchAbort&&void 0!==n;if(i.status&&(o&&!s?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!l&&!s)return c(r.signal.reason);const u=h;return this.#T[e]===h&&(void 0===n?u.__staleWhileFetching?this.#T[e]=u.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,n,a.options))),n},c=n=>{const{aborted:s}=r.signal,o=s&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection,c=h;if(this.#T[e]===h&&(l&&void 0!==c.__staleWhileFetching?o||(this.#T[e]=c.__staleWhileFetching):this.delete(t)),a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};i.status&&(i.status.fetchDispatched=!0);const h=new Promise(((e,n)=>{const o=this.#w?.(t,s,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),n),r.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),u=Object.assign(h,{__abortController:r,__staleWhileFetching:s,__returned:void 0});return void 0===e?(this.set(t,u,{...a.options,status:void 0}),e=this.#x.get(t)):this.#T[e]=u,u}#I(t){if(!this.#D)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof at}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:y}=e;if(!this.#D)return g&&(g.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:g});const b={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:g,signal:y};let v=this.#x.get(t);if(void 0===v){g&&(g.fetch="miss");const e=this.#B(t,v,b,f);return e.__returned=e}{const e=this.#T[v];if(this.#I(e)){const t=i&&void 0!==e.__staleWhileFetching;return g&&(g.fetch="inflight",t&&(g.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const s=this.#q(v);if(!m&&!s)return g&&(g.fetch="hit"),this.#N(v),n&&this.#Y(v),g&&this.#V(g,v),e;const r=this.#B(t,v,b,f),o=void 0!==r.__staleWhileFetching&&i;return g&&(g.fetch=s?"stale":"refresh",o&&s&&(g.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:r}=e,o=this.#x.get(t);if(void 0!==o){const e=this.#T[o],a=this.#I(e);return r&&this.#V(r,o),this.#q(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(s||this.delete(t),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#N(o),n&&this.#Y(o),e))}r&&(r.get="miss")}#tt(t,e){this.#A[e]=t,this.#C[t]=e}#N(t){t!==this.#O&&(t===this.#E?this.#E=this.#C[t]:this.#tt(this.#A[t],this.#C[t]),this.#tt(this.#O,t),this.#O=t)}delete(t){let e=!1;if(0!==this.#k){const i=this.#x.get(t);if(void 0!==i)if(e=!0,1===this.#k)this.clear();else{this.#Q(i);const e=this.#T[i];this.#I(e)?e.__abortController.abort(new Error("deleted")):(this.#z||this.#R)&&(this.#z&&this.#b?.(e,t,"delete"),this.#R&&this.#P?.push([e,t,"delete"])),this.#x.delete(t),this.#S[i]=void 0,this.#T[i]=void 0,i===this.#O?this.#O=this.#A[i]:i===this.#E?this.#E=this.#C[i]:(this.#C[this.#A[i]]=this.#C[i],this.#A[this.#C[i]]=this.#A[i]),this.#k--,this.#M.push(i)}}if(this.#R&&this.#P?.length){const t=this.#P;let e;for(;e=t?.shift();)this.#v?.(...e)}return e}clear(){for(const t of this.#$({allowStale:!0})){const e=this.#T[t];if(this.#I(e))e.__abortController.abort(new Error("deleted"));else{const i=this.#S[t];this.#z&&this.#b?.(e,i,"delete"),this.#R&&this.#P?.push([e,i,"delete"])}}if(this.#x.clear(),this.#T.fill(void 0),this.#S.fill(void 0),this.#j&&this.#L&&(this.#j.fill(0),this.#L.fill(0)),this.#F&&this.#F.fill(0),this.#E=0,this.#O=0,this.#M.length=0,this.#_=0,this.#k=0,this.#R&&this.#P){const t=this.#P;let e;for(;e=t?.shift();)this.#v?.(...e)}}}var ft=i(17);const mt=require("url"),gt=require("fs");var yt=i.t(gt,2);const bt=require("fs/promises"),vt=require("events"),wt=require("stream"),kt=require("string_decoder"),_t="object"==typeof process&&process?process:{stdout:null,stderr:null},xt=t=>!!t&&"object"==typeof t&&(t instanceof ae||t instanceof wt||St(t)||Tt(t)),St=t=>!!t&&"object"==typeof t&&t instanceof vt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==wt.Writable.prototype.pipe,Tt=t=>!!t&&"object"==typeof t&&t instanceof vt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Ct=Symbol("EOF"),At=Symbol("maybeEmitEnd"),Et=Symbol("emittedEnd"),Ot=Symbol("emittingEnd"),Mt=Symbol("emittedError"),Pt=Symbol("closed"),Ft=Symbol("read"),Lt=Symbol("flush"),jt=Symbol("flushChunk"),zt=Symbol("encoding"),Dt=Symbol("decoder"),Rt=Symbol("flowing"),It=Symbol("paused"),Bt=Symbol("resume"),Nt=Symbol("buffer"),Wt=Symbol("pipes"),$t=Symbol("bufferLength"),qt=Symbol("bufferPush"),Ut=Symbol("bufferShift"),Gt=Symbol("objectMode"),Ht=Symbol("destroyed"),Yt=Symbol("error"),Vt=Symbol("emitData"),Qt=Symbol("emitEnd"),Jt=Symbol("emitEnd2"),Zt=Symbol("async"),Xt=Symbol("abort"),Kt=Symbol("aborted"),te=Symbol("signal"),ee=Symbol("dataListeners"),ie=Symbol("discarded"),ne=t=>Promise.resolve().then(t),se=t=>t();class re{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Bt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class oe extends re{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class ae extends vt.EventEmitter{[Rt]=!1;[It]=!1;[Wt]=[];[Nt]=[];[Gt];[zt];[Zt];[Dt];[Ct]=!1;[Et]=!1;[Ot]=!1;[Pt]=!1;[Mt]=null;[$t]=0;[Ht]=!1;[te];[Kt]=!1;[ee]=0;[ie]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[Gt]=!0,this[zt]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[zt]=e.encoding,this[Gt]=!1):(this[Gt]=!1,this[zt]=null),this[Zt]=!!e.async,this[Dt]=this[zt]?new kt.StringDecoder(this[zt]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Nt]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Wt]});const{signal:n}=e;n&&(this[te]=n,n.aborted?this[Xt]():n.addEventListener("abort",(()=>this[Xt]())))}get bufferLength(){return this[$t]}get encoding(){return this[zt]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Gt]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Zt]}set async(t){this[Zt]=this[Zt]||!!t}[Xt](){this[Kt]=!0,this.emit("abort",this[te]?.reason),this.destroy(this[te]?.reason)}get aborted(){return this[Kt]}set aborted(t){}write(t,e,i){if(this[Kt])return!1;if(this[Ct])throw new Error("write after end");if(this[Ht])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const n=this[Zt]?ne:se;if(!this[Gt]&&!Buffer.isBuffer(t))if(s=t,!Buffer.isBuffer(s)&&ArrayBuffer.isView(s))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var s;return this[Gt]?(this[Rt]&&0!==this[$t]&&this[Lt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[$t]&&this.emit("readable"),i&&n(i),this[Rt]):t.length?("string"!=typeof t||e===this[zt]&&!this[Dt]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[zt]&&(t=this[Dt].write(t)),this[Rt]&&0!==this[$t]&&this[Lt](!0),this[Rt]?this.emit("data",t):this[qt](t),0!==this[$t]&&this.emit("readable"),i&&n(i),this[Rt]):(0!==this[$t]&&this.emit("readable"),i&&n(i),this[Rt])}read(t){if(this[Ht])return null;if(this[ie]=!1,0===this[$t]||0===t||t&&t>this[$t])return this[At](),null;this[Gt]&&(t=null),this[Nt].length>1&&!this[Gt]&&(this[Nt]=[this[zt]?this[Nt].join(""):Buffer.concat(this[Nt],this[$t])]);const e=this[Ft](t||null,this[Nt][0]);return this[At](),e}[Ft](t,e){if(this[Gt])this[Ut]();else{const i=e;t===i.length||null===t?this[Ut]():"string"==typeof i?(this[Nt][0]=i.slice(t),e=i.slice(0,t),this[$t]-=t):(this[Nt][0]=i.subarray(t),e=i.subarray(0,t),this[$t]-=t)}return this.emit("data",e),this[Nt].length||this[Ct]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Ct]=!0,this.writable=!1,!this[Rt]&&this[It]||this[At](),this}[Bt](){this[Ht]||(this[ee]||this[Wt].length||(this[ie]=!0),this[It]=!1,this[Rt]=!0,this.emit("resume"),this[Nt].length?this[Lt]():this[Ct]?this[At]():this.emit("drain"))}resume(){return this[Bt]()}pause(){this[Rt]=!1,this[It]=!0,this[ie]=!1}get destroyed(){return this[Ht]}get flowing(){return this[Rt]}get paused(){return this[It]}[qt](t){this[Gt]?this[$t]+=1:this[$t]+=t.length,this[Nt].push(t)}[Ut](){return this[Gt]?this[$t]-=1:this[$t]-=this[Nt][0].length,this[Nt].shift()}[Lt](t=!1){do{}while(this[jt](this[Ut]())&&this[Nt].length);t||this[Nt].length||this[Ct]||this.emit("drain")}[jt](t){return this.emit("data",t),this[Rt]}pipe(t,e){if(this[Ht])return t;this[ie]=!1;const i=this[Et];return e=e||{},t===_t.stdout||t===_t.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[Wt].push(e.proxyErrors?new oe(this,t,e):new re(this,t,e)),this[Zt]?ne((()=>this[Bt]())):this[Bt]()),t}unpipe(t){const e=this[Wt].find((e=>e.dest===t));e&&(1===this[Wt].length?(this[Rt]&&0===this[ee]&&(this[Rt]=!1),this[Wt]=[]):this[Wt].splice(this[Wt].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[ie]=!1,this[ee]++,this[Wt].length||this[Rt]||this[Bt]();else if("readable"===t&&0!==this[$t])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Et])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[Mt]){const t=e;this[Zt]?ne((()=>t.call(this,this[Mt]))):t.call(this,this[Mt])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[ee]=this.listeners("data").length,0!==this[ee]||this[ie]||this[Wt].length||(this[Rt]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[ee]=0,this[ie]||this[Wt].length||(this[Rt]=!1)),e}get emittedEnd(){return this[Et]}[At](){this[Ot]||this[Et]||this[Ht]||0!==this[Nt].length||!this[Ct]||(this[Ot]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Pt]&&this.emit("close"),this[Ot]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==Ht&&this[Ht])return!1;if("data"===t)return!(!this[Gt]&&!i)&&(this[Zt]?(ne((()=>this[Vt](i))),!0):this[Vt](i));if("end"===t)return this[Qt]();if("close"===t){if(this[Pt]=!0,!this[Et]&&!this[Ht])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[Mt]=i,super.emit(Yt,i);const t=!(this[te]&&!this.listeners("error").length)&&super.emit("error",i);return this[At](),t}if("resume"===t){const t=super.emit("resume");return this[At](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[At](),n}[Vt](t){for(const e of this[Wt])!1===e.dest.write(t)&&this.pause();const e=!this[ie]&&super.emit("data",t);return this[At](),e}[Qt](){return!this[Et]&&(this[Et]=!0,this.readable=!1,this[Zt]?(ne((()=>this[Jt]())),!0):this[Jt]())}[Jt](){if(this[Dt]){const t=this[Dt].end();if(t){for(const e of this[Wt])e.dest.write(t);this[ie]||super.emit("data",t)}}for(const t of this[Wt])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[Gt]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[Gt]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[Gt])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[zt]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(Ht,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[ie]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Ct])return e();let n,s;const r=t=>{this.off("data",o),this.off("end",a),this.off(Ht,l),e(),s(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(Ht,l),this.pause(),n({value:t,done:!!this[Ct]})},a=()=>{this.off("error",r),this.off("data",o),this.off(Ht,l),e(),n({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{s=e,n=t,this.once(Ht,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[ie]=!1;let t=!1;const e=()=>(this.pause(),this.off(Yt,e),this.off(Ht,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(Yt,e),this.once(Ht,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[Ht]?(t?this.emit("error",t):this.emit(Ht),this):(this[Ht]=!0,this[ie]=!0,this[Nt].length=0,this[$t]=0,"function"!=typeof this.close||this[Pt]||this.close(),t?this.emit("error",t):this.emit(Ht),this)}static get isStream(){return xt}}const le=gt.realpathSync.native,ce={lstatSync:gt.lstatSync,readdir:gt.readdir,readdirSync:gt.readdirSync,readlinkSync:gt.readlinkSync,realpathSync:le,promises:{lstat:bt.lstat,readdir:bt.readdir,readlink:bt.readlink,realpath:bt.realpath}},he=t=>t&&t!==ce&&t!==yt?{...ce,...t,promises:{...ce.promises,...t.promises||{}}}:ce,ue=/^\\\\\?\\([a-z]:)\\?$/i,pe=/[\\\/]/,de=10,fe=15,me=-16,ge=128,ye=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?de:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,be=new Map,ve=t=>{const e=be.get(t);if(e)return e;const i=t.normalize("NFKD");return be.set(t,i),i},we=new Map,ke=t=>{const e=we.get(t);if(e)return e;const i=ve(t.toLowerCase());return we.set(t,i),i};class _e extends dt{constructor(){super({max:256})}}class xe extends dt{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}const Se=Symbol("PathScurry setAsCwd");class Te{name;root;roots;parent;nocase;#et;#it;get dev(){return this.#it}#nt;get mode(){return this.#nt}#st;get nlink(){return this.#st}#rt;get uid(){return this.#rt}#ot;get gid(){return this.#ot}#at;get rdev(){return this.#at}#lt;get blksize(){return this.#lt}#ct;get ino(){return this.#ct}#k;get size(){return this.#k}#ht;get blocks(){return this.#ht}#ut;get atimeMs(){return this.#ut}#pt;get mtimeMs(){return this.#pt}#dt;get ctimeMs(){return this.#dt}#ft;get birthtimeMs(){return this.#ft}#mt;get atime(){return this.#mt}#gt;get mtime(){return this.#gt}#yt;get ctime(){return this.#yt}#bt;get birthtime(){return this.#bt}#vt;#wt;#kt;#_t;#xt;#St;#Tt;#Ct;#At;#Et;get path(){return(this.parent||this).fullpath()}constructor(t,e=0,i,n,s,r,o){this.name=t,this.#vt=s?ke(t):ve(t),this.#Tt=1023&e,this.nocase=s,this.roots=n,this.root=i||this,this.#Ct=r,this.#kt=o.fullpath,this.#xt=o.relative,this.#St=o.relativePosix,this.parent=o.parent,this.parent?this.#et=this.parent.#et:this.#et=he(o.fs)}depth(){return void 0!==this.#wt?this.#wt:this.parent?this.#wt=this.parent.depth()+1:this.#wt=0}childrenCache(){return this.#Ct}resolve(t){if(!t)return this;const e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Ot(i):this.#Ot(i)}#Ot(t){let e=this;for(const i of t)e=e.child(i);return e}children(){const t=this.#Ct.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#Ct.set(this,e),this.#Tt&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const i=this.children(),n=this.nocase?ke(t):ve(t);for(const t of i)if(t.#vt===n)return t;const s=this.parent?this.sep:"",r=this.#kt?this.#kt+s+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:r});return this.canReaddir()||(o.#Tt|=ge),i.push(o),o}relative(){if(void 0!==this.#xt)return this.#xt;const t=this.name,e=this.parent;if(!e)return this.#xt=this.name;const i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(void 0!==this.#St)return this.#St;const t=this.name,e=this.parent;if(!e)return this.#St=this.fullpathPosix();const i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#kt)return this.#kt;const t=this.name,e=this.parent;if(!e)return this.#kt=this.name;const i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#kt=i}fullpathPosix(){if(void 0!==this.#_t)return this.#_t;if("/"===this.sep)return this.#_t=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#_t=`//?/${t}`:this.#_t=t}const t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#_t=i}isUnknown(){return 0==(this.#Tt&fe)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#Tt&fe)}isDirectory(){return 4==(this.#Tt&fe)}isCharacterDevice(){return 2==(this.#Tt&fe)}isBlockDevice(){return 6==(this.#Tt&fe)}isFIFO(){return 1==(this.#Tt&fe)}isSocket(){return 12==(this.#Tt&fe)}isSymbolicLink(){return(this.#Tt&de)===de}lstatCached(){return 32&this.#Tt?this:void 0}readlinkCached(){return this.#At}realpathCached(){return this.#Et}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#At)return!0;if(!this.parent)return!1;const t=this.#Tt&fe;return!(0!==t&&t!==de||256&this.#Tt||this.#Tt&ge)}calledReaddir(){return!!(16&this.#Tt)}isENOENT(){return!!(this.#Tt&ge)}isNamed(t){return this.nocase?this.#vt===ke(t):this.#vt===ve(t)}async readlink(){const t=this.#At;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#et.promises.readlink(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#At=e}catch(t){return void this.#Mt(t.code)}}readlinkSync(){const t=this.#At;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#et.readlinkSync(this.fullpath()),e=this.parent.resolve(t);if(e)return this.#At=e}catch(t){return void this.#Mt(t.code)}}#Pt(t){this.#Tt|=16;for(let e=t.provisional;e<t.length;e++)t[e].#Ft()}#Ft(){this.#Tt&ge||(this.#Tt=(this.#Tt|ge)&me,this.#Lt())}#Lt(){const t=this.children();t.provisional=0;for(const e of t)e.#Ft()}#jt(){this.#Tt|=512,this.#zt()}#zt(){if(64&this.#Tt)return;let t=this.#Tt;4==(t&fe)&&(t&=me),this.#Tt=64|t,this.#Lt()}#Dt(t=""){"ENOTDIR"===t||"EPERM"===t?this.#zt():"ENOENT"===t?this.#Ft():this.children().provisional=0}#Rt(t=""){"ENOTDIR"===t?this.parent.#zt():"ENOENT"===t&&this.#Ft()}#Mt(t=""){let e=this.#Tt;e|=256,"ENOENT"===t&&(e|=ge),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=me),this.#Tt=e,"ENOTDIR"===t&&this.parent&&this.parent.#zt()}#It(t,e){return this.#Bt(t,e)||this.#Nt(t,e)}#Nt(t,e){const i=ye(t),n=this.newChild(t.name,i,{parent:this}),s=n.#Tt&fe;return 4!==s&&s!==de&&0!==s&&(n.#Tt|=64),e.unshift(n),e.provisional++,n}#Bt(t,e){for(let i=e.provisional;i<e.length;i++){const n=e[i];if((this.nocase?ke(t.name):ve(t.name))===n.#vt)return this.#Wt(t,n,i,e)}}#Wt(t,e,i,n){const s=e.name;return e.#Tt=e.#Tt&me|ye(t),s!==t.name&&(e.name=t.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(e)),n.provisional++,e}async lstat(){if(0==(this.#Tt&ge))try{return this.#$t(await this.#et.promises.lstat(this.fullpath())),this}catch(t){this.#Rt(t.code)}}lstatSync(){if(0==(this.#Tt&ge))try{return this.#$t(this.#et.lstatSync(this.fullpath())),this}catch(t){this.#Rt(t.code)}}#$t(t){const{atime:e,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:r,blocks:o,ctime:a,ctimeMs:l,dev:c,gid:h,ino:u,mode:p,mtime:d,mtimeMs:f,nlink:m,rdev:g,size:y,uid:b}=t;this.#mt=e,this.#ut=i,this.#bt=n,this.#ft=s,this.#lt=r,this.#ht=o,this.#yt=a,this.#dt=l,this.#it=c,this.#ot=h,this.#ct=u,this.#nt=p,this.#gt=d,this.#pt=f,this.#st=m,this.#at=g,this.#k=y,this.#rt=b;const v=ye(t);this.#Tt=this.#Tt&me|v|32,0!==v&&4!==v&&v!==de&&(this.#Tt|=64)}#qt=[];#Ut=!1;#Gt(t){this.#Ut=!1;const e=this.#qt.slice();this.#qt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const i=this.children();if(this.calledReaddir()){const n=i.slice(0,i.provisional);return void(e?t(null,n):queueMicrotask((()=>t(null,n))))}if(this.#qt.push(t),this.#Ut)return;this.#Ut=!0;const n=this.fullpath();this.#et.readdir(n,{withFileTypes:!0},((t,e)=>{if(t)this.#Dt(t.code),i.provisional=0;else{for(const t of e)this.#It(t,i);this.#Pt(i)}this.#Gt(i.slice(0,i.provisional))}))}#Ht;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#Ht)await this.#Ht;else{let i=()=>{};this.#Ht=new Promise((t=>i=t));try{for(const i of await this.#et.promises.readdir(e,{withFileTypes:!0}))this.#It(i,t);this.#Pt(t)}catch(e){this.#Dt(e.code),t.provisional=0}this.#Ht=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const i of this.#et.readdirSync(e,{withFileTypes:!0}))this.#It(i,t);this.#Pt(t)}catch(e){this.#Dt(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#Tt)return!1;const t=fe&this.#Tt;return 0===t||4===t||t===de}shouldWalk(t,e){return 4==(4&this.#Tt)&&!(704&this.#Tt)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Et)return this.#Et;if(!(896&this.#Tt))try{const t=await this.#et.promises.realpath(this.fullpath());return this.#Et=this.resolve(t)}catch(t){this.#jt()}}realpathSync(){if(this.#Et)return this.#Et;if(!(896&this.#Tt))try{const t=this.#et.realpathSync(this.fullpath());return this.#Et=this.resolve(t)}catch(t){this.#jt()}}[Se](t){if(t===this)return;const e=new Set([]);let i=[],n=this;for(;n&&n.parent;)e.add(n),n.#xt=i.join(this.sep),n.#St=i.join("/"),n=n.parent,i.push("..");for(n=t;n&&n.parent&&!e.has(n);)n.#xt=void 0,n.#St=void 0,n=n.parent}}class Ce extends Te{sep="\\";splitSep=pe;constructor(t,e=0,i,n,s,r,o){super(t,e,i,n,s,r,o)}newChild(t,e=0,i={}){return new Ce(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return ft.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(ue,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new Oe(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(ue,"$1\\"))===e}}class Ae extends Te{splitSep="/";sep="/";constructor(t,e=0,i,n,s,r,o){super(t,e,i,n,s,r,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,i={}){return new Ae(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}}class Ee{root;rootPath;roots;cwd;#Yt;#Vt;#Ct;nocase;#et;constructor(t=process.cwd(),e,i,{nocase:n,childrenCacheSize:s=16384,fs:r=ce}={}){this.#et=he(r),(t instanceof URL||t.startsWith("file://"))&&(t=(0,mt.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#Yt=new _e,this.#Vt=new _e,this.#Ct=new xe(s);const a=o.substring(this.rootPath.length).split(i);if(1!==a.length||a[0]||a.pop(),void 0===n)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#et),this.roots[this.rootPath]=this.root;let l=this.root,c=a.length-1;const h=e.sep;let u=this.rootPath,p=!1;for(const t of a){const e=c--;l=l.child(t,{relative:new Array(e).fill("..").join(h),relativePosix:new Array(e).fill("..").join("/"),fullpath:u+=(p?"":h)+t}),p=!0}this.cwd=l}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#Ct}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){const n=t[i];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const i=this.#Yt.get(e);if(void 0!==i)return i;const n=this.cwd.resolve(e).fullpath();return this.#Yt.set(e,n),n}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){const n=t[i];if(n&&"."!==n&&(e=e?`${n}/${e}`:n,this.isAbsolute(n)))break}const i=this.#Vt.get(e);if(void 0!==i)return i;const n=this.cwd.resolve(e).fullpathPosix();return this.#Vt.set(e,n),n}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i}=e;if(t.canReaddir()){const e=await t.readdir();return i?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t.withFileTypes,t=this.cwd);const i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t.withFileTypes,t=this.cwd);const i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t.withFileTypes,t=this.cwd);const i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t.withFileTypes,t=this.cwd);const i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=[];s&&!s(t)||o.push(i?t:t.fullpath());const a=new Set,l=(t,e)=>{a.add(t),t.readdirCB(((t,c)=>{if(t)return e(t);let h=c.length;if(!h)return e();const u=()=>{0==--h&&e()};for(const t of c)s&&!s(t)||o.push(i?t:t.fullpath()),n&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(a,r)?l(t,u):u())):t.shouldWalk(a,r)?l(t,u):u()}),!0)},c=t;return new Promise(((t,e)=>{l(c,(i=>{if(i)return e(i);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=[];s&&!s(t)||o.push(i?t:t.fullpath());const a=new Set([t]);for(const t of a){const e=t.readdirSync();for(const t of e){s&&!s(t)||o.push(i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&a.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e;s&&!s(t)||(yield i?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){s&&!s(t)||(yield i?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,r)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=new ae({objectMode:!0});s&&!s(t)||o.write(i?t:t.fullpath());const a=new Set,l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const u=(e,d,f=!1)=>{if(e)return o.emit("error",e);if(n&&!f){const t=[];for(const e of d)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>u(null,d,!0)))}for(const e of d)!e||s&&!s(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of d){const e=t.realpathCached()||t;e.shouldWalk(a,r)&&l.push(e)}t&&!o.flowing?o.once("drain",h):p||h()};let p=!0;e.readdirCB(u,!0),p=!1}};return h(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof Te||(e=t,t=this.cwd);const{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:r}=e,o=new ae({objectMode:!0}),a=new Set;s&&!s(t)||o.write(i?t:t.fullpath());const l=[t];let c=0;const h=()=>{let t=!1;for(;!t;){const e=l.shift();if(!e)return void(0===c&&o.end());c++,a.add(e);const h=e.readdirSync();for(const e of h)s&&!s(e)||o.write(i?e:e.fullpath())||(t=!0);c--;for(const t of h){let e=t;if(t.isSymbolicLink()){if(!n||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(a,r)&&l.push(e)}}t&&!o.flowing&&o.once("drain",h)};return h(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[Se](e)}}class Oe extends Ee{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,ft.win32,"\\",{...e,nocase:i}),this.nocase=i;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return ft.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ce(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}class Me extends Ee{sep="/";constructor(t=process.cwd(),e={}){const{nocase:i=!1}=e;super(t,ft.posix,"/",{...e,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new Ae(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}class Pe extends Me{constructor(t=process.cwd(),e={}){const{nocase:i=!0}=e;super(t,{...e,nocase:i})}}process.platform;const Fe="win32"===process.platform?Oe:"darwin"===process.platform?Pe:Me;class Le{#Qt;#Jt;#Zt;length;#Xt;#Kt;#te;#ee;#ie;#ne;#se=!0;constructor(t,e,i,n){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#Qt=t,this.#Jt=e,this.#Zt=i,this.#Xt=n,0===this.#Zt)if(this.isUNC()){const[t,e,i,n,...s]=this.#Qt,[r,o,a,l,...c]=this.#Jt;""===s[0]&&(s.shift(),c.shift());const h=[t,e,i,n,""].join("/"),u=[r,o,a,l,""].join("/");this.#Qt=[h,...s],this.#Jt=[u,...c],this.length=this.#Qt.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#Qt,[i,...n]=this.#Jt;""===e[0]&&(e.shift(),n.shift());const s=t+"/",r=i+"/";this.#Qt=[s,...e],this.#Jt=[r,...n],this.length=this.#Qt.length}}pattern(){return this.#Qt[this.#Zt]}isString(){return"string"==typeof this.#Qt[this.#Zt]}isGlobstar(){return this.#Qt[this.#Zt]===X}isRegExp(){return this.#Qt[this.#Zt]instanceof RegExp}globString(){return this.#te=this.#te||(0===this.#Zt?this.isAbsolute()?this.#Jt[0]+this.#Jt.slice(1).join("/"):this.#Jt.join("/"):this.#Jt.slice(this.#Zt).join("/"))}hasMore(){return this.length>this.#Zt+1}rest(){return void 0!==this.#Kt?this.#Kt:this.hasMore()?(this.#Kt=new Le(this.#Qt,this.#Jt,this.#Zt+1,this.#Xt),this.#Kt.#ne=this.#ne,this.#Kt.#ie=this.#ie,this.#Kt.#ee=this.#ee,this.#Kt):this.#Kt=null}isUNC(){const t=this.#Qt;return void 0!==this.#ie?this.#ie:this.#ie="win32"===this.#Xt&&0===this.#Zt&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#Qt;return void 0!==this.#ee?this.#ee:this.#ee="win32"===this.#Xt&&0===this.#Zt&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#Qt;return void 0!==this.#ne?this.#ne:this.#ne=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#Qt[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#Zt?t:""}checkFollowGlobstar(){return!(0===this.#Zt||!this.isGlobstar()||!this.#se)}markFollowGlobstar(){return!(0===this.#Zt||!this.isGlobstar()||!this.#se||(this.#se=!1,0))}}const je="object"==typeof process&&process?process:{stdout:null,stderr:null},ze=t=>!!t&&"object"==typeof t&&(t instanceof vi||t instanceof wt||De(t)||Re(t)),De=t=>!!t&&"object"==typeof t&&t instanceof vt.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==wt.Writable.prototype.pipe,Re=t=>!!t&&"object"==typeof t&&t instanceof vt.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,Ie=Symbol("EOF"),Be=Symbol("maybeEmitEnd"),Ne=Symbol("emittedEnd"),We=Symbol("emittingEnd"),$e=Symbol("emittedError"),qe=Symbol("closed"),Ue=Symbol("read"),Ge=Symbol("flush"),He=Symbol("flushChunk"),Ye=Symbol("encoding"),Ve=Symbol("decoder"),Qe=Symbol("flowing"),Je=Symbol("paused"),Ze=Symbol("resume"),Xe=Symbol("buffer"),Ke=Symbol("pipes"),ti=Symbol("bufferLength"),ei=Symbol("bufferPush"),ii=Symbol("bufferShift"),ni=Symbol("objectMode"),si=Symbol("destroyed"),ri=Symbol("error"),oi=Symbol("emitData"),ai=Symbol("emitEnd"),li=Symbol("emitEnd2"),ci=Symbol("async"),hi=Symbol("abort"),ui=Symbol("aborted"),pi=Symbol("signal"),di=Symbol("dataListeners"),fi=Symbol("discarded"),mi=t=>Promise.resolve().then(t),gi=t=>t();class yi{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[Ze](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class bi extends yi{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class vi extends vt.EventEmitter{[Qe]=!1;[Je]=!1;[Ke]=[];[Xe]=[];[ni];[Ye];[ci];[Ve];[Ie]=!1;[Ne]=!1;[We]=!1;[qe]=!1;[$e]=null;[ti]=0;[si]=!1;[pi];[ui]=!1;[di]=0;[fi]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");var i;e.objectMode?(this[ni]=!0,this[Ye]=null):!(i=e).objectMode&&i.encoding&&"buffer"!==i.encoding?(this[Ye]=e.encoding,this[ni]=!1):(this[ni]=!1,this[Ye]=null),this[ci]=!!e.async,this[Ve]=this[Ye]?new kt.StringDecoder(this[Ye]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[Xe]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[Ke]});const{signal:n}=e;n&&(this[pi]=n,n.aborted?this[hi]():n.addEventListener("abort",(()=>this[hi]())))}get bufferLength(){return this[ti]}get encoding(){return this[Ye]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ni]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[ci]}set async(t){this[ci]=this[ci]||!!t}[hi](){this[ui]=!0,this.emit("abort",this[pi]?.reason),this.destroy(this[pi]?.reason)}get aborted(){return this[ui]}set aborted(t){}write(t,e,i){if(this[ui])return!1;if(this[Ie])throw new Error("write after end");if(this[si])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");const n=this[ci]?mi:gi;if(!this[ni]&&!Buffer.isBuffer(t))if(s=t,!Buffer.isBuffer(s)&&ArrayBuffer.isView(s))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var s;return this[ni]?(this[Qe]&&0!==this[ti]&&this[Ge](!0),this[Qe]?this.emit("data",t):this[ei](t),0!==this[ti]&&this.emit("readable"),i&&n(i),this[Qe]):t.length?("string"!=typeof t||e===this[Ye]&&!this[Ve]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[Ye]&&(t=this[Ve].write(t)),this[Qe]&&0!==this[ti]&&this[Ge](!0),this[Qe]?this.emit("data",t):this[ei](t),0!==this[ti]&&this.emit("readable"),i&&n(i),this[Qe]):(0!==this[ti]&&this.emit("readable"),i&&n(i),this[Qe])}read(t){if(this[si])return null;if(this[fi]=!1,0===this[ti]||0===t||t&&t>this[ti])return this[Be](),null;this[ni]&&(t=null),this[Xe].length>1&&!this[ni]&&(this[Xe]=[this[Ye]?this[Xe].join(""):Buffer.concat(this[Xe],this[ti])]);const e=this[Ue](t||null,this[Xe][0]);return this[Be](),e}[Ue](t,e){if(this[ni])this[ii]();else{const i=e;t===i.length||null===t?this[ii]():"string"==typeof i?(this[Xe][0]=i.slice(t),e=i.slice(0,t),this[ti]-=t):(this[Xe][0]=i.subarray(t),e=i.subarray(0,t),this[ti]-=t)}return this.emit("data",e),this[Xe].length||this[Ie]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[Ie]=!0,this.writable=!1,!this[Qe]&&this[Je]||this[Be](),this}[Ze](){this[si]||(this[di]||this[Ke].length||(this[fi]=!0),this[Je]=!1,this[Qe]=!0,this.emit("resume"),this[Xe].length?this[Ge]():this[Ie]?this[Be]():this.emit("drain"))}resume(){return this[Ze]()}pause(){this[Qe]=!1,this[Je]=!0,this[fi]=!1}get destroyed(){return this[si]}get flowing(){return this[Qe]}get paused(){return this[Je]}[ei](t){this[ni]?this[ti]+=1:this[ti]+=t.length,this[Xe].push(t)}[ii](){return this[ni]?this[ti]-=1:this[ti]-=this[Xe][0].length,this[Xe].shift()}[Ge](t=!1){do{}while(this[He](this[ii]())&&this[Xe].length);t||this[Xe].length||this[Ie]||this.emit("drain")}[He](t){return this.emit("data",t),this[Qe]}pipe(t,e){if(this[si])return t;this[fi]=!1;const i=this[Ne];return e=e||{},t===je.stdout||t===je.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[Ke].push(e.proxyErrors?new bi(this,t,e):new yi(this,t,e)),this[ci]?mi((()=>this[Ze]())):this[Ze]()),t}unpipe(t){const e=this[Ke].find((e=>e.dest===t));e&&(1===this[Ke].length?(this[Qe]&&0===this[di]&&(this[Qe]=!1),this[Ke]=[]):this[Ke].splice(this[Ke].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const i=super.on(t,e);if("data"===t)this[fi]=!1,this[di]++,this[Ke].length||this[Qe]||this[Ze]();else if("readable"===t&&0!==this[ti])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[Ne])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[$e]){const t=e;this[ci]?mi((()=>t.call(this,this[$e]))):t.call(this,this[$e])}return i}removeListener(t,e){return this.off(t,e)}off(t,e){const i=super.off(t,e);return"data"===t&&(this[di]=this.listeners("data").length,0!==this[di]||this[fi]||this[Ke].length||(this[Qe]=!1)),i}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[di]=0,this[fi]||this[Ke].length||(this[Qe]=!1)),e}get emittedEnd(){return this[Ne]}[Be](){this[We]||this[Ne]||this[si]||0!==this[Xe].length||!this[Ie]||(this[We]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qe]&&this.emit("close"),this[We]=!1)}emit(t,...e){const i=e[0];if("error"!==t&&"close"!==t&&t!==si&&this[si])return!1;if("data"===t)return!(!this[ni]&&!i)&&(this[ci]?(mi((()=>this[oi](i))),!0):this[oi](i));if("end"===t)return this[ai]();if("close"===t){if(this[qe]=!0,!this[Ne]&&!this[si])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[$e]=i,super.emit(ri,i);const t=!(this[pi]&&!this.listeners("error").length)&&super.emit("error",i);return this[Be](),t}if("resume"===t){const t=super.emit("resume");return this[Be](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const n=super.emit(t,...e);return this[Be](),n}[oi](t){for(const e of this[Ke])!1===e.dest.write(t)&&this.pause();const e=!this[fi]&&super.emit("data",t);return this[Be](),e}[ai](){return!this[Ne]&&(this[Ne]=!0,this.readable=!1,this[ci]?(mi((()=>this[li]())),!0):this[li]())}[li](){if(this[Ve]){const t=this[Ve].end();if(t){for(const e of this[Ke])e.dest.write(t);this[fi]||super.emit("data",t)}}for(const t of this[Ke])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[ni]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[ni]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[ni])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[Ye]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(si,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[fi]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const i=this.read();if(null!==i)return Promise.resolve({done:!1,value:i});if(this[Ie])return e();let n,s;const r=t=>{this.off("data",o),this.off("end",a),this.off(si,l),e(),s(t)},o=t=>{this.off("error",r),this.off("end",a),this.off(si,l),this.pause(),n({value:t,done:!!this[Ie]})},a=()=>{this.off("error",r),this.off("data",o),this.off(si,l),e(),n({done:!0,value:void 0})},l=()=>r(new Error("stream destroyed"));return new Promise(((t,e)=>{s=e,n=t,this.once(si,l),this.once("error",r),this.once("end",a),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[fi]=!1;let t=!1;const e=()=>(this.pause(),this.off(ri,e),this.off(si,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(ri,e),this.once(si,e),{next:()=>{if(t)return e();const i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){return this[si]?(t?this.emit("error",t):this.emit(si),this):(this[si]=!0,this[fi]=!0,this[Xe].length=0,this[ti]=0,"function"!=typeof this.close||this[qe]||this.close(),t?this.emit("error",t):this.emit(si),this)}static get isStream(){return ze}}const wi="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class ki{relative;relativeChildren;absolute;absoluteChildren;constructor(t,{nobrace:e,nocase:i,noext:n,noglobstar:s,platform:r=wi}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[];const o={dot:!0,nobrace:e,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:r,nocomment:!0,nonegate:!0};for(const e of t){const t=new it(e,o);for(let e=0;e<t.set.length;e++){const i=t.set[e],n=t.globParts[e],s=new Le(i,n,0,r),a=new it(s.globString(),o),l="**"===n[n.length-1],c=s.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}}ignored(t){const e=t.fullpath(),i=`${e}/`,n=t.relative()||".",s=`${n}/`;for(const t of this.relative)if(t.match(n)||t.match(s))return!0;for(const t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(i))return!0;for(const t of this.absoluteChildren)t.match(e);return!1}}class _i{store;constructor(t=new Map){this.store=t}copy(){return new _i(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const i=t.fullpath(),n=this.store.get(i);n?n.add(e.globString()):this.store.set(i,new Set([e.globString()]))}}class xi{store=new Map;add(t,e,i){const n=(e?2:0)|(i?1:0),s=this.store.get(t);this.store.set(t,void 0===s?n:n&s)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}class Si{store=new Map;add(t,e){if(!t.canReaddir())return;const i=this.store.get(t);i?i.find((t=>t.globString()===e.globString()))||i.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}class Ti{hasWalkedCache;matches=new xi;subwalks=new Si;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new _i}processPatterns(t,e){this.patterns=e;const i=e.map((e=>[t,e]));for(let[t,e]of i){this.hasWalkedCache.storeWalked(t,e);const i=e.root(),n=e.isAbsolute()&&!1!==this.opts.absolute;if(i){t=t.resolve("/"===i&&void 0!==this.opts.root?this.opts.root:i);const n=e.rest();if(!n){this.matches.add(t,!0,!1);continue}e=n}if(t.isENOENT())continue;let s,r,o=!1;for(;"string"==typeof(s=e.pattern())&&(r=e.rest());){const i=t.resolve(s);t=i,e=r,o=!0}if(s=e.pattern(),r=e.rest(),o){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof s)if(s===X){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const i=r?.pattern(),s=r?.rest();if(r&&(""!==i&&"."!==i||s)){if(".."===i){const e=t.parent||t;s?this.hasWalkedCache.hasWalked(e,s)||this.subwalks.add(e,s):this.matches.add(e,n,!0)}}else this.matches.add(t,n,""===i||"."===i)}else s instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===s||""===s||"."===s;this.matches.add(t.resolve(s),n,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Ti(this.opts,this.hasWalkedCache)}filterEntries(t,e){const i=this.subwalks.get(t),n=this.child();for(const t of e)for(const e of i){const i=e.isAbsolute(),s=e.pattern(),r=e.rest();s===X?n.testGlobstar(t,e,r,i):s instanceof RegExp?n.testRegExp(t,s,r,i):n.testString(t,s,r,i)}return n}testGlobstar(t,e,i,n){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,n,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){const e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),n);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),n)}}testRegExp(t,e,i,n){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}testString(t,e,i,n){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,n,!1))}}class Ci{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#re=[];#oe;#ae;signal;maxDepth;constructor(t,e,i){this.patterns=t,this.path=e,this.opts=i,this.#ae=i.posix||"win32"!==i.platform?"/":"\\",i.ignore&&(this.#oe=((t,e)=>"string"==typeof t?new ki([t],e):Array.isArray(t)?new ki(t,e):t)(i.ignore,i)),this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",(()=>{this.#re.length=0})))}#le(t){return this.seen.has(t)||!!this.#oe?.ignored?.(t)}#ce(t){return!!this.#oe?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#re.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#re.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||await t.realpath(),!i)return;t=i}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?await t.lstat():t,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.#le(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=t.realpathCached()||t.realpathSync(),!i)return;t=i}const n=t.isUnknown()||this.opts.stat;return this.matchCheckTest(n?t.lstatSync():t,e)}matchFinish(t,e){if(this.#le(t))return;const i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const n=this.opts.mark&&t.isDirectory()?this.#ae:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+n)}else{const e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#ae)?"."+this.#ae:"";this.matchEmit(e?i+e+n:"."+n)}}async match(t,e,i){const n=await this.matchCheck(t,i);n&&this.matchFinish(n,e)}matchSync(t,e,i){const n=this.matchCheckSync(t,i);n&&this.matchFinish(n,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new Ti(this.opts),i)}walkCB2(t,e,i,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,i,n)));i.processPatterns(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||(s++,this.match(t,e,n).then((()=>r())));for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;s++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,r):t.readdirCB(((e,n)=>this.walkCB3(t,n,i,r)),!0)}r()}walkCB3(t,e,i,n){i=i.filterEntries(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||(s++,this.match(t,e,n).then((()=>r())));for(const[t,e]of i.subwalks.entries())s++,this.walkCB2(t,e,i.child(),r);r()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new Ti(this.opts),i)}walkCB2Sync(t,e,i,n){if(this.#ce(t))return n();if(this.signal?.aborted&&n(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,i,n)));i.processPatterns(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||this.matchSync(t,e,n);for(const t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;s++;const e=t.readdirSync();this.walkCB3Sync(t,e,i,r)}r()}walkCB3Sync(t,e,i,n){i=i.filterEntries(t,e);let s=1;const r=()=>{0==--s&&n()};for(const[t,e,n]of i.matches.entries())this.#le(t)||this.matchSync(t,e,n);for(const[t,e]of i.subwalks.entries())s++,this.walkCB2Sync(t,e,i.child(),r);r()}}class Ai extends Ci{matches;constructor(t,e,i){super(t,e,i),this.matches=new Set}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}}class Ei extends Ci{results;constructor(t,e,i){super(t,e,i),this.results=new vi({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}const Oi="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class Mi{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,mt.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||Oi,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?Oe:"darwin"===e.platform?Pe:e.platform?Me:Fe;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const i="darwin"===this.platform||"win32"===this.platform,n={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map((t=>new it(t,n))),[r,o]=s.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=r.map(((t,e)=>new Le(t,o[e],0,this.platform)))}async walk(){return[...await new Ai(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walk()]}walkSync(){return[...new Ai(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).walkSync()]}stream(){return new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).stream()}streamSync(){return new Ei(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}function Pi(t,e={}){return new Mi(t,e).streamSync()}function Fi(t,e={}){return new Mi(t,e).stream()}function Li(t,e={}){return new Mi(t,e).walkSync()}async function ji(t,e={}){return new Mi(t,e).walk()}function zi(t,e={}){return new Mi(t,e).iterateSync()}function Di(t,e={}){return new Mi(t,e).iterate()}const Ri=Pi,Ii=Object.assign(Fi,{sync:Pi}),Bi=zi,Ni=Object.assign(Di,{sync:zi}),Wi=Object.assign(Li,{stream:Pi,iterate:zi}),$i=Object.assign(ji,{glob:ji,globSync:Li,sync:Wi,globStream:Fi,stream:Ii,globStreamSync:Pi,streamSync:Ri,globIterate:Di,iterate:Ni,globIterateSync:zi,iterateSync:Bi,Glob:Mi,hasMagic:(t,e={})=>{Array.isArray(t)||(t=[t]);for(const i of t)if(new it(i,e).hasMagic())return!0;return!1},escape:O,unescape:b});$i.glob=$i;var qi,Ui,Gi=i(991);function Hi(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Yi(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Yi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function Yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Vi={size:["xs","sm","md","lg","xl"],type:["a","submit","button","reset","image/png"],target:["_blank","_self","_parent","_top"],offset:["[8, 8]","[5, 10]"],tag1:["div","span"],tag2:["div","span","form"],tag3:["div","span","label"],tag4:["div","span","i"],tag5:["div","span","blockquote"],tag6:["div","span","a","label"],tag7:["div","span","ul","ol"],tag8:["h3","div","span","h1"],transitions:["fade","scale","rotate","slide-down","slide-right","slide-left","slide-up","jump-down","jump-right","jump-left","jump-up","flip-down","flip-right","flip-left","flip-up"]};Vi.spaced=Vi.size,Vi.gutter=Vi.padding=["none"].concat(h(Vi.size)),Vi.menuOffset=Vi.offset,Vi.transitionShow=Vi.transitionHide=Vi.transition=Vi.transitions;var Qi=Vi.tag1,Ji=Vi.tag2,Zi=Vi.tag3,Xi=Vi.tag4,Ki=Vi.tag5,tn=Vi.tag6,en=Vi.tag7,nn=Vi.tag8,sn=(n(qi={default:function(t){var e=Vi[t];if(e)return{customType:"select",options:e}},QBreadcrumbs:{separator:{customType:"select",options:["/","-","|",">"]}},QBreadcrumbsEl:{tag:{customType:"select",options:Qi}},QCard:{tag:{customType:"select",options:Ji}},QCardSection:{tag:{customType:"select",options:Ji}},QEditor:{toolbarBg:{customType:"color",options:[]}},QChatMessage:{size:{customType:"select",options:[1,2,3,4,5,6,7,8,9,10,11,12]}},QDate:{mask:{customType:"select",options:["YYYY/MM/DD","YYYY-MM-DD","MMMM Do, YYYY","YYYY-MM-DD HH:mm:ss"]}},QField:{tag:{customType:"select",options:Zi}},QIcon:{tag:{customType:"select",options:Xi}},QInput:{mask:{customType:"select",options:["###-##","date","datetime","time","fulltime","phone","card"]}},QIntersection:{tag:{customType:"select",options:Ki}},QItem:{tag:{customType:"select",options:tn}},QKnob:{tag:{customType:"select",options:tn}},QLinearProgress:{tag:{customType:"select",options:en}},QNoSsr:{tag:{customType:"select",options:Ki}},QRating:{colorSelected:{customType:"color",options:[]},colorHalf:{customType:"color",options:[]}},QSkeleton:{tag:{customType:"select",options:Qi}}},"QDate",{mask:{customType:"select",options:["HH:mm","HH:mm:ss","YYYY-MM-DD HH:mm:ss","HH:mm MMMM Do, YYYY"]}}),n(qi,"QTimelineEntry",{tag:{customType:"select",options:nn}}),qi);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===Gi.Yr.key&&function(){(Ui=Ui||c(u.mark((function t(){var e,i,n,s,r,o;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=26;break}if(i=path.resolve(e,"node_modules","quasar","dist","api"),!fs.existsSync(i)||!fs.statSync(i).isDirectory()){t.next=26;break}return t.next=6,$i("*.json",{cwd:path.resolve(i),withFileTypes:!0});case 6:n=(n=t.sent).sort((function(t,e){return t.fullpath().localeCompare(e.fullpath())})),s=Hi(n),t.prev=9,o=u.mark((function t(){var e,i,n,s,o,a,c;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=r.value).isFile()){t.next=11;break}if(i=e.fullpath(),n=e.name,s=n.replace(path.extname(n),""),(a=fs.readFileSync(i,{encoding:"utf8",flag:"r"})).trim()&&(o=JSON.parse(a)||{}),"component"===o.type){t.next=9;break}return t.abrupt("return",1);case 9:c=o.props||{},Object.entries(c).filter((function(t){var e=l(t,2);return e[0],e[1].values})).forEach((function(t){var e=l(t,2),i=e[0],n=e[1];sn[s]||(sn[s]={}),sn[s][i]={customType:"select",options:n.values}}));case 11:case"end":return t.stop()}}),t)})),s.s();case 12:if((r=s.n()).done){t.next=18;break}return t.delegateYield(o(),"t0",14);case 14:if(!t.t0){t.next=16;break}return t.abrupt("continue",16);case 16:t.next=12;break;case 18:t.next=23;break;case 20:t.prev=20,t.t1=t.catch(9),s.e(t.t1);case 23:return t.prev=23,s.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,null,[[9,20,23,26]])})))).apply(this,arguments)}()}));var rn={default:function(t){return["placeholderSrc","src","srcset","imgSrc","trackImg","innerTrackImg","selectionImg","avatar","appendAvatar","prependAvatar"].includes(t)?{customType:"image"}:t.toLowerCase().endsWith("icon")?{customType:"icon"}:t.toLowerCase().endsWith("color")?{customType:"color"}:void 0}};function on(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function an(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?on(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):on(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var ln={QBtn:{props:{label:"My Button"}},QIcon:{props:{name:"i-mdi-home"}},QImg:{props:{src:"https://images.unsplash.com/photo-1551120738-c3fcea8d0cf8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDkyMnwwfDF8c2VhcmNofDJ8fHBpbmUlMjB0cmVlfGVufDB8fHx8MTY1Njc1MzAyMg&ixlib=rb-1.2.1&q=80&w=1080"}}};function cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function hn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function un(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):hn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var pn,dn=function(t){return t.replaceAll(" ","-").toLowerCase()},fn=[{label:"Buttons",value:"button"},{label:"Inputs",value:"input"},{label:"Loading",value:"loading"},{label:"Media",value:"media"},{label:"Navigation",value:"navigation"},{label:"Panels & Popups",value:"panel"},{label:"Scroll",value:"scroll"},{label:"Tables",value:"table"},{label:"Other Components",value:"other"},{label:"Directives",value:"directive"},{label:"Plugins",value:"plugin"},{label:"Utils",value:"util"}],mn=[].concat(h([{label:"Ajax-bar",name:"ajax-bar",description:"A loading bar for ajax calls in progress",tag:"loading"},{label:"Avatar",name:"avatar",description:"A space for your portrait, icon or text",tag:"media"},{label:"Badge",name:"badge",description:"To highlight small but important info",tag:"media"},{label:"Banner",name:"banner",description:"To display important messages and actions",tag:"panel"},{label:"Bar",name:"bar",description:"A small top bar for side info and actions",tag:"other"},{label:"Breadcrumbs",name:"breadcrumbs",description:"To keep track of your position inside app",tag:"navigation"},{label:"BreadcrumbsEl",name:"breadcrumbs-el",description:"To keep track of your position inside app",tag:"navigation"},{label:"Buttons",name:"btn",description:"To access the most important actions",tag:"button",path:"button"},{label:"Buttons Dropdown",name:"btn-dropdown",description:"To access more actions at once in less space",tag:"button",path:"button-dropdown"},{label:"Buttons Group",name:"btn-group",description:"An alternative to classic buttons",tag:"button",path:"button-group"},{label:"Floating Action Button",name:"fab",description:"To display the page primary action",tag:"button"},{label:"Toggle Buttons",name:"btn-toggle",description:"An alternative to pick an option among many",tag:"button",path:"button-toggle"},{label:"Toggle",name:"toggle",description:"To switch an option on and off",tag:"button"},{label:"Card",name:"card",description:"To display grouped contents",tag:"panel",path:"card"},{label:"Card Section",name:"card-section",description:"",tag:"panel",path:"card"},{label:"Card Actions",name:"card-actions",description:"",tag:"panel",path:"card"},{label:"Carousel",name:"carousel",description:"To display images and other contents",tag:"media",path:"carousel"},{label:"Carousel Control",name:"carousel-control",description:"",tag:"media",path:"carousel"},{label:"Carousel Slide",name:"carousel-slide",description:"",tag:"media",path:"carousel"},{label:"Chat Message",name:"chat-message",description:"To display users' conversations",tag:"other",path:"chat"},{label:"Checkbox",name:"checkbox",description:"To flag one or more options in a list",tag:"input"},{label:"Chips",name:"chip",description:"A small container for info and actions",tag:"media",path:"chip"},{label:"Circular Progress",name:"circular-progress",description:"To inform when content is still loading",tag:"loading"},{label:"Color Pickers",name:"color",description:"To select color values and codes",tag:"input",path:"color-picker"},{label:"Date Picker",name:"date",description:"To access the most important actions",tag:"input",path:"date"},{label:"Dialogs",name:"dialog",description:"To show actions and info only when needed",tag:"panel",path:"dialog"},{label:"Editor WYSIWYG",name:"editor",description:"To write text and style it directly",tag:"other",path:"editor"},{label:"Expansion Panels",name:"expansion-item",description:"To show hidden extra info and actions",tag:"panel",path:"expansion-item"},{label:"File Pickers",name:"file",description:"To access and choose a file from users' device",tag:"media",path:"file"},{label:"Forms",name:"form",description:"A system to submit validated inputs",tag:"input",path:"form"},{label:"Form Fields",name:"field",description:"Wrapper for your own custom form elements",tag:"input",path:"field"},{label:"Icon",name:"icon",description:"To insert icons inside other components",tag:"media"},{label:"Img",name:"img",description:"To set some basic image features",tag:"media"},{label:"Infinite Scroll",name:"infinite-scroll",description:"To enable new content display while scrolling",tag:"scroll"},{label:"Inner Loading",name:"inner-loading",description:"To add content loading inside a component",tag:"loading"},{label:"Input Text Fields",name:"input",description:"To collect users' typed text input",tag:"input",path:"input"},{label:"Intersection",name:"intersection",description:"Set how UI elements enter the screen",tag:"loading"},{label:"Knob",name:"knob",description:"To set a value with a draggable gauge",tag:"input"},{label:"Linear Progress",name:"linear-progress",description:"A loading bar with various behaviors",tag:"loading"},{label:"List",name:"list",description:"To display contents on a vertical list",tag:"other"},{label:"List Items",name:"item",description:"",tag:"other"},{label:"List Item Section",name:"item-section",description:"",tag:"other"},{label:"List Item Label",name:"item-label",description:"",tag:"other"},{label:"Markup Table",name:"markup-table",description:"To display data and content on a table",tag:"table"},{label:"Menu",name:"menu",description:"A dropdown panel to access options",tag:"panel"},{label:"No SSR",name:"no-ssr",description:"Ignore irrelevant code during SSR generation",tag:"other"},{label:"Observer resize",name:"resize-observer",description:"Emit an Event when an element resizes",tag:"other",path:"resize-observer"},{label:"Observer scroll",name:"scroll-observer",description:"Emit an Event when the user scrolls",tag:"other",path:"scroll-observer"},{label:"Option Group",name:"option-group",description:"Helper component to set groups of options",tag:"input"},{label:"Pagination",name:"pagination",description:"To navigate content on multiple pages",tag:["navigation"]},{label:"Parallax",name:"parallax",description:"To create interesting UI image background",tag:"media"},{label:"Popup Edit",name:"popup-edit",description:"To access inline editing of data",tag:"input"},{label:"Popup Proxy",name:"popup-proxy",description:"To show extra content on click",tag:"panel"},{label:"Pull to Refresh",name:"pull-to-refresh",description:"To refresh the page content with a gesture",tag:"loading"},{label:"Radio",name:"radio",description:"To select a single option in a list",tag:"input"},{label:"Range",name:"range",description:"To pick a period on a range of values",tag:"input"},{label:"Rating",name:"rating",description:'The classic "star rating" component',tag:"other"},{label:"Responsive",name:"responsive",description:"To keep content aspect ratio consistent",tag:"other"},{label:"Scroll Area",name:"scroll-area",description:"To set a scrollable content in components",tag:"scroll"},{label:"Select",name:"select",description:"To choose one item from a dropdown list",tag:"input"},{label:"Separator",name:"separator",description:"The linear visual divider for contents",tag:"other"},{label:"Skeleton",name:"skeleton",description:"To set loading content placeholders",tag:"loading"},{label:"Slide Item",name:"slide-item",description:"To add dragging feature to list items",tag:"other"},{label:"Slider",name:"slider",description:"To pick a single value on a range",tag:"input"},{label:"Slide Transition",name:"slide-transition",description:"To show a hidden content",tag:"other"},{label:"Space",name:"space",description:"Fill space inside elements using flexbox",tag:"other"},{label:"Spinners",name:"spinner",description:"A loading indicator with various behaviors",tag:"loading"},{label:"Spinner Cube",name:"spinner-cube",description:"",tag:"loading"},{label:"Splitter",name:"splitter",description:"To add a draggable resizer for containers",tag:"other"},{label:"Stepper",name:"stepper",description:"To divide content in progressive steps",tag:"navigation"},{label:"Step",name:"step",description:"",tag:"navigation"},{label:"Stepper Navigation",name:"stepper-navigation",description:"",tag:"navigation"},{label:"Table",name:"table",description:"To display much data on a datatable",tag:"table"},{label:"Th",name:"th",description:"",tag:"table"},{label:"Tr",name:"tr",description:"",tag:"table"},{label:"Td",name:"td",description:"",tag:"table"},{label:"Tab Panels",name:"tab-panels",description:"To split out content view in the same page",tag:"navigation"},{label:"Tab Panel",name:"tab-panel",description:"To navigate separate content in one page",tag:"navigation"},{label:"Timeline",name:"timeline",description:"A vertical solution to set milestones in time",tag:"other"},{label:"Timeline Entry",name:"timeline-entry",description:"",tag:"other"},{label:"Time Picker",name:"time",description:"To set a specific time on the clock",tag:"input",path:"time"},{label:"Toolbar",name:"toolbar",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Toolbar Title",name:"toolbar-title",description:"The top main bar for actions and menu",tag:"navigation"},{label:"Tooltip",name:"tooltip",description:"To show extra useful info about the UI",tag:"media"},{label:"Tree",name:"tree",description:"An indented structure for hierarchical data",tag:"navigation"},{label:"Uploader",name:"uploader",description:"To upload any kind of file from the computer",tag:"media"},{label:"Video",name:"video",description:"To embed and display a video player in UI",tag:"media"},{label:"Virtual Scroll",name:"virtual-scroll",description:"To render new content while scrolling it",tag:"scroll"}].map((function(t){var e=fn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label,i=dn(t.name);return un(un({},t),{},{category:e,img:"https://cdn.quasar.dev/img/components/".concat(i,".jpg"),to:"/vue-components/".concat(t.path||i)})}))),h([{name:"Intersection",description:"Handle elements coming into the view",tag:"directive"},{name:"Material Ripples",description:"Apply Material ripples to elements",tag:"directive"},{name:"Mutation",description:"Watch changes being made to the DOM tree",tag:"directive"},{name:"Morph",description:"Morph DOM elements between two states",tag:"directive"},{name:"Scroll",description:"Handle page scroll",tag:"directive"},{name:"Scroll Fire",description:"Take action when element comes into view",tag:"directive"},{name:"Touch Hold",description:"Handle touch & mouse hold user actions",tag:"directive"},{name:"Touch Pan",description:"Handle touch & mouse panning user actions",tag:"directive"},{name:"Touch Repeat",description:"Handle repeated touch & mouse taps/clicks",tag:"directive"},{name:"Touch Swipe",description:"Handle touch & mouse swipe user actions",tag:"directive"}].map((function(t){var e=fn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return un(un({},t),{},{category:e,to:"/vue-directives/".concat(t.path||dn(t.name)),name:"".concat(t.path||dn(t.name))})}))),h([{name:"Addressbar Color",description:"Manage the browser addressbar color",tag:"plugin"},{name:"App Fullscreen",description:"Handle app fullscreen mode",tag:"plugin"},{name:"App Visibility",description:"For app coming into (or out of) view",tag:"plugin"},{name:"Bottom Sheet",description:"Quick way to offer a list of actions",tag:"plugin"},{name:"Cookies",description:"Easy way to manage browser cookies",tag:"plugin"},{name:"Dark Mode",description:"Manage dark mode",tag:"plugin",path:"dark"},{name:"Dialog",description:"Plugin to display a floating modal",tag:"plugin"},{name:"Loading",description:"Overlay for a background action in progress",tag:"plugin"},{name:"Loading Bar",description:"Display a loading bar for in progress Ajax calls",tag:"plugin"},{name:"Local/Session Storage",description:"Manage the local storage and session storage",tag:"plugin",path:"web-storage"},{name:"Meta Plugin",description:"Helps with SEO by managing the meta tags",tag:"plugin",path:"meta"},{name:"Notify",description:"Display floating animated messages",tag:"plugin"}].map((function(t){var e=fn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return un(un({},t),{},{category:e,to:"/quasar-plugins/".concat(t.path||dn(t.name)),name:"".concat(t.path||dn(t.name))})}))),h([{name:"Date utils",description:"Easily handle date objects",tag:"util"},{name:"DOM utils",description:"Various DOM-related helper utils",tag:"util"},{name:"Morph utils",description:"Morph DOM elements helper util",tag:"util"},{name:"Formatter utils",description:"Various text formatting utils",tag:"util"},{name:"Scrolling utils",description:"Various scrolling-related utils",tag:"util"},{name:"Type checking utils",description:"Helpers to determine variable types",tag:"util"},{name:"Event bus util",description:"Global event bus",tag:"util"},{name:"Other utils",description:"Various other utils that Quasar supplies",tag:"util"}].map((function(t){var e=fn.find((function(e){return e.value===(Array.isArray(t.tag)?t.tag[0]:t.tag)})).label;return un(un({},t),{},{category:e,to:"/quasar-utils/".concat(dn(t.name)),name:"".concat(dn(t.name))})})))).filter((function(t){return t.to.startsWith("/vue-components/")})).map((function(t,e){return{key:e,name:"q-".concat(t.name),description:t.description,tag:t.tag,category:t.category,img:t.img,haystack:"".concat(t.name," ").concat(t.description," ").concat(t.short||"").toLowerCase(),to:t.to}})),gn={},yn=function(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return cn(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cn(t,e):void 0}}(t))){i&&(t=i);var n=0,s=function(){};return{s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}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 r,o=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){a=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}(mn);try{for(yn.s();!(pn=yn.n()).done;){var bn=pn.value,vn=bn.name,wn=bn.category;gn[wn]||(gn[wn]=[]),gn[wn].push(vn)}}catch(t){yn.e(t)}finally{yn.f()}var kn=i(783);const _n=/[^\p{L}\p{N}]+/gu,xn=(t,e={})=>{const i=(t=>null==t?"":Array.isArray(t)?t.map((t=>t.toString().trim())).filter((t=>t.length>0)).join(" "):"function"==typeof t?t.name?t.name:"":"function"!=typeof t.toString?"":t.toString().trim())(t),n=e.punctuationRegex??_n,s=i?kn(n?i.replace(n," "):i,e):"";return s?s[0].toLocaleUpperCase(e.locale)+s.slice(1):""};var Sn={};Object.entries({breadcrumbs:["breadcrumbs","breadcrumbs-el"],card:["card","card-section","card-actions"],carousel:["carousel","carousel-control","carousel-slide"],list:["list","item","item-section","item-label"],spinner:["spinner","spinner-cube"],stepper:["stepper","step","stepper-navigation"],table:["table","th","tr","td"],"tab-panels":["tab-panels","tab-panel"],timeline:["timeline","timeline-entry"],toolbar:["toolbar","toolbar-title"]}).forEach((function(t){var e=l(t,2),i=(e[0],e[1]),n=i[0],s=i.slice(1,i.length);Sn[xn("q-".concat(n))]=s.map((function(t){return xn("q-".concat(t))}))}));var Tn={metaOverrides:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={customType:null,type:i.value&&i.value.type,multiple:i.multiple,options:null,required:i.required,validator:i.validator,default:i.default&&"null"!==i.default&&"undefined"!==i.default?i.default:null};return[sn,rn].reduce((function(n,s){if(Object.keys(n).length)return n;var r;s.default&&"function"==typeof s.default&&(r=null==s?void 0:s.default(o(i.name)));var a=s[t]&&s[t][o(i.name)];return e=an(an({},r||{}),a||{})}),{}),e&&(n.customType=e.customType||n.customType,n.type=e.type||n.type,n.multiple=e.multiple||n.multiple,n.options=e.options||n.options,n.required=e.required||n.required,n.validator=e.validator||n.validator,n.default=e.default||n.default),n},metaAdditions:function(t){return[sn,rn].reduce((function(e,i){if(i[t]){var n=Object.keys(i[t]),s=e.map((function(t){return o(t.name)}));n.filter((function(t){return!s.includes(t)})).forEach((function(n){var s=i[t][n];e.push({name:n,description:s.description,"doc-url":s.docUrl,default:s.default,value:s.value})}))}return e}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:[])},libraryCodeStubs:function(t){var e=ln[t],i="",n="";return e&&(e.props&&(i=Object.entries(e.props).reduce((function(t,e){var i=l(e,2),n=i[0],s=i[1],r=!0===s?"":'="'.concat(s,'"');return"".concat(t," ").concat(a(n)).concat(r)}),"")),e.defaultSlot&&(n=e.defaultSlot)),"<".concat(a(t)," ").concat(i,">").concat(n,"</").concat(a(t),">")},componentsCategorised:gn,componentGroups:Sn}},991:(t,e,i)=>{"use strict";i.d(e,{EX:()=>o,JF:()=>s,Yr:()=>a,fh:()=>r,hC:()=>n});var n=!0,s=function(t){n=t},r=!1,o=function(t){r=t},a={plugin_path:"./plugin.cjs",templates_path:"./templates",version:"2.0.0",major_version:"2",minor_version:"2",info_badge:"",type:"quasar",short_type:"quasar",allow_single_type:!0,short_name:"Quasar",dependency:"@pinegrow/quasar-module",get name(){return"".concat(this.short_name," ").concat(this.minor_version)},get key(){return"".concat(this.type)},get scriptTagId(){return"".concat(this.short_type)},get prefix(){return"".concat(this.short_type).concat(this.minor_version)},get library(){return"".concat(this.type)},syncWithLibrarySemVer:"minor",get description(){return'<a href="http://quasar.dev/">'.concat(this.name,"</a> components. Some samples are from ").concat(this.name," documentation and based on ").concat(this.short_name," ").concat(this.version,".")},author:"Pinegrow",get author_link(){return"http://github.com/pinegrow/".concat(this.type,"-plugin")},get default(){return this.pgf_type&&this.pgf_type.activated_by_default||!1},get show_in_manager(){return!1},skip_opening_new_pages_created_from_templates:!0,show_templates_only_inside_projects:!0,get simple(){return this.pgf_type&&this.pgf_type.simple||!1},ignore_css_files:[/(^|\/)quasar\.(css)/i,/(^|\/)quasar\.min\.(css)/i,/(^|\/)materialdesignicons\.(css)/i,/(^|\/)materialdesignicons\.min\.(css)/i],detect_async:function(t,e){t.stylesheetsThatContain(/quasar\sv3/i,/quasar(\.min|)\.(css)/i,(function(t){e(t.length>0)}))}}},161:(t,e,i)=>{"use strict";i.d(e,{D:()=>f});for(var n=i(290),s=i(506),r=[{key:"",name:"Distribute"},{key:"-auto",name:"Auto"},{key:"-grow",name:"Grow"},{key:"-shrink",name:"Shrink"}],o=[],a=[{key:"-first",name:"First"},{key:"-last",name:"Last"},{key:"-none",name:"None"}],l=[{key:"-grow",name:"Grow"}],c=[{key:"-shrink",name:"Shrink"}],h=[{key:"-start",name:"Start"},{key:"-end",name:"End"},{key:"-center",name:"Center"},{key:"-baseline",name:"Baseline"},{key:"-stretch",name:"Stretch"}],u=0;u<=s.XL;u++)0==u||r.push({key:"-"+u,name:u}),u!=s.XL&&o.push({key:"-"+u,name:u});var p=function(t){return t.parent&&t.parent.isSelector(".flex")},d=function(t){return!(!t.parent||!(t.parent.isSelector(".row")&&!t.hasClass("row")||t.parent.isSelector(".column")||!t.hasClass("column")&&(0,s.t3)(t.parent)))},f=function(t){return function(){var e,i,u=[],f={field_prefix:"".concat(t,"_col"),class_prefix:"col",values:r,name:"Size"},m={field_prefix:"".concat(t,"_offset"),class_prefix:"offset",values:o,name:"Offset"},g={field_prefix:"".concat(t,"_order"),class_prefix:"order",values:a,name:"Order"},y={field_prefix:"".concat(t,"_align"),class_prefix:"self",values:h,name:"Align self"};return"column"===t?u.push(f,m,g,y):u.push(m,g,{field_prefix:"".concat(t,"_grow"),class_prefix:"col",values:l,name:"Grow"},{field_prefix:"".concat(t,"_shrink"),class_prefix:"col",values:c,name:"Shrink"},y),{name:"column"===t?"Column":"Flex Child",show_if:"column"===t?d:p,fields:n({},"".concat(t,"_control'"),{type:"custom",name:"".concat(t,"_control'"),action:"none",control:(e="".concat(t,"_span'"),i=u,function(){var t=new PgCustomPropertyControl(s.O4+e);t.onDefine=function(){for(var t=0;t<i.length;t++)for(var e=0;e<s.J7.length;e++){var r=s.O4+i[t].field_prefix+"."+s.J7[e];this.registerInputField(r,n(i[t],s.J7[e]))}},t.onShow=function(){var t=$("<table/>",{class:"grid-control columns-control seven-col-grid"}),e="<td></td>";s.J7.forEach((function(t){e+='<td><label class="grid-control-size">'+t+"</label></td>"}));for(var r=$("<tr/>").html(e).appendTo(t),o=0;o<i.length;o++){r=$("<tr/>",{class:""}).appendTo(t);for(var a=$("<td/>").html('<label style="text-align:left">'+i[o].name+"</label>").appendTo(r),l=0;l<s.J7.length;l++){a=$("<td/>").appendTo(r);var c=s.O4+i[o].field_prefix+"."+s.J7[l];this.showInputField(a,c,n(i[o],s.J7[l]))}}return t},t.onSetValues=function(){};var n=function(t,e){var i=e==s.Ff?"":"-"+e,n=t.class_prefix+i,r={type:"select",name:null,action:"apply_class",draggable_list:!0,show_empty:!0,options:[],on_changed:function(t,e,i){t.setData(s.O4+"was-column",!0)}};return t.values.forEach((function(t){r.options.push({key:n+t.key,name:t.name})})),r};return t})})}}}},855:(t,e,i)=>{"use strict";i.d(e,{M:()=>r});var n=i(991),s=i(259),r=new PgFramework(n.Yr.key,n.Yr.name);r.type=n.Yr.type,r.allow_single_type=n.Yr.allow_single_type,r.description=n.Yr.description,r.author=n.Yr.author,r.author_link=n.Yr.author_link,r.info_badge=n.Yr.info_badge,r.default=n.Yr.default,r.show_in_manager=n.Yr.show_in_manager,r.ignore_css_files=n.Yr.ignore_css_files,r.detect_async=n.Yr.detect_async,r.setScriptFileByScriptTagId("plugin-".concat(n.Yr.scriptTagId,"-").concat(n.Yr.major_version,"-mt")),r.skip_opening_new_pages_created_from_templates=n.Yr.skip_opening_new_pages_created_from_templates,r.show_templates_only_inside_projects=n.Yr.show_templates_only_inside_projects,r.super_web_types=s.c,r.no_prop_section_subtitles=n.Yr.no_prop_section_subtitles,pinegrow.addFramework(r,3)},506:(t,e,i)=>{"use strict";i.d(e,{r2:()=>c,e9:()=>S,bm:()=>b,MS:()=>n.M,ac:()=>k,of:()=>w,Cw:()=>v,t3:()=>h,qV:()=>x,XL:()=>u,vz:()=>_,O4:()=>o,Ff:()=>f,J7:()=>p});for(var n=i(855),s=i(869),r=i(991),o=r.Yr.prefix,a=r.Yr.simple,l=r.Yr.short_name,c=(r.Yr.key,function(t){a||n.M.addLibSection(t)}),h=function(t){if("div"==t.tagName){if(t.parent&&t.parent.isSelector(".row")&&!t.hasClass("row"))return!0;if(t.getData(o+"was-column"))return!0}var e=t.getAttr("class");return!(!e||!e.match(/(\s|^)col($|[\-\s])/i))},u=parseInt(pinegrow.getSetting("quasar-col-num","12"))||12,p=["xs","sm","md","lg","xl"],d=[0,600,1024,1440,1920],f=p[0],m={},g=0;g<p.length;g++)m[p[g]]=d[g];var y=function(t,e,i){var n=new PgFrameworkHelpers("Quasar",t,e,i,PgBSMenuPointColumnSize);n.getCodeForLarge=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},n.getCodeForSmall=function(){var t;switch(this.version){case 2:default:t='<pgdiv class="col-1 pinegrow-ui-helper d-block d-sm-none" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>';break;case 3:t='<pgdiv class="col-xs-1 pinegrow-ui-helper visible-xs visible-xs-block" style="padding-left:0;padding-right:0;"><pgdiv class="pinegrow-ui-helper"></pgdiv></pgdiv>'}return t},n.getClassForSize=function(e,i,n){return null==n?n="":n+="",i+(e==t.size_for_all?"":"-"+e)+(n.length?"-"+n:"")},n.getColumnSizes=function(e){var i=new RegExp("^col(\\-("+t.sizes.join("|")+"))?(\\-([0-9]+|auto))?"),n={};return(e instanceof pgParserNode?e.getClasses():e.classList).forEach((function(e){var s=e.match(i);if(s){var r=s[2]||t.size_for_all,o=s[4]||"";n[r]=o}})),n},new PgDelayedTasks,n.makeFieldLabelForSize=function(t,e){return'<span class="sc-label">'+t+'</span><span class="sc-device-size" style="padding:6px">'+e+"</span>"},n.getDevicesControlFactory=function(e,i,n){var s=function(i){t.sizes.forEach((function(n){i(n,n==t.size_for_all?"":"-"+n,t.prefix+e+"."+n)}))};return function(){var r=new PgCustomPropertyControl(t.prefix+e);return r.onDefine=function(){s((function(t,e,i){var s=n(t,e);r.registerInputField(i,s)}))},r.onShow=function(){var t=$("<div/>",{class:"sc-device-control"});return $('<div class="sc-device-control-title">'+i+"</div>").appendTo(t),s((function(e,i,s){var o=n(e,i);r.showInputField(t,s,o).$field.attr("data-device-size",e)})),t},r.onSetValues=function(e){var i=!0;s((function(e,n,s){var o=r.get$Field(s);r.values[s]?(o.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1)):o.removeClass("sc-has-value")})),i?r.$element.addClass("sc-none-or-all"):r.$element.removeClass("sc-none-or-all")},r}};var s={};n.onSectionWithDevicesControlsShown=function(e,i){var r=n,o={},a=!0;t.sizes.forEach((function(t){s[e.section_key]&&s[e.section_key][t]&&(o[t]=!0)}));var l=i.$content.get(0).querySelectorAll("[data-device-size]");l.forEach((function(t){var e=t.getAttribute("data-device-size");if(!o[e]){var i=t.classList.contains("sc-has-value");o[e]=i,a=a&&!i}})),a&&(o[t.size_for_all]=!0),l.forEach((function(t){var e=t.getAttribute("data-device-size"),i=t.getAttribute("data-device-display")||"flex";o[e]?pgShow(t,i):pgHide(t)}));var c='<ul class="sc-device-selector">';t.sizes.forEach((function(t){c+='<li data-size="'+t+'" class="'+(o[t]?"sc-active":"")+'">'+t+"</li>"})),c+="</ul>";var h=$(c);i.$title.append(h),h.on("click","li",(function(t){t.preventDefault(),t.stopPropagation();var n=$(this),r=n.attr("data-size"),a=n.hasClass("sc-active");a=!a,o[r]=a,a||1!=h.find("li.sc-active").length?(s[e.section_key]||(s[e.section_key]={}),s[e.section_key][r]=a,i.$content.find('[data-device-size="'+r+'"]').each((function(t,e){var i=e.getAttribute("data-device-display")||"flex";a?(pg$Show($(e),i),n.addClass("sc-active")):(pg$Hide($(e)),n.removeClass("sc-active"))})),p()):pinegrow.showQuickError("At least one device size must be active.")}));var u,p=function(){var e=0,n=!1;t.sizes.forEach((function(i){o[i]&&(e++,i==t.size_for_all&&(n=!0))}));var s=i.$content.find(".sc-device-control");e>1?s.removeClass("sc-single-size"):s.addClass("sc-single-size"),n?s.addClass("sc-for-all-shown"):s.removeClass("sc-for-all-shown")};u=pinegrow.getSelectedPage(),l.forEach((function(t){var e=t.getAttribute("data-device-size");r.isSizeVisible(u,e)?t.classList.remove("sc-size-not-visible"):t.classList.add("sc-size-not-visible")})),h.children().each((function(t,e){var i=e.getAttribute("data-size");r.isSizeVisible(u,i)?e.classList.remove("sc-size-not-visible"):e.classList.add("sc-size-not-visible")})),p()};var r=["a","x","y","t","r","b","l"],a=["none","xs","sm","md","lg","xl","auto"],l={},c={},h=function(t){if(!t)return null;var e=t.split("-");return e.length>1?e[e.length-1]:""},u=function(t,e,i,n,s,r){var o=s[n+r];return o?t+e+("xs"!=i?"-"+i:"")+"-"+h(o):null},d=function(t,e,i,n,s,o){for(var a=3;a<r.length;a++)if(t.removeClass(s[n+r[a]]),r[a]!=o){var c=l[i][e+r[a]],h=u(e,r[a],i,n,s,"a");s[n+r[a]]=h,c.setValue(h)}},m=function(t,e,i,n){return n?t+e+("xs"!=i?"-"+i:"")+"-"+n:null},g=function(t,e,i){var n=$(t.target).closest(".change-all-icon");if(n.toggleClass("active"),n.hasClass("active")){var s=n.data("size");!function(t,e,i,n,s,o){var l=n+"."+i+"."+e,c=pinegrow.getCollectionForElement(t);pinegrow.makeChanges(c,"Set spacing",(function(){c.forEachElement((function(t){for(var n=!1,o=0;o<r.length;o++){for(var c=0;c<a.length;c++){var h=m(e,r[o],i,a[c]);if(t.hasClass(h)){t.removeClass(h);var u=e+"a"+("xs"!=i?"-"+i:"")+"-"+a[c];t.addClass(u),s[l+"a"]=u,d(t,e,i,l,s,r[o]),n=!0;break}}if(n)break}}))}))}(i.obj,e,s,i.control_id,i.values)}};n.getDevicesMarginAndPaddingControlFactory=function(e,i){var n=["q-m","q-p"],s=function(i){t.sizes.forEach((function(n){i(n,n==t.size_for_all?"":"-"+n,t.prefix+e+"."+n)}))};return function(){var o=new PgCustomPropertyControl(t.prefix+e);return o.onDefine=function(){s((function(t,e,s){for(var a=0;a<n.length;a++)for(var l=0;l<r.length;l++){var c=i(t,n[a],r[l],e),h=s+"."+n[a]+r[l];o.registerInputField(h,c)}}))},o.onShow=function(){var t,e,n,r=$('<div class="crsa-css-gui bs4-margin-and-padding"></div>'),a=this,h="",u="";return s((function(s,p,d){var f=$('<div class="margin-and-padding-container text-center" data-device-size="'+s+'"></div>').appendTo(r);$("<label/>",{class:"size-label"}).html('<span class="sc-device-size">'+s+"</span>").appendTo(f),l[s]={},c[s]={},t=i(s,h="q-m",u="t",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="l",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e;var m=$('<div class="margin-border"></div>').appendTo(f),y=$('<div class="change-all-margin-icon change-all-icon"> <i class="icon-same"></i> </div>').appendTo(m);c[s]["q-m"]=y,y.data("size",s),y.on("click",(function(t){g(t,"q-m",a)}));var b=$('<div class="padding-container"></div>').appendTo(m);t=i(s,h="q-p",u="t",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-top crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="l",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-left crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e;var v=$('<div class="padding-border"> <div class="change-all-padding-icon change-all-icon"><i class="icon-same"></i></div> </div>').appendTo(b).find("> .change-all-icon");c[s]["q-p"]=v,v.data("size",s),v.on("click",(function(t){g(t,"q-p",a)})),t=i(s,h,u="r",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="b",p),n=d+"."+h+u,(e=o.showInputField(b,n,t)).$field.addClass("crsa-field-padding-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h="q-m",u="r",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-right crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e,t=i(s,h,u="b",p),n=d+"."+h+u,(e=o.showInputField(f,n,t)).$field.addClass("crsa-field-margin-bottom crsa-small-input crsa-align-center-input crsa-inline-container"),l[s][h+u]=e})),r},o.onSetValues=function(e){var i=!0;s((function(e,n,s){!function(t,e,i){for(var n=["q-p","q-m"],s=["t","r","l","b"],r=function(t){for(var e=i+"."+t,n=["a","x","y"],s=[],r=0;r<n.length;r++){var a=n[r],l=o.values[e+a];if(l){var c=l.split("-");s.push({direction:a,value:c[c.length-1]})}}return s.length>0?s:null},a=function(t,i,n){return t+i+(e?"-"+e:"")+"-"+n},h=function(t,e){if("a"==e)return!0;if("x"==e){if(["r","l"].indexOf(t)>-1)return!0}else if("y"==e&&["t","b"].indexOf(t)>-1)return!0;return!1},u=0;u<n.length;u++){var p=n[u],d=r(p),f=c[t][p];if(d&&d.length>0)for(var m=0;m<d.length;m++){for(var g=d[m],y=g.value,b=g.direction,v=0;v<s.length;v++){var w=s[v];if(h(w,b)){var k=i+"."+p+w;if(!o.values[k]){var _=l[t][p+w],x=a(p,w,y);o.values[k]=x,_.setValue(x)}}}if("a"==g.direction){f.addClass("active");break}}else f.removeClass("active")}}(e,n,s);var r=o.$element.find('> [data-device-size="'+e+'"]');!function(t){for(var e=["q-m","q-p"],i=["t","l","r","b"],n=0;n<e.length;n++)for(var s=e[n],r=0;r<i.length;r++){var a=t+"."+s+i[r];if(o.values[a])return!0}return!1}(s)?r.removeClass("sc-has-value"):(r.addClass("sc-has-value"),e!=t.size_for_all&&(i=!1))})),i?o.$element.addClass("sc-none-or-all"):o.$element.removeClass("sc-none-or-all")},o}},n.getSpacingControl=function(){return n.getDevicesMarginAndPaddingControlFactory("margin.padding",(function(e,i,n,s){var o={type:"select",name:null,placeholder:n,show_empty:!0,options:function(){var t=i+n+s+"-",e=[];return a.forEach((function(i){e.push({key:t+i,name:i,num:i})})),e},action:"custom",draggable_list:!0,async_options_function:!0,fill_list_on_open:!0,more_prop:{size:e,type:i,direction:n},get_value:function(e,i,n,s){for(var r=s.options(),o=0;o<r.length;o++)if(e.hasClass(r[o].key))return r[o].key;var a=s.more_prop.size,l=s.more_prop.type,c=s.more_prop.direction;if(c&&"a"!=c&&"x"!=c&&"y"!=c){var h=t.prefix+"margin.padding."+a+"."+l;if(n[h+"a"]){var p=u(l,c,a,h,n,"a");return n[h+c]=p,p}if("r"==c||"l"==c){if(n[h+"x"])return p=u(l,c,a,h,n,"x"),n[h+c]=p,p}else if(("t"==c||"b"==c)&&n[h+"y"])return p=u(l,c,a,h,n,"y"),n[h+c]=p,p}return""},set_value:function(e,i,n,s,o,a){var l=a.options();$.each(l,(function(t,n){if(n.key==i)return!0;e.hasClass(n.key)&&e.removeClass(n.key)}));var u=a.more_prop.size,p=a.more_prop.type,f=a.more_prop.direction,g=t.prefix+"margin.padding.";if(c[u][p].hasClass("active")||function(t,e,i,n,s,o){for(var a=h(o),l=!0,c=3;c<r.length;c++)if(r[c]!=s){var u=e+r[c]+("xs"!=i?"-"+i:"")+"-"+a;if(!t.hasClass(u)){l=!1;break}}return l}(e,p,u,0,f,i)){var y=g+u+"."+p,b=m(p,"a",u,h(s)),v=m(p,"a",u,h(i));e.removeClass(b);for(var w=0;w<r.length;w++){var k;k=h(r[w]==f?s:i);var _=p+r[w]+("xs"!=u?"-"+u:"")+"-"+k;e.removeClass(_)}e.addClass(v),n[y+"a"]=v,d(e,p,u,y,n,f)}else{var x=n[(y=g+u+"."+p)+f];for(n[y+f]="",e.removeClass(x),e.removeClass(n[y+"a"]),n[y+"a"]="",w=3;w<r.length;w++)r[w]!=f&&e.addClass(n[y+r[w]]);e.addClass(i)}return i}};return o}))};var y=["","x","y"],b=["xs","sm","md","lg","xl"],v={},w=function(t,e,i,n){return"q-".concat("column"===n?"col-":"","gutter")+(e||"")+(t?"-".concat(t):"")+"-"+i};return n.getDevicesRowGapControlFactory=function(t,e,i){var n=y,s=b,r=function(e){p.forEach((function(i){e(i,i==f?"":"-"+i,o+t+"."+i)}))};return function(){var a=new PgCustomPropertyControl(o+t);return a.onDefine=function(){r((function(t,e,s){for(var r=0;r<n.length;r++){var o=i(t,n[r],e),l=s+"."+n[r];a.registerInputField(l,o)}}))},a.onShow=function(){var t,e,n,s=$('<div class="bs5-row-gap sc-device-control sc-single-size"></div>'),o=($('<div class="sc-device-control-title"></div>').appendTo(s),"");return r((function(r,l,c){var h=$('<div class="row-gap-container" data-device-size="'+r+'"></div>').appendTo(s),u=($("<label/>",{class:"size-label"}).html('<span class="sc-label"></span><span class="sc-device-size">'+r+"</span>").appendTo(h),$('<div class="main-row-gap-container"></div>').appendTo(h));v[r]={};var p=$('<div class="row-gap-fields-container"></div>').appendTo(u),d=$("<div></div>").appendTo(p);t=i(r,o="x",l),n=c+"."+o,(e=a.showInputField(d,n,t)).$field.addClass(""),v[r][o]=e;var f=$("<div></div>").appendTo(p);t=i(r,o="y",l),n=c+"."+o,(e=a.showInputField(f,n,t)).$field.addClass(""),v[r][o]=e})),s},a.onSetValues=function(t){var i=!0;r((function(t,r,o){var l=a.$element.find('> [data-device-size="'+t+'"]');!function(t,i){for(var r=0;r<n.length;r++)for(var o=n[r],a=0;a<s.length;a++){var l=s[a];if(t.hasClass(w(o,i,l,e)))return!0}return!1}(a.obj,r)?l.removeClass("sc-has-value"):(l.addClass("sc-has-value"),t!=f&&(i=!1))})),i?a.$element.addClass("sc-none-or-all"):a.$element.removeClass("sc-none-or-all")},a}},n.getGappingControl=function(t){return n.getDevicesRowGapControlFactory("".concat(t,".row.rowGap"),t,(function(e,i,n){var s=b,r={type:"select",name:null,placeholder:i,show_empty:!0,options:function(){for(var e=[],r=0;r<s.length;r++){var o=s[r];e.push({key:w(i,n,o,t),name:o,num:o})}return e},action:"custom",async_options_function:!0,more_prop:{size:e,direction:i},get_value:function(e,i,n,r){for(var o=r.options(),a=0;a<o.length;a++)if(e.hasClass(o[a].key))return o[a].key;var l=r.more_prop.size,c=r.more_prop.direction,h=l==f?"":"-"+l;for(a=0;a<s.length;a++){var u=s[a],p=w("",h,u,t);if(e.hasClass(p))return w(c,h,u,t)}return null},set_value:function(e,i,n,r,o,a){var l=a.options();$.each(l,(function(t,n){if(n.key==i)return!0;e.hasClass(n.key)&&e.removeClass(n.key)}));for(var c=a.more_prop.size,h=a.more_prop.direction,u="x"===h?"y":"x",p=c==f?"":"-"+c,d=!0,m=0;m<s.length;m++){var g=s[m],y=w("",p,g,t);e.hasClass(y)&&(e.removeClass(y),e.addClass(w(u,p,g,t)))}var b=function(t,e,i,n){return t?t.replace("q-".concat("column"===n?"col-":"","gutter")+(i||"")+(e?"-".concat(e):"")+"-",""):null}(i,h,p,t),v=w(u,p,b,t);return e.hasClass(v)&&(e.removeClass(v),e.addClass(w("",p,b,t)),d=!1),d&&e.addClass(i),i}};return r}))},n.init(),n}({num_columns:u,sizes:p,sizes_breakpoints:d,sizes_breakpoints_map:m,sizes_view_sizes:[375,960,1280,1920,2560],sizes_icons:["icon-Xs","icon-IPAD","icon-tableta-lezeca","icon-ikone100--copy_laptop","icon-Lg"],size_for_all:f,sizes_names:["All","Small","Medium","Large","Extra Large"],prefix:o,col_prefix_class:"col",isColumn:h,onClickOnColumnPoint:function(){var t=this;Promise.resolve().then(i.bind(i,813)).then((function(e){var i=e.def_all;try{PgQuickProperties([i.sections[t.options.prefix+"columns"]],t.menu.pgel,t.$element,"Column size & order",300)}catch(t){}}))},version_name:"".concat(l," ").concat(s.Fq),reqVersion:s.N$,skipVersion:s.Zo,framework_prefix:o,container_selector:".container,.container-fluid",grid_container_selector:"row",style:"",no_include_local_question:!0,createDisplayHelpers:!1,showGridInMenu:!1,showColumnInMenu:!1},n.M,r.Yr.minor_version),b=new PgToggleButtonMaker,v=y.getSpacingControl,w=y.getGappingControl,k=(y.executeScriptInPageDelayed,y.getDevicesControlFactory),_=y.onSectionWithDevicesControlsShown,x=y.makeFieldLabelForSize,S=function(t){return y.addPrefixToSectionsAndFields(t)};n.M.on_get_menu_points=function(t,e,i,n){y.getMenuPoints(t,e,i,n)},n.M.on_page_view_resized=function(t,e){y.onPageViewResized(t,e)},n.M.on_get_device_sizes=function(t,e){y.getDeviceSizesForPageViewMenu(t,e),!1!==r.fh&&t.setAllBreakpoints(e.filter((function(t){return t.w_range[0]})).map((function(t){return"".concat(t.w_range[0],"px")})))},n.M.on_page_shown_in_live_view=function(t,e){y.show(e)},n.M.on_get_floating_tools_sections=function(t,e){if(!floating_sections){floating_sections=[];var i=function(t){for(var e=["border","border-top","border-end","border-bottom","border-start"],i=!1,n=0;n<e.length;n++)if(t.hasClass(e[n])){i=!0;break}i||t.addClass("border")},s=new PgFloatingToolsSection(o+"border","Border");s.addControl(getControl("bsborders","bordercolor",{on_before_set:i,label:'<i class="icon icon-Pin20"></i>',buttons:!1,submenu:{name:"Border sides",all_classes:["border","border-top","border-end","border-bottom","border-start","border-0","border-top-0","border-end-0","border-bottom-0","border-start-0"],combine_with_parent:!0,items:[{key:"border",name:"All sides"},{key:"border-top",name:"Top"},{key:"border-end",name:"End"},{key:"border-bottom",name:"Bottom"},{key:"border-start",name:"Start"},{key:"border-bottom border-top",name:"Top & Bottom"},{key:"border-start border-end",name:"Start & End"}]},on_get_current_value_label:function(t,e){for(var i=n.M.bsGetBorderColorOptions(""),s=0;s<i.length;s++)if(t.classes.indexOf(i[s].key)>=0)return i[s].html;return this.options.label}})),s.addControl(getControl("bsborders","widthbotder",{on_before_set:i,name:"Border width",label:'<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="bi bi-border-width" viewBox="0 0 16 16">\n <path d="M0 3.5A.5.5 0 0 1 .5 3h15a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2zm0 5A.5.5 0 0 1 .5 8h15a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-1zm0 4a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>\n </svg>'}));var r=getControl("bsborders","raduisborder",{label:'<i class="icon icon-round_lu"></i>',buttons:!1});r.def.options=[{key:"rounded",name:"All sides"},{key:"rounded-0",name:"All sides none"},{key:"rounded-1",name:"All sides small"},{key:"rounded-2",name:"All sides medium"},{key:"rounded-3",name:"All sides large"},{key:"rounded-top",name:"Top"},{key:"rounded-bottom",name:"Bottom"},{key:"rounded-start",name:"Left"},{key:"rounded-end",name:"Right"},{key:"rounded-circle",name:"Circle"},{key:"rounded-pill",name:"Pill"}],s.addControl(r),floating_sections.push(s);var a=[{key:"justify-content-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"justify-content-end",name:"End",html:b.makeIcon("218",{attributes:{title:"End"}})},{key:"justify-content-center",name:"Center",html:b.makeIcon("219",{attributes:{title:"Center"}})},{key:"justify-content-between",name:"Between",html:b.makeIcon("206",{attributes:{title:"Between"}})},{key:"justify-content-around",name:"Around",html:b.makeIcon("205",{attributes:{title:"Around"}})},{key:"justify-content-evenly",name:"Evenly",html:b.makeIcon("205",{attributes:{title:"Evenly"}})}],l=[{key:"align-items-start",name:"Start",html:b.makeIcon("223",{attributes:{title:"Start"}})},{key:"align-items-end",name:"End",html:b.makeIcon("220",{attributes:{title:"End"}})},{key:"align-items-center",name:"Center",html:b.makeIcon("221",{attributes:{title:"Center"}})},{key:"align-items-baseline",name:"Baseline",html:b.makeIcon("212",{attributes:{title:"Baseline"}})},{key:"align-items-stretch",name:"Stretch",html:b.makeIcon("214",{attributes:{title:"Stretch"}})}],c=function(t,e,i,n){var s=new PgApi,r=s.getFlexSettings(t);if(r.grid)return pinegrow.showQuickError("The element uses CSS Grid to position its children. Use the grid properties for the layout."),!1;var o=[],c=[];r.flex||o.push(r.inline?"d-inline-flex":"d-flex");var h=i,u=e[0];return"column"===r.direction&&(u=u.replace(h,n),h=n),c="align-items-"===h?l.map((function(t){return t.key})):a.map((function(t){return t.key})),c.filter((function(e){return s.hasClass(t,e)})),o.push(u),s.removeClass(t,c),s.addClass(t,o),!1},h=new PgFloatingToolsSection(o+"align","Align content");h.addControl(new PgFloatingToolsControl({key:o+"align.h",type:"select",name:"Align children horizontally w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:a},{label:'<i class="icon icon-219"></i>',on_before_set:function(t,e){return c(t,e,"justify-content-","align-items-")}})),h.addControl(new PgFloatingToolsControl({key:o+"align.v",type:"select",name:"Align children vertically w. Flex",action:"apply_class",show_empty:!0,toggle_buttons:!0,options:l},{label:'<i class="icon icon-221"></i>',on_before_set:function(t,e){return c(t,e,"align-items-","justify-content-")}}))}},n.M.on_plugin_activated=function(t,e){y.onFrameworkActivatedOnPage(t),e&&e(n.M)},n.M.on_page_changes_done=function(t,e,i){y.updateHelpersAfterChange(t,e,i)},n.M.on_inline_editing_done=function(t,e){y.updateHelpersAfterChange(t,null,new PgCollection(e))},n.M.on_page_selected=function(t){t&&(0,s.EB)(t)};var T=function(t,e){return e?"pg-classes"!==t&&!t.startsWith(o):!!t.startsWith(o)};n.M.on_before_properties_shown=function(t,e,i){t&&!t.data["".concat(r.Yr.type,"Version")]&&(0,s.EB)(t),r.hC&&e&&(i.show_classes_control=!0,i.show_section_nav_control=!0,i.filter_sections=T,i.show_custom_sections_in_general=!0)};var C=[{name:"Text color and typography",sections:[o+"textcolor",o+"typography"],icon:"icon-Pin18"},{name:"Background",sections:[o+"background"],icon:"icon-Pin21"},{name:"Margin, padding and dimension",sections:[o+"spacing",o+"dimension"],icon:"icon-Pin16"},{name:"Visibility and position",sections:[o+"visibility",o+"position",o+"overflow",o+"mouse"],icon:"icon-Pin17"},{name:"Shadows",sections:[o+"elevation"],icon:"icon-Pin23"},{name:"Border",sections:[o+"border"],icon:"icon-Pin20"},{name:"Flexbox",sections:[o+"flexcontainer",o+"columns"],icon:"icon-Pin22"},{name:"Transform and transition",sections:[o+"transform"],icon:"icon-Pin24"}];n.M.on_get_sections_for_prop_section_nav=function(t,e){r.hC&&C.forEach((function(t){t.ignore_has_data=!0,e.find((function(e){return e.name===t.name}))||e.push(t)}))}},525:(t,e,i)=>{"use strict";i.r(e);var n=i(855),s=(i(869),i(506)),r=i(681),o=i(297),a=i(100),l=i(870),c=i(611),h=i(230),u=i(421),p=i(660),d=i(991);function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=p(t);if(e){var s=p(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return u(this,i)}}var m=function(t){h(i,t);var e=f(i);function i(t){return a(this,i),e.call(this,"quasar.colors",t,(function(){return""}))}return l(i,[{key:"onGetConfigObject",value:function(t,e){"init"===t&&(e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.colors=e.theme.extend.colors||{},this.colors.forEachColor((function(t,i,n){try{if(n.hasShades()){var s={};n.forEachShade((function(t,e){s[t]=chroma(pgMakeCompatibleColor(e)).hex()})),e.theme.extend.colors[t]=s}else e.theme.extend.colors[t]=chroma(pgMakeCompatibleColor(i)).hex()}catch(t){}})))}},{key:"populateDefaultParams",value:function(t){t||this.colors.clear(),this.colors.add("primary","#6750a4",!1,{50:"#eeedf4",100:"#d8d1e6",200:"#c2b6d9",300:"#ac9ccc",400:"#9582bf",500:"#7e68b1",600:"#6750a4",700:"#5e4996",800:"#564388",900:"#4d3c7b",950:"#45366e",DEFAULT:"#3d2f61"},!0),this.colors.add("secondary","#625b71",!1,{50:"#eeeeef",100:"#d5d4d9",200:"#bdbac3",300:"#a6a1ae",400:"#8e8999",500:"#787285",600:"#625b71",700:"#5a5367",800:"#524c5e",900:"#4a4455",950:"#423d4c",DEFAULT:"#3a3643"},!0),this.colors.add("tertiary","#7d5260",!1,{50:"#f0edee",100:"#ddd2d5",200:"#c9b7bc",300:"#b69da4",400:"#a3838d",500:"#906a76",600:"#7d5260",700:"#724b58",800:"#684450",900:"#5e3e48",950:"#543740",DEFAULT:"#4a3139"},!0),this.colors.add("success","#2e7d32",!0,{50:"#ecf0ec",100:"#cdddcb",200:"#aec9ab",300:"#90b68c",400:"#71a36d",500:"#519050",600:"#2e7d32",700:"#2a722e",800:"#26682a",900:"#235e26",950:"#1f5422",DEFAULT:"#519050"},!0),this.colors.add("warning","#ed6c02",!0,{50:"#fcefeb",100:"#ffd9c7",200:"#ffc4a4",300:"#ffae7f",400:"#fb985c",500:"#f58238",600:"#ed6c02",700:"#d96302",800:"#c55a02",900:"#b25102",950:"#9f4801",DEFAULT:"#f58238"},!0),this.colors.add("error","#d32f2f",!0,{50:"#f9ecec",100:"#f9cfca",200:"#f6b2a9",300:"#f19488",400:"#e97669",500:"#df564c",600:"#d32f2f",700:"#c12b2b",800:"#b02727",900:"#9e2323",950:"#8d2020",DEFAULT:"#df564c"},!0),this.colors.add("info","#0288d1",!0,{50:"#ebf1f9",100:"#d0dff2",200:"#b4ccec",300:"#96bbe5",400:"#76a9df",500:"#5098d8",600:"#0288d1",700:"#027cbf",800:"#0271ae",900:"#02669d",950:"#015b8c",DEFAULT:"#5098d8"},!0),this.colors.add("neutral","#121212",!0,{50:"#ebebeb",100:"#c2c2c2",200:"#9b9b9b",300:"#757575",400:"#525252",500:"#303030",600:"#121212",700:"#111111",800:"#0f0f0f",900:"#0e0e0e",950:"#0c0c0c",DEFAULT:"#0b0b0b"},!0),c(p(i.prototype),"populateDefaultParams",this).call(this)}}]),i}(PgDmDesignSkillColors),g=function(t){h(i,t);var e=f(i);function i(t){var n;return a(this,i),(n=e.call(this,"quasar","Quasar Design")).framework=t,o(n),n.on_engine_ready_funcs=[],n.colors=new PgDmDesignColors,n.colors.can_edit=!0,n.colors.mode="class",n.colors.default_shades=["50","100","200","300","400","500","600","700","800","900","950","DEFAULT"],n.setDefaultSettings(),n.addSkills(),n}return l(i,[{key:"addSkills",value:function(){var t=new m(this.colors);this.addSkill(t),this.fonts_skill=new y,this.addSkill(this.fonts_skill),this.bck_skill=new PgDmDesignSkillBackground(t,"VUETIFY"),this.bck_skill.onGetConfigObject=function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.backgroundImage=e.theme.extend.backgroundImage||{};var i=this.getBackgroundImagesAsObject();$.each(i,(function(t,i){e.theme.extend.backgroundImage[t]=i}))}},this.addSkill(this.bck_skill)}},{key:"getActiveFonts",value:function(){return this.fonts_skill.getActiveFonts()}},{key:"canEditColors",value:function(){return!0}},{key:"supportsColorShades",value:function(){return!0}},{key:"getEngine",value:function(t){var e=this;this.engine?this.engine.isReady()?t(this.engine):e.on_engine_ready_funcs.push(t):this.engine=new b((function(i){e.on_engine_ready_funcs.forEach((function(t){t(i)})),e.on_engine_ready_funcs=[],t&&t(i)}),this)}},{key:"hasOnlyDefaultColors",value:function(){var t=["primary","secondary","tertiary","success","warning","error","info","neutral"];if(t.length!==this.colors.getNumberOfColors())return!1;var e=0,i=this;return t.forEach((function(t){i.colors.getColorObject(t)&&e++})),e===t.length}},{key:"onBeforeSurpriseMe",value:function(t){t()}},{key:"onGetDesignThumbHTML",value:function(t,e){e.fonts=this.fonts_skill.getDesignThumbHTML(t)}},{key:"addCustomizableColors",value:function(){}},{key:"getFontsOptions",value:function(t){return this.fonts_skill.getFontsOptions(t)}},{key:"getBackgroundImageOptions",value:function(){var t=[],e=this.bck_skill.getBackgroundImagesAsObject();return $.each(e,(function(e,i){t.push({key:"bg-"+e,name:e})})),t}},{key:"getColorOptions",value:function(t){for(var e=this.getColorsForPicker(t),i=[],n=0;n<e.length;n++)for(var s=e[n],r=0;r<s.length;r++)i.push(s[r]);return i}},{key:"getColorsForPicker",value:function(t){var e=[[{key:t+"current",name:"current",color:"white",text:"c"},{key:t+"transparent",name:"transparent",color:"rgba(0,0,0,0)"},{key:t+"black",name:"black",color:"black"},{key:t+"white",name:"white",color:"white"},{key:t+"inherit",name:"inherit",color:"rgba(0,0,0,0.5)"}]];return this.colors.getColorsForPicker(t,e)}},{key:"destroyEngine",value:function(){this.engine&&this.engine.destroy(),this.engine=null}},{key:"recreateEngine",value:function(t){this.destroyEngine(),this.getEngine(t,this)}}]),i}(PgDmDesignProvider),y=function(t){h(i,t);var e=f(i);function i(){var t;a(this,i),(t=e.call(this,"fonts","Fonts")).fixed=["sans","serif"],t.max_num=10;for(var n=o(t),s=new PgToggleButtonMaker,r=1;r<=t.max_num;r++){var l=r<=t.fixed.length?t.fixed[r-1]:null;t.addControl("name_".concat(r),{name:"Name",type:l?"hidden":"text",default_value:l,start_repeat_item:l||"Custom font ".concat(r-t.fixed.length),tw_repeat_item_index:r,repeat_item_open:null!==l,add_repeat_item_label:"Add font family",on_create_repeat_item_button:function(t){$('<button class="pg-button" style="margin-left:4px;height: 27px;vertical-align: top;">Manage fonts...</button>').appendTo(t).on("click",(function(t){t.preventDefault(),pinegrow.fontLibrary.showLibrary()}))},dm_no_lock:"placeholder",on_repeat_item_removed:function(t,e,i){e.removeClass("has-value"),pinegrow.requireProjectDB((function(t){t.startBatchUpdates();var e=i.tw_repeat_item_index;n.setParam("family_".concat(e),""),n.setParam("name_".concat(e),"");for(var s=e+1;s<=n.max_num;s++){var r=n.getParam("name_".concat(s)),o=n.getParam("family_".concat(s));(r||o)&&(n.setParam("family_".concat(s-1),o),n.setParam("name_".concat(s-1),r),n.setParam("family_".concat(s),""),n.setParam("name_".concat(s),""))}t.endBatchUpdates("Remove font family","design_panel"),pgDmStore.update()}))}}),t.addControl("family_".concat(r),{name:"Family",type:"select",show_empty:!0,fill_list_on_open:!0,can_add_items:!0,options:function(){return pinegrow.fontLibrary.getSelectOptions()}}),n.addControl("".concat(r,"_options_container"),{name:"Use for",type:"displayhtmlwithlabel",html:"",class:"crsa-field-text-font-options-container crsa-field-text-font-options-container-".concat(r),dm_no_lock:"placeholder"});for(var c=1;c<=6;c++)n.addControl("h".concat(c,"_").concat(r),{name:"H"+c,type:"select",toggle_buttons:!0,append_to:".crsa-field-text-font-options-container-".concat(r),without_text:!0,show_empty:!0,dm_no_lock:!0,options:[{key:"h"+c,name:"H"+c,html:s.makeText("H"+c,{attributes:{title:"Use for H"+c},styles:{padding:"4px 0"}})}]})}return t}return l(i,[{key:"getFontsOptions",value:function(t){for(var e=[],i=!1,n=1;n<=this.max_num;n++){var s=n<=this.fixed.length?this.fixed[n-1]:this.getParam("name_".concat(n)),r=this.getParam("family_".concat(n));s&&(n<=this.fixed.length||r)&&(e.push({key:t+s,name:s}),"mono"===s&&(i=!0))}return i||e.push({key:t+"mono",name:"mono"}),e}},{key:"getActiveFonts",value:function(){for(var t=[],e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),n=this.getParam("family_".concat(e));i&&n&&t.indexOf(n)<0&&t.push(n)}return t}},{key:"getDesignThumbHTML",value:function(t){var e=t.findOne('dmdesignskill[skill="fonts"]'),i="",n=0;if(e)for(var s=1;s<=this.max_num;s++){var r=s<=this.fixed.length?this.fixed[s-1]:e.getAttribute("name_".concat(s)),o=e.getAttribute("family_".concat(s));r&&o&&n<2&&(i+='<p style="font-family: '.concat(o.replace(/"/g,"'"),';margin: 0px 0px;white-space: nowrap;">').concat(o.replace(/["']/g,""),"</p>"),n++)}return i}},{key:"onSurpriseMe",value:function(t){for(var e=1;e<=this.max_num;e++){var i=e<=this.fixed.length?this.fixed[e-1]:this.getParam("name_".concat(e)),n="family_".concat(e);if(!this.isLocked(n)&&i){var s="all";(this.getParam("h1_".concat(e))||this.getParam("h2_".concat(e)))&&(s="h1");var r=pinegrow.fontLibrary.getRandomFont(s);this.setParam(n,r.family)}}t()}},{key:"onGetCSS",value:function(t,e){if("import"===t){var i=pgDmStore.design.fonts;i.clear();for(var n=1;n<=this.max_num;n++){var s=n<=this.fixed.length?this.fixed[n-1]:this.getParam("name_".concat(n)),r=this.getParam("family_".concat(n));if(s&&r){var o={key:s,family:r};i.setFont(o)}}var a=i.getImportStatements(e),l=a.length?a.join("\n")+"\n\n":"",c=i.getFontFontFaceStatements();return l+(c.length?c.join("\n\n")+"\n\n":"")}if("rules"===t){for(var h="",u=1;u<=this.max_num;u++){var p=u<=this.fixed.length?this.fixed[u-1]:this.getParam("name_".concat(u)),d=this.getParam("family_".concat(u));if(p&&d){for(var f=[],m=1;m<=6;m++)this.getParam("h".concat(m,"_").concat(u))&&f.push("h"+m);f.length&&(h+="\n".concat(f.join(",")," {\n @apply font-").concat(p,";\n} \n"))}}return h}return""}},{key:"onGetConfigObject",value:function(t,e){if("init"===t){e.theme=e.theme||{},e.theme.extend=e.theme.extend||{},e.theme.extend.fontFamily=e.theme.extend.fontFamily||{};for(var i=1;i<=this.max_num;i++){var n=i<=this.fixed.length?this.fixed[i-1]:this.getParam("name_".concat(i)),s=this.getParam("family_".concat(i));if(n&&s){var r=pinegrow.fontLibrary.getFontByFamily(s);r&&(s=r.getFamilyWithFallback()),e.theme.extend.fontFamily[n]=[s]}}}}}]),i}(PgDmDesignSkill),b=function(t){h(i,t);var e=f(i);function i(t,n){var s;a(this,i),s=e.call(this,t);var r=o(s);if(s.design_provider=n,s.external_build=!0,s.is_ready=!1,s.done_list=[],s.delayedTasks=new PgDelayedTasks,s.busy=!1,s.update_on_done=!1,pinegrow.getCurrentProject(),s.custom_cs_url=null,s.fs=require("fs"),s.external_build){try{var l=pinegrow.app_designer.addonManager.pluginsManager.pluginsProcessed.find((function(t){return"quasar"===t.key}));l.options.cssPath&&(n.settings.external_source_url=l.options.cssPath&&crsaMakeUrlFromFile(l.options.cssPath)),n.settings.external_config_path=l.options.configPath,n.settings.external_theme_path=l.options.themePath}catch(t){}return s.is_ready=!0,setTimeout((function(){t&&t(r)}),1),u(s)}return t&&t(r),s}return l(i,[{key:"activateOnPage",value:function(t,e){e&&e()}},{key:"update",value:function(t){t&&this.done_list.push(t),this.delayedTasks.run("update",this.updateTask.bind(this),this.external_build?1:100)}},{key:"getConfigFile",value:function(){for(var t=0,e=["quasar.config.cjs","quasar.config.mjs","quasar.config.js","quasar.config.ts","quasar.config.cts","quasar.config.mts"];t<e.length;t++){var i=e[t];try{var n=pinegrow.getCurrentProject().getAbsolutePath(i);return this.fs.accessSync(n),n}catch(t){}}}},{key:"updateTask",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this,n=pinegrow.getCurrentProject(),s=pinegrow.getSelectedPage();if(!e&&!s)return i.done_list.forEach((function(t){t()})),void(i.done_list=[]);if(this.busy&&Date.now()-this.busy_time>4e3&&(this.busy=!1),this.busy)this.update_on_done=!0;else{var o={css:"",config:{},cs_url:this.custom_cs_url};pinegrow.dispatchEvent("on_dm_get_css",null,"import",o),pinegrow.dispatchEvent("on_dm_get_css",null,"init",o),o.css,o.font_urls=[];var a=null===(t=o.css)||void 0===t||null===(t=t.match(/'([^']+)'/))||void 0===t?void 0:t[1];a&&o.font_urls.push(a),o.background_urls={},Object.entries(o.config.theme.extend.backgroundImage).forEach((function(t){var e,i=r(t,2),n=i[0],s=i[1],a=null==s||null===(e=s.match(/'([^']+)'/))||void 0===e?void 0:e[1];a&&(o.background_urls[n]=a)})),o.css="",pinegrow.dispatchEvent("on_dm_get_css",null,"rules",o);try{this.external_config_path=this.design_provider.settings.external_config_path||this.getConfigFile(),this.external_theme_path=this.design_provider.settings.external_theme_path,this.external_theme_path_alt=this.external_theme_path&&!this.external_theme_path.endsWith(".mjs")?this.external_theme_path.replace(path.extname(this.external_theme_path),".mjs"):null,this.design_provider.settings.external_source_url&&(this.external_source_file=crsaMakeFileFromUrl(n.getAbsoluteUrl(this.design_provider.settings.external_source_url)));var l=this.fs.readFileSync(this.external_theme_path||this.external_config_path,{encoding:"utf8"}),c=new PgSimpleJsParser(l),h="\nconst pg_colors = ".concat(c.objToString(o.config.theme.extend.colors),"\n\nconst pg_fonts = ").concat(c.objToString(o.config.theme.extend.fontFamily)," \n\nconst pg_font_urls = ").concat(c.objToString(o.font_urls),"\n\nconst pg_backgrounds = ").concat(c.objToString(o.config.theme.extend.backgroundImage)," \n \nconst pg_background_urls = ").concat(c.objToString(o.background_urls),"\n\n ");l=pgf.uses_hot_reload?"/* Pinegrow generated Design Panel Begin */\n/* eslint-disable */\n/* prettier-disable */\n/* @ts-nocheck */\n".concat(h,"\nmodule.exports = {\npg_colors,\npg_fonts,\npg_font_urls,\npg_backgrounds,\npg_background_urls,\n}\n\n/* Pinegrow generated Design Panel End */"):pgUpdateGeneratedSectionContent(l,"Design Panel",h,"prepend"),this.fs.writeFileSync(this.external_theme_path||this.external_config_path,l,{encoding:"utf8"}),this.external_theme_path_alt&&this.fs.writeFileSync(this.external_theme_path_alt,l.replace("module.exports =","export ").replace("module.exports=","export "),{encoding:"utf8"})}catch(t){console.warn("Unable to update quasar config file and source file.",t)}setTimeout((function(){i.update_on_done?i.update():(i.done_list.forEach((function(t){t()})),i.done_list=[]),i.busy=!1,i.update_on_done=!1}),1)}}},{key:"destroy",value:function(){this.design_provider=null,this.delayedTasks.destroy()}}]),i}(PgDmEngine);pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){if(e===d.Yr.key&&((0,d.EX)(i.options.themePath),!1!==i.options.themePath)){var n=null;void 0!==window.pgDmStore&&(n=window.pgDmStore);var r=new g(s.MS);n.registerDesignProvider("quasar",r),s.MS.on_dm_detect_design_providers=function(t,e){e.push("quasar")}}}));var v=i(813),w=null,k=function(t){"checkbox"===t.type&&(t.type="select",t.toggle_buttons=!0,t.options=[{key:t.value,name:t.name,html:s.bm.makeText(t.name,{attributes:{title:t.name}})}])};s.MS.on_get_floating_tools_sections=function(t,e){if(d.hC){var i=s.O4;if(!(w=null)){var n=function(t,e,n){var s,r=cloneObject(null===(s=v.def_all.sections[i+t])||void 0===s?void 0:s.fields[e]);return k(r),r.key=e,new PgFloatingToolsControl(r,n)},r=function(t,e,n){var s={name:"More",key:t,type:"select",options:[]},r={};return e.forEach((function(e){var n;r[e]=cloneObject(null===(n=v.def_all.sections[i+t])||void 0===n?void 0:n.fields[e]),k(r[e]);var o=r[e];s.options.push({key:e,name:o.name})})),(n=n||{}).buttons=!1,n.no_clear_on_first_level=!0,n.submenu=function(t){r[t].toggle_buttons&&(r[t].toggle_buttons=!1);var e="function"==typeof r[t].options?r[t].options():r[t].options;return{items:e,combine_with_parent:!1,name:r[t].name,require_submenu_selection:!0,all_classes:e.map((function(t){return t.key}))}},new PgFloatingToolsControl(s,n)};w=[];var o=new PgFloatingToolsSection(i+"text","Text color and typography");o.addControl(n("textcolor","".concat(i,"palette"),{label:'<i class="icon icon-ikone1-100-copy-63"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(n("textcolor","".concat(i,"swatches"),{label:'<i class="icon icon-ikone1-100-copy-63" style="background: linear-gradient(45deg, tomato, green)"></i>',cursor:'<i class="icon icon-ikone1-100-copy-63" style="color:$COLOR !important;"></i>',svg_support:"stroke"})),o.addControl(n("typography","".concat(i,"typography"),{label:'<i class="icon icon-font-size"></i>'})),o.addControl(n("typography","".concat(i,"fontweight"),{label:'<i class="icon icon-weight"></i>'})),o.addControl(n("typography","".concat(i,"textalign"),{label:'<i class="icon icon-align-left"></i>'})),o.addControl(n("typography","".concat(i,"transform"),{label:'<i class="icon icon-Transform-uppercase"></i>'})),o.addControl(r("typography",["".concat(i,"whitespace"),"".concat(i,"fontstyle"),"".concat(i,"fontbold"),"".concat(i,"decoration")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(o);var a=new PgFloatingToolsSection(i+"background","Background");a.addControl(n("background","".concat(i,"bg_palette"),{label:'<i class="icon icon-Pin21"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),a.addControl(n("background","".concat(i,"bg_swatches"),{label:'<i class="icon icon-Pin21" style="background: linear-gradient(45deg, tomato, green)"></i>',cursor:'<i class="icon icon-Pin21" style="color:rgba(0,0,0,0.25) !important;background-color:$COLOR;"></i>',svg_support:"fill",on_filter_svg:function(t,e){for(var i=0;i<t.length;i++)t[i]=t[i].replace("bg-","text-");for(i=0;i<e.length;i++)e[i]=e[i].replace("bg-","text-")}})),w.push(a);var l=new PgFloatingToolsSection(i+"dimension","Dimension");l.addControl(n("dimension","".concat(i,"width"),{label:'<i class="icon icon-width"></i>'})),l.addControl(n("dimension","".concat(i,"height"),{label:'<i class="icon icon-height"></i>'})),l.addControl(r("dimension",["".concat(i,"display"),"".concat(i,"fit")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(l);var c=new PgFloatingToolsSection(i+"visibility","Visibility and position");c.addControl(n("position","".concat(i,"position_common"),{label:'<i class="icon icon-Pin17"></i>'})),c.addControl(n("position","".concat(i,"horizontal_alignment"),{label:'<i class="icon icon-template-columns"></i>'})),c.addControl(n("position","".concat(i,"vertical_alignment"),{label:'<i class="icon icon-template-rows"></i>'})),c.addControl(r("visibility",["".concat(i,"disabled"),"".concat(i,"hidden"),"".concat(i,"invisible"),"".concat(i,"readonly"),"".concat(i,"ellipsis"),"".concat(i,"zindex"),"".concat(i,"orientation"),"".concat(i,"platform_only"),"".concat(i,"print")],{label:'<i class="icon icon-down"></i>',name:"More options"})),w.push(c)}w.forEach((function(t){e.push(t)}))}},i(259),i(161);var _,x,S,T=new PgComponentType(s.O4+"row","Row",{selector:".row",tags:"major",preview:(x='<div style="height:60px;background:#eee;"></div>',S="border:2px solid #0098cc;",'<div class="container-fluid" style="'+(_="")+'"> <div class="row" style="'+S+'"> <div class="col-4" style="'+_+'">'+x+'</div> <div class="col-4">'+x+'</div> <div class="col-4">'+x+'</div> </div> <div class="row" style="margin-top:12px;"> <div class="col-4">'+x+'</div> <div class="col-4">'+x+'</div> <div class="col-4">'+x+"</div> </div> </div>"),code:'<div class="row"></div>',empty_placeholder:!0,action_menu:{add:[s.O4+"column"]}});s.MS.addComponentType(T);var C=new PgComponentType(s.O4+"column","Column",{tags:"major",selector:s.t3,parent_selector:".row",code:'<div class="col-md-4"><h3>Column title</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div>',empty_placeholder:!0,name:"Column"});s.MS.addComponentType(C);var A=new PgFrameworkLibSection(s.O4+"grid","Grid");A.setComponentTypes([T,C]),(0,s.r2)(A),i(17),pinegrow.addEventHandler("on_vite_plugin_activated",(function(t,e,i){e===d.Yr.key&&(!1===i.options.utilities?(0,d.JF)(i.options.utilities):(0,d.JF)(!0),s.MS.utilities=d.hC)})),pinegrow.addEventHandler("on_project_closed",(function(){(0,d.JF)(!1),s.MS.utilities=d.hC}));var E,O,M,P=i(461),F=i(841),L={classes_map:{},classes_list:[],classes_changed:!1,classes_id:0,css_vars_map:{},css_vars_list:[],css_vars_id:0,css_vars_changed:!1,ids_map:{},ids_list:[],ids_changed:!1,attribute_values:{},tags_attribute_values:{},keywords_map:{},keywords_list:[],keywords_changed:!1,contents:{},meta:{},path_map:{},path_list:[],path_changed:!1,path_id:0},j=function(t,e,i){if(null!==t&&0!==t.length&&!t.startsWith("pg-main-cs-")&&"pg-empty-placeholder"!==t)if(t in L.classes_map)L.classes_map[t].count++,n=L.classes_map[t],e&&n.sources.indexOf(e)<0&&n.sources.push(e),i&&n.sourceids.indexOf(i)<0&&n.sourceids.push(i);else{L.classes_id++;var n={key:t,name:t,count:1,sources:[],sourceids:[],id:L.classes_id};L.classes_map[t]=n,L.classes_list.push(n),L.classes_changed=!0,e&&n.sources.indexOf(e)<0&&n.sources.push(e),i&&n.sourceids.indexOf(i)<0&&n.sourceids.push(i)}},z=function t(e){e&&e.nodes&&e.nodes.forEach((function(e){if("rule"===e.type){var i=e.selector.match(/\.([a-zA-Z][a-zA-Z0-9\-\_]*)/g);if(i)for(var n=0;n<i.length;n++){var s=i[n].substr(1,i[n].length-1);s.startsWith("pg-node-id")||j(s,"quasar","pquasar")}}t(e)}))},D=function(t){return(E=E||P(F.mark((function t(e){var i,n;return F.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.getAttribute("lang")||"css",t.t0=i,t.next="scss"===t.t0?4:"less"===t.t0?6:8;break;case 4:return n=PgSCSSStylesheet(),t.abrupt("break",9);case 6:return n=PgLESSStylesheet(),t.abrupt("break",9);case 8:n=PgCSSStylesheet();case 9:return t.next=11,n.loadInline(e,(function(){}));case 11:return t.abrupt("return",n);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},R=function(t){return(O=O||P(F.mark((function t(e){var i,n,s,r,o,a,l;return F.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=pinegrow.app_designer.addonManager.apiServerManager.connectionManager.repoRoot)){t.next=13;break}if(n=path.resolve(i,"node_modules","quasar","dist",e),!fs.existsSync(n)||!fs.statSync(n).isFile()){t.next=13;break}if((r=fs.readFileSync(n,{encoding:"utf8",flag:"r"})).trim()&&(s=r||""),!s){t.next=13;break}return o="<style>\n ".concat(s,"\n </style>"),a=pgCreate(o),t.next=11,D(a);case 11:l=t.sent,z(l.getRootNode());case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)},I=null;!function(){(M=M||P(F.mark((function t(){return F.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,R("quasar.css");case 3:return t.next=5,R("quasar.addon.css");case 5:I=L.classes_list.map((function(t){return{key:t.key,id:t.id,name:t.name}})),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("Pinegrow Quasar Module: Unable to fetch quasar classList!"),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))).apply(this,arguments)}(),n.M.on_get_all_available_classes=function(t,e){I&&(e.classes=I)}},869:(t,e,i)=>{"use strict";i.d(e,{EB:()=>h,Fq:()=>a,N$:()=>u,Zo:()=>p});var n,s=i(855),r=i(991),o=r.Yr.minor_version,a=r.Yr.version,l=function(t){n=t,s.M.name_short="".concat(r.Yr.name)},c=pinegrow.getSetting("".concat(r.Yr.key,"-force-version"),"auto");"auto"!=c&&l(parseFloat(c));var h=function(t,e){"auto"==c?t.data["".concat(r.Yr.type,"Version")]&&!e?l(t.data["".concat(r.Yr.type,"Version")]):t.stylesheetsThatContain(/quasar\sv(5[0-9\.]*)/i,/quasar(\.min|)\.(css)/i,(function(e,i,s){if(e.length>0){var o=i[0][1].split("."),a=parseFloat(o[0]);o.length>1&&(a+=parseFloat(o[1])/10),l(a),t.data["".concat(r.Yr.type,"Version")]=a,s&&pinegrow.selectedElements.reselect(),console.log("version = "+n+" "+s)}}),e):l(parseFloat(c))},u=function(t){return n>=t},p=function(t){return n<t};l(o)}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(i,n){if(1&n&&(i=this(i)),8&n)return i;if("object"==typeof i&&i){if(4&n&&i.__esModule)return i;if(16&n&&"function"==typeof i.then)return i}var r=Object.create(null);s.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&i;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>i[t]));return o.default=()=>i,s.d(r,o),r},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";s.r(r);var t=s(991);$((function(){$("body").one("pinegrow-ready",(function(e,i){pgAddOnManager.isAddonActive("QUASAR")?Promise.resolve().then(s.bind(s,525)).then((function(){})):console.log("Pinegrow ".concat(t.Yr.short_name," addon is not active."))}))}))})(),r})()));
|