umwd-components 0.1.269 → 0.1.270
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/cjs/_virtual/_commonjsHelpers.js +1 -1
- package/dist/cjs/_virtual/index3.js +6 -0
- package/dist/cjs/node_modules/call-bind/callBound.js +6 -0
- package/dist/cjs/node_modules/call-bind/index.js +6 -0
- package/dist/cjs/node_modules/define-data-property/index.js +6 -0
- package/dist/cjs/node_modules/es-define-property/index.js +6 -0
- package/dist/cjs/node_modules/es-errors/eval.js +6 -0
- package/dist/cjs/node_modules/es-errors/index.js +6 -0
- package/dist/cjs/node_modules/es-errors/range.js +6 -0
- package/dist/cjs/node_modules/es-errors/ref.js +6 -0
- package/dist/cjs/node_modules/es-errors/syntax.js +6 -0
- package/dist/cjs/node_modules/es-errors/type.js +6 -0
- package/dist/cjs/node_modules/es-errors/uri.js +6 -0
- package/dist/cjs/node_modules/function-bind/implementation.js +6 -0
- package/dist/cjs/node_modules/function-bind/index.js +6 -0
- package/dist/cjs/node_modules/get-intrinsic/index.js +6 -0
- package/dist/cjs/node_modules/gopd/index.js +6 -0
- package/dist/cjs/node_modules/has-property-descriptors/index.js +6 -0
- package/dist/cjs/node_modules/has-proto/index.js +6 -0
- package/dist/cjs/node_modules/has-symbols/index.js +6 -0
- package/dist/cjs/node_modules/has-symbols/shams.js +6 -0
- package/dist/cjs/node_modules/hasown/index.js +6 -0
- package/dist/cjs/node_modules/object-inspect/index.js +6 -0
- package/dist/cjs/node_modules/object-inspect/util.inspect.js +6 -0
- package/dist/cjs/node_modules/qs/lib/formats.js +6 -0
- package/dist/cjs/node_modules/qs/lib/index.js +6 -0
- package/dist/cjs/node_modules/qs/lib/parse.js +6 -0
- package/dist/cjs/node_modules/qs/lib/stringify.js +6 -0
- package/dist/cjs/node_modules/qs/lib/utils.js +6 -0
- package/dist/cjs/node_modules/set-function-length/index.js +6 -0
- package/dist/cjs/node_modules/side-channel/index.js +6 -0
- package/dist/cjs/src/data/loaders.js +6 -0
- package/dist/cjs/src/index.js +1 -1
- package/dist/cjs/src/lib/utils.js +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +1 -1
- package/dist/esm/_virtual/index3.js +6 -0
- package/dist/esm/node_modules/call-bind/callBound.js +6 -0
- package/dist/esm/node_modules/call-bind/index.js +6 -0
- package/dist/esm/node_modules/define-data-property/index.js +6 -0
- package/dist/esm/node_modules/es-define-property/index.js +6 -0
- package/dist/esm/node_modules/es-errors/eval.js +6 -0
- package/dist/esm/node_modules/es-errors/index.js +6 -0
- package/dist/esm/node_modules/es-errors/range.js +6 -0
- package/dist/esm/node_modules/es-errors/ref.js +6 -0
- package/dist/esm/node_modules/es-errors/syntax.js +6 -0
- package/dist/esm/node_modules/es-errors/type.js +6 -0
- package/dist/esm/node_modules/es-errors/uri.js +6 -0
- package/dist/esm/node_modules/function-bind/implementation.js +6 -0
- package/dist/esm/node_modules/function-bind/index.js +6 -0
- package/dist/esm/node_modules/get-intrinsic/index.js +6 -0
- package/dist/esm/node_modules/gopd/index.js +6 -0
- package/dist/esm/node_modules/has-property-descriptors/index.js +6 -0
- package/dist/esm/node_modules/has-proto/index.js +6 -0
- package/dist/esm/node_modules/has-symbols/index.js +6 -0
- package/dist/esm/node_modules/has-symbols/shams.js +6 -0
- package/dist/esm/node_modules/hasown/index.js +6 -0
- package/dist/esm/node_modules/object-inspect/index.js +6 -0
- package/dist/esm/node_modules/object-inspect/util.inspect.js +6 -0
- package/dist/esm/node_modules/qs/lib/formats.js +6 -0
- package/dist/esm/node_modules/qs/lib/index.js +6 -0
- package/dist/esm/node_modules/qs/lib/parse.js +6 -0
- package/dist/esm/node_modules/qs/lib/stringify.js +6 -0
- package/dist/esm/node_modules/qs/lib/utils.js +6 -0
- package/dist/esm/node_modules/set-function-length/index.js +6 -0
- package/dist/esm/node_modules/side-channel/index.js +6 -0
- package/dist/esm/src/data/loaders.js +6 -0
- package/dist/esm/src/index.js +1 -1
- package/dist/esm/src/lib/utils.js +1 -1
- package/package.json +2 -1
- package/src/data/loaders.ts +90 -4
- package/src/index.js +9 -0
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
"use strict";exports.getDefaultExportFromCjs=function(
|
|
6
|
+
"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};exports.commonjsGlobal=e,exports.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var t=require("../get-intrinsic/index.js"),r=require("./index.js"),e=t.getIntrinsic,i=r.callBindExports,n=i(e("String.prototype.indexOf"));exports.callBound=function(t,r){var o=e(t,!!r);return"function"==typeof o&&n(t,".prototype.")>-1?i(o):o};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../../_virtual/index3.js"),r=require("../function-bind/index.js"),t=require("../get-intrinsic/index.js"),n=require("../set-function-length/index.js"),i=require("../es-errors/type.js"),o=require("../es-define-property/index.js");!function(e){var u=r.functionBind,p=t.getIntrinsic,s=n.setFunctionLength,c=i.type,l=p("%Function.prototype.apply%"),a=p("%Function.prototype.call%"),d=p("%Reflect.apply%",!0)||u.call(a,l),f=o.__require(),x=p("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new c("a function is required");var r=d(u,a,arguments);return s(r,1+x(0,e.length-(arguments.length-1)),!0)};var y=function(){return d(u,l,arguments)};f?f(e.exports,"apply",{value:y}):e.exports.apply=y}(e.__module);var u=e.__module.exports;exports.callBindExports=u;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../es-define-property/index.js"),n=require("../es-errors/syntax.js"),o=require("../es-errors/type.js"),r=require("../gopd/index.js"),l=e.__require(),t=n.syntax,i=o.type,a=r.gopd;exports.defineDataProperty=function(e,n,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof n&&"symbol"!=typeof n)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,b=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],s=!!a&&a(e,n);if(l)l(e,n,{configurable:null===b&&s?s.configurable:!b,enumerable:null===r&&s?s.enumerable:!r,value:o,writable:null===u&&s?s.writable:!u});else{if(!f&&(r||u||b))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[n]=o}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var r,e,t=require("../get-intrinsic/index.js");exports.__require=function(){if(e)return r;e=1;var i=(0,t.getIntrinsic)("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(r){i=!1}return r=i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var t=Object.prototype.toString,n=Math.max,r=function(t,n){for(var r=[],e=0;e<t.length;e+=1)r[e]=t[e];for(var o=0;o<n.length;o+=1)r[o+t.length]=n[o];return r};exports.implementation=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,p=function(t,n){for(var r=[],e=n||0,o=0;e<t.length;e+=1,o+=1)r[o]=t[e];return r}(arguments,1),u=n(0,o.length-p.length),a=[],c=0;c<u;c++)a[c]="$"+c;if(i=Function("binder","return function ("+function(t,n){for(var r="",e=0;e<t.length;e+=1)r+=t[e],e+1<t.length&&(r+=n);return r}(a,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(p,arguments));return Object(t)===t?t:this}return o.apply(e,r(p,arguments))})),o.prototype){var f=function(){};f.prototype=o.prototype,i.prototype=new f,f.prototype=null}return i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var r,e=require("../es-errors/index.js"),t=require("../es-errors/eval.js"),o=require("../es-errors/range.js"),n=require("../es-errors/ref.js"),a=require("../es-errors/syntax.js"),y=require("../es-errors/type.js"),i=require("../es-errors/uri.js"),p=require("../has-symbols/index.js"),s=require("../has-proto/index.js"),f=require("../function-bind/index.js"),c=require("../hasown/index.js"),u=e.esErrors,l=t._eval,A=o.range,d=n.ref,P=a.syntax,g=y.type,m=i.uri,S=Function,h=function(r){try{return S('"use strict"; return ('+r+").constructor;")()}catch(r){}},I=Object.getOwnPropertyDescriptor;if(I)try{I({},"")}catch(r){I=null}var F=function(){throw new g},b=I?function(){try{return F}catch(r){try{return I(arguments,"callee").get}catch(r){return F}}}():F,E=p.hasSymbols(),v=s.hasProto(),U=Object.getPrototypeOf||(v?function(r){return r.__proto__}:null),w={},R="undefined"!=typeof Uint8Array&&U?U(Uint8Array):r,x={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":E&&U?U([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":u,"%eval%":eval,"%EvalError%":l,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&U?U(U([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&U?U((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":A,"%ReferenceError%":d,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&U?U((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&U?U(""[Symbol.iterator]()):r,"%Symbol%":E?Symbol:r,"%SyntaxError%":P,"%ThrowTypeError%":b,"%TypedArray%":R,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":m,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(U)try{null.error}catch(r){var j=U(U(r));x["%Error.prototype%"]=j}var B=function r(e){var t;if("%AsyncFunction%"===e)t=h("async function () {}");else if("%GeneratorFunction%"===e)t=h("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=h("async function* () {}");else if("%AsyncGenerator%"===e){var o=r("%AsyncGeneratorFunction%");o&&(t=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=r("%AsyncGenerator%");n&&U&&(t=U(n.prototype))}return x[e]=t,t},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=f.functionBind,G=c.hasown,M=O.call(Function.call,Array.prototype.concat),k=O.call(Function.apply,Array.prototype.splice),N=O.call(Function.call,String.prototype.replace),q=O.call(Function.call,String.prototype.slice),W=O.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,T=function(r,e){var t,o=r;if(G(_,o)&&(o="%"+(t=_[o])[0]+"%"),G(x,o)){var n=x[o];if(n===w&&(n=B(o)),void 0===n&&!e)throw new g("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:t,name:o,value:n}}throw new P("intrinsic "+r+" does not exist!")};exports.getIntrinsic=function(r,e){if("string"!=typeof r||0===r.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new g('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,r))throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(r){var e=q(r,0,1),t=q(r,-1);if("%"===e&&"%"!==t)throw new P("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==e)throw new P("invalid intrinsic syntax, expected opening `%`");var o=[];return N(r,D,(function(r,e,t,n){o[o.length]=t?N(n,C,"$1"):e||r})),o}(r),o=t.length>0?t[0]:"",n=T("%"+o+"%",e),a=n.name,y=n.value,i=!1,p=n.alias;p&&(o=p[0],k(t,M([0,1],p)));for(var s=1,f=!0;s<t.length;s+=1){var c=t[s],u=q(c,0,1),l=q(c,-1);if(('"'===u||"'"===u||"`"===u||'"'===l||"'"===l||"`"===l)&&u!==l)throw new P("property names with quotes must have matching quotes");if("constructor"!==c&&f||(i=!0),G(x,a="%"+(o+="."+c)+"%"))y=x[a];else if(null!=y){if(!(c in y)){if(!e)throw new g("base intrinsic for "+r+" exists, but the property is not available.");return}if(I&&s+1>=t.length){var A=I(y,c);y=(f=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:y[c]}else f=G(y,c),y=y[c];f&&!i&&(x[a]=y)}}return y};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var r=require("../es-define-property/index.js").__require(),e=function(){return!!r};e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(r){return!0}};var t=e;exports.hasPropertyDescriptors_1=t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var o=require("./shams.js"),e="undefined"!=typeof Symbol&&Symbol,s=o.shams;exports.hasSymbols=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&s())))};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";exports.shams=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var t=require("../../_virtual/_commonjsHelpers.js"),e=require("./util.inspect.js"),r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,i=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&c&&"function"==typeof c.get?c.get:null,f=u&&Set.prototype.forEach,a="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,s=Function.prototype.toString,S=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,j=String.prototype.toUpperCase,v=String.prototype.toLowerCase,d=RegExp.prototype.test,O=Array.prototype.concat,w=Array.prototype.join,x=Array.prototype.slice,_=Math.floor,W="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,q=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||d.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-_(-t):_(t);if(n!==t){var o=String(n),i=h.call(e,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(e,r,"$&_")}var A=e.util_inspect,I=A.custom,N=C(I)?I:null;function P(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function R(t){return m.call(String(t),/"/g,""")}function D(t){return!("[object Array]"!==F(t)||L&&"object"==typeof t&&L in t)}function B(t){return!("[object RegExp]"!==F(t)||L&&"object"==typeof t&&L in t)}function C(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}var H=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return H.call(t,e)}function F(t){return b.call(t)}function G(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function U(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return U(h.call(t,0,e.maxStringLength),e)+n}return P(m.call(m.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+j.call(e.toString(16))}function K(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function V(t,e,r,n){return t+" ("+e+") {"+(n?X(r,n):w.call(r,", "))+"}"}function X(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+w.call(t,","+r)+"\n"+e.prev}function Y(t,e){var r=D(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=z(t,o)?e(t[o],t):""}var i,u="function"==typeof k?k(t):[];if(M){i={};for(var c=0;c<u.length;c++)i["$"+u[c]]=u[c]}for(var l in t)z(t,l)&&(r&&String(Number(l))===l&&l<t.length||M&&i["$"+l]instanceof Symbol||(d.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof k)for(var f=0;f<u.length;f++)q.call(t,u[f])&&n.push("["+e(u[f])+"]: "+e(t[u[f]],t));return n}exports.objectInspect=function e(r,n,u,c){var b=n||{};if(z(b,"quoteStyle")&&"single"!==b.quoteStyle&&"double"!==b.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(b,"maxStringLength")&&("number"==typeof b.maxStringLength?b.maxStringLength<0&&b.maxStringLength!==1/0:null!==b.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var j=!z(b,"customInspect")||b.customInspect;if("boolean"!=typeof j&&"symbol"!==j)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(b,"indent")&&null!==b.indent&&"\t"!==b.indent&&!(parseInt(b.indent,10)===b.indent&&b.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(b,"numericSeparator")&&"boolean"!=typeof b.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=b.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return U(r,b);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var _=String(r);return d?$(r,_):_}if("bigint"==typeof r){var k=String(r)+"n";return d?$(r,k):k}var I=void 0===b.depth?5:b.depth;if(void 0===u&&(u=0),u>=I&&I>0&&"object"==typeof r)return D(r)?"[Array]":"[Object]";var H=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(b,u);if(void 0===c)c=[];else if(G(c,r)>=0)return"[Circular]";function J(t,r,n){if(r&&(c=x.call(c)).push(r),n){var o={depth:b.depth};return z(b,"quoteStyle")&&(o.quoteStyle=b.quoteStyle),e(t,o,u+1,c)}return e(t,b,u+1,c)}if("function"==typeof r&&!B(r)){var Z=function(t){if(t.name)return t.name;var e=S.call(s.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(r),tt=Y(r,J);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(tt.length>0?" { "+w.call(tt,", ")+" }":"")}if(C(r)){var et=M?m.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(r);return"object"!=typeof r||M?et:K(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(r)){for(var rt="<"+v.call(String(r.nodeName)),nt=r.attributes||[],ot=0;ot<nt.length;ot++)rt+=" "+nt[ot].name+"="+P(R(nt[ot].value),"double",b);return rt+=">",r.childNodes&&r.childNodes.length&&(rt+="..."),rt+="</"+v.call(String(r.nodeName))+">"}if(D(r)){if(0===r.length)return"[]";var it=Y(r,J);return H&&!function(t){for(var e=0;e<t.length;e++)if(G(t[e],"\n")>=0)return!1;return!0}(it)?"["+X(it,H)+"]":"[ "+w.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==F(t)||L&&"object"==typeof t&&L in t)}(r)){var ut=Y(r,J);return"cause"in Error.prototype||!("cause"in r)||q.call(r,"cause")?0===ut.length?"["+String(r)+"]":"{ ["+String(r)+"] "+w.call(ut,", ")+" }":"{ ["+String(r)+"] "+w.call(O.call("[cause]: "+J(r.cause),ut),", ")+" }"}if("object"==typeof r&&j){if(N&&"function"==typeof r[N]&&A)return A(r,{depth:I-u});if("symbol"!==j&&"function"==typeof r.inspect)return r.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(r)){var ct=[];return i&&i.call(r,(function(t,e){ct.push(J(e,r,!0)+" => "+J(t,r))})),V("Map",o.call(r),ct,H)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(r)){var lt=[];return f&&f.call(r,(function(t){lt.push(J(t,r))})),V("Set",l.call(r),lt,H)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t,a);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(r))return Q("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{a.call(t,a)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(r))return Q("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(r))return Q("WeakRef");if(function(t){return!("[object Number]"!==F(t)||L&&"object"==typeof t&&L in t)}(r))return K(J(Number(r)));if(function(t){if(!t||"object"!=typeof t||!W)return!1;try{return W.call(t),!0}catch(t){}return!1}(r))return K(J(W.call(r)));if(function(t){return!("[object Boolean]"!==F(t)||L&&"object"==typeof t&&L in t)}(r))return K(g.call(r));if(function(t){return!("[object String]"!==F(t)||L&&"object"==typeof t&&L in t)}(r))return K(J(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if(r===t.commonjsGlobal)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==F(t)||L&&"object"==typeof t&&L in t)}(r)&&!B(r)){var ft=Y(r,J),at=T?T(r)===Object.prototype:r instanceof Object||r.constructor===Object,pt=r instanceof Object?"":"null prototype",yt=!at&&L&&Object(r)===r&&L in r?h.call(F(r),8,-1):pt?"Object":"",gt=(at||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(yt||pt?"["+w.call(O.call([],yt||[],pt||[]),": ")+"] ":"");return 0===ft.length?gt+"{}":H?gt+"{"+X(ft,H)+"}":gt+"{ "+w.call(ft,", ")+" }"}return String(r)};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var t=String.prototype.replace,r=/%20/g,e="RFC3986",n={default:e,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:e};exports.formats=n;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../../_virtual/_commonjsHelpers.js"),e=require("./stringify.js"),s=require("./parse.js"),t=require("./formats.js"),i=e.stringify_1,a=s.parse,o={formats:t.formats,parse:a,stringify:i},u=r.getDefaultExportFromCjs(o);exports.default=u;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("./utils.js").utils,t=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,r,o,i){if(e){var l=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/g,s=o.depth>0&&/(\[[^[\]]*])/.exec(l),c=s?l.slice(0,s.index):l,p=[];if(c){if(!o.plainObjects&&t.call(Object.prototype,c)&&!o.allowPrototypes)return;p.push(c)}for(var d=0;o.depth>0&&null!==(s=n.exec(l))&&d<o.depth;){if(d+=1,!o.plainObjects&&t.call(Object.prototype,s[1].slice(1,-1))&&!o.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+l.slice(s.index)+"]"),function(e,t,r,o){for(var i=o?t:a(t,r),l=e.length-1;l>=0;--l){var n,s=e[l];if("[]"===s&&r.parseArrays)n=r.allowEmptyArrays&&""===i?[]:[].concat(i);else{n=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10);r.parseArrays||""!==p?!isNaN(d)&&s!==p&&String(d)===p&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(n=[])[d]=i:"__proto__"!==p&&(n[p]=i):n={0:i}}i=n}return i}(p,r,o,i)}};exports.parse=function(n,s){var c=function(t){if(!t)return o;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=void 0===t.charset?o.charset:t.charset,i=void 0===t.duplicates?o.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||o.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(s);if(""===n||null==n)return c.plainObjects?Object.create(null):{};for(var p="string"==typeof n?function(l,n){var s,c={__proto__:null},p=n.ignoreQueryPrefix?l.replace(/^\?/,""):l,d=n.parameterLimit===1/0?void 0:n.parameterLimit,y=p.split(n.delimiter,d),u=-1,f=n.charset;if(n.charsetSentinel)for(s=0;s<y.length;++s)0===y[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[s]?f="utf-8":"utf8=%26%2310003%3B"===y[s]&&(f="iso-8859-1"),u=s,s=y.length);for(s=0;s<y.length;++s)if(s!==u){var m,h,b=y[s],w=b.indexOf("]="),g=-1===w?b.indexOf("="):w+1;-1===g?(m=n.decoder(b,o.decoder,f,"key"),h=n.strictNullHandling?null:""):(m=n.decoder(b.slice(0,g),o.decoder,f,"key"),h=e.maybeMap(a(b.slice(g+1),n),(function(e){return n.decoder(e,o.decoder,f,"value")}))),h&&n.interpretNumericEntities&&"iso-8859-1"===f&&(h=i(h)),b.indexOf("[]=")>-1&&(h=r(h)?[h]:h);var v=t.call(c,m);v&&"combine"===n.duplicates?c[m]=e.combine(c[m],h):v&&"last"!==n.duplicates||(c[m]=h)}return c}(n,c):n,d=c.plainObjects?Object.create(null):{},y=Object.keys(p),u=0;u<y.length;++u){var f=y[u],m=l(f,p[f],c,"string"==typeof n);d=e.merge(d,m,c)}return!0===c.allowSparse?d:e.compact(d)};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../../side-channel/index.js"),r=require("./utils.js"),o=require("./formats.js"),t=e.sideChannel,n=r.utils,a=o.formats,i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,f=function(e,r){c.apply(e,s(r)?r:[r])},d=Date.prototype.toISOString,u=a.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:u,formatter:a.formatters[u],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(r,o,a,i,l,c,d,u,m,v,h,w,b,D,g,E,k,N){for(var T,A=r,j=N,I=0,O=!1;void 0!==(j=j.get(p))&&!O;){var K=j.get(r);if(I+=1,void 0!==K){if(K===I)throw new RangeError("Cyclic object value");O=!0}void 0===j.get(p)&&(I=0)}if("function"==typeof v?A=v(o,A):A instanceof Date?A=b(A):"comma"===a&&s(A)&&(A=n.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(c)return m&&!E?m(o,y.encoder,k,"key",D):o;A=""}if("string"==typeof(T=A)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||n.isBuffer(A))return m?[g(E?o:m(o,y.encoder,k,"key",D))+"="+g(m(A,y.encoder,k,"value",D))]:[g(o)+"="+g(String(A))];var S,x=[];if(void 0===A)return x;if("comma"===a&&s(A))E&&m&&(A=n.maybeMap(A,m)),S=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(v))S=v;else{var P=Object.keys(A);S=h?P.sort(h):P}var R=u?o.replace(/\./g,"%2E"):o,z=i&&s(A)&&1===A.length?R+"[]":R;if(l&&s(A)&&0===A.length)return z+"[]";for(var F=0;F<S.length;++F){var H=S[F],Q="object"==typeof H&&void 0!==H.value?H.value:A[H];if(!d||null!==Q){var V=w&&u?H.replace(/\./g,"%2E"):H,q=s(A)?"function"==typeof a?a(z,V):z:z+(w?"."+V:"["+V+"]");N.set(r,I);var C=t();C.set(p,N),f(x,e(Q,q,a,i,l,c,d,u,"comma"===a&&E&&s(A)?null:m,v,h,w,b,D,g,E,k,C))}}return x};exports.stringify_1=function(e,r){var o,n=e,c=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var t,n=a.formatters[o],c=y.filter;if(("function"==typeof e.filter||s(e.filter))&&(c=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:c,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(r);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(o=c.filter);var d=[];if("object"!=typeof n||null===n)return"";var u=l[c.arrayFormat],p="comma"===u&&c.commaRoundTrip;o||(o=Object.keys(n)),c.sort&&o.sort(c.sort);for(var v=t(),h=0;h<o.length;++h){var w=o[h];c.skipNulls&&null===n[w]||f(d,m(n[w],w,u,p,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var b=d.join(c.delimiter),D=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?D+="utf8=%26%2310003%3B&":D+="utf8=%E2%9C%93&"),b.length>0?D+b:""};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var r=require("./formats.js").formats,t=Object.prototype.hasOwnProperty,e=Array.isArray,o=function(){for(var r=[],t=0;t<256;++t)r.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return r}(),n=function(r,t){for(var e=t&&t.plainObjects?Object.create(null):{},o=0;o<r.length;++o)void 0!==r[o]&&(e[o]=r[o]);return e},c=1024,u={arrayToObject:n,assign:function(r,t){return Object.keys(t).reduce((function(r,e){return r[e]=t[e],r}),r)},combine:function(r,t){return[].concat(r,t)},compact:function(r){for(var t=[{obj:{o:r},prop:"o"}],o=[],n=0;n<t.length;++n)for(var c=t[n],u=c.obj[c.prop],f=Object.keys(u),i=0;i<f.length;++i){var p=f[i],a=u[p];"object"==typeof a&&null!==a&&-1===o.indexOf(a)&&(t.push({obj:u,prop:p}),o.push(a))}return function(r){for(;r.length>1;){var t=r.pop(),o=t.obj[t.prop];if(e(o)){for(var n=[],c=0;c<o.length;++c)void 0!==o[c]&&n.push(o[c]);t.obj[t.prop]=n}}}(t),r},decode:function(r,t,e){var o=r.replace(/\+/g," ");if("iso-8859-1"===e)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(r){return o}},encode:function(t,e,n,u,f){if(0===t.length)return t;var i=t;if("symbol"==typeof t?i=Symbol.prototype.toString.call(t):"string"!=typeof t&&(i=String(t)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(r){return"%26%23"+parseInt(r.slice(2),16)+"%3B"}));for(var p="",a=0;a<i.length;a+=c){for(var l=i.length>=c?i.slice(a,a+c):i,s=[],h=0;h<l.length;++h){var b=l.charCodeAt(h);45===b||46===b||95===b||126===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||f===r.RFC1738&&(40===b||41===b)?s[s.length]=l.charAt(h):b<128?s[s.length]=o[b]:b<2048?s[s.length]=o[192|b>>6]+o[128|63&b]:b<55296||b>=57344?s[s.length]=o[224|b>>12]+o[128|b>>6&63]+o[128|63&b]:(h+=1,b=65536+((1023&b)<<10|1023&l.charCodeAt(h)),s[s.length]=o[240|b>>18]+o[128|b>>12&63]+o[128|b>>6&63]+o[128|63&b])}p+=s.join("")}return p},isBuffer:function(r){return!(!r||"object"!=typeof r)&&!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},isRegExp:function(r){return"[object RegExp]"===Object.prototype.toString.call(r)},maybeMap:function(r,t){if(e(r)){for(var o=[],n=0;n<r.length;n+=1)o.push(t(r[n]));return o}return t(r)},merge:function r(o,c,u){if(!c)return o;if("object"!=typeof c){if(e(o))o.push(c);else{if(!o||"object"!=typeof o)return[o,c];(u&&(u.plainObjects||u.allowPrototypes)||!t.call(Object.prototype,c))&&(o[c]=!0)}return o}if(!o||"object"!=typeof o)return[o].concat(c);var f=o;return e(o)&&!e(c)&&(f=n(o,u)),e(o)&&e(c)?(c.forEach((function(e,n){if(t.call(o,n)){var c=o[n];c&&"object"==typeof c&&e&&"object"==typeof e?o[n]=r(c,e,u):o.push(e)}else o[n]=e})),o):Object.keys(c).reduce((function(e,o){var n=c[o];return t.call(e,o)?e[o]=r(e[o],n,u):e[o]=n,e}),f)}};exports.utils=u;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../get-intrinsic/index.js"),r=require("../define-data-property/index.js"),t=require("../has-property-descriptors/index.js"),i=require("../gopd/index.js"),n=require("../es-errors/type.js"),o=e.getIntrinsic,s=r.defineDataProperty,p=t.hasPropertyDescriptors_1(),a=i.gopd,u=n.type,f=o("%Math.floor%");exports.setFunctionLength=function(e,r){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof r||r<0||r>4294967295||f(r)!==r)throw new u("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],i=!0,n=!0;if("length"in e&&a){var o=a(e,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(n=!1)}return(i||n||!t)&&(p?s(e,"length",r,!0,!0):s(e,"length",r)),e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../get-intrinsic/index.js"),t=require("../call-bind/callBound.js"),n=require("../object-inspect/index.js"),r=require("../es-errors/type.js"),o=e.getIntrinsic,i=t.callBound,u=n.objectInspect,a=r.type,f=o("%WeakMap%",!0),p=o("%Map%",!0),s=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),y=i("Map.prototype.get",!0),x=i("Map.prototype.set",!0),j=i("Map.prototype.has",!0),d=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};exports.sideChannel=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+u(e))},get:function(r){if(f&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(p){if(t)return y(t,r)}else if(n)return function(e,t){var n=d(e,t);return n&&n.value}(n,r)},has:function(r){if(f&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(p){if(t)return j(t,r)}else if(n)return function(e,t){return!!d(e,t)}(n,r);return!1},set:function(r,o){f&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new f),c(e,r,o)):p?(t||(t=new p),x(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=d(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
"use strict";var e=require("../../node_modules/qs/lib/index.js"),t=require("../lib/utils.js"),a=require("next/cache");const o=t.getStrapiURL();async function p(e){"Bearer ".concat(null);try{const a=await fetch(e,{}),o=await a.json();return t.flattenAttributes(o)}catch(e){throw console.error("Error fetching data:",e),e}}exports.getAllPages=async function(){a.unstable_noStore();const t=new URL("/api/pages",o);return t.search=e.default.stringify({populate:{blocks:{populate:{bgImage:{populate:!0},logoImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0}}}}),await p(t.href)},exports.getDisclaimerData=async function(){a.unstable_noStore();const t=new URL("/api/slugify/slugs/page/disclaimer?populate[blocks][populate]=%2A",o);return t.search=e.default.stringify({populate:{blocks:{populate:!0}}}),await p(t.href)},exports.getHomePageData=async function(){const t=new URL("/api/home-page",o);return t.search=e.default.stringify({populate:{blocks:{populate:{image:{populate:!0},link:{populate:!0},feature:{populate:!0}}}}}),await p(t.href)},exports.getNavigation=async function(){a.unstable_noStore();const e=new URL("/api/navigation/render/main-navigation",o);return await p(e.href)},exports.getPageNames=async function(){a.unstable_noStore();const t=new URL("/api/pages",o);return t.search=e.default.stringify({fields:["slug"]}),await p(t.href)},exports.getPagedata=async function(t){a.unstable_noStore();const n=new URL("/api/slugify/slugs/page/".concat(t,"?populate[blocks][populate]=%2A"),o);return n.search=e.default.stringify({populate:{blocks:{populate:{logoImage:{populate:!0},bgImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0}}}}),await p(n.href)},exports.getSiteData=async function(){a.unstable_noStore();const t=new URL("/api/public-information",o);return t.search=e.default.stringify({populate:{company_socials:!0,footer_logo:!0,header_logo:!0,company_address:!0}}),await p(t.href)};
|
package/dist/cjs/src/index.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var e=require("./components/layout/Footer.js"),
|
|
6
|
+
"use strict";var e=require("./components/layout/Footer.js"),t=require("./components/ContactForm.js"),o=require("./components/WebsitePlaceholder.js"),r=require("./components/WhatsAppClickToChatButton.js"),a=require("./components/ScrollLink.js"),s=require("./components/layout/Navbar.js"),i=require("./components/FluidBackground.js"),n=require("./components/forms/RegisterForm.js"),u=require("./components/forms/SigninForm.js"),g=require("./components/layout/SideNav.js"),p=require("./components/LogoutButton.js"),l=require("./components/page-elements/Page.js"),c=require("./components/page-builder/PageBuilder.js"),d=require("./components/StyledLink.js"),m=require("./data/actions/auth-actions.js"),x=require("./data/actions/pagebuilder-actions.js"),j=require("./data/loaders.js");exports.Footer=e.default,exports.ContactForm=t.ContactForm,exports.WebsitePlaceholder=o.default,exports.WhatsAppClickToChatButton=r.default,exports.ScrollLink=a.default,exports.Navbar=s.default,exports.FluidBackground=i.default,exports.RegisterForm=n.default,exports.SigninForm=u.default,exports.SideNav=g.default,exports.LogoutButton=p.default,exports.Page=l.Page,exports.PageBuilder=c.default,exports.StyledLink=d.StyledLink,exports.loginUserAction=m.loginUserAction,exports.logoutAction=m.logoutAction,exports.registerUserAction=m.registerUserAction,exports.updatePageAction=x.updatePageAction,exports.getAllPages=j.getAllPages,exports.getDisclaimerData=j.getDisclaimerData,exports.getHomePageData=j.getHomePageData,exports.getNavigation=j.getNavigation,exports.getPageNames=j.getPageNames,exports.getPagedata=j.getPagedata,exports.getSiteData=j.getSiteData;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function t(){var t;return null!==(t=process.env.NEXT_PUBLIC_STRAPI_URL)&&void 0!==t?t:"http://localhost:1337"}exports.formDataToBlocks=function(t){const n=[];for(const[
|
|
6
|
+
"use strict";function t(){var t;return null!==(t=process.env.NEXT_PUBLIC_STRAPI_URL)&&void 0!==t?t:"http://localhost:1337"}exports.flattenAttributes=function t(n){if("object"!=typeof n||null===n||n instanceof Date||"function"==typeof n)return n;if(Array.isArray(n))return n.map((n=>t(n)));let e={};for(let a in n)n.hasOwnProperty(a)&&("attributes"!==a&&"data"!==a||"object"!=typeof n[a]||Array.isArray(n[a])?e[a]=t(n[a]):Object.assign(e,t(n[a])));return e},exports.formDataToBlocks=function(t){const n=[];for(const[e,a]of t.entries()){const t=e.split(".");if(t[0].startsWith("blocks")){const c=t[0].slice(7,8),r=t[1].endsWith("]")?t[1].slice(0,t[1].length-3):t[1],o=t.length>2?t[2]:null,s=t[1].endsWith("]")?t[1].slice(-2,-1):null;switch(n[c]||(n[c]={id:"",__component:""}),r){case"id":n[c].id=a;break;case"__component":n[c].__component=a;break;case"heading":case"subHeading":case"title":case"subtitle":n[c][r]=a;break;case"link":void 0!==n[c][r]&&null!==n[c][r]||(n[c][r]={}),n[c][r][o]=a;break;case"feature":console.log("!!",n[c],r,s,o),void 0!==n[c][r]&&null!==n[c][r]||(n[c][r]=[]);break;default:console.warn("Ignoring unexpected property: ".concat(e))}}}return n},exports.getStrapiMedia=function(n){return null==n?null:n.startsWith("data:")||n.startsWith("http")||n.startsWith("//")?n:"".concat(t()).concat(n)},exports.getStrapiURL=t,exports.setOpacity=function(t,n){n=Math.min(Math.max(n,0),1);const e=t.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i);if(e){const[,t,a,c,r="FF"]=e;return"rgba(".concat(parseInt(t,16),", ").concat(parseInt(a,16),", ").concat(parseInt(c,16),", ").concat(parseInt(r,16)/255*n,")")}{const e=t.match(/^rgb\((\d+)(?:,(\d+))?(?:,(\d+))?\)$/i),a=t.match(/^rgba\((\d+)(?:,(\d+))?(?:,(\d+))?(?:,([.\d]+))?\)$/i);if(e){const[,t,a,c]=e;return"rgba(".concat(t,", ").concat(a,", ").concat(c,", ").concat(n,")")}if(a){const[,t,e,c,r]=a;return"rgba(".concat(t,", ").concat(e,", ").concat(c,", ").concat(r||n,")")}}return t};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
function
|
|
6
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as commonjsGlobal,o as getDefaultExportFromCjs};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{g as t}from"../get-intrinsic/index.js";import{c as r}from"./index.js";var o=t,i=r,n=i(o("String.prototype.indexOf")),e=function(t,r){var e=o(t,!!r);return"function"==typeof e&&n(t,".prototype.")>-1?i(e):e};export{e as c};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{__module as t}from"../../_virtual/index3.js";import{f as r}from"../function-bind/index.js";import{g as e}from"../get-intrinsic/index.js";import{s as o}from"../set-function-length/index.js";import{t as n}from"../es-errors/type.js";import{__require as i}from"../es-define-property/index.js";!function(t){var p=r,s=e,a=o,f=n,u=s("%Function.prototype.apply%"),l=s("%Function.prototype.call%"),c=s("%Reflect.apply%",!0)||p.call(l,u),m=i(),x=s("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new f("a function is required");var r=c(p,l,arguments);return a(r,1+x(0,t.length-(arguments.length-1)),!0)};var d=function(){return c(p,u,arguments)};m?m(t.exports,"apply",{value:d}):t.exports.apply=d}(t);var p=t.exports;export{p as c};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{__require as e}from"../es-define-property/index.js";import{s as o}from"../es-errors/syntax.js";import{t as n}from"../es-errors/type.js";import{g as r}from"../gopd/index.js";var l=e(),t=o,i=n,a=r,f=function(e,o,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof o&&"symbol"!=typeof o)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],b=!!a&&a(e,o);if(l)l(e,o,{configurable:null===s&&b?b.configurable:!s,enumerable:null===r&&b?b.enumerable:!r,value:n,writable:null===f&&b?b.writable:!f});else{if(!u&&(r||f||s))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[o]=n}};export{f as d};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{g as r}from"../get-intrinsic/index.js";var e,t;function i(){if(t)return e;t=1;var i=r("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(r){i=!1}return e=i}export{i as __require};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
var t=Object.prototype.toString,n=Math.max,r=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var e=0;e<n.length;e+=1)r[e+t.length]=n[e];return r},o=function(o){var e=this;if("function"!=typeof e||"[object Function]"!==t.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var i,p=function(t,n){for(var r=[],o=n||0,e=0;o<t.length;o+=1,e+=1)r[e]=t[o];return r}(arguments,1),u=n(0,e.length-p.length),a=[],f=0;f<u;f++)a[f]="$"+f;if(i=Function("binder","return function ("+function(t,n){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=n);return r}(a,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=e.apply(this,r(p,arguments));return Object(t)===t?t:this}return e.apply(o,r(p,arguments))})),e.prototype){var c=function(){};c.prototype=e.prototype,i.prototype=new c,c.prototype=null}return i};export{o as i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{e as r}from"../es-errors/index.js";import{_ as t}from"../es-errors/eval.js";import{r as e}from"../es-errors/range.js";import{r as o}from"../es-errors/ref.js";import{s as n}from"../es-errors/syntax.js";import{t as a}from"../es-errors/type.js";import{u as y}from"../es-errors/uri.js";import{h as p}from"../has-symbols/index.js";import{h as i}from"../has-proto/index.js";import{f as s}from"../function-bind/index.js";import{h as f}from"../hasown/index.js";var c,l=r,u=t,A=e,d=o,m=n,P=a,g=y,S=Function,h=function(r){try{return S('"use strict"; return ('+r+").constructor;")()}catch(r){}},I=Object.getOwnPropertyDescriptor;if(I)try{I({},"")}catch(r){I=null}var F=function(){throw new P},b=I?function(){try{return F}catch(r){try{return I(arguments,"callee").get}catch(r){return F}}}():F,E=p(),U=i(),v=Object.getPrototypeOf||(U?function(r){return r.__proto__}:null),w={},R="undefined"!=typeof Uint8Array&&v?v(Uint8Array):c,x={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?c:ArrayBuffer,"%ArrayIteratorPrototype%":E&&v?v([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?c:Atomics,"%BigInt%":"undefined"==typeof BigInt?c:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?c:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?c:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float32Array%":"undefined"==typeof Float32Array?c:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?c:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?c:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?c:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?c:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&v?v(v([][Symbol.iterator]())):c,"%JSON%":"object"==typeof JSON?JSON:c,"%Map%":"undefined"==typeof Map?c:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&v?v((new Map)[Symbol.iterator]()):c,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?c:Promise,"%Proxy%":"undefined"==typeof Proxy?c:Proxy,"%RangeError%":A,"%ReferenceError%":d,"%Reflect%":"undefined"==typeof Reflect?c:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?c:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&v?v((new Set)[Symbol.iterator]()):c,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&v?v(""[Symbol.iterator]()):c,"%Symbol%":E?Symbol:c,"%SyntaxError%":m,"%ThrowTypeError%":b,"%TypedArray%":R,"%TypeError%":P,"%Uint8Array%":"undefined"==typeof Uint8Array?c:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?c:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?c:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?c:Uint32Array,"%URIError%":g,"%WeakMap%":"undefined"==typeof WeakMap?c:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?c:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?c:WeakSet};if(v)try{null.error}catch(r){var j=v(v(r));x["%Error.prototype%"]=j}var B=function r(t){var e;if("%AsyncFunction%"===t)e=h("async function () {}");else if("%GeneratorFunction%"===t)e=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=h("async function* () {}");else if("%AsyncGenerator%"===t){var o=r("%AsyncGeneratorFunction%");o&&(e=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=r("%AsyncGenerator%");n&&v&&(e=v(n.prototype))}return x[t]=e,e},_={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=s,G=f,M=O.call(Function.call,Array.prototype.concat),k=O.call(Function.apply,Array.prototype.splice),N=O.call(Function.call,String.prototype.replace),W=O.call(Function.call,String.prototype.slice),D=O.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,J=function(r,t){var e,o=r;if(G(_,o)&&(o="%"+(e=_[o])[0]+"%"),G(x,o)){var n=x[o];if(n===w&&(n=B(o)),void 0===n&&!t)throw new P("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:e,name:o,value:n}}throw new m("intrinsic "+r+" does not exist!")},V=function(r,t){if("string"!=typeof r||0===r.length)throw new P("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new P('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,r))throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(r){var t=W(r,0,1),e=W(r,-1);if("%"===t&&"%"!==e)throw new m("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new m("invalid intrinsic syntax, expected opening `%`");var o=[];return N(r,C,(function(r,t,e,n){o[o.length]=e?N(n,T,"$1"):t||r})),o}(r),o=e.length>0?e[0]:"",n=J("%"+o+"%",t),a=n.name,y=n.value,p=!1,i=n.alias;i&&(o=i[0],k(e,M([0,1],i)));for(var s=1,f=!0;s<e.length;s+=1){var c=e[s],l=W(c,0,1),u=W(c,-1);if(('"'===l||"'"===l||"`"===l||'"'===u||"'"===u||"`"===u)&&l!==u)throw new m("property names with quotes must have matching quotes");if("constructor"!==c&&f||(p=!0),G(x,a="%"+(o+="."+c)+"%"))y=x[a];else if(null!=y){if(!(c in y)){if(!t)throw new P("base intrinsic for "+r+" exists, but the property is not available.");return}if(I&&s+1>=e.length){var A=I(y,c);y=(f=!!A)&&"get"in A&&!("originalValue"in A.get)?A.get:y[c]}else f=G(y,c),y=y[c];f&&!p&&(x[a]=y)}}return y};export{V as g};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{__require as r}from"../es-define-property/index.js";var e=r(),n=function(){return!!e};n.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(r){return!0}};var t=n;export{t as h};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{s as o}from"./shams.js";var f="undefined"!=typeof Symbol&&Symbol,t=o,y=function(){return"function"==typeof f&&("function"==typeof Symbol&&("symbol"==typeof f("foo")&&("symbol"==typeof Symbol("bar")&&t())))};export{y as h};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
var t=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0};export{t as s};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{commonjsGlobal as t}from"../../_virtual/_commonjsHelpers.js";import{u as e}from"./util.inspect.js";var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&"function"==typeof n.get?n.get:null,i=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&c&&"function"==typeof c.get?c.get:null,f=u&&Set.prototype.forEach,a="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,s=Function.prototype.toString,S=String.prototype.match,m=String.prototype.slice,h=String.prototype.replace,v=String.prototype.toUpperCase,d=String.prototype.toLowerCase,j=RegExp.prototype.test,O=Array.prototype.concat,w=Array.prototype.join,x=Array.prototype.slice,W=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,$=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function A(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||j.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-W(-t):W(t);if(n!==t){var o=String(n),i=m.call(e,o.length+1);return h.call(o,r,"$&_")+"."+h.call(h.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return h.call(e,r,"$&_")}var q=e,I=q.custom,N=H(I)?I:null,P=function e(r,n,u,c){var b=n||{};if(F(b,"quoteStyle")&&"single"!==b.quoteStyle&&"double"!==b.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(b,"maxStringLength")&&("number"==typeof b.maxStringLength?b.maxStringLength<0&&b.maxStringLength!==1/0:null!==b.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var v=!F(b,"customInspect")||b.customInspect;if("boolean"!=typeof v&&"symbol"!==v)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(b,"indent")&&null!==b.indent&&"\t"!==b.indent&&!(parseInt(b.indent,10)===b.indent&&b.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(b,"numericSeparator")&&"boolean"!=typeof b.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var j=b.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return J(r,b);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var W=String(r);return j?A(r,W):W}if("bigint"==typeof r){var k=String(r)+"n";return j?A(r,k):k}var I=void 0===b.depth?5:b.depth;if(void 0===u&&(u=0),u>=I&&I>0&&"object"==typeof r)return B(r)?"[Array]":"[Object]";var P=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(b,u);if(void 0===c)c=[];else if(G(c,r)>=0)return"[Circular]";function z(t,r,n){if(r&&(c=x.call(c)).push(r),n){var o={depth:b.depth};return F(b,"quoteStyle")&&(o.quoteStyle=b.quoteStyle),e(t,o,u+1,c)}return e(t,b,u+1,c)}if("function"==typeof r&&!C(r)){var K=function(t){if(t.name)return t.name;var e=S.call(s.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(r),tt=Z(r,z);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(tt.length>0?" { "+w.call(tt,", ")+" }":"")}if(H(r)){var et=M?h.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(r);return"object"!=typeof r||M?et:Q(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(r)){for(var rt="<"+d.call(String(r.nodeName)),nt=r.attributes||[],ot=0;ot<nt.length;ot++)rt+=" "+nt[ot].name+"="+R(D(nt[ot].value),"double",b);return rt+=">",r.childNodes&&r.childNodes.length&&(rt+="..."),rt+="</"+d.call(String(r.nodeName))+">"}if(B(r)){if(0===r.length)return"[]";var it=Z(r,z);return P&&!function(t){for(var e=0;e<t.length;e++)if(G(t[e],"\n")>=0)return!1;return!0}(it)?"["+Y(it,P)+"]":"[ "+w.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==U(t)||L&&"object"==typeof t&&L in t)}(r)){var ut=Z(r,z);return"cause"in Error.prototype||!("cause"in r)||T.call(r,"cause")?0===ut.length?"["+String(r)+"]":"{ ["+String(r)+"] "+w.call(ut,", ")+" }":"{ ["+String(r)+"] "+w.call(O.call("[cause]: "+z(r.cause),ut),", ")+" }"}if("object"==typeof r&&v){if(N&&"function"==typeof r[N]&&q)return q(r,{depth:I-u});if("symbol"!==v&&"function"==typeof r.inspect)return r.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(r)){var ct=[];return i&&i.call(r,(function(t,e){ct.push(z(e,r,!0)+" => "+z(t,r))})),X("Map",o.call(r),ct,P)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(r)){var lt=[];return f&&f.call(r,(function(t){lt.push(z(t,r))})),X("Set",l.call(r),lt,P)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t,a);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(r))return V("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{a.call(t,a)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(r))return V("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(r))return V("WeakRef");if(function(t){return!("[object Number]"!==U(t)||L&&"object"==typeof t&&L in t)}(r))return Q(z(Number(r)));if(function(t){if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}(r))return Q(z(_.call(r)));if(function(t){return!("[object Boolean]"!==U(t)||L&&"object"==typeof t&&L in t)}(r))return Q(g.call(r));if(function(t){return!("[object String]"!==U(t)||L&&"object"==typeof t&&L in t)}(r))return Q(z(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if(r===t)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==U(t)||L&&"object"==typeof t&&L in t)}(r)&&!C(r)){var ft=Z(r,z),at=$?$(r)===Object.prototype:r instanceof Object||r.constructor===Object,pt=r instanceof Object?"":"null prototype",yt=!at&&L&&Object(r)===r&&L in r?m.call(U(r),8,-1):pt?"Object":"",gt=(at||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(yt||pt?"["+w.call(O.call([],yt||[],pt||[]),": ")+"] ":"");return 0===ft.length?gt+"{}":P?gt+"{"+Y(ft,P)+"}":gt+"{ "+w.call(ft,", ")+" }"}return String(r)};function R(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function D(t){return h.call(String(t),/"/g,""")}function B(t){return!("[object Array]"!==U(t)||L&&"object"==typeof t&&L in t)}function C(t){return!("[object RegExp]"!==U(t)||L&&"object"==typeof t&&L in t)}function H(t){if(M)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(t){}return!1}var z=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return z.call(t,e)}function U(t){return b.call(t)}function G(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(m.call(t,0,e.maxStringLength),e)+n}return R(h.call(h.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function Q(t){return"Object("+t+")"}function V(t){return t+" { ? }"}function X(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):w.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+w.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=B(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=F(t,o)?e(t[o],t):""}var i,u="function"==typeof k?k(t):[];if(M){i={};for(var c=0;c<u.length;c++)i["$"+u[c]]=u[c]}for(var l in t)F(t,l)&&(r&&String(Number(l))===l&&l<t.length||M&&i["$"+l]instanceof Symbol||(j.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof k)for(var f=0;f<u.length;f++)T.call(t,u[f])&&n.push("["+e(u[f])+"]: "+e(t[u[f]],t));return n}export{P as o};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
var r=String.prototype.replace,t=/%20/g,e="RFC3986",n={default:e,formatters:{RFC1738:function(e){return r.call(e,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:"RFC1738",RFC3986:e};export{n as f};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{getDefaultExportFromCjs as r}from"../../../_virtual/_commonjsHelpers.js";import{s}from"./stringify.js";import{p as o}from"./parse.js";import{f as m}from"./formats.js";var a=r({formats:m,parse:o,stringify:s});export{a as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{u as e}from"./utils.js";var t=e,r=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},n=function(e,t,o,i){if(e){var a=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/g,s=o.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,p=[];if(c){if(!o.plainObjects&&r.call(Object.prototype,c)&&!o.allowPrototypes)return;p.push(c)}for(var d=0;o.depth>0&&null!==(s=n.exec(a))&&d<o.depth;){if(d+=1,!o.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!o.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+a.slice(s.index)+"]"),function(e,t,r,o){for(var i=o?t:l(t,r),a=e.length-1;a>=0;--a){var n,s=e[a];if("[]"===s&&r.parseArrays)n=r.allowEmptyArrays&&""===i?[]:[].concat(i);else{n=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(p,10);r.parseArrays||""!==p?!isNaN(d)&&s!==p&&String(d)===p&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(n=[])[d]=i:"__proto__"!==p&&(n[p]=i):n={0:i}}i=n}return i}(p,t,o,i)}},s=function(e,s){var c=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=void 0===e.charset?i.charset:e.charset,o=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==o&&"first"!==o&&"last"!==o)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||t.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:o,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(s);if(""===e||null==e)return c.plainObjects?Object.create(null):{};for(var p="string"==typeof e?function(e,n){var s,c={__proto__:null},p=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=n.parameterLimit===1/0?void 0:n.parameterLimit,y=p.split(n.delimiter,d),u=-1,f=n.charset;if(n.charsetSentinel)for(s=0;s<y.length;++s)0===y[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[s]?f="utf-8":"utf8=%26%2310003%3B"===y[s]&&(f="iso-8859-1"),u=s,s=y.length);for(s=0;s<y.length;++s)if(s!==u){var m,h,b=y[s],w=b.indexOf("]="),g=-1===w?b.indexOf("="):w+1;-1===g?(m=n.decoder(b,i.decoder,f,"key"),h=n.strictNullHandling?null:""):(m=n.decoder(b.slice(0,g),i.decoder,f,"key"),h=t.maybeMap(l(b.slice(g+1),n),(function(e){return n.decoder(e,i.decoder,f,"value")}))),h&&n.interpretNumericEntities&&"iso-8859-1"===f&&(h=a(h)),b.indexOf("[]=")>-1&&(h=o(h)?[h]:h);var v=r.call(c,m);v&&"combine"===n.duplicates?c[m]=t.combine(c[m],h):v&&"last"!==n.duplicates||(c[m]=h)}return c}(e,c):e,d=c.plainObjects?Object.create(null):{},y=Object.keys(p),u=0;u<y.length;++u){var f=y[u],m=n(f,p[f],c,"string"==typeof e);d=t.merge(d,m,c)}return!0===c.allowSparse?d:t.compact(d)};export{s as p};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{s as e}from"../../side-channel/index.js";import{u as o}from"./utils.js";import{f as r}from"./formats.js";var t=e,n=o,a=r,i=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,o){return e+"["+o+"]"},repeat:function(e){return e}},s=Array.isArray,f=Array.prototype.push,c=function(e,o){f.apply(e,s(o)?o:[o])},d=Date.prototype.toISOString,y=a.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:y,formatter:a.formatters[y],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(o,r,a,i,l,f,d,y,m,v,h,w,b,D,g,E,k,N){for(var T,A=o,j=N,I=0,O=!1;void 0!==(j=j.get(p))&&!O;){var K=j.get(o);if(I+=1,void 0!==K){if(K===I)throw new RangeError("Cyclic object value");O=!0}void 0===j.get(p)&&(I=0)}if("function"==typeof v?A=v(r,A):A instanceof Date?A=b(A):"comma"===a&&s(A)&&(A=n.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(f)return m&&!E?m(r,u.encoder,k,"key",D):r;A=""}if("string"==typeof(T=A)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||n.isBuffer(A))return m?[g(E?r:m(r,u.encoder,k,"key",D))+"="+g(m(A,u.encoder,k,"value",D))]:[g(r)+"="+g(String(A))];var S,x=[];if(void 0===A)return x;if("comma"===a&&s(A))E&&m&&(A=n.maybeMap(A,m)),S=[{value:A.length>0?A.join(",")||null:void 0}];else if(s(v))S=v;else{var P=Object.keys(A);S=h?P.sort(h):P}var R=y?r.replace(/\./g,"%2E"):r,z=i&&s(A)&&1===A.length?R+"[]":R;if(l&&s(A)&&0===A.length)return z+"[]";for(var F=0;F<S.length;++F){var H=S[F],Q="object"==typeof H&&void 0!==H.value?H.value:A[H];if(!d||null!==Q){var V=w&&y?H.replace(/\./g,"%2E"):H,B=s(A)?"function"==typeof a?a(z,V):z:z+(w?"."+V:"["+V+"]");N.set(o,I);var C=t();C.set(p,N),c(x,e(Q,B,a,i,l,f,d,y,"comma"===a&&E&&s(A)?null:m,v,h,w,b,D,g,E,k,C))}}return x},v=function(e,o){var r,n=e,f=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var o=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var t,n=a.formatters[r],f=u.filter;if(("function"==typeof e.filter||s(e.filter))&&(f=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:t,charset:o,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:f,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(o);"function"==typeof f.filter?n=(0,f.filter)("",n):s(f.filter)&&(r=f.filter);var d=[];if("object"!=typeof n||null===n)return"";var y=l[f.arrayFormat],p="comma"===y&&f.commaRoundTrip;r||(r=Object.keys(n)),f.sort&&r.sort(f.sort);for(var v=t(),h=0;h<r.length;++h){var w=r[h];f.skipNulls&&null===n[w]||c(d,m(n[w],w,y,p,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,v))}var b=d.join(f.delimiter),D=!0===f.addQueryPrefix?"?":"";return f.charsetSentinel&&("iso-8859-1"===f.charset?D+="utf8=%26%2310003%3B&":D+="utf8=%E2%9C%93&"),b.length>0?D+b:""};export{v as s};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{f as r}from"./formats.js";var t=r,e=Object.prototype.hasOwnProperty,o=Array.isArray,n=function(){for(var r=[],t=0;t<256;++t)r.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return r}(),c=function(r,t){for(var e=t&&t.plainObjects?Object.create(null):{},o=0;o<r.length;++o)void 0!==r[o]&&(e[o]=r[o]);return e},u=1024,f={arrayToObject:c,assign:function(r,t){return Object.keys(t).reduce((function(r,e){return r[e]=t[e],r}),r)},combine:function(r,t){return[].concat(r,t)},compact:function(r){for(var t=[{obj:{o:r},prop:"o"}],e=[],n=0;n<t.length;++n)for(var c=t[n],u=c.obj[c.prop],f=Object.keys(u),p=0;p<f.length;++p){var a=f[p],i=u[a];"object"==typeof i&&null!==i&&-1===e.indexOf(i)&&(t.push({obj:u,prop:a}),e.push(i))}return function(r){for(;r.length>1;){var t=r.pop(),e=t.obj[t.prop];if(o(e)){for(var n=[],c=0;c<e.length;++c)void 0!==e[c]&&n.push(e[c]);t.obj[t.prop]=n}}}(t),r},decode:function(r,t,e){var o=r.replace(/\+/g," ");if("iso-8859-1"===e)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(r){return o}},encode:function(r,e,o,c,f){if(0===r.length)return r;var p=r;if("symbol"==typeof r?p=Symbol.prototype.toString.call(r):"string"!=typeof r&&(p=String(r)),"iso-8859-1"===o)return escape(p).replace(/%u[0-9a-f]{4}/gi,(function(r){return"%26%23"+parseInt(r.slice(2),16)+"%3B"}));for(var a="",i=0;i<p.length;i+=u){for(var l=p.length>=u?p.slice(i,i+u):p,s=[],h=0;h<l.length;++h){var b=l.charCodeAt(h);45===b||46===b||95===b||126===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122||f===t.RFC1738&&(40===b||41===b)?s[s.length]=l.charAt(h):b<128?s[s.length]=n[b]:b<2048?s[s.length]=n[192|b>>6]+n[128|63&b]:b<55296||b>=57344?s[s.length]=n[224|b>>12]+n[128|b>>6&63]+n[128|63&b]:(h+=1,b=65536+((1023&b)<<10|1023&l.charCodeAt(h)),s[s.length]=n[240|b>>18]+n[128|b>>12&63]+n[128|b>>6&63]+n[128|63&b])}a+=s.join("")}return a},isBuffer:function(r){return!(!r||"object"!=typeof r)&&!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},isRegExp:function(r){return"[object RegExp]"===Object.prototype.toString.call(r)},maybeMap:function(r,t){if(o(r)){for(var e=[],n=0;n<r.length;n+=1)e.push(t(r[n]));return e}return t(r)},merge:function r(t,n,u){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(u&&(u.plainObjects||u.allowPrototypes)||!e.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var f=t;return o(t)&&!o(n)&&(f=c(t,u)),o(t)&&o(n)?(n.forEach((function(o,n){if(e.call(t,n)){var c=t[n];c&&"object"==typeof c&&o&&"object"==typeof o?t[n]=r(c,o,u):t.push(o)}else t[n]=o})),t):Object.keys(n).reduce((function(t,o){var c=n[o];return e.call(t,o)?t[o]=r(t[o],c,u):t[o]=c,t}),f)}};export{f as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{g as t}from"../get-intrinsic/index.js";import{d as r}from"../define-data-property/index.js";import{h as e}from"../has-property-descriptors/index.js";import{g as i}from"../gopd/index.js";import{t as n}from"../es-errors/type.js";var o=t,s=r,a=e(),f=i,p=n,g=o("%Math.floor%"),m=function(t,r){if("function"!=typeof t)throw new p("`fn` is not a function");if("number"!=typeof r||r<0||r>4294967295||g(r)!==r)throw new p("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],i=!0,n=!0;if("length"in t&&f){var o=f(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(n=!1)}return(i||n||!e)&&(a?s(t,"length",r,!0,!0):s(t,"length",r)),t};export{m as s};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{g as e}from"../get-intrinsic/index.js";import{c as t}from"../call-bind/callBound.js";import{o as n}from"../object-inspect/index.js";import{t as o}from"../es-errors/type.js";var r=e,i=t,f=n,a=o,p=r("%WeakMap%",!0),u=r("%Map%",!0),s=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),y=i("Map.prototype.get",!0),x=i("Map.prototype.set",!0),j=i("Map.prototype.has",!0),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n},v=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+f(e))},get:function(o){if(p&&o&&("object"==typeof o||"function"==typeof o)){if(e)return s(e,o)}else if(u){if(t)return y(t,o)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,o)},has:function(o){if(p&&o&&("object"==typeof o||"function"==typeof o)){if(e)return l(e,o)}else if(u){if(t)return j(t,o)}else if(n)return function(e,t){return!!m(e,t)}(n,o);return!1},set:function(o,r){p&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new p),c(e,o,r)):u?(t||(t=new u),x(t,o,r)):(n||(n={key:{},next:null}),function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,o,r))}};return o};export{v as s};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import a from"../../node_modules/qs/lib/index.js";import{getStrapiURL as e,flattenAttributes as o}from"../lib/utils.js";import{unstable_noStore as t}from"next/cache";const p=e();async function n(a){"Bearer ".concat(null);try{const e=await fetch(a,{}),t=await e.json();return o(t)}catch(a){throw console.error("Error fetching data:",a),a}}async function l(){const e=new URL("/api/home-page",p);return e.search=a.stringify({populate:{blocks:{populate:{image:{populate:!0},link:{populate:!0},feature:{populate:!0}}}}}),await n(e.href)}async function i(e){t();const o=new URL("/api/slugify/slugs/page/".concat(e,"?populate[blocks][populate]=%2A"),p);return o.search=a.stringify({populate:{blocks:{populate:{logoImage:{populate:!0},bgImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0}}}}),await n(o.href)}async function r(){t();const e=new URL("/api/slugify/slugs/page/disclaimer?populate[blocks][populate]=%2A",p);return e.search=a.stringify({populate:{blocks:{populate:!0}}}),await n(e.href)}async function u(){t();const e=new URL("/api/pages",p);return e.search=a.stringify({populate:{blocks:{populate:{bgImage:{populate:!0},logoImage:{populate:!0},image:{populate:!0},link:{populate:!0},feature:{populate:!0},icon:{populate:!0},airplane:{populate:{floorplan:!0}},column:{populate:!0},partner:{populate:{text:!0,photo:!0,links:!0}},pictures:!0,companies:{populate:{logo:!0}},textV2:!0}}}}),await n(e.href)}async function s(){t();const e=new URL("/api/pages",p);return e.search=a.stringify({fields:["slug"]}),await n(e.href)}async function c(){t();const e=new URL("/api/public-information",p);return e.search=a.stringify({populate:{company_socials:!0,footer_logo:!0,header_logo:!0,company_address:!0}}),await n(e.href)}async function f(){t();const a=new URL("/api/navigation/render/main-navigation",p);return await n(a.href)}export{u as getAllPages,r as getDisclaimerData,l as getHomePageData,f as getNavigation,s as getPageNames,i as getPagedata,c as getSiteData};
|
package/dist/esm/src/index.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
export{default as Footer}from"./components/layout/Footer.js";export{ContactForm}from"./components/ContactForm.js";export{default as WebsitePlaceholder}from"./components/WebsitePlaceholder.js";export{default as WhatsAppClickToChatButton}from"./components/WhatsAppClickToChatButton.js";export{default as ScrollLink}from"./components/ScrollLink.js";export{default as Navbar}from"./components/layout/Navbar.js";export{default as FluidBackground}from"./components/FluidBackground.js";export{default as RegisterForm}from"./components/forms/RegisterForm.js";export{default as SigninForm}from"./components/forms/SigninForm.js";export{default as SideNav}from"./components/layout/SideNav.js";export{default as LogoutButton}from"./components/LogoutButton.js";export{Page}from"./components/page-elements/Page.js";export{default as PageBuilder}from"./components/page-builder/PageBuilder.js";export{StyledLink}from"./components/StyledLink.js";export{loginUserAction,logoutAction,registerUserAction}from"./data/actions/auth-actions.js";export{updatePageAction}from"./data/actions/pagebuilder-actions.js";
|
|
6
|
+
export{default as Footer}from"./components/layout/Footer.js";export{ContactForm}from"./components/ContactForm.js";export{default as WebsitePlaceholder}from"./components/WebsitePlaceholder.js";export{default as WhatsAppClickToChatButton}from"./components/WhatsAppClickToChatButton.js";export{default as ScrollLink}from"./components/ScrollLink.js";export{default as Navbar}from"./components/layout/Navbar.js";export{default as FluidBackground}from"./components/FluidBackground.js";export{default as RegisterForm}from"./components/forms/RegisterForm.js";export{default as SigninForm}from"./components/forms/SigninForm.js";export{default as SideNav}from"./components/layout/SideNav.js";export{default as LogoutButton}from"./components/LogoutButton.js";export{Page}from"./components/page-elements/Page.js";export{default as PageBuilder}from"./components/page-builder/PageBuilder.js";export{StyledLink}from"./components/StyledLink.js";export{loginUserAction,logoutAction,registerUserAction}from"./data/actions/auth-actions.js";export{updatePageAction}from"./data/actions/pagebuilder-actions.js";export{getAllPages,getDisclaimerData,getHomePageData,getNavigation,getPageNames,getPagedata,getSiteData}from"./data/loaders.js";
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
function t(){var t;return null!==(t=process.env.NEXT_PUBLIC_STRAPI_URL)&&void 0!==t?t:"http://localhost:1337"}function
|
|
6
|
+
function t(n){if("object"!=typeof n||null===n||n instanceof Date||"function"==typeof n)return n;if(Array.isArray(n))return n.map((n=>t(n)));let c={};for(let a in n)n.hasOwnProperty(a)&&("attributes"!==a&&"data"!==a||"object"!=typeof n[a]||Array.isArray(n[a])?c[a]=t(n[a]):Object.assign(c,t(n[a])));return c}function n(){var t;return null!==(t=process.env.NEXT_PUBLIC_STRAPI_URL)&&void 0!==t?t:"http://localhost:1337"}function c(t){return null==t?null:t.startsWith("data:")||t.startsWith("http")||t.startsWith("//")?t:"".concat(n()).concat(t)}function a(t,n){n=Math.min(Math.max(n,0),1);const c=t.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i);if(c){const[,t,a,e,o="FF"]=c;return"rgba(".concat(parseInt(t,16),", ").concat(parseInt(a,16),", ").concat(parseInt(e,16),", ").concat(parseInt(o,16)/255*n,")")}{const c=t.match(/^rgb\((\d+)(?:,(\d+))?(?:,(\d+))?\)$/i),a=t.match(/^rgba\((\d+)(?:,(\d+))?(?:,(\d+))?(?:,([.\d]+))?\)$/i);if(c){const[,t,a,e]=c;return"rgba(".concat(t,", ").concat(a,", ").concat(e,", ").concat(n,")")}if(a){const[,t,c,e,o]=a;return"rgba(".concat(t,", ").concat(c,", ").concat(e,", ").concat(o||n,")")}}return t}function e(t){const n=[];for(const[c,a]of t.entries()){const t=c.split(".");if(t[0].startsWith("blocks")){const e=t[0].slice(7,8),o=t[1].endsWith("]")?t[1].slice(0,t[1].length-3):t[1],r=t.length>2?t[2]:null,s=t[1].endsWith("]")?t[1].slice(-2,-1):null;switch(n[e]||(n[e]={id:"",__component:""}),o){case"id":n[e].id=a;break;case"__component":n[e].__component=a;break;case"heading":case"subHeading":case"title":case"subtitle":n[e][o]=a;break;case"link":void 0!==n[e][o]&&null!==n[e][o]||(n[e][o]={}),n[e][o][r]=a;break;case"feature":console.log("!!",n[e],o,s,r),void 0!==n[e][o]&&null!==n[e][o]||(n[e][o]=[]);break;default:console.warn("Ignoring unexpected property: ".concat(c))}}}return n}export{t as flattenAttributes,e as formDataToBlocks,c as getStrapiMedia,n as getStrapiURL,a as setOpacity};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "umwd-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.270",
|
|
4
4
|
"description": "UMWD Component library",
|
|
5
5
|
"main": "dist/cjs/src/index.js",
|
|
6
6
|
"module": "dist/esm/src/index.js",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"@material-symbols/svg-400": "^0.17.1",
|
|
93
93
|
"@mui/types": "^7.2.14",
|
|
94
94
|
"next-router-mock": "^0.9.12",
|
|
95
|
+
"qs": "^6.12.0",
|
|
95
96
|
"tailwind-merge": "^2.2.2",
|
|
96
97
|
"tailwindcss-animate": "^1.0.7"
|
|
97
98
|
},
|
package/src/data/loaders.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import qs from "qs";
|
|
2
|
-
import { flattenAttributes, getStrapiURL } from "
|
|
2
|
+
import { flattenAttributes, getStrapiURL } from "../lib/utils.ts";
|
|
3
3
|
import { unstable_noStore as noStore } from "next/cache";
|
|
4
4
|
|
|
5
5
|
const baseUrl = getStrapiURL();
|
|
@@ -24,7 +24,7 @@ async function fetchData(url: string) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
async function getHomePageData() {
|
|
28
28
|
const url = new URL("/api/home-page", baseUrl);
|
|
29
29
|
|
|
30
30
|
url.search = qs.stringify({
|
|
@@ -48,7 +48,9 @@ export async function getHomePageData() {
|
|
|
48
48
|
return await fetchData(url.href);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
//--
|
|
52
|
+
|
|
53
|
+
async function getPagedata(slug: string) {
|
|
52
54
|
noStore();
|
|
53
55
|
|
|
54
56
|
const url = new URL(
|
|
@@ -62,12 +64,15 @@ export async function getPagedata(slug: string) {
|
|
|
62
64
|
populate: {
|
|
63
65
|
logoImage: {
|
|
64
66
|
populate: true,
|
|
67
|
+
// fields: ["url", "alternativeText"],
|
|
65
68
|
},
|
|
66
69
|
bgImage: {
|
|
67
70
|
populate: true,
|
|
71
|
+
// fields: ["url", "alternativeText"],
|
|
68
72
|
},
|
|
69
73
|
image: {
|
|
70
74
|
populate: true,
|
|
75
|
+
// fields: ["url", "alternativeText"],
|
|
71
76
|
},
|
|
72
77
|
link: {
|
|
73
78
|
populate: true,
|
|
@@ -93,6 +98,13 @@ export async function getPagedata(slug: string) {
|
|
|
93
98
|
links: true,
|
|
94
99
|
},
|
|
95
100
|
},
|
|
101
|
+
pictures: true,
|
|
102
|
+
companies: {
|
|
103
|
+
populate: {
|
|
104
|
+
logo: true,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
textV2: true,
|
|
96
108
|
},
|
|
97
109
|
},
|
|
98
110
|
},
|
|
@@ -101,7 +113,26 @@ export async function getPagedata(slug: string) {
|
|
|
101
113
|
return await fetchData(url.href);
|
|
102
114
|
}
|
|
103
115
|
|
|
104
|
-
|
|
116
|
+
async function getDisclaimerData() {
|
|
117
|
+
noStore();
|
|
118
|
+
|
|
119
|
+
const url = new URL(
|
|
120
|
+
`/api/slugify/slugs/page/disclaimer?populate[blocks][populate]=%2A`,
|
|
121
|
+
baseUrl
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
url.search = qs.stringify({
|
|
125
|
+
populate: {
|
|
126
|
+
blocks: {
|
|
127
|
+
populate: true,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
return await fetchData(url.href);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
async function getAllPages() {
|
|
105
136
|
noStore();
|
|
106
137
|
const url = new URL("/api/pages", baseUrl);
|
|
107
138
|
|
|
@@ -111,12 +142,15 @@ export async function getAllPages() {
|
|
|
111
142
|
populate: {
|
|
112
143
|
bgImage: {
|
|
113
144
|
populate: true,
|
|
145
|
+
// fields: ["url", "alternativeText"],
|
|
114
146
|
},
|
|
115
147
|
logoImage: {
|
|
116
148
|
populate: true,
|
|
149
|
+
// fields: ["url", "alternativeText"],
|
|
117
150
|
},
|
|
118
151
|
image: {
|
|
119
152
|
populate: true,
|
|
153
|
+
// fields: ["url", "alternativeText"],
|
|
120
154
|
},
|
|
121
155
|
link: {
|
|
122
156
|
populate: true,
|
|
@@ -142,6 +176,13 @@ export async function getAllPages() {
|
|
|
142
176
|
links: true,
|
|
143
177
|
},
|
|
144
178
|
},
|
|
179
|
+
pictures: true,
|
|
180
|
+
companies: {
|
|
181
|
+
populate: {
|
|
182
|
+
logo: true,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
textV2: true,
|
|
145
186
|
},
|
|
146
187
|
},
|
|
147
188
|
},
|
|
@@ -149,3 +190,48 @@ export async function getAllPages() {
|
|
|
149
190
|
|
|
150
191
|
return await fetchData(url.href);
|
|
151
192
|
}
|
|
193
|
+
|
|
194
|
+
async function getPageNames() {
|
|
195
|
+
noStore();
|
|
196
|
+
const url = new URL("/api/pages", baseUrl);
|
|
197
|
+
url.search = qs.stringify({
|
|
198
|
+
fields: ["slug"],
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
return await fetchData(url.href);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
async function getSiteData() {
|
|
205
|
+
noStore();
|
|
206
|
+
|
|
207
|
+
const url = new URL("/api/public-information", baseUrl);
|
|
208
|
+
|
|
209
|
+
url.search = qs.stringify({
|
|
210
|
+
populate: {
|
|
211
|
+
company_socials: true,
|
|
212
|
+
footer_logo: true,
|
|
213
|
+
header_logo: true,
|
|
214
|
+
company_address: true,
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
return await fetchData(url.href);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
async function getNavigation() {
|
|
222
|
+
noStore();
|
|
223
|
+
|
|
224
|
+
const url = new URL("/api/navigation/render/main-navigation", baseUrl);
|
|
225
|
+
|
|
226
|
+
return await fetchData(url.href);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export {
|
|
230
|
+
getHomePageData,
|
|
231
|
+
getPagedata,
|
|
232
|
+
getAllPages,
|
|
233
|
+
getNavigation,
|
|
234
|
+
getSiteData,
|
|
235
|
+
getPageNames,
|
|
236
|
+
getDisclaimerData,
|
|
237
|
+
};
|
package/src/index.js
CHANGED
|
@@ -18,3 +18,12 @@ export {
|
|
|
18
18
|
logoutAction as logoutAction,
|
|
19
19
|
} from "./data/actions/auth-actions.ts";
|
|
20
20
|
export { updatePageAction as updatePageAction } from "./data/actions/pagebuilder-actions.ts";
|
|
21
|
+
export {
|
|
22
|
+
getHomePageData as getHomePageData,
|
|
23
|
+
getPagedata as getPagedata,
|
|
24
|
+
getAllPages as getAllPages,
|
|
25
|
+
getNavigation as getNavigation,
|
|
26
|
+
getSiteData as getSiteData,
|
|
27
|
+
getPageNames as getPageNames,
|
|
28
|
+
getDisclaimerData as getDisclaimerData,
|
|
29
|
+
} from "./data/loaders.ts";
|