@luzmo/analytics-components-kit 1.0.1-alpha.5 → 1.0.1-alpha.7
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/components/{async-directive-FGzMycjH-Bgeca09f.js → async-directive-DWRUSKKF-CmOVMf6V.js} +1 -1
- package/components/{async-directive-FGzMycjH-CeG35vZ3.cjs → async-directive-DWRUSKKF-D4itZyzc.cjs} +3 -3
- package/components/{button-base-CDLQV7Vk-BXgdcJZo.cjs → button-base-B7v4eeRh-BKKUK3x0.cjs} +4 -4
- package/components/{button-base-CDLQV7Vk-C_3zTrbV.js → button-base-B7v4eeRh-D3-GH03o.js} +3 -3
- package/components/{checkbox-mixin-DXUIwtea-wiCZr_KI.js → checkbox-mixin-BFGTmw17-C34LMsgu.js} +6 -6
- package/components/{checkbox-mixin-DXUIwtea-DNISZS47.cjs → checkbox-mixin-BFGTmw17-CCjGd0nS.cjs} +4 -4
- package/components/{directive-helpers-BLDZnGQv-DYFfxaqA.cjs → directive-helpers-nlQRAaQt-3kEWF2GV.cjs} +2 -2
- package/components/{directive-helpers-BLDZnGQv-oKMCBvb2.js → directive-helpers-nlQRAaQt-I6T4KZKW.js} +10 -10
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +11 -11
- package/components/display-settings-binning/display-settings-binning.d.ts +2 -2
- package/components/display-settings-binning/index.cjs +4 -4
- package/components/display-settings-binning/index.js +20 -21
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +8 -8
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +12 -12
- package/components/display-settings-period-over-period/index.cjs +5 -5
- package/components/display-settings-period-over-period/index.js +85 -85
- package/components/draggable-data-item/index.cjs +2 -2
- package/components/draggable-data-item/index.js +2 -2
- package/components/draggable-data-item-level/index.cjs +2 -2
- package/components/draggable-data-item-level/index.js +16 -16
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +8 -8
- package/components/edit-item/index.cjs +6 -6
- package/components/edit-item/index.js +72 -72
- package/components/edit-option/index.cjs +3 -3
- package/components/edit-option/index.js +3 -3
- package/components/edit-option-action-button-group/index.cjs +2 -2
- package/components/edit-option-action-button-group/index.js +6 -6
- package/components/{edit-option-base-DnrerC_T.cjs → edit-option-base-Boz7TNRZ.cjs} +2 -2
- package/components/{edit-option-base-oIvlolV9.js → edit-option-base-qePiIQWd.js} +4 -4
- package/components/edit-option-color-picker/index.cjs +33 -33
- package/components/edit-option-color-picker/index.js +124 -124
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +4 -4
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +5 -5
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +3 -3
- package/components/edit-option-slider/index.js +217 -217
- package/components/edit-option-switch/index.cjs +4 -4
- package/components/edit-option-switch/index.js +30 -30
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +3 -3
- package/components/{en-BsAhbMzm.js → en-DMOM5QNw.js} +12 -12
- package/components/{en-GB-qub-Kemt.js → en-GB-BPwcXBDg.js} +1 -1
- package/components/{en-GB-g8rSQSba.cjs → en-GB-Cp6Zq89F.cjs} +1 -1
- package/components/{en-CdROUdjt.cjs → en-o_2c6hRN.cjs} +2 -2
- package/components/{if-defined-DMSuo5Qx.cjs → if-defined-8BOch-oC.cjs} +1 -1
- package/components/{if-defined-CYpcjGCb-tXzyj9Dq.js → if-defined-BSAr_4u4-4Ys8VE7T.js} +4 -4
- package/components/{if-defined-CYpcjGCb-Bzbg7zmM.cjs → if-defined-BSAr_4u4-gECNwmTC.cjs} +2 -2
- package/components/{if-defined-Ch2dtEOS.js → if-defined-Bv6MRdSW.js} +1 -1
- package/components/{index-gfU9TGd5.cjs → index-86cIx1Ql.cjs} +3 -3
- package/components/{index-DszPbTTD.js → index-B3ve6cAj.js} +17 -17
- package/components/{index-CkDDDzuJ.js → index-B5Wvyv9s.js} +28 -28
- package/components/{index-BD3VxQBH.js → index-BBrer3_5.js} +1 -1
- package/components/index-BJVxTeoi.cjs +192 -0
- package/components/{index-B2z7i1-X.js → index-BUSWsm5N.js} +10 -10
- package/components/{index-BqTdFs1o.js → index-BVX_ozT9.js} +3 -3
- package/components/{index-B5VaT0lQ.js → index-BYfDERr7.js} +3 -3
- package/components/{index-BGaxFTL4.js → index-Bee1uunR.js} +4 -4
- package/components/index-BrEDK88k.cjs +185 -0
- package/components/{index-C_3Ak4MQ.cjs → index-Bt5nP_6w.cjs} +5 -5
- package/components/{index-CayjvyyX.cjs → index-ByjLd3bT.cjs} +4 -4
- package/components/{index-DskAouD-.js → index-C8IL2IZ6.js} +4 -4
- package/components/{index-C2qG2Sm8-BQUlk-w0.js → index-CMvLpPKD-D5MpMVYZ.js} +14 -14
- package/components/{index-C2qG2Sm8-CbVWlbag.cjs → index-CMvLpPKD-Yf1PLWrj.cjs} +12 -12
- package/components/{index-BRk42NQn.js → index-CXIT0cYY.js} +166 -166
- package/components/{index-EQldC-LR.js → index-CdCtJpK9.js} +6 -6
- package/components/{index-B0cBkCaq.cjs → index-CdUTqQ3L.cjs} +4 -4
- package/components/{index-DQiQXn8N.cjs → index-CdpyJ7hp.cjs} +1 -1
- package/components/{index-Cp-lHUlX.js → index-CfEn3fIT.js} +3 -3
- package/components/{index-Bofs4Q2E.cjs → index-D8qmoauu.cjs} +1 -1
- package/components/{index-ON4x-yZ7.cjs → index-DEVOZNSc.cjs} +2 -2
- package/components/{index-CTPox3yS.cjs → index-DUO13KGl.cjs} +3 -3
- package/components/{index-B2N_PZf3.js → index-DVAsMiOm.js} +4 -4
- package/components/{index-DVaeDCbe.js → index-DnozlYag.js} +1 -1
- package/components/{index-liTHhAef.cjs → index-h9T5DPIm.cjs} +2 -2
- package/components/{index-3ewegRbb.cjs → index-i8GaIN7i.cjs} +4 -4
- package/components/{index-D9vzXhtJ.cjs → index-iYpAy-Kg.cjs} +6 -6
- package/components/{index-BC-nmKjU.js → index-ymMEPngt.js} +14 -14
- package/components/{index-CtHO6VyI.cjs → index-zuArOtOt.cjs} +3 -3
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{language-resolution-8yZa5r_P-CTSmbE1U.js → language-resolution-8yZa5r_P-Bn0bYosv.js} +3 -3
- package/components/{language-resolution-8yZa5r_P-DQ3rZzW5.cjs → language-resolution-8yZa5r_P-FqQChUDW.cjs} +3 -3
- package/components/{luzmo-icons-CZEpXpvy.js → luzmo-icons-BE2T8vWu.js} +1 -1
- package/components/{luzmo-icons-BrtBl3E5.cjs → luzmo-icons-XsFsTAl3.cjs} +1 -1
- package/components/{observe-slot-text-BG0H7bQK-CrkAqUMj.cjs → observe-slot-text-ggb4kKgY-DBVrKDBD.cjs} +4 -4
- package/components/{observe-slot-text-BG0H7bQK-C0wmc4DO.js → observe-slot-text-ggb4kKgY-o5QFWUeA.js} +4 -4
- package/components/{popover-bg0EQQ8p-Dha09dhV.cjs → popover-DlkzrLpl-BhTvuvTu.cjs} +5 -5
- package/components/{popover-bg0EQQ8p-D4-hrhIx.js → popover-DlkzrLpl-CCwcTIXr.js} +3 -3
- package/components/property-0L4eB11h.cjs +112 -0
- package/components/{property-CD3dwBJC.js → property-B2F7x7Cz.js} +581 -547
- package/components/{sized-mixin-PyCYpyQq-B40Ek2UB.js → sized-mixin-BxMraZLS-B_y0PzR3.js} +1 -1
- package/components/{sized-mixin-PyCYpyQq-sKzDjc75.cjs → sized-mixin-BxMraZLS-DEFWqo8f.cjs} +2 -2
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +4 -4
- package/components/slot-menu-list/index.cjs +2 -2
- package/components/slot-menu-list/index.js +10 -10
- package/components/{state-ByiKNRhp.cjs → state-BFA93Sye.cjs} +1 -1
- package/components/{state-B1a8XIDm.js → state-Joaryhrg.js} +1 -1
- package/components/{task-HFsHfTra.cjs → task-B8yMzxui.cjs} +1 -1
- package/components/{task-BPD0PyaQ.js → task-Cr9aRIbV.js} +1 -1
- package/components/{text-field-7ITo3Lac-DqVO04kR.js → text-field-CvKSS59x-Dn0_1HO7.js} +29 -29
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +131 -0
- package/package.json +1 -1
- package/components/index-Bjs6Yqet.cjs +0 -185
- package/components/index-D4x-O9Uc.cjs +0 -192
- package/components/property-Su1Q6aME.cjs +0 -124
- package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +0 -131
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const vt=require("./task-HFsHfTra.cjs");require("./index-CtHO6VyI.cjs");require("./index-CTPox3yS.cjs");require("./index-C_3Ak4MQ.cjs");require("./index-liTHhAef.cjs");require("./index-D9vzXhtJ.cjs");require("./index-Bjs6Yqet.cjs");require("./index-3ewegRbb.cjs");const w=require("./property-Su1Q6aME.cjs"),Le=require("./sized-mixin-PyCYpyQq-sKzDjc75.cjs"),te=require("./luzmo-icons-BrtBl3E5.cjs"),q=require("./localize-DbobqcKs.cjs"),Mt=require("./decompose-numeric-format-B3rVVHpO.cjs"),I=require("./query-D5qWDopr.cjs");function St(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fe(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function bt(e){return e=fe(Math.abs(e)),e?e[1]:NaN}function kt(e,t){return function(r,n){for(var s=r.length,a=[],l=0,_=e[0],k=0;s>0&&_>0&&(k+_+1>n&&(_=Math.max(1,n-k)),a.push(r.substring(s-=_,s+_)),!((k+=_+1)>n));)_=e[l=(l+1)%e.length];return a.reverse().join(t)}}function Tt(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fe(e){if(!(t=wt.exec(e)))throw new Error("invalid format: "+e);var t;return new xe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fe.prototype=xe.prototype;function xe(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}xe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ft(e){e:for(var t=e.length,r=1,n=-1,s;r<t;++r)switch(e[r]){case".":n=s=r;break;case"0":n===0&&(n=r),s=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(s+1):e}var Ke;function zt(e,t){var r=fe(e,t);if(!r)return e+"";var n=r[0],s=r[1],a=s-(Ke=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,l=n.length;return a===l?n:a>l?n+new Array(a-l+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+fe(e,Math.max(0,t+a-1))[0]}function $e(e,t){var r=fe(e,t);if(!r)return e+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const Ne={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:St,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$e(e*100,t),r:$e,s:zt,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function We(e){return e}var qe=Array.prototype.map,Ee=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dt(e){var t=e.grouping===void 0||e.thousands===void 0?We:kt(qe.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?We:Tt(qe.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",_=e.minus===void 0?"−":e.minus+"",k=e.nan===void 0?"NaN":e.nan+"";function u(y){y=Fe(y);var H=y.fill,m=y.align,c=y.sign,d=y.symbol,S=y.zero,h=y.width,Y=y.comma,b=y.precision,D=y.trim,g=y.type;g==="n"?(Y=!0,g="g"):Ne[g]||(b===void 0&&(b=12),D=!0,g="g"),(S||H==="0"&&m==="=")&&(S=!0,H="0",m="=");var z=d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",he=d==="$"?n:/[%p]/.test(g)?l:"",R=Ne[g],ve=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function de(p){var O=z,A=he,Q,ce,X;if(g==="c")A=R(p)+A,p="";else{p=+p;var K=p<0||1/p<0;if(p=isNaN(p)?k:R(Math.abs(p),b),D&&(p=Ft(p)),K&&+p==0&&c!=="+"&&(K=!1),O=(K?c==="("?c:_:c==="-"||c==="("?"":c)+O,A=(g==="s"?Ee[8+Ke/3]:"")+A+(K&&c==="("?")":""),ve){for(Q=-1,ce=p.length;++Q<ce;)if(X=p.charCodeAt(Q),48>X||X>57){A=(X===46?s+p.slice(Q+1):p.slice(Q))+A,p=p.slice(0,Q);break}}}Y&&!S&&(p=t(p,1/0));var ee=O.length+p.length+A.length,E=ee<h?new Array(h-ee+1).join(H):"";switch(Y&&S&&(p=t(E+p,E.length?h-A.length:1/0),E=""),m){case"<":p=O+p+A+E;break;case"=":p=O+E+p+A;break;case"^":p=E.slice(0,ee=E.length>>1)+O+p+A+E.slice(ee);break;default:p=E+O+p+A;break}return a(p)}return de.toString=function(){return y+""},de}function T(y,H){var m=u((y=Fe(y),y.type="f",y)),c=Math.max(-8,Math.min(8,Math.floor(bt(H)/3)))*3,d=Math.pow(10,-c),S=Ee[8+c/3];return function(h){return m(d*h)+S}}return{format:u,formatPrefix:T}}const Me=new Date,Se=new Date;function C(e,t,r,n){function s(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(e(a=new Date(+a)),a),s.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),s.round=a=>{const l=s(a),_=s.ceil(a);return a-l<_-a?l:_},s.offset=(a,l)=>(t(a=new Date(+a),l==null?1:Math.floor(l)),a),s.range=(a,l,_)=>{const k=[];if(a=s.ceil(a),_=_==null?1:Math.floor(_),!(a<l)||!(_>0))return k;let u;do k.push(u=new Date(+a)),t(a,_),e(a);while(u<a&&a<l);return k},s.filter=a=>C(l=>{if(l>=l)for(;e(l),!a(l);)l.setTime(l-1)},(l,_)=>{if(l>=l)if(_<0)for(;++_<=0;)for(;t(l,-1),!a(l););else for(;--_>=0;)for(;t(l,1),!a(l););}),r&&(s.count=(a,l)=>(Me.setTime(+a),Se.setTime(+l),e(Me),e(Se),Math.floor(r(Me,Se))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(n?l=>n(l)%a===0:l=>s.count(0,l)%a===0):s)),s}const le=1e3,V=le*60,me=V*60,ue=me*24,et=ue*7,tt=C(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*le)},(e,t)=>(t-e)/le,e=>e.getUTCSeconds());tt.range;const rt=C(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*le)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getMinutes());rt.range;const Yt=C(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCMinutes());Yt.range;const nt=C(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*le-e.getMinutes()*V)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());nt.range;const xt=C(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());xt.range;const pe=C(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/ue,e=>e.getDate()-1);pe.range;const Ce=C(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ue,e=>e.getUTCDate()-1);Ce.range;const Ct=C(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ue,e=>Math.floor(e/ue));Ct.range;function B(e){return C(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*V)/et)}const Ue=B(0),ye=B(1),Ut=B(2),At=B(3),ne=B(4),Lt=B(5),$t=B(6);Ue.range;ye.range;Ut.range;At.range;ne.range;Lt.range;$t.range;function J(e){return C(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/et)}const at=J(0),ge=J(1),Nt=J(2),Wt=J(3),ae=J(4),qt=J(5),Et=J(6);at.range;ge.range;Nt.range;Wt.range;ae.range;qt.range;Et.range;const ot=C(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ot.range;const Ht=C(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ht.range;const G=C(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:C(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});G.range;const Z=C(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Z.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:C(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Z.range;function be(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ke(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function oe(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ze(e){var t=e.dateTime,r=e.date,n=e.time,s=e.periods,a=e.days,l=e.shortDays,_=e.months,k=e.shortMonths,u=se(s),T=ie(s),y=se(a),H=ie(a),m=se(l),c=ie(l),d=se(_),S=ie(_),h=se(k),Y=ie(k),b={a:K,A:ee,b:E,B:ut,c:null,d:Ve,e:Ve,f:mr,g:vr,G:Sr,H:sr,I:ir,j:lr,L:st,m:ur,M:hr,p:ht,q:dt,Q:je,s:Ze,S:dr,u:cr,U:fr,V:yr,w:gr,W:pr,x:null,X:null,y:_r,Y:Mr,Z:br,"%":Re},D={a:ct,A:ft,b:yt,B:gt,c:null,d:Ge,e:Ge,f:Fr,g:Nr,G:qr,H:kr,I:Tr,j:wr,L:lt,m:zr,M:Dr,p:pt,q:_t,Q:je,s:Ze,S:Yr,u:xr,U:Cr,V:Ur,w:Ar,W:Lr,x:null,X:null,y:$r,Y:Wr,Z:Er,"%":Re},g={a:de,A:p,b:O,B:A,c:Q,d:Pe,e:Pe,f:rr,g:Oe,G:Ie,H:Qe,I:Qe,j:Xt,L:tr,m:Jt,M:Kt,p:ve,q:Bt,Q:ar,s:or,S:er,u:Vt,U:Gt,V:Rt,w:Qt,W:jt,x:ce,X,y:Oe,Y:Ie,Z:Zt,"%":nr};b.x=z(r,b),b.X=z(n,b),b.c=z(t,b),D.x=z(r,D),D.X=z(n,D),D.c=z(t,D);function z(i,f){return function(v){var o=[],L=-1,F=0,N=i.length,W,j,Ae;for(v instanceof Date||(v=new Date(+v));++L<N;)i.charCodeAt(L)===37&&(o.push(i.slice(F,L)),(j=He[W=i.charAt(++L)])!=null?W=i.charAt(++L):j=W==="e"?" ":"0",(Ae=f[W])&&(W=Ae(v,j)),o.push(W),F=L+1);return o.push(i.slice(F,L)),o.join("")}}function he(i,f){return function(v){var o=oe(1900,void 0,1),L=R(o,i,v+="",0),F,N;if(L!=v.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(o.s*1e3+("L"in o?o.L:0));if(f&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+o.p*12),o.m===void 0&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(F=ke(oe(o.y,0,1)),N=F.getUTCDay(),F=N>4||N===0?ge.ceil(F):ge(F),F=Ce.offset(F,(o.V-1)*7),o.y=F.getUTCFullYear(),o.m=F.getUTCMonth(),o.d=F.getUTCDate()+(o.w+6)%7):(F=be(oe(o.y,0,1)),N=F.getDay(),F=N>4||N===0?ye.ceil(F):ye(F),F=pe.offset(F,(o.V-1)*7),o.y=F.getFullYear(),o.m=F.getMonth(),o.d=F.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),N="Z"in o?ke(oe(o.y,0,1)).getUTCDay():be(oe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+o.W*7-(N+5)%7:o.w+o.U*7-(N+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ke(o)):be(o)}}function R(i,f,v,o){for(var L=0,F=f.length,N=v.length,W,j;L<F;){if(o>=N)return-1;if(W=f.charCodeAt(L++),W===37){if(W=f.charAt(L++),j=g[W in He?f.charAt(L++):W],!j||(o=j(i,v,o))<0)return-1}else if(W!=v.charCodeAt(o++))return-1}return o}function ve(i,f,v){var o=u.exec(f.slice(v));return o?(i.p=T.get(o[0].toLowerCase()),v+o[0].length):-1}function de(i,f,v){var o=m.exec(f.slice(v));return o?(i.w=c.get(o[0].toLowerCase()),v+o[0].length):-1}function p(i,f,v){var o=y.exec(f.slice(v));return o?(i.w=H.get(o[0].toLowerCase()),v+o[0].length):-1}function O(i,f,v){var o=h.exec(f.slice(v));return o?(i.m=Y.get(o[0].toLowerCase()),v+o[0].length):-1}function A(i,f,v){var o=d.exec(f.slice(v));return o?(i.m=S.get(o[0].toLowerCase()),v+o[0].length):-1}function Q(i,f,v){return R(i,t,f,v)}function ce(i,f,v){return R(i,r,f,v)}function X(i,f,v){return R(i,n,f,v)}function K(i){return l[i.getDay()]}function ee(i){return a[i.getDay()]}function E(i){return k[i.getMonth()]}function ut(i){return _[i.getMonth()]}function ht(i){return s[+(i.getHours()>=12)]}function dt(i){return 1+~~(i.getMonth()/3)}function ct(i){return l[i.getUTCDay()]}function ft(i){return a[i.getUTCDay()]}function yt(i){return k[i.getUTCMonth()]}function gt(i){return _[i.getUTCMonth()]}function pt(i){return s[+(i.getUTCHours()>=12)]}function _t(i){return 1+~~(i.getUTCMonth()/3)}return{format:function(i){var f=z(i+="",b);return f.toString=function(){return i},f},parse:function(i){var f=he(i+="",!1);return f.toString=function(){return i},f},utcFormat:function(i){var f=z(i+="",D);return f.toString=function(){return i},f},utcParse:function(i){var f=he(i+="",!0);return f.toString=function(){return i},f}}}var He={"-":"",_:" ",0:"0"},x=/^\s*\d+/,It=/^%/,Ot=/[\\^$*+?|[\]().{}]/g;function M(e,t,r){var n=e<0?"-":"",s=(n?-e:e)+"",a=s.length;return n+(a<r?new Array(r-a+1).join(t)+s:s)}function Pt(e){return e.replace(Ot,"\\$&")}function se(e){return new RegExp("^(?:"+e.map(Pt).join("|")+")","i")}function ie(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Qt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Vt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Gt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Rt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function jt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ie(e,t,r){var n=x.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Oe(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Zt(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Bt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Jt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pe(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Xt(e,t,r){var n=x.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Qe(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Kt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function er(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tr(e,t,r){var n=x.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rr(e,t,r){var n=x.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nr(e,t,r){var n=It.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ar(e,t,r){var n=x.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function or(e,t,r){var n=x.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ve(e,t){return M(e.getDate(),t,2)}function sr(e,t){return M(e.getHours(),t,2)}function ir(e,t){return M(e.getHours()%12||12,t,2)}function lr(e,t){return M(1+pe.count(G(e),e),t,3)}function st(e,t){return M(e.getMilliseconds(),t,3)}function mr(e,t){return st(e,t)+"000"}function ur(e,t){return M(e.getMonth()+1,t,2)}function hr(e,t){return M(e.getMinutes(),t,2)}function dr(e,t){return M(e.getSeconds(),t,2)}function cr(e){var t=e.getDay();return t===0?7:t}function fr(e,t){return M(Ue.count(G(e)-1,e),t,2)}function it(e){var t=e.getDay();return t>=4||t===0?ne(e):ne.ceil(e)}function yr(e,t){return e=it(e),M(ne.count(G(e),e)+(G(e).getDay()===4),t,2)}function gr(e){return e.getDay()}function pr(e,t){return M(ye.count(G(e)-1,e),t,2)}function _r(e,t){return M(e.getFullYear()%100,t,2)}function vr(e,t){return e=it(e),M(e.getFullYear()%100,t,2)}function Mr(e,t){return M(e.getFullYear()%1e4,t,4)}function Sr(e,t){var r=e.getDay();return e=r>=4||r===0?ne(e):ne.ceil(e),M(e.getFullYear()%1e4,t,4)}function br(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+M(t/60|0,"0",2)+M(t%60,"0",2)}function Ge(e,t){return M(e.getUTCDate(),t,2)}function kr(e,t){return M(e.getUTCHours(),t,2)}function Tr(e,t){return M(e.getUTCHours()%12||12,t,2)}function wr(e,t){return M(1+Ce.count(Z(e),e),t,3)}function lt(e,t){return M(e.getUTCMilliseconds(),t,3)}function Fr(e,t){return lt(e,t)+"000"}function zr(e,t){return M(e.getUTCMonth()+1,t,2)}function Dr(e,t){return M(e.getUTCMinutes(),t,2)}function Yr(e,t){return M(e.getUTCSeconds(),t,2)}function xr(e){var t=e.getUTCDay();return t===0?7:t}function Cr(e,t){return M(at.count(Z(e)-1,e),t,2)}function mt(e){var t=e.getUTCDay();return t>=4||t===0?ae(e):ae.ceil(e)}function Ur(e,t){return e=mt(e),M(ae.count(Z(e),e)+(Z(e).getUTCDay()===4),t,2)}function Ar(e){return e.getUTCDay()}function Lr(e,t){return M(ge.count(Z(e)-1,e),t,2)}function $r(e,t){return M(e.getUTCFullYear()%100,t,2)}function Nr(e,t){return e=mt(e),M(e.getUTCFullYear()%100,t,2)}function Wr(e,t){return M(e.getUTCFullYear()%1e4,t,4)}function qr(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ae(e):ae.ceil(e),M(e.getUTCFullYear()%1e4,t,4)}function Er(){return"+0000"}function Re(){return"%"}function je(e){return+e}function Ze(e){return Math.floor(+e/1e3)}var re,P;Hr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Hr(e){return re=ze(e),P=re.format,re.parse,re.utcFormat,re.utcParse,re}const De=[[1,4,12,52,365,365*24,365*24*60,365*24*60*60,365*24*60*60*1e3],[1/4,1,3,13,91,91*24,91*24*60,91*24*60*60,91*24*60*60*1e3],[1/12,1/3,1,4,30,30*24,30*24*60,30*24*60*60,30*24*60*60*1e3],[1/52,1/13,1/4,1,7,7*24,7*24*60,7*24*60*60,7*24*60*60*1e3],[1/365,1/91,1/30,1/7,1,24,24*60,24*60*60,24*60*60*1e3],[1/(365*24),1/(91*24),1/(30*24),1/(7*24),1/24,1,60,60*60,60*60*1e3],[1/(365*24*60),1/(91*24*60),1/(30*24*60),1/(7*24*60),1/(24*60),1/60,1,60,60*1e3],[1/(365*24*60*60),1/(91*24*60*60),1/(30*24*60*60),1/(7*24*60*60),1/(24*60*60),1/(60*60),1/60,1,1e3],[1/(365*24*60*60*1e3),1/(91*24*60*60*1e3),1/(30*24*60*60*1e3),1/(7*24*60*60*1e3),1/(24*60*60*1e3),1/(60*60*1e3),1/(60*1e3),1/1e3,1]];function Ir(e,t,r){if(q.isEmpty(e))return;if(!t||!r||t===r)return e;const n=De[t-1][r-1];if(n)return e*n}function Or(e,t,r,n){if(q.isEmpty(e)||!t.lowestLevel||r.length===0)return"";const s=[];let a=0,l=Math.round(e*De[t.lowestLevel-1][8]);const _=9;for(const[,u]of r.entries())if(e){l=l-a;const T=De[u-1][_-1],y=Math.floor(l/T);a=y*T,s.push({level:u,value:y})}else s.push({level:u,value:0});let k="";for(const[u,T]of s.entries())if(t.duration.format==="time"){let y=T.value;[6,7,8].includes(T.level)&&T.value<10?y="0"+T.value.toString():T.level===9&&T.value<10?y="00"+T.value.toString():T.level===9&&T.value<100&&(y="0"+T.value.toString()),k+=(u===0?"":T.level===9?".":":")+y}else if(t.duration.format==="long"){const y=n.durationLongSuffix;k+=T.value+" "+y[T.level]+(u===s.length-1?"":" ")}else{const y=n.durationShortSuffix;k+=T.value+""+y[T.level]+(u===s.length-1?"":" ")}return k}const _e={decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",dateSeparator:"/",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],levels:["All","Year","Quarter","Month","Week","Date","Hour","Minute","Second","Millisecond"],shortLevels:["All","Yr","Qtr","Mth","Wk","Date","Hr","Min","Sec","Msec"],durationLongSuffix:["","years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],durationShortSuffix:["","y","q","mo","w","d","h","m","s","ms"],multi:[".%L",":%S","%I:%M","%I %p","%a %d","W%G","%b %d","%B","%Y"]},Pr="%d-%m-%Y",Ye=[{key:"%a %e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%a %e %b %Y",monthType:"name",longText:!1,weekday:!0},{key:"%e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%e %b %Y",monthType:"name",longText:!1,weekday:!1},{key:"%a %e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%a %e %B %Y",monthType:"name",longText:!0,weekday:!0},{key:"%e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%e %B %Y",monthType:"name",longText:!0,weekday:!1},{key:"%d/%m/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"W%V/%G",lev5:"%d/%m/%Y",monthType:"number",mmdd:!1,separator:"/"},{key:"%d-%m-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"W%V-%G",lev5:"%d-%m-%Y",monthType:"number",mmdd:!1,separator:"-"},{key:"%d.%m.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"W%V.%G",lev5:"%d.%m.%Y",monthType:"number",mmdd:!1,separator:"."},{key:"%d~%m~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"W%V~%G",lev5:"%d~%m~%Y",monthType:"number",mmdd:!1,separator:"~"},{key:"%m/%d/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%m/%d/%Y",monthType:"number",mmdd:!0,separator:"/"},{key:"%m-%d-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%m-%d-%Y",monthType:"number",mmdd:!0,separator:"-"},{key:"%m.%d.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%m.%d.%Y",monthType:"number",mmdd:!0,separator:"."},{key:"%m~%d~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%m~%d~%Y",monthType:"number",mmdd:!0,separator:"~"},{key:"%amd/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%amd/%Y",monthType:"number",mmdd:null,separator:"/"},{key:"%amd-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%amd-%Y",monthType:"number",mmdd:null,separator:"-"},{key:"%amd.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%amd.%Y",monthType:"number",mmdd:null,separator:"."},{key:"%amd~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%amd~%Y",monthType:"number",mmdd:null,separator:"~"}],Qr=[{key:"%H:%M:%S.%L",lev6:"%H:00",lev7:"%H:%M",lev8:"%H:%M:%S",lev9:"%H:%M:%S.%L",ampm:!1},{key:"%I:%M:%S.%L %p",lev6:"%I:00 %p",lev7:"%I:%M %p",lev8:"%I:%M:%S %p",lev9:"%I:%M:%S.%L %p",ampm:!0}];function Te(e,t){var y,H;t=t||{};const r=t.localFormats||_e;let n,s,a,l=[],_=[],k="datetime",u;t&&t.multi&&(k="datetime"),(!e||!e.format)&&(k="hierarchy"),e&&e.type&&(k=e.type),e&&e.format?u=e.format:k==="numeric"?u=",.0f":k==="datetime"?u=Pr:u="";const T=Mt.decomposeNumericFormat(u);switch(T.precision&&T.typeFormat&&(k="numeric"),k){case"numeric":{if(e.subtype==="duration"&&e.duration&&e.duration.levels&&e.duration.levels.length>1&&!t.hideDuration)n=m=>q.isEmpty(m)?"":Or(m,e,e.duration.levels,r);else{const m={...r};let c=T.typeFormat,d=!1;switch(c.length===2&&c.startsWith("a")&&(d=!0,c=c.slice(1,2),u=u.replace(/a/,"")),d?(m.decimal=r.decimal,m.thousands=r.thousands):["z","y","w"].includes(c)?(m.decimal=",",m.thousands="."):(m.decimal=".",m.thousands=","),c){case"z":{u=u.replace("z","f");break}case"y":{u=u.replace("y","%");break}case"w":{u=u.replace("w","s");break}}if((e==null?void 0:e.subtype)==="currency"&&e.currency){const h=" ",Y=m.currency.findIndex(z=>z.length>0),b=m.currency[Y].startsWith(h),D=m.currency[Y].endsWith(h),g=`${b?h:""}${e.currency}${D?h:""}`;m.currency[Y]=g}const S=Dt(m);c!=="%"&&(e==null?void 0:e.subtype)==="currency"&&e.currency&&m.currency&&!(t!=null&&t.hideCurrency)&&!["count","distinctcount"].includes(e.aggregationFunc)&&!(e.aggregationFunc==="rate"&&((y=e.aggregationWeight)==null?void 0:y.columnSubType)==="currency")&&((H=e.periodOverPeriod)==null?void 0:H.type)!=="percentageChange"&&(u="$"+u),t!=null&&t.trimZero&&["y","%"].includes(c)&&m.decimal===","?s=h=>S.format(u)(h).replace(/(,\d*?)0+%$/,"$1%").replace(/,%$/,"%"):t!=null&&t.trimZero&&["y","%"].includes(c)&&m.decimal==="."?s=h=>S.format(u)(h).replace(/(\.\d*?)0+%$/,"$1%").replace(/\.%$/,"%"):t!=null&&t.trimZero&&["z","f"].includes(c)&&m.decimal===","?s=h=>S.format(u)(h).replace(/(,\d*?)0+$/,"$1").replace(/,$/,""):t!=null&&t.trimZero&&["z","f"].includes(c)&&m.decimal==="."?s=h=>S.format(u)(h).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""):(e==null?void 0:e.subtype)==="currency"&&e.currency&&m.currency&&c==="s"?s=h=>S.format(u)(h).replace(/G/,"B"):s=q.isEmpty(T.precision)?S.format(",.0f"):S.format(u),n=h=>{var Y;if(q.isEmpty(h))return"";if(e.subtype==="duration"&&e.duration&&!t.hideDuration){const b=e.duration.levels?e.duration.levels[0]:e.lowestLevel;return b!==e.lowestLevel&&(h=Ir(h,e.lowestLevel,b)),s(h)+((Y=r==null?void 0:r.durationShortSuffix)==null?void 0:Y[b])}return s(h)}}break}case"datetime":{if(l=(r==null?void 0:r.smartDateFormats)??Ye,_=(r==null?void 0:r.smartTimeFormats)??Qr,q.isEmpty(e.datetimeDisplayMode)){if(t!=null&&t.level){const m=t.level,c=l.find(D=>u.includes(D.key)),d=_.find(D=>u.includes(D.key)),S=c?c["lev"+Math.min(m,5)]:l[0]["lev"+Math.min(m,5)],h=m>5?d?d["lev"+m]:_[0]["lev"+m]:"";u=m>5?S+", "+h:S;const Y=u.includes("%amd")&&t.level>=5,b=c?t.level>=2&&c.separator==="~":!1;Y?u=b?u.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8)):u.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8).replaceAll(new RegExp(/[.~\/-]/g),c.separator)):u=b?u.replaceAll(new RegExp(/[~]/g),r.dateSeparator):u}if(t!=null&&t.multi){const m=P(r.multi[0]),c=P(r.multi[1]),d=P(r.multi[2]),S=P(r.multi[3]),h=P(r.multi[4]),Y=P(r.multi[6]),b=P(r.multi[7]),D=P(r.multi[8]);a=g=>{let z;return tt(g)<g?z=m:rt(g)<g?z=c:nt(g)<g?z=d:pe(g)<g?z=S:ot(g)<g?z=Ue(g)<g?h:Y:G(g)<g?z=b:z=D,z(g)}}else a=ze(r).format(u)}else{const m={quarter_number:{min:1,max:4},month_name:{min:1,max:12},month_number:{min:1,max:12},week_number:{min:1,max:53},day_in_month:{min:1,max:31},day_in_year:{min:1,max:366},weekday_name:{min:0,max:7},weekday_number:{min:0,max:7},hour_in_day:{min:0,max:23},minute_in_hour:{min:0,max:59},second_in_minute:{min:0,max:59}},c=(d,S,h)=>{var Y,b,D,g,z;return S==="letter"?((Y=d.shortNames)==null?void 0:Y.length)>0&&((b=d.shortNames[h])==null?void 0:b.length)>0?(D=d.shortNames[h])==null?void 0:D.charAt(0):"N/A":S==="short"?((g=d.shortNames)==null?void 0:g.length)>0&&d.shortNames[h]?d.shortNames[h]:"N/A":((z=d.longNames)==null?void 0:z.length)>0&&d.longNames[h]?d.longNames[h]:"N/A"};["quarter_number","month_number","week_number","day_in_month","day_in_year","weekday_number","hour_in_day","minute_in_hour","second_in_minute"].includes(e.datetimeDisplayMode)?a=d=>q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?d:"N/A":e.datetimeDisplayMode==="month_name"?a=d=>{const S=[...r.shortMonths],h=[...r.months];return q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?c({shortNames:S,longNames:h},e.monthNameFormat,d-1):"N/A"}:e.datetimeDisplayMode==="weekday_name"?a=d=>{const S=[...r.shortDays],h=[...r.days];return e.weekStart==="monday"&&(S.push(S.shift()??""),h.push(h.shift()??"")),q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?c({shortNames:S,longNames:h},e.weekDayNameFormat,d-1):"N/A"}:a=ze(r).format(u)}n=m=>{if(q.isEmpty(m))return"";const c=a(m);return q.isString(c)?c.trim():c};break}case"hierarchy":{n=m=>q.localize(m,t?t.locale:void 0);break}default:{n=m=>m;break}}return n}const Be={"~":"Auto","/":"/","-":"-",".":"."},we={level2:[{key:"default",label:"Default"},{key:"quarter_number",label:"Quarter numbers"}],level3:[{key:"default",label:"Default"},{key:"month_in_year",label:"Month number"}],level4:[{key:"default",label:"Default"},{key:"week_number",label:"Week number"}],level5:[{key:"default",label:"Default"},{key:"day_in_week",label:"Day in week"},{key:"day_in_month",label:"Day in month"},{key:"day_in_year",label:"Day in year"}],level6:[{key:"default",label:"Default"},{key:"hour_in_day",label:"Hour in day"}],level7:[{key:"default",label:"Default"},{key:"minute_in_hour",label:"Minute in hour"}],level8:[{key:"default",label:"Default"},{key:"second_in_minute",label:"Second in minute"}]},Je={number:"Number",letter:"Letter",short:"Short",long:"Long"},Xe={sunday:"Sunday",monday:"Monday"},Vr=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var Gr=Object.defineProperty,$=(e,t,r,n)=>{for(var s=void 0,a=e.length-1,l;a>=0;a--)(l=e[a])&&(s=l(t,r,s)||s);return s&&Gr(t,r,s),s};class U extends Le.m(w.I,{validSizes:Object.values(Le.d)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new vt.h(this,{task:async([t])=>{if(t&&t!==this._contentLanguageLoaded){const r=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("./cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("./da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("./de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("./en-GB-g8rSQSba.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>Rr),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>jr),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("./es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("./fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("./fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("./he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("./hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("./it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("./ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("./ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("./mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("./nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("./no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("./pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("./pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("./ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("./sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("./tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("./zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("./zh-TW-DTZ4OmdP.cjs"))});if(r[`../../utils/formatter/formats/${t}.ts`]){const n=await r[`../../utils/formatter/formats/${t}.ts`]();this._localeFormats=(n==null?void 0:n.default)??{}}return this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[w.r(Vr)]}_parseSlotContent(){var t,r;this._dateLevel=this.slotContent.level??((t=this.slotContent)==null?void 0:t.lowestLevel)??5,this._displayAs=((r=this.slotContent)==null?void 0:r.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var n;let t;const r=((n=this._localeFormats)==null?void 0:n.smartDateFormats)??Ye;this._monthName?(t=r.filter(s=>s.monthType==="name"&&s.longText===(this._monthNameFormat==="long")&&s.weekday===this._weekDay),t.length>0?this._format=t[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(t=this._dateLevel&&this._dateLevel===4?r.filter(s=>s.monthType==="number"&&s.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator):r.filter(s=>s.monthType==="number"&&s.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":t.length>0?this._format=t[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var t;this._weekDayAndMonthInYearFormat=((t=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:t[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var t;this._monthNameFormat=(t=this._monthNameFormatElement.selected)==null?void 0:t[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var t;this._weekFormat=(t=this._weekFormatElement.selected)==null?void 0:t[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(t){t.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){var r;const t=(r=we==null?void 0:we[`level${this._dateLevel??0}`])==null?void 0:r.map(n=>w.x`<luzmo-menu-item value=${n.key}>
|
20
|
+
"use strict";const vt=require("./task-B8yMzxui.cjs");require("./index-zuArOtOt.cjs");require("./index-DUO13KGl.cjs");require("./index-Bt5nP_6w.cjs");require("./index-h9T5DPIm.cjs");require("./index-iYpAy-Kg.cjs");require("./index-BrEDK88k.cjs");require("./index-i8GaIN7i.cjs");const w=require("./property-0L4eB11h.cjs"),Le=require("./sized-mixin-BxMraZLS-DEFWqo8f.cjs"),te=require("./luzmo-icons-XsFsTAl3.cjs"),q=require("./localize-DbobqcKs.cjs"),Mt=require("./decompose-numeric-format-B3rVVHpO.cjs"),O=require("./query-D5qWDopr.cjs");function St(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fe(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function kt(e){return e=fe(Math.abs(e)),e?e[1]:NaN}function bt(e,t){return function(r,n){for(var s=r.length,a=[],l=0,_=e[0],b=0;s>0&&_>0&&(b+_+1>n&&(_=Math.max(1,n-b)),a.push(r.substring(s-=_,s+_)),!((b+=_+1)>n));)_=e[l=(l+1)%e.length];return a.reverse().join(t)}}function Tt(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var wt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fe(e){if(!(t=wt.exec(e)))throw new Error("invalid format: "+e);var t;return new xe({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fe.prototype=xe.prototype;function xe(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}xe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ft(e){e:for(var t=e.length,r=1,n=-1,s;r<t;++r)switch(e[r]){case".":n=s=r;break;case"0":n===0&&(n=r),s=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(s+1):e}var Ke;function zt(e,t){var r=fe(e,t);if(!r)return e+"";var n=r[0],s=r[1],a=s-(Ke=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,l=n.length;return a===l?n:a>l?n+new Array(a-l+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+fe(e,Math.max(0,t+a-1))[0]}function $e(e,t){var r=fe(e,t);if(!r)return e+"";var n=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+n:n.length>s+1?n.slice(0,s+1)+"."+n.slice(s+1):n+new Array(s-n.length+2).join("0")}const Ne={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:St,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$e(e*100,t),r:$e,s:zt,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function We(e){return e}var qe=Array.prototype.map,Ee=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dt(e){var t=e.grouping===void 0||e.thousands===void 0?We:bt(qe.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?We:Tt(qe.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",_=e.minus===void 0?"−":e.minus+"",b=e.nan===void 0?"NaN":e.nan+"";function u(y){y=Fe(y);var H=y.fill,m=y.align,c=y.sign,d=y.symbol,S=y.zero,h=y.width,Y=y.comma,k=y.precision,D=y.trim,g=y.type;g==="n"?(Y=!0,g="g"):Ne[g]||(k===void 0&&(k=12),D=!0,g="g"),(S||H==="0"&&m==="=")&&(S=!0,H="0",m="=");var z=d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",he=d==="$"?n:/[%p]/.test(g)?l:"",R=Ne[g],ve=/[defgprs%]/.test(g);k=k===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function de(p){var I=z,A=he,Q,ce,X;if(g==="c")A=R(p)+A,p="";else{p=+p;var K=p<0||1/p<0;if(p=isNaN(p)?b:R(Math.abs(p),k),D&&(p=Ft(p)),K&&+p==0&&c!=="+"&&(K=!1),I=(K?c==="("?c:_:c==="-"||c==="("?"":c)+I,A=(g==="s"?Ee[8+Ke/3]:"")+A+(K&&c==="("?")":""),ve){for(Q=-1,ce=p.length;++Q<ce;)if(X=p.charCodeAt(Q),48>X||X>57){A=(X===46?s+p.slice(Q+1):p.slice(Q))+A,p=p.slice(0,Q);break}}}Y&&!S&&(p=t(p,1/0));var ee=I.length+p.length+A.length,E=ee<h?new Array(h-ee+1).join(H):"";switch(Y&&S&&(p=t(E+p,E.length?h-A.length:1/0),E=""),m){case"<":p=I+p+A+E;break;case"=":p=I+E+p+A;break;case"^":p=E.slice(0,ee=E.length>>1)+I+p+A+E.slice(ee);break;default:p=E+I+p+A;break}return a(p)}return de.toString=function(){return y+""},de}function T(y,H){var m=u((y=Fe(y),y.type="f",y)),c=Math.max(-8,Math.min(8,Math.floor(kt(H)/3)))*3,d=Math.pow(10,-c),S=Ee[8+c/3];return function(h){return m(d*h)+S}}return{format:u,formatPrefix:T}}const Me=new Date,Se=new Date;function C(e,t,r,n){function s(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return s.floor=a=>(e(a=new Date(+a)),a),s.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),s.round=a=>{const l=s(a),_=s.ceil(a);return a-l<_-a?l:_},s.offset=(a,l)=>(t(a=new Date(+a),l==null?1:Math.floor(l)),a),s.range=(a,l,_)=>{const b=[];if(a=s.ceil(a),_=_==null?1:Math.floor(_),!(a<l)||!(_>0))return b;let u;do b.push(u=new Date(+a)),t(a,_),e(a);while(u<a&&a<l);return b},s.filter=a=>C(l=>{if(l>=l)for(;e(l),!a(l);)l.setTime(l-1)},(l,_)=>{if(l>=l)if(_<0)for(;++_<=0;)for(;t(l,-1),!a(l););else for(;--_>=0;)for(;t(l,1),!a(l););}),r&&(s.count=(a,l)=>(Me.setTime(+a),Se.setTime(+l),e(Me),e(Se),Math.floor(r(Me,Se))),s.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?s.filter(n?l=>n(l)%a===0:l=>s.count(0,l)%a===0):s)),s}const le=1e3,V=le*60,me=V*60,ue=me*24,et=ue*7,tt=C(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*le)},(e,t)=>(t-e)/le,e=>e.getUTCSeconds());tt.range;const rt=C(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*le)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getMinutes());rt.range;const Yt=C(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCMinutes());Yt.range;const nt=C(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*le-e.getMinutes()*V)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getHours());nt.range;const xt=C(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCHours());xt.range;const pe=C(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*V)/ue,e=>e.getDate()-1);pe.range;const Ce=C(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ue,e=>e.getUTCDate()-1);Ce.range;const Ct=C(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ue,e=>Math.floor(e/ue));Ct.range;function B(e){return C(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*V)/et)}const Ue=B(0),ye=B(1),Ut=B(2),At=B(3),ne=B(4),Lt=B(5),$t=B(6);Ue.range;ye.range;Ut.range;At.range;ne.range;Lt.range;$t.range;function J(e){return C(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/et)}const at=J(0),ge=J(1),Nt=J(2),Wt=J(3),ae=J(4),qt=J(5),Et=J(6);at.range;ge.range;Nt.range;Wt.range;ae.range;qt.range;Et.range;const ot=C(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ot.range;const Ht=C(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ht.range;const G=C(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());G.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:C(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});G.range;const Z=C(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Z.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:C(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Z.range;function ke(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function be(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function oe(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function ze(e){var t=e.dateTime,r=e.date,n=e.time,s=e.periods,a=e.days,l=e.shortDays,_=e.months,b=e.shortMonths,u=se(s),T=ie(s),y=se(a),H=ie(a),m=se(l),c=ie(l),d=se(_),S=ie(_),h=se(b),Y=ie(b),k={a:K,A:ee,b:E,B:ut,c:null,d:Ve,e:Ve,f:mr,g:vr,G:Sr,H:sr,I:ir,j:lr,L:st,m:ur,M:hr,p:ht,q:dt,Q:je,s:Ze,S:dr,u:cr,U:fr,V:yr,w:gr,W:pr,x:null,X:null,y:_r,Y:Mr,Z:kr,"%":Re},D={a:ct,A:ft,b:yt,B:gt,c:null,d:Ge,e:Ge,f:Fr,g:Nr,G:qr,H:br,I:Tr,j:wr,L:lt,m:zr,M:Dr,p:pt,q:_t,Q:je,s:Ze,S:Yr,u:xr,U:Cr,V:Ur,w:Ar,W:Lr,x:null,X:null,y:$r,Y:Wr,Z:Er,"%":Re},g={a:de,A:p,b:I,B:A,c:Q,d:Pe,e:Pe,f:rr,g:Ie,G:Oe,H:Qe,I:Qe,j:Xt,L:tr,m:Jt,M:Kt,p:ve,q:Bt,Q:ar,s:or,S:er,u:Vt,U:Gt,V:Rt,w:Qt,W:jt,x:ce,X,y:Ie,Y:Oe,Z:Zt,"%":nr};k.x=z(r,k),k.X=z(n,k),k.c=z(t,k),D.x=z(r,D),D.X=z(n,D),D.c=z(t,D);function z(i,f){return function(v){var o=[],L=-1,F=0,N=i.length,W,j,Ae;for(v instanceof Date||(v=new Date(+v));++L<N;)i.charCodeAt(L)===37&&(o.push(i.slice(F,L)),(j=He[W=i.charAt(++L)])!=null?W=i.charAt(++L):j=W==="e"?" ":"0",(Ae=f[W])&&(W=Ae(v,j)),o.push(W),F=L+1);return o.push(i.slice(F,L)),o.join("")}}function he(i,f){return function(v){var o=oe(1900,void 0,1),L=R(o,i,v+="",0),F,N;if(L!=v.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(o.s*1e3+("L"in o?o.L:0));if(f&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+o.p*12),o.m===void 0&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(F=be(oe(o.y,0,1)),N=F.getUTCDay(),F=N>4||N===0?ge.ceil(F):ge(F),F=Ce.offset(F,(o.V-1)*7),o.y=F.getUTCFullYear(),o.m=F.getUTCMonth(),o.d=F.getUTCDate()+(o.w+6)%7):(F=ke(oe(o.y,0,1)),N=F.getDay(),F=N>4||N===0?ye.ceil(F):ye(F),F=pe.offset(F,(o.V-1)*7),o.y=F.getFullYear(),o.m=F.getMonth(),o.d=F.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),N="Z"in o?be(oe(o.y,0,1)).getUTCDay():ke(oe(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+o.W*7-(N+5)%7:o.w+o.U*7-(N+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,be(o)):ke(o)}}function R(i,f,v,o){for(var L=0,F=f.length,N=v.length,W,j;L<F;){if(o>=N)return-1;if(W=f.charCodeAt(L++),W===37){if(W=f.charAt(L++),j=g[W in He?f.charAt(L++):W],!j||(o=j(i,v,o))<0)return-1}else if(W!=v.charCodeAt(o++))return-1}return o}function ve(i,f,v){var o=u.exec(f.slice(v));return o?(i.p=T.get(o[0].toLowerCase()),v+o[0].length):-1}function de(i,f,v){var o=m.exec(f.slice(v));return o?(i.w=c.get(o[0].toLowerCase()),v+o[0].length):-1}function p(i,f,v){var o=y.exec(f.slice(v));return o?(i.w=H.get(o[0].toLowerCase()),v+o[0].length):-1}function I(i,f,v){var o=h.exec(f.slice(v));return o?(i.m=Y.get(o[0].toLowerCase()),v+o[0].length):-1}function A(i,f,v){var o=d.exec(f.slice(v));return o?(i.m=S.get(o[0].toLowerCase()),v+o[0].length):-1}function Q(i,f,v){return R(i,t,f,v)}function ce(i,f,v){return R(i,r,f,v)}function X(i,f,v){return R(i,n,f,v)}function K(i){return l[i.getDay()]}function ee(i){return a[i.getDay()]}function E(i){return b[i.getMonth()]}function ut(i){return _[i.getMonth()]}function ht(i){return s[+(i.getHours()>=12)]}function dt(i){return 1+~~(i.getMonth()/3)}function ct(i){return l[i.getUTCDay()]}function ft(i){return a[i.getUTCDay()]}function yt(i){return b[i.getUTCMonth()]}function gt(i){return _[i.getUTCMonth()]}function pt(i){return s[+(i.getUTCHours()>=12)]}function _t(i){return 1+~~(i.getUTCMonth()/3)}return{format:function(i){var f=z(i+="",k);return f.toString=function(){return i},f},parse:function(i){var f=he(i+="",!1);return f.toString=function(){return i},f},utcFormat:function(i){var f=z(i+="",D);return f.toString=function(){return i},f},utcParse:function(i){var f=he(i+="",!0);return f.toString=function(){return i},f}}}var He={"-":"",_:" ",0:"0"},x=/^\s*\d+/,Ot=/^%/,It=/[\\^$*+?|[\]().{}]/g;function M(e,t,r){var n=e<0?"-":"",s=(n?-e:e)+"",a=s.length;return n+(a<r?new Array(r-a+1).join(t)+s:s)}function Pt(e){return e.replace(It,"\\$&")}function se(e){return new RegExp("^(?:"+e.map(Pt).join("|")+")","i")}function ie(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Qt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Vt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Gt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Rt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function jt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Oe(e,t,r){var n=x.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ie(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Zt(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Bt(e,t,r){var n=x.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Jt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pe(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Xt(e,t,r){var n=x.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Qe(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Kt(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function er(e,t,r){var n=x.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function tr(e,t,r){var n=x.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function rr(e,t,r){var n=x.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nr(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ar(e,t,r){var n=x.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function or(e,t,r){var n=x.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ve(e,t){return M(e.getDate(),t,2)}function sr(e,t){return M(e.getHours(),t,2)}function ir(e,t){return M(e.getHours()%12||12,t,2)}function lr(e,t){return M(1+pe.count(G(e),e),t,3)}function st(e,t){return M(e.getMilliseconds(),t,3)}function mr(e,t){return st(e,t)+"000"}function ur(e,t){return M(e.getMonth()+1,t,2)}function hr(e,t){return M(e.getMinutes(),t,2)}function dr(e,t){return M(e.getSeconds(),t,2)}function cr(e){var t=e.getDay();return t===0?7:t}function fr(e,t){return M(Ue.count(G(e)-1,e),t,2)}function it(e){var t=e.getDay();return t>=4||t===0?ne(e):ne.ceil(e)}function yr(e,t){return e=it(e),M(ne.count(G(e),e)+(G(e).getDay()===4),t,2)}function gr(e){return e.getDay()}function pr(e,t){return M(ye.count(G(e)-1,e),t,2)}function _r(e,t){return M(e.getFullYear()%100,t,2)}function vr(e,t){return e=it(e),M(e.getFullYear()%100,t,2)}function Mr(e,t){return M(e.getFullYear()%1e4,t,4)}function Sr(e,t){var r=e.getDay();return e=r>=4||r===0?ne(e):ne.ceil(e),M(e.getFullYear()%1e4,t,4)}function kr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+M(t/60|0,"0",2)+M(t%60,"0",2)}function Ge(e,t){return M(e.getUTCDate(),t,2)}function br(e,t){return M(e.getUTCHours(),t,2)}function Tr(e,t){return M(e.getUTCHours()%12||12,t,2)}function wr(e,t){return M(1+Ce.count(Z(e),e),t,3)}function lt(e,t){return M(e.getUTCMilliseconds(),t,3)}function Fr(e,t){return lt(e,t)+"000"}function zr(e,t){return M(e.getUTCMonth()+1,t,2)}function Dr(e,t){return M(e.getUTCMinutes(),t,2)}function Yr(e,t){return M(e.getUTCSeconds(),t,2)}function xr(e){var t=e.getUTCDay();return t===0?7:t}function Cr(e,t){return M(at.count(Z(e)-1,e),t,2)}function mt(e){var t=e.getUTCDay();return t>=4||t===0?ae(e):ae.ceil(e)}function Ur(e,t){return e=mt(e),M(ae.count(Z(e),e)+(Z(e).getUTCDay()===4),t,2)}function Ar(e){return e.getUTCDay()}function Lr(e,t){return M(ge.count(Z(e)-1,e),t,2)}function $r(e,t){return M(e.getUTCFullYear()%100,t,2)}function Nr(e,t){return e=mt(e),M(e.getUTCFullYear()%100,t,2)}function Wr(e,t){return M(e.getUTCFullYear()%1e4,t,4)}function qr(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ae(e):ae.ceil(e),M(e.getUTCFullYear()%1e4,t,4)}function Er(){return"+0000"}function Re(){return"%"}function je(e){return+e}function Ze(e){return Math.floor(+e/1e3)}var re,P;Hr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Hr(e){return re=ze(e),P=re.format,re.parse,re.utcFormat,re.utcParse,re}const De=[[1,4,12,52,365,365*24,365*24*60,365*24*60*60,365*24*60*60*1e3],[1/4,1,3,13,91,91*24,91*24*60,91*24*60*60,91*24*60*60*1e3],[1/12,1/3,1,4,30,30*24,30*24*60,30*24*60*60,30*24*60*60*1e3],[1/52,1/13,1/4,1,7,7*24,7*24*60,7*24*60*60,7*24*60*60*1e3],[1/365,1/91,1/30,1/7,1,24,24*60,24*60*60,24*60*60*1e3],[1/(365*24),1/(91*24),1/(30*24),1/(7*24),1/24,1,60,60*60,60*60*1e3],[1/(365*24*60),1/(91*24*60),1/(30*24*60),1/(7*24*60),1/(24*60),1/60,1,60,60*1e3],[1/(365*24*60*60),1/(91*24*60*60),1/(30*24*60*60),1/(7*24*60*60),1/(24*60*60),1/(60*60),1/60,1,1e3],[1/(365*24*60*60*1e3),1/(91*24*60*60*1e3),1/(30*24*60*60*1e3),1/(7*24*60*60*1e3),1/(24*60*60*1e3),1/(60*60*1e3),1/(60*1e3),1/1e3,1]];function Or(e,t,r){if(q.isEmpty(e))return;if(!t||!r||t===r)return e;const n=De[t-1][r-1];if(n)return e*n}function Ir(e,t,r,n){if(q.isEmpty(e)||!t.lowestLevel||r.length===0)return"";const s=[];let a=0,l=Math.round(e*De[t.lowestLevel-1][8]);const _=9;for(const[,u]of r.entries())if(e){l=l-a;const T=De[u-1][_-1],y=Math.floor(l/T);a=y*T,s.push({level:u,value:y})}else s.push({level:u,value:0});let b="";for(const[u,T]of s.entries())if(t.duration.format==="time"){let y=T.value;[6,7,8].includes(T.level)&&T.value<10?y="0"+T.value.toString():T.level===9&&T.value<10?y="00"+T.value.toString():T.level===9&&T.value<100&&(y="0"+T.value.toString()),b+=(u===0?"":T.level===9?".":":")+y}else if(t.duration.format==="long"){const y=n.durationLongSuffix;b+=T.value+" "+y[T.level]+(u===s.length-1?"":" ")}else{const y=n.durationShortSuffix;b+=T.value+""+y[T.level]+(u===s.length-1?"":" ")}return b}const _e={decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",dateSeparator:"/",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],levels:["All","Year","Quarter","Month","Week","Date","Hour","Minute","Second","Millisecond"],shortLevels:["All","Yr","Qtr","Mth","Wk","Date","Hr","Min","Sec","Msec"],durationLongSuffix:["","years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],durationShortSuffix:["","y","q","mo","w","d","h","m","s","ms"],multi:[".%L",":%S","%I:%M","%I %p","%a %d","W%G","%b %d","%B","%Y"]},Pr="%d-%m-%Y",Ye=[{key:"%a %e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%a %e %b %Y",monthType:"name",longText:!1,weekday:!0},{key:"%e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%e %b %Y",monthType:"name",longText:!1,weekday:!1},{key:"%a %e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%a %e %B %Y",monthType:"name",longText:!0,weekday:!0},{key:"%e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%e %B %Y",monthType:"name",longText:!0,weekday:!1},{key:"%d/%m/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"W%V/%G",lev5:"%d/%m/%Y",monthType:"number",mmdd:!1,separator:"/"},{key:"%d-%m-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"W%V-%G",lev5:"%d-%m-%Y",monthType:"number",mmdd:!1,separator:"-"},{key:"%d.%m.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"W%V.%G",lev5:"%d.%m.%Y",monthType:"number",mmdd:!1,separator:"."},{key:"%d~%m~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"W%V~%G",lev5:"%d~%m~%Y",monthType:"number",mmdd:!1,separator:"~"},{key:"%m/%d/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%m/%d/%Y",monthType:"number",mmdd:!0,separator:"/"},{key:"%m-%d-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%m-%d-%Y",monthType:"number",mmdd:!0,separator:"-"},{key:"%m.%d.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%m.%d.%Y",monthType:"number",mmdd:!0,separator:"."},{key:"%m~%d~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%m~%d~%Y",monthType:"number",mmdd:!0,separator:"~"},{key:"%amd/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%amd/%Y",monthType:"number",mmdd:null,separator:"/"},{key:"%amd-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%amd-%Y",monthType:"number",mmdd:null,separator:"-"},{key:"%amd.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%amd.%Y",monthType:"number",mmdd:null,separator:"."},{key:"%amd~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%amd~%Y",monthType:"number",mmdd:null,separator:"~"}],Qr=[{key:"%H:%M:%S.%L",lev6:"%H:00",lev7:"%H:%M",lev8:"%H:%M:%S",lev9:"%H:%M:%S.%L",ampm:!1},{key:"%I:%M:%S.%L %p",lev6:"%I:00 %p",lev7:"%I:%M %p",lev8:"%I:%M:%S %p",lev9:"%I:%M:%S.%L %p",ampm:!0}];function Te(e,t){var y,H;t=t||{};const r=t.localFormats||_e;let n,s,a,l=[],_=[],b="datetime",u;t&&t.multi&&(b="datetime"),(!e||!e.format)&&(b="hierarchy"),e&&e.type&&(b=e.type),e&&e.format?u=e.format:b==="numeric"?u=",.0f":b==="datetime"?u=Pr:u="";const T=Mt.decomposeNumericFormat(u);switch(T.precision&&T.typeFormat&&(b="numeric"),b){case"numeric":{if(e.subtype==="duration"&&e.duration&&e.duration.levels&&e.duration.levels.length>1&&!t.hideDuration)n=m=>q.isEmpty(m)?"":Ir(m,e,e.duration.levels,r);else{const m={...r};let c=T.typeFormat,d=!1;switch(c.length===2&&c.startsWith("a")&&(d=!0,c=c.slice(1,2),u=u.replace(/a/,"")),d?(m.decimal=r.decimal,m.thousands=r.thousands):["z","y","w"].includes(c)?(m.decimal=",",m.thousands="."):(m.decimal=".",m.thousands=","),c){case"z":{u=u.replace("z","f");break}case"y":{u=u.replace("y","%");break}case"w":{u=u.replace("w","s");break}}if((e==null?void 0:e.subtype)==="currency"&&e.currency){const h=" ",Y=m.currency.findIndex(z=>z.length>0),k=m.currency[Y].startsWith(h),D=m.currency[Y].endsWith(h),g=`${k?h:""}${e.currency}${D?h:""}`;m.currency[Y]=g}const S=Dt(m);c!=="%"&&(e==null?void 0:e.subtype)==="currency"&&e.currency&&m.currency&&!(t!=null&&t.hideCurrency)&&!["count","distinctcount"].includes(e.aggregationFunc)&&!(e.aggregationFunc==="rate"&&((y=e.aggregationWeight)==null?void 0:y.columnSubType)==="currency")&&((H=e.periodOverPeriod)==null?void 0:H.type)!=="percentageChange"&&(u="$"+u),t!=null&&t.trimZero&&["y","%"].includes(c)&&m.decimal===","?s=h=>S.format(u)(h).replace(/(,\d*?)0+%$/,"$1%").replace(/,%$/,"%"):t!=null&&t.trimZero&&["y","%"].includes(c)&&m.decimal==="."?s=h=>S.format(u)(h).replace(/(\.\d*?)0+%$/,"$1%").replace(/\.%$/,"%"):t!=null&&t.trimZero&&["z","f"].includes(c)&&m.decimal===","?s=h=>S.format(u)(h).replace(/(,\d*?)0+$/,"$1").replace(/,$/,""):t!=null&&t.trimZero&&["z","f"].includes(c)&&m.decimal==="."?s=h=>S.format(u)(h).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""):(e==null?void 0:e.subtype)==="currency"&&e.currency&&m.currency&&c==="s"?s=h=>S.format(u)(h).replace(/G/,"B"):s=q.isEmpty(T.precision)?S.format(",.0f"):S.format(u),n=h=>{var Y;if(q.isEmpty(h))return"";if(e.subtype==="duration"&&e.duration&&!t.hideDuration){const k=e.duration.levels?e.duration.levels[0]:e.lowestLevel;return k!==e.lowestLevel&&(h=Or(h,e.lowestLevel,k)),s(h)+((Y=r==null?void 0:r.durationShortSuffix)==null?void 0:Y[k])}return s(h)}}break}case"datetime":{if(l=(r==null?void 0:r.smartDateFormats)??Ye,_=(r==null?void 0:r.smartTimeFormats)??Qr,q.isEmpty(e.datetimeDisplayMode)){if(t!=null&&t.level){const m=t.level,c=l.find(D=>u.includes(D.key)),d=_.find(D=>u.includes(D.key)),S=c?c["lev"+Math.min(m,5)]:l[0]["lev"+Math.min(m,5)],h=m>5?d?d["lev"+m]:_[0]["lev"+m]:"";u=m>5?S+", "+h:S;const Y=u.includes("%amd")&&t.level>=5,k=c?t.level>=2&&c.separator==="~":!1;Y?u=k?u.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8)):u.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),r.date.slice(0,8).replaceAll(new RegExp(/[.~\/-]/g),c.separator)):u=k?u.replaceAll(new RegExp(/[~]/g),r.dateSeparator):u}if(t!=null&&t.multi){const m=P(r.multi[0]),c=P(r.multi[1]),d=P(r.multi[2]),S=P(r.multi[3]),h=P(r.multi[4]),Y=P(r.multi[6]),k=P(r.multi[7]),D=P(r.multi[8]);a=g=>{let z;return tt(g)<g?z=m:rt(g)<g?z=c:nt(g)<g?z=d:pe(g)<g?z=S:ot(g)<g?z=Ue(g)<g?h:Y:G(g)<g?z=k:z=D,z(g)}}else a=ze(r).format(u)}else{const m={quarter_number:{min:1,max:4},month_name:{min:1,max:12},month_number:{min:1,max:12},week_number:{min:1,max:53},day_in_month:{min:1,max:31},day_in_year:{min:1,max:366},weekday_name:{min:0,max:7},weekday_number:{min:0,max:7},hour_in_day:{min:0,max:23},minute_in_hour:{min:0,max:59},second_in_minute:{min:0,max:59}},c=(d,S,h)=>{var Y,k,D,g,z;return S==="letter"?((Y=d.shortNames)==null?void 0:Y.length)>0&&((k=d.shortNames[h])==null?void 0:k.length)>0?(D=d.shortNames[h])==null?void 0:D.charAt(0):"N/A":S==="short"?((g=d.shortNames)==null?void 0:g.length)>0&&d.shortNames[h]?d.shortNames[h]:"N/A":((z=d.longNames)==null?void 0:z.length)>0&&d.longNames[h]?d.longNames[h]:"N/A"};["quarter_number","month_number","week_number","day_in_month","day_in_year","weekday_number","hour_in_day","minute_in_hour","second_in_minute"].includes(e.datetimeDisplayMode)?a=d=>q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?d:"N/A":e.datetimeDisplayMode==="month_name"?a=d=>{const S=[...r.shortMonths],h=[...r.months];return q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?c({shortNames:S,longNames:h},e.monthNameFormat,d-1):"N/A"}:e.datetimeDisplayMode==="weekday_name"?a=d=>{const S=[...r.shortDays],h=[...r.days];return e.weekStart==="monday"&&(S.push(S.shift()??""),h.push(h.shift()??"")),q.isNumeric(d)&&d>=m[e.datetimeDisplayMode].min&&d<=m[e.datetimeDisplayMode].max?c({shortNames:S,longNames:h},e.weekDayNameFormat,d-1):"N/A"}:a=ze(r).format(u)}n=m=>{if(q.isEmpty(m))return"";const c=a(m);return q.isString(c)?c.trim():c};break}case"hierarchy":{n=m=>q.localize(m,t?t.locale:void 0);break}default:{n=m=>m;break}}return n}const Be={"~":"Auto","/":"/","-":"-",".":"."},we={level2:[{key:"default",label:"Default"},{key:"quarter_number",label:"Quarter numbers"}],level3:[{key:"default",label:"Default"},{key:"month_in_year",label:"Month number"}],level4:[{key:"default",label:"Default"},{key:"week_number",label:"Week number"}],level5:[{key:"default",label:"Default"},{key:"day_in_week",label:"Day in week"},{key:"day_in_month",label:"Day in month"},{key:"day_in_year",label:"Day in year"}],level6:[{key:"default",label:"Default"},{key:"hour_in_day",label:"Hour in day"}],level7:[{key:"default",label:"Default"},{key:"minute_in_hour",label:"Minute in hour"}],level8:[{key:"default",label:"Default"},{key:"second_in_minute",label:"Second in minute"}]},Je={number:"Number",letter:"Letter",short:"Short",long:"Long"},Xe={sunday:"Sunday",monday:"Monday"},Vr=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var Gr=Object.defineProperty,$=(e,t,r,n)=>{for(var s=void 0,a=e.length-1,l;a>=0;a--)(l=e[a])&&(s=l(t,r,s)||s);return s&&Gr(t,r,s),s};class U extends Le.m(w.kt,{validSizes:Object.values(Le.d)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new vt.h(this,{task:async([t])=>{if(t&&t!==this._contentLanguageLoaded){const r=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("./cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("./da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("./de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("./en-GB-Cp6Zq89F.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>Rr),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>jr),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("./es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("./fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("./fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("./he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("./hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("./it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("./ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("./ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("./mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("./nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("./no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("./pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("./pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("./ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("./sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("./tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("./zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("./zh-TW-DTZ4OmdP.cjs"))});if(r[`../../utils/formatter/formats/${t}.ts`]){const n=await r[`../../utils/formatter/formats/${t}.ts`]();this._localeFormats=(n==null?void 0:n.default)??{}}return this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[w.r$1(Vr)]}_parseSlotContent(){var t,r;this._dateLevel=this.slotContent.level??((t=this.slotContent)==null?void 0:t.lowestLevel)??5,this._displayAs=((r=this.slotContent)==null?void 0:r.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var n;let t;const r=((n=this._localeFormats)==null?void 0:n.smartDateFormats)??Ye;this._monthName?(t=r.filter(s=>s.monthType==="name"&&s.longText===(this._monthNameFormat==="long")&&s.weekday===this._weekDay),t.length>0?this._format=t[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(t=this._dateLevel&&this._dateLevel===4?r.filter(s=>s.monthType==="number"&&s.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator):r.filter(s=>s.monthType==="number"&&s.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":t.length>0?this._format=t[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var t;this._weekDayAndMonthInYearFormat=((t=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:t[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var t;this._monthNameFormat=(t=this._monthNameFormatElement.selected)==null?void 0:t[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var t;this._weekFormat=(t=this._weekFormatElement.selected)==null?void 0:t[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(t){t.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){var r;const t=(r=we==null?void 0:we[`level${this._dateLevel??0}`])==null?void 0:r.map(n=>w.x`<luzmo-menu-item value=${n.key}>
|
21
21
|
${n.label}
|
22
22
|
</luzmo-menu-item>`);return w.x`<div class="setting">
|
23
23
|
<luzmo-field-label for="display-as">Display</luzmo-field-label>
|
@@ -199,4 +199,4 @@
|
|
199
199
|
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>w.x`<luzmo-progress-circle
|
200
200
|
indeterminate
|
201
201
|
.size=${this.size}
|
202
|
-
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}}$([w.n({type:String})],U.prototype,"language");$([w.n({type:String})],U.prototype,"contentLanguage");$([w.n({type:String})],U.prototype,"size");$([w.n({type:Object,reflect:!1})],U.prototype,"slotContent");$([
|
202
|
+
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}}$([w.n({type:String})],U.prototype,"language");$([w.n({type:String})],U.prototype,"contentLanguage");$([w.n({type:String})],U.prototype,"size");$([w.n({type:Object,reflect:!1})],U.prototype,"slotContent");$([O.e("#display-as")],U.prototype,"_displayAsElement");$([O.e("#week-start")],U.prototype,"_weekStartElement");$([O.e("#weekday-and-month-in-year-format")],U.prototype,"_weekDayAndMonthInYearFormatElement");$([O.e("#month-name-format")],U.prototype,"_monthNameFormatElement");$([O.e("#month-name")],U.prototype,"_monthNameElement");$([O.e("#week-format")],U.prototype,"_weekFormatElement");$([O.e("#date-format")],U.prototype,"_dateFormatElement");$([O.e("#date-separator")],U.prototype,"_dateSeparatorElement");$([O.e("#weekday")],U.prototype,"_weekDayElement");$([O.e("#format-24h")],U.prototype,"_format24hElement");customElements.get("luzmo-display-settings-datetime")||customElements.define("luzmo-display-settings-datetime",U);const Rr=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"})),jr=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_LOCAL_FORMATS=_e;exports.LuzmoDisplaySettingsDatetime=U;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const r=require("./property-
|
20
|
+
"use strict";const r=require("./property-0L4eB11h.cjs");/**
|
21
21
|
* @license
|
22
22
|
* Copyright 2018 Google LLC
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -18,7 +18,7 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { o as l } from "./base-D76d76ww-gf0ESLsU.js";
|
21
|
-
import {
|
21
|
+
import { d as h } from "./property-B2F7x7Cz.js";
|
22
22
|
/*! * Lucero - The design system for Luzmo.
|
23
23
|
*
|
24
24
|
* Copyright © 2025 Luzmo
|
@@ -52,8 +52,8 @@ function f(r, u) {
|
|
52
52
|
const t = Symbol();
|
53
53
|
return { get() {
|
54
54
|
return this[t];
|
55
|
-
}, set(
|
56
|
-
this[t] =
|
55
|
+
}, set(d) {
|
56
|
+
this[t] = d;
|
57
57
|
} };
|
58
58
|
})();
|
59
59
|
return l(n, o, { get() {
|
@@ -88,7 +88,7 @@ function f(r, u) {
|
|
88
88
|
* Copyright 2018 Google LLC
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
90
90
|
*/
|
91
|
-
const p = (r) => r ??
|
91
|
+
const p = (r) => r ?? h;
|
92
92
|
export {
|
93
93
|
f as d,
|
94
94
|
p as m
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const i=require("./base-D76d76ww-BiajPmzU.cjs"),h=require("./property-
|
20
|
+
"use strict";const i=require("./base-D76d76ww-BiajPmzU.cjs"),h=require("./property-0L4eB11h.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -57,4 +57,4 @@
|
|
57
57
|
* @license
|
58
58
|
* Copyright 2018 Google LLC
|
59
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
60
|
-
*/const g=r=>r??h.
|
60
|
+
*/const g=r=>r??h.d;exports.d=a;exports.m=g;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { E as r } from "./property-
|
20
|
+
import { E as r } from "./property-B2F7x7Cz.js";
|
21
21
|
/**
|
22
22
|
* @license
|
23
23
|
* Copyright 2018 Google LLC
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const o=require("./property-
|
20
|
+
"use strict";const o=require("./property-0L4eB11h.cjs"),s=require("./sized-mixin-BxMraZLS-DEFWqo8f.cjs");require("./index-CdUTqQ3L.cjs");const c=require("./text-field-CvKSS59x-E9LQElL4.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -33,7 +33,7 @@
|
|
33
33
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
35
|
* SOFTWARE.
|
36
|
-
* */const m=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const r=document.createElement("style");r.setAttribute("data-luzmo-vars",""),r.textContent='html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}',document.head.appendChild(r)}};m();const d=":host{display:inline-block}:host luzmo-text-field{width:100%}";var z=Object.defineProperty,l=(r,t,i,p)=>{for(var u=void 0,a=r.length-1,n;a>=0;a--)(n=r[a])&&(u=n(t,i,u)||u);return u&&z(t,i,u),u};class e extends c.u(s.m(o.
|
36
|
+
* */const m=()=>{if(typeof document<"u"&&!document.querySelector("style[data-luzmo-vars]")){const r=document.createElement("style");r.setAttribute("data-luzmo-vars",""),r.textContent='html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}',document.head.appendChild(r)}};m();const d=":host{display:inline-block}:host luzmo-text-field{width:100%}";var z=Object.defineProperty,l=(r,t,i,p)=>{for(var u=void 0,a=r.length-1,n;a>=0;a--)(n=r[a])&&(u=n(t,i,u)||u);return u&&z(t,i,u),u};class e extends c.u(s.m(o.kt,{noDefaultSize:!0})){constructor(){super(...arguments),this.allowedKeys="",this.i18nPlaceholder={},this.type="text",this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.rows=-1,this.quiet=!1,this.disabled=!1,this.required=!1,this.readonly=!1,this.language="en",this.defaultLanguage="en",this.value={}}static get styles(){return[o.ht(d)]}get _localizedValue(){const t={...this.value};return t[this.language]??t[this.defaultLanguage]??Object.values(t)[0]??""}get _localizedPlaceholder(){const t={...this.i18nPlaceholder};return t[this.language]??t[this.defaultLanguage]??Object.values(t)[0]??""}handleChange(t){t.stopPropagation(),t.preventDefault();const i=t.target;this.value[this.language]!==i.value&&(this.value={...this.value,[this.language]:i.value},this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}})))}render(){return o.Ht`
|
37
37
|
<luzmo-text-field
|
38
38
|
.value=${this._localizedValue}
|
39
39
|
.size=${this.size}
|
@@ -54,4 +54,4 @@
|
|
54
54
|
@input=${this.handleChange}
|
55
55
|
@change=${this.handleChange}
|
56
56
|
></luzmo-text-field>
|
57
|
-
`}}l([o.
|
57
|
+
`}}l([o.Rt({attribute:"allowed-keys"})],e.prototype,"allowedKeys");l([o.Rt({type:String,reflect:!0})],e.prototype,"name");l([o.Rt({type:Object,attribute:"i18n-placeholder"})],e.prototype,"i18nPlaceholder");l([o.Rt({attribute:"type",reflect:!0})],e.prototype,"type");l([o.Rt()],e.prototype,"pattern");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"grows");l([o.Rt({type:Number})],e.prototype,"maxlength");l([o.Rt({type:Number})],e.prototype,"minlength");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"multiline");l([o.Rt({type:Number})],e.prototype,"rows");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"quiet");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"disabled");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"required");l([o.Rt({type:Boolean,reflect:!0})],e.prototype,"readonly");l([o.Rt({type:String,reflect:!0})],e.prototype,"autocomplete");l([o.Rt({type:String,reflect:!0})],e.prototype,"language");l([o.Rt({type:String,reflect:!0})],e.prototype,"defaultLanguage");l([o.Rt({type:Object,reflect:!0})],e.prototype,"value");customElements.get("luzmo-multi-language-field")||customElements.define("luzmo-multi-language-field",e);
|
@@ -17,14 +17,14 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { O as q, b as Y, T as G } from "./luzmo-icons-
|
21
|
-
import {
|
22
|
-
import { d as J } from "./if-defined-
|
23
|
-
import { a as
|
24
|
-
import { l as eo, u as to, o as ro } from "./language-resolution-8yZa5r_P-
|
25
|
-
import { m as io } from "./sized-mixin-
|
26
|
-
import { a as lo } from "./button-base-
|
27
|
-
import { i as no } from "./text-field-
|
20
|
+
import { O as q, b as Y, T as G } from "./luzmo-icons-BE2T8vWu.js";
|
21
|
+
import { h as O, H as F, R as u, d as Z } from "./property-B2F7x7Cz.js";
|
22
|
+
import { d as J } from "./if-defined-BSAr_4u4-4Ys8VE7T.js";
|
23
|
+
import { a as _, o as Q, w as oo } from "./async-directive-DWRUSKKF-CmOVMf6V.js";
|
24
|
+
import { l as eo, u as to, o as ro } from "./language-resolution-8yZa5r_P-Bn0bYosv.js";
|
25
|
+
import { m as io } from "./sized-mixin-BxMraZLS-B_y0PzR3.js";
|
26
|
+
import { a as lo } from "./button-base-B7v4eeRh-D3-GH03o.js";
|
27
|
+
import { i as no } from "./text-field-CvKSS59x-Dn0_1HO7.js";
|
28
28
|
/*! * Lucero - The design system for Luzmo.
|
29
29
|
*
|
30
30
|
* Copyright © 2025 Luzmo
|
@@ -257,7 +257,7 @@ class N {
|
|
257
257
|
this.locale = o, this.options = e;
|
258
258
|
}
|
259
259
|
}
|
260
|
-
const
|
260
|
+
const D = /* @__PURE__ */ new Map();
|
261
261
|
function k(l, o, e) {
|
262
262
|
let t = V(l, o);
|
263
263
|
if (!l.includes("-nu-") && !t.isValidPartialNumber(e)) {
|
@@ -269,8 +269,8 @@ function k(l, o, e) {
|
|
269
269
|
return t;
|
270
270
|
}
|
271
271
|
function V(l, o) {
|
272
|
-
let e = l + (o ? Object.entries(o).sort((r, i) => r[0] < i[0] ? -1 : 1).join() : ""), t =
|
273
|
-
return t || (t = new fo(l, o),
|
272
|
+
let e = l + (o ? Object.entries(o).sort((r, i) => r[0] < i[0] ? -1 : 1).join() : ""), t = D.get(e);
|
273
|
+
return t || (t = new fo(l, o), D.set(e, t)), t;
|
274
274
|
}
|
275
275
|
class fo {
|
276
276
|
parse(o) {
|
@@ -346,19 +346,19 @@ function go(l, o, e, t) {
|
|
346
346
|
...e,
|
347
347
|
minimumFractionDigits: 2,
|
348
348
|
maximumFractionDigits: 2
|
349
|
-
}).formatToParts(1e-3).find((a) => a.type === "decimal")) === null || n === void 0 ? void 0 : n.value, H = (s = p.find((a) => a.type === "group")) === null || s === void 0 ? void 0 : s.value, A = p.filter((a) => !$.has(a.type)).map((a) => R(a.value)), L = j.flatMap((a) => a.filter((h) => !$.has(h.type)).map((h) => R(h.value))),
|
349
|
+
}).formatToParts(1e-3).find((a) => a.type === "decimal")) === null || n === void 0 ? void 0 : n.value, H = (s = p.find((a) => a.type === "group")) === null || s === void 0 ? void 0 : s.value, A = p.filter((a) => !$.has(a.type)).map((a) => R(a.value)), L = j.flatMap((a) => a.filter((h) => !$.has(h.type)).map((h) => R(h.value))), P = [
|
350
350
|
.../* @__PURE__ */ new Set([
|
351
351
|
...A,
|
352
352
|
...L
|
353
353
|
])
|
354
|
-
].sort((a, h) => h.length - a.length), W =
|
354
|
+
].sort((a, h) => h.length - a.length), W = P.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${P.join("|")}|[\\p{White_Space}]`, "gu"), E = [
|
355
355
|
...new Intl.NumberFormat(e.locale, {
|
356
356
|
useGrouping: !1
|
357
357
|
}).format(9876543210)
|
358
|
-
].reverse(), K = new Map(
|
358
|
+
].reverse(), K = new Map(E.map((a, h) => [
|
359
359
|
a,
|
360
360
|
h
|
361
|
-
])), X = new RegExp(`[${
|
361
|
+
])), X = new RegExp(`[${E.join("")}]`, "g");
|
362
362
|
return {
|
363
363
|
minusSign: B,
|
364
364
|
plusSign: y,
|
@@ -454,7 +454,7 @@ class c extends no {
|
|
454
454
|
const t = [...this.valueBeforeFocus].filter(
|
455
455
|
(i) => this.decimalsChars.has(i)
|
456
456
|
), r = new Set(t);
|
457
|
-
if (
|
457
|
+
if (_() && this.inputElement.inputMode === "decimal" && e !== this.valueBeforeFocus) {
|
458
458
|
const i = this.numberFormatter.formatToParts(1000.1).find(
|
459
459
|
(d) => d.type === "decimal"
|
460
460
|
).value;
|
@@ -768,7 +768,7 @@ class c extends no {
|
|
768
768
|
if (o.has("min") || o.has("formatOptions")) {
|
769
769
|
const e = this.min !== void 0 && this.min >= 0, { maximumFractionDigits: t } = this.numberFormatter.resolvedOptions(), r = t && t > 0;
|
770
770
|
let i = "numeric";
|
771
|
-
Q() && !e ? i = "text" : (
|
771
|
+
Q() && !e ? i = "text" : (_() && r || oo() && r && e) && (i = "decimal"), this.inputElement.inputMode = i;
|
772
772
|
}
|
773
773
|
o.has("focused") && this.focused && !this.hasRecentlyReceivedPointerDown && this.formatOptions.unit && this.setSelectionRange(0, this.displayValue.length);
|
774
774
|
}
|
@@ -17,16 +17,16 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import {
|
21
|
-
import { _ as $, n as p, $ as S, s as E } from "./directive-helpers-
|
22
|
-
import { m as u, d as v } from "./if-defined-
|
23
|
-
import { p as M } from "./index-
|
24
|
-
import { a as q } from "./index-
|
25
|
-
import "./index-
|
26
|
-
import { m as A } from "./sized-mixin-
|
27
|
-
import { O as f, T as L, I as F } from "./luzmo-icons-
|
28
|
-
import "./index-
|
29
|
-
import { c as b } from "./async-directive-
|
20
|
+
import { H as c, r as y, d as w, w as x, v as C, h as I, R as s } from "./property-B2F7x7Cz.js";
|
21
|
+
import { _ as $, n as p, $ as S, s as E } from "./directive-helpers-nlQRAaQt-I6T4KZKW.js";
|
22
|
+
import { m as u, d as v } from "./if-defined-BSAr_4u4-4Ys8VE7T.js";
|
23
|
+
import { p as M } from "./index-CXIT0cYY.js";
|
24
|
+
import { a as q } from "./index-C8IL2IZ6.js";
|
25
|
+
import "./index-CfEn3fIT.js";
|
26
|
+
import { m as A } from "./sized-mixin-BxMraZLS-B_y0PzR3.js";
|
27
|
+
import { O as f, T as L, I as F } from "./luzmo-icons-BE2T8vWu.js";
|
28
|
+
import "./index-CMvLpPKD-D5MpMVYZ.js";
|
29
|
+
import { c as b } from "./async-directive-DWRUSKKF-CmOVMf6V.js";
|
30
30
|
/*! * Lucero - The design system for Luzmo.
|
31
31
|
*
|
32
32
|
* Copyright © 2025 Luzmo
|
@@ -44,7 +44,7 @@ import { c as b } from "./async-directive-FGzMycjH-Bgeca09f.js";
|
|
44
44
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
45
45
|
* SOFTWARE.
|
46
46
|
* */
|
47
|
-
class
|
47
|
+
class O {
|
48
48
|
/**
|
49
49
|
* Creates an instance of PendingStateController.
|
50
50
|
* @param host - The host element that this controller is attached to.
|
@@ -105,7 +105,7 @@ class B {
|
|
105
105
|
* Copyright 2018 Google LLC
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
107
107
|
*/
|
108
|
-
const
|
108
|
+
const T = $(class extends S {
|
109
109
|
constructor(t) {
|
110
110
|
var e;
|
111
111
|
if (super(t), t.type !== E.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
@@ -128,7 +128,7 @@ const O = $(class extends S {
|
|
128
128
|
}
|
129
129
|
return C;
|
130
130
|
}
|
131
|
-
}),
|
131
|
+
}), B = "(max-width: 743px) and (hover: none) and (pointer: coarse)";
|
132
132
|
class P {
|
133
133
|
constructor(e, o) {
|
134
134
|
this.key = Symbol("match-media-key"), this.matches = !1, this.host = e, this.host.addController(this), this.media = window.matchMedia(o), this.matches = this.media.matches, this.onChange = this.onChange.bind(this), e.addController(this);
|
@@ -167,9 +167,9 @@ class z {
|
|
167
167
|
return;
|
168
168
|
}
|
169
169
|
customElements.whenDefined("luzmo-overlay").then(async () => {
|
170
|
-
const { LuzmoOverlay: o } = await import("./index-
|
170
|
+
const { LuzmoOverlay: o } = await import("./index-CXIT0cYY.js").then((r) => r.i);
|
171
171
|
this.overlay = new o(), this.host.open = !0, this.host.requestUpdate();
|
172
|
-
}), import("./index-
|
172
|
+
}), import("./index-CXIT0cYY.js").then((o) => o.i);
|
173
173
|
}
|
174
174
|
}
|
175
175
|
get overlay() {
|
@@ -219,7 +219,7 @@ class z {
|
|
219
219
|
this.overlay && this.host.dependencyManager.loaded && this.host.open !== this.overlay.open && (this.overlay.willPreventClose = this.preventNextToggle !== "no", this.overlay.open = this.host.open);
|
220
220
|
}
|
221
221
|
}
|
222
|
-
class
|
222
|
+
class R extends z {
|
223
223
|
constructor() {
|
224
224
|
super(...arguments), this.type = m.desktop;
|
225
225
|
}
|
@@ -264,7 +264,7 @@ class U extends z {
|
|
264
264
|
}
|
265
265
|
}
|
266
266
|
const h = "remove-focus-ring-safari-hack";
|
267
|
-
class
|
267
|
+
class U extends z {
|
268
268
|
constructor() {
|
269
269
|
super(...arguments), this.type = m.mobile;
|
270
270
|
}
|
@@ -293,13 +293,13 @@ class K extends z {
|
|
293
293
|
}
|
294
294
|
}
|
295
295
|
const g = {
|
296
|
-
desktop:
|
297
|
-
mobile:
|
296
|
+
desktop: R,
|
297
|
+
mobile: U
|
298
298
|
};
|
299
|
-
var
|
300
|
-
for (var n = r > 1 ? void 0 : r ?
|
299
|
+
var K = Object.defineProperty, N = Object.getOwnPropertyDescriptor, a = (t, e, o, r) => {
|
300
|
+
for (var n = r > 1 ? void 0 : r ? N(e, o) : e, i = t.length - 1, d; i >= 0; i--)
|
301
301
|
(d = t[i]) && (n = (r ? d(e, o, n) : d(n)) || n);
|
302
|
-
return r && n &&
|
302
|
+
return r && n && K(e, o, n), n;
|
303
303
|
};
|
304
304
|
const _ = () => c`
|
305
305
|
<div class="disclosure-icon icon">
|
@@ -318,7 +318,7 @@ class l extends A(y, {
|
|
318
318
|
* The `PendingStateController` manages the pending state of the Picker.
|
319
319
|
*/
|
320
320
|
constructor() {
|
321
|
-
super(), this.disabled = !1, this.focused = !1, this.invalid = !1, this.pending = !1, this.pendingLabel = "Pending", this.open = !1, this.readonly = !1, this.placement = "bottom-start", this.quiet = !1, this.value = "", this.selects = "single", this.dependencyManager = new q(this), this.isMobile = new P(this,
|
321
|
+
super(), this.disabled = !1, this.focused = !1, this.invalid = !1, this.pending = !1, this.pendingLabel = "Pending", this.open = !1, this.readonly = !1, this.placement = "bottom-start", this.quiet = !1, this.value = "", this.selects = "single", this.dependencyManager = new q(this), this.isMobile = new P(this, B), this.listRole = "listbox", this.itemRole = "option", this.hasRenderedOverlay = !1, this._selfManageFocusElement = !1, this.deprecatedMenu = null, this.selectionPromise = Promise.resolve(), this.willManageSelection = !1, this.recentlyConnected = !1, this.enterKeydownOn = null, this.handleSlottableRequest = (e) => {
|
322
322
|
}, this.applyFocusElementLabel = (e, o) => {
|
323
323
|
this.appliedLabel = e, this.labelAlignment = o.sideAligned ? "inline" : void 0;
|
324
324
|
}, this.handleKeydown = (e) => {
|
@@ -337,7 +337,7 @@ class l extends A(y, {
|
|
337
337
|
{ once: !0 }
|
338
338
|
);
|
339
339
|
}
|
340
|
-
}, this.pendingStateController = new
|
340
|
+
}, this.pendingStateController = new O(this);
|
341
341
|
}
|
342
342
|
get selectedItem() {
|
343
343
|
return this._selectedItem;
|
@@ -460,7 +460,7 @@ class l extends A(y, {
|
|
460
460
|
</div>
|
461
461
|
<div
|
462
462
|
id=${u(this.value && this.selectedItem ? "label" : void 0)}
|
463
|
-
class=${
|
463
|
+
class=${T(e)}
|
464
464
|
>
|
465
465
|
${this.renderLabelContent(this.selectedItemContent.content)}
|
466
466
|
</div>
|
@@ -474,7 +474,7 @@ class l extends A(y, {
|
|
474
474
|
<slot name="label"></slot>
|
475
475
|
</div>
|
476
476
|
` : c` <span hidden id="applied-label">${o}</span> `}
|
477
|
-
${this.invalid && !this.pending ? c` ${this.renderAlertIcon()} ` :
|
477
|
+
${this.invalid && !this.pending ? c` ${this.renderAlertIcon()} ` : w}
|
478
478
|
${this.pendingStateController.renderPendingState()}
|
479
479
|
${this.renderAngleIcon()}
|
480
480
|
<slot
|
@@ -491,7 +491,7 @@ class l extends A(y, {
|
|
491
491
|
if (((o = this.strategy) == null ? void 0 : o.overlay) === void 0)
|
492
492
|
return e;
|
493
493
|
const i = this.renderContainer(e);
|
494
|
-
return
|
494
|
+
return x(i, (r = this.strategy) == null ? void 0 : r.overlay, {
|
495
495
|
host: this
|
496
496
|
}), (n = this.strategy) == null ? void 0 : n.overlay;
|
497
497
|
}
|
@@ -563,7 +563,7 @@ class l extends A(y, {
|
|
563
563
|
const o = c`
|
564
564
|
${this.dismissHelper} ${e} ${this.dismissHelper}
|
565
565
|
`;
|
566
|
-
return this.dependencyManager.add("luzmo-popover"), import("./index-
|
566
|
+
return this.dependencyManager.add("luzmo-popover"), import("./index-DnozlYag.js"), c`
|
567
567
|
<luzmo-popover
|
568
568
|
id="popover"
|
569
569
|
size=${this.size}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import "./index-
|
20
|
+
import "./index-CMvLpPKD-D5MpMVYZ.js";
|
21
21
|
/*! * Lucero - The design system for Luzmo.
|
22
22
|
*
|
23
23
|
* Copyright © 2025 Luzmo
|