@everymatrix/general-icon-progress-bar 1.1.0 → 1.1.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function h(t,e,r){t.insertBefore(e,r||null)}function u(t){t.parentNode.removeChild(t)}function c(t){return document.createElement(t)}function l(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function f(t){const e={};for(const r of t)e[r.name]=r.value;return e}let p;function
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,(function(){"use strict";function t(){}function e(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(e,...r){if(null==e)return t;const n=e.subscribe(...r);return n.unsubscribe?()=>n.unsubscribe():n}function a(t,e){t.appendChild(e)}function h(t,e,r){t.insertBefore(e,r||null)}function u(t){t.parentNode.removeChild(t)}function c(t){return document.createElement(t)}function l(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function f(t){const e={};for(const r of t)e[r.name]=r.value;return e}let p;function g(t){p=t}function m(t){(function(){if(!p)throw new Error("Function called outside component initialization");return p})().$$.on_mount.push(t)}const b=[],E=[],d=[],y=[],v=Promise.resolve();let H=!1;function T(t){d.push(t)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -21,19 +21,19 @@ const B=new Set;let _=0;// Do *not* move this inside the flush() function
|
|
|
21
21
|
function A(){const t=p;do{
|
|
22
22
|
// first, call beforeUpdate functions
|
|
23
23
|
// and update components
|
|
24
|
-
for(;_<b.length;){const t=b[_];_++,
|
|
24
|
+
for(;_<b.length;){const t=b[_];_++,g(t),P(t.$$)}for(g(null),b.length=0,_=0;E.length;)E.pop()();
|
|
25
25
|
// then, once components are updated, call
|
|
26
26
|
// afterUpdate functions. This may cause
|
|
27
27
|
// subsequent updates...
|
|
28
28
|
for(let t=0;t<d.length;t+=1){const e=d[t];B.has(e)||(
|
|
29
29
|
// ...so guard against infinite loops
|
|
30
|
-
B.add(e),e())}d.length=0}while(b.length);for(;y.length;)y.pop()();H=!1,B.clear(),
|
|
30
|
+
B.add(e),e())}d.length=0}while(b.length);for(;y.length;)y.pop()();H=!1,B.clear(),g(t)}function P(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(T)}}const S=new Set;function L(t,e){-1===t.$$.dirty[0]&&(b.push(t),H||(H=!0,v.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function N(o,s,a,h,c,l,f,m=[-1]){const b=p;g(o);const E=o.$$={fragment:null,ctx:null,
|
|
31
31
|
// state
|
|
32
32
|
props:l,update:t,not_equal:c,bound:r(),
|
|
33
33
|
// lifecycle
|
|
34
34
|
on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(b?b.$$.context:[])),
|
|
35
35
|
// everything else
|
|
36
|
-
callbacks:r(),dirty:
|
|
36
|
+
callbacks:r(),dirty:m,skip_bound:!1,root:s.target||b.$$.root};f&&f(E.root);let d=!1;if(E.ctx=a?a(o,s.props||{},((t,e,...r)=>{const n=r.length?r[0]:e;return E.ctx&&c(E.ctx[t],E.ctx[t]=n)&&(!E.skip_bound&&E.bound[t]&&E.bound[t](n),d&&L(o,t)),e})):[],E.update(),d=!0,n(E.before_update),
|
|
37
37
|
// `false` as a special case of no DOM component
|
|
38
38
|
E.fragment=!!h&&h(E.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -44,7 +44,7 @@ E.fragment&&E.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(S.delete(y),y.i(v)
|
|
|
44
44
|
T((()=>{const r=h.map(e).filter(i);u?u.push(...r):
|
|
45
45
|
// Edge case - component was destroyed immediately,
|
|
46
46
|
// most likely as a result of a binding initialising
|
|
47
|
-
n(r),t.$$.on_mount=[]})),c.forEach(T)}(o,s.target,s.anchor,s.customElement),A()}var y,v;
|
|
47
|
+
n(r),t.$$.on_mount=[]})),c.forEach(T)}(o,s.target,s.anchor,s.customElement),A()}var y,v;g(b)}let I;"function"==typeof HTMLElement&&(I=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
|
|
48
48
|
// @ts-ignore todo: improve typings
|
|
49
49
|
for(const t in this.$$.slotted)
|
|
50
50
|
// @ts-ignore todo: improve typings
|
|
@@ -65,7 +65,7 @@ const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{co
|
|
|
65
65
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
66
66
|
*/
|
|
67
67
|
function w(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
|
|
68
|
-
const t=!O.length;for(const t of i)t[1](),O.push(t,e);if(t){for(let t=0;t<O.length;t+=2)O[t][0](O[t+1]);O.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(h),0===i.size&&(n(),n=null)}}}}function C(e,r,o){const a=!Array.isArray(e),h=a?[e]:e,u=r.length<2;return c=e=>{let o=!1;const c=[];let l=0,f=t;const p=()=>{if(l)return;f();const n=r(a?c[0]:c,e);u?e(n):f=i(n)?n:t},
|
|
68
|
+
const t=!O.length;for(const t of i)t[1](),O.push(t,e);if(t){for(let t=0;t<O.length;t+=2)O[t][0](O[t+1]);O.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(h),0===i.size&&(n(),n=null)}}}}function C(e,r,o){const a=!Array.isArray(e),h=a?[e]:e,u=r.length<2;return c=e=>{let o=!1;const c=[];let l=0,f=t;const p=()=>{if(l)return;f();const n=r(a?c[0]:c,e);u?e(n):f=i(n)?n:t},g=h.map(((t,e)=>s(t,(t=>{c[e]=t,l&=~(1<<e),o&&p()}),(()=>{l|=1<<e}))));return o=!0,p(),function(){n(g),f()}},{subscribe:w(o,c).subscribe};var c}var R=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===M}(t)}
|
|
69
69
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
70
70
|
(t)};var M="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function U(t,e){return!1!==e.clone&&e.isMergeableObject(t)?k((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function G(t,e,r){return t.concat(e).map((function(t){return U(t,r)}))}function D(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function $(t,e){try{return e in t}catch(t){return!1}}
|
|
71
71
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
@@ -222,11 +222,11 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
222
222
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
223
223
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}
|
|
224
224
|
// @generated from regex-gen.ts
|
|
225
|
-
var ct=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var lt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ft=/^(@+)?(\+|#+)?[rs]?$/g,pt=/(\*)(0+)|(#+)(0+)|(0+)/g,
|
|
225
|
+
var ct=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var lt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ft=/^(@+)?(\+|#+)?[rs]?$/g,pt=/(\*)(0+)|(#+)(0+)|(0+)/g,gt=/^(0+)$/;function mt(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(ft,(function(t,r,n){
|
|
226
226
|
// @@@ case
|
|
227
227
|
return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function bt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Et(t){
|
|
228
228
|
// Engineering
|
|
229
|
-
var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!
|
|
229
|
+
var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!gt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function dt(t){var e=bt(t);return e||{}}
|
|
230
230
|
/**
|
|
231
231
|
* https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options
|
|
232
232
|
*/function yt(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Z(Z(Z({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return Z(Z({},t),dt(e))}),{}));continue;case"engineering":e=Z(Z(Z({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return Z(Z({},t),dt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;
|
|
@@ -235,7 +235,7 @@ case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";
|
|
|
235
235
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
236
236
|
case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(pt,(function(t,r,n,i,o,s){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}
|
|
237
237
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
238
|
-
if(
|
|
238
|
+
if(gt.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(lt.test(i.stem)){
|
|
239
239
|
// Precision
|
|
240
240
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision
|
|
241
241
|
// precision-integer case
|
|
@@ -243,9 +243,9 @@ if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept
|
|
|
243
243
|
// .000* case (before ICU67 it was .000+)
|
|
244
244
|
return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];
|
|
245
245
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display
|
|
246
|
-
"w"===o?e=Z(Z({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Z(Z({},e),
|
|
246
|
+
"w"===o?e=Z(Z({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=Z(Z({},e),mt(o)))}
|
|
247
247
|
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision
|
|
248
|
-
else if(ft.test(i.stem))e=Z(Z({},e),
|
|
248
|
+
else if(ft.test(i.stem))e=Z(Z({},e),mt(i.stem));else{var s=bt(i.stem);s&&(e=Z(Z({},e),s));var a=Et(i.stem);a&&(e=Z(Z({},e),a))}}return e}
|
|
249
249
|
// @generated from time-data-gen.ts
|
|
250
250
|
// prettier-ignore
|
|
251
251
|
var vt,Ht={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};
|
|
@@ -390,16 +390,16 @@ return{val:{type:"number"===s?K.number:"date"===s?K.date:K.time,value:r,location
|
|
|
390
390
|
// Parse this range:
|
|
391
391
|
// {name, plural, options}
|
|
392
392
|
// ^---------^
|
|
393
|
-
var
|
|
393
|
+
var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(X.EXPECT_SELECT_ARGUMENT_OPTIONS,At(g,Z({},g)));this.bumpSpace();
|
|
394
394
|
// Parse offset:
|
|
395
395
|
// {name, plural, offset:1, options}
|
|
396
396
|
// ^-----^
|
|
397
397
|
// or the first option:
|
|
398
398
|
// {name, plural, one {...} other {...}}
|
|
399
399
|
// ^--^
|
|
400
|
-
var
|
|
400
|
+
var m=this.parseIdentifierIfPossible(),b=0;if("select"!==s&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,At(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(X.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,X.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;
|
|
401
401
|
// Parse another identifier for option parsing
|
|
402
|
-
this.bumpSpace(),
|
|
402
|
+
this.bumpSpace(),m=this.parseIdentifierIfPossible(),b=E.val}var d,y=this.tryParsePluralOrSelectOptions(t,s,e,m);if(y.err)return y;if((d=this.tryParseArgumentClose(n)).err)return d;var v=At(n,this.clonePosition());return"select"===s?{val:{type:K.select,value:r,options:Gt(y.val),location:v},err:null}:{val:{type:K.plural,value:r,options:Gt(y.val),offset:b,pluralType:"plural"===s?"cardinal":"ordinal",location:v},err:null};default:return this.error(X.INVALID_ARGUMENT_TYPE,At(o,a))}},t.prototype.tryParseArgumentClose=function(t){
|
|
403
403
|
// Parse: {value, number, ::currency/GBP }
|
|
404
404
|
return this.isEOF()||125/* `}` */!==this.char()?this.error(X.EXPECT_ARGUMENT_CLOSING_BRACE,At(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},
|
|
405
405
|
/**
|
|
@@ -433,7 +433,7 @@ if(a.has(h))return this.error("select"===e?X.DUPLICATE_SELECT_ARGUMENT_SELECTOR:
|
|
|
433
433
|
// Parse:
|
|
434
434
|
// one {one apple}
|
|
435
435
|
// ^----------^
|
|
436
|
-
this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,At(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var
|
|
436
|
+
this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?X.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:X.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,At(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,r);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;s.push([h,{value:p.val,location:At(f,this.clonePosition())}]),
|
|
437
437
|
// Keep track of the existing selectors
|
|
438
438
|
a.add(h),
|
|
439
439
|
// Prep next selector clause.
|
|
@@ -528,14 +528,14 @@ if(!i||!(l in i))throw new ce(l,s);var f=i[l];if(Q(c))f&&"string"!=typeof f&&"nu
|
|
|
528
528
|
// Recursively format plural and select parts' option — which can be a
|
|
529
529
|
// nested pattern structure. The choosing of the option to use is
|
|
530
530
|
// abstracted-by and delegated-to the part helper object.
|
|
531
|
-
if(q(c)){var p="string"==typeof c.style?n.date[c.style]:st(c.style)?c.style.parsedOptions:void 0;a.push({type:se.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(tt(c)){p="string"==typeof c.style?n.time[c.style]:st(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:se.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(J(c)){(p="string"==typeof c.style?n.number[c.style]:ot(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:se.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(it(c)){var
|
|
531
|
+
if(q(c)){var p="string"==typeof c.style?n.date[c.style]:st(c.style)?c.style.parsedOptions:void 0;a.push({type:se.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(tt(c)){p="string"==typeof c.style?n.time[c.style]:st(c.style)?c.style.parsedOptions:n.time.medium;a.push({type:se.literal,value:r.getDateTimeFormat(e,p).format(f)})}else if(J(c)){(p="string"==typeof c.style?n.number[c.style]:ot(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),a.push({type:se.literal,value:r.getNumberFormat(e,p).format(f)})}else{if(it(c)){var g=c.children,m=c.value,b=i[m];if(!le(b))throw new ue(m,"function",s);var E=b(fe(g,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(E)||(E=[E]),a.push.apply(a,E.map((function(t){return{type:"string"==typeof t?se.literal:se.object,value:t}})))}if(et(c)){if(!(d=c.options[f]||c.options.other))throw new he(c.value,f,Object.keys(c.options),s);a.push.apply(a,fe(d.value,e,r,n,i))}else if(rt(c)){var d;if(!(d=c.options["=".concat(f)])){if(!Intl.PluralRules)throw new ae('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ne.MISSING_INTL_API,s);var y=r.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));d=c.options[y]||c.options.other}if(!d)throw new he(c.value,f,Object.keys(c.options),s);a.push.apply(a,fe(d.value,e,r,n,i,f-(c.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===se.literal&&e.type===se.literal?r.value+=e.value:t.push(e),t}),[])}(a)}
|
|
532
532
|
/*
|
|
533
533
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
534
534
|
Copyrights licensed under the New BSD License.
|
|
535
535
|
See the accompanying LICENSE file for terms.
|
|
536
536
|
*/
|
|
537
537
|
// -- MessageFormat --------------------------------------------------------
|
|
538
|
-
function pe(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?Z(Z(Z({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=Z(Z({},i[e]),o[e]||{}),t}),{})):i),r}),Z({},t)):t}function
|
|
538
|
+
function pe(t,e){return e?Object.keys(t).reduce((function(r,n){var i,o;return r[n]=(i=t[n],(o=e[n])?Z(Z(Z({},i||{}),o||{}),Object.keys(i).reduce((function(t,e){return t[e]=Z(Z({},i[e]),o[e]||{}),t}),{})):i),r}),Z({},t)):t}function ge(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(se||(se={}));var me=/** @class */function(){function t(e,r,n,i){var o,s=this;if(void 0===r&&(r=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);
|
|
539
539
|
// Hot path for straight simple msg translations
|
|
540
540
|
if(1===e.length)return e[0].value;var r=e.reduce((function(t,e){return t.length&&e.type===se.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(t){return fe(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},
|
|
541
541
|
// Defined first because it's used to build the format pattern.
|
|
@@ -544,11 +544,11 @@ this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(thi
|
|
|
544
544
|
this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");
|
|
545
545
|
// Creates a new object with the specified `formats` merged with the default
|
|
546
546
|
// formats.
|
|
547
|
-
this.formats=pe(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Wt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,z([void 0],e,!1)))}),{cache:
|
|
547
|
+
this.formats=pe(t.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Wt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,z([void 0],e,!1)))}),{cache:ge(o.number),strategy:oe.variadic}),getDateTimeFormat:Wt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,z([void 0],e,!1)))}),{cache:ge(o.dateTime),strategy:oe.variadic}),getPluralRules:Wt((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,z([void 0],e,!1)))}),{cache:ge(o.pluralRules),strategy:oe.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},t.__parse=zt,
|
|
548
548
|
// Default format options used as the prototype of the `formats` provided to the
|
|
549
549
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
550
550
|
// and Intl.DateTimeFormat instances.
|
|
551
|
-
t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),be=
|
|
551
|
+
t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),be=me;
|
|
552
552
|
/*
|
|
553
553
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
554
554
|
Copyrights licensed under the New BSD License.
|
|
@@ -569,12 +569,12 @@ t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
569
569
|
PERFORMANCE OF THIS SOFTWARE.
|
|
570
570
|
***************************************************************************** */function Ie(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}const Oe={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function we(){return Oe}const Ce=w(!1);let Re;const Me=w(null);function Ue(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Ge(t,e=we().fallbackLocale){const r=Ue(t);return e?[...new Set([...r,...Ue(e)])]:r}function De(){return null!=Re?Re:void 0}Me.subscribe((t=>{Re=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const $e=Object.assign(Object.assign({},Me),{set:t=>{if(t&&function(t){if(null==t)return;const e=Ge(t);for(let t=0;t<e.length;t++){const r=e[t];if(Te(r))return r}}(t)&&Se(t)){const{loadingDelay:e}=we();let r;return"undefined"!=typeof window&&null!=De()&&e?r=window.setTimeout((()=>Ce.set(!0)),e):Ce.set(!0),Ne(t).then((()=>{Me.set(t)})).finally((()=>{clearTimeout(r),Ce.set(!1)}))}return Me.set(t)}}),Fe=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},ke=(t,e)=>{const{formats:r}=we();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},xe=Fe((t=>{var{locale:e,format:r}=t,n=Ie(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=ke("number",r)),new Intl.NumberFormat(e,n)})),je=Fe((t=>{var{locale:e,format:r}=t,n=Ie(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=ke("date",r):0===Object.keys(n).length&&(n=ke("date","short")),new Intl.DateTimeFormat(e,n)})),Ve=Fe((t=>{var{locale:e,format:r}=t,n=Ie(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=ke("time",r):0===Object.keys(n).length&&(n=ke("time","short")),new Intl.DateTimeFormat(e,n)})),Xe=Fe(((t,e=De())=>new be(t,e,we().formats,{ignoreTag:we().ignoreTag}))),Ke=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:h=De(),default:u}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ye(t,h);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(n=(r=we()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:t,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:t;if(!a)return c;let l=c;try{l=Xe(c,h).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return l},Ye=(t,e)=>((t={})=>{var{locale:e=De()}=t,r=Ie(t,["locale"]);return Ve(Object.assign({locale:e},r))})(e).format(t),Ze=(t,e)=>((t={})=>{var{locale:e=De()}=t,r=Ie(t,["locale"]);return je(Object.assign({locale:e},r))})(e).format(t),ze=(t,e)=>((t={})=>{var{locale:e=De()}=t,r=Ie(t,["locale"]);return xe(Object.assign({locale:e},r))})(e).format(t),We=(t,e=De())=>ye(t,e),Qe=C([$e,He],(()=>Ke));function Je(t,e){_e(t,e)}C([$e],(()=>Ye)),C([$e],(()=>Ze)),C([$e],(()=>ze)),C([$e,He],(()=>We));const qe={en:{progressBar:{bets:"bets"}},tr:{progressBar:{bets:"bets"}},el:{progressBar:{bets:"bets"}}};
|
|
571
571
|
/* src/GeneralIconProgressBar.svelte generated by Svelte v3.48.0 */function tr(e){let r,n,i,o,s;return{c(){var a;r=c("div"),n=c("div"),i=c("span"),a=/*progressText*/e[3],o=document.createTextNode(a),this.c=t,l(i,"part","progressText"),l(n,"class",s="stepBar "+/*curTatus*/e[4]),l(n,"part","stepBar"),l(r,"class","general-icon-progress-bar"),l(r,"part","totalBar")},m(t,s){h(t,r,s),a(r,n),a(n,i),a(i,o),
|
|
572
|
-
/*span_binding*/e[
|
|
573
|
-
/*div0_binding*/e[
|
|
574
|
-
/*div1_binding*/e[
|
|
575
|
-
/*span_binding*/,e[
|
|
576
|
-
/*div0_binding*/e[
|
|
577
|
-
/*div1_binding*/e[
|
|
572
|
+
/*span_binding*/e[13](i),
|
|
573
|
+
/*div0_binding*/e[14](n),
|
|
574
|
+
/*div1_binding*/e[15](r)},p(t,[e]){/*progressText*/8&e&&function(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}(o,/*progressText*/t[3]),/*curTatus*/16&e&&s!==(s="stepBar "+/*curTatus*/t[4])&&l(n,"class",s)},i:t,o:t,d(t){t&&u(r)
|
|
575
|
+
/*span_binding*/,e[13](null),
|
|
576
|
+
/*div0_binding*/e[14](null),
|
|
577
|
+
/*div1_binding*/e[15](null)}}}function er(t,e,r){let n;var i,o;i=Qe,o=t=>r(20,n=t),t.$$.on_destroy.push(s(i,o));let a,h,u,c,l,f,p,{currentstep:g=0}=e,{total:b=1}=e,{showaspercent:d}=e,{lang:y="en"}=e,{status:v}=e,{translationUrl:H=""}=e,{progressfractiondigit:T=1}=e,{triggerreset:B}=e,_="0px",A="active";!function({withLocale:t,translations:e}){$e.subscribe((r=>{null==r&&(He.set(e),$e.set(t))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
578
578
|
/*dictionary.set(translations);
|
|
579
|
-
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(qe).forEach((t=>{Je(t,qe[t])}));const
|
|
579
|
+
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(qe).forEach((t=>{Je(t,qe[t])}));const P=()=>{var t;t=y,$e.set(t)},S=()=>{let t=(g/b*100).toFixed(T);setTimeout((()=>{r(3,c=d||"true"===d?`${t}%`:`${g}/${b} ${n("progressBar.bets")}`)}),c?573:0),0==t||100==t?(f="0px",p="0px",_=100==t?"3px":"0px"):(f=`${a.offsetHeight}px`,l=f,p=a.offsetHeight/3+"px",_="0px"),h.style.setProperty("--parentElementHeight",l),u.style.setProperty("--currentStep",t+"%"),u.style.setProperty("--triangleHeight",f),u.style.setProperty("--halfOfTriangleHeight",p),u.style.setProperty("--stepBarBorderRadius",_)};return m((()=>{S()})),t.$$set=t=>{"currentstep"in t&&r(5,g=t.currentstep),"total"in t&&r(6,b=t.total),"showaspercent"in t&&r(7,d=t.showaspercent),"lang"in t&&r(8,y=t.lang),"status"in t&&r(9,v=t.status),"translationUrl"in t&&r(10,H=t.translationUrl),"progressfractiondigit"in t&&r(11,T=t.progressfractiondigit),"triggerreset"in t&&r(12,B=t.triggerreset)},t.$$.update=()=>{/*triggerreset, total*/4160&t.$$.dirty&&B&&b&&S(),/*lang*/256&t.$$.dirty&&y&&P(),/*status*/512&t.$$.dirty&&v&&r(4,A="active"==v?"":"inactive"),/*translationUrl*/1024&t.$$.dirty&&H&&fetch(H).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Je(e,t[e])}))})).catch((t=>{console.log(t)}))},[a,h,u,c,A,g,b,d,y,v,H,T,B,function(t){E[t?"unshift":"push"]((()=>{h=t,r(1,h)}))},function(t){E[t?"unshift":"push"]((()=>{u=t,r(2,u)}))},function(t){E[t?"unshift":"push"]((()=>{a=t,r(0,a)}))}]}class rr extends I{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1}.stepBar::after{content:' ';position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}</style>",N(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},er,tr,o,{currentstep:5,total:6,showaspercent:7,lang:8,status:9,translationUrl:10,progressfractiondigit:11,triggerreset:12},null),t&&(t.target&&h(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["currentstep","total","showaspercent","lang","status","translationUrl","progressfractiondigit","triggerreset"]}get currentstep(){return this.$$.ctx[5]}set currentstep(t){this.$$set({currentstep:t}),A()}get total(){return this.$$.ctx[6]}set total(t){this.$$set({total:t}),A()}get showaspercent(){return this.$$.ctx[7]}set showaspercent(t){this.$$set({showaspercent:t}),A()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),A()}get status(){return this.$$.ctx[9]}set status(t){this.$$set({status:t}),A()}get translationUrl(){return this.$$.ctx[10]}set translationUrl(t){this.$$set({translationUrl:t}),A()}get progressfractiondigit(){return this.$$.ctx[11]}set progressfractiondigit(t){this.$$set({progressfractiondigit:t}),A()}get triggerreset(){return this.$$.ctx[12]}set triggerreset(t){this.$$set({triggerreset:t}),A()}}return!customElements.get("general-icon-progress-bar")&&customElements.define("general-icon-progress-bar",rr),rr}));
|
|
580
580
|
//# sourceMappingURL=general-icon-progress-bar.js.map
|