smoothly 0.1.67 → 0.1.71
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/{Trigger-ea33b682.js → Trigger-74bd1ee8.js} +16 -0
- package/dist/cjs/{generate-5e7cd3f7.js → generate-7f7f7d99.js} +3 -2
- package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
- package/dist/cjs/{index-2a5f8661.js → index-c973259c.js} +16 -0
- package/dist/cjs/{index-b8688617.js → index-e37f73fe.js} +89 -19
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/smoothly-accordion_43.cjs.entry.js +917 -694
- package/dist/cjs/smoothly-calendar.cjs.entry.js +7 -7
- package/dist/cjs/smoothly-dialog.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +2 -4
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-frame.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-date.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input-month.cjs.entry.js +11 -11
- package/dist/cjs/smoothly-input.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-picker.cjs.entry.js +12 -17
- package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
- package/dist/collection/components/calendar/generate.js +2 -1
- package/dist/collection/components/calendar/index.js +4 -4
- package/dist/collection/components/calendar/style.css +29 -11
- package/dist/collection/components/display-amount/index.js +1 -3
- package/dist/collection/components/input/index.js +1 -1
- package/dist/collection/components/input-month/index.js +8 -8
- package/dist/collection/components/input-month/style.css +0 -6
- package/dist/collection/components/picker/index.js +12 -17
- package/dist/collection/components/select/index.js +1 -1
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/custom-elements/index.js +943 -695
- package/dist/esm/{Trigger-c637fedf.js → Trigger-d7b181ec.js} +16 -0
- package/dist/esm/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{smoothly/index-a7e44b28.js → esm/index-01fedb5b.js} +806 -638
- package/dist/esm/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{smoothly/index-71e3ce99.js → esm/index-531e2f06.js} +16 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/smoothly-accordion_43.entry.js +917 -694
- package/dist/esm/smoothly-calendar.entry.js +7 -7
- package/dist/esm/smoothly-dialog.entry.js +1 -1
- package/dist/esm/smoothly-display-amount.entry.js +2 -4
- package/dist/esm/smoothly-display-demo.entry.js +1 -1
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-frame.entry.js +1 -1
- package/dist/esm/smoothly-input-date-range.entry.js +1 -1
- package/dist/esm/smoothly-input-date.entry.js +1 -1
- package/dist/esm/smoothly-input-month.entry.js +11 -11
- package/dist/esm/smoothly-input.entry.js +2 -2
- package/dist/esm/smoothly-picker.entry.js +12 -17
- package/dist/esm/smoothly-select.entry.js +1 -1
- package/dist/esm/smoothly-table-header.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
- package/dist/esm/smoothly-trigger-source.entry.js +1 -1
- package/dist/smoothly/{generate-fc812e0f.js → generate-7090dc14.js} +3 -2
- package/dist/{esm/index-a7e44b28.js → smoothly/index-01fedb5b.js} +806 -638
- package/dist/smoothly/{index-046ba252.js → index-13251390.js} +89 -19
- package/dist/{esm/index-71e3ce99.js → smoothly/index-531e2f06.js} +16 -0
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/p-2cda1784.js +1 -0
- package/dist/smoothly/{p-24d838b1.entry.js → p-89fe12b0.entry.js} +1 -1
- package/dist/smoothly/p-c107b623.entry.js +1 -0
- package/dist/smoothly/{p-77f6d4bf.entry.js → p-e79800d9.entry.js} +1 -1
- package/dist/smoothly/smoothly-calendar.entry.js +7 -7
- package/dist/smoothly/smoothly-dialog.entry.js +1 -1
- package/dist/smoothly/smoothly-display-amount.entry.js +2 -4
- package/dist/smoothly/smoothly-display-demo.entry.js +1 -1
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-frame.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date-range.entry.js +1 -1
- package/dist/smoothly/smoothly-input-date.entry.js +1 -1
- package/dist/smoothly/smoothly-input-month.entry.js +11 -11
- package/dist/smoothly/smoothly-input.entry.js +2 -2
- package/dist/smoothly/smoothly-picker.entry.js +12 -17
- package/dist/smoothly/smoothly-select.entry.js +1 -1
- package/dist/smoothly/smoothly-table-header.entry.js +1 -1
- package/dist/smoothly/smoothly-trigger-sink.entry.js +1 -1
- package/dist/smoothly/smoothly-trigger-source.entry.js +1 -1
- package/dist/types/components/input-month/index.d.ts +1 -1
- package/package.json +5 -5
- package/dist/smoothly/p-08ef34d4.js +0 -1
- package/dist/smoothly/p-bee6330e.entry.js +0 -1
|
@@ -16568,28 +16568,28 @@ const CurrencyCode = /*@__PURE__*/getDefaultExportFromCjs(CurrencyCode_1);
|
|
|
16568
16568
|
var _Date = createCommonjsModule(function (module, exports) {
|
|
16569
16569
|
"use strict";
|
|
16570
16570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16571
|
-
exports.
|
|
16572
|
-
var
|
|
16573
|
-
(function (
|
|
16571
|
+
exports.Date = void 0;
|
|
16572
|
+
var Date;
|
|
16573
|
+
(function (Date) {
|
|
16574
16574
|
function is(value) {
|
|
16575
16575
|
return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
|
|
16576
16576
|
}
|
|
16577
|
-
|
|
16577
|
+
Date.is = is;
|
|
16578
16578
|
function parse(value, time) {
|
|
16579
|
-
return new Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16579
|
+
return new globalThis.Date(value + (time !== null && time !== void 0 ? time : "T12:00:00.000Z"));
|
|
16580
16580
|
}
|
|
16581
|
-
|
|
16581
|
+
Date.parse = parse;
|
|
16582
16582
|
function create(value) {
|
|
16583
16583
|
return value.toISOString().substring(0, 10);
|
|
16584
16584
|
}
|
|
16585
|
-
|
|
16585
|
+
Date.create = create;
|
|
16586
16586
|
function now() {
|
|
16587
|
-
return create(new Date());
|
|
16587
|
+
return create(new globalThis.Date());
|
|
16588
16588
|
}
|
|
16589
|
-
|
|
16589
|
+
Date.now = now;
|
|
16590
16590
|
function localize(value, locale) {
|
|
16591
|
-
|
|
16592
|
-
|
|
16591
|
+
return (is(value) ? parse(value) : value)
|
|
16592
|
+
.toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
|
|
16593
16593
|
year: "numeric",
|
|
16594
16594
|
month: "2-digit",
|
|
16595
16595
|
day: "2-digit",
|
|
@@ -16597,11 +16597,82 @@ var IsoDate;
|
|
|
16597
16597
|
minute: "2-digit",
|
|
16598
16598
|
second: "2-digit",
|
|
16599
16599
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16600
|
-
}
|
|
16601
|
-
|
|
16600
|
+
})
|
|
16601
|
+
.substring(0, 10);
|
|
16602
|
+
}
|
|
16603
|
+
Date.localize = localize;
|
|
16604
|
+
function next(date, days = 1) {
|
|
16605
|
+
let result;
|
|
16606
|
+
if (typeof days == "number") {
|
|
16607
|
+
const r = parse(date);
|
|
16608
|
+
r.setDate(r.getDate() + days);
|
|
16609
|
+
result = Date.create(r);
|
|
16610
|
+
}
|
|
16611
|
+
else {
|
|
16612
|
+
result = date;
|
|
16613
|
+
if (days.years)
|
|
16614
|
+
result = nextYear(result, days.years);
|
|
16615
|
+
if (days.months)
|
|
16616
|
+
result = nextMonth(result, days.months);
|
|
16617
|
+
if (days.days)
|
|
16618
|
+
result = next(result, days.days);
|
|
16619
|
+
}
|
|
16620
|
+
return result;
|
|
16621
|
+
}
|
|
16622
|
+
Date.next = next;
|
|
16623
|
+
function previous(date, days = 1) {
|
|
16624
|
+
let result;
|
|
16625
|
+
if (typeof days == "number") {
|
|
16626
|
+
const r = parse(date);
|
|
16627
|
+
r.setDate(r.getDate() - days);
|
|
16628
|
+
result = Date.create(r);
|
|
16629
|
+
}
|
|
16630
|
+
else {
|
|
16631
|
+
result = date;
|
|
16632
|
+
if (days.years)
|
|
16633
|
+
result = previousYear(result, days.years);
|
|
16634
|
+
if (days.months)
|
|
16635
|
+
result = previousMonth(result, days.months);
|
|
16636
|
+
if (days.days)
|
|
16637
|
+
result = previous(result, days.days);
|
|
16638
|
+
}
|
|
16639
|
+
return result;
|
|
16640
|
+
}
|
|
16641
|
+
Date.previous = previous;
|
|
16642
|
+
function nextMonth(date, months = 1) {
|
|
16643
|
+
const result = parse(date);
|
|
16644
|
+
result.setMonth(result.getMonth() + months);
|
|
16645
|
+
return Date.create(result);
|
|
16646
|
+
}
|
|
16647
|
+
Date.nextMonth = nextMonth;
|
|
16648
|
+
function previousMonth(date, months = 1) {
|
|
16649
|
+
return nextMonth(date, -months);
|
|
16650
|
+
}
|
|
16651
|
+
Date.previousMonth = previousMonth;
|
|
16652
|
+
function nextYear(date, years = 1) {
|
|
16653
|
+
const result = parse(date);
|
|
16654
|
+
result.setFullYear(result.getFullYear() + years);
|
|
16655
|
+
return Date.create(result);
|
|
16656
|
+
}
|
|
16657
|
+
Date.nextYear = nextYear;
|
|
16658
|
+
function previousYear(date, years = 1) {
|
|
16659
|
+
return nextYear(date, -years);
|
|
16660
|
+
}
|
|
16661
|
+
Date.previousYear = previousYear;
|
|
16662
|
+
function firstOfMonth(date) {
|
|
16663
|
+
const result = parse(date);
|
|
16664
|
+
result.setDate(1);
|
|
16665
|
+
return Date.create(result);
|
|
16666
|
+
}
|
|
16667
|
+
Date.firstOfMonth = firstOfMonth;
|
|
16668
|
+
function lastOfMonth(date) {
|
|
16669
|
+
const result = parse(date);
|
|
16670
|
+
result.setMonth(result.getMonth() + 1);
|
|
16671
|
+
result.setDate(-1);
|
|
16672
|
+
return Date.create(result);
|
|
16602
16673
|
}
|
|
16603
|
-
|
|
16604
|
-
})(
|
|
16674
|
+
Date.lastOfMonth = lastOfMonth;
|
|
16675
|
+
})(Date = exports.Date || (exports.Date = {}));
|
|
16605
16676
|
//# sourceMappingURL=Date.js.map
|
|
16606
16677
|
});
|
|
16607
16678
|
|
|
@@ -16632,7 +16703,7 @@ var DateTime;
|
|
|
16632
16703
|
DateTime.now = now;
|
|
16633
16704
|
function localize(value, locale) {
|
|
16634
16705
|
const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
|
|
16635
|
-
|
|
16706
|
+
return (is(value) ? parse(value) : value).toLocaleString(localeString, {
|
|
16636
16707
|
year: "numeric",
|
|
16637
16708
|
month: "2-digit",
|
|
16638
16709
|
day: "2-digit",
|
|
@@ -16640,8 +16711,7 @@ var DateTime;
|
|
|
16640
16711
|
minute: "2-digit",
|
|
16641
16712
|
second: "2-digit",
|
|
16642
16713
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
16643
|
-
};
|
|
16644
|
-
return (is(value) ? parse(value) : value).toLocaleString(localeString, localeOptions);
|
|
16714
|
+
});
|
|
16645
16715
|
}
|
|
16646
16716
|
DateTime.localize = localize;
|
|
16647
16717
|
})(DateTime = exports.DateTime || (exports.DateTime = {}));
|
|
@@ -18416,7 +18486,7 @@ Object.defineProperty(exports, "Currency", { enumerable: true, get: function ()
|
|
|
18416
18486
|
|
|
18417
18487
|
Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function () { return CurrencyCode_1.CurrencyCode; } });
|
|
18418
18488
|
|
|
18419
|
-
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.
|
|
18489
|
+
Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
|
|
18420
18490
|
|
|
18421
18491
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
|
|
18422
18492
|
|
|
@@ -206,6 +206,22 @@ var Identifier;
|
|
|
206
206
|
Array.from(value).every(c => (c >= "0" && c <= "9") || (c >= "A" && c <= "Z") || (c >= "a" && c <= "z") || c == "-" || c == "_"));
|
|
207
207
|
}
|
|
208
208
|
Identifier.is = is;
|
|
209
|
+
function fromUint24(value) {
|
|
210
|
+
return fromHexadecimal(value.toString(16).padStart(6, "0"));
|
|
211
|
+
}
|
|
212
|
+
Identifier.fromUint24 = fromUint24;
|
|
213
|
+
function toUint24(identifier) {
|
|
214
|
+
return Number.parseInt(toHexadecimal(identifier, 6), 16);
|
|
215
|
+
}
|
|
216
|
+
Identifier.toUint24 = toUint24;
|
|
217
|
+
function fromUint48(value) {
|
|
218
|
+
return fromHexadecimal(value.toString(16).padStart(12, "0"));
|
|
219
|
+
}
|
|
220
|
+
Identifier.fromUint48 = fromUint48;
|
|
221
|
+
function toUint48(identifier) {
|
|
222
|
+
return Number.parseInt(toHexadecimal(identifier, 12), 16);
|
|
223
|
+
}
|
|
224
|
+
Identifier.toUint48 = toUint48;
|
|
209
225
|
function fromBinary(identifier) {
|
|
210
226
|
return encode$1(identifier, "url");
|
|
211
227
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as App } from './App-bf78807d.js';
|
|
2
|
-
export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-
|
|
2
|
+
export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-531e2f06.js';
|
|
3
3
|
import './index-0dd5f791.js';
|
|
4
4
|
|
|
5
5
|
const colorNames = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class n{constructor(){this.encoding="utf-8"}encode(n){return Uint8Array.from(unescape(encodeURIComponent(n)).split(""),(n=>n.charCodeAt(0)))}}const t={standard:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",url:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function r(r,e="standard",i=""){"string"==typeof r&&(r=(new n).encode(r));const o=t[e],c=[];for(let n=0;n<r.length;n+=3){const t=r[n],e=n+1<r.length?r[n+1]:0,i=n+2<r.length?r[n+2]:0;c.push(o[t>>>2]),c.push(o[(3&t)<<4|e>>>4]),c.push(o[(15&e)<<2|i>>>6]),c.push(o[63&i])}const u=Math.ceil(r.length/3*4);return c.join("").substr(0,u)+i.repeat(c.length-u)}function e(n,r="standard"){for(;n.endsWith("=")&&n.length>0;)n=n.substr(0,n.length-1);const e=t[r],i=n.split("").map((n=>e.indexOf(n))),o=new Uint8Array(Math.floor(i.length/4*3));for(let n=0;n<o.length;n+=3){const t=i.shift()||0,r=i.shift()||0,e=i.shift()||0,c=i.shift()||0;o[n]=t<<2|r>>>4,o[n+1]=(15&r)<<4|e>>>2,o[n+2]=(3&e)<<6|c}return o}const i="undefined"!=typeof window?window.crypto||window.msCrypto:self.crypto||self.msCrypto;var o,c;!function(n){n.is=function(n){return"object"==typeof n&&(null==n.key||"string"==typeof n.key)&&"string"==typeof n.value&&"string"==typeof n.salt},n.stringify=function(n){return n.key=n.key&&4!=n.key.length?n.key.slice(-2):n.key,[n.key,n.salt,n.value].join(".")},n.parse=function(t){const r=t.split("."),e={key:r[0],salt:r[1],value:r[2]};return n.is(e)?e:void 0}}(o||(o={})),function(n){function t(n){return r(n,"url")}function o(n){n.length%2==1&&(n+="0");const r=new Uint8Array(n.length/2);for(let t=0;t<r.length;t++)r[t]=16*Number.parseInt(n[2*t],16)+Number.parseInt(n[2*t+1],16);return t(r)}function c(n,t){const r=e(n,"url");let i=[];for(const n of r)i.push(Math.floor(n/16).toString(16),(n%16).toString(16));return t&&(i=i.slice(0,t)),i.join("")}n.is=function(n,t){return"string"==typeof n&&(null==t||n.length==t)&&Array.from(n).every((n=>n>="0"&&n<="9"||n>="A"&&n<="Z"||n>="a"&&n<="z"||"-"==n||"_"==n))},n.fromUint24=function(n){return o(n.toString(16).padStart(6,"0"))},n.toUint24=function(n){return Number.parseInt(c(n,6),16)},n.fromUint48=function(n){return o(n.toString(16).padStart(12,"0"))},n.toUint48=function(n){return Number.parseInt(c(n,12),16)},n.fromBinary=t,n.toBinary=function(n){return e(n,"url")},n.generate=function(n){return t(i.getRandomValues(new Uint8Array(n/4*3)))},n.fromHexadecimal=o,n.toHexadecimal=c,n.length=[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],(n.Length||(n.Length={})).is=function(n){return"number"==typeof n&&n>=4&&n<=128&&(252&n)==n}}(c||(c={}));var u,s,f,a=function(n,t,r,e){return new(r||(r=Promise))((function(i,o){function c(n){try{s(e.next(n))}catch(n){o(n)}}function u(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?i(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(c,u)}s((e=e.apply(n,t||[])).next())}))};!function(n){n.is=function(n){return"string"==typeof n||"object"==typeof n&&"string"==typeof n.hash&&"string"==typeof n.salt},n.hash=function(n,t,e){return a(this,void 0,void 0,(function*(){return e||(e=r(i.getRandomValues(new Uint8Array(64)))),{hash:yield n.sign(e+t),salt:e}}))},n.verify=function(t,r,e){return a(this,void 0,void 0,(function*(){return(yield n.hash(t,e,r.salt)).hash==r.hash}))},(n.Hashed||(n.Hashed={})).is=function(n){return"object"==typeof n&&"string"==typeof n.hash&&"string"==typeof n.salt}}(u||(u={})),function(n){n.generate=function(n){return i.getRandomValues(n)}}(s||(s={})),(f||(f={})).is=function(n){return"HMAC"==n||"RSA"==n||"ECDSA"==n||"RSA-PSS"==n};class S{sign(t){return e=this,i=void 0,c=function*(){return"string"==typeof t?r(yield this.signBinary((new n).encode(t)),"url"):this.signBinary(t)},new((o=void 0)||(o=Promise))((function(n,t){function r(n){try{s(c.next(n))}catch(n){t(n)}}function u(n){try{s(c.throw(n))}catch(n){t(n)}}function s(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(n){n(e)}))).then(r,u)}s((c=c.apply(e,i||[])).next())}));var e,i,o,c}verify(t,r){return"string"==typeof r&&(r=e(r,"url")),this.verifyBinary("string"==typeof t?(new n).encode(t):t,r)}}var y,h=function(n,t,r,e){return new(r||(r=Promise))((function(i,o){function c(n){try{s(e.next(n))}catch(n){o(n)}}function u(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?i(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(c,u)}s((e=e.apply(n,t||[])).next())}))};class A extends S{constructor(n,t,r){super(),this.hash=n,t&&("string"==typeof t&&(t=e(t)),this.publicKey=i.subtle.importKey("spki",t,{name:"ECDSA",namedCurve:"P-512"==n.replace("SHA","P")?"P-521":n.replace("SHA","P")},!1,["verify"])),r&&("string"==typeof r&&(r=e(r)),this.privateKey=i.subtle.importKey("pkcs8",r,{name:"ECDSA",namedCurve:"P-512"==n.replace("SHA","P")?"P-521":n.replace("SHA","P")},!0,["sign","verify"]))}signBinary(n){return h(this,void 0,void 0,(function*(){return new Uint8Array(yield i.subtle.sign({name:"ECDSA",hash:{name:this.hash}},yield this.privateKey,n))}))}verifyBinary(n,t){return h(this,void 0,void 0,(function*(){return i.subtle.verify({name:"ECDSA",hash:{name:this.hash}},yield this.publicKey,t,n)}))}}!function(n){n.is=function(n){return"SHA-1"==n||"SHA-256"==n||"SHA-384"==n||"SHA-512"==n}}(y||(y={}));class l extends S{verifyBinary(n,t){return e=this,i=void 0,c=function*(){return r(yield this.signBinary(n),"url")==r(t,"url")},new((o=void 0)||(o=Promise))((function(n,t){function r(n){try{s(c.next(n))}catch(n){t(n)}}function u(n){try{s(c.throw(n))}catch(n){t(n)}}function s(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(n){n(e)}))).then(r,u)}s((c=c.apply(e,i||[])).next())}));var e,i,o,c}}class d extends l{constructor(n,t){super(),this.hash=n,"string"==typeof t&&(t=e(t,"url")),this.key=i.subtle.importKey("raw",t,{name:"HMAC",hash:{name:n}},!1,["sign","verify"])}signBinary(n){return t=this,r=void 0,o=function*(){return new Uint8Array(yield i.subtle.sign("HMAC",yield this.key,n))},new((e=void 0)||(e=Promise))((function(n,i){function c(n){try{s(o.next(n))}catch(n){i(n)}}function u(n){try{s(o.throw(n))}catch(n){i(n)}}function s(t){var r;t.done?n(t.value):(r=t.value,r instanceof e?r:new e((function(n){n(r)}))).then(c,u)}s((o=o.apply(t,r||[])).next())}));var t,r,e,o}}class v extends l{signBinary(n){return Promise.resolve(new Uint8Array(0))}}var p=function(n,t,r,e){return new(r||(r=Promise))((function(i,o){function c(n){try{s(e.next(n))}catch(n){o(n)}}function u(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?i(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(c,u)}s((e=e.apply(n,t||[])).next())}))};class w extends S{constructor(n,t,r){super(),this.hash=n,t&&("string"==typeof t&&(t=e(t)),this.publicKey=i.subtle.importKey("spki",t,{name:"RSASSA-PKCS1-v1_5",hash:{name:n}},!1,["verify"])),r&&("string"==typeof r&&(r=e(r)),this.privateKey=i.subtle.importKey("pkcs8",r,{name:"RSASSA-PKCS1-v1_5",hash:{name:n}},!0,["sign"]))}signBinary(n){return p(this,void 0,void 0,(function*(){return new Uint8Array(yield i.subtle.sign("RSASSA-PKCS1-v1_5",yield this.privateKey,n))}))}verifyBinary(n,t){return p(this,void 0,void 0,(function*(){return i.subtle.verify("RSASSA-PKCS1-v1_5",yield this.publicKey,t,n)}))}}var g,P,H,m,b,R,E,k,C,U=function(n,t,r,e){return new(r||(r=Promise))((function(i,o){function c(n){try{s(e.next(n))}catch(n){o(n)}}function u(n){try{s(e.throw(n))}catch(n){o(n)}}function s(n){var t;n.done?i(n.value):(t=n.value,t instanceof r?t:new r((function(n){n(t)}))).then(c,u)}s((e=e.apply(n,t||[])).next())}))};class j extends S{constructor(n,t,r){super(),this.hash=n,t&&("string"==typeof t&&(t=e(t)),this.publicKey=i.subtle.importKey("spki",t,{name:"RSA-PSS",hash:{name:n}},!1,["verify"])),r&&("string"==typeof r&&(r=e(r)),this.privateKey=i.subtle.importKey("pkcs8",r,{name:"RSA-PSS",hash:{name:n}},!0,["sign","verify"]))}signBinary(n){return U(this,void 0,void 0,(function*(){return new Uint8Array(yield i.subtle.sign({name:"RSA-PSS",saltLength:128},yield this.privateKey,n))}))}verifyBinary(n,t){return U(this,void 0,void 0,(function*(){return i.subtle.verify({name:"RSA-PSS",saltLength:128},yield this.publicKey,t,n)}))}}!function(n){!function(n){n.is=f.is}(n.Algorithm||(n.Algorithm={})),(n.Hash||(n.Hash={})).is=y.is,n.create=function(n,t,...r){let e;switch(n){case"HMAC":null!=t&&(e=new d(t,r[0]));break;case"RSA":null!=t&&(e=new w(t,r[0],r[1]));break;case"RSA-PSS":null!=t&&(e=new j(t,r[0],r[1]));break;case"ECDSA":null!=t&&(e=new A(t,r[0],r[1]));break;case"None":e=new v}return e}}(g||(g={})),Uint8Array.__proto__.from||(Uint8Array.__proto__.from=function(n,t,r){const e=Uint8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==e)throw new TypeError("this is not a typed array.");if("function"!=typeof(t=t||(n=>n)))throw new TypeError("specified argument is not a function");if(!(n=Object(n)).length)return new this(0);let i=[];for(const n of i)i.push(n);i=i.map(t,r);const o=new this(i.length);for(let n=0;n<o.length;n++)o[n]=i[n];return o}),function(n){n.is=function(n){return"object"==typeof n&&Object.entries(n).every((n=>"function"==typeof n))}}(P||(P={})),function(n){n.is=function(n){return Array.isArray(n)&&n.every((n=>"string"==typeof n))}}(H||(H={})),function(n){n.is=function(n){return"object"==typeof n&&Object.entries(n).every((n=>"string"==typeof n[1]))}}(m||(m={})),function(n){n.is=function(n){return H.is(n)||P.is(n)||m.is(n)},(n.Converter||(n.Converter={})).is=P.is,(n.Crypto||(n.Crypto={})).is=H.is,(n.Renamer||(n.Renamer={})).is=m.is}(b||(b={})),function(n){n.is=function(n){return"object"==typeof n&&"function"==typeof n.apply&&"function"==typeof n.reverse},n.create=function(n){return{apply:n.apply?n.apply:n=>n,reverse:n.reverse?n.reverse:n=>n}}}(R||(R={})),function(n){n.is=function(n){return"RS256"==n||"RS384"==n||"RS512"==n||"ES256"==n||"ES384"==n||"ES512"==n||"PS256"==n||"PS384"==n||"PS512"==n}}(E||(E={})),function(n){n.is=function(n){return"HS256"==n||"HS384"==n||"HS512"==n}}(k||(k={})),function(n){n.is=function(n){return"none"==n||k.is(n)||E.is(n)},function(n){n.is=k.is}(n.Symmetric||(n.Symmetric={})),(n.Asymmetric||(n.Asymmetric={})).is=E.is}(C||(C={}));var M;class B{constructor(n,t){this.name=n,this.signer=t}sign(n){return t=this,r=void 0,i=function*(){return this.signer.sign(n)},new((e=void 0)||(e=Promise))((function(n,o){function c(n){try{s(i.next(n))}catch(n){o(n)}}function u(n){try{s(i.throw(n))}catch(n){o(n)}}function s(t){var r;t.done?n(t.value):(r=t.value,r instanceof e?r:new e((function(n){n(r)}))).then(c,u)}s((i=i.apply(t,r||[])).next())}));var t,r,e,i}verify(n,t){return this.signer.verify(n,t)}static create(n,...t){let r;switch(n){case"ES256":r=g.create("ECDSA","SHA-256",t[0],t[1]);break;case"ES384":r=g.create("ECDSA","SHA-384",t[0],t[1]);break;case"ES512":r=g.create("ECDSA","SHA-512",t[0],t[1]);break;case"PS256":r=g.create("RSA-PSS","SHA-256",t[0],t[1]);break;case"PS384":r=g.create("RSA-PSS","SHA-384",t[0],t[1]);break;case"PS512":r=g.create("RSA-PSS","SHA-512",t[0],t[1]);break;case"HS256":r=g.create("HMAC","SHA-256",t[0]);break;case"HS384":r=g.create("HMAC","SHA-384",t[0]);break;case"HS512":r=g.create("HMAC","SHA-512",t[0]);break;case"RS256":r=g.create("RSA","SHA-256",t[0],t[1]);break;case"RS384":r=g.create("RSA","SHA-384",t[0],t[1]);break;case"RS512":r=g.create("RSA","SHA-512",t[0],t[1]);break;case"none":r=g.create("None")}return r&&new B(n,r)}static none(){return B.create("none")}static HS256(n){return B.create("HS256",n)}static HS384(n){return B.create("HS384",n)}static HS512(n){return B.create("HS512",n)}static RS256(n,t){return B.create("RS256",n,t)}static RS384(n,t){return B.create("RS384",n,t)}static RS512(n,t){return B.create("RS512",n,t)}static ES256(n,t){return B.create("ES256",n,t)}static ES384(n,t){return B.create("ES384",n,t)}static ES512(n,t){return B.create("ES512",n,t)}static PS256(n,t){return B.create("PS256",n,t)}static PS384(n,t){return B.create("PS384",n,t)}static PS512(n,t){return B.create("PS512",n,t)}}!function(n){var t;(t=n.Name||(n.Name={})).is=C.is,function(n){n.is=C.Symmetric.is}(t.Symmetric||(t.Symmetric={})),function(n){n.is=C.Asymmetric.is}(t.Asymmetric||(t.Asymmetric={}))}(B||(B={})),function(n){n.is=function(n){return"string"==typeof n&&/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(n)}}(M||(M={}));class D{static is(n){return"object"==typeof n&&"string"==typeof n.destination&&null!=n.content}static send(n,t,r){if(D.is(n)&&null==r){(r=t)||(r=window);const e=n.destination.split("#",2);r.postMessage(n={destination:e[1],content:n.content},e[0])}else"string"!=typeof r&&(r||(r=window),"string"==typeof n&&D.send({destination:n,content:t},r))}static listen(n,t,r){const e=n.split("#",2);let i="";2==e.length&&(n=e[0],i=e[1]),(r||window).addEventListener("message",(r=>{const e=r.data;!D.is(e)||"*"!=n&&r.origin!=n||""!=i&&e.destination!=i||t(e.destination,e.content)}))}}class x{static is(n){return"object"==typeof n&&"string"==typeof n.name}}export{c as I,D as M,x as T}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-0906d4b2.js";import{T as i,M as r}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-0906d4b2.js";import{T as i,M as r}from"./p-2cda1784.js";const o=class{constructor(t){s(this,t)}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){i.is(s.detail)&&this.filters.some((t=>t==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return t("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
|