@feedmepos/ui-library 1.10.2 → 1.10.3

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.
@@ -28,14 +28,14 @@
28
28
  * Released under the MIT License
29
29
  */class MC{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,o,i){const a=n.listeners[i],s=n.duration;a.forEach(l=>l({chart:e,initial:n.initial,numSteps:s,currentStep:Math.min(o-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=og.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((o,i)=>{if(!o.running||!o.items.length)return;const a=o.items;let s=a.length-1,l=!1,c;for(;s>=0;--s)c=a[s],c._active?(c._total>o.duration&&(o.duration=c._total),c.tick(e),l=!0):(a[s]=a[a.length-1],a.pop());l&&(i.draw(),this._notify(i,o,e,"progress")),a.length||(o.running=!1,this._notify(i,o,e,"complete"),o.initial=!1),n+=a.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let o=n.get(e);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,o)),o}listen(e,n,o){this._getAnims(e).listeners[n].push(o)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,i)=>Math.max(o,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const o=n.items;let i=o.length-1;for(;i>=0;--i)o[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Co=new MC;const Rg="transparent",LC={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const o=dg(t||Rg),i=o.valid&&dg(e||Rg);return i&&i.valid?i.mix(o,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class zC{constructor(e,n,o,i){const a=n[o];i=et([e.to,i,a,e.from]);const s=et([e.from,a,i]);this._active=!0,this._fn=e.fn||LC[e.type||typeof s],this._easing=ga[e.easing]||ga.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=o,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,o){if(this._active){this._notify(!1);const i=this._target[this._prop],a=o-this._start,s=this._duration-a;this._start=o,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=et([e.to,n,i,e.from]),this._from=et([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,o=this._duration,i=this._prop,a=this._from,s=this._loop,l=this._to;let c;if(this._active=a!==l&&(s||n<o),!this._active){this._target[i]=l,this._notify(!0);return}if(n<0){this._target[i]=a;return}c=n/o%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(a,l,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,o)=>{e.push({res:n,rej:o})})}_notify(e){const n=e?"res":"rej",o=this._promises||[];for(let i=0;i<o.length;i++)o[i][n]()}}class Vg{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Ve(e))return;const n=Object.keys(dt.animation),o=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const a=e[i];if(!Ve(a))return;const s={};for(const l of n)s[l]=a[l];(Ye(a.properties)&&a.properties||[i]).forEach(l=>{(l===i||!o.has(l))&&o.set(l,s)})})}_animateOptions(e,n){const o=n.options,i=HC(e,o);if(!i)return[];const a=this._createAnimations(i,o);return o.$shared&&_C(e.options.$animations,o).then(()=>{e.options=o},()=>{}),a}_createAnimations(e,n){const o=this._properties,i=[],a=e.$animations||(e.$animations={}),s=Object.keys(n),l=Date.now();let c;for(c=s.length-1;c>=0;--c){const u=s[c];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(e,n));continue}const h=n[u];let p=a[u];const m=o.get(u);if(p)if(m&&p.active()){p.update(m,h,l);continue}else p.cancel();if(!m||!m.duration){e[u]=h;continue}a[u]=p=new zC(m,e,u,h),i.push(p)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const o=this._createAnimations(e,n);if(o.length)return Co.add(this._chart,o),!0}}function _C(t,e){const n=[],o=Object.keys(e);for(let i=0;i<o.length;i++){const a=t[o[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function HC(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Fg(t,e){const n=t&&t.options||{},o=n.reverse,i=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:o?a:i,end:o?i:a}}function UC(t,e,n){if(n===!1)return!1;const o=Fg(t,n),i=Fg(e,n);return{top:i.end,right:o.end,bottom:i.start,left:o.start}}function WC(t){let e,n,o,i;return Ve(t)?(e=t.top,n=t.right,o=t.bottom,i=t.left):e=n=o=i=t,{top:e,right:n,bottom:o,left:i,disabled:t===!1}}function Tg(t,e){const n=[],o=t._getSortedDatasetMetas(e);let i,a;for(i=0,a=o.length;i<a;++i)n.push(o[i].index);return n}function Mg(t,e,n,o={}){const i=t.keys,a=o.mode==="single";let s,l,c,u;if(e!==null){for(s=0,l=i.length;s<l;++s){if(c=+i[s],c===n){if(o.all)continue;break}u=t.values[c],ht(u)&&(a||e===0||so(e)===so(u))&&(e+=u)}return e}}function jC(t,e){const{iScale:n,vScale:o}=e,i=n.axis==="x"?"x":"y",a=o.axis==="x"?"x":"y",s=Object.keys(t),l=new Array(s.length);let c,u,h;for(c=0,u=s.length;c<u;++c)h=s[c],l[c]={[i]:h,[a]:t[h]};return l}function Lg(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function GC(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function QC(t){const{min:e,max:n,minDefined:o,maxDefined:i}=t.getUserBounds();return{min:o?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function XC(t,e,n){const o=t[e]||(t[e]={});return o[n]||(o[n]={})}function zg(t,e,n,o){for(const i of e.getMatchingVisibleMetas(o).reverse()){const a=t[i.index];if(n&&a>0||!n&&a<0)return i.index}return null}function _g(t,e){const{chart:n,_cachedMeta:o}=t,i=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:l}=o,c=a.axis,u=s.axis,h=GC(a,s,o),p=e.length;let m;for(let b=0;b<p;++b){const y=e[b],{[c]:v,[u]:w}=y,x=y._stacks||(y._stacks={});m=x[u]=XC(i,h,v),m[l]=w,m._top=zg(m,s,!0,o.type),m._bottom=zg(m,s,!1,o.type);const I=m._visualValues||(m._visualValues={});I[l]=w}}function fu(t,e){const n=t.scales;return Object.keys(n).filter(o=>n[o].axis===e).shift()}function qC(t,e){return rr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function KC(t,e,n){return rr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ka(t,e){const n=t.controller.index,o=t.vScale&&t.vScale.axis;if(o){e=e||t._parsed;for(const i of e){const a=i._stacks;if(!a||a[o]===void 0||a[o][n]===void 0)return;delete a[o][n],a[o]._visualValues!==void 0&&a[o]._visualValues[n]!==void 0&&delete a[o]._visualValues[n]}}}const pu=t=>t==="reset"||t==="none",Hg=(t,e)=>e?t:Object.assign({},t),JC=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Tg(n,!0),values:null};class jn{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Lg(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ka(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),i=(p,m,b,y)=>p==="x"?m:p==="r"?y:b,a=n.xAxisID=Ce(o.xAxisID,fu(e,"x")),s=n.yAxisID=Ce(o.yAxisID,fu(e,"y")),l=n.rAxisID=Ce(o.rAxisID,fu(e,"r")),c=n.indexAxis,u=n.iAxisID=i(c,a,s,l),h=n.vAxisID=i(c,s,a,l);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&tg(this._data,this),e._stacked&&ka(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(Ve(n)){const i=this._cachedMeta;this._data=jC(n,i)}else if(o!==n){if(o){tg(o,this);const i=this._cachedMeta;ka(i),i._parsed=[]}n&&Object.isExtensible(n)&&Fx(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=Lg(n.vScale,n),n.stack!==o.stack&&(i=!0,ka(n),n.stack=o.stack),this._resyncElements(e),(i||a!==n._stacked)&&_g(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:i}=this,{iScale:a,_stacked:s}=o,l=a.axis;let c=e===0&&n===i.length?!0:o._sorted,u=e>0&&o._parsed[e-1],h,p,m;if(this._parsing===!1)o._parsed=i,o._sorted=!0,m=i;else{Ye(i[e])?m=this.parseArrayData(o,i,e,n):Ve(i[e])?m=this.parseObjectData(o,i,e,n):m=this.parsePrimitiveData(o,i,e,n);const b=()=>p[l]===null||u&&p[l]<u[l];for(h=0;h<n;++h)o._parsed[h+e]=p=m[h],c&&(b()&&(c=!1),u=p);o._sorted=c}s&&_g(this,m)}parsePrimitiveData(e,n,o,i){const{iScale:a,vScale:s}=e,l=a.axis,c=s.axis,u=a.getLabels(),h=a===s,p=new Array(i);let m,b,y;for(m=0,b=i;m<b;++m)y=m+o,p[m]={[l]:h||a.parse(u[y],y),[c]:s.parse(n[y],y)};return p}parseArrayData(e,n,o,i){const{xScale:a,yScale:s}=e,l=new Array(i);let c,u,h,p;for(c=0,u=i;c<u;++c)h=c+o,p=n[h],l[c]={x:a.parse(p[0],h),y:s.parse(p[1],h)};return l}parseObjectData(e,n,o,i){const{xScale:a,yScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(i);let h,p,m,b;for(h=0,p=i;h<p;++h)m=h+o,b=n[m],u[h]={x:a.parse(tr(b,l),m),y:s.parse(tr(b,c),m)};return u}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,o){const i=this.chart,a=this._cachedMeta,s=n[e.axis],l={keys:Tg(i,!0),values:n._stacks[e.axis]._visualValues};return Mg(l,s,a.index,{mode:o})}updateRangeFromParsed(e,n,o,i){const a=o[n.axis];let s=a===null?NaN:a;const l=i&&o._stacks[n.axis];i&&l&&(i.values=l,s=Mg(i,a,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,n){const o=this._cachedMeta,i=o._parsed,a=o._sorted&&e===o.iScale,s=i.length,l=this._getOtherScale(e),c=JC(n,o,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:p}=QC(l);let m,b;function y(){b=i[m];const v=b[l.axis];return!ht(b[e.axis])||h>v||p<v}for(m=0;m<s&&!(!y()&&(this.updateRangeFromParsed(u,e,b,c),a));++m);if(a){for(m=s-1;m>=0;--m)if(!y()){this.updateRangeFromParsed(u,e,b,c);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let i,a,s;for(i=0,a=n.length;i<a;++i)s=n[i][e.axis],ht(s)&&o.push(s);return o}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,o=n.iScale,i=n.vScale,a=this.getParsed(e);return{label:o?""+o.getLabelForValue(a[o.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=WC(Ce(this.options.clip,UC(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,o=this._cachedMeta,i=o.data||[],a=n.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||i.length-l,u=this.options.drawActiveElementsOnTop;let h;for(o.dataset&&o.dataset.draw(e,a,l,c),h=l;h<l+c;++h){const p=i[h];p.hidden||(p.active&&u?s.push(p):p.draw(e,a))}for(h=0;h<s.length;++h)s[h].draw(e,a)}getStyle(e,n){const o=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,n,o){const i=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];a=s.$context||(s.$context=KC(this.getContext(),e,s)),a.parsed=this.getParsed(e),a.raw=i.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=qC(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=o,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",o){const i=n==="active",a=this._cachedDataOpts,s=e+"-"+n,l=a[s],c=this.enableOptionSharing&&pa(o);if(l)return Hg(l,c);const u=this.chart.config,h=u.datasetElementScopeKeys(this._type,e),p=i?[`${e}Hover`,"hover",e,""]:[e,""],m=u.getOptionScopes(this.getDataset(),h),b=Object.keys(dt.elements[e]),y=()=>this.getContext(o,i,n),v=u.resolveNamedOptions(m,b,y,p);return v.$shared&&(v.$shared=c,a[s]=Object.freeze(Hg(v,c))),v}_resolveAnimations(e,n,o){const i=this.chart,a=this._cachedDataOpts,s=`animation-${n}`,l=a[s];if(l)return l;let c;if(i.options.animation!==!1){const h=this.chart.config,p=h.datasetAnimationScopeKeys(this._type,n),m=h.getOptionScopes(this.getDataset(),p);c=h.createResolver(m,this.getContext(e,o,n))}const u=new Vg(i,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||pu(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),i=this._sharedOptions,a=this.getSharedOptions(o),s=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,o),{sharedOptions:a,includeOptions:s}}updateElement(e,n,o,i){pu(i)?Object.assign(e,o):this._resolveAnimations(n,i).update(e,o)}updateSharedOptions(e,n,o){e&&!pu(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,i){e.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,o,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const i=o.length,a=n.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,e):a<i&&this._removeElements(a,i-a)}_insertElements(e,n,o=!0){const i=this._cachedMeta,a=i.data,s=e+n;let l;const c=u=>{for(u.length+=n,l=u.length-1;l>=s;l--)u[l]=u[l-n]};for(c(a),l=e;l<s;++l)a[l]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(e,n),o&&this.updateElements(a,e,n,"reset")}updateElements(e,n,o,i){}_removeElements(e,n){const o=this._cachedMeta;if(this._parsing){const i=o._parsed.splice(e,n);o._stacked&&ka(o,i)}o.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,o,i]=e;this[n](o,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(jn,"defaults",{}),ae(jn,"datasetElementType",null),ae(jn,"dataElementType",null);function YC(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let o=[];for(let i=0,a=n.length;i<a;i++)o=o.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=ng(o.sort((i,a)=>i-a))}return t._cache.$bar}function ZC(t){const e=t.iScale,n=YC(e,t.type);let o=e._length,i,a,s,l;const c=()=>{s===32767||s===-32768||(pa(l)&&(o=Math.min(o,Math.abs(s-l)||o)),l=s)};for(i=0,a=n.length;i<a;++i)s=e.getPixelForValue(n[i]),c();for(l=void 0,i=0,a=e.ticks.length;i<a;++i)s=e.getPixelForTick(i),c();return o}function $C(t,e,n,o){const i=n.barThickness;let a,s;return Re(i)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=i*o,s=1),{chunk:a/o,ratio:s,start:e.pixels[t]-a/2}}function eA(t,e,n,o){const i=e.pixels,a=i[t];let s=t>0?i[t-1]:null,l=t<i.length-1?i[t+1]:null;const c=n.categoryPercentage;s===null&&(s=a-(l===null?e.end-e.start:l-a)),l===null&&(l=a+a-s);const u=a-(a-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/o,ratio:n.barPercentage,start:u}}function tA(t,e,n,o){const i=n.parse(t[0],o),a=n.parse(t[1],o),s=Math.min(i,a),l=Math.max(i,a);let c=s,u=l;Math.abs(s)>Math.abs(l)&&(c=l,u=s),e[n.axis]=u,e._custom={barStart:c,barEnd:u,start:i,end:a,min:s,max:l}}function Ug(t,e,n,o){return Ye(t)?tA(t,e,n,o):e[n.axis]=n.parse(t,o),e}function Wg(t,e,n,o){const i=t.iScale,a=t.vScale,s=i.getLabels(),l=i===a,c=[];let u,h,p,m;for(u=n,h=n+o;u<h;++u)m=e[u],p={},p[i.axis]=l||i.parse(s[u],u),c.push(Ug(m,p,a,u));return c}function hu(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function nA(t,e,n){return t!==0?so(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function oA(t){let e,n,o,i,a;return t.horizontal?(e=t.base>t.x,n="left",o="right"):(e=t.base<t.y,n="bottom",o="top"),e?(i="end",a="start"):(i="start",a="end"),{start:n,end:o,reverse:e,top:i,bottom:a}}function rA(t,e,n,o){let i=e.borderSkipped;const a={};if(!i){t.borderSkipped=a;return}if(i===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:l,reverse:c,top:u,bottom:h}=oA(t);i==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===o?i=u:(n._bottom||0)===o?i=h:(a[jg(h,s,l,c)]=!0,i=u)),a[jg(i,s,l,c)]=!0,t.borderSkipped=a}function jg(t,e,n,o){return o?(t=iA(t,e,n),t=Gg(t,n,e)):t=Gg(t,e,n),t}function iA(t,e,n){return t===e?n:t===n?e:t}function Gg(t,e,n){return t==="start"?e:t==="end"?n:t}function aA(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class ol extends jn{parsePrimitiveData(e,n,o,i){return Wg(e,n,o,i)}parseArrayData(e,n,o,i){return Wg(e,n,o,i)}parseObjectData(e,n,o,i){const{iScale:a,vScale:s}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=a.axis==="x"?l:c,h=s.axis==="x"?l:c,p=[];let m,b,y,v;for(m=o,b=o+i;m<b;++m)v=n[m],y={},y[a.axis]=a.parse(tr(v,u),m),p.push(Ug(tr(v,h),y,s,m));return p}updateRangeFromParsed(e,n,o,i){super.updateRangeFromParsed(e,n,o,i);const a=o._custom;a&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:o,vScale:i}=n,a=this.getParsed(e),s=a._custom,l=hu(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+o.getLabelForValue(a[o.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,o,i){const a=i==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),h=this._getRuler(),{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,i);for(let b=n;b<n+o;b++){const y=this.getParsed(b),v=a||Re(y[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(b),w=this._calculateBarIndexPixels(b,h),x=(y._stacks||{})[l.axis],I={horizontal:u,base:v.base,enableBorderRadius:!x||hu(y._custom)||s===x._top||s===x._bottom,x:u?v.head:w.center,y:u?w.center:v.head,height:u?w.size:Math.abs(v.size),width:u?Math.abs(v.size):w.size};m&&(I.options=p||this.resolveDataElementOptions(b,e[b].active?"active":i));const R=I.options||e[b].options;rA(I,R,x,s),aA(I,R,h.ratio),this.updateElement(e[b],b,I,i)}}_getStacks(e,n){const{iScale:o}=this._cachedMeta,i=o.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),a=o.options.stacked,s=[],l=c=>{const u=c.controller.getParsed(n),h=u&&u[c.vScale.axis];if(Re(h)||isNaN(h))return!0};for(const c of i)if(!(n!==void 0&&l(c))&&((a===!1||s.indexOf(c.stack)===-1||a===void 0&&c.stack===void 0)&&s.push(c.stack),c.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const i=this._getStacks(e,o),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,i=[];let a,s;for(a=0,s=n.data.length;a<s;++a)i.push(o.getPixelForValue(this.getParsed(a)[o.axis],a));const l=e.barThickness;return{min:l||ZC(n),pixels:i,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:l?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:o,index:i},options:{base:a,minBarLength:s}}=this,l=a||0,c=this.getParsed(e),u=c._custom,h=hu(u);let p=c[n.axis],m=0,b=o?this.applyStack(n,c,o):p,y,v;b!==p&&(m=b-p,b=p),h&&(p=u.barStart,b=u.barEnd-u.barStart,p!==0&&so(p)!==so(u.barEnd)&&(m=0),m+=p);const w=!Re(a)&&!h?a:m;let x=n.getPixelForValue(w);if(this.chart.getDataVisibility(e)?y=n.getPixelForValue(m+b):y=x,v=y-x,Math.abs(v)<s){v=nA(v,n,l)*s,p===l&&(x-=v/2);const I=n.getPixelForDecimal(0),R=n.getPixelForDecimal(1),V=Math.min(I,R),B=Math.max(I,R);x=Math.max(Math.min(x,B),V),y=x+v,o&&!h&&(c._stacks[n.axis]._visualValues[i]=n.getValueForPixel(y)-n.getValueForPixel(x))}if(x===n.getPixelForValue(l)){const I=so(v)*n.getLineWidthForValue(l)/2;x+=I,v-=I}return{size:v,base:x,head:y,center:y+v/2}}_calculateBarIndexPixels(e,n){const o=n.scale,i=this.options,a=i.skipNull,s=Ce(i.maxBarThickness,1/0);let l,c;if(n.grouped){const u=a?this._getStackCount(e):n.stackCount,h=i.barThickness==="flex"?eA(e,n,i,u):$C(e,n,i,u),p=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);l=h.start+h.chunk*p+h.chunk/2,c=Math.min(s,h.chunk*h.ratio)}else l=o.getPixelForValue(this.getParsed(e)[o.axis],e),c=Math.min(s,n.min*n.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){const e=this._cachedMeta,n=e.vScale,o=e.data,i=o.length;let a=0;for(;a<i;++a)this.getParsed(a)[n.axis]!==null&&!o[a].hidden&&o[a].draw(this._ctx)}}ae(ol,"id","bar"),ae(ol,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(ol,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class rl extends jn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,i){const a=super.parsePrimitiveData(e,n,o,i);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+o).radius;return a}parseArrayData(e,n,o,i){const a=super.parseArrayData(e,n,o,i);for(let s=0;s<a.length;s++){const l=n[o+s];a[s]._custom=Ce(l[2],this.resolveDataElementOptions(s+o).radius)}return a}parseObjectData(e,n,o,i){const a=super.parseObjectData(e,n,o,i);for(let s=0;s<a.length;s++){const l=n[o+s];a[s]._custom=Ce(l&&l.r&&+l.r,this.resolveDataElementOptions(s+o).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let o=e.length-1;o>=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(e),l=i.getLabelForValue(s.x),c=a.getLabelForValue(s.y),u=s._custom;return{label:o[e]||"",value:"("+l+", "+c+(u?", "+u:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,i){const a=i==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,i),h=s.axis,p=l.axis;for(let m=n;m<n+o;m++){const b=e[m],y=!a&&this.getParsed(m),v={},w=v[h]=a?s.getPixelForDecimal(.5):s.getPixelForValue(y[h]),x=v[p]=a?l.getBasePixel():l.getPixelForValue(y[p]);v.skip=isNaN(w)||isNaN(x),u&&(v.options=c||this.resolveDataElementOptions(m,b.active?"active":i),a&&(v.options.radius=0)),this.updateElement(b,m,v,i)}}resolveDataElementOptions(e,n){const o=this.getParsed(e);let i=super.resolveDataElementOptions(e,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return n!=="active"&&(i.radius=0),i.radius+=Ce(o&&o._custom,a),i}}ae(rl,"id","bubble"),ae(rl,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ae(rl,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function sA(t,e,n){let o=1,i=1,a=0,s=0;if(e<$e){const l=t,c=l+e,u=Math.cos(l),h=Math.sin(l),p=Math.cos(c),m=Math.sin(c),b=(R,V,B)=>ma(R,l,c,!0)?1:Math.max(V,V*n,B,B*n),y=(R,V,B)=>ma(R,l,c,!0)?-1:Math.min(V,V*n,B,B*n),v=b(0,u,p),w=b(gt,h,m),x=y(Ze,u,p),I=y(Ze+gt,h,m);o=(v-x)/2,i=(w-I)/2,a=-(v+x)/2,s=-(w+I)/2}return{ratioX:o,ratioY:i,offsetX:a,offsetY:s}}class Tr extends jn{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=o;else{let a=c=>+o[c];if(Ve(o[e])){const{key:c="value"}=this._parsing;a=u=>+tr(o[u],c)}let s,l;for(s=e,l=e+n;s<l;++s)i._parsed[s]=a(s)}}_getRotation(){return Wn(this.options.rotation-90)}_getCircumference(){return Wn(this.options.circumference)}_getRotationExtents(){let e=$e,n=-$e;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const i=this.chart.getDatasetMeta(o).controller,a=i._getRotation(),s=i._getCircumference();e=Math.min(e,a),n=Math.max(n,a+s)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:o}=n,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(o.width,o.height)-s)/2,0),c=Math.min(wx(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:h,rotation:p}=this._getRotationExtents(),{ratioX:m,ratioY:b,offsetX:y,offsetY:v}=sA(p,h,c),w=(o.width-s)/m,x=(o.height-s)/b,I=Math.max(Math.min(w,x)/2,0),R=Gm(this.options.radius,I),V=Math.max(R*c,0),B=(R-V)/this._getVisibleDatasetWeightTotal();this.offsetX=y*R,this.offsetY=v*R,i.total=this.calculateTotal(),this.outerRadius=R-B*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-B*u,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const o=this.options,i=this._cachedMeta,a=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*a/$e)}updateElements(e,n,o,i){const a=i==="reset",s=this.chart,l=s.chartArea,u=s.options.animation,h=(l.left+l.right)/2,p=(l.top+l.bottom)/2,m=a&&u.animateScale,b=m?0:this.innerRadius,y=m?0:this.outerRadius,{sharedOptions:v,includeOptions:w}=this._getSharedOptions(n,i);let x=this._getRotation(),I;for(I=0;I<n;++I)x+=this._circumference(I,a);for(I=n;I<n+o;++I){const R=this._circumference(I,a),V=e[I],B={x:h+this.offsetX,y:p+this.offsetY,startAngle:x,endAngle:x+R,circumference:R,outerRadius:y,innerRadius:b};w&&(B.options=v||this.resolveDataElementOptions(I,V.active?"active":i)),x+=R,this.updateElement(V,I,B,i)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let o=0,i;for(i=0;i<n.length;i++){const a=e._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(o+=Math.abs(a))}return o}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?$e*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart,i=o.data.labels||[],a=ba(n._parsed[e],o.options.locale);return{label:i[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const o=this.chart;let i,a,s,l,c;if(!e){for(i=0,a=o.data.datasets.length;i<a;++i)if(o.isDatasetVisible(i)){s=o.getDatasetMeta(i),e=s.data,l=s.controller;break}}if(!e)return 0;for(i=0,a=e.length;i<a;++i)c=l.resolveDataElementOptions(i),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let o=0,i=e.length;o<i;++o){const a=this.resolveDataElementOptions(o);n=Math.max(n,a.offset||0,a.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(e){return Math.max(Ce(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Tr,"id","doughnut"),ae(Tr,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(Tr,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ae(Tr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:i}}=e.legend.options;return n.labels.map((a,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class il extends jn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:i=[],_dataset:a}=n,s=this.chart._animationsDisabled;let{start:l,count:c}=ig(n,i,s);this._drawStart=l,this._drawCount=c,ag(n)&&(l=0,c=i.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=i;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!s,options:u},e),this.updateElements(i,l,c,e)}updateElements(e,n,o,i){const a=i==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i),m=s.axis,b=l.axis,{spanGaps:y,segment:v}=this.options,w=hi(y)?y:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||a||i==="none",I=n+o,R=e.length;let V=n>0&&this.getParsed(n-1);for(let B=0;B<R;++B){const L=e[B],P=x?L:{};if(B<n||B>=I){P.skip=!0;continue}const _=this.getParsed(B),U=Re(_[b]),G=P[m]=s.getPixelForValue(_[m],B),Q=P[b]=a||U?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,_,c):_[b],B);P.skip=isNaN(G)||isNaN(Q)||U,P.stop=B>0&&Math.abs(_[m]-V[m])>w,v&&(P.parsed=_,P.raw=u.data[B]),p&&(P.options=h||this.resolveDataElementOptions(B,L.active?"active":i)),x||this.updateElement(L,B,P,i),V=_}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return o;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(o,a,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ae(il,"id","line"),ae(il,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(il,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class wa extends jn{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart,i=o.data.labels||[],a=ba(n._parsed[e].r,o.options.locale);return{label:i[e]||"",value:a}}parseObjectData(e,n,o,i){return wg.bind(this)(e,n,o,i)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((o,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<n.min&&(n.min=a),a>n.max&&(n.max=a))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),s=Math.max(o.cutoutPercentage?a/100*o.cutoutPercentage:1,0),l=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,i){const a=i==="reset",s=this.chart,c=s.options.animation,u=this._cachedMeta.rScale,h=u.xCenter,p=u.yCenter,m=u.getIndexAngle(0)-.5*Ze;let b=m,y;const v=360/this.countVisibleElements();for(y=0;y<n;++y)b+=this._computeAngle(y,i,v);for(y=n;y<n+o;y++){const w=e[y];let x=b,I=b+this._computeAngle(y,i,v),R=s.getDataVisibility(y)?u.getDistanceFromCenterForValue(this.getParsed(y).r):0;b=I,a&&(c.animateScale&&(R=0),c.animateRotate&&(x=I=m));const V={x:h,y:p,innerRadius:0,outerRadius:R,startAngle:x,endAngle:I,options:this.resolveDataElementOptions(y,w.active?"active":i)};this.updateElement(w,y,V,i)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((o,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Wn(this.resolveDataElementOptions(e,n).angle||o):0}}ae(wa,"id","polarArea"),ae(wa,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(wa,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:i}}=e.legend.options;return n.labels.map((a,s)=>{const c=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class mu extends Tr{}ae(mu,"id","pie"),ae(mu,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class al extends jn{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,i){return wg.bind(this)(e,n,o,i)}update(e){const n=this._cachedMeta,o=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(o.points=i,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const l={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(o,void 0,l,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,o,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let l=n;l<n+o;l++){const c=e[l],u=this.resolveDataElementOptions(l,c.active?"active":i),h=a.getPointPositionForValue(l,this.getParsed(l).r),p=s?a.xCenter:h.x,m=s?a.yCenter:h.y,b={x:p,y:m,angle:h.angle,skip:isNaN(p)||isNaN(m),options:u};this.updateElement(c,l,b,i)}}}ae(al,"id","radar"),ae(al,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ae(al,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class sl extends jn{getLabelAndValue(e){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:i,yScale:a}=n,s=this.getParsed(e),l=i.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:o[e]||"",value:"("+l+", "+c+")"}}update(e){const n=this._cachedMeta,{data:o=[]}=n,i=this.chart._animationsDisabled;let{start:a,count:s}=ig(n,o,i);if(this._drawStart=a,this._drawCount=s,ag(n)&&(a=0,s=o.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!i,options:u},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(o,a,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,o,i){const a=i==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,h=this.resolveDataElementOptions(n,i),p=this.getSharedOptions(h),m=this.includeOptions(i,p),b=s.axis,y=l.axis,{spanGaps:v,segment:w}=this.options,x=hi(v)?v:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||a||i==="none";let R=n>0&&this.getParsed(n-1);for(let V=n;V<n+o;++V){const B=e[V],L=this.getParsed(V),P=I?B:{},_=Re(L[y]),U=P[b]=s.getPixelForValue(L[b],V),G=P[y]=a||_?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,L,c):L[y],V);P.skip=isNaN(U)||isNaN(G)||_,P.stop=V>0&&Math.abs(L[b]-R[b])>x,w&&(P.parsed=L,P.raw=u.data[V]),m&&(P.options=p||this.resolveDataElementOptions(V,B.active?"active":i)),I||this.updateElement(B,V,P,i),R=L}this.updateSharedOptions(p,i,h)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,i=o.options&&o.options.borderWidth||0;if(!n.length)return i;const a=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,a,s)/2}}ae(sl,"id","scatter"),ae(sl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(sl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var lA=Object.freeze({__proto__:null,BarController:ol,BubbleController:rl,DoughnutController:Tr,LineController:il,PieController:mu,PolarAreaController:wa,RadarController:al,ScatterController:sl});function Mr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class gu{constructor(e){ae(this,"options");this.options=e||{}}static override(e){Object.assign(gu.prototype,e)}init(){}formats(){return Mr()}parse(){return Mr()}format(){return Mr()}add(){return Mr()}diff(){return Mr()}startOf(){return Mr()}endOf(){return Mr()}}var dA={_date:gu};function cA(t,e,n,o){const{controller:i,data:a,_sorted:s}=t,l=i._cachedMeta.iScale;if(l&&e===l.axis&&e!=="r"&&s&&a.length){const c=l._reversePixels?Rx:So;if(o){if(i._sharedOptions){const u=a[0],h=typeof u.getRange=="function"&&u.getRange(e);if(h){const p=c(a,e,n-h),m=c(a,e,n+h);return{lo:p.lo,hi:m.hi}}}}else return c(a,e,n)}return{lo:0,hi:a.length-1}}function Sa(t,e,n,o,i){const a=t.getSortedVisibleDatasetMetas(),s=n[e];for(let l=0,c=a.length;l<c;++l){const{index:u,data:h}=a[l],{lo:p,hi:m}=cA(a[l],e,s,i);for(let b=p;b<=m;++b){const y=h[b];y.skip||o(y,u,b)}}}function uA(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(o,i){const a=e?Math.abs(o.x-i.x):0,s=n?Math.abs(o.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function bu(t,e,n,o,i){const a=[];return!i&&!t.isPointInArea(e)||Sa(t,n,e,function(l,c,u){!i&&!xo(l,t.chartArea,0)||l.inRange(e.x,e.y,o)&&a.push({element:l,datasetIndex:c,index:u})},!0),a}function fA(t,e,n,o){let i=[];function a(s,l,c){const{startAngle:u,endAngle:h}=s.getProps(["startAngle","endAngle"],o),{angle:p}=$m(s,{x:e.x,y:e.y});ma(p,u,h)&&i.push({element:s,datasetIndex:l,index:c})}return Sa(t,n,e,a),i}function pA(t,e,n,o,i,a){let s=[];const l=uA(n);let c=Number.POSITIVE_INFINITY;function u(h,p,m){const b=h.inRange(e.x,e.y,i);if(o&&!b)return;const y=h.getCenterPoint(i);if(!(!!a||t.isPointInArea(y))&&!b)return;const w=l(e,y);w<c?(s=[{element:h,datasetIndex:p,index:m}],c=w):w===c&&s.push({element:h,datasetIndex:p,index:m})}return Sa(t,n,e,u),s}function yu(t,e,n,o,i,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!o?fA(t,e,n,i):pA(t,e,n,o,i,a)}function Qg(t,e,n,o,i){const a=[],s=n==="x"?"inXRange":"inYRange";let l=!1;return Sa(t,n,e,(c,u,h)=>{c[s](e[n],i)&&(a.push({element:c,datasetIndex:u,index:h}),l=l||c.inRange(e.x,e.y,i))}),o&&!l?[]:a}var hA={evaluateInteractionItems:Sa,modes:{index(t,e,n,o){const i=Vr(e,t),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?bu(t,i,a,o,s):yu(t,i,a,!1,o,s),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const h=l[0].index,p=u.data[h];p&&!p.skip&&c.push({element:p,datasetIndex:u.index,index:h})}),c):[]},dataset(t,e,n,o){const i=Vr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?bu(t,i,a,o,s):yu(t,i,a,!1,o,s);if(l.length>0){const c=l[0].datasetIndex,u=t.getDatasetMeta(c).data;l=[];for(let h=0;h<u.length;++h)l.push({element:u[h],datasetIndex:c,index:h})}return l},point(t,e,n,o){const i=Vr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return bu(t,i,a,o,s)},nearest(t,e,n,o){const i=Vr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return yu(t,i,a,n.intersect,o,s)},x(t,e,n,o){const i=Vr(e,t);return Qg(t,i,"x",n.intersect,o)},y(t,e,n,o){const i=Vr(e,t);return Qg(t,i,"y",n.intersect,o)}}};const Xg=["left","top","right","bottom"];function xa(t,e){return t.filter(n=>n.pos===e)}function qg(t,e){return t.filter(n=>Xg.indexOf(n.pos)===-1&&n.box.axis===e)}function Ca(t,e){return t.sort((n,o)=>{const i=e?o:n,a=e?n:o;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function mA(t){const e=[];let n,o,i,a,s,l;for(n=0,o=(t||[]).length;n<o;++n)i=t[n],{position:a,options:{stack:s,stackWeight:l=1}}=i,e.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:l});return e}function gA(t){const e={};for(const n of t){const{stack:o,pos:i,stackWeight:a}=n;if(!o||!Xg.includes(i))continue;const s=e[o]||(e[o]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return e}function bA(t,e){const n=gA(t),{vBoxMaxWidth:o,hBoxMaxHeight:i}=e;let a,s,l;for(a=0,s=t.length;a<s;++a){l=t[a];const{fullSize:c}=l.box,u=n[l.stack],h=u&&l.stackWeight/u.weight;l.horizontal?(l.width=h?h*o:c&&e.availableWidth,l.height=i):(l.width=o,l.height=h?h*i:c&&e.availableHeight)}return n}function yA(t){const e=mA(t),n=Ca(e.filter(u=>u.box.fullSize),!0),o=Ca(xa(e,"left"),!0),i=Ca(xa(e,"right")),a=Ca(xa(e,"top"),!0),s=Ca(xa(e,"bottom")),l=qg(e,"x"),c=qg(e,"y");return{fullSize:n,leftAndTop:o.concat(a),rightAndBottom:i.concat(c).concat(s).concat(l),chartArea:xa(e,"chartArea"),vertical:o.concat(i).concat(c),horizontal:a.concat(s).concat(l)}}function Kg(t,e,n,o){return Math.max(t[n],e[n])+Math.max(t[o],e[o])}function Jg(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function vA(t,e,n,o){const{pos:i,box:a}=n,s=t.maxPadding;if(!Ve(i)){n.size&&(t[i]-=n.size);const p=o[n.stack]||{size:0,count:1};p.size=Math.max(p.size,n.horizontal?a.height:a.width),n.size=p.size/p.count,t[i]+=n.size}a.getPadding&&Jg(s,a.getPadding());const l=Math.max(0,e.outerWidth-Kg(s,t,"left","right")),c=Math.max(0,e.outerHeight-Kg(s,t,"top","bottom")),u=l!==t.w,h=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:u,other:h}:{same:h,other:u}}function kA(t){const e=t.maxPadding;function n(o){const i=Math.max(e[o]-t[o],0);return t[o]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function wA(t,e){const n=e.maxPadding;function o(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(e[s],n[s])}),a}return o(t?["left","right"]:["top","bottom"])}function Aa(t,e,n,o){const i=[];let a,s,l,c,u,h;for(a=0,s=t.length,u=0;a<s;++a){l=t[a],c=l.box,c.update(l.width||e.w,l.height||e.h,wA(l.horizontal,e));const{same:p,other:m}=vA(e,n,l,o);u|=p&&i.length,h=h||m,c.fullSize||i.push(l)}return u&&Aa(i,e,n,o)||h}function ll(t,e,n,o,i){t.top=n,t.left=e,t.right=e+o,t.bottom=n+i,t.width=o,t.height=i}function Yg(t,e,n,o){const i=n.padding;let{x:a,y:s}=e;for(const l of t){const c=l.box,u=o[l.stack]||{count:1,placed:0,weight:1},h=l.stackWeight/u.weight||1;if(l.horizontal){const p=e.w*h,m=u.size||c.height;pa(u.start)&&(s=u.start),c.fullSize?ll(c,i.left,s,n.outerWidth-i.right-i.left,m):ll(c,e.left+u.placed,s,p,m),u.start=s,u.placed+=p,s=c.bottom}else{const p=e.h*h,m=u.size||c.width;pa(u.start)&&(a=u.start),c.fullSize?ll(c,a,i.top,m,n.outerHeight-i.bottom-i.top):ll(c,a,e.top+u.placed,m,p),u.start=a,u.placed+=p,a=c.right}}e.x=a,e.y=s}var _t={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,o){if(!t)return;const i=Ft(t.options.layout.padding),a=Math.max(e-i.width,0),s=Math.max(n-i.height,0),l=yA(t.boxes),c=l.vertical,u=l.horizontal;We(t.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const h=c.reduce((v,w)=>w.box.options&&w.box.options.display===!1?v:v+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),m=Object.assign({},i);Jg(m,Ft(o));const b=Object.assign({maxPadding:m,w:a,h:s,x:i.left,y:i.top},i),y=bA(c.concat(u),p);Aa(l.fullSize,b,p,y),Aa(c,b,p,y),Aa(u,b,p,y)&&Aa(c,b,p,y),kA(b),Yg(l.leftAndTop,b,p,y),b.x+=b.w,b.y+=b.h,Yg(l.rightAndBottom,b,p,y),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},We(l.chartArea,v=>{const w=v.box;Object.assign(w,t.chartArea),w.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class Zg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,o){}removeEventListener(e,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,o,i){return n=Math.max(0,n||e.width),o=o||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):o)}}isAttached(e){return!0}updateConfig(e){}}class SA extends Zg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const dl="$chartjs",xA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$g=t=>t===null||t==="";function CA(t,e){const n=t.style,o=t.getAttribute("height"),i=t.getAttribute("width");if(t[dl]={initial:{height:o,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",$g(i)){const a=Cg(t,"width");a!==void 0&&(t.width=a)}if($g(o))if(t.style.height==="")t.height=t.width/(e||2);else{const a=Cg(t,"height");a!==void 0&&(t.height=a)}return t}const e0=EC?{passive:!0}:!1;function AA(t,e,n){t&&t.addEventListener(e,n,e0)}function EA(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,e0)}function DA(t,e){const n=xA[t.type]||t.type,{x:o,y:i}=Vr(t,e);return{type:n,chart:e,native:t,x:o!==void 0?o:null,y:i!==void 0?i:null}}function cl(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function BA(t,e,n){const o=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const l of a)s=s||cl(l.addedNodes,o),s=s&&!cl(l.removedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function PA(t,e,n){const o=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const l of a)s=s||cl(l.removedNodes,o),s=s&&!cl(l.addedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ea=new Map;let t0=0;function n0(){const t=window.devicePixelRatio;t!==t0&&(t0=t,Ea.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function IA(t,e){Ea.size||window.addEventListener("resize",n0),Ea.set(t,e)}function OA(t){Ea.delete(t),Ea.size||window.removeEventListener("resize",n0)}function NA(t,e,n){const o=t.canvas,i=o&&uu(o);if(!i)return;const a=rg((l,c)=>{const u=i.clientWidth;n(l,c),u<i.clientWidth&&n()},window),s=new ResizeObserver(l=>{const c=l[0],u=c.contentRect.width,h=c.contentRect.height;u===0&&h===0||a(u,h)});return s.observe(i),IA(t,a),s}function vu(t,e,n){n&&n.disconnect(),e==="resize"&&OA(t)}function RA(t,e,n){const o=t.canvas,i=rg(a=>{t.ctx!==null&&n(DA(a,t))},t);return AA(o,e,i),i}class VA extends Zg{acquireContext(e,n){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(CA(e,n),o):null}releaseContext(e){const n=e.canvas;if(!n[dl])return!1;const o=n[dl].initial;["height","width"].forEach(a=>{const s=o[a];Re(s)?n.removeAttribute(a):n.setAttribute(a,s)});const i=o.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[dl],!0}addEventListener(e,n,o){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),s={attach:BA,detach:PA,resize:NA}[n]||RA;i[n]=s(e,n,o)}removeEventListener(e,n){const o=e.$proxies||(e.$proxies={}),i=o[n];if(!i)return;({attach:vu,detach:vu,resize:vu}[n]||EA)(e,n,i),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,o,i){return AC(e,n,o,i)}isAttached(e){const n=e&&uu(e);return!!(n&&n.isConnected)}}function FA(t){return!cu()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?SA:VA}let Ao=(sd=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(e){const{x:n,y:o}=this.getProps(["x","y"],e);return{x:n,y:o}}hasValue(){return hi(this.x)&&hi(this.y)}getProps(e,n){const o=this.$animations;if(!n||!o)return this;const i={};return e.forEach(a=>{i[a]=o[a]&&o[a].active()?o[a]._to:this[a]}),i}},ae(sd,"defaults",{}),ae(sd,"defaultRoutes"),sd);function TA(t,e){const n=t.options.ticks,o=MA(t),i=Math.min(n.maxTicksLimit||o,o),a=n.major.enabled?zA(e):[],s=a.length,l=a[0],c=a[s-1],u=[];if(s>i)return _A(e,u,a,s/i),u;const h=LA(a,e,i);if(s>0){let p,m;const b=s>1?Math.round((c-l)/(s-1)):null;for(ul(e,u,h,Re(b)?0:l-b,l),p=0,m=s-1;p<m;p++)ul(e,u,h,a[p],a[p+1]);return ul(e,u,h,c,Re(b)?e.length:c+b),u}return ul(e,u,h),u}function MA(t){const e=t.options.offset,n=t._tickSize(),o=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(o,i))}function LA(t,e,n){const o=HA(t),i=e.length/n;if(!o)return Math.max(i,1);const a=Px(o);for(let s=0,l=a.length-1;s<l;s++){const c=a[s];if(c>i)return c}return Math.max(i,1)}function zA(t){const e=[];let n,o;for(n=0,o=t.length;n<o;n++)t[n].major&&e.push(n);return e}function _A(t,e,n,o){let i=0,a=n[0],s;for(o=Math.ceil(o),s=0;s<t.length;s++)s===a&&(e.push(t[s]),i++,a=n[i*o])}function ul(t,e,n,o,i){const a=Ce(o,0),s=Math.min(Ce(i,t.length),t.length);let l=0,c,u,h;for(n=Math.ceil(n),i&&(c=i-o,n=c/Math.floor(c/n)),h=a;h<0;)l++,h=Math.round(a+l*n);for(u=Math.max(a,0);u<s;u++)u===h&&(e.push(t[u]),l++,h=Math.round(a+l*n))}function HA(t){const e=t.length;let n,o;if(e<2)return!1;for(o=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==o)return!1;return o}const UA=t=>t==="left"?"right":t==="right"?"left":t,o0=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,r0=(t,e)=>Math.min(e||t,t);function i0(t,e){const n=[],o=t.length/e,i=t.length;let a=0;for(;a<i;a+=o)n.push(t[Math.floor(a)]);return n}function WA(t,e,n){const o=t.ticks.length,i=Math.min(e,o-1),a=t._startPixel,s=t._endPixel,l=1e-6;let c=t.getPixelForTick(i),u;if(!(n&&(o===1?u=Math.max(c-a,s-c):e===0?u=(t.getPixelForTick(1)-c)/2:u=(c-t.getPixelForTick(i-1))/2,c+=i<e?u:-u,c<a-l||c>s+l)))return c}function jA(t,e){We(t,n=>{const o=n.gc,i=o.length/2;let a;if(i>e){for(a=0;a<i;++a)delete n.data[o[a]];o.splice(0,i)}})}function Da(t){return t.drawTicks?t.tickLength:0}function a0(t,e){if(!t.display)return 0;const n=wt(t.font,e),o=Ft(t.padding);return(Ye(t.text)?t.text.length:1)*n.lineHeight+o.height}function GA(t,e){return rr(t,{scale:e,type:"scale"})}function QA(t,e,n){return rr(t,{tick:n,index:e,type:"tick"})}function XA(t,e,n){let o=eu(t);return(n&&e!=="right"||!n&&e==="right")&&(o=UA(o)),o}function qA(t,e,n,o){const{top:i,left:a,bottom:s,right:l,chart:c}=t,{chartArea:u,scales:h}=c;let p=0,m,b,y;const v=s-i,w=l-a;if(t.isHorizontal()){if(b=zt(o,a,l),Ve(n)){const x=Object.keys(n)[0],I=n[x];y=h[x].getPixelForValue(I)+v-e}else n==="center"?y=(u.bottom+u.top)/2+v-e:y=o0(t,n,e);m=l-a}else{if(Ve(n)){const x=Object.keys(n)[0],I=n[x];b=h[x].getPixelForValue(I)-w+e}else n==="center"?b=(u.left+u.right)/2-w+e:b=o0(t,n,e);y=zt(o,s,i),p=n==="left"?-gt:gt}return{titleX:b,titleY:y,maxWidth:m,rotation:p}}class Lr extends Ao{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:o,_suggestedMax:i}=this;return e=gn(e,Number.POSITIVE_INFINITY),n=gn(n,Number.NEGATIVE_INFINITY),o=gn(o,Number.POSITIVE_INFINITY),i=gn(i,Number.NEGATIVE_INFINITY),{min:gn(e,o),max:gn(n,i),minDefined:ht(e),maxDefined:ht(n)}}getMinMax(e){let{min:n,max:o,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:n,max:o};const l=this.getMatchingVisibleMetas();for(let c=0,u=l.length;c<u;++c)s=l[c].controller.getMinMax(this,e),i||(n=Math.min(n,s.min)),a||(o=Math.max(o,s.max));return n=a&&n>o?o:n,o=i&&n>o?n:o,{min:gn(n,gn(o,n)),max:gn(o,gn(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Qe(this.options.beforeUpdate,[this])}update(e,n,o){const{beginAtZero:i,grace:a,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=oC(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?i0(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=TA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,e=!e),this._startPixel=n,this._endPixel=o,this._reversePixels=e,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Qe(this.options.afterUpdate,[this])}beforeSetDimensions(){Qe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Qe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Qe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Qe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let o,i,a;for(o=0,i=e.length;o<i;o++)a=e[o],a.label=Qe(n.callback,[a.value,o,e],this)}afterTickToLabelConversion(){Qe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Qe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,o=r0(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,a=n.maxRotation;let s=i,l,c,u;if(!this._isVisible()||!n.display||i>=a||o<=1||!this.isHorizontal()){this.labelRotation=i;return}const h=this._getLabelSizes(),p=h.widest.width,m=h.highest.height,b=Bt(this.chart.width-p,0,this.maxWidth);l=e.offset?this.maxWidth/o:b/(o-1),p+6>l&&(l=b/(o-(e.offset?.5:1)),c=this.maxHeight-Da(e.grid)-n.padding-a0(e.title,this.chart.options.font),u=Math.sqrt(p*p+m*m),s=Yc(Math.min(Math.asin(Bt((h.highest.height+6)/l,-1,1)),Math.asin(Bt(c/u,-1,1))-Math.asin(Bt(m/u,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Qe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Qe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:o,title:i,grid:a}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){const c=a0(i,n.options.font);if(l?(e.width=this.maxWidth,e.height=Da(a)+c):(e.height=this.maxHeight,e.width=Da(a)+c),o.display&&this.ticks.length){const{first:u,last:h,widest:p,highest:m}=this._getLabelSizes(),b=o.padding*2,y=Wn(this.labelRotation),v=Math.cos(y),w=Math.sin(y);if(l){const x=o.mirror?0:w*p.width+v*m.height;e.height=Math.min(this.maxHeight,e.height+x+b)}else{const x=o.mirror?0:v*p.width+w*m.height;e.width=Math.min(this.maxWidth,e.width+x+b)}this._calculatePadding(u,h,w,v)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,o,i){const{ticks:{align:a,padding:s},position:l}=this.options,c=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,b=0;c?u?(m=i*e.width,b=o*n.height):(m=o*e.height,b=i*n.width):a==="start"?b=n.width:a==="end"?m=e.width:a!=="inner"&&(m=e.width/2,b=n.width/2),this.paddingLeft=Math.max((m-h+s)*this.width/(this.width-h),0),this.paddingRight=Math.max((b-p+s)*this.width/(this.width-p),0)}else{let h=n.height/2,p=e.height/2;a==="start"?(h=0,p=e.height):a==="end"&&(h=n.height,p=0),this.paddingTop=h+s,this.paddingBottom=p+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Qe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,o;for(n=0,o=e.length;n<o;n++)Re(e[n].label)&&(e.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=i0(o,n)),this._labelSizes=e=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,o){const{ctx:i,_longestTextCache:a}=this,s=[],l=[],c=Math.floor(n/r0(n,o));let u=0,h=0,p,m,b,y,v,w,x,I,R,V,B;for(p=0;p<n;p+=c){if(y=e[p].label,v=this._resolveTickFontOptions(p),i.font=w=v.string,x=a[w]=a[w]||{data:{},gc:[]},I=v.lineHeight,R=V=0,!Re(y)&&!Ye(y))R=Js(i,x.data,x.gc,R,y),V=I;else if(Ye(y))for(m=0,b=y.length;m<b;++m)B=y[m],!Re(B)&&!Ye(B)&&(R=Js(i,x.data,x.gc,R,B),V+=I);s.push(R),l.push(V),u=Math.max(R,u),h=Math.max(V,h)}jA(a,n);const L=s.indexOf(u),P=l.indexOf(h),_=U=>({width:s[U]||0,height:l[U]||0});return{first:_(0),last:_(n-1),widest:_(L),highest:_(P),widths:s,heights:l}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Nx(this._alignToPixels?Ir(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const o=n[e];return o.$context||(o.$context=QA(this.getContext(),e,o))}return this.$context||(this.$context=GA(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Wn(this.labelRotation),o=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=this._getLabelSizes(),s=e.autoSkipPadding||0,l=a?a.widest.width+s:0,c=a?a.highest.height+s:0;return this.isHorizontal()?c*o>l*i?l/o:c/i:c*i<l*o?c/o:l/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,o=this.chart,i=this.options,{grid:a,position:s,border:l}=i,c=a.offset,u=this.isHorizontal(),p=this.ticks.length+(c?1:0),m=Da(a),b=[],y=l.setContext(this.getContext()),v=y.display?y.width:0,w=v/2,x=function(C){return Ir(o,C,v)};let I,R,V,B,L,P,_,U,G,Q,F,E;if(s==="top")I=x(this.bottom),P=this.bottom-m,U=I-w,Q=x(e.top)+w,E=e.bottom;else if(s==="bottom")I=x(this.top),Q=e.top,E=x(e.bottom)-w,P=I+w,U=this.top+m;else if(s==="left")I=x(this.right),L=this.right-m,_=I-w,G=x(e.left)+w,F=e.right;else if(s==="right")I=x(this.left),G=e.left,F=x(e.right)-w,L=I+w,_=this.left+m;else if(n==="x"){if(s==="center")I=x((e.top+e.bottom)/2+.5);else if(Ve(s)){const C=Object.keys(s)[0],T=s[C];I=x(this.chart.scales[C].getPixelForValue(T))}Q=e.top,E=e.bottom,P=I+w,U=P+m}else if(n==="y"){if(s==="center")I=x((e.left+e.right)/2);else if(Ve(s)){const C=Object.keys(s)[0],T=s[C];I=x(this.chart.scales[C].getPixelForValue(T))}L=I-w,_=L-m,G=e.left,F=e.right}const S=Ce(i.ticks.maxTicksLimit,p),D=Math.max(1,Math.ceil(p/S));for(R=0;R<p;R+=D){const C=this.getContext(R),T=a.setContext(C),M=l.setContext(C),K=T.lineWidth,oe=T.color,le=M.dash||[],Z=M.dashOffset,ie=T.tickWidth,fe=T.tickColor,he=T.tickBorderDash||[],Oe=T.tickBorderDashOffset;V=WA(this,R,c),V!==void 0&&(B=Ir(o,V,K),u?L=_=G=F=B:P=U=Q=E=B,b.push({tx1:L,ty1:P,tx2:_,ty2:U,x1:G,y1:Q,x2:F,y2:E,width:K,color:oe,borderDash:le,borderDashOffset:Z,tickWidth:ie,tickColor:fe,tickBorderDash:he,tickBorderDashOffset:Oe}))}return this._ticksLength=p,this._borderValue=I,b}_computeLabelItems(e){const n=this.axis,o=this.options,{position:i,ticks:a}=o,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:h,mirror:p}=a,m=Da(o.grid),b=m+h,y=p?-h:b,v=-Wn(this.labelRotation),w=[];let x,I,R,V,B,L,P,_,U,G,Q,F,E="middle";if(i==="top")L=this.bottom-y,P=this._getXAxisLabelAlignment();else if(i==="bottom")L=this.top+y,P=this._getXAxisLabelAlignment();else if(i==="left"){const D=this._getYAxisLabelAlignment(m);P=D.textAlign,B=D.x}else if(i==="right"){const D=this._getYAxisLabelAlignment(m);P=D.textAlign,B=D.x}else if(n==="x"){if(i==="center")L=(e.top+e.bottom)/2+b;else if(Ve(i)){const D=Object.keys(i)[0],C=i[D];L=this.chart.scales[D].getPixelForValue(C)+b}P=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")B=(e.left+e.right)/2-b;else if(Ve(i)){const D=Object.keys(i)[0],C=i[D];B=this.chart.scales[D].getPixelForValue(C)}P=this._getYAxisLabelAlignment(m).textAlign}n==="y"&&(c==="start"?E="top":c==="end"&&(E="bottom"));const S=this._getLabelSizes();for(x=0,I=l.length;x<I;++x){R=l[x],V=R.label;const D=a.setContext(this.getContext(x));_=this.getPixelForTick(x)+a.labelOffset,U=this._resolveTickFontOptions(x),G=U.lineHeight,Q=Ye(V)?V.length:1;const C=Q/2,T=D.color,M=D.textStrokeColor,K=D.textStrokeWidth;let oe=P;s?(B=_,P==="inner"&&(x===I-1?oe=this.options.reverse?"left":"right":x===0?oe=this.options.reverse?"right":"left":oe="center"),i==="top"?u==="near"||v!==0?F=-Q*G+G/2:u==="center"?F=-S.highest.height/2-C*G+G:F=-S.highest.height+G/2:u==="near"||v!==0?F=G/2:u==="center"?F=S.highest.height/2-C*G:F=S.highest.height-Q*G,p&&(F*=-1),v!==0&&!D.showLabelBackdrop&&(B+=G/2*Math.sin(v))):(L=_,F=(1-Q)*G/2);let le;if(D.showLabelBackdrop){const Z=Ft(D.backdropPadding),ie=S.heights[x],fe=S.widths[x];let he=F-Z.top,Oe=0-Z.left;switch(E){case"middle":he-=ie/2;break;case"bottom":he-=ie;break}switch(P){case"center":Oe-=fe/2;break;case"right":Oe-=fe;break;case"inner":x===I-1?Oe-=fe:x>0&&(Oe-=fe/2);break}le={left:Oe,top:he,width:fe+Z.width,height:ie+Z.height,color:D.backdropColor}}w.push({label:V,font:U,textOffset:F,options:{rotation:v,color:T,strokeColor:M,strokeWidth:K,textAlign:oe,textBaseline:E,translation:[B,L],backdrop:le}})}return w}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Wn(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:o,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),l=e+a,c=s.widest.width;let u,h;return n==="left"?i?(h=this.right+a,o==="near"?u="left":o==="center"?(u="center",h+=c/2):(u="right",h+=c)):(h=this.right-l,o==="near"?u="right":o==="center"?(u="center",h-=c/2):(u="left",h=this.left)):n==="right"?i?(h=this.left+a,o==="near"?u="right":o==="center"?(u="center",h-=c/2):(u="left",h-=c)):(h=this.left+l,o==="near"?u="left":o==="center"?(u="center",h+=c/2):(u="right",h=this.right)):u="right",{textAlign:u,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:o,top:i,width:a,height:s}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(o,i,a,s),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(a=>a.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,o=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,s;const l=(c,u,h)=>{!h.width||!h.color||(o.save(),o.lineWidth=h.width,o.strokeStyle=h.color,o.setLineDash(h.borderDash||[]),o.lineDashOffset=h.borderDashOffset,o.beginPath(),o.moveTo(c.x,c.y),o.lineTo(u.x,u.y),o.stroke(),o.restore())};if(n.display)for(a=0,s=i.length;a<s;++a){const c=i[a];n.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:o,grid:i}}=this,a=o.setContext(this.getContext()),s=o.display?a.width:0;if(!s)return;const l=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let u,h,p,m;this.isHorizontal()?(u=Ir(e,this.left,s)-s/2,h=Ir(e,this.right,l)+l/2,p=m=c):(p=Ir(e,this.top,s)-s/2,m=Ir(e,this.bottom,l)+l/2,u=h=c),n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.beginPath(),n.moveTo(u,p),n.lineTo(h,m),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const o=this.ctx,i=this._computeLabelArea();i&&Ys(o,i);const a=this.getLabelItems(e);for(const s of a){const l=s.options,c=s.font,u=s.label,h=s.textOffset;Or(o,u,0,h,c,l)}i&&Zs(o)}drawTitle(){const{ctx:e,options:{position:n,title:o,reverse:i}}=this;if(!o.display)return;const a=wt(o.font),s=Ft(o.padding),l=o.align;let c=a.lineHeight/2;n==="bottom"||n==="center"||Ve(n)?(c+=s.bottom,Ye(o.text)&&(c+=a.lineHeight*(o.text.length-1))):c+=s.top;const{titleX:u,titleY:h,maxWidth:p,rotation:m}=qA(this,c,n,l);Or(e,o.text,0,0,a,{color:o.color,maxWidth:p,rotation:m,textAlign:XA(l,n,i),textBaseline:"middle",translation:[u,h]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,o=Ce(e.grid&&e.grid.z,-1),i=Ce(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Lr.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:o,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",i=[];let a,s;for(a=0,s=n.length;a<s;++a){const l=n[a];l[o]===this.id&&(!e||l.type===e)&&i.push(l)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return wt(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class fl{constructor(e,n,o){this.type=e,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let o;YA(n)&&(o=this.register(n));const i=this.items,a=e.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in i||(i[a]=e,KA(e,s,o),this.override&&dt.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,o=e.id,i=this.scope;o in n&&delete n[o],i&&o in dt[i]&&(delete dt[i][o],this.override&&delete Pr[o])}}function KA(t,e,n){const o=ao(Object.create(null),[n?dt.get(n):{},dt.get(e),t.defaults]);dt.set(e,o),t.defaultRoutes&&JA(e,t.defaultRoutes),t.descriptors&&dt.describe(e,t.descriptors)}function JA(t,e){Object.keys(e).forEach(n=>{const o=n.split("."),i=o.pop(),a=[t].concat(o).join("."),s=e[n].split("."),l=s.pop(),c=s.join(".");dt.route(a,i,c,l)})}function YA(t){return"id"in t&&"defaults"in t}class ZA{constructor(){this.controllers=new fl(jn,"datasets",!0),this.elements=new fl(Ao,"elements"),this.plugins=new fl(Object,"plugins"),this.scales=new fl(Lr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,o){[...n].forEach(i=>{const a=o||this._getRegistryForType(i);o||a.isForType(i)||a===this.plugins&&i.id?this._exec(e,a,i):We(i,s=>{const l=o||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,n,o){const i=Jc(e);Qe(o["before"+i],[],o),n[e](o),Qe(o["after"+i],[],o)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(e))return o}return this.plugins}_get(e,n,o){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+o+".");return i}}var lo=new ZA;class $A{constructor(){this._init=[]}notify(e,n,o,i){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(a,e,n,o);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,n,o,i){i=i||{};for(const a of e){const s=a.plugin,l=s[o],c=[n,i,a.options];if(Qe(l,c,s)===!1&&i.cancelable)return!1}return!0}invalidate(){Re(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const o=e&&e.config,i=Ce(o.options&&o.options.plugins,{}),a=e8(o);return i===!1&&!n?[]:n8(e,a,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],o=this._cache,i=(a,s)=>a.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(i(n,o),e,"stop"),this._notify(i(o,n),e,"start")}}function e8(t){const e={},n=[],o=Object.keys(lo.plugins.items);for(let a=0;a<o.length;a++)n.push(lo.getPlugin(o[a]));const i=t.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];n.indexOf(s)===-1&&(n.push(s),e[s.id]=!0)}return{plugins:n,localIds:e}}function t8(t,e){return!e&&t===!1?null:t===!0?{}:t}function n8(t,{plugins:e,localIds:n},o,i){const a=[],s=t.getContext();for(const l of e){const c=l.id,u=t8(o[c],i);u!==null&&a.push({plugin:l,options:o8(t.config,{plugin:l,local:n[c]},u,s)})}return a}function o8(t,{plugin:e,local:n},o,i){const a=t.pluginScopeKeys(e),s=t.getOptionScopes(o,a);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ku(t,e){const n=dt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function r8(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function i8(t,e){return t===e?"_index_":"_value_"}function s0(t){if(t==="x"||t==="y"||t==="r")return t}function a8(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function wu(t,...e){if(s0(t))return t;for(const n of e){const o=n.axis||a8(n.position)||t.length>1&&s0(t[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function l0(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function s8(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(o=>o.xAxisID===t||o.yAxisID===t);if(n.length)return l0(t,"x",n[0])||l0(t,"y",n[0])}return{}}function l8(t,e){const n=Pr[t.type]||{scales:{}},o=e.scales||{},i=ku(t.type,e),a=Object.create(null);return Object.keys(o).forEach(s=>{const l=o[s];if(!Ve(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const c=wu(s,l,s8(s,t),dt.scales[l.type]),u=i8(c,i),h=n.scales||{};a[s]=fa(Object.create(null),[{axis:c},l,h[c],h[u]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||ku(l,e),h=(Pr[l]||{}).scales||{};Object.keys(h).forEach(p=>{const m=r8(p,c),b=s[m+"AxisID"]||m;a[b]=a[b]||Object.create(null),fa(a[b],[{axis:m},o[b],h[p]])})}),Object.keys(a).forEach(s=>{const l=a[s];fa(l,[dt.scales[l.type],dt.scale])}),a}function d0(t){const e=t.options||(t.options={});e.plugins=Ce(e.plugins,{}),e.scales=l8(t,e)}function c0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function d8(t){return t=t||{},t.data=c0(t.data),d0(t),t}const u0=new Map,f0=new Set;function pl(t,e){let n=u0.get(t);return n||(n=e(),u0.set(t,n),f0.add(n)),n}const Ba=(t,e,n)=>{const o=tr(e,n);o!==void 0&&t.add(o)};class c8{constructor(e){this._config=d8(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=c0(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),d0(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return pl(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return pl(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return pl(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,o=this.type;return pl(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const o=this._scopeCache;let i=o.get(e);return(!i||n)&&(i=new Map,o.set(e,i)),i}getOptionScopes(e,n,o){const{options:i,type:a}=this,s=this._cachedScopes(e,o),l=s.get(n);if(l)return l;const c=new Set;n.forEach(h=>{e&&(c.add(e),h.forEach(p=>Ba(c,e,p))),h.forEach(p=>Ba(c,i,p)),h.forEach(p=>Ba(c,Pr[a]||{},p)),h.forEach(p=>Ba(c,dt,p)),h.forEach(p=>Ba(c,ou,p))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),f0.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,Pr[n]||{},dt.datasets[n]||{},{type:n},dt,ou]}resolveNamedOptions(e,n,o,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:l}=p0(this._resolverCache,e,i);let c=s;if(f8(s,n)){a.$shared=!1,o=nr(o)?o():o;const u=this.createResolver(e,o,l);c=mi(s,o,u)}for(const u of n)a[u]=c[u];return a}createResolver(e,n,o=[""],i){const{resolver:a}=p0(this._resolverCache,e,o);return Ve(n)?mi(a,n,void 0,i):a}}function p0(t,e,n){let o=t.get(e);o||(o=new Map,t.set(e,o));const i=n.join();let a=o.get(i);return a||(a={resolver:su(e,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},o.set(i,a)),a}const u8=t=>Ve(t)&&Object.getOwnPropertyNames(t).some(e=>nr(t[e]));function f8(t,e){const{isScriptable:n,isIndexable:o}=mg(t);for(const i of e){const a=n(i),s=o(i),l=(s||a)&&t[i];if(a&&(nr(l)||u8(l))||s&&Ye(l))return!0}return!1}var p8="4.4.3";const h8=["top","bottom","left","right","chartArea"];function h0(t,e){return t==="top"||t==="bottom"||h8.indexOf(t)===-1&&e==="x"}function m0(t,e){return function(n,o){return n[t]===o[t]?n[e]-o[e]:n[t]-o[t]}}function g0(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Qe(n&&n.onComplete,[t],e)}function m8(t){const e=t.chart,n=e.options.animation;Qe(n&&n.onProgress,[t],e)}function b0(t){return cu()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hl={},y0=t=>{const e=b0(t);return Object.values(hl).filter(n=>n.canvas===e).pop()};function g8(t,e,n){const o=Object.keys(t);for(const i of o){const a=+i;if(a>=e){const s=t[i];delete t[i],(n>0||a>e)&&(t[a+n]=s)}}}function b8(t,e,n,o){return!n||t.type==="mouseout"?null:o?e:t}function ml(t,e,n){return t.options.clip?t[n]:e[n]}function y8(t,e){const{xScale:n,yScale:o}=t;return n&&o?{left:ml(n,e,"left"),right:ml(n,e,"right"),top:ml(o,e,"top"),bottom:ml(o,e,"bottom")}:e}class Zt{static register(...e){lo.add(...e),v0()}static unregister(...e){lo.remove(...e),v0()}constructor(e,n){const o=this.config=new c8(n),i=b0(e),a=y0(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||FA(i)),this.platform.updateConfig(o);const l=this.platform.acquireContext(i,s.aspectRatio),c=l&&l.canvas,u=c&&c.height,h=c&&c.width;if(this.id=kx(),this.ctx=l,this.canvas=c,this.width=h,this.height=u,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new $A,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Tx(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],hl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Co.listen(this,"complete",g0),Co.listen(this,"progress",m8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:o,height:i,_aspectRatio:a}=this;return Re(e)?n&&a?a:i?o/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return lo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fg(this.canvas,this.ctx),this}stop(){return Co.stop(this),this}resize(e,n){Co.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const o=this.options,i=this.canvas,a=o.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,n,a),l=o.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,xg(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Qe(o.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};We(n,(o,i)=>{o.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,o=this.scales,i=Object.keys(o).reduce((s,l)=>(s[l]=!1,s),{});let a=[];n&&(a=a.concat(Object.keys(n).map(s=>{const l=n[s],c=wu(s,l),u=c==="r",h=c==="x";return{options:l,dposition:u?"chartArea":h?"bottom":"left",dtype:u?"radialLinear":h?"category":"linear"}}))),We(a,s=>{const l=s.options,c=l.id,u=wu(c,l),h=Ce(l.type,s.dtype);(l.position===void 0||h0(l.position,u)!==h0(s.dposition))&&(l.position=s.dposition),i[c]=!0;let p=null;if(c in o&&o[c].type===h)p=o[c];else{const m=lo.getScale(h);p=new m({id:c,type:h,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(l,e)}),We(i,(s,l)=>{s||delete o[l]}),We(o,s=>{_t.configure(this,s,s.options),_t.addBox(this,s)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,o=e.length;if(e.sort((i,a)=>i.index-a.index),o>n){for(let i=n;i<o;++i)this._destroyDatasetMeta(i);e.splice(n,o-n)}this._sortedMetasets=e.slice(0).sort(m0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((o,i)=>{n.filter(a=>a===o._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let o,i;for(this._removeUnreferencedMetasets(),o=0,i=n.length;o<i;o++){const a=n[o];let s=this.getDatasetMeta(o);const l=a.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(o),s=this.getDatasetMeta(o)),s.type=l,s.indexAxis=a.indexAxis||ku(l,this.options),s.order=a.order||0,s.index=o,s.label=""+a.label,s.visible=this.isDatasetVisible(o),s.controller)s.controller.updateIndex(o),s.controller.linkScales();else{const c=lo.getController(l),{datasetElementType:u,dataElementType:h}=dt.datasets[l];Object.assign(c,{dataElementType:lo.getElement(h),datasetElementType:u&&lo.getElement(u)}),s.controller=new c(this,o),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){We(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let u=0,h=this.data.datasets.length;u<h;u++){const{controller:p}=this.getDatasetMeta(u),m=!i&&a.indexOf(p)===-1;p.buildOrUpdateElements(m),s=Math.max(+p.getMaxOverflow(),s)}s=this._minPadding=o.layout.autoPadding?s:0,this._updateLayout(s),i||We(a,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(m0("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){We(this.scales,e=>{_t.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!qm(n,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:i,count:a}of n){const s=o==="_removeElements"?-a:a;g8(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=a=>new Set(e.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),i=o(0);for(let a=1;a<n;a++)if(!qm(i,o(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;_t.update(this,this.width,this.height,e);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],We(this.boxes,i=>{o&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,nr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const o=this.getDatasetMeta(e),i={meta:o,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(o.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Co.has(this)?this.attached&&!Co.running(this)&&Co.start(this):(this.draw(),g0({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:o,height:i}=this._resizeBeforeDraw;this._resize(o,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,o=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];(!e||s.visible)&&o.push(s)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,o=e._clip,i=!o.disabled,a=y8(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Ys(n,{left:o.left===!1?0:a.left-o.left,right:o.right===!1?this.width:a.right+o.right,top:o.top===!1?0:a.top-o.top,bottom:o.bottom===!1?this.height:a.bottom+o.bottom}),e.controller.draw(),i&&Zs(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return xo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,o,i){const a=hA.modes[n];return typeof a=="function"?a(this,e,o,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],o=this._metasets;let i=o.filter(a=>a&&a._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},o.push(i)),i}getContext(){return this.$context||(this.$context=rr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const o=this.getDatasetMeta(e);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(e,n){const o=this.getDatasetMeta(e);o.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,o){const i=o?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,i);pa(n)?(a.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),s.update(a,{visible:o}),this.update(l=>l.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Co.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),fg(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete hl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,o=(a,s)=>{n.addEventListener(this,a,s),e[a]=s},i=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};We(this.options.events,a=>o(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,o=(c,u)=>{n.addEventListener(this,c,u),e[c]=u},i=(c,u)=>{e[c]&&(n.removeEventListener(this,c,u),delete e[c])},a=(c,u)=>{this.canvas&&this.resize(c,u)};let s;const l=()=>{i("attach",l),this.attached=!0,this.resize(),o("resize",a),o("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),o("attach",l)},n.isAttached(this.canvas)?l():s()}unbindEvents(){We(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},We(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,o){const i=o?"set":"remove";let a,s,l,c;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=e.length;l<c;++l){s=e[l];const u=s&&this.getDatasetMeta(s.datasetIndex).controller;u&&u[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],o=e.map(({datasetIndex:a,index:s})=>{const l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Gs(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(e,n,o){return this._plugins.notify(this,e,n,o)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,o){const i=this.options.hover,a=(c,u)=>c.filter(h=>!u.some(p=>h.datasetIndex===p.datasetIndex&&h.index===p.index)),s=a(n,e),l=o?e:a(e,n);s.length&&this.updateHoverStyle(s,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(e,n){const o={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",o,i)===!1)return;const a=this._handleEvent(e,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,i),(a||o.changed)&&this.render(),this}_handleEvent(e,n,o){const{_active:i=[],options:a}=this,s=n,l=this._getActiveElements(e,i,o,s),c=Ex(e),u=b8(e,this._lastEvent,o,c);o&&(this._lastEvent=null,Qe(a.onHover,[e,l,this],this),c&&Qe(a.onClick,[e,l,this],this));const h=!Gs(l,i);return(h||n)&&(this._active=l,this._updateHoverStyles(l,i,n)),this._lastEvent=u,h}_getActiveElements(e,n,o,i){if(e.type==="mouseout")return[];if(!o)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,i)}}ae(Zt,"defaults",dt),ae(Zt,"instances",hl),ae(Zt,"overrides",Pr),ae(Zt,"registry",lo),ae(Zt,"version",p8),ae(Zt,"getChart",y0);function v0(){return We(Zt.instances,t=>t._plugins.invalidate())}function v8(t,e,n){const{startAngle:o,pixelMargin:i,x:a,y:s,outerRadius:l,innerRadius:c}=e;let u=i/l;t.beginPath(),t.arc(a,s,l,o-u,n+u),c>i?(u=i/c,t.arc(a,s,c,n+u,o-u,!0)):t.arc(a,s,i,n+gt,o-gt),t.closePath(),t.clip()}function k8(t){return au(t,["outerStart","outerEnd","innerStart","innerEnd"])}function w8(t,e,n,o){const i=k8(t.options.borderRadius),a=(n-e)/2,s=Math.min(a,o*e/2),l=c=>{const u=(n-Math.min(a,c))*o/2;return Bt(c,0,Math.min(a,u))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:Bt(i.innerStart,0,s),innerEnd:Bt(i.innerEnd,0,s)}}function yi(t,e,n,o){return{x:n+t*Math.cos(e),y:o+t*Math.sin(e)}}function gl(t,e,n,o,i,a){const{x:s,y:l,startAngle:c,pixelMargin:u,innerRadius:h}=e,p=Math.max(e.outerRadius+o+n-u,0),m=h>0?h+o+n+u:0;let b=0;const y=i-c;if(o){const D=h>0?h-o:0,C=p>0?p-o:0,T=(D+C)/2,M=T!==0?y*T/(T+o):y;b=(y-M)/2}const v=Math.max(.001,y*p-n/Ze)/p,w=(y-v)/2,x=c+w+b,I=i-w-b,{outerStart:R,outerEnd:V,innerStart:B,innerEnd:L}=w8(e,m,p,I-x),P=p-R,_=p-V,U=x+R/P,G=I-V/_,Q=m+B,F=m+L,E=x+B/Q,S=I-L/F;if(t.beginPath(),a){const D=(U+G)/2;if(t.arc(s,l,p,U,D),t.arc(s,l,p,D,G),V>0){const K=yi(_,G,s,l);t.arc(K.x,K.y,V,G,I+gt)}const C=yi(F,I,s,l);if(t.lineTo(C.x,C.y),L>0){const K=yi(F,S,s,l);t.arc(K.x,K.y,L,I+gt,S+Math.PI)}const T=(I-L/m+(x+B/m))/2;if(t.arc(s,l,m,I-L/m,T,!0),t.arc(s,l,m,T,x+B/m,!0),B>0){const K=yi(Q,E,s,l);t.arc(K.x,K.y,B,E+Math.PI,x-gt)}const M=yi(P,x,s,l);if(t.lineTo(M.x,M.y),R>0){const K=yi(P,U,s,l);t.arc(K.x,K.y,R,x-gt,U)}}else{t.moveTo(s,l);const D=Math.cos(U)*p+s,C=Math.sin(U)*p+l;t.lineTo(D,C);const T=Math.cos(G)*p+s,M=Math.sin(G)*p+l;t.lineTo(T,M)}t.closePath()}function S8(t,e,n,o,i){const{fullCircles:a,startAngle:s,circumference:l}=e;let c=e.endAngle;if(a){gl(t,e,n,o,c,i);for(let u=0;u<a;++u)t.fill();isNaN(l)||(c=s+(l%$e||$e))}return gl(t,e,n,o,c,i),t.fill(),c}function x8(t,e,n,o,i){const{fullCircles:a,startAngle:s,circumference:l,options:c}=e,{borderWidth:u,borderJoinStyle:h,borderDash:p,borderDashOffset:m}=c,b=c.borderAlign==="inner";if(!u)return;t.setLineDash(p||[]),t.lineDashOffset=m,b?(t.lineWidth=u*2,t.lineJoin=h||"round"):(t.lineWidth=u,t.lineJoin=h||"bevel");let y=e.endAngle;if(a){gl(t,e,n,o,y,i);for(let v=0;v<a;++v)t.stroke();isNaN(l)||(y=s+(l%$e||$e))}b&&v8(t,e,y),a||(gl(t,e,n,o,y,i),t.stroke())}class vi extends Ao{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,i){const a=this.getProps(["x","y"],i),{angle:s,distance:l}=$m(a,{x:n,y:o}),{startAngle:c,endAngle:u,innerRadius:h,outerRadius:p,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),b=(this.options.spacing+this.options.borderWidth)/2,v=Ce(m,u-c)>=$e||ma(s,c,u),w=wo(l,h+b,p+b);return v&&w}getCenterPoint(n){const{x:o,y:i,startAngle:a,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:h}=this.options,p=(a+s)/2,m=(l+c+h+u)/2;return{x:o+Math.cos(p)*m,y:i+Math.sin(p)*m}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:i}=this,a=(o.offset||0)/4,s=(o.spacing||0)/2,l=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=i>$e?Math.floor(i/$e):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*a,Math.sin(c)*a);const u=1-Math.sin(Math.min(Ze,i||0)),h=a*u;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,S8(n,this,h,s,l),x8(n,this,h,s,l),n.restore()}}ae(vi,"id","arc"),ae(vi,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(vi,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(vi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function k0(t,e,n=e){t.lineCap=Ce(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Ce(n.borderDash,e.borderDash)),t.lineDashOffset=Ce(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Ce(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Ce(n.borderWidth,e.borderWidth),t.strokeStyle=Ce(n.borderColor,e.borderColor)}function C8(t,e,n){t.lineTo(n.x,n.y)}function A8(t){return t.stepped?qx:t.tension||t.cubicInterpolationMode==="monotone"?Kx:C8}function w0(t,e,n={}){const o=t.length,{start:i=0,end:a=o-1}=n,{start:s,end:l}=e,c=Math.max(i,s),u=Math.min(a,l),h=i<s&&a<s||i>l&&a>l;return{count:o,start:c,loop:e.loop,ilen:u<c&&!h?o+u-c:u-c}}function E8(t,e,n,o){const{points:i,options:a}=e,{count:s,start:l,loop:c,ilen:u}=w0(i,n,o),h=A8(a);let{move:p=!0,reverse:m}=o||{},b,y,v;for(b=0;b<=u;++b)y=i[(l+(m?u-b:b))%s],!y.skip&&(p?(t.moveTo(y.x,y.y),p=!1):h(t,v,y,m,a.stepped),v=y);return c&&(y=i[(l+(m?u:0))%s],h(t,v,y,m,a.stepped)),!!c}function D8(t,e,n,o){const i=e.points,{count:a,start:s,ilen:l}=w0(i,n,o),{move:c=!0,reverse:u}=o||{};let h=0,p=0,m,b,y,v,w,x;const I=V=>(s+(u?l-V:V))%a,R=()=>{v!==w&&(t.lineTo(h,w),t.lineTo(h,v),t.lineTo(h,x))};for(c&&(b=i[I(0)],t.moveTo(b.x,b.y)),m=0;m<=l;++m){if(b=i[I(m)],b.skip)continue;const V=b.x,B=b.y,L=V|0;L===y?(B<v?v=B:B>w&&(w=B),h=(p*h+V)/++p):(R(),t.lineTo(V,B),y=L,p=0,v=w=B),x=B}R()}function Su(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?D8:E8}function B8(t){return t.stepped?DC:t.tension||t.cubicInterpolationMode==="monotone"?BC:Fr}function P8(t,e,n,o){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,o)&&i.closePath()),k0(t,e.options),t.stroke(i)}function I8(t,e,n,o){const{segments:i,options:a}=e,s=Su(e);for(const l of i)k0(t,a,l.style),t.beginPath(),s(t,e,l,{start:n,end:n+o-1})&&t.closePath(),t.stroke()}const O8=typeof Path2D=="function";function N8(t,e,n,o){O8&&!e.options.segment?P8(t,e,n,o):I8(t,e,n,o)}class ir extends Ao{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const i=o.spanGaps?this._loop:this._fullLoop;vC(this._points,o,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=VC(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,o=e.length;return o&&n[e[o-1].end]}interpolate(e,n){const o=this.options,i=e[n],a=this.points,s=Ig(this,{property:n,start:i,end:i});if(!s.length)return;const l=[],c=B8(o);let u,h;for(u=0,h=s.length;u<h;++u){const{start:p,end:m}=s[u],b=a[p],y=a[m];if(b===y){l.push(b);continue}const v=Math.abs((i-b[n])/(y[n]-b[n])),w=c(b,y,v,o.stepped);w[n]=e[n],l.push(w)}return l.length===1?l[0]:l}pathSegment(e,n,o){return Su(this)(e,this,n,o)}path(e,n,o){const i=this.segments,a=Su(this);let s=this._loop;n=n||0,o=o||this.points.length-n;for(const l of i)s&=a(e,this,l,{start:n,end:n+o-1});return!!s}draw(e,n,o,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),N8(e,this,o,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(ir,"id","line"),ae(ir,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(ir,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(ir,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function S0(t,e,n,o){const i=t.options,{[n]:a}=t.getProps([n],o);return Math.abs(e-a)<i.radius+i.hitRadius}class Pa extends Ao{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,i){const a=this.options,{x:s,y:l}=this.getProps(["x","y"],i);return Math.pow(n-s,2)+Math.pow(o-l,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(n,o){return S0(this,n,"x",o)}inYRange(n,o){return S0(this,n,"y",o)}getCenterPoint(n){const{x:o,y:i}=this.getProps(["x","y"],n);return{x:o,y:i}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const i=o&&n.borderWidth||0;return(o+i)*2}draw(n,o){const i=this.options;this.skip||i.radius<.1||!xo(this,o,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,iu(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(Pa,"id","point"),ae(Pa,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(Pa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function x0(t,e){const{x:n,y:o,base:i,width:a,height:s}=t.getProps(["x","y","base","width","height"],e);let l,c,u,h,p;return t.horizontal?(p=s/2,l=Math.min(n,i),c=Math.max(n,i),u=o-p,h=o+p):(p=a/2,l=n-p,c=n+p,u=Math.min(o,i),h=Math.max(o,i)),{left:l,top:u,right:c,bottom:h}}function ar(t,e,n,o){return t?0:Bt(e,n,o)}function R8(t,e,n){const o=t.options.borderWidth,i=t.borderSkipped,a=hg(o);return{t:ar(i.top,a.top,0,n),r:ar(i.right,a.right,0,e),b:ar(i.bottom,a.bottom,0,n),l:ar(i.left,a.left,0,e)}}function V8(t,e,n){const{enableBorderRadius:o}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,a=Nr(i),s=Math.min(e,n),l=t.borderSkipped,c=o||Ve(i);return{topLeft:ar(!c||l.top||l.left,a.topLeft,0,s),topRight:ar(!c||l.top||l.right,a.topRight,0,s),bottomLeft:ar(!c||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:ar(!c||l.bottom||l.right,a.bottomRight,0,s)}}function F8(t){const e=x0(t),n=e.right-e.left,o=e.bottom-e.top,i=R8(t,n/2,o/2),a=V8(t,n/2,o/2);return{outer:{x:e.left,y:e.top,w:n,h:o,radius:a},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:o-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function xu(t,e,n,o){const i=e===null,a=n===null,l=t&&!(i&&a)&&x0(t,o);return l&&(i||wo(e,l.left,l.right))&&(a||wo(n,l.top,l.bottom))}function T8(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function M8(t,e){t.rect(e.x,e.y,e.w,e.h)}function Cu(t,e,n={}){const o=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-o,s=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+o,y:t.y+i,w:t.w+a,h:t.h+s,radius:t.radius}}class Ia extends Ao{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:o,backgroundColor:i}}=this,{inner:a,outer:s}=F8(this),l=T8(s.radius)?va:M8;e.save(),(s.w!==a.w||s.h!==a.h)&&(e.beginPath(),l(e,Cu(s,n,a)),e.clip(),l(e,Cu(a,-n,s)),e.fillStyle=o,e.fill("evenodd")),e.beginPath(),l(e,Cu(a,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,o){return xu(this,e,n,o)}inXRange(e,n){return xu(this,e,null,n)}inYRange(e,n){return xu(this,null,e,n)}getCenterPoint(e){const{x:n,y:o,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(n+i)/2:n,y:a?o:(o+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}ae(Ia,"id","bar"),ae(Ia,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(Ia,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var L8=Object.freeze({__proto__:null,ArcElement:vi,BarElement:Ia,LineElement:ir,PointElement:Pa});const Au=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],C0=Au.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function A0(t){return Au[t%Au.length]}function E0(t){return C0[t%C0.length]}function z8(t,e){return t.borderColor=A0(e),t.backgroundColor=E0(e),++e}function _8(t,e){return t.backgroundColor=t.data.map(()=>A0(e++)),e}function H8(t,e){return t.backgroundColor=t.data.map(()=>E0(e++)),e}function U8(t){let e=0;return(n,o)=>{const i=t.getDatasetMeta(o).controller;i instanceof Tr?e=_8(n,e):i instanceof wa?e=H8(n,e):i&&(e=z8(n,e))}}function D0(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function W8(t){return t&&(t.borderColor||t.backgroundColor)}var j8={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:o},options:i}=t.config,{elements:a}=i;if(!n.forceOverride&&(D0(o)||W8(i)||a&&D0(a)))return;const s=U8(t);o.forEach(s)}};function G8(t,e,n,o,i){const a=i.samples||o;if(a>=n)return t.slice(e,e+n);const s=[],l=(n-2)/(a-2);let c=0;const u=e+n-1;let h=e,p,m,b,y,v;for(s[c++]=t[h],p=0;p<a-2;p++){let w=0,x=0,I;const R=Math.floor((p+1)*l)+1+e,V=Math.min(Math.floor((p+2)*l)+1,n)+e,B=V-R;for(I=R;I<V;I++)w+=t[I].x,x+=t[I].y;w/=B,x/=B;const L=Math.floor(p*l)+1+e,P=Math.min(Math.floor((p+1)*l)+1,n)+e,{x:_,y:U}=t[h];for(b=y=-1,I=L;I<P;I++)y=.5*Math.abs((_-w)*(t[I].y-U)-(_-t[I].x)*(x-U)),y>b&&(b=y,m=t[I],v=I);s[c++]=m,h=v}return s[c++]=t[u],s}function Q8(t,e,n,o){let i=0,a=0,s,l,c,u,h,p,m,b,y,v;const w=[],x=e+n-1,I=t[e].x,V=t[x].x-I;for(s=e;s<e+n;++s){l=t[s],c=(l.x-I)/V*o,u=l.y;const B=c|0;if(B===h)u<y?(y=u,p=s):u>v&&(v=u,m=s),i=(a*i+l.x)/++a;else{const L=s-1;if(!Re(p)&&!Re(m)){const P=Math.min(p,m),_=Math.max(p,m);P!==b&&P!==L&&w.push({...t[P],x:i}),_!==b&&_!==L&&w.push({...t[_],x:i})}s>0&&L!==b&&w.push(t[L]),w.push(l),h=B,a=0,y=v=u,p=m=b=s}}return w}function B0(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function P0(t){t.data.datasets.forEach(e=>{B0(e)})}function X8(t,e){const n=e.length;let o=0,i;const{iScale:a}=t,{min:s,max:l,minDefined:c,maxDefined:u}=a.getUserBounds();return c&&(o=Bt(So(e,a.axis,s).lo,0,n-1)),u?i=Bt(So(e,a.axis,l).hi+1,o,n)-o:i=n-o,{start:o,count:i}}var q8={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){P0(t);return}const o=t.width;t.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:l}=i,c=t.getDatasetMeta(a),u=s||i.data;if(et([l,t.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;const h=t.scales[c.xAxisID];if(h.type!=="linear"&&h.type!=="time"||t.options.parsing)return;let{start:p,count:m}=X8(c,u);const b=n.threshold||4*o;if(m<=b){B0(i);return}Re(s)&&(i._data=u,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let y;switch(n.algorithm){case"lttb":y=G8(u,p,m,o,n);break;case"min-max":y=Q8(u,p,m,o);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=y})},destroy(t){P0(t)}};function K8(t,e,n){const o=t.segments,i=t.points,a=e.points,s=[];for(const l of o){let{start:c,end:u}=l;u=Du(c,u,i);const h=Eu(n,i[c],i[u],l.loop);if(!e.segments){s.push({source:l,target:h,start:i[c],end:i[u]});continue}const p=Ig(e,h);for(const m of p){const b=Eu(n,a[m.start],a[m.end],m.loop),y=Pg(l,i,b);for(const v of y)s.push({source:v,target:m,start:{[n]:I0(h,b,"start",Math.max)},end:{[n]:I0(h,b,"end",Math.min)}})}}return s}function Eu(t,e,n,o){if(o)return;let i=e[t],a=n[t];return t==="angle"&&(i=bn(i),a=bn(a)),{property:t,start:i,end:a}}function J8(t,e){const{x:n=null,y:o=null}=t||{},i=e.points,a=[];return e.segments.forEach(({start:s,end:l})=>{l=Du(s,l,i);const c=i[s],u=i[l];o!==null?(a.push({x:c.x,y:o}),a.push({x:u.x,y:o})):n!==null&&(a.push({x:n,y:c.y}),a.push({x:n,y:u.y}))}),a}function Du(t,e,n){for(;e>t;e--){const o=n[e];if(!isNaN(o.x)&&!isNaN(o.y))break}return e}function I0(t,e,n,o){return t&&e?o(t[n],e[n]):t?t[n]:e?e[n]:0}function O0(t,e){let n=[],o=!1;return Ye(t)?(o=!0,n=t):n=J8(t,e),n.length?new ir({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function N0(t){return t&&t.fill!==!1}function Y8(t,e,n){let i=t[e].fill;const a=[e];let s;if(!n)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!ht(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function Z8(t,e,n){const o=n4(t);if(Ve(o))return isNaN(o.value)?!1:o;let i=parseFloat(o);return ht(i)&&Math.floor(i)===i?$8(o[0],e,i,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function $8(t,e,n,o){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=o?!1:n}function e4(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:Ve(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function t4(t,e,n){let o;return t==="start"?o=n:t==="end"?o=e.options.reverse?e.min:e.max:Ve(t)?o=t.value:o=e.getBaseValue(),o}function n4(t){const e=t.options,n=e.fill;let o=Ce(n&&n.target,n);return o===void 0&&(o=!!e.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function o4(t){const{scale:e,index:n,line:o}=t,i=[],a=o.segments,s=o.points,l=r4(e,n);l.push(O0({x:null,y:e.bottom},o));for(let c=0;c<a.length;c++){const u=a[c];for(let h=u.start;h<=u.end;h++)i4(i,s[h],l)}return new ir({points:i,options:{}})}function r4(t,e){const n=[],o=t.getMatchingVisibleMetas("line");for(let i=0;i<o.length;i++){const a=o[i];if(a.index===e)break;a.hidden||n.unshift(a.dataset)}return n}function i4(t,e,n){const o=[];for(let i=0;i<n.length;i++){const a=n[i],{first:s,last:l,point:c}=a4(a,e,"x");if(!(!c||s&&l)){if(s)o.unshift(c);else if(t.push(c),!l)break}}t.push(...o)}function a4(t,e,n){const o=t.interpolate(e,n);if(!o)return{};const i=o[n],a=t.segments,s=t.points;let l=!1,c=!1;for(let u=0;u<a.length;u++){const h=a[u],p=s[h.start][n],m=s[h.end][n];if(wo(i,p,m)){l=i===p,c=i===m;break}}return{first:l,last:c,point:o}}class R0{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,o){const{x:i,y:a,radius:s}=this;return n=n||{start:0,end:$e},e.arc(i,a,s,n.end,n.start,!0),!o.bounds}interpolate(e){const{x:n,y:o,radius:i}=this,a=e.angle;return{x:n+Math.cos(a)*i,y:o+Math.sin(a)*i,angle:a}}}function s4(t){const{chart:e,fill:n,line:o}=t;if(ht(n))return l4(e,n);if(n==="stack")return o4(t);if(n==="shape")return!0;const i=d4(t);return i instanceof R0?i:O0(i,o)}function l4(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function d4(t){return(t.scale||{}).getPointPositionForValue?u4(t):c4(t)}function c4(t){const{scale:e={},fill:n}=t,o=e4(n,e);if(ht(o)){const i=e.isHorizontal();return{x:i?o:null,y:i?null:o}}return null}function u4(t){const{scale:e,fill:n}=t,o=e.options,i=e.getLabels().length,a=o.reverse?e.max:e.min,s=t4(n,e,a),l=[];if(o.grid.circular){const c=e.getPointPositionForValue(0,a);return new R0({x:c.x,y:c.y,radius:e.getDistanceFromCenterForValue(s)})}for(let c=0;c<i;++c)l.push(e.getPointPositionForValue(c,s));return l}function Bu(t,e,n){const o=s4(e),{line:i,scale:a,axis:s}=e,l=i.options,c=l.fill,u=l.backgroundColor,{above:h=u,below:p=u}=c||{};o&&i.points.length&&(Ys(t,n),f4(t,{line:i,target:o,above:h,below:p,area:n,scale:a,axis:s}),Zs(t))}function f4(t,e){const{line:n,target:o,above:i,below:a,area:s,scale:l}=e,c=n._loop?"angle":e.axis;t.save(),c==="x"&&a!==i&&(V0(t,o,s.top),F0(t,{line:n,target:o,color:i,scale:l,property:c}),t.restore(),t.save(),V0(t,o,s.bottom)),F0(t,{line:n,target:o,color:a,scale:l,property:c}),t.restore()}function V0(t,e,n){const{segments:o,points:i}=e;let a=!0,s=!1;t.beginPath();for(const l of o){const{start:c,end:u}=l,h=i[c],p=i[Du(c,u,i)];a?(t.moveTo(h.x,h.y),a=!1):(t.lineTo(h.x,n),t.lineTo(h.x,h.y)),s=!!e.pathSegment(t,l,{move:s}),s?t.closePath():t.lineTo(p.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function F0(t,e){const{line:n,target:o,property:i,color:a,scale:s}=e,l=K8(n,o,i);for(const{source:c,target:u,start:h,end:p}of l){const{style:{backgroundColor:m=a}={}}=c,b=o!==!0;t.save(),t.fillStyle=m,p4(t,s,b&&Eu(i,h,p)),t.beginPath();const y=!!n.pathSegment(t,c);let v;if(b){y?t.closePath():T0(t,o,p,i);const w=!!o.pathSegment(t,u,{move:y,reverse:!0});v=y&&w,v||T0(t,o,h,i)}t.closePath(),t.fill(v?"evenodd":"nonzero"),t.restore()}}function p4(t,e,n){const{top:o,bottom:i}=e.chart.chartArea,{property:a,start:s,end:l}=n||{};a==="x"&&(t.beginPath(),t.rect(s,o,l-s,i-o),t.clip())}function T0(t,e,n,o){const i=e.interpolate(n,o);i&&t.lineTo(i.x,i.y)}var h4={id:"filler",afterDatasetsUpdate(t,e,n){const o=(t.data.datasets||[]).length,i=[];let a,s,l,c;for(s=0;s<o;++s)a=t.getDatasetMeta(s),l=a.dataset,c=null,l&&l.options&&l instanceof ir&&(c={visible:t.isDatasetVisible(s),index:s,fill:Z8(l,s,o),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:l}),a.$filler=c,i.push(c);for(s=0;s<o;++s)c=i[s],!(!c||c.fill===!1)&&(c.fill=Y8(i,s,n.propagate))},beforeDraw(t,e,n){const o=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let s=i.length-1;s>=0;--s){const l=i[s].$filler;l&&(l.line.updateControlPoints(a,l.axis),o&&l.fill&&Bu(t.ctx,l,a))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=t.getSortedVisibleDatasetMetas();for(let i=o.length-1;i>=0;--i){const a=o[i].$filler;N0(a)&&Bu(t.ctx,a,t.chartArea)}},beforeDatasetDraw(t,e,n){const o=e.meta.$filler;!N0(o)||n.drawTime!=="beforeDatasetDraw"||Bu(t.ctx,o,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const M0=(t,e)=>{let{boxHeight:n=e,boxWidth:o=e}=t;return t.usePointStyle&&(n=Math.min(n,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(e,n)}},m4=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class L0 extends Ao{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,o){this.maxWidth=e,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Qe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(o=>e.filter(o,this.chart.data))),e.sort&&(n=n.sort((o,i)=>e.sort(o,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const o=e.labels,i=wt(o.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=M0(o,a);let u,h;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,h=this._fitRows(s,a,l,c)+10):(h=this.maxHeight,u=this._fitCols(s,i,l,c)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(h,e.maxHeight||this.maxHeight)}_fitRows(e,n,o,i){const{ctx:a,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],h=i+l;let p=e;a.textAlign="left",a.textBaseline="middle";let m=-1,b=-h;return this.legendItems.forEach((y,v)=>{const w=o+n/2+a.measureText(y.text).width;(v===0||u[u.length-1]+w+2*l>s)&&(p+=h,u[u.length-(v>0?0:1)]=0,b+=h,m++),c[v]={left:0,top:b,row:m,width:w,height:i},u[u.length-1]+=w+l}),p}_fitCols(e,n,o,i){const{ctx:a,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],h=s-e;let p=l,m=0,b=0,y=0,v=0;return this.legendItems.forEach((w,x)=>{const{itemWidth:I,itemHeight:R}=g4(o,n,a,w,i);x>0&&b+R+2*l>h&&(p+=m+l,u.push({width:m,height:b}),y+=m+l,v++,m=b=0),c[x]={left:y,top:b,col:v,width:I,height:R},m=Math.max(m,I),b+=R+l}),p+=m,u.push({width:m,height:b}),p}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:i},rtl:a}}=this,s=bi(a,this.left,this.width);if(this.isHorizontal()){let l=0,c=zt(o,this.left+i,this.right-this.lineWidths[l]);for(const u of n)l!==u.row&&(l=u.row,c=zt(o,this.left+i,this.right-this.lineWidths[l])),u.top+=this.top+e+i,u.left=s.leftForLtr(s.x(c),u.width),c+=u.width+i}else{let l=0,c=zt(o,this.top+e+i,this.bottom-this.columnSizes[l].height);for(const u of n)u.col!==l&&(l=u.col,c=zt(o,this.top+e+i,this.bottom-this.columnSizes[l].height)),u.top=c,u.left+=this.left+i,u.left=s.leftForLtr(s.x(u.left),u.width),c+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ys(e,this),this._draw(),Zs(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:o,ctx:i}=this,{align:a,labels:s}=e,l=dt.color,c=bi(e.rtl,this.left,this.width),u=wt(s.font),{padding:h}=s,p=u.size,m=p/2;let b;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:y,boxHeight:v,itemHeight:w}=M0(s,p),x=function(L,P,_){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;i.save();const U=Ce(_.lineWidth,1);if(i.fillStyle=Ce(_.fillStyle,l),i.lineCap=Ce(_.lineCap,"butt"),i.lineDashOffset=Ce(_.lineDashOffset,0),i.lineJoin=Ce(_.lineJoin,"miter"),i.lineWidth=U,i.strokeStyle=Ce(_.strokeStyle,l),i.setLineDash(Ce(_.lineDash,[])),s.usePointStyle){const G={radius:v*Math.SQRT2/2,pointStyle:_.pointStyle,rotation:_.rotation,borderWidth:U},Q=c.xPlus(L,y/2),F=P+m;pg(i,G,Q,F,s.pointStyleWidth&&y)}else{const G=P+Math.max((p-v)/2,0),Q=c.leftForLtr(L,y),F=Nr(_.borderRadius);i.beginPath(),Object.values(F).some(E=>E!==0)?va(i,{x:Q,y:G,w:y,h:v,radius:F}):i.rect(Q,G,y,v),i.fill(),U!==0&&i.stroke()}i.restore()},I=function(L,P,_){Or(i,_.text,L,P+w/2,u,{strikethrough:_.hidden,textAlign:c.textAlign(_.textAlign)})},R=this.isHorizontal(),V=this._computeTitleHeight();R?b={x:zt(a,this.left+h,this.right-o[0]),y:this.top+h+V,line:0}:b={x:this.left+h,y:zt(a,this.top+V+h,this.bottom-n[0].height),line:0},Ag(this.ctx,e.textDirection);const B=w+h;this.legendItems.forEach((L,P)=>{i.strokeStyle=L.fontColor,i.fillStyle=L.fontColor;const _=i.measureText(L.text).width,U=c.textAlign(L.textAlign||(L.textAlign=s.textAlign)),G=y+m+_;let Q=b.x,F=b.y;c.setWidth(this.width),R?P>0&&Q+G+h>this.right&&(F=b.y+=B,b.line++,Q=b.x=zt(a,this.left+h,this.right-o[b.line])):P>0&&F+B>this.bottom&&(Q=b.x=Q+n[b.line].width+h,b.line++,F=b.y=zt(a,this.top+V+h,this.bottom-n[b.line].height));const E=c.x(Q);if(x(E,F,L),Q=Mx(U,Q+y+m,R?Q+G:this.right,e.rtl),I(c.x(Q),F,L),R)b.x+=G+h;else if(typeof L.text!="string"){const S=u.lineHeight;b.y+=z0(L,S)+h}else b.y+=B}),Eg(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,o=wt(n.font),i=Ft(n.padding);if(!n.display)return;const a=bi(e.rtl,this.left,this.width),s=this.ctx,l=n.position,c=o.size/2,u=i.top+c;let h,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),h=this.top+u,p=zt(e.align,p,this.right-m);else{const y=this.columnSizes.reduce((v,w)=>Math.max(v,w.height),0);h=u+zt(e.align,this.top,this.bottom-y-e.labels.padding-this._computeTitleHeight())}const b=zt(l,p,p+m);s.textAlign=a.textAlign(eu(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,Or(s,n.text,b,h,o)}_computeTitleHeight(){const e=this.options.title,n=wt(e.font),o=Ft(e.padding);return e.display?n.lineHeight+o.height:0}_getLegendItemAt(e,n){let o,i,a;if(wo(e,this.left,this.right)&&wo(n,this.top,this.bottom)){for(a=this.legendHitBoxes,o=0;o<a.length;++o)if(i=a[o],wo(e,i.left,i.left+i.width)&&wo(n,i.top,i.top+i.height))return this.legendItems[o]}return null}handleEvent(e){const n=this.options;if(!v4(e.type,n))return;const o=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,a=m4(i,o);i&&!a&&Qe(n.onLeave,[e,i,this],this),this._hoveredItem=o,o&&!a&&Qe(n.onHover,[e,o,this],this)}else o&&Qe(n.onClick,[e,o,this],this)}}function g4(t,e,n,o,i){const a=b4(o,t,e,n),s=y4(i,o,e.lineHeight);return{itemWidth:a,itemHeight:s}}function b4(t,e,n,o){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),e+n.size/2+o.measureText(i).width}function y4(t,e,n){let o=t;return typeof e.text!="string"&&(o=z0(e,n)),o}function z0(t,e){const n=t.text?t.text.length:0;return e*n}function v4(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var k4={id:"legend",_element:L0,start(t,e,n){const o=t.legend=new L0({ctx:t.ctx,options:n,chart:t});_t.configure(t,o,n),_t.addBox(t,o)},stop(t){_t.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const o=t.legend;_t.configure(t,o,n),o.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const o=e.datasetIndex,i=n.chart;i.isDatasetVisible(o)?(i.hide(o),e.hidden=!0):(i.show(o),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:i,color:a,useBorderRadius:s,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const u=c.controller.getStyle(n?0:void 0),h=Ft(u.borderWidth);return{text:e[c.index].label,fillStyle:u.backgroundColor,fontColor:a,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:u.borderColor,pointStyle:o||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:s&&(l||u.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Pu extends Ao{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Ye(o.text)?o.text.length:1;this._padding=Ft(o.padding);const a=i*wt(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:o,bottom:i,right:a,options:s}=this,l=s.align;let c=0,u,h,p;return this.isHorizontal()?(h=zt(l,o,a),p=n+e,u=a-o):(s.position==="left"?(h=o+e,p=zt(l,i,n),c=Ze*-.5):(h=a-e,p=zt(l,n,i),c=Ze*.5),u=i-n),{titleX:h,titleY:p,maxWidth:u,rotation:c}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const o=wt(n.font),a=o.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:u}=this._drawArgs(a);Or(e,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:u,textAlign:eu(n.align),textBaseline:"middle",translation:[s,l]})}}function w4(t,e){const n=new Pu({ctx:t.ctx,options:e,chart:t});_t.configure(t,n,e),_t.addBox(t,n),t.titleBlock=n}var S4={id:"title",_element:Pu,start(t,e,n){w4(t,n)},stop(t){const e=t.titleBlock;_t.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const o=t.titleBlock;_t.configure(t,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const bl=new WeakMap;var x4={id:"subtitle",start(t,e,n){const o=new Pu({ctx:t.ctx,options:n,chart:t});_t.configure(t,o,n),_t.addBox(t,o),bl.set(t,o)},stop(t){_t.removeBox(t,bl.get(t)),bl.delete(t)},beforeUpdate(t,e,n){const o=bl.get(t);_t.configure(t,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Oa={average(t){if(!t.length)return!1;let e,n,o=new Set,i=0,a=0;for(e=0,n=t.length;e<n;++e){const l=t[e].element;if(l&&l.hasValue()){const c=l.tooltipPosition();o.add(c.x),i+=c.y,++a}}return{x:[...o].reduce((l,c)=>l+c)/o.size,y:i/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,o=e.y,i=Number.POSITIVE_INFINITY,a,s,l;for(a=0,s=t.length;a<s;++a){const c=t[a].element;if(c&&c.hasValue()){const u=c.getCenterPoint(),h=Zc(e,u);h<i&&(i=h,l=c)}}if(l){const c=l.tooltipPosition();n=c.x,o=c.y}return{x:n,y:o}}};function co(t,e){return e&&(Ye(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Eo(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
30
30
  `)>-1?t.split(`
31
- `):t}function C4(t,e){const{element:n,datasetIndex:o,index:i}=e,a=t.getDatasetMeta(o).controller,{label:s,value:l}=a.getLabelAndValue(i);return{chart:t,label:s,parsed:a.getParsed(i),raw:t.data.datasets[o].data[i],formattedValue:l,dataset:a.getDataset(),dataIndex:i,datasetIndex:o,element:n}}function _0(t,e){const n=t.chart.ctx,{body:o,footer:i,title:a}=t,{boxWidth:s,boxHeight:l}=e,c=wt(e.bodyFont),u=wt(e.titleFont),h=wt(e.footerFont),p=a.length,m=i.length,b=o.length,y=Ft(e.padding);let v=y.height,w=0,x=o.reduce((V,B)=>V+B.before.length+B.lines.length+B.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,p&&(v+=p*u.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),x){const V=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=b*V+(x-b)*c.lineHeight+(x-1)*e.bodySpacing}m&&(v+=e.footerMarginTop+m*h.lineHeight+(m-1)*e.footerSpacing);let I=0;const R=function(V){w=Math.max(w,n.measureText(V).width+I)};return n.save(),n.font=u.string,We(t.title,R),n.font=c.string,We(t.beforeBody.concat(t.afterBody),R),I=e.displayColors?s+2+e.boxPadding:0,We(o,V=>{We(V.before,R),We(V.lines,R),We(V.after,R)}),I=0,n.font=h.string,We(t.footer,R),n.restore(),w+=y.width,{width:w,height:v}}function A4(t,e){const{y:n,height:o}=e;return n<o/2?"top":n>t.height-o/2?"bottom":"center"}function E4(t,e,n,o){const{x:i,width:a}=o,s=n.caretSize+n.caretPadding;if(t==="left"&&i+a+s>e.width||t==="right"&&i-a-s<0)return!0}function D4(t,e,n,o){const{x:i,width:a}=n,{width:s,chartArea:{left:l,right:c}}=t;let u="center";return o==="center"?u=i<=(l+c)/2?"left":"right":i<=a/2?u="left":i>=s-a/2&&(u="right"),E4(u,t,e,n)&&(u="center"),u}function H0(t,e,n){const o=n.yAlign||e.yAlign||A4(t,n);return{xAlign:n.xAlign||e.xAlign||D4(t,e,n,o),yAlign:o}}function B4(t,e){let{x:n,width:o}=t;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function P4(t,e,n){let{y:o,height:i}=t;return e==="top"?o+=n:e==="bottom"?o-=i+n:o-=i/2,o}function U0(t,e,n,o){const{caretSize:i,caretPadding:a,cornerRadius:s}=t,{xAlign:l,yAlign:c}=n,u=i+a,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:b}=Nr(s);let y=B4(e,l);const v=P4(e,c,u);return c==="center"?l==="left"?y+=u:l==="right"&&(y-=u):l==="left"?y-=Math.max(h,m)+i:l==="right"&&(y+=Math.max(p,b)+i),{x:Bt(y,0,o.width-e.width),y:Bt(v,0,o.height-e.height)}}function yl(t,e,n){const o=Ft(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-o.right:t.x+o.left}function W0(t){return co([],Eo(t))}function I4(t,e,n){return rr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function j0(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const G0={beforeTitle:ko,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex<o)return n[e.dataIndex]}return""},afterTitle:ko,beforeBody:ko,beforeLabel:ko,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Re(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ko,afterBody:ko,beforeFooter:ko,footer:ko,afterFooter:ko};function $t(t,e,n,o){const i=t[e].call(n,o);return typeof i>"u"?G0[e].call(n,o):i}class Iu extends Ao{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),i=o.enabled&&n.options.animation&&o.animations,a=new Vg(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=I4(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,i=$t(o,"beforeTitle",this,e),a=$t(o,"title",this,e),s=$t(o,"afterTitle",this,e);let l=[];return l=co(l,Eo(i)),l=co(l,Eo(a)),l=co(l,Eo(s)),l}getBeforeBody(e,n){return W0($t(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,i=[];return We(e,a=>{const s={before:[],lines:[],after:[]},l=j0(o,a);co(s.before,Eo($t(l,"beforeLabel",this,a))),co(s.lines,$t(l,"label",this,a)),co(s.after,Eo($t(l,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,n){return W0($t(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,i=$t(o,"beforeFooter",this,e),a=$t(o,"footer",this,e),s=$t(o,"afterFooter",this,e);let l=[];return l=co(l,Eo(i)),l=co(l,Eo(a)),l=co(l,Eo(s)),l}_createItems(e){const n=this._active,o=this.chart.data,i=[],a=[],s=[];let l=[],c,u;for(c=0,u=n.length;c<u;++c)l.push(C4(this.chart,n[c]));return e.filter&&(l=l.filter((h,p,m)=>e.filter(h,p,m,o))),e.itemSort&&(l=l.sort((h,p)=>e.itemSort(h,p,o))),We(l,h=>{const p=j0(e.callbacks,h);i.push($t(p,"labelColor",this,h)),a.push($t(p,"labelPointStyle",this,h)),s.push($t(p,"labelTextColor",this,h))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const l=Oa[o.position].call(this,i,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const c=this._size=_0(this,o),u=Object.assign({},l,c),h=H0(this.chart,o,u),p=U0(o,u,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,a={opacity:1,x:p.x,y:p.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,i){const a=this.getCaretPosition(e,o,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,o){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:h,bottomRight:p}=Nr(l),{x:m,y:b}=e,{width:y,height:v}=n;let w,x,I,R,V,B;return a==="center"?(V=b+v/2,i==="left"?(w=m,x=w-s,R=V+s,B=V-s):(w=m+y,x=w+s,R=V-s,B=V+s),I=w):(i==="left"?x=m+Math.max(c,h)+s:i==="right"?x=m+y-Math.max(u,p)-s:x=this.caretX,a==="top"?(R=b,V=R-s,w=x-s,I=x+s):(R=b+v,V=R+s,w=x+s,I=x-s),B=R),{x1:w,x2:x,x3:I,y1:R,y2:V,y3:B}}drawTitle(e,n,o){const i=this.title,a=i.length;let s,l,c;if(a){const u=bi(o.rtl,this.x,this.width);for(e.x=yl(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",s=wt(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,c=0;c<a;++c)n.fillText(i[c],u.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,c+1===a&&(e.y+=o.titleMarginBottom-l)}}_drawColorBox(e,n,o,i,a){const s=this.labelColors[o],l=this.labelPointStyles[o],{boxHeight:c,boxWidth:u}=a,h=wt(a.bodyFont),p=yl(this,"left",a),m=i.x(p),b=c<h.lineHeight?(h.lineHeight-c)/2:0,y=n.y+b;if(a.usePointStyle){const v={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},w=i.leftForLtr(m,u)+u/2,x=y+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,iu(e,v,w,x),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,iu(e,v,w,x)}else{e.lineWidth=Ve(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const v=i.leftForLtr(m,u),w=i.leftForLtr(i.xPlus(m,1),u-2),x=Nr(s.borderRadius);Object.values(x).some(I=>I!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,va(e,{x:v,y,w:u,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),va(e,{x:w,y:y+1,w:u-2,h:c-2,radius:x}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(v,y,u,c),e.strokeRect(v,y,u,c),e.fillStyle=s.backgroundColor,e.fillRect(w,y+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:h}=o,p=wt(o.bodyFont);let m=p.lineHeight,b=0;const y=bi(o.rtl,this.x,this.width),v=function(_){n.fillText(_,y.x(e.x+b),e.y+m/2),e.y+=m+a},w=y.textAlign(s);let x,I,R,V,B,L,P;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=yl(this,w,o),n.fillStyle=o.bodyColor,We(this.beforeBody,v),b=l&&w!=="right"?s==="center"?u/2+h:u+2+h:0,V=0,L=i.length;V<L;++V){for(x=i[V],I=this.labelTextColors[V],n.fillStyle=I,We(x.before,v),R=x.lines,l&&R.length&&(this._drawColorBox(n,e,V,y,o),m=Math.max(p.lineHeight,c)),B=0,P=R.length;B<P;++B)v(R[B]),m=p.lineHeight;We(x.after,v)}b=0,m=p.lineHeight,We(this.afterBody,v),e.y-=a}drawFooter(e,n,o){const i=this.footer,a=i.length;let s,l;if(a){const c=bi(o.rtl,this.x,this.width);for(e.x=yl(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=c.textAlign(o.footerAlign),n.textBaseline="middle",s=wt(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,l=0;l<a;++l)n.fillText(i[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o.footerSpacing}}drawBackground(e,n,o,i){const{xAlign:a,yAlign:s}=this,{x:l,y:c}=e,{width:u,height:h}=o,{topLeft:p,topRight:m,bottomLeft:b,bottomRight:y}=Nr(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(l+p,c),s==="top"&&this.drawCaret(e,n,o,i),n.lineTo(l+u-m,c),n.quadraticCurveTo(l+u,c,l+u,c+m),s==="center"&&a==="right"&&this.drawCaret(e,n,o,i),n.lineTo(l+u,c+h-y),n.quadraticCurveTo(l+u,c+h,l+u-y,c+h),s==="bottom"&&this.drawCaret(e,n,o,i),n.lineTo(l+b,c+h),n.quadraticCurveTo(l,c+h,l,c+h-b),s==="center"&&a==="left"&&this.drawCaret(e,n,o,i),n.lineTo(l,c+p),n.quadraticCurveTo(l,c,l+p,c),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,i=o&&o.x,a=o&&o.y;if(i||a){const s=Oa[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=_0(this,e),c=Object.assign({},s,this._size),u=H0(n,e,c),h=U0(e,c,u,n);(i._to!==h.x||a._to!==h.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=Ft(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=o,this.drawBackground(a,e,i,n),Ag(e,n.textDirection),a.y+=s.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),Eg(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,i=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),a=!Gs(o,i),s=this._positionChanged(i,n);(a||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(e,a,n,o),l=this._positionChanged(s,e),c=n||!Gs(s,a)||l;return c&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,i){const a=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,a.mode,a,o);return a.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:o,caretY:i,options:a}=this,s=Oa[a.position].call(this,e,n);return s!==!1&&(o!==s.x||i!==s.y)}}ae(Iu,"positioners",Oa);var O4={id:"tooltip",_element:Iu,positioners:Oa,afterInit(t,e,n){n&&(t.tooltip=new Iu({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:G0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},N4=Object.freeze({__proto__:null,Colors:j8,Decimation:q8,Filler:h4,Legend:k4,SubTitle:x4,Title:S4,Tooltip:O4});const R4=(t,e,n,o)=>(typeof e=="string"?(n=t.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function V4(t,e,n,o){const i=t.indexOf(e);if(i===-1)return R4(t,e,n,o);const a=t.lastIndexOf(e);return i!==a?n:i}const F4=(t,e)=>t===null?null:Bt(Math.round(t),0,e);function Q0(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ou extends Lr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:i,label:a}of n)o[i]===a&&o.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Re(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:V4(o,e,Ce(n,e),this._addedLabels),F4(n,o.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),n||(i=this.getLabels().length-1)),this.min=o,this.max=i}buildTicks(){const e=this.min,n=this.max,o=this.options.offset,i=[];let a=this.getLabels();a=e===0&&n===a.length-1?a:a.slice(e,n+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=e;s<=n;s++)i.push({value:s});return i}getLabelForValue(e){return Q0.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ae(Ou,"id","category"),ae(Ou,"defaults",{ticks:{callback:Q0}});function T4(t,e){const n=[],{bounds:i,step:a,min:s,max:l,precision:c,count:u,maxTicks:h,maxDigits:p,includeBounds:m}=t,b=a||1,y=h-1,{min:v,max:w}=e,x=!Re(s),I=!Re(l),R=!Re(u),V=(w-v)/(p+1);let B=Jm((w-v)/y/b)*b,L,P,_,U;if(B<1e-14&&!x&&!I)return[{value:v},{value:w}];U=Math.ceil(w/B)-Math.floor(v/B),U>y&&(B=Jm(U*B/y/b)*b),Re(c)||(L=Math.pow(10,c),B=Math.ceil(B*L)/L),i==="ticks"?(P=Math.floor(v/B)*B,_=Math.ceil(w/B)*B):(P=v,_=w),x&&I&&a&&Ix((l-s)/a,B/1e3)?(U=Math.round(Math.min((l-s)/B,h)),B=(l-s)/U,P=s,_=l):R?(P=x?s:P,_=I?l:_,U=u-1,B=(_-P)/U):(U=(_-P)/B,ha(U,Math.round(U),B/1e3)?U=Math.round(U):U=Math.ceil(U));const G=Math.max(Zm(B),Zm(P));L=Math.pow(10,Re(c)?G:c),P=Math.round(P*L)/L,_=Math.round(_*L)/L;let Q=0;for(x&&(m&&P!==s?(n.push({value:s}),P<s&&Q++,ha(Math.round((P+Q*B)*L)/L,s,X0(s,V,t))&&Q++):P<s&&Q++);Q<U;++Q){const F=Math.round((P+Q*B)*L)/L;if(I&&F>l)break;n.push({value:F})}return I&&m&&_!==l?n.length&&ha(n[n.length-1].value,l,X0(l,V,t))?n[n.length-1].value=l:n.push({value:l}):(!I||_===l)&&n.push({value:_}),n}function X0(t,e,{horizontal:n,minRotation:o}){const i=Wn(o),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class vl extends Lr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Re(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:i,max:a}=this;const s=c=>i=n?i:c,l=c=>a=o?a:c;if(e){const c=so(i),u=so(a);c<0&&u<0?l(0):c>0&&u>0&&s(0)}if(i===a){let c=a===0?1:Math.abs(a*.05);l(a+c),e||s(i-c)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=e,i;return o?(i=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let o=this.getTickLimit();o=Math.max(2,o);const i={maxTicks:o,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,s=T4(i,a);return e.bounds==="ticks"&&Ym(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&e.length){const i=(o-n)/Math.max(e.length-1,1)/2;n-=i,o+=i}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(e){return ba(e,this.chart.options.locale,this.options.ticks.format)}}class Nu extends vl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=ht(e)?e:0,this.max=ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Wn(this.options.ticks.minRotation),i=(e?Math.sin(o):Math.cos(o))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ae(Nu,"id","linear"),ae(Nu,"defaults",{ticks:{callback:Ks.formatters.numeric}});const Na=t=>Math.floor(or(t)),zr=(t,e)=>Math.pow(10,Na(t)+e);function q0(t){return t/Math.pow(10,Na(t))===1}function K0(t,e,n){const o=Math.pow(10,n),i=Math.floor(t/o);return Math.ceil(e/o)-i}function M4(t,e){const n=e-t;let o=Na(n);for(;K0(t,e,o)>10;)o++;for(;K0(t,e,o)<10;)o--;return Math.min(o,Na(t))}function L4(t,{min:e,max:n}){e=gn(t.min,e);const o=[],i=Na(e);let a=M4(e,n),s=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),c=i>a?Math.pow(10,i):0,u=Math.round((e-c)*s)/s,h=Math.floor((e-c)/l/10)*l*10;let p=Math.floor((u-h)/Math.pow(10,a)),m=gn(t.min,Math.round((c+h+p*Math.pow(10,a))*s)/s);for(;m<n;)o.push({value:m,major:q0(m),significand:p}),p>=10?p=p<15?15:20:p++,p>=20&&(a++,p=2,s=a>=0?1:s),m=Math.round((c+h+p*Math.pow(10,a))*s)/s;const b=gn(t.max,m);return o.push({value:b,major:q0(b),significand:p}),o}class Ru extends Lr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const o=vl.prototype.parse.apply(this,[e,n]);if(o===0){this._zero=!0;return}return ht(o)&&o>0?o:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=ht(e)?Math.max(0,e):null,this.max=ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ht(this._userMin)&&(this.min=e===zr(this.min,0)?zr(this.min,-1):zr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let o=this.min,i=this.max;const a=l=>o=e?o:l,s=l=>i=n?i:l;o===i&&(o<=0?(a(1),s(10)):(a(zr(o,-1)),s(zr(i,1)))),o<=0&&a(zr(i,-1)),i<=0&&s(zr(o,1)),this.min=o,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},o=L4(n,this);return e.bounds==="ticks"&&Ym(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}getLabelForValue(e){return e===void 0?"0":ba(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=or(e),this._valueRange=or(this.max)-or(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(or(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ae(Ru,"id","logarithmic"),ae(Ru,"defaults",{ticks:{callback:Ks.formatters.logarithmic,major:{enabled:!0}}});function Vu(t){const e=t.ticks;if(e.display&&t.display){const n=Ft(e.backdropPadding);return Ce(e.font&&e.font.size,dt.font.size)+n.height}return 0}function z4(t,e,n){return n=Ye(n)?n:[n],{w:Xx(t,e.string,n),h:n.length*e.lineHeight}}function J0(t,e,n,o,i){return t===o||t===i?{start:e-n/2,end:e+n/2}:t<o||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function _4(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),o=[],i=[],a=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ze/a:0;for(let c=0;c<a;c++){const u=s.setContext(t.getPointLabelContext(c));i[c]=u.padding;const h=t.getPointPosition(c,t.drawingArea+i[c],l),p=wt(u.font),m=z4(t.ctx,p,t._pointLabels[c]);o[c]=m;const b=bn(t.getIndexAngle(c)+l),y=Math.round(Yc(b)),v=J0(y,h.x,m.w,0,180),w=J0(y,h.y,m.h,90,270);H4(n,e,b,v,w)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=j4(t,o,i)}function H4(t,e,n,o,i){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,c=0;o.start<e.l?(l=(e.l-o.start)/a,t.l=Math.min(t.l,e.l-l)):o.end>e.r&&(l=(o.end-e.r)/a,t.r=Math.max(t.r,e.r+l)),i.start<e.t?(c=(e.t-i.start)/s,t.t=Math.min(t.t,e.t-c)):i.end>e.b&&(c=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function U4(t,e,n){const o=t.drawingArea,{extra:i,additionalAngle:a,padding:s,size:l}=n,c=t.getPointPosition(e,o+i+s,a),u=Math.round(Yc(bn(c.angle+gt))),h=X4(c.y,l.h,u),p=G4(u),m=Q4(c.x,l.w,p);return{visible:!0,x:c.x,y:h,textAlign:p,left:m,top:h,right:m+l.w,bottom:h+l.h}}function W4(t,e){if(!e)return!0;const{left:n,top:o,right:i,bottom:a}=t;return!(xo({x:n,y:o},e)||xo({x:n,y:a},e)||xo({x:i,y:o},e)||xo({x:i,y:a},e))}function j4(t,e,n){const o=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:l}=a.pointLabels,c={extra:Vu(a)/2,additionalAngle:s?Ze/i:0};let u;for(let h=0;h<i;h++){c.padding=n[h],c.size=e[h];const p=U4(t,h,c);o.push(p),l==="auto"&&(p.visible=W4(p,u),p.visible&&(u=p))}return o}function G4(t){return t===0||t===180?"center":t<180?"left":"right"}function Q4(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function X4(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function q4(t,e,n){const{left:o,top:i,right:a,bottom:s}=n,{backdropColor:l}=e;if(!Re(l)){const c=Nr(e.borderRadius),u=Ft(e.backdropPadding);t.fillStyle=l;const h=o-u.left,p=i-u.top,m=a-o+u.width,b=s-i+u.height;Object.values(c).some(y=>y!==0)?(t.beginPath(),va(t,{x:h,y:p,w:m,h:b,radius:c}),t.fill()):t.fillRect(h,p,m,b)}}function K4(t,e){const{ctx:n,options:{pointLabels:o}}=t;for(let i=e-1;i>=0;i--){const a=t._pointLabelItems[i];if(!a.visible)continue;const s=o.setContext(t.getPointLabelContext(i));q4(n,s,a);const l=wt(s.font),{x:c,y:u,textAlign:h}=a;Or(n,t._pointLabels[i],c,u+l.lineHeight/2,l,{color:s.color,textAlign:h,textBaseline:"middle"})}}function Y0(t,e,n,o){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,$e);else{let a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let s=1;s<o;s++)a=t.getPointPosition(s,e),i.lineTo(a.x,a.y)}}function J4(t,e,n,o,i){const a=t.ctx,s=e.circular,{color:l,lineWidth:c}=e;!s&&!o||!l||!c||n<0||(a.save(),a.strokeStyle=l,a.lineWidth=c,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),Y0(t,n,s,o),a.closePath(),a.stroke(),a.restore())}function Y4(t,e,n){return rr(t,{label:n,index:e,type:"pointLabel"})}class Ra extends vl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ft(Vu(this.options)/2),n=this.width=this.maxWidth-e.width,o=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+o/2+e.top),this.drawingArea=Math.floor(Math.min(n,o)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=ht(e)&&!isNaN(e)?e:0,this.max=ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vu(this.options))}generateTickLabels(e){vl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,o)=>{const i=Qe(this.options.pointLabels.callback,[n,o],this);return i||i===0?i:""}).filter((n,o)=>this.chart.getDataVisibility(o))}fit(){const e=this.options;e.display&&e.pointLabels.display?_4(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,o,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((o-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,o,i))}getIndexAngle(e){const n=$e/(this._pointLabels.length||1),o=this.options.startAngle||0;return bn(e*n+Wn(o))}getDistanceFromCenterForValue(e){if(Re(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Re(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const o=n[e];return Y4(this.getContext(),e,o)}}getPointPosition(e,n,o=0){const i=this.getIndexAngle(e)-gt+o;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:o,right:i,bottom:a}=this._pointLabelItems[e];return{left:n,top:o,right:i,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const o=this.ctx;o.save(),o.beginPath(),Y0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),o.closePath(),o.fillStyle=e,o.fill(),o.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:o,grid:i,border:a}=n,s=this._pointLabels.length;let l,c,u;if(n.pointLabels.display&&K4(this,s),i.display&&this.ticks.forEach((h,p)=>{if(p!==0||p===0&&this.min<0){c=this.getDistanceFromCenterForValue(h.value);const m=this.getContext(p),b=i.setContext(m),y=a.setContext(m);J4(this,b,c,s,y)}}),o.display){for(e.save(),l=s-1;l>=0;l--){const h=o.setContext(this.getPointLabelContext(l)),{color:p,lineWidth:m}=h;!m||!p||(e.lineWidth=m,e.strokeStyle=p,e.setLineDash(h.borderDash),e.lineDashOffset=h.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,o=n.ticks;if(!o.display)return;const i=this.getIndexAngle(0);let a,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const u=o.setContext(this.getContext(c)),h=wt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){e.font=h.string,s=e.measureText(l.label).width,e.fillStyle=u.backdropColor;const p=Ft(u.backdropPadding);e.fillRect(-s/2-p.left,-a-h.size/2-p.top,s+p.width,h.size+p.height)}Or(e,l.label,0,-a,h,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(Ra,"id","radialLinear"),ae(Ra,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(Ra,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(Ra,"descriptors",{angleLines:{_fallback:"grid"}});const kl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},en=Object.keys(kl);function Z0(t,e){return t-e}function $0(t,e){if(Re(e))return null;const n=t._adapter,{parser:o,round:i,isoWeekday:a}=t._parseOpts;let s=e;return typeof o=="function"&&(s=o(s)),ht(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(hi(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function e1(t,e,n,o){const i=en.length;for(let a=en.indexOf(t);a<i-1;++a){const s=kl[en[a]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=o)return en[a]}return en[i-1]}function Z4(t,e,n,o,i){for(let a=en.length-1;a>=en.indexOf(n);a--){const s=en[a];if(kl[s].common&&t._adapter.diff(i,o,s)>=e-1)return s}return en[n?en.indexOf(n):0]}function $4(t){for(let e=en.indexOf(t)+1,n=en.length;e<n;++e)if(kl[en[e]].common)return en[e]}function t1(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:o,hi:i}=$c(n,e),a=n[o]>=e?n[o]:n[i];t[a]=!0}}function e6(t,e,n,o){const i=t._adapter,a=+i.startOf(e[0].value,o),s=e[e.length-1].value;let l,c;for(l=a;l<=s;l=+i.add(l,1,o))c=n[l],c>=0&&(e[c].major=!0);return e}function n1(t,e,n){const o=[],i={},a=e.length;let s,l;for(s=0;s<a;++s)l=e[s],i[l]=s,o.push({value:l,major:!1});return a===0||!n?o:e6(t,o,i,n)}class Va extends Lr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const o=e.time||(e.time={}),i=this._adapter=new dA._date(e.adapters.date);i.init(n),fa(o.displayFormats,i.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:$0(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!l&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=ht(i)&&!isNaN(i)?i:+n.startOf(Date.now(),o),a=ht(a)&&!isNaN(a)?a:+n.endOf(Date.now(),o)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,i=o.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,l=Vx(i,a,s);return this._unit=n.unit||(o.autoSkip?e1(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Z4(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:$4(this._unit),this.initOffsets(i),e.reverse&&l.reverse(),n1(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,o=0,i,a;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?o=a:o=(a-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Bt(n,0,s),o=Bt(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,i=this.options,a=i.time,s=a.unit||e1(a.minUnit,n,o,this._getLabelCapacity(n)),l=Ce(i.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,u=hi(c)||c===!0,h={};let p=n,m,b;if(u&&(p=+e.startOf(p,"isoWeek",c)),p=+e.startOf(p,u?"day":s),e.diff(o,n,s)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,b=0;m<o;m=+e.add(m,l,s),b++)t1(h,m,y);return(m===o||i.bounds==="ticks"||b===1)&&t1(h,m,y),Object.keys(h).sort(Z0).map(v=>+v)}getLabelForValue(e){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(e,o.tooltipFormat):n.format(e,o.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,a=this._unit,s=n||i[a];return this._adapter.format(e,s)}_tickFormatFunction(e,n,o,i){const a=this.options,s=a.ticks.callback;if(s)return Qe(s,[e,n,o],this);const l=a.time.displayFormats,c=this._unit,u=this._majorUnit,h=c&&l[c],p=u&&l[u],m=o[n],b=u&&p&&m&&m.major;return this._adapter.format(e,i||(b?p:h))}generateTickLabels(e){let n,o,i;for(n=0,o=e.length;n<o;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,o=this.ctx.measureText(e).width,i=Wn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),s=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:o*a+l*s,h:o*s+l*a}}_getLabelCapacity(e){const n=this.options.time,o=n.displayFormats,i=o[n.unit]||o.millisecond,a=this._tickFormatFunction(e,0,n1(this,[e],this._majorUnit),i),s=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,o;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,o=i.length;n<o;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,o;if(e.length)return e;const i=this.getLabels();for(n=0,o=i.length;n<o;++n)e.push($0(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ng(e.sort(Z0))}}ae(Va,"id","time"),ae(Va,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function wl(t,e,n){let o=0,i=t.length-1,a,s,l,c;n?(e>=t[o].pos&&e<=t[i].pos&&({lo:o,hi:i}=So(t,"pos",e)),{pos:a,time:l}=t[o],{pos:s,time:c}=t[i]):(e>=t[o].time&&e<=t[i].time&&({lo:o,hi:i}=So(t,"time",e)),{time:a,pos:l}=t[o],{time:s,pos:c}=t[i]);const u=s-a;return u?l+(c-l)*(e-a)/u:l}class Fu extends Va{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=wl(n,this.min),this._tableRange=wl(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:o}=this,i=[],a=[];let s,l,c,u,h;for(s=0,l=e.length;s<l;++s)u=e[s],u>=n&&u<=o&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,l=i.length;s<l;++s)h=i[s+1],c=i[s-1],u=i[s],Math.round((h+c)/2)!==u&&a.push({time:u,pos:s/(l-1)});return a}_generate(){const e=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(e)||!o.length)&&o.splice(0,0,e),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((i,a)=>i-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?e=this.normalize(n.concat(o)):e=n.length?n:o,e=this._cache.all=e,e}getDecimalForValue(e){return(wl(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return wl(this._table,o*this._tableRange+this._minPos,!0)}}ae(Fu,"id","timeseries"),ae(Fu,"defaults",Va.defaults);var t6=Object.freeze({__proto__:null,CategoryScale:Ou,LinearScale:Nu,LogarithmicScale:Ru,RadialLinearScale:Ra,TimeScale:Va,TimeSeriesScale:Fu});const n6=[lA,L8,N4,t6];Zt.register(...n6);/*!
31
+ `):t}function C4(t,e){const{element:n,datasetIndex:o,index:i}=e,a=t.getDatasetMeta(o).controller,{label:s,value:l}=a.getLabelAndValue(i);return{chart:t,label:s,parsed:a.getParsed(i),raw:t.data.datasets[o].data[i],formattedValue:l,dataset:a.getDataset(),dataIndex:i,datasetIndex:o,element:n}}function _0(t,e){const n=t.chart.ctx,{body:o,footer:i,title:a}=t,{boxWidth:s,boxHeight:l}=e,c=wt(e.bodyFont),u=wt(e.titleFont),h=wt(e.footerFont),p=a.length,m=i.length,b=o.length,y=Ft(e.padding);let v=y.height,w=0,x=o.reduce((V,B)=>V+B.before.length+B.lines.length+B.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,p&&(v+=p*u.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),x){const V=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=b*V+(x-b)*c.lineHeight+(x-1)*e.bodySpacing}m&&(v+=e.footerMarginTop+m*h.lineHeight+(m-1)*e.footerSpacing);let I=0;const R=function(V){w=Math.max(w,n.measureText(V).width+I)};return n.save(),n.font=u.string,We(t.title,R),n.font=c.string,We(t.beforeBody.concat(t.afterBody),R),I=e.displayColors?s+2+e.boxPadding:0,We(o,V=>{We(V.before,R),We(V.lines,R),We(V.after,R)}),I=0,n.font=h.string,We(t.footer,R),n.restore(),w+=y.width,{width:w,height:v}}function A4(t,e){const{y:n,height:o}=e;return n<o/2?"top":n>t.height-o/2?"bottom":"center"}function E4(t,e,n,o){const{x:i,width:a}=o,s=n.caretSize+n.caretPadding;if(t==="left"&&i+a+s>e.width||t==="right"&&i-a-s<0)return!0}function D4(t,e,n,o){const{x:i,width:a}=n,{width:s,chartArea:{left:l,right:c}}=t;let u="center";return o==="center"?u=i<=(l+c)/2?"left":"right":i<=a/2?u="left":i>=s-a/2&&(u="right"),E4(u,t,e,n)&&(u="center"),u}function H0(t,e,n){const o=n.yAlign||e.yAlign||A4(t,n);return{xAlign:n.xAlign||e.xAlign||D4(t,e,n,o),yAlign:o}}function B4(t,e){let{x:n,width:o}=t;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function P4(t,e,n){let{y:o,height:i}=t;return e==="top"?o+=n:e==="bottom"?o-=i+n:o-=i/2,o}function U0(t,e,n,o){const{caretSize:i,caretPadding:a,cornerRadius:s}=t,{xAlign:l,yAlign:c}=n,u=i+a,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:b}=Nr(s);let y=B4(e,l);const v=P4(e,c,u);return c==="center"?l==="left"?y+=u:l==="right"&&(y-=u):l==="left"?y-=Math.max(h,m)+i:l==="right"&&(y+=Math.max(p,b)+i),{x:Bt(y,0,o.width-e.width),y:Bt(v,0,o.height-e.height)}}function yl(t,e,n){const o=Ft(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-o.right:t.x+o.left}function W0(t){return co([],Eo(t))}function I4(t,e,n){return rr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function j0(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const G0={beforeTitle:ko,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(o>0&&e.dataIndex<o)return n[e.dataIndex]}return""},afterTitle:ko,beforeBody:ko,beforeLabel:ko,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Re(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ko,afterBody:ko,beforeFooter:ko,footer:ko,afterFooter:ko};function $t(t,e,n,o){const i=t[e].call(n,o);return typeof i>"u"?G0[e].call(n,o):i}class Iu extends Ao{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),i=o.enabled&&n.options.animation&&o.animations,a=new Vg(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=I4(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,i=$t(o,"beforeTitle",this,e),a=$t(o,"title",this,e),s=$t(o,"afterTitle",this,e);let l=[];return l=co(l,Eo(i)),l=co(l,Eo(a)),l=co(l,Eo(s)),l}getBeforeBody(e,n){return W0($t(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,i=[];return We(e,a=>{const s={before:[],lines:[],after:[]},l=j0(o,a);co(s.before,Eo($t(l,"beforeLabel",this,a))),co(s.lines,$t(l,"label",this,a)),co(s.after,Eo($t(l,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,n){return W0($t(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,i=$t(o,"beforeFooter",this,e),a=$t(o,"footer",this,e),s=$t(o,"afterFooter",this,e);let l=[];return l=co(l,Eo(i)),l=co(l,Eo(a)),l=co(l,Eo(s)),l}_createItems(e){const n=this._active,o=this.chart.data,i=[],a=[],s=[];let l=[],c,u;for(c=0,u=n.length;c<u;++c)l.push(C4(this.chart,n[c]));return e.filter&&(l=l.filter((h,p,m)=>e.filter(h,p,m,o))),e.itemSort&&(l=l.sort((h,p)=>e.itemSort(h,p,o))),We(l,h=>{const p=j0(e.callbacks,h);i.push($t(p,"labelColor",this,h)),a.push($t(p,"labelPointStyle",this,h)),s.push($t(p,"labelTextColor",this,h))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const l=Oa[o.position].call(this,i,this._eventPosition);s=this._createItems(o),this.title=this.getTitle(s,o),this.beforeBody=this.getBeforeBody(s,o),this.body=this.getBody(s,o),this.afterBody=this.getAfterBody(s,o),this.footer=this.getFooter(s,o);const c=this._size=_0(this,o),u=Object.assign({},l,c),h=H0(this.chart,o,u),p=U0(o,u,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,a={opacity:1,x:p.x,y:p.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,i){const a=this.getCaretPosition(e,o,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,o){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:h,bottomRight:p}=Nr(l),{x:m,y:b}=e,{width:y,height:v}=n;let w,x,I,R,V,B;return a==="center"?(V=b+v/2,i==="left"?(w=m,x=w-s,R=V+s,B=V-s):(w=m+y,x=w+s,R=V-s,B=V+s),I=w):(i==="left"?x=m+Math.max(c,h)+s:i==="right"?x=m+y-Math.max(u,p)-s:x=this.caretX,a==="top"?(R=b,V=R-s,w=x-s,I=x+s):(R=b+v,V=R+s,w=x+s,I=x-s),B=R),{x1:w,x2:x,x3:I,y1:R,y2:V,y3:B}}drawTitle(e,n,o){const i=this.title,a=i.length;let s,l,c;if(a){const u=bi(o.rtl,this.x,this.width);for(e.x=yl(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",s=wt(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=s.string,c=0;c<a;++c)n.fillText(i[c],u.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+l,c+1===a&&(e.y+=o.titleMarginBottom-l)}}_drawColorBox(e,n,o,i,a){const s=this.labelColors[o],l=this.labelPointStyles[o],{boxHeight:c,boxWidth:u}=a,h=wt(a.bodyFont),p=yl(this,"left",a),m=i.x(p),b=c<h.lineHeight?(h.lineHeight-c)/2:0,y=n.y+b;if(a.usePointStyle){const v={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},w=i.leftForLtr(m,u)+u/2,x=y+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,iu(e,v,w,x),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,iu(e,v,w,x)}else{e.lineWidth=Ve(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const v=i.leftForLtr(m,u),w=i.leftForLtr(i.xPlus(m,1),u-2),x=Nr(s.borderRadius);Object.values(x).some(I=>I!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,va(e,{x:v,y,w:u,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),va(e,{x:w,y:y+1,w:u-2,h:c-2,radius:x}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(v,y,u,c),e.strokeRect(v,y,u,c),e.fillStyle=s.backgroundColor,e.fillRect(w,y+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:h}=o,p=wt(o.bodyFont);let m=p.lineHeight,b=0;const y=bi(o.rtl,this.x,this.width),v=function(_){n.fillText(_,y.x(e.x+b),e.y+m/2),e.y+=m+a},w=y.textAlign(s);let x,I,R,V,B,L,P;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=yl(this,w,o),n.fillStyle=o.bodyColor,We(this.beforeBody,v),b=l&&w!=="right"?s==="center"?u/2+h:u+2+h:0,V=0,L=i.length;V<L;++V){for(x=i[V],I=this.labelTextColors[V],n.fillStyle=I,We(x.before,v),R=x.lines,l&&R.length&&(this._drawColorBox(n,e,V,y,o),m=Math.max(p.lineHeight,c)),B=0,P=R.length;B<P;++B)v(R[B]),m=p.lineHeight;We(x.after,v)}b=0,m=p.lineHeight,We(this.afterBody,v),e.y-=a}drawFooter(e,n,o){const i=this.footer,a=i.length;let s,l;if(a){const c=bi(o.rtl,this.x,this.width);for(e.x=yl(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=c.textAlign(o.footerAlign),n.textBaseline="middle",s=wt(o.footerFont),n.fillStyle=o.footerColor,n.font=s.string,l=0;l<a;++l)n.fillText(i[l],c.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+o.footerSpacing}}drawBackground(e,n,o,i){const{xAlign:a,yAlign:s}=this,{x:l,y:c}=e,{width:u,height:h}=o,{topLeft:p,topRight:m,bottomLeft:b,bottomRight:y}=Nr(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(l+p,c),s==="top"&&this.drawCaret(e,n,o,i),n.lineTo(l+u-m,c),n.quadraticCurveTo(l+u,c,l+u,c+m),s==="center"&&a==="right"&&this.drawCaret(e,n,o,i),n.lineTo(l+u,c+h-y),n.quadraticCurveTo(l+u,c+h,l+u-y,c+h),s==="bottom"&&this.drawCaret(e,n,o,i),n.lineTo(l+b,c+h),n.quadraticCurveTo(l,c+h,l,c+h-b),s==="center"&&a==="left"&&this.drawCaret(e,n,o,i),n.lineTo(l,c+p),n.quadraticCurveTo(l,c,l+p,c),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,i=o&&o.x,a=o&&o.y;if(i||a){const s=Oa[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=_0(this,e),c=Object.assign({},s,this._size),u=H0(n,e,c),h=U0(e,c,u,n);(i._to!==h.x||a._to!==h.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const s=Ft(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=o,this.drawBackground(a,e,i,n),Ag(e,n.textDirection),a.y+=s.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),Eg(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,i=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),a=!Gs(o,i),s=this._positionChanged(i,n);(a||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(e,a,n,o),l=this._positionChanged(s,e),c=n||!Gs(s,a)||l;return c&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,i){const a=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,a.mode,a,o);return a.reverse&&s.reverse(),s}_positionChanged(e,n){const{caretX:o,caretY:i,options:a}=this,s=Oa[a.position].call(this,e,n);return s!==!1&&(o!==s.x||i!==s.y)}}ae(Iu,"positioners",Oa);var O4={id:"tooltip",_element:Iu,positioners:Oa,afterInit(t,e,n){n&&(t.tooltip=new Iu({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:G0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},N4=Object.freeze({__proto__:null,Colors:j8,Decimation:q8,Filler:h4,Legend:k4,SubTitle:x4,Title:S4,Tooltip:O4});const R4=(t,e,n,o)=>(typeof e=="string"?(n=t.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function V4(t,e,n,o){const i=t.indexOf(e);if(i===-1)return R4(t,e,n,o);const a=t.lastIndexOf(e);return i!==a?n:i}const F4=(t,e)=>t===null?null:Bt(Math.round(t),0,e);function Q0(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ou extends Lr{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:i,label:a}of n)o[i]===a&&o.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Re(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:V4(o,e,Ce(n,e),this._addedLabels),F4(n,o.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(o=0),n||(i=this.getLabels().length-1)),this.min=o,this.max=i}buildTicks(){const e=this.min,n=this.max,o=this.options.offset,i=[];let a=this.getLabels();a=e===0&&n===a.length-1?a:a.slice(e,n+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let s=e;s<=n;s++)i.push({value:s});return i}getLabelForValue(e){return Q0.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ae(Ou,"id","category"),ae(Ou,"defaults",{ticks:{callback:Q0}});function T4(t,e){const n=[],{bounds:i,step:a,min:s,max:l,precision:c,count:u,maxTicks:h,maxDigits:p,includeBounds:m}=t,b=a||1,y=h-1,{min:v,max:w}=e,x=!Re(s),I=!Re(l),R=!Re(u),V=(w-v)/(p+1);let B=Jm((w-v)/y/b)*b,L,P,_,U;if(B<1e-14&&!x&&!I)return[{value:v},{value:w}];U=Math.ceil(w/B)-Math.floor(v/B),U>y&&(B=Jm(U*B/y/b)*b),Re(c)||(L=Math.pow(10,c),B=Math.ceil(B*L)/L),i==="ticks"?(P=Math.floor(v/B)*B,_=Math.ceil(w/B)*B):(P=v,_=w),x&&I&&a&&Ix((l-s)/a,B/1e3)?(U=Math.round(Math.min((l-s)/B,h)),B=(l-s)/U,P=s,_=l):R?(P=x?s:P,_=I?l:_,U=u-1,B=(_-P)/U):(U=(_-P)/B,ha(U,Math.round(U),B/1e3)?U=Math.round(U):U=Math.ceil(U));const G=Math.max(Zm(B),Zm(P));L=Math.pow(10,Re(c)?G:c),P=Math.round(P*L)/L,_=Math.round(_*L)/L;let Q=0;for(x&&(m&&P!==s?(n.push({value:s}),P<s&&Q++,ha(Math.round((P+Q*B)*L)/L,s,X0(s,V,t))&&Q++):P<s&&Q++);Q<U;++Q){const F=Math.round((P+Q*B)*L)/L;if(I&&F>l)break;n.push({value:F})}return I&&m&&_!==l?n.length&&ha(n[n.length-1].value,l,X0(l,V,t))?n[n.length-1].value=l:n.push({value:l}):(!I||_===l)&&n.push({value:_}),n}function X0(t,e,{horizontal:n,minRotation:o}){const i=Wn(o),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class vl extends Lr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Re(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:i,max:a}=this;const s=c=>i=n?i:c,l=c=>a=o?a:c;if(e){const c=so(i),u=so(a);c<0&&u<0?l(0):c>0&&u>0&&s(0)}if(i===a){let c=a===0?1:Math.abs(a*.05);l(a+c),e||s(i-c)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=e,i;return o?(i=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let o=this.getTickLimit();o=Math.max(2,o);const i={maxTicks:o,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},a=this._range||this,s=T4(i,a);return e.bounds==="ticks"&&Ym(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&e.length){const i=(o-n)/Math.max(e.length-1,1)/2;n-=i,o+=i}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(e){return ba(e,this.chart.options.locale,this.options.ticks.format)}}class Nu extends vl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=ht(e)?e:0,this.max=ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Wn(this.options.ticks.minRotation),i=(e?Math.sin(o):Math.cos(o))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ae(Nu,"id","linear"),ae(Nu,"defaults",{ticks:{callback:Ks.formatters.numeric}});const Na=t=>Math.floor(or(t)),zr=(t,e)=>Math.pow(10,Na(t)+e);function q0(t){return t/Math.pow(10,Na(t))===1}function K0(t,e,n){const o=Math.pow(10,n),i=Math.floor(t/o);return Math.ceil(e/o)-i}function M4(t,e){const n=e-t;let o=Na(n);for(;K0(t,e,o)>10;)o++;for(;K0(t,e,o)<10;)o--;return Math.min(o,Na(t))}function L4(t,{min:e,max:n}){e=gn(t.min,e);const o=[],i=Na(e);let a=M4(e,n),s=a<0?Math.pow(10,Math.abs(a)):1;const l=Math.pow(10,a),c=i>a?Math.pow(10,i):0,u=Math.round((e-c)*s)/s,h=Math.floor((e-c)/l/10)*l*10;let p=Math.floor((u-h)/Math.pow(10,a)),m=gn(t.min,Math.round((c+h+p*Math.pow(10,a))*s)/s);for(;m<n;)o.push({value:m,major:q0(m),significand:p}),p>=10?p=p<15?15:20:p++,p>=20&&(a++,p=2,s=a>=0?1:s),m=Math.round((c+h+p*Math.pow(10,a))*s)/s;const b=gn(t.max,m);return o.push({value:b,major:q0(b),significand:p}),o}class Ru extends Lr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const o=vl.prototype.parse.apply(this,[e,n]);if(o===0){this._zero=!0;return}return ht(o)&&o>0?o:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=ht(e)?Math.max(0,e):null,this.max=ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ht(this._userMin)&&(this.min=e===zr(this.min,0)?zr(this.min,-1):zr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let o=this.min,i=this.max;const a=l=>o=e?o:l,s=l=>i=n?i:l;o===i&&(o<=0?(a(1),s(10)):(a(zr(o,-1)),s(zr(i,1)))),o<=0&&a(zr(i,-1)),i<=0&&s(zr(o,1)),this.min=o,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},o=L4(n,this);return e.bounds==="ticks"&&Ym(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}getLabelForValue(e){return e===void 0?"0":ba(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=or(e),this._valueRange=or(this.max)-or(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(or(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ae(Ru,"id","logarithmic"),ae(Ru,"defaults",{ticks:{callback:Ks.formatters.logarithmic,major:{enabled:!0}}});function Vu(t){const e=t.ticks;if(e.display&&t.display){const n=Ft(e.backdropPadding);return Ce(e.font&&e.font.size,dt.font.size)+n.height}return 0}function z4(t,e,n){return n=Ye(n)?n:[n],{w:Xx(t,e.string,n),h:n.length*e.lineHeight}}function J0(t,e,n,o,i){return t===o||t===i?{start:e-n/2,end:e+n/2}:t<o||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function _4(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),o=[],i=[],a=t._pointLabels.length,s=t.options.pointLabels,l=s.centerPointLabels?Ze/a:0;for(let c=0;c<a;c++){const u=s.setContext(t.getPointLabelContext(c));i[c]=u.padding;const h=t.getPointPosition(c,t.drawingArea+i[c],l),p=wt(u.font),m=z4(t.ctx,p,t._pointLabels[c]);o[c]=m;const b=bn(t.getIndexAngle(c)+l),y=Math.round(Yc(b)),v=J0(y,h.x,m.w,0,180),w=J0(y,h.y,m.h,90,270);H4(n,e,b,v,w)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=j4(t,o,i)}function H4(t,e,n,o,i){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let l=0,c=0;o.start<e.l?(l=(e.l-o.start)/a,t.l=Math.min(t.l,e.l-l)):o.end>e.r&&(l=(o.end-e.r)/a,t.r=Math.max(t.r,e.r+l)),i.start<e.t?(c=(e.t-i.start)/s,t.t=Math.min(t.t,e.t-c)):i.end>e.b&&(c=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+c))}function U4(t,e,n){const o=t.drawingArea,{extra:i,additionalAngle:a,padding:s,size:l}=n,c=t.getPointPosition(e,o+i+s,a),u=Math.round(Yc(bn(c.angle+gt))),h=X4(c.y,l.h,u),p=G4(u),m=Q4(c.x,l.w,p);return{visible:!0,x:c.x,y:h,textAlign:p,left:m,top:h,right:m+l.w,bottom:h+l.h}}function W4(t,e){if(!e)return!0;const{left:n,top:o,right:i,bottom:a}=t;return!(xo({x:n,y:o},e)||xo({x:n,y:a},e)||xo({x:i,y:o},e)||xo({x:i,y:a},e))}function j4(t,e,n){const o=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:l}=a.pointLabels,c={extra:Vu(a)/2,additionalAngle:s?Ze/i:0};let u;for(let h=0;h<i;h++){c.padding=n[h],c.size=e[h];const p=U4(t,h,c);o.push(p),l==="auto"&&(p.visible=W4(p,u),p.visible&&(u=p))}return o}function G4(t){return t===0||t===180?"center":t<180?"left":"right"}function Q4(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function X4(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function q4(t,e,n){const{left:o,top:i,right:a,bottom:s}=n,{backdropColor:l}=e;if(!Re(l)){const c=Nr(e.borderRadius),u=Ft(e.backdropPadding);t.fillStyle=l;const h=o-u.left,p=i-u.top,m=a-o+u.width,b=s-i+u.height;Object.values(c).some(y=>y!==0)?(t.beginPath(),va(t,{x:h,y:p,w:m,h:b,radius:c}),t.fill()):t.fillRect(h,p,m,b)}}function K4(t,e){const{ctx:n,options:{pointLabels:o}}=t;for(let i=e-1;i>=0;i--){const a=t._pointLabelItems[i];if(!a.visible)continue;const s=o.setContext(t.getPointLabelContext(i));q4(n,s,a);const l=wt(s.font),{x:c,y:u,textAlign:h}=a;Or(n,t._pointLabels[i],c,u+l.lineHeight/2,l,{color:s.color,textAlign:h,textBaseline:"middle"})}}function Y0(t,e,n,o){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,$e);else{let a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let s=1;s<o;s++)a=t.getPointPosition(s,e),i.lineTo(a.x,a.y)}}function J4(t,e,n,o,i){const a=t.ctx,s=e.circular,{color:l,lineWidth:c}=e;!s&&!o||!l||!c||n<0||(a.save(),a.strokeStyle=l,a.lineWidth=c,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),Y0(t,n,s,o),a.closePath(),a.stroke(),a.restore())}function Y4(t,e,n){return rr(t,{label:n,index:e,type:"pointLabel"})}class Ra extends vl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Ft(Vu(this.options)/2),n=this.width=this.maxWidth-e.width,o=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+o/2+e.top),this.drawingArea=Math.floor(Math.min(n,o)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=ht(e)&&!isNaN(e)?e:0,this.max=ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Vu(this.options))}generateTickLabels(e){vl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,o)=>{const i=Qe(this.options.pointLabels.callback,[n,o],this);return i||i===0?i:""}).filter((n,o)=>this.chart.getDataVisibility(o))}fit(){const e=this.options;e.display&&e.pointLabels.display?_4(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,o,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((o-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,o,i))}getIndexAngle(e){const n=$e/(this._pointLabels.length||1),o=this.options.startAngle||0;return bn(e*n+Wn(o))}getDistanceFromCenterForValue(e){if(Re(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Re(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const o=n[e];return Y4(this.getContext(),e,o)}}getPointPosition(e,n,o=0){const i=this.getIndexAngle(e)-gt+o;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:o,right:i,bottom:a}=this._pointLabelItems[e];return{left:n,top:o,right:i,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const o=this.ctx;o.save(),o.beginPath(),Y0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),o.closePath(),o.fillStyle=e,o.fill(),o.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:o,grid:i,border:a}=n,s=this._pointLabels.length;let l,c,u;if(n.pointLabels.display&&K4(this,s),i.display&&this.ticks.forEach((h,p)=>{if(p!==0||p===0&&this.min<0){c=this.getDistanceFromCenterForValue(h.value);const m=this.getContext(p),b=i.setContext(m),y=a.setContext(m);J4(this,b,c,s,y)}}),o.display){for(e.save(),l=s-1;l>=0;l--){const h=o.setContext(this.getPointLabelContext(l)),{color:p,lineWidth:m}=h;!m||!p||(e.lineWidth=m,e.strokeStyle=p,e.setLineDash(h.borderDash),e.lineDashOffset=h.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),u=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(u.x,u.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,o=n.ticks;if(!o.display)return;const i=this.getIndexAngle(0);let a,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const u=o.setContext(this.getContext(c)),h=wt(u.font);if(a=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){e.font=h.string,s=e.measureText(l.label).width,e.fillStyle=u.backdropColor;const p=Ft(u.backdropPadding);e.fillRect(-s/2-p.left,-a-h.size/2-p.top,s+p.width,h.size+p.height)}Or(e,l.label,0,-a,h,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(Ra,"id","radialLinear"),ae(Ra,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ks.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(Ra,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(Ra,"descriptors",{angleLines:{_fallback:"grid"}});const kl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},en=Object.keys(kl);function Z0(t,e){return t-e}function $0(t,e){if(Re(e))return null;const n=t._adapter,{parser:o,round:i,isoWeekday:a}=t._parseOpts;let s=e;return typeof o=="function"&&(s=o(s)),ht(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(hi(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function e1(t,e,n,o){const i=en.length;for(let a=en.indexOf(t);a<i-1;++a){const s=kl[en[a]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=o)return en[a]}return en[i-1]}function Z4(t,e,n,o,i){for(let a=en.length-1;a>=en.indexOf(n);a--){const s=en[a];if(kl[s].common&&t._adapter.diff(i,o,s)>=e-1)return s}return en[n?en.indexOf(n):0]}function $4(t){for(let e=en.indexOf(t)+1,n=en.length;e<n;++e)if(kl[en[e]].common)return en[e]}function t1(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:o,hi:i}=$c(n,e),a=n[o]>=e?n[o]:n[i];t[a]=!0}}function e9(t,e,n,o){const i=t._adapter,a=+i.startOf(e[0].value,o),s=e[e.length-1].value;let l,c;for(l=a;l<=s;l=+i.add(l,1,o))c=n[l],c>=0&&(e[c].major=!0);return e}function n1(t,e,n){const o=[],i={},a=e.length;let s,l;for(s=0;s<a;++s)l=e[s],i[l]=s,o.push({value:l,major:!1});return a===0||!n?o:e9(t,o,i,n)}class Va extends Lr{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const o=e.time||(e.time={}),i=this._adapter=new dA._date(e.adapters.date);i.init(n),fa(o.displayFormats,i.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:$0(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(u){!s&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!l&&!isNaN(u.max)&&(a=Math.max(a,u.max))}(!s||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=ht(i)&&!isNaN(i)?i:+n.startOf(Date.now(),o),a=ht(a)&&!isNaN(a)?a:+n.endOf(Date.now(),o)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,i=o.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,l=Vx(i,a,s);return this._unit=n.unit||(o.autoSkip?e1(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):Z4(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:$4(this._unit),this.initOffsets(i),e.reverse&&l.reverse(),n1(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,o=0,i,a;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?o=a:o=(a-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;n=Bt(n,0,s),o=Bt(o,0,s),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,i=this.options,a=i.time,s=a.unit||e1(a.minUnit,n,o,this._getLabelCapacity(n)),l=Ce(i.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,u=hi(c)||c===!0,h={};let p=n,m,b;if(u&&(p=+e.startOf(p,"isoWeek",c)),p=+e.startOf(p,u?"day":s),e.diff(o,n,s)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,b=0;m<o;m=+e.add(m,l,s),b++)t1(h,m,y);return(m===o||i.bounds==="ticks"||b===1)&&t1(h,m,y),Object.keys(h).sort(Z0).map(v=>+v)}getLabelForValue(e){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(e,o.tooltipFormat):n.format(e,o.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,a=this._unit,s=n||i[a];return this._adapter.format(e,s)}_tickFormatFunction(e,n,o,i){const a=this.options,s=a.ticks.callback;if(s)return Qe(s,[e,n,o],this);const l=a.time.displayFormats,c=this._unit,u=this._majorUnit,h=c&&l[c],p=u&&l[u],m=o[n],b=u&&p&&m&&m.major;return this._adapter.format(e,i||(b?p:h))}generateTickLabels(e){let n,o,i;for(n=0,o=e.length;n<o;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,o=this.ctx.measureText(e).width,i=Wn(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),s=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:o*a+l*s,h:o*s+l*a}}_getLabelCapacity(e){const n=this.options.time,o=n.displayFormats,i=o[n.unit]||o.millisecond,a=this._tickFormatFunction(e,0,n1(this,[e],this._majorUnit),i),s=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,o;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,o=i.length;n<o;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,o;if(e.length)return e;const i=this.getLabels();for(n=0,o=i.length;n<o;++n)e.push($0(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ng(e.sort(Z0))}}ae(Va,"id","time"),ae(Va,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function wl(t,e,n){let o=0,i=t.length-1,a,s,l,c;n?(e>=t[o].pos&&e<=t[i].pos&&({lo:o,hi:i}=So(t,"pos",e)),{pos:a,time:l}=t[o],{pos:s,time:c}=t[i]):(e>=t[o].time&&e<=t[i].time&&({lo:o,hi:i}=So(t,"time",e)),{time:a,pos:l}=t[o],{time:s,pos:c}=t[i]);const u=s-a;return u?l+(c-l)*(e-a)/u:l}class Fu extends Va{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=wl(n,this.min),this._tableRange=wl(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:o}=this,i=[],a=[];let s,l,c,u,h;for(s=0,l=e.length;s<l;++s)u=e[s],u>=n&&u<=o&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(s=0,l=i.length;s<l;++s)h=i[s+1],c=i[s-1],u=i[s],Math.round((h+c)/2)!==u&&a.push({time:u,pos:s/(l-1)});return a}_generate(){const e=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(e)||!o.length)&&o.splice(0,0,e),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((i,a)=>i-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?e=this.normalize(n.concat(o)):e=n.length?n:o,e=this._cache.all=e,e}getDecimalForValue(e){return(wl(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return wl(this._table,o*this._tableRange+this._minPos,!0)}}ae(Fu,"id","timeseries"),ae(Fu,"defaults",Va.defaults);var t9=Object.freeze({__proto__:null,CategoryScale:Ou,LinearScale:Nu,LogarithmicScale:Ru,RadialLinearScale:Ra,TimeScale:Va,TimeSeriesScale:Fu});const n9=[lA,L8,N4,t9];Zt.register(...n9);/*!
32
32
  * chartjs-plugin-datalabels v2.2.0
33
33
  * https://chartjs-plugin-datalabels.netlify.app
34
34
  * (c) 2017-2022 chartjs-plugin-datalabels contributors
35
35
  * Released under the MIT license
36
36
  */var o1=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),Fa={toTextLines:function(t){var e=[],n;for(t=[].concat(t);t.length;)n=t.pop(),typeof n=="string"?e.unshift.apply(e,n.split(`
37
- `)):Array.isArray(n)?t.push.apply(t,n):Re(t)||e.unshift(""+n);return e},textSize:function(t,e,n){var o=[].concat(e),i=o.length,a=t.font,s=0,l;for(t.font=n.string,l=0;l<i;++l)s=Math.max(t.measureText(o[l]).width,s);return t.font=a,{height:i*n.lineHeight,width:s}},bound:function(t,e,n){return Math.max(t,Math.min(e,n))},arrayDiff:function(t,e){var n=t.slice(),o=[],i,a,s,l;for(i=0,s=e.length;i<s;++i)l=e[i],a=n.indexOf(l),a===-1?o.push([l,1]):n.splice(a,1);for(i=0,s=n.length;i<s;++i)o.push([n[i],-1]);return o},rasterize:function(t){return Math.round(t*o1)/o1}};function Tu(t,e){var n=e.x,o=e.y;if(n===null)return{x:0,y:-1};if(o===null)return{x:1,y:0};var i=t.x-n,a=t.y-o,s=Math.sqrt(i*i+a*a);return{x:s?i/s:0,y:s?a/s:-1}}function o6(t,e,n,o,i){switch(i){case"center":n=o=0;break;case"bottom":n=0,o=1;break;case"right":n=1,o=0;break;case"left":n=-1,o=0;break;case"top":n=0,o=-1;break;case"start":n=-n,o=-o;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),o=Math.sin(i);break}return{x:t,y:e,vx:n,vy:o}}var r6=0,r1=1,i1=2,a1=4,s1=8;function Sl(t,e,n){var o=r6;return t<n.left?o|=r1:t>n.right&&(o|=i1),e<n.top?o|=s1:e>n.bottom&&(o|=a1),o}function i6(t,e){for(var n=t.x0,o=t.y0,i=t.x1,a=t.y1,s=Sl(n,o,e),l=Sl(i,a,e),c,u,h;!(!(s|l)||s&l);)c=s||l,c&s1?(u=n+(i-n)*(e.top-o)/(a-o),h=e.top):c&a1?(u=n+(i-n)*(e.bottom-o)/(a-o),h=e.bottom):c&i1?(h=o+(a-o)*(e.right-n)/(i-n),u=e.right):c&r1&&(h=o+(a-o)*(e.left-n)/(i-n),u=e.left),c===s?(n=u,o=h,s=Sl(n,o,e)):(i=u,a=h,l=Sl(i,a,e));return{x0:n,x1:i,y0:o,y1:a}}function xl(t,e){var n=e.anchor,o=t,i,a;return e.clamp&&(o=i6(o,e.area)),n==="start"?(i=o.x0,a=o.y0):n==="end"?(i=o.x1,a=o.y1):(i=(o.x0+o.x1)/2,a=(o.y0+o.y1)/2),o6(i,a,t.vx,t.vy,e.align)}var Cl={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,o=Math.cos(n),i=Math.sin(n),a=t.innerRadius,s=t.outerRadius;return xl({x0:t.x+o*a,y0:t.y+i*a,x1:t.x+o*s,y1:t.y+i*s,vx:o,vy:i},e)},point:function(t,e){var n=Tu(t,e.origin),o=n.x*t.options.radius,i=n.y*t.options.radius;return xl({x0:t.x-o,y0:t.y-i,x1:t.x+o,y1:t.y+i,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=Tu(t,e.origin),o=t.x,i=t.y,a=0,s=0;return t.horizontal?(o=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(i=Math.min(t.y,t.base),s=Math.abs(t.base-t.y)),xl({x0:o,y0:i+s,x1:o+a,y1:i,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Tu(t,e.origin);return xl({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},Do=Fa.rasterize;function a6(t){var e=t.borderWidth||0,n=t.padding,o=t.size.height,i=t.size.width,a=-i/2,s=-o/2;return{frame:{x:a-n.left-e,y:s-n.top-e,w:i+n.width+e*2,h:o+n.height+e*2},text:{x:a,y:s,w:i,h:o}}}function s6(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var o=n.getBasePixel();return t.horizontal?{x:o,y:null}:{x:null,y:o}}function l6(t){return t instanceof vi?Cl.arc:t instanceof Pa?Cl.point:t instanceof Ia?Cl.bar:Cl.fallback}function d6(t,e,n,o,i,a){var s=Math.PI/2;if(a){var l=Math.min(a,i/2,o/2),c=e+l,u=n+l,h=e+o-l,p=n+i-l;t.moveTo(e,u),c<h&&u<p?(t.arc(c,u,l,-Math.PI,-s),t.arc(h,u,l,-s,0),t.arc(h,p,l,0,s),t.arc(c,p,l,s,Math.PI)):c<h?(t.moveTo(c,n),t.arc(h,u,l,-s,s),t.arc(c,u,l,s,Math.PI+s)):u<p?(t.arc(c,u,l,-Math.PI,0),t.arc(c,p,l,0,Math.PI)):t.arc(c,u,l,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,o,i)}function c6(t,e,n){var o=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!o&&(!i||!a)||(t.beginPath(),d6(t,Do(e.x)+a/2,Do(e.y)+a/2,Do(e.w)-a,Do(e.h)-a,n.borderRadius),t.closePath(),o&&(t.fillStyle=o,t.fill()),i&&a&&(t.strokeStyle=i,t.lineWidth=a,t.lineJoin="miter",t.stroke()))}function u6(t,e,n){var o=n.lineHeight,i=t.w,a=t.x,s=t.y+o/2;return e==="center"?a+=i/2:(e==="end"||e==="right")&&(a+=i),{h:o,w:i,x:a,y:s}}function f6(t,e,n){var o=t.shadowBlur,i=n.stroked,a=Do(n.x),s=Do(n.y),l=Do(n.w);i&&t.strokeText(e,a,s,l),n.filled&&(o&&i&&(t.shadowBlur=0),t.fillText(e,a,s,l),o&&i&&(t.shadowBlur=o))}function p6(t,e,n,o){var i=o.textAlign,a=o.color,s=!!a,l=o.font,c=e.length,u=o.textStrokeColor,h=o.textStrokeWidth,p=u&&h,m;if(!(!c||!s&&!p))for(n=u6(n,i,l),t.font=l.string,t.textAlign=i,t.textBaseline="middle",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor,s&&(t.fillStyle=a),p&&(t.lineJoin="round",t.lineWidth=h,t.strokeStyle=u),m=0,c=e.length;m<c;++m)f6(t,e[m],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*m})}var l1=function(t,e,n,o){var i=this;i._config=t,i._index=o,i._model=null,i._rects=null,i._ctx=e,i._el=n};ao(l1.prototype,{_modelize:function(t,e,n,o){var i=this,a=i._index,s=wt(et([n.font,{}],o,a)),l=et([n.color,dt.color],o,a);return{align:et([n.align,"center"],o,a),anchor:et([n.anchor,"center"],o,a),area:o.chart.chartArea,backgroundColor:et([n.backgroundColor,null],o,a),borderColor:et([n.borderColor,null],o,a),borderRadius:et([n.borderRadius,0],o,a),borderWidth:et([n.borderWidth,0],o,a),clamp:et([n.clamp,!1],o,a),clip:et([n.clip,!1],o,a),color:l,display:t,font:s,lines:e,offset:et([n.offset,4],o,a),opacity:et([n.opacity,1],o,a),origin:s6(i._el,o),padding:Ft(et([n.padding,4],o,a)),positioner:l6(i._el),rotation:et([n.rotation,0],o,a)*(Math.PI/180),size:Fa.textSize(i._ctx,e,s),textAlign:et([n.textAlign,"start"],o,a),textShadowBlur:et([n.textShadowBlur,0],o,a),textShadowColor:et([n.textShadowColor,l],o,a),textStrokeColor:et([n.textStrokeColor,l],o,a),textStrokeWidth:et([n.textStrokeWidth,0],o,a)}},update:function(t){var e=this,n=null,o=null,i=e._index,a=e._config,s,l,c,u=et([a.display,!0],t,i);u&&(s=t.dataset.data[i],l=Ce(Qe(a.formatter,[s,t]),s),c=Re(l)?[]:Fa.toTextLines(l),c.length&&(n=e._modelize(u,c,a,t),o=a6(n))),e._model=n,e._rects=o},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n=this,o=t.ctx,i=n._model,a=n._rects,s;this.visible()&&(o.save(),i.clip&&(s=i.area,o.beginPath(),o.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),o.clip()),o.globalAlpha=Fa.bound(0,i.opacity,1),o.translate(Do(e.x),Do(e.y)),o.rotate(i.rotation),c6(o,a.frame,i),p6(o,i.lines,a.text,i),o.restore())}});var h6=Number.MIN_SAFE_INTEGER||-9007199254740991,m6=Number.MAX_SAFE_INTEGER||9007199254740991;function Ta(t,e,n){var o=Math.cos(n),i=Math.sin(n),a=e.x,s=e.y;return{x:a+o*(t.x-a)-i*(t.y-s),y:s+i*(t.x-a)+o*(t.y-s)}}function d1(t,e){var n=m6,o=h6,i=e.origin,a,s,l,c,u;for(a=0;a<t.length;++a)s=t[a],l=s.x-i.x,c=s.y-i.y,u=e.vx*l+e.vy*c,n=Math.min(n,u),o=Math.max(o,u);return{min:n,max:o}}function Al(t,e){var n=e.x-t.x,o=e.y-t.y,i=Math.sqrt(n*n+o*o);return{vx:(e.x-t.x)/i,vy:(e.y-t.y)/i,origin:t,ln:i}}var c1=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};ao(c1.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=1,o=e._rect;return t=Ta(t,e.center(),-e._rotation),!(t.x<o.x-n||t.y<o.y-n||t.x>o.x+o.w+n*2||t.y>o.y+o.h+n*2)},intersects:function(t){var e=this._points(),n=t._points(),o=[Al(e[0],e[1]),Al(e[0],e[3])],i,a,s;for(this._rotation!==t._rotation&&o.push(Al(n[0],n[1]),Al(n[0],n[3])),i=0;i<o.length;++i)if(a=d1(e,o[i]),s=d1(n,o[i]),a.max<s.min||s.max<a.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,o=t.center();return[Ta({x:e.x,y:e.y},o,n),Ta({x:e.x+e.w,y:e.y},o,n),Ta({x:e.x+e.w,y:e.y+e.h},o,n),Ta({x:e.x,y:e.y+e.h},o,n)]}});function u1(t,e,n){var o=e.positioner(t,e),i=o.vx,a=o.vy;if(!i&&!a)return{x:o.x,y:o.y};var s=n.w,l=n.h,c=e.rotation,u=Math.abs(s/2*Math.cos(c))+Math.abs(l/2*Math.sin(c)),h=Math.abs(s/2*Math.sin(c))+Math.abs(l/2*Math.cos(c)),p=1/Math.max(Math.abs(i),Math.abs(a));return u*=i*p,h*=a*p,u+=e.offset*i,h+=e.offset*a,{x:o.x+u,y:o.y+h}}function g6(t,e){var n,o,i,a;for(n=t.length-1;n>=0;--n)for(i=t[n].$layout,o=n-1;o>=0&&i._visible;--o)a=t[o].$layout,a._visible&&i._box.intersects(a._box)&&e(i,a);return t}function b6(t){var e,n,o,i,a,s,l;for(e=0,n=t.length;e<n;++e)o=t[e],i=o.$layout,i._visible&&(l=new Proxy(o._el,{get:(c,u)=>c.getProps([u],!0)[u]}),a=o.geometry(),s=u1(l,o.model(),a),i._box.update(s,a,o.rotation()));return g6(t,function(c,u){var h=c._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(c._visible=!1)})}var Ma={prepare:function(t){var e=[],n,o,i,a,s;for(n=0,i=t.length;n<i;++n)for(o=0,a=t[n].length;o<a;++o)s=t[n][o],e.push(s),s.$layout={_box:new c1,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return e.sort(function(l,c){var u=l.$layout,h=c.$layout;return u._idx===h._idx?h._set-u._set:h._idx-u._idx}),this.update(e),e},update:function(t){var e=!1,n,o,i,a,s;for(n=0,o=t.length;n<o;++n)i=t[n],a=i.model(),s=i.$layout,s._hidable=a&&a.display==="auto",s._visible=i.visible(),e|=s._hidable;e&&b6(t)},lookup:function(t,e){var n,o;for(n=t.length-1;n>=0;--n)if(o=t[n].$layout,o&&o._visible&&o._box.contains(e))return t[n];return null},draw:function(t,e){var n,o,i,a,s,l;for(n=0,o=e.length;n<o;++n)i=e[n],a=i.$layout,a._visible&&(s=i.geometry(),l=u1(i._el,i.model(),s),a._box.update(l,s,i.rotation()),i.draw(t,l))}},y6=function(t){if(Re(t))return null;var e=t,n,o,i;if(Ve(t))if(!Re(t.label))e=t.label;else if(!Re(t.r))e=t.r;else for(e="",n=Object.keys(t),i=0,o=n.length;i<o;++i)e+=(i!==0?", ":"")+n[i]+": "+t[n[i]];return""+e},v6={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:y6,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},tn="$datalabels",f1="$default";function k6(t,e){var n=t.datalabels,o={},i=[],a,s;return n===!1?null:(n===!0&&(n={}),e=ao({},[e,n]),a=e.labels||{},s=Object.keys(a),delete e.labels,s.length?s.forEach(function(l){a[l]&&i.push(ao({},[e,a[l],{_key:l}]))}):i.push(e),o=i.reduce(function(l,c){return We(c.listeners||{},function(u,h){l[h]=l[h]||{},l[h][c._key||f1]=u}),delete c.listeners,l},{}),{labels:i,listeners:o})}function Mu(t,e,n,o){if(e){var i=n.$context,a=n.$groups,s;e[a._set]&&(s=e[a._set][a._key],s&&Qe(s,[i,o])===!0&&(t[tn]._dirty=!0,n.update(i)))}}function w6(t,e,n,o,i){var a,s;!n&&!o||(n?o?n!==o&&(s=a=!0):s=!0:a=!0,s&&Mu(t,e.leave,n,i),a&&Mu(t,e.enter,o,i))}function S6(t,e){var n=t[tn],o=n._listeners,i,a;if(!(!o.enter&&!o.leave)){if(e.type==="mousemove")a=Ma.lookup(n._labels,e);else if(e.type!=="mouseout")return;i=n._hovered,n._hovered=a,w6(t,o,i,a,e)}}function x6(t,e){var n=t[tn],o=n._listeners.click,i=o&&Ma.lookup(n._labels,e);i&&Mu(t,o,i,e)}var Lu={id:"datalabels",defaults:v6,beforeInit:function(t){t[tn]={_actives:[]}},beforeUpdate:function(t){var e=t[tn];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var o=e.index,i=t[tn],a=i._datasets[o]=[],s=t.isDatasetVisible(o),l=t.data.datasets[o],c=k6(l,n),u=e.meta.data||[],h=t.ctx,p,m,b,y,v,w,x,I;for(h.save(),p=0,b=u.length;p<b;++p)if(x=u[p],x[tn]=[],s&&x&&t.getDataVisibility(p)&&!x.skip)for(m=0,y=c.labels.length;m<y;++m)v=c.labels[m],w=v._key,I=new l1(v,h,x,p),I.$groups={_set:o,_key:w||f1},I.$context={active:!1,chart:t,dataIndex:p,dataset:l,datasetIndex:o},I.update(I.$context),x[tn].push(I),a.push(I);h.restore(),ao(i._listeners,c.listeners,{merger:function(R,V,B){V[R]=V[R]||{},V[R][e.index]=B[R],i._listened=!0}})},afterUpdate:function(t){t[tn]._labels=Ma.prepare(t[tn]._datasets)},afterDatasetsDraw:function(t){Ma.draw(t,t[tn]._labels)},beforeEvent:function(t,e){if(t[tn]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":S6(t,n);break;case"click":x6(t,n);break}}},afterEvent:function(t){var e=t[tn],n=e._actives,o=e._actives=t.getActiveElements(),i=Fa.arrayDiff(n,o),a,s,l,c,u,h,p;for(a=0,s=i.length;a<s;++a)if(u=i[a],u[1])for(p=u[0].element[tn]||[],l=0,c=p.length;l<c;++l)h=p[l],h.$context.active=u[1]===1,h.update(h.$context);(e._dirty||i.length)&&(Ma.update(e._labels),t.render()),delete e._dirty}};const C6={class:"flex flex-col h-full m-24 overflow-hidden p-24"},A6={class:"flex flex-col gap-8"},E6={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},D6={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},B6={class:"grow"},p1=r.defineComponent({__name:"FmLine",props:{name:{default:void 0},paragraph:{default:void 0},datasets:{},xAxis:{},transpose:{type:Boolean,default:!1},stacked:{type:Boolean},maintainAspectRatio:{type:Boolean},hideXAxis:{type:Boolean,default:void 0},hideYAxis:{type:Boolean,default:void 0},legend:{default:void 0},tooltip:{default:void 0},datalabels:{default:void 0},xCfg:{default:void 0},yCfg:{default:void 0},plugins:{},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;r.watch([()=>e.transpose,()=>e.maintainAspectRatio,()=>e.hideXAxis,()=>e.hideYAxis,()=>e.legend,()=>e.datalabels,()=>e.xCfg,()=>e.yCfg,()=>e.height,()=>e.width],()=>{o&&o.config.options&&(o.destroy(),c())});const i=r.computed(()=>e.transpose?"y":"x");function a({context:u,color:h}){const{ctx:p,chartArea:m}=u.chart;if(!m)return;const b=p==null?void 0:p.createLinearGradient(0,0,0,m.height);return b.addColorStop(0,vc(h,.5)),b.addColorStop(1,vc(h,0)),b}const s=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),l=r.computed(()=>({labels:e.xAxis.categories,datasets:e.datasets.map(u=>{const h=Go(u.color)??"";let p;u.borderColor===null?p=void 0:u.borderColor?p=Go(u.borderColor):p=h;let m;return u.backgroundColor===null?m=void 0:u.backgroundColor?m=Go(u.backgroundColor):m=h?b=>a({context:b,color:h}):void 0,{...u,backgroundColor:m,borderColor:p,borderDash:u.dash?[5,5]:void 0,tension:.1}})}));r.watch(l,()=>{o&&(o.data=l.value,o.update())},{deep:!0});function c(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"line",data:l.value,plugins:e.plugins??[],options:{plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0,pointStyle:"line"}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}},maintainAspectRatio:e.maintainAspectRatio,responsive:!0,indexAxis:i.value,scales:{x:{display:!e.hideXAxis,stacked:e.stacked,grid:{display:!1},beginAtZero:!0,...e.xCfg},y:{display:!e.hideYAxis,stacked:e.stacked,grid:{display:!0},position:"right",beginAtZero:!0,...e.yCfg}},elements:{line:{borderWidth:1.5},point:{radius:0,hitRadius:30,hoverRadius:6,hoverBackgroundColor:"#FFFFFF",hoverBorderWidth:3}}}}))}return r.onMounted(()=>{c()}),(u,h)=>(r.openBlock(),r.createElementBlock("div",C6,[r.createElementVNode("div",A6,[r.renderSlot(u.$slots,"title"),r.createElementVNode("div",E6,r.toDisplayString(u.name),1),r.createElementVNode("div",D6,r.toDisplayString(u.paragraph),1)]),r.createElementVNode("div",B6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),P6={class:"flex flex-col h-full overflow-hidden px-24 py-16"},I6={class:"flex flex-col gap-8"},O6={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},N6={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},R6={class:"grow"},V6=r.defineComponent({__name:"FmPie",props:{name:{default:void 0},variant:{},paragraph:{default:void 0},datasets:{},metrics:{},legend:{default:void 0},text:{default:void 0},textColor:{default:"#0E1715"},textStyle:{default:"bold 30px sans-serif"},maintainAspectRatio:{type:Boolean,default:!0},percentage:{default:void 0},tooltip:{},plugins:{},datalabels:{default:void 0},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;const i=r.computed(()=>e.percentage?e.percentage:e.variant==="doughnut"?"90%":"0"),a=r.computed(()=>e.text);r.watch([()=>e.metrics,()=>e.datasets,()=>e.variant,()=>e.legend,()=>e.textColor,()=>e.textStyle,()=>e.text,()=>e.maintainAspectRatio,()=>e.percentage,()=>e.datalabels,()=>e.height,()=>e.width],()=>{o&&(o.destroy(),u())});const s=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),l=r.computed(()=>({labels:e.metrics,datasets:e.datasets.map(h=>{let p;return typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Go(m)??"")),typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Go(m)??"")),{...h,backgroundColor:p,hoverOffset:h.hoverOffset??0}})})),c={id:"doughnutlabel",beforeDatasetsDraw:h=>{var p,m;if(e.variant==="doughnut"){const{ctx:b}=h;b.save();const y=(p=h.getDatasetMeta(0).data[0])==null?void 0:p.x,v=(m=h.getDatasetMeta(0).data[0])==null?void 0:m.y;if(b.font=e.textStyle,b.textAlign="center",b.textBaseline="middle",a.value&&a.value!==""){const w=a.value.split(`
38
- `);for(let x=0;x<w.length;x++){const I=x===0?1:.7;b.fillStyle=vc(Go(e.textColor)??"",I),b.fillText(w[x],y,v+x*40)}}}}};function u(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"doughnut",data:l.value,options:{maintainAspectRatio:e.maintainAspectRatio,responsive:!0,cutout:i.value,plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}}},plugins:[c,...e.plugins??[]]}))}return r.onMounted(()=>{u()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",P6,[r.createElementVNode("div",I6,[r.renderSlot(h.$slots,"title"),r.createElementVNode("div",O6,r.toDisplayString(h.name),1),r.createElementVNode("div",N6,r.toDisplayString(h.paragraph),1)]),r.createElementVNode("div",R6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),F6={class:"flex flex-col h-full overflow-hidden px-24 py-16"},T6={class:"flex flex-col gap-8"},M6={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},L6={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},z6={class:"grow"},_6=r.defineComponent({__name:"FmBar",props:{name:{default:void 0},paragraph:{default:void 0},datasets:{},xAxis:{},transpose:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},maintainAspectRatio:{type:Boolean,default:!0},hideXAxis:{type:Boolean,default:void 0},hideYAxis:{type:Boolean,default:void 0},legend:{default:void 0},tooltip:{default:void 0},datalabels:{default:void 0},xCfg:{default:void 0},yCfg:{default:void 0},plugins:{},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;r.watch([()=>e.transpose,()=>e.maintainAspectRatio,()=>e.legend,()=>e.hideXAxis,()=>e.hideYAxis,()=>e.datalabels,()=>e.xCfg,()=>e.yCfg,()=>e.height,()=>e.width],()=>{o&&(o.destroy(),l())});const i=r.computed(()=>e.transpose?"y":"x"),a=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),s=r.computed(()=>({labels:e.xAxis.categories,datasets:e.datasets.map(c=>{var p;let u,h;return typeof c.backgroundColor=="string"?u=c.backgroundColor:typeof c.backgroundColor=="object"&&(u=c.backgroundColor.map(m=>Go(m)??"")),typeof c.borderColor=="string"?h=c.borderColor:typeof c.borderColor=="object"&&(h=(p=c.borderColor)==null?void 0:p.map(m=>Go(m)??"")),{...c,backgroundColor:u,borderColor:h,borderRadius:10,borderWidth:h?1:0}})}));r.watch(s,()=>{o&&(o.data=s.value,o.update())},{deep:!0});function l(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"bar",data:s.value,plugins:e.plugins??[],options:{plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}},maintainAspectRatio:e.maintainAspectRatio,responsive:!0,indexAxis:i.value,scales:{x:{display:!e.hideXAxis,stacked:e.stacked,grid:{display:!1},beginAtZero:!0,...e.xCfg},y:{display:!e.hideYAxis,stacked:e.stacked,grid:{display:!1},position:"right",beginAtZero:!0,...e.yCfg}},elements:{point:{radius:0,hitRadius:30,hoverRadius:6,hoverBackgroundColor:"#FFFFFF",hoverBorderWidth:3}}}}))}return r.onMounted(()=>{l()}),(c,u)=>(r.openBlock(),r.createElementBlock("div",F6,[r.createElementVNode("div",T6,[r.renderSlot(c.$slots,"title"),r.createElementVNode("div",M6,r.toDisplayString(c.name),1),r.createElementVNode("div",L6,r.toDisplayString(c.paragraph),1)]),r.createElementVNode("div",z6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(a.value)},null,4)])]))}}),H6={class:"fm-typo-en-body-lg-600"},U6={class:"h-[264px] overflow-y-auto w-[160px]"},W6=["onVnodeMounted"],j6=["onVnodeMounted"],ki=r.defineComponent({__name:"FmDateRangeYearMonthPicker",props:{modelValue:{},picker:{},min:{},max:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>{const u=W(n.min).startOf("year"),h=W(n.max).startOf("year"),p=h.diff(u,"year"),m=[];for(let b=0;b<=p;b++)m.push(h.subtract(b,"year"));return m}),s=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");return u.get("year")===h.get("year")?u.startOf("month").isAfter(h)||u.get("month")===h.get("month"):u.get("year")===p.get("year")?u.startOf("month").isBefore(p)||u.get("month")===p.get("month"):!0},l=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");if(h.get("year")===u.get("year")){o("update:modelValue",h);return}if(p.get("year")===u.get("year")){o("update:modelValue",p);return}o("update:modelValue",u)};function c(u,h){if(!h)return!1;const p=u.el,m=p==null?void 0:p.parentElement;!p||!m||m.scrollTo({top:p.offsetTop-50})}return(u,h)=>(r.openBlock(),r.createBlock(io,{trigger:"click","in-popover":"",onMenuChanged:h[0]||(h[0]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-4 h-24 items-center px-8 rounded-sm",i.value?"text-fm-color-primary":"hover:bg-fm-color-neutral-gray-100"])},[r.createElementVNode("div",H6,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.monthFormat"))),1)],64)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ce,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",U6,[u.picker==="month"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(Array.from(Array(12),(p,m)=>u.modelValue.month(m)),p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")))},[r.createVNode(xt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")),label:p.format(r.unref(H)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,W6))),128)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(a.value,p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")))},[r.createVNode(xt,{"model-value":u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")),label:p.format(r.unref(H)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,j6))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),Bo=De(r.defineComponent({__name:"FmPopover",props:{showPopover:{type:Boolean,default:!1},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1},zIndex:{default:99},excludeElFromClickOutside:{default:void 0}},emits:["popover-changed"],setup(t,{expose:e,emit:n}){const o=t,i=r.ref(o.showPopover),a=r.ref(null),s=r.ref(null),{floatingStyles:l}=ci(a,s,{middleware:[si(4),li(),Nc({crossAxis:!0})],placement:o.placement,whileElementsMounted:ai,strategy:"fixed"}),c=n,u=()=>{i.value||(i.value=!0,c("popover-changed",i.value))},h=()=>{i.value&&(i.value=!1,c("popover-changed",i.value))};e({show:u,hide:h});const p=()=>{o.disabled||(i.value=!i.value,c("popover-changed",i.value))};r.watch(()=>o.showPopover,v=>i.value=v);const m=`fm-popover-${Math.random().toString(36).substring(2,15)}`,b=r.computed(()=>[m,...o.excludeElFromClickOutside||[]]),y=()=>{i.value&&(i.value=!1,c("popover-changed",i.value))};return(v,w)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{ref_key:"anchorEl",ref:a,class:"fm-popover",onClick:p},[r.renderSlot(v.$slots,"popover-button",{},void 0,!0)],512),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:m,ref_key:"popoverEl",ref:s,style:r.normalizeStyle({...r.unref(l),zIndex:o.zIndex}),class:"fm-popover__content"},[r.renderSlot(v.$slots,"default",{hide:h,show:u},void 0,!0)],4)):r.createCommentVNode("",!0)]))])),[[r.unref(Vc),y,b.value]])}}),[["__scopeId","data-v-c760cf20"]]),ne="YYYY-MM-DD",zu=t=>{const e=[],n=t.endOf("month"),o=t.month();let i=t.startOf("week"),a=[];for(;i.isBefore(n.endOf("week"));)i.day()===0&&a.length>0&&(e.push(a),a=[]),a.push({date:i,isCurrentMonth:i.month()===o}),i=i.add(1,"day");return a.length>0&&e.push(a),e},h1=(t,e)=>{const n=W().startOf("month"),o=W(t).diff(n,"month"),i=W(e).diff(n,"month"),a=[];for(let s=o-1;s<=i;s++){const l=[],c=n.add(s,"month").startOf("month"),u=c.endOf("month"),h=c.month();let p=c.startOf("week"),m=[];for(;p.isBefore(u.endOf("week"));)p.day()===0&&m.length>0&&(l.push(m),m=[]),m.push({id:c.format("MM-YYYY"),date:p,isCurrentMonth:p.month()===h}),p=p.add(1,"day");m.length>0&&l.push(m),a.push({id:c.format("YYYY-MM-DD"),matrix:l,height:64+48*(u.endOf("week").diff(c.startOf("week"),"week")+1)})}return a},wi=()=>[H("date.day.sun"),H("date.day.mon"),H("date.day.tue"),H("date.day.wed"),H("date.day.thu"),H("date.day.fri"),H("date.day.sat")],G6={class:"p-12 w-[360px]"},Q6={class:"w-max"},X6={class:"flex h-40 justify-between px-4 py-8"},q6={class:"flex gap-4 items-center"},K6={class:"flex gap-4 items-center justify-center"},J6={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Y6=["onClick"],Z6={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},$6=De(r.defineComponent({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,ne)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=r.ref(!1),u=r.ref(!1),h=y=>{i.value=y},p=()=>{o.value=i.value.format(ne),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?W(o.value):null,a.value=!1},b=y=>{c.value=!1,u.value=!1,l.value=y};return(y,v)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":v[5]||(v[5]=w=>r.isRef(o)?o.value=w:null),disabled:s.value,focused:a.value,"helper-state":y.helperState,"helper-text":y.helperText,info:y.labelInfo,label:y.label,optional:y.labelMark==="optional",required:y.labelMark==="required",rules:y.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(y.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:w})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":y.zIndex,onPopoverChanged:v[4]||(v[4]=x=>a.value=x)},{"popover-button":r.withCtx(()=>[y.$slots["trigger-button"]?r.renderSlot(y.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:w,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value})),void 0,!0):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:w,"show-valid-border":y.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(y.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",G6,[r.createElementVNode("div",Q6,[r.createElementVNode("div",X6,[r.createElementVNode("div",q6,[r.createVNode(ki,{max:y.max,min:y.min,"model-value":l.value,picker:"month","onUpdate:modelValue":v[0]||(v[0]=x=>b(x))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:y.max,min:y.min,"model-value":l.value,picker:"year","onUpdate:modelValue":v[1]||(v[1]=x=>b(x))},null,8,["max","min","model-value"])]),r.createElementVNode("div",K6,[r.createVNode(ce,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:v[2]||(v[2]=()=>b(l.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_right",onClick:v[3]||(v[3]=()=>b(l.value.add(1,"month")))})])]),r.createElementVNode("div",null,[r.createElementVNode("div",J6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),x=>(r.openBlock(),r.createElementBlock("div",{key:x,class:"fm-calendar__cell"},r.toDisplayString(x),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(l.value),(x,I)=>(r.openBlock(),r.createElementBlock("div",{key:I,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x,R=>(r.openBlock(),r.createElementBlock("div",{key:R.date.date(),class:"fm-calendar__cell"},[R.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":R.date.isSame(i.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(R.date)},r.toDisplayString(R.date.date()),11,Y6)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",Z6,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(y.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-f6b5a366"]]),m1=t=>(r.pushScopeId("data-v-43495396"),t=t(),r.popScopeId(),t),e9={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},t9={class:"flex items-center justify-center"},n9={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},o9={class:"flex h-[calc(100%-208px)] justify-center relative w-full"},r9=m1(()=>r.createElementVNode("div",{class:"absolute bg-gradient-to-b from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),i9={id:"wrapper",class:"h-full relative w-[336px]"},a9=["id"],s9={class:"flex gap-4 items-center"},l9={class:"fm-typo-en-body-lg-600"},d9={class:"fm-typo-en-body-lg-600"},c9=["onClick"],u9={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},f9=m1(()=>r.createElementVNode("div",{class:"-top-32 absolute bg-gradient-to-t from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),p9={class:"flex gap-8 items-center justify-end w-full"},g1=De(r.defineComponent({__name:"FmDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:99},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=h1(e.min,e.max),i=Pe(e,"modelValue"),a=W(),s=r.ref(W(i.value,ne)),l=r.ref(!1),c=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),u=r.ref(),h=v=>{s.value=v},p=()=>{i.value=s.value.format(ne),setTimeout(()=>{l.value=!1},0)},m=()=>{s.value=i.value?W(i.value):null,l.value=!1},b=()=>{l.value=!0,setTimeout(()=>{u.value.scrollToItem(y(a.startOf("month")))},0)},y=v=>o.findIndex(w=>w.id===v.startOf("month").format(ne));return(v,w)=>{const x=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":w[0]||(w[0]=I=>r.isRef(i)?i.value=I:null),disabled:c.value,focused:l.value,"helper-state":v.helperState,"helper-text":v.helperText,info:v.labelInfo,label:v.label,optional:v.labelMark==="optional",required:v.labelMark==="required",rules:v.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(v.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:I})=>[v.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:b},[r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({invalid:I,opened:l.value,showValidBorder:v.showValidBorder})),void 0,!0)])):(r.openBlock(),r.createBlock(at,{key:1,disabled:c.value,focused:l.value,invalid:I,"show-valid-border":v.showValidBorder,class:"cursor-pointer","icon-outlined":"","prepend-icon":"calendar_month",onClick:b},{prepend:r.withCtx(()=>[r.renderSlot(v.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(v.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":r.unref(i)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(i)?r.unref(W)(r.unref(i)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","invalid","show-valid-border"])),l.value?(r.openBlock(),r.createBlock(r.Teleport,{key:2,to:"body"},[r.createElementVNode("div",{style:r.normalizeStyle({zIndex:e.zIndex}),class:"bg-fm-color-neutral-white fixed flex flex-col h-dvh left-0 top-0 w-screen"},[r.createElementVNode("div",e9,[r.createVNode(at,{focused:l.value,invalid:I,"show-valid-border":v.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(v.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(v.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var R,V;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":(R=s.value)!=null&&R.isValid()?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((V=s.value)!=null&&V.isValid()?r.unref(W)(s.value).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["focused","invalid","show-valid-border"]),r.createElementVNode("div",t9,[r.createElementVNode("div",n9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),R=>(r.openBlock(),r.createElementBlock("div",{key:R,class:"fm-calendar__cell"},r.toDisplayString(R),1))),128))])])]),r.createElementVNode("div",o9,[r9,r.createElementVNode("div",i9,[r.createVNode(x,{ref_key:"scroller",ref:u,buffer:200,"item-size":null,items:r.unref(o),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:R})=>[r.createElementVNode("div",{id:R.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",s9,[r.createElementVNode("div",l9,r.toDisplayString(r.unref(W)(R.id).format(r.unref(H)("date.monthFormat"))),1),r.createElementVNode("div",d9,r.toDisplayString(r.unref(W)(R.id).format(r.unref(H)("date.yearFormat"))),1)])],8,a9),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(R.matrix,(V,B)=>(r.openBlock(),r.createElementBlock("div",{key:B,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(V,L=>(r.openBlock(),r.createElementBlock("div",{key:L.date.date(),class:"fm-calendar__cell"},[L.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":L.date.isSame(s.value),"fm-typo-en-body-lg-600":L.date.isSame(r.unref(a),"day")},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(L.date)},r.toDisplayString(L.date.date()),11,c9)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",u9,[f9,r.createElementVNode("div",p9,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!s.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]),"helper-text":r.withCtx(()=>[r.renderSlot(v.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"])}}}),[["__scopeId","data-v-43495396"]]),El=t=>{const e=r.inject(Ke,null);return r.computed(()=>{const n=t.disabled??(e==null?void 0:e.getDisabled())??!1;return{...t,disabled:n}})},h9=r.defineComponent({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const{breakpoints:e}=Jo(),n=t,o=Pe(n,"modelValue"),i=El(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock($6,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(e).xs||r.unref(e).sm?(r.openBlock(),r.createBlock(g1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),b1=r.defineComponent({__name:"FmMenuDivider",props:{vertical:{type:Boolean,default:!1},inset:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["border-fm-color-neutral-gray-100 rounded-sm",[e.vertical?"border-l -my-4 mx-4":"border-t -mx-4 my-4",{"my-0":e.inset&&e.vertical,"mx-0":e.inset&&!e.vertical}]])},null,2))}}),m9={class:"cursor-pointer fm-switch__container"},g9={key:0,class:"space-y-4"},b9={class:"fm-typo-en-body-lg-400"},y9={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},v9={class:"fm-switch__input--container"},k9=["checked","disabled","value"],w9={key:1,class:"space-y-4"},S9={class:"fm-typo-en-body-lg-400"},x9={key:0,class:"text-fm-color-typo-secondary fm-typo-en-body-md-400"},Dl=De(r.defineComponent({__name:"FmSwitch",props:{modelValue:{type:Boolean},label:{default:""},sublabel:{default:""},labelPlacement:{default:"left"},value:{default:null},disabled:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=()=>{o.value||(i.value=!i.value)};return(s,l)=>(r.openBlock(),r.createElementBlock("label",m9,[s.labelPlacement==="left"?(r.openBlock(),r.createElementBlock("div",g9,[r.renderSlot(s.$slots,"label",{},void 0,!0),r.createElementVNode("div",b9,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",y9,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",v9,[r.createElementVNode("input",{checked:r.unref(i),disabled:o.value,value:s.value,class:"fm-switch__input--btn",type:"checkbox",onClick:a},null,8,k9),r.createElementVNode("div",{class:r.normalizeClass({"fm-switch__input--knob":!0,"fm-switch__input--knob--show-icon":s.showIcon})},[s.showIcon?(r.openBlock(),r.createBlock(ce,{key:0,color:o.value?"#C7C7CC":r.unref(i)?"#1C1C1E":"#FFFFFF",name:r.unref(i)?"check":"close",size:"sm"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)]),s.labelPlacement==="right"?(r.openBlock(),r.createElementBlock("div",w9,[r.createElementVNode("div",S9,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",x9,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-48c9e062"]]);var Ct=(t=>(t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.CUSTOM="CUSTOM",t))(Ct||{});const y1=t=>(r.pushScopeId("data-v-cc800d6b"),t=t(),r.popScopeId(),t),C9={key:0,class:"flex gap-4 items-center relative w-full"},A9={class:"flex flex-col gap-4 w-full"},E9=y1(()=>r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1)),D9={class:"flex flex-col gap-4 w-full"},B9={key:1,class:"flex flex-col gap-4 w-full"},P9={class:"flex gap-4 p-12"},I9={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},O9={key:0,class:"px-8"},N9={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},R9={class:"flex flex-col gap-24"},V9={key:0,class:"flex gap-4 items-center px-12 w-full"},F9={class:"flex flex-col gap-4 w-full"},T9=y1(()=>r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," - ",-1)),M9={class:"flex flex-col gap-4 w-full"},L9={class:"flex gap-24"},z9={class:"w-max"},_9={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},H9={class:"flex gap-4 items-center"},U9={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},W9={class:"h-[288px]"},j9={key:0,class:"fm-calendar__cell__button--today"},G9=["onClick","onMouseover"],Q9={class:"w-max"},X9={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},q9={class:"flex gap-4 items-center"},K9={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},J9={key:0,class:"fm-calendar__cell__button--today"},Y9=["onClick","onMouseover"],Z9={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},$9=De(r.defineComponent({__name:"FmDateRangePickerDesktop",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){var Q,F;const e=[{id:Ct.PRECEDING_PERIOD,label:H("date.precedingPeriod"),sublabel:"",action:()=>{h.value=Ct.PRECEDING_PERIOD;const E=s.value;if(E[0].startDate&&E[0].endDate){const S=E[0].startDate.diff(E[0].endDate,"day");E[1]={startDate:E[0].startDate.subtract(+(1-S),"day"),endDate:E[0].startDate.subtract(1,"day")}}}},{id:Ct.PRECEDING_WEEK,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfWeek"),action:()=>{h.value=Ct.PRECEDING_WEEK;const E=s.value;if(E[0].startDate&&E[0].endDate){let S=E[0].endDate.diff(E[0].startDate,"week");S===0&&(S+=1),E[1]={startDate:E[0].startDate.subtract(S,"week"),endDate:E[0].endDate.subtract(S,"week")}}}},{id:Ct.PRECEDING_MONTH,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfMonth"),action:()=>{h.value=Ct.PRECEDING_MONTH;const E=s.value;if(E[0].startDate&&E[0].endDate){let S=E[0].endDate.diff(E[0].startDate,"month");S===0&&(S+=1),E[1]={startDate:E[0].startDate.subtract(S,"month"),endDate:E[0].endDate.subtract(S,"month")}}}},{id:Ct.CUSTOM,label:H("date.match.custom"),sublabel:"",action:()=>{h.value=Ct.CUSTOM}}],n=t,o=r.inject(Ke,null),i=W(),a=Pe(n,"modelValue"),s=r.ref([{startDate:(Q=a.value)!=null&&Q.startDate?W(a.value.startDate,ne):null,endDate:(F=a.value)!=null&&F.endDate?W(a.value.endDate,ne):null},{startDate:null,endDate:null}]),l=r.ref(!1),c=r.computed(()=>n.disabled??(o==null?void 0:o.getDisabled())??!1),u=r.ref(!1),h=r.ref(""),p=r.ref(W().startOf("month")),m=r.ref(W().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(null);let v=0;const w=E=>{var S;if(b.value="",s.value[v].startDate&&s.value[v].endDate){v===1&&(s.value=s.value.map(()=>({startDate:null,endDate:null})),v=0),s.value[0]={startDate:E,endDate:null};return}else if(!s.value[v].startDate&&!s.value[v].endDate)s.value[v].startDate=E;else{if(E.isBefore(s.value[v].startDate)){const D=s.value[v].startDate;s.value[v]={startDate:E,endDate:D}}else s.value[v].endDate=E;u.value&&(v=1),e.find(D=>D.id===h.value)||(h.value=Ct.CUSTOM)}(S=e.find(D=>D.id===h.value))==null||S.action()},x=()=>{u.value?a.value=s.value.map(E=>({startDate:E.startDate.format(ne),endDate:E.endDate.format(ne)})):a.value={startDate:s.value[0].startDate.format(ne),endDate:s.value[0].endDate.format(ne)},setTimeout(()=>{l.value=!1})},I=()=>{var E,S;Array.isArray(a.value)?s.value=a.value:s.value[0]={startDate:(E=a.value)!=null&&E.startDate?W(a.value.startDate,ne):null,endDate:(S=a.value)!=null&&S.endDate?W(a.value.endDate,ne):null},l.value=!1},R=(E,S)=>{E==="left"?(p.value=S,m.value=S.add(1,"month")):E==="right"&&(m.value=S,p.value=S.subtract(1,"month"))},V=E=>{const S=s.value[0].startDate,D=s.value[0].endDate,C=s.value[1].startDate,T=s.value[1].endDate,M=y.value,K=S==null?void 0:S.isSame(E),oe=D==null?void 0:D.isSame(E),le=C==null?void 0:C.isSame(E),Z=T==null?void 0:T.isSame(E),ie=M==null?void 0:M.isSame(E),fe=K&&D&&!(K&&oe)||S&&!D&&K&&(M==null?void 0:M.isAfter(S))||S&&!D&&ie&&(M==null?void 0:M.isBefore(S)),he=le&&T&&!(le&&Z)||C&&!T&&le&&(M==null?void 0:M.isAfter(C))||C&&!T&&ie&&(M==null?void 0:M.isBefore(C)),Oe=oe&&S&&!(K&&oe)||S&&!D&&K&&(M==null?void 0:M.isBefore(S))||S&&!D&&ie&&(M==null?void 0:M.isAfter(S)),st=Z&&C&&!(le&&Z)||C&&!T&&le&&(M==null?void 0:M.isBefore(C))||C&&!T&&ie&&(M==null?void 0:M.isAfter(C)),Xe=K&&oe||K&&!D,nt=le&&Z||le&&!T,ot=S&&(D||M)&&D?E.isAfter(S)&&E.isBefore(D):E.isAfter(M)&&E.isBefore(S)||E.isBefore(M)&&E.isAfter(S),At=C&&(T||M)&&T?E.isAfter(C)&&E.isBefore(T):E.isAfter(M)&&E.isBefore(C)||E.isBefore(M)&&E.isAfter(C),Pt=()=>{if(s.value.filter(Xt=>{var Xn;for(const Ni in Xt)if((Xn=Xt[Ni])!=null&&Xn.isSame(E,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(K&&oe&&(pt(E,C,T)||pt(E,C,M)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(le&&Z&&(pt(E,S,D)||pt(E,S,M)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(fe||Oe)return pt(E,C,T)||pt(E,C,M)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(he||st)return pt(E,S,D)||pt(E,S,M)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(Xe)return"bg-fm-color-primary";if(nt)return"bg-fm-color-system-info-300";if(pt(E,S,D)&&(pt(E,C,T)||pt(E,C,M)))return"bg-fm-color-system-success-100";if(ot)return"bg-fm-color-system-warning-100";if(At)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Pt()}`]:fe||he,[`fm-calendar__cell__button--selected-end ${Pt()}`]:Oe||st,[`fm-calendar__cell__button--selected-between ${Pt()}`]:ot||At,[`fm-calendar__cell__button--selected ${Pt()}`]:Xe||nt}},B=E=>{const S=s.value;if(S[0].startDate&&!S[0].endDate||S[1].startDate&&!S[1].endDate){y.value=E;return}y.value=null},L=E=>{b.value=E.label,s.value[0]={startDate:W(E.value.startDate,ne),endDate:W(E.value.endDate,ne)},R("left",W(E.value.startDate,ne).startOf("month"))},P=r.computed(()=>u.value?!s.value.every(E=>E.startDate&&E.endDate):!(s.value[0].startDate&&s.value[0].endDate)),_=E=>{h.value="",u.value=E,s.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),v=0},U=r.computed(()=>{if(!a.value)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const E=u.value&&Array.isArray(a.value)?a.value[0].startDate:a.value.startDate,S=u.value&&Array.isArray(a.value)?a.value[0].endDate:a.value.endDate;return{startDate:E?W(E).format(H("date.format")):H("date.placeholder"),endDate:S?W(S).format(H("date.format")):H("date.placeholder")}}),G=r.computed(()=>{const E=u.value&&Array.isArray(a.value)?a.value[1].startDate:null,S=u.value&&Array.isArray(a.value)?a.value[1].endDate:null;return E&&S?`${H("date.compareLabel")} ${W(E).format(H("date.format"))} - ${W(S).format(H("date.format"))}`:""});return r.watch(()=>a.value,()=>{var E,S;u.value?s.value=a.value.map(D=>({startDate:D!=null&&D.startDate?W(D.startDate,ne):null,endDate:D!=null&&D.endDate?W(D.endDate,ne):null})):s.value[0]={startDate:(E=a.value)!=null&&E.startDate?W(a.value.startDate,ne):null,endDate:(S=a.value)!=null&&S.endDate?W(a.value.endDate,ne):null}}),(E,S)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(a),"onUpdate:modelValue":S[8]||(S[8]=D=>r.isRef(a)?a.value=D:null),disabled:c.value,focused:l.value,"helper-state":E.helperState,"helper-text":u.value?G.value:E.helperText,rules:E.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:D})=>[r.createVNode(Bo,{disabled:c.value,"show-popover":l.value,"z-index":n.zIndex,onPopoverChanged:S[7]||(S[7]=C=>l.value=C)},{"popover-button":r.withCtx(()=>[E.$slots["trigger-button"]?r.renderSlot(E.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:l.value,invalid:D,showValidBorder:E.showValidBorder,isComparing:u.value,disabled:c.value})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[E.compare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",C9,[r.createElementVNode("label",A9,[r.createVNode(hn,{disabled:c.value,label:n.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),disabled:c.value,focused:l.value,"icon-outlined":!l.value,invalid:D,"show-valid-border":E.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(a))!=null&&C.startDate?r.unref(W)(r.unref(a).startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),E9,r.createElementVNode("label",D9,[r.createVNode(hn,{disabled:c.value,label:n.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),disabled:c.value,focused:l.value,"icon-outlined":!l.value,invalid:D,"show-valid-border":E.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":U.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(a))!=null&&C.endDate?r.unref(W)(r.unref(a).endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),E.compare?(r.openBlock(),r.createElementBlock("label",B9,[r.createVNode(hn,{label:E.compareLabel??r.unref(H)("date.compare"),locale:E.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),focused:l.value,invalid:D,"show-valid-border":E.showValidBorder},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":U.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(U.value.startDate)+" - "+r.toDisplayString(U.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)],64))]),default:r.withCtx(()=>[r.createElementVNode("div",P9,[E.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",I9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.predefinedRange,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":b.value===C.label,selectable:"",onClick:M=>L(C)},null,8,["label","model-value","onClick"]))),128)),E.compare&&E.predefinedRange?(r.openBlock(),r.createElementBlock("div",O9,[r.createVNode(b1,{inset:""})])):r.createCommentVNode("",!0),E.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Dl,{"model-value":u.value,class:"justify-between px-12",label:r.unref(H)("date.label.compare"),"onUpdate:modelValue":S[0]||(S[0]=C=>_(C))},null,8,["model-value","label"]),u.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},r.renderList(e,(C,T)=>r.createVNode(xt,{key:T,label:C.label,"model-value":h.value===C.id,sublabel:C.sublabel,selectable:"",onClick:M=>C.action()},null,8,["label","model-value","sublabel","onClick"])),64)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),E.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",N9)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass({"pl-4":E.showPredefinedRange})},[r.createElementVNode("div",R9,[u.value?(r.openBlock(),r.createElementBlock("div",V9,[r.createElementVNode("label",F9,[r.createVNode(hn,{locale:E.locale,label:r.unref(H)("date.label.custom")},null,8,["locale","label"]),r.createVNode(at,{focused:!1},{default:r.withCtx(()=>{var C,T;return[r.createElementVNode("div",{class:r.normalizeClass([[(C=s.value[0])!=null&&C.startDate&&((T=s.value[0])!=null&&T.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(s.value[0].startDate!==null?s.value[0].startDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder"))+" - "+r.toDisplayString(s.value[0].endDate!==null?s.value[0].endDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:1})]),T9,r.createElementVNode("label",M9,[r.createVNode(hn,{locale:E.locale,label:r.unref(H)("date.label.compare")},null,8,["locale","label"]),r.createVNode(at,{focused:!1},{default:r.withCtx(()=>{var C,T;return[r.createElementVNode("div",{class:r.normalizeClass([[(C=s.value[1])!=null&&C.startDate&&((T=s.value[1])!=null&&T.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(s.value[1].startDate!==null?s.value[1].startDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder"))+" - "+r.toDisplayString(s.value[1].endDate!==null?s.value[1].endDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",L9,[r.createElementVNode("div",z9,[r.createElementVNode("div",_9,[r.createElementVNode("div",H9,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:S[1]||(S[1]=()=>R("left",p.value.subtract(1,"month")))}),r.createVNode(ki,{max:E.max,min:E.min,"model-value":p.value,picker:"month","onUpdate:modelValue":S[2]||(S[2]=C=>R("left",C))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:E.max,min:E.min,"model-value":p.value,picker:"year","onUpdate:modelValue":S[3]||(S[3]=C=>R("left",C))},null,8,["max","min","model-value"])])]),r.createElementVNode("div",null,[r.createElementVNode("div",U9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),C=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__cell"},r.toDisplayString(C),1))),128))]),r.createElementVNode("div",W9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(p.value),(C,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C,M=>(r.openBlock(),r.createElementBlock("div",{key:M.date.date(),class:"fm-calendar__cell"},[M.date.isSame(r.unref(i),"day")&&M.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",j9)):r.createCommentVNode("",!0),M.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[V(M.date),{"fm-typo-en-body-lg-600":M.date.isSame(r.unref(i),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>w(M.date),onMouseover:K=>B(M.date)},r.toDisplayString(M.date.date()),43,G9)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",Q9,[r.createElementVNode("div",X9,[r.createElementVNode("div",q9,[r.createVNode(ki,{max:E.max,min:E.min,"model-value":m.value,picker:"month","onUpdate:modelValue":S[4]||(S[4]=C=>R("right",C))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:E.max,min:E.min,"model-value":m.value,picker:"year","onUpdate:modelValue":S[5]||(S[5]=C=>R("right",C))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:S[6]||(S[6]=()=>R("left",p.value.add(1,"month")))})]),r.createElementVNode("div",null,[r.createElementVNode("div",K9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),C=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__cell"},r.toDisplayString(C),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(m.value),(C,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C,M=>(r.openBlock(),r.createElementBlock("div",{key:M.date.date(),class:"fm-calendar__cell"},[M.date.isSame(r.unref(i),"day")&&M.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",J9)):r.createCommentVNode("",!0),M.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[V(M.date),{"fm-typo-en-body-lg-600":M.date.isSame(r.unref(i),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>w(M.date),onMouseover:K=>B(M.date)},r.toDisplayString(M.date.date()),43,Y9)):r.createCommentVNode("",!0)]))),128))]))),128))])])])])]),r.createElementVNode("div",Z9,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:I},null,8,["label"]),r.createVNode(me,{disabled:P.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[E.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(E.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),[["__scopeId","data-v-cc800d6b"]]),e5={key:0},t5={class:"flex gap-4 items-center relative w-full"},n5={class:"flex flex-col gap-4 w-full"},o5=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),r5={class:"flex flex-col gap-4 w-full"},i5={key:1,class:"flex flex-col gap-4 w-full"},_u=r.defineComponent({__name:"FmDateRangePickerField",props:{modelValue:{},analytic:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},isComparing:{type:Boolean,default:!1},startLabel:{},endLabel:{},compareLabel:{},locale:{}},setup(t){const e=t,n=r.computed(()=>{if(!e.modelValue)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const o=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,i=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o?W(o).format(H("date.format")):H("date.placeholder"),endDate:i?W(i).format(H("date.format")):H("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",e5,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",t5,[r.createElementVNode("label",n5,[r.createVNode(hn,{disabled:o.disabled,label:e.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.startDate?r.unref(W)(o.modelValue.startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),o5,r.createElementVNode("label",r5,[r.createVNode(hn,{disabled:o.disabled,label:e.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.endDate?r.unref(W)(o.modelValue.endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",i5,[r.createVNode(hn,{label:o.compareLabel??r.unref(H)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":n.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(n.value.startDate)+" - "+r.toDisplayString(n.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),v1=t=>(r.pushScopeId("data-v-f67f5a71"),t=t(),r.popScopeId(),t),a5={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},s5={class:"flex items-center justify-center"},l5={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},d5={class:"flex h-[calc(100%-172px)] justify-center relative w-full"},c5=v1(()=>r.createElementVNode("div",{class:"absolute bg-gradient-to-b from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),u5={id:"wrapper",class:"h-full relative w-[336px]"},f5=["id"],p5={class:"flex gap-4 items-center"},h5={class:"fm-typo-en-body-lg-600"},m5={class:"fm-typo-en-body-lg-600"},g5=["onClick","onMouseover"],b5={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},y5=v1(()=>r.createElementVNode("div",{class:"-top-32 absolute bg-gradient-to-t from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),v5={class:"flex gap-8 items-center justify-end w-full"},k1=De(r.defineComponent({__name:"FmDateRangePickerMobile",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:100},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){var F,E;const e=r.ref(),n=[{id:Ct.PRECEDING_PERIOD,label:H("date.precedingPeriod"),sublabel:"",action:()=>{p.value=Ct.PRECEDING_PERIOD;const S=c.value;if(S[0].startDate&&S[0].endDate){const D=S[0].startDate.diff(S[0].endDate,"day");S[1]={startDate:S[0].startDate.subtract(+(1-D),"day"),endDate:S[0].startDate.subtract(1,"day")}}}},{id:Ct.PRECEDING_WEEK,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfWeek"),action:()=>{p.value=Ct.PRECEDING_WEEK;const S=c.value;if(S[0].startDate&&S[0].endDate){let D=S[0].endDate.diff(S[0].startDate,"week");D===0&&(D+=1),S[1]={startDate:S[0].startDate.subtract(D,"week"),endDate:S[0].endDate.subtract(D,"week")}}}},{id:Ct.PRECEDING_MONTH,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfMonth"),action:()=>{p.value=Ct.PRECEDING_MONTH;const S=c.value;if(S[0].startDate&&S[0].endDate){let D=S[0].endDate.diff(S[0].startDate,"month");D===0&&(D+=1),S[1]={startDate:S[0].startDate.subtract(D,"month"),endDate:S[0].endDate.subtract(D,"month")}}}},{id:Ct.CUSTOM,label:H("date.match.custom"),sublabel:"",action:()=>{p.value=Ct.CUSTOM}}],o=t,i=r.inject(Ke,null),a=h1(o.min,o.max),s=W(),l=Pe(o,"modelValue"),c=r.ref([{startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,ne):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,ne):null},{startDate:null,endDate:null}]),u=r.ref(!1),h=r.ref(!1),p=r.ref(""),m=r.ref(""),b=r.ref(null);let y=0;const v=S=>{var D;if(m.value="",c.value[y].startDate&&c.value[y].endDate){y===1&&(c.value=c.value.map(()=>({startDate:null,endDate:null})),y=0),c.value[0]={startDate:S,endDate:null};return}else if(!c.value[y].startDate&&!c.value[y].endDate)c.value[y].startDate=S;else{if(S.isBefore(c.value[y].startDate)){const C=c.value[y].startDate;c.value[y]={startDate:S,endDate:C}}else c.value[y].endDate=S;h.value&&(y=1),n.find(C=>C.id===p.value)||(p.value=Ct.CUSTOM)}(D=n.find(C=>C.id===p.value))==null||D.action()},w=()=>{h.value?l.value=c.value.map(S=>({startDate:S.startDate.format(ne),endDate:S.endDate.format(ne)})):l.value={startDate:c.value[0].startDate.format(ne),endDate:c.value[0].endDate.format(ne)},setTimeout(()=>{u.value=!1})},x=()=>{var S,D;Array.isArray(l.value)?c.value=l.value:c.value[0]={startDate:(S=l.value)!=null&&S.startDate?W(l.value.startDate,ne):null,endDate:(D=l.value)!=null&&D.endDate?W(l.value.endDate,ne):null},u.value=!1},I=S=>{const D=c.value[0].startDate,C=c.value[0].endDate,T=c.value[1].startDate,M=c.value[1].endDate,K=b.value,oe=D==null?void 0:D.isSame(S),le=C==null?void 0:C.isSame(S),Z=T==null?void 0:T.isSame(S),ie=M==null?void 0:M.isSame(S),fe=K==null?void 0:K.isSame(S),he=oe&&C&&!(oe&&le)||D&&!C&&oe&&(K==null?void 0:K.isAfter(D))||D&&!C&&fe&&(K==null?void 0:K.isBefore(D)),Oe=Z&&M&&!(Z&&ie)||T&&!M&&Z&&(K==null?void 0:K.isAfter(T))||T&&!M&&fe&&(K==null?void 0:K.isBefore(T)),st=le&&D&&!(oe&&le)||D&&!C&&oe&&(K==null?void 0:K.isBefore(D))||D&&!C&&fe&&(K==null?void 0:K.isAfter(D)),Xe=ie&&T&&!(Z&&ie)||T&&!M&&Z&&(K==null?void 0:K.isBefore(T))||T&&!M&&fe&&(K==null?void 0:K.isAfter(T)),nt=oe&&le||oe&&!C,ot=Z&&ie||Z&&!M,At=D&&(C||K)&&C?S.isAfter(D)&&S.isBefore(C):S.isAfter(K)&&S.isBefore(D)||S.isBefore(K)&&S.isAfter(D),Pt=T&&(M||K)&&M?S.isAfter(T)&&S.isBefore(M):S.isAfter(K)&&S.isBefore(T)||S.isBefore(K)&&S.isAfter(T),kn=()=>{if(c.value.filter(Xn=>{var Ni;for(const qn in Xn)if((Ni=Xn[qn])!=null&&Ni.isSame(S,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(oe&&le&&(pt(S,T,M)||pt(S,T,K)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(Z&&ie&&(pt(S,D,C)||pt(S,D,K)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(he||st)return pt(S,T,M)||pt(S,T,K)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(Oe||Xe)return pt(S,D,C)||pt(S,D,K)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(nt)return"bg-fm-color-primary";if(ot)return"bg-fm-color-system-info-300";if(pt(S,D,C)&&(pt(S,T,M)||pt(S,T,K)))return"bg-fm-color-system-success-100";if(At)return"bg-fm-color-system-warning-100";if(Pt)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${kn()}`]:he||Oe,[`fm-calendar__cell__button--selected-end ${kn()}`]:st||Xe,[`fm-calendar__cell__button--selected-between ${kn()}`]:At||Pt,[`fm-calendar__cell__button--selected ${kn()}`]:nt||ot}},R=S=>{const D=c.value;if(D[0].startDate&&!D[0].endDate||D[1].startDate&&!D[1].endDate){b.value=S;return}b.value=null},V=S=>{c.value[0]={startDate:W(S.startDate,ne),endDate:W(S.endDate,ne)}},B=S=>{const D=n.find(C=>C.id===S);D==null||D.action()},L=r.computed(()=>h.value?!c.value.every(S=>S.startDate&&S.endDate):!(c.value[0].startDate&&c.value[0].endDate)),P=S=>{p.value="",h.value=S,c.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),y=0},_=r.computed(()=>{const S=h.value&&Array.isArray(l.value)?l.value[1].startDate:null,D=h.value&&Array.isArray(l.value)?l.value[1].endDate:null;return S&&D?`${H("date.compareLabel")} ${W(S).format(H("date.format"))} - ${W(D).format(H("date.format"))}`:""}),U=r.computed(()=>o.disabled??(i==null?void 0:i.getDisabled())??!1),G=()=>{U.value||(u.value=!0,setTimeout(()=>{e.value.scrollToItem(Q(s.startOf("month")))},0))},Q=S=>a.findIndex(D=>D.id===S.startOf("month").format(ne));return r.watch(()=>l.value,()=>{var S,D;h.value?c.value=l.value.map(C=>({startDate:C!=null&&C.startDate?W(C.startDate,ne):null,endDate:C!=null&&C.endDate?W(C.endDate,ne):null})):c.value[0]={startDate:(S=l.value)!=null&&S.startDate?W(l.value.startDate,ne):null,endDate:(D=l.value)!=null&&D.endDate?W(l.value.endDate,ne):null}}),(S,D)=>{const C=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":D[3]||(D[3]=T=>r.isRef(l)?l.value=T:null),disabled:U.value,focused:u.value,"helper-state":S.helperState,"helper-text":h.value?_.value:S.helperText,rules:S.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:T})=>{var M,K,oe,le;return[S.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:G},[r.renderSlot(S.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({opened:u.value,invalid:T,showValidBorder:S.showValidBorder,isComparing:h.value,disabled:U.value})),void 0,!0)])):(r.openBlock(),r.createBlock(_u,{key:1,analytic:S.compare,"compare-label":S.compareLabel??r.unref(H)("date.compare"),disabled:U.value,"end-label":S.endLabel??r.unref(H)("date.endDate"),focused:u.value,invalid:T,"is-comparing":h.value,"model-value":r.unref(l),"show-valid-border":S.showValidBorder,"start-label":S.startLabel??r.unref(H)("date.startDate"),onClick:G},r.createSlots({_:2},[S.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(S.$slots,"popover-button",{focused:u.value},void 0,!0)]),key:"0"}:void 0]),1032,["analytic","compare-label","disabled","end-label","focused","invalid","is-comparing","model-value","show-valid-border","start-label"])),u.value?(r.openBlock(),r.createBlock(r.Teleport,{key:2,to:"body"},[r.createElementVNode("div",{style:r.normalizeStyle({zIndex:o.zIndex}),class:"bg-fm-color-neutral-white fixed flex flex-col h-dvh left-0 top-0 w-screen"},[r.createElementVNode("div",a5,[S.showPredefinedRange?(r.openBlock(),r.createBlock(yo,{key:0,items:S.predefinedRange,"model-value":m.value,"onUpdate:modelValue":D[0]||(D[0]=Z=>V(Z))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createVNode(_u,{analytic:S.compare,"compare-label":S.compareLabel??r.unref(H)("date.compare"),"end-label":S.endLabel??r.unref(H)("date.endDate"),"is-comparing":h.value,"model-value":{startDate:((M=c.value[0].startDate)==null?void 0:M.format(r.unref(ne)))??null,endDate:((K=c.value[0].endDate)==null?void 0:K.format(r.unref(ne)))??null},"start-label":S.startLabel??r.unref(H)("date.startDate")},null,8,["analytic","compare-label","end-label","is-comparing","model-value","start-label"]),S.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Dl,{"model-value":h.value,label:r.unref(H)("date.label.compare"),"label-placement":"right","onUpdate:modelValue":D[1]||(D[1]=Z=>P(Z))},null,8,["model-value","label"]),h.value&&S.compare?(r.openBlock(),r.createBlock(yo,{key:0,items:n.map(Z=>({label:Z.label,sublabel:Z.sublabel,value:Z.id})),"model-value":p.value,"onUpdate:modelValue":D[2]||(D[2]=Z=>B(Z))},null,8,["items","model-value"])):r.createCommentVNode("",!0),h.value&&S.compare?(r.openBlock(),r.createBlock(_u,{key:1,analytic:S.compare,"end-label":S.endLabel??r.unref(H)("date.endDate"),"is-comparing":h.value,"model-value":{startDate:((oe=c.value[1].startDate)==null?void 0:oe.format(r.unref(ne)))??null,endDate:((le=c.value[1].endDate)==null?void 0:le.format(r.unref(ne)))??null},"start-label":S.startLabel??r.unref(H)("date.startDate"),"compare-label":"Compare: Custom"},null,8,["analytic","end-label","is-comparing","model-value","start-label"])):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",s5,[r.createElementVNode("div",l5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))])])]),r.createElementVNode("div",d5,[c5,r.createElementVNode("div",u5,[r.createVNode(C,{ref_key:"scroller",ref:e,buffer:200,"item-size":null,items:r.unref(a),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:Z})=>[r.createElementVNode("div",{id:Z.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",p5,[r.createElementVNode("div",h5,r.toDisplayString(r.unref(W)(Z.id).format(r.unref(H)("date.monthFormat"))),1),r.createElementVNode("div",m5,r.toDisplayString(r.unref(W)(Z.id).format(r.unref(H)("date.yearFormat"))),1)])],8,f5),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.matrix,(ie,fe)=>(r.openBlock(),r.createElementBlock("div",{key:fe,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(ie,he=>(r.openBlock(),r.createElementBlock("div",{key:he.date.date(),class:"fm-calendar__cell"},[he.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([[I(he.date),{"fm-typo-en-body-lg-600":he.date.isSame(r.unref(s),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>v(he.date),onMouseover:Oe=>R(he.date)},r.toDisplayString(he.date.date()),43,g5)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",b5,[y5,r.createElementVNode("div",v5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:x},null,8,["label"]),r.createVNode(me,{disabled:L.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:w},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]}),_:2},[S.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(S.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),[["__scopeId","data-v-f67f5a71"]]),k5=r.defineComponent({__name:"FmDateRangePicker",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,{breakpoints:n}=Jo(),o=Pe(e,"modelValue"),i=El(e);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).md||r.unref(n).lg?(r.openBlock(),r.createBlock($9,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(n).xs||r.unref(n).sm?(r.openBlock(),r.createBlock(k1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),re="YYYY-MM-DD",Si=t=>{const e=[],n=t.endOf("month"),o=t.month();let i=t.startOf("week"),a=[];for(;i.isBefore(n.endOf("week"));)i.day()===0&&a.length>0&&(e.push(a),a=[]),a.push({date:i,isCurrentMonth:i.month()===o}),i=i.add(1,"day");return a.length>0&&e.push(a),e.length<6&&e.push([]),e},w1=(t,e)=>({startAt:t?W(t,re):null,endAt:e?W(e,re):null}),w5={class:"fm-typo-en-body-md-600"},S5={id:"in-calendar-app",class:"h-[264px] overflow-y-auto w-[160px]"},x5=["onVnodeMounted"],C5=["onVnodeMounted"],Pn=r.defineComponent({__name:"FmDateRangeYearMonthPicker",props:{modelValue:{},picker:{},min:{},max:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>{const u=W(n.min).startOf("year"),h=W(n.max).startOf("year"),p=h.diff(u,"year"),m=[];for(let b=0;b<=p;b++)m.push(h.subtract(b,"year"));return m}),s=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");return u.get("year")===h.get("year")?u.startOf("month").isAfter(h)||u.get("month")===h.get("month"):u.get("year")===p.get("year")?u.startOf("month").isBefore(p)||u.get("month")===p.get("month"):!0},l=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");if(h.get("year")===u.get("year")){o("update:modelValue",h);return}if(p.get("year")===u.get("year")){o("update:modelValue",p);return}o("update:modelValue",u)};function c(u,h){if(!h)return!1;const p=u.el,m=p==null?void 0:p.parentElement;!p||!m||m.scrollTo({top:p.offsetTop-50})}return(u,h)=>(r.openBlock(),r.createBlock(io,{trigger:"click",onMenuChanged:h[0]||(h[0]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-4 h-24 items-center px-4 rounded-sm",i.value?"text-fm-color-primary":"hover:bg-fm-color-neutral-gray-100"])},[r.createElementVNode("div",w5,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.monthFormat"))),1)],64)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ce,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",S5,[u.picker==="month"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(Array.from(Array(12),(p,m)=>u.modelValue.month(m)),p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")))},[r.createVNode(xt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")),label:p.format(r.unref(H)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,x5))),128)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(a.value,p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")))},[r.createVNode(xt,{"model-value":u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")),label:p.format(r.unref(H)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,C5))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),A5={class:"fm-calendar__name-row fm-typo-en-body-md-400 text-fm-color-typo-tertiary"},E5=["id"],D5={key:0,class:"fm-calendar__cell__button--today"},B5=["onClick","onMouseover"],xi=De(r.defineComponent({__name:"FmCalendar",props:{days:{},dayCellClass:{type:[Object,Function],default:void 0},onDayClick:{},onCellMouseOver:{type:Function,default:void 0},cellSize:{default:"md"}},setup(t){const e=W(),n=(i,a)=>typeof i=="function"?i(...a):i,o=(i,a)=>{if(!a)return;const s={"fm-calendar__cell--selected":!1,"fm-calendar__cell--selected-start":!1,"fm-calendar__cell--selected-end":!1,"fm-calendar__cell--selected-between":!1};let l;if(typeof a=="function"){const{status:c,className:u}=a(i);c&&(s["fm-calendar__cell--selected"]=c.isSelected??!1,s["fm-calendar__cell--selected-start"]=c.isStart??!1,s["fm-calendar__cell--selected-end"]=c.isEnd??!1,s["fm-calendar__cell--selected-between"]=c.isBetween??!1),l=u??""}else{const{status:c,className:u}=a;c&&(s["fm-calendar__cell--selected"]=n(c.isSelected,[i])??!1,s["fm-calendar__cell--selected-start"]=n(c.isStart,[i])??!1,s["fm-calendar__cell--selected-end"]=n(c.isEnd,[i])??!1,s["fm-calendar__cell--selected-between"]=n(c.isBetween,[i])??!1),l=n(u,[i])??""}return[s,l]};return(i,a)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",A5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["fm-calendar__cell",`fm-calendar__cell__${i.cellSize}`])},r.toDisplayString(s),3))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.days,(s,l)=>(r.openBlock(),r.createElementBlock("div",{key:l,class:"fm-calendar__row fm-typo-en-body-md-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s,c=>(r.openBlock(),r.createElementBlock("div",{id:`${c.date.toISOString()}`,key:c.date.date(),class:r.normalizeClass(["fm-calendar__cell",[`fm-calendar__cell__${i.cellSize}`,o(c.date,i.dayCellClass),!c.isCurrentMonth&&"fm-calendar__cell--not-current-month"]])},[c.date.isSame(r.unref(e),"day")&&c.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",D5)):r.createCommentVNode("",!0),c.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:"fm-calendar__cell__button",type:"button",onClick:u=>i.onDayClick(c),onMouseover:u=>{var h;return(h=i.onCellMouseOver)==null?void 0:h.call(i,c.date)}},r.toDisplayString(c.date.date()),41,B5)):r.createCommentVNode("",!0)],10,E5))),128))]))),128))])]))}}),[["__scopeId","data-v-9a5f3a22"]]),P5={class:"p-12 space-y-4 w-[552px]"},I5={class:"w-max"},O5={class:"flex space-x-24"},N5={class:"flex items-center py-8 space-x-16"},R5={class:"flex space-x-4"},V5={class:"flex items-center justify-end py-8 space-x-16"},F5={class:"flex space-x-4"},T5={class:"flex gap-8 items-center justify-end w-full"},M5=r.defineComponent({__name:"FmSimpleDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,re)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=r.ref(W().startOf("month").add(1,"month")),u=(w,x)=>{w==="left"?(l.value=x,c.value=x.add(1,"month")):w==="right"&&(c.value=x,l.value=x.subtract(1,"month"))},h=w=>{i.value=w},p=r.computed(()=>Si(l.value)),m=r.computed(()=>Si(l.value.add(1,"month"))),b=()=>{o.value=i.value.format(re),setTimeout(()=>{a.value=!1},0)},y=()=>{i.value=o.value?W(o.value):null,a.value=!1},v=w=>{a.value=w,w||y()};return(w,x)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":x[6]||(x[6]=I=>r.isRef(o)?o.value=I:null),disabled:s.value,focused:a.value,"helper-state":w.helperState,"helper-text":w.helperText,info:w.labelInfo,label:w.label,optional:w.labelMark==="optional",required:w.labelMark==="required",rules:w.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(w.$slots,"label")]),default:r.withCtx(({invalid:I})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":e.zIndex,"exclude-el-from-click-outside":["in-calendar-app"],onPopoverChanged:v},{"popover-button":r.withCtx(()=>[w.$slots["trigger-button"]?r.renderSlot(w.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:I,opened:a.value,showValidBorder:w.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:I,"show-valid-border":w.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(w.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(w.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",P5,[r.createElementVNode("div",I5,[r.createElementVNode("div",O5,[r.createElementVNode("div",null,[r.createElementVNode("div",N5,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:x[0]||(x[0]=()=>u("left",l.value.subtract(1,"month")))}),r.createElementVNode("div",R5,[r.createVNode(Pn,{max:w.max,min:w.min,"model-value":l.value,picker:"month","onUpdate:modelValue":x[1]||(x[1]=R=>u("left",R))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:w.max,min:w.min,"model-value":l.value,picker:"year","onUpdate:modelValue":x[2]||(x[2]=R=>u("left",R))},null,8,["max","min","model-value"])])]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:R=>R.isSame(i.value,"date")}},days:p.value,"on-day-click":R=>h(R.date)},null,8,["day-cell-class","days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",V5,[r.createElementVNode("div",F5,[r.createVNode(Pn,{max:w.max,min:w.min,"model-value":c.value,picker:"month","onUpdate:modelValue":x[3]||(x[3]=R=>u("right",R))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:w.max,min:w.min,"model-value":c.value,picker:"year","onUpdate:modelValue":x[4]||(x[4]=R=>u("right",R))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:x[5]||(x[5]=()=>u("left",l.value.add(1,"month")))})]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:R=>R.isSame(i.value,"date")}},days:m.value,"on-day-click":R=>h(R.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",T5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:y},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:b},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(w.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),L5={class:"p-12 space-y-4 w-[276px]"},z5={class:"w-max"},_5={class:"flex space-x-24"},H5={class:"flex items-center justify-between py-8"},U5={class:"flex space-x-4"},W5={class:"flex space-x-4"},j5={class:"flex gap-8 items-center justify-end w-full"},S1=r.defineComponent({__name:"FmSimpleDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,re)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=y=>{l.value=y},u=y=>{i.value=y},h=r.computed(()=>Si(l.value)),p=()=>{o.value=i.value.format(re),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?W(o.value):null,a.value=!1},b=y=>{a.value=y,y||m()};return(y,v)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":v[4]||(v[4]=w=>r.isRef(o)?o.value=w:null),disabled:s.value,focused:a.value,"helper-state":y.helperState,"helper-text":y.helperText,info:y.labelInfo,label:y.label,optional:y.labelMark==="optional",required:y.labelMark==="required",rules:y.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(y.$slots,"label")]),default:r.withCtx(({invalid:w})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":e.zIndex,"exclude-el-from-click-outside":["in-calendar-app"],onPopoverChanged:b},{"popover-button":r.withCtx(()=>[y.$slots["trigger-button"]?r.renderSlot(y.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:w,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:w,"show-valid-border":y.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(y.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",L5,[r.createElementVNode("div",z5,[r.createElementVNode("div",_5,[r.createElementVNode("div",null,[r.createElementVNode("div",H5,[r.createElementVNode("div",U5,[r.createVNode(Pn,{max:y.max,min:y.min,"model-value":l.value,picker:"month","onUpdate:modelValue":v[0]||(v[0]=x=>c(x))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:y.max,min:y.min,"model-value":l.value,picker:"year","onUpdate:modelValue":v[1]||(v[1]=x=>c(x))},null,8,["max","min","model-value"])]),r.createElementVNode("div",W5,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:v[2]||(v[2]=()=>c(l.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:v[3]||(v[3]=()=>c(l.value.add(1,"month")))})])]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:x=>x.isSame(i.value,"date")}},days:h.value,"on-day-click":x=>u(x.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",j5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(y.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),G5=r.defineComponent({__name:"FmSimpleDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const{breakpoints:e}=Jo(),n=t,o=Pe(n,"modelValue"),i=El(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(M5,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(e).xs||r.unref(e).sm?(r.openBlock(),r.createBlock(S1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}});var He=(t=>(t.NO_COMPARISON="NO_COMPARISON",t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.PRECEDING_YEAR="PRECEDING_YEAR",t.CUSTOM="CUSTOM",t))(He||{});const Q5={key:1,class:"flex gap-4 items-center relative w-full"},X5={class:"flex flex-col gap-4 w-full"},q5=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),K5={class:"flex flex-col gap-4 w-full"},J5={class:"flex h-[360px]"},Y5={class:"flex flex-col items-start p-12 pr-4"},Z5={key:0},$5={key:1},eE=r.createElementVNode("div",{class:"bg-fm-color-neutral-gray-100 h-full mx-4 w-px"},null,-1),tE={class:"w-max"},nE={class:"flex space-x-24"},oE={class:"flex items-center py-8 space-x-16"},rE={class:"flex space-x-4"},iE={class:"flex items-center justify-end py-8 space-x-16"},aE={class:"flex space-x-4"},sE={class:"flex gap-8 items-center justify-end w-full"},lE=r.defineComponent({__name:"FmSimpleDateRangePickerDesktop",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{default:He.PRECEDING_PERIOD},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){var G,Q;const n=F=>()=>{var C,T;const{startAt:E,endAt:S}=w1((C=a.compareTarget)==null?void 0:C.startDate,(T=a.compareTarget)==null?void 0:T.endDate);if(!E||!S)return;const D=F({startAt:E,endAt:S});return V("right",D.endDate.startOf("month")),D},o=r.computed(()=>[{id:He.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},y.value=He.NO_COMPARISON}},{id:He.PRECEDING_WEEK,label:"Same period last week",sublabel:"Match day of week",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"week")+1;return c.value={startDate:F.subtract(S,"week"),endDate:E.subtract(S,"week")},y.value=He.PRECEDING_WEEK,c.value})},{id:He.PRECEDING_MONTH,label:"Same period last month",sublabel:"Match day of month",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"month")+1;return c.value={startDate:F.subtract(S,"month"),endDate:E.subtract(S,"month")},y.value=He.PRECEDING_MONTH,c.value})},{id:He.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"day")+1;return c.value={startDate:F.subtract(S,"day"),endDate:E.subtract(S,"day")},y.value=He.PRECEDING_PERIOD,c.value})},{id:He.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"year")+1;return c.value={startDate:F.subtract(S,"year"),endDate:E.subtract(S,"year")},y.value=He.PRECEDING_YEAR,c.value})},{id:He.CUSTOM,label:"Custom",sublabel:"",action:()=>{y.value=He.CUSTOM}}]),i=e,a=t,s=r.inject(Ke,null),l=Pe(a,"modelValue"),c=r.ref({startDate:(G=l.value)!=null&&G.startDate?W(l.value.startDate,re):null,endDate:(Q=l.value)!=null&&Q.endDate?W(l.value.endDate,re):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(W().startOf("month")),m=r.ref(W().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(a.defaultCompareType),v=r.ref(null),w=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:F,endDate:E},label:S})=>{var D,C;((D=c.value.startDate)==null?void 0:D.format(re))===F&&((C=c.value.endDate)==null?void 0:C.format(re))===E&&(b.value=S)})},x=F=>{if(b.value="",y.value=He.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:F,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=F;else{if(F.isBefore(c.value.startDate)){const E=c.value.startDate;c.value={startDate:F,endDate:E}}else c.value.endDate=F;w()}},I=()=>{var F,E;l.value={startDate:(F=c.value.startDate)==null?void 0:F.format(re),endDate:(E=c.value.endDate)==null?void 0:E.format(re)},i("select-comparison",y.value),setTimeout(()=>{u.value=!1})},R=()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null},u.value=!1},V=(F,E)=>{F==="left"?(p.value=E,m.value=E.add(1,"month")):F==="right"&&(m.value=E,p.value=E.subtract(1,"month"))},B=F=>{var ie,fe;const E=(ie=c.value.startDate)==null?void 0:ie.startOf("day"),S=(fe=c.value.endDate)==null?void 0:fe.startOf("day"),D=v.value,C=E==null?void 0:E.isSame(F),T=S==null?void 0:S.isSame(F),M=D==null?void 0:D.isSame(F),K=C&&S&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isAfter(E))||E&&!S&&M&&(D==null?void 0:D.isBefore(E)),oe=T&&E&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isBefore(E))||E&&!S&&M&&(D==null?void 0:D.isAfter(E)),le=C&&T||C&&!S,Z=E&&(S||D)&&S?F.isAfter(E)&&F.isBefore(S):F.isAfter(D)&&F.isBefore(E)||F.isBefore(D)&&F.isAfter(E);return{status:{isStart:K??!1,isEnd:oe??!1,isBetween:Z??!1,isSelected:le??!1}}},L=F=>{const E=c.value;if(E.startDate&&!E.endDate){v.value=F;return}v.value=null},P=F=>{b.value=F.label;const E=W(F.value.startDate,re),S=W(F.value.endDate,re);c.value={startDate:E,endDate:S},V("left",E.startOf("month"))},_=F=>{u.value=F,F||R()},U=r.computed(()=>!y.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||y.value===He.CUSTOM)return;const F=o.value.find(S=>S.id===y.value),E=F==null?void 0:F.action();E&&(l.value=E)}),r.onMounted(()=>{w()}),(F,E)=>{const S=r.resolveComponent("fm-label");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":E[6]||(E[6]=D=>r.isRef(l)?l.value=D:null),disabled:h.value,focused:u.value,"helper-state":F.helperState,"helper-text":F.helperText,rules:F.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:D})=>[r.createVNode(Bo,{disabled:h.value,"exclude-el-from-click-outside":["in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:_},{"popover-button":r.withCtx(()=>[F.$slots["trigger-button"]?r.renderSlot(F.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:D,showValidBorder:F.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createElementBlock("div",Q5,[r.createElementVNode("label",X5,[r.createVNode(S,{disabled:h.value,label:a.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:D,"show-valid-border":F.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(F.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(F.$slots,"append")]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[h.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(l))!=null&&C.startDate?r.unref(W)(r.unref(l).startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),q5,r.createElementVNode("label",K5,[r.createVNode(S,{disabled:h.value,label:a.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:D,"show-valid-border":F.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(F.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(F.$slots,"append")]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[h.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(l))!=null&&C.endDate?r.unref(W)(r.unref(l).endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])]))]),default:r.withCtx(()=>[r.createElementVNode("div",J5,[F.showPredefinedRange||F.compareTarget?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Y5,[F.showPredefinedRange&&!F.compareTarget?(r.openBlock(),r.createElementBlock("div",Z5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.predefinedRange,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":b.value===C.label,class:"min-w-[158px]",selectable:"",onClick:M=>P(C)},null,8,["label","model-value","onClick"]))),128))])):r.createCommentVNode("",!0),F.compareTarget?(r.openBlock(),r.createElementBlock("div",$5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":y.value===C.id,sublabel:C.sublabel,class:"min-w-[158px]",selectable:"",onClick:M=>C.action()},null,8,["label","model-value","sublabel","onClick"]))),128))])):r.createCommentVNode("",!0)]),eE],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{"pl-4":F.showPredefinedRange||F.compareTarget},"p-12 space-y-4"])},[r.createElementVNode("div",tE,[r.createElementVNode("div",nE,[r.createElementVNode("div",null,[r.createElementVNode("div",oE,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:E[0]||(E[0]=()=>V("left",p.value.subtract(1,"month")))}),r.createElementVNode("div",rE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"month","onUpdate:modelValue":E[1]||(E[1]=C=>V("left",C))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"year","onUpdate:modelValue":E[2]||(E[2]=C=>V("left",C))},null,8,["max","min","model-value"])])]),r.createVNode(xi,{"day-cell-class":B,days:r.unref(Si)(p.value),"on-day-click":C=>x(C.date),onCellMouseOver:L},null,8,["days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",iE,[r.createElementVNode("div",aE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":m.value,picker:"month","onUpdate:modelValue":E[3]||(E[3]=C=>V("right",C))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":m.value,picker:"year","onUpdate:modelValue":E[4]||(E[4]=C=>V("right",C))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:E[5]||(E[5]=()=>V("left",p.value.add(1,"month")))})]),r.createVNode(xi,{"day-cell-class":C=>B(C),days:r.unref(Si)(m.value),"on-day-click":C=>x(C.date),onCellMouseOver:L},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",sE,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:R},null,8,["label"]),r.createVNode(me,{disabled:U.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:I},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[F.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),dE={key:0},cE={class:"flex gap-4 items-center relative w-full"},uE={class:"flex flex-col gap-4 w-full"},fE=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),pE={class:"flex flex-col gap-4 w-full"},hE={key:1,class:"flex flex-col gap-4 w-full"},mE=r.defineComponent({__name:"FmSimpleDateRangePickerField",props:{modelValue:{},analytic:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},isComparing:{type:Boolean,default:!1},startLabel:{},endLabel:{},compareLabel:{},locale:{}},setup(t){const e=t,n=r.computed(()=>{if(!e.modelValue)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const o=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,i=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o?W(o).format(H("date.format")):H("date.placeholder"),endDate:i?W(i).format(H("date.format")):H("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",dE,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",cE,[r.createElementVNode("label",uE,[r.createVNode(hn,{disabled:o.disabled,label:e.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.startDate?r.unref(W)(o.modelValue.startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),fE,r.createElementVNode("label",pE,[r.createVNode(hn,{disabled:o.disabled,label:e.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.endDate?r.unref(W)(o.modelValue.endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",hE,[r.createVNode(hn,{label:o.compareLabel??r.unref(H)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":n.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(n.value.startDate)+" - "+r.toDisplayString(n.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),gE={class:"p-12 space-y-4"},bE={class:"w-max"},yE={class:"flex space-x-24"},vE={class:"flex items-center justify-between py-8"},kE={class:"flex space-x-4"},wE={class:"flex space-x-4"},SE={class:"flex gap-8 items-center justify-end w-full"},x1=r.defineComponent({__name:"FmSimpleDateRangePickerMobile",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{default:He.PRECEDING_PERIOD},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){var G,Q;const n=F=>()=>{var C,T;const{startAt:E,endAt:S}=w1((C=a.compareTarget)==null?void 0:C.startDate,(T=a.compareTarget)==null?void 0:T.endDate);if(!E||!S)return;const D=F({startAt:E,endAt:S});return R(D.endDate.startOf("month")),D},o=r.computed(()=>[{id:He.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},b.value=He.NO_COMPARISON}},{id:He.PRECEDING_WEEK,label:"Preceding period",sublabel:"Match day of week",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"week")+1;return c.value={startDate:F.subtract(S,"week"),endDate:E.subtract(S,"week")},b.value=He.PRECEDING_WEEK,c.value})},{id:He.PRECEDING_MONTH,label:"Same period last week",sublabel:"Match day of month",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"month")+1;return c.value={startDate:F.subtract(S,"month"),endDate:E.subtract(S,"month")},b.value=He.PRECEDING_MONTH,c.value})},{id:He.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"day")+1;return c.value={startDate:F.subtract(S,"day"),endDate:E.subtract(S,"day")},b.value=He.PRECEDING_PERIOD,c.value})},{id:He.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"year")+1;return c.value={startDate:F.subtract(S,"year"),endDate:E.subtract(S,"year")},b.value=He.PRECEDING_YEAR,c.value})},{id:He.CUSTOM,label:"Custom",sublabel:"",action:()=>{b.value=He.CUSTOM}}]),i=e,a=t,s=r.inject(Ke,null),l=Pe(a,"modelValue"),c=r.ref({startDate:(G=l.value)!=null&&G.startDate?W(l.value.startDate,re):null,endDate:(Q=l.value)!=null&&Q.endDate?W(l.value.endDate,re):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(W().startOf("month")),m=r.ref(null),b=r.ref(a.defaultCompareType),y=r.ref(null),v=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:F,endDate:E},label:S})=>{var D,C;((D=c.value.startDate)==null?void 0:D.format(re))===F&&((C=c.value.endDate)==null?void 0:C.format(re))===E&&(m.value={startDate:F,endDate:E})})},w=F=>{if(m.value=null,b.value=He.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:F,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=F;else{if(F.isBefore(c.value.startDate)){const E=c.value.startDate;c.value={startDate:F,endDate:E}}else c.value.endDate=F;v()}},x=()=>{var F,E;l.value={startDate:(F=c.value.startDate)==null?void 0:F.format(re),endDate:(E=c.value.endDate)==null?void 0:E.format(re)},i("select-comparison",b.value),setTimeout(()=>{u.value=!1})},I=()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null},u.value=!1},R=F=>{p.value=F},V=F=>{var ie,fe;const E=(ie=c.value.startDate)==null?void 0:ie.startOf("day"),S=(fe=c.value.endDate)==null?void 0:fe.startOf("day"),D=y.value,C=E==null?void 0:E.isSame(F),T=S==null?void 0:S.isSame(F),M=D==null?void 0:D.isSame(F),K=C&&S&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isAfter(E))||E&&!S&&M&&(D==null?void 0:D.isBefore(E)),oe=T&&E&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isBefore(E))||E&&!S&&M&&(D==null?void 0:D.isAfter(E)),le=C&&T||C&&!S,Z=E&&(S||D)&&S?F.isAfter(E)&&F.isBefore(S):F.isAfter(D)&&F.isBefore(E)||F.isBefore(D)&&F.isAfter(E);return{status:{isStart:K??!1,isEnd:oe??!1,isBetween:Z??!1,isSelected:le??!1}}},B=F=>{const E=c.value;if(E.startDate&&!E.endDate){y.value=F;return}y.value=null},L=F=>{const E=W(F.startDate,re),S=W(F.endDate,re);m.value=F,c.value={startDate:E,endDate:S},R(S.startOf("month"))},P=F=>{const E=o.value.find(S=>S.id===F);E==null||E.action()},_=F=>{u.value=F,F||I()},U=r.computed(()=>!b.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||b.value===He.CUSTOM)return;const F=o.value.find(S=>S.id===b.value),E=F==null?void 0:F.action();E&&(l.value=E)}),r.onMounted(()=>{v()}),(F,E)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":E[6]||(E[6]=S=>r.isRef(l)?l.value=S:null),disabled:h.value,focused:u.value,"helper-state":F.helperState,"helper-text":F.helperText,rules:F.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:S})=>[r.createVNode(Bo,{disabled:h.value,"exclude-el-from-click-outside":["exclude-from-click-outside","in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:_},{"popover-button":r.withCtx(()=>[F.$slots["trigger-button"]?r.renderSlot(F.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:S,showValidBorder:F.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createBlock(mE,{key:1,disabled:h.value,focused:u.value,invalid:S,"model-value":r.unref(l),"show-valid-border":F.showValidBorder,"start-label":F.startLabel??r.unref(H)("date.startDate"),"end-label":F.endLabel??r.unref(H)("date.endDate")},r.createSlots({_:2},[F.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"popover-button",{focused:u.value})]),key:"0"}:void 0]),1032,["disabled","focused","invalid","model-value","show-valid-border","start-label","end-label"]))]),default:r.withCtx(()=>[r.createElementVNode("div",gE,[F.showPredefinedRange&&!F.compareTarget?(r.openBlock(),r.createBlock(yo,{key:0,items:F.predefinedRange,"model-value":m.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":E[0]||(E[0]=D=>L(D))},null,8,["items","model-value"])):r.createCommentVNode("",!0),F.compareTarget?(r.openBlock(),r.createBlock(yo,{key:1,items:o.value.map(D=>({label:D.label,sublabel:D.sublabel,value:D.id})),"model-value":b.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":E[1]||(E[1]=D=>P(D))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createElementVNode("div",bE,[r.createElementVNode("div",yE,[r.createElementVNode("div",null,[r.createElementVNode("div",vE,[r.createElementVNode("div",kE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"month","onUpdate:modelValue":E[2]||(E[2]=D=>R(D))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"year","onUpdate:modelValue":E[3]||(E[3]=D=>R(D))},null,8,["max","min","model-value"])]),r.createElementVNode("div",wE,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:E[4]||(E[4]=()=>R(p.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:E[5]||(E[5]=()=>R(p.value.add(1,"month")))})])]),r.createVNode(xi,{"day-cell-class":V,days:r.unref(Si)(p.value),"on-day-click":D=>w(D.date),"cell-size":"lg",onCellMouseOver:B},null,8,["days","on-day-click"])])])]),r.createElementVNode("div",SE,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:I},null,8,["label"]),r.createVNode(me,{disabled:U.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[F.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),xE=r.defineComponent({__name:"FmSimpleDateRangePicker",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){const n=t,{breakpoints:o}=Jo(),i=Pe(n,"modelValue"),a=e,s=El(n);return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(o).md||r.unref(o).lg?(r.openBlock(),r.createBlock(lE,r.mergeProps({key:0},r.unref(s),{modelValue:r.unref(i),"onUpdate:modelValue":c[0]||(c[0]=u=>r.isRef(i)?i.value=u:null),onSelectComparison:c[1]||(c[1]=u=>a("select-comparison",u))}),r.createSlots({_:2},[l.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(u=>[r.renderSlot(l.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(u)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(o).xs||r.unref(o).sm?(r.openBlock(),r.createBlock(x1,r.mergeProps({key:1},r.unref(s),{modelValue:r.unref(i),"onUpdate:modelValue":c[2]||(c[2]=u=>r.isRef(i)?i.value=u:null),onSelectComparison:c[3]||(c[3]=u=>a("select-comparison",u))}),r.createSlots({_:2},[l.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(u=>[r.renderSlot(l.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(u)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),CE={class:"flex items-center gap-8"},AE={class:"fm-typo-en-body-md-400 text-fm-color-system-error-300"},EE={class:"flex items-center gap-4"},DE=De(r.defineComponent({__name:"FmErrorSummary",props:{position:{default:"sticky-bottom"},labelFormat:{default:void 0},zIndex:{default:50}},setup(t,{expose:e}){const n=t,o=r.inject(Kh,null),i=r.ref(0),a=r.computed(()=>(o==null?void 0:o.getErrorCount())??0),s=r.computed(()=>a.value>0),l=r.computed(()=>{const p=n.labelFormat??H("errorSummary.label",{current:i.value+1,total:a.value});return n.labelFormat?p.replace("{current}",String(i.value+1)).replace("{total}",String(a.value)):p}),c=r.computed(()=>{switch(n.position){case"sticky-bottom":return"sticky bottom-0 left-0 right-0";case"sticky-top":return"sticky top-0 left-0 right-0";case"static":default:return""}}),u=()=>{!o||a.value===0||(i.value=(i.value-1+a.value)%a.value,o.goToError(i.value))},h=()=>{!o||a.value===0||(i.value=(i.value+1)%a.value,o.goToError(i.value))};return r.watch(a,(p,m)=>{if((m===0||m===void 0)&&p>0){i.value=0;return}i.value>=p&&(i.value=Math.max(0,p-1))},{immediate:!0}),e({goToPrevError:u,goToNextError:h,currentIndex:i,errorCount:a}),(p,m)=>(r.openBlock(),r.createBlock(r.Transition,{name:`fm-error-summary-slide-${p.position}`},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([c.value,"flex items-center justify-between gap-16 rounded-md bg-fm-color-system-error-100 px-16 py-12"]),style:r.normalizeStyle({zIndex:p.zIndex}),role:"alert","aria-live":"polite"},[r.createElementVNode("div",CE,[r.createVNode(ce,{name:"error",size:"sm",color:"system-error-300"}),r.createElementVNode("span",AE,r.toDisplayString(l.value),1)]),r.createElementVNode("div",EE,[a.value>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(me,{variant:"plain","prepend-icon":"keyboard_arrow_up","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.previousError"),onClick:u},null,8,["aria-label"]),r.createVNode(me,{variant:"plain","prepend-icon":"keyboard_arrow_down","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.nextError"),onClick:h},null,8,["aria-label"])],64)):(r.openBlock(),r.createBlock(me,{key:1,variant:"plain","prepend-icon":"arrow_forward","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.goToError"),onClick:h},null,8,["aria-label"]))])],6)):r.createCommentVNode("",!0)]),_:1},8,["name"]))}}),[["__scopeId","data-v-06b36cc1"]]),BE={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function C1(t,e){var n=Array.prototype.slice.call(e);return n.push(BE),t.apply(this,n)}function Hu(t){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(t)}function PE(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function IE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&La(t,e)}function NE(t){var e=E1();return function(){var o=za(t),i;if(e){var a=za(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return RE(this,i)}}function RE(t,e){if(e&&(Hu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A1(t)}function A1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uu(t){var e=typeof Map=="function"?new Map:void 0;return Uu=function(o){if(o===null||!VE(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(o))return e.get(o);e.set(o,i)}function i(){return Bl(o,arguments,za(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),La(i,o)},Uu(t)}function Bl(t,e,n){return E1()?Bl=Reflect.construct:Bl=function(i,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(i,l),u=new c;return s&&La(u,s.prototype),u},Bl.apply(null,arguments)}function E1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function La(t,e){return La=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},La(t,e)}function za(t){return za=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},za(t)}var Po=function(t){OE(n,t);var e=NE(n);function n(o){var i;return IE(this,n),i=e.call(this,o),Object.setPrototypeOf(A1(i),n.prototype),i.name=i.constructor.name,i}return PE(n)}(Uu(Error)),Wu=2,FE=17,TE=3,Gn="0-90-9٠-٩۰-۹",ME="-‐-―−ー-",LE="//",zE="..",_E="  ­​⁠ ",HE="()()[]\\[\\]",UE="~⁓∼~",Pl="".concat(ME).concat(LE).concat(zE).concat(_E).concat(HE).concat(UE),ju="++";function D1(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),o=e[0].split("."),i=0;i<3;i++){var a=Number(n[i]),s=Number(o[i]);if(a>s)return 1;if(s>a)return-1;if(!isNaN(a)&&isNaN(s))return 1;if(isNaN(a)&&!isNaN(s))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var WE={}.constructor;function Il(t){return t!=null&&t.constructor===WE}function Gu(t){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(t)}function Ol(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jE(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Nl(t,e,n){return e&&jE(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var GE="1.2.0",QE="1.7.35",B1=" ext. ",XE=/^\d+$/,Qt=function(){function t(e){Ol(this,t),YE(e),this.metadata=e,O1.call(this,e)}return Nl(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var o=this.countryCallingCodes()[n];if(o&&o.length===1&&o[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,o){if(n&&XE.test(n)&&(o=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new P1(this.getCountryMetadata(n),this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new P1(this.getNumberingPlanMetadata(o),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var o=this.countryCallingCodes()[n];if(o)return o.length===1&&o[0].length===3?void 0:o}},{key:"getCountryCodeForCallingCode",value:function(n){var o=this.getCountryCodesForCallingCode(n);if(o)return o[0]}},{key:"getNumberingPlanMetadata",value:function(n){var o=this.getCountryCodeForCallingCode(n);if(o)return this.getCountryMetadata(o);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t}(),P1=function(){function t(e,n){Ol(this,t),this.globalMetadataObject=n,this.metadata=e,O1.call(this,n.metadata)}return Nl(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,o=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return o.map(function(i){return new qE(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&I1(this.types(),n))return new JE(I1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?B1:this.metadata[13]||B1}}]),t}(),qE=function(){function t(e,n){Ol(this,t),this._format=e,this.metadata=n}return Nl(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!KE.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),KE=/^\(?\$1\)?$/,JE=function(){function t(e,n){Ol(this,t),this.type=e,this.metadata=n}return Nl(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function I1(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function YE(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Il(t)||!Il(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Il(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+ZE(t)+": "+t,"."))}var ZE=function(e){return Gu(e)};function Rl(t,e){if(e=new Qt(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function $E(t,e){return e.countries.hasOwnProperty(t)}function O1(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?D1(e,GE)===-1?this.v2=!0:D1(e,QE)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var eD=";ext=",Ci=function(e){return"([".concat(Gn,"]{1,").concat(e,"})")};function N1(t){var e="20",n="15",o="9",i="6",a="[  \\t,]*",s="[:\\..]?[  \\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",h="[- ]+",p="[  \\t]*",m="(?:,{2}|;)",b=eD+Ci(e),y=a+c+s+Ci(e)+l,v=a+u+s+Ci(o)+l,w=h+Ci(i)+"#",x=p+m+s+Ci(n)+l,I=p+"(?:,)+"+s+Ci(o)+l;return b+"|"+y+"|"+v+"|"+w+"|"+x+"|"+I}var tD="["+Gn+"]{"+Wu+"}",nD="["+ju+"]{0,1}(?:["+Pl+"]*["+Gn+"]){3,}["+Pl+Gn+"]*",oD=new RegExp("^["+ju+"]{0,1}(?:["+Pl+"]*["+Gn+"]){1,2}$","i"),rD=nD+"(?:"+N1()+")?",iD=new RegExp("^"+tD+"$|^"+rD+"$","i");function aD(t){return t.length>=Wu&&iD.test(t)}function sD(t){return oD.test(t)}var R1=new RegExp("(?:"+N1()+")$","i");function lD(t){var e=t.search(R1);if(e<0)return{};for(var n=t.slice(0,e),o=t.match(R1),i=1;i<o.length;){if(o[i])return{number:n,ext:o[i]};i++}}var dD={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function cD(t){return dD[t]}function uD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=fD(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
37
+ `)):Array.isArray(n)?t.push.apply(t,n):Re(t)||e.unshift(""+n);return e},textSize:function(t,e,n){var o=[].concat(e),i=o.length,a=t.font,s=0,l;for(t.font=n.string,l=0;l<i;++l)s=Math.max(t.measureText(o[l]).width,s);return t.font=a,{height:i*n.lineHeight,width:s}},bound:function(t,e,n){return Math.max(t,Math.min(e,n))},arrayDiff:function(t,e){var n=t.slice(),o=[],i,a,s,l;for(i=0,s=e.length;i<s;++i)l=e[i],a=n.indexOf(l),a===-1?o.push([l,1]):n.splice(a,1);for(i=0,s=n.length;i<s;++i)o.push([n[i],-1]);return o},rasterize:function(t){return Math.round(t*o1)/o1}};function Tu(t,e){var n=e.x,o=e.y;if(n===null)return{x:0,y:-1};if(o===null)return{x:1,y:0};var i=t.x-n,a=t.y-o,s=Math.sqrt(i*i+a*a);return{x:s?i/s:0,y:s?a/s:-1}}function o9(t,e,n,o,i){switch(i){case"center":n=o=0;break;case"bottom":n=0,o=1;break;case"right":n=1,o=0;break;case"left":n=-1,o=0;break;case"top":n=0,o=-1;break;case"start":n=-n,o=-o;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),o=Math.sin(i);break}return{x:t,y:e,vx:n,vy:o}}var r9=0,r1=1,i1=2,a1=4,s1=8;function Sl(t,e,n){var o=r9;return t<n.left?o|=r1:t>n.right&&(o|=i1),e<n.top?o|=s1:e>n.bottom&&(o|=a1),o}function i9(t,e){for(var n=t.x0,o=t.y0,i=t.x1,a=t.y1,s=Sl(n,o,e),l=Sl(i,a,e),c,u,h;!(!(s|l)||s&l);)c=s||l,c&s1?(u=n+(i-n)*(e.top-o)/(a-o),h=e.top):c&a1?(u=n+(i-n)*(e.bottom-o)/(a-o),h=e.bottom):c&i1?(h=o+(a-o)*(e.right-n)/(i-n),u=e.right):c&r1&&(h=o+(a-o)*(e.left-n)/(i-n),u=e.left),c===s?(n=u,o=h,s=Sl(n,o,e)):(i=u,a=h,l=Sl(i,a,e));return{x0:n,x1:i,y0:o,y1:a}}function xl(t,e){var n=e.anchor,o=t,i,a;return e.clamp&&(o=i9(o,e.area)),n==="start"?(i=o.x0,a=o.y0):n==="end"?(i=o.x1,a=o.y1):(i=(o.x0+o.x1)/2,a=(o.y0+o.y1)/2),o9(i,a,t.vx,t.vy,e.align)}var Cl={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,o=Math.cos(n),i=Math.sin(n),a=t.innerRadius,s=t.outerRadius;return xl({x0:t.x+o*a,y0:t.y+i*a,x1:t.x+o*s,y1:t.y+i*s,vx:o,vy:i},e)},point:function(t,e){var n=Tu(t,e.origin),o=n.x*t.options.radius,i=n.y*t.options.radius;return xl({x0:t.x-o,y0:t.y-i,x1:t.x+o,y1:t.y+i,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=Tu(t,e.origin),o=t.x,i=t.y,a=0,s=0;return t.horizontal?(o=Math.min(t.x,t.base),a=Math.abs(t.base-t.x)):(i=Math.min(t.y,t.base),s=Math.abs(t.base-t.y)),xl({x0:o,y0:i+s,x1:o+a,y1:i,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Tu(t,e.origin);return xl({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},Do=Fa.rasterize;function a9(t){var e=t.borderWidth||0,n=t.padding,o=t.size.height,i=t.size.width,a=-i/2,s=-o/2;return{frame:{x:a-n.left-e,y:s-n.top-e,w:i+n.width+e*2,h:o+n.height+e*2},text:{x:a,y:s,w:i,h:o}}}function s9(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var o=n.getBasePixel();return t.horizontal?{x:o,y:null}:{x:null,y:o}}function l9(t){return t instanceof vi?Cl.arc:t instanceof Pa?Cl.point:t instanceof Ia?Cl.bar:Cl.fallback}function d9(t,e,n,o,i,a){var s=Math.PI/2;if(a){var l=Math.min(a,i/2,o/2),c=e+l,u=n+l,h=e+o-l,p=n+i-l;t.moveTo(e,u),c<h&&u<p?(t.arc(c,u,l,-Math.PI,-s),t.arc(h,u,l,-s,0),t.arc(h,p,l,0,s),t.arc(c,p,l,s,Math.PI)):c<h?(t.moveTo(c,n),t.arc(h,u,l,-s,s),t.arc(c,u,l,s,Math.PI+s)):u<p?(t.arc(c,u,l,-Math.PI,0),t.arc(c,p,l,0,Math.PI)):t.arc(c,u,l,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,o,i)}function c9(t,e,n){var o=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!o&&(!i||!a)||(t.beginPath(),d9(t,Do(e.x)+a/2,Do(e.y)+a/2,Do(e.w)-a,Do(e.h)-a,n.borderRadius),t.closePath(),o&&(t.fillStyle=o,t.fill()),i&&a&&(t.strokeStyle=i,t.lineWidth=a,t.lineJoin="miter",t.stroke()))}function u9(t,e,n){var o=n.lineHeight,i=t.w,a=t.x,s=t.y+o/2;return e==="center"?a+=i/2:(e==="end"||e==="right")&&(a+=i),{h:o,w:i,x:a,y:s}}function f9(t,e,n){var o=t.shadowBlur,i=n.stroked,a=Do(n.x),s=Do(n.y),l=Do(n.w);i&&t.strokeText(e,a,s,l),n.filled&&(o&&i&&(t.shadowBlur=0),t.fillText(e,a,s,l),o&&i&&(t.shadowBlur=o))}function p9(t,e,n,o){var i=o.textAlign,a=o.color,s=!!a,l=o.font,c=e.length,u=o.textStrokeColor,h=o.textStrokeWidth,p=u&&h,m;if(!(!c||!s&&!p))for(n=u9(n,i,l),t.font=l.string,t.textAlign=i,t.textBaseline="middle",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor,s&&(t.fillStyle=a),p&&(t.lineJoin="round",t.lineWidth=h,t.strokeStyle=u),m=0,c=e.length;m<c;++m)f9(t,e[m],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*m})}var l1=function(t,e,n,o){var i=this;i._config=t,i._index=o,i._model=null,i._rects=null,i._ctx=e,i._el=n};ao(l1.prototype,{_modelize:function(t,e,n,o){var i=this,a=i._index,s=wt(et([n.font,{}],o,a)),l=et([n.color,dt.color],o,a);return{align:et([n.align,"center"],o,a),anchor:et([n.anchor,"center"],o,a),area:o.chart.chartArea,backgroundColor:et([n.backgroundColor,null],o,a),borderColor:et([n.borderColor,null],o,a),borderRadius:et([n.borderRadius,0],o,a),borderWidth:et([n.borderWidth,0],o,a),clamp:et([n.clamp,!1],o,a),clip:et([n.clip,!1],o,a),color:l,display:t,font:s,lines:e,offset:et([n.offset,4],o,a),opacity:et([n.opacity,1],o,a),origin:s9(i._el,o),padding:Ft(et([n.padding,4],o,a)),positioner:l9(i._el),rotation:et([n.rotation,0],o,a)*(Math.PI/180),size:Fa.textSize(i._ctx,e,s),textAlign:et([n.textAlign,"start"],o,a),textShadowBlur:et([n.textShadowBlur,0],o,a),textShadowColor:et([n.textShadowColor,l],o,a),textStrokeColor:et([n.textStrokeColor,l],o,a),textStrokeWidth:et([n.textStrokeWidth,0],o,a)}},update:function(t){var e=this,n=null,o=null,i=e._index,a=e._config,s,l,c,u=et([a.display,!0],t,i);u&&(s=t.dataset.data[i],l=Ce(Qe(a.formatter,[s,t]),s),c=Re(l)?[]:Fa.toTextLines(l),c.length&&(n=e._modelize(u,c,a,t),o=a9(n))),e._model=n,e._rects=o},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n=this,o=t.ctx,i=n._model,a=n._rects,s;this.visible()&&(o.save(),i.clip&&(s=i.area,o.beginPath(),o.rect(s.left,s.top,s.right-s.left,s.bottom-s.top),o.clip()),o.globalAlpha=Fa.bound(0,i.opacity,1),o.translate(Do(e.x),Do(e.y)),o.rotate(i.rotation),c9(o,a.frame,i),p9(o,i.lines,a.text,i),o.restore())}});var h9=Number.MIN_SAFE_INTEGER||-9007199254740991,m9=Number.MAX_SAFE_INTEGER||9007199254740991;function Ta(t,e,n){var o=Math.cos(n),i=Math.sin(n),a=e.x,s=e.y;return{x:a+o*(t.x-a)-i*(t.y-s),y:s+i*(t.x-a)+o*(t.y-s)}}function d1(t,e){var n=m9,o=h9,i=e.origin,a,s,l,c,u;for(a=0;a<t.length;++a)s=t[a],l=s.x-i.x,c=s.y-i.y,u=e.vx*l+e.vy*c,n=Math.min(n,u),o=Math.max(o,u);return{min:n,max:o}}function Al(t,e){var n=e.x-t.x,o=e.y-t.y,i=Math.sqrt(n*n+o*o);return{vx:(e.x-t.x)/i,vy:(e.y-t.y)/i,origin:t,ln:i}}var c1=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};ao(c1.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,n){this._rotation=n,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,n=1,o=e._rect;return t=Ta(t,e.center(),-e._rotation),!(t.x<o.x-n||t.y<o.y-n||t.x>o.x+o.w+n*2||t.y>o.y+o.h+n*2)},intersects:function(t){var e=this._points(),n=t._points(),o=[Al(e[0],e[1]),Al(e[0],e[3])],i,a,s;for(this._rotation!==t._rotation&&o.push(Al(n[0],n[1]),Al(n[0],n[3])),i=0;i<o.length;++i)if(a=d1(e,o[i]),s=d1(n,o[i]),a.max<s.min||s.max<a.min)return!1;return!0},_points:function(){var t=this,e=t._rect,n=t._rotation,o=t.center();return[Ta({x:e.x,y:e.y},o,n),Ta({x:e.x+e.w,y:e.y},o,n),Ta({x:e.x+e.w,y:e.y+e.h},o,n),Ta({x:e.x,y:e.y+e.h},o,n)]}});function u1(t,e,n){var o=e.positioner(t,e),i=o.vx,a=o.vy;if(!i&&!a)return{x:o.x,y:o.y};var s=n.w,l=n.h,c=e.rotation,u=Math.abs(s/2*Math.cos(c))+Math.abs(l/2*Math.sin(c)),h=Math.abs(s/2*Math.sin(c))+Math.abs(l/2*Math.cos(c)),p=1/Math.max(Math.abs(i),Math.abs(a));return u*=i*p,h*=a*p,u+=e.offset*i,h+=e.offset*a,{x:o.x+u,y:o.y+h}}function g9(t,e){var n,o,i,a;for(n=t.length-1;n>=0;--n)for(i=t[n].$layout,o=n-1;o>=0&&i._visible;--o)a=t[o].$layout,a._visible&&i._box.intersects(a._box)&&e(i,a);return t}function b9(t){var e,n,o,i,a,s,l;for(e=0,n=t.length;e<n;++e)o=t[e],i=o.$layout,i._visible&&(l=new Proxy(o._el,{get:(c,u)=>c.getProps([u],!0)[u]}),a=o.geometry(),s=u1(l,o.model(),a),i._box.update(s,a,o.rotation()));return g9(t,function(c,u){var h=c._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(c._visible=!1)})}var Ma={prepare:function(t){var e=[],n,o,i,a,s;for(n=0,i=t.length;n<i;++n)for(o=0,a=t[n].length;o<a;++o)s=t[n][o],e.push(s),s.$layout={_box:new c1,_hidable:!1,_visible:!0,_set:n,_idx:s._index};return e.sort(function(l,c){var u=l.$layout,h=c.$layout;return u._idx===h._idx?h._set-u._set:h._idx-u._idx}),this.update(e),e},update:function(t){var e=!1,n,o,i,a,s;for(n=0,o=t.length;n<o;++n)i=t[n],a=i.model(),s=i.$layout,s._hidable=a&&a.display==="auto",s._visible=i.visible(),e|=s._hidable;e&&b9(t)},lookup:function(t,e){var n,o;for(n=t.length-1;n>=0;--n)if(o=t[n].$layout,o&&o._visible&&o._box.contains(e))return t[n];return null},draw:function(t,e){var n,o,i,a,s,l;for(n=0,o=e.length;n<o;++n)i=e[n],a=i.$layout,a._visible&&(s=i.geometry(),l=u1(i._el,i.model(),s),a._box.update(l,s,i.rotation()),i.draw(t,l))}},y9=function(t){if(Re(t))return null;var e=t,n,o,i;if(Ve(t))if(!Re(t.label))e=t.label;else if(!Re(t.r))e=t.r;else for(e="",n=Object.keys(t),i=0,o=n.length;i<o;++i)e+=(i!==0?", ":"")+n[i]+": "+t[n[i]];return""+e},v9={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:y9,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},tn="$datalabels",f1="$default";function k9(t,e){var n=t.datalabels,o={},i=[],a,s;return n===!1?null:(n===!0&&(n={}),e=ao({},[e,n]),a=e.labels||{},s=Object.keys(a),delete e.labels,s.length?s.forEach(function(l){a[l]&&i.push(ao({},[e,a[l],{_key:l}]))}):i.push(e),o=i.reduce(function(l,c){return We(c.listeners||{},function(u,h){l[h]=l[h]||{},l[h][c._key||f1]=u}),delete c.listeners,l},{}),{labels:i,listeners:o})}function Mu(t,e,n,o){if(e){var i=n.$context,a=n.$groups,s;e[a._set]&&(s=e[a._set][a._key],s&&Qe(s,[i,o])===!0&&(t[tn]._dirty=!0,n.update(i)))}}function w9(t,e,n,o,i){var a,s;!n&&!o||(n?o?n!==o&&(s=a=!0):s=!0:a=!0,s&&Mu(t,e.leave,n,i),a&&Mu(t,e.enter,o,i))}function S9(t,e){var n=t[tn],o=n._listeners,i,a;if(!(!o.enter&&!o.leave)){if(e.type==="mousemove")a=Ma.lookup(n._labels,e);else if(e.type!=="mouseout")return;i=n._hovered,n._hovered=a,w9(t,o,i,a,e)}}function x9(t,e){var n=t[tn],o=n._listeners.click,i=o&&Ma.lookup(n._labels,e);i&&Mu(t,o,i,e)}var Lu={id:"datalabels",defaults:v9,beforeInit:function(t){t[tn]={_actives:[]}},beforeUpdate:function(t){var e=t[tn];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var o=e.index,i=t[tn],a=i._datasets[o]=[],s=t.isDatasetVisible(o),l=t.data.datasets[o],c=k9(l,n),u=e.meta.data||[],h=t.ctx,p,m,b,y,v,w,x,I;for(h.save(),p=0,b=u.length;p<b;++p)if(x=u[p],x[tn]=[],s&&x&&t.getDataVisibility(p)&&!x.skip)for(m=0,y=c.labels.length;m<y;++m)v=c.labels[m],w=v._key,I=new l1(v,h,x,p),I.$groups={_set:o,_key:w||f1},I.$context={active:!1,chart:t,dataIndex:p,dataset:l,datasetIndex:o},I.update(I.$context),x[tn].push(I),a.push(I);h.restore(),ao(i._listeners,c.listeners,{merger:function(R,V,B){V[R]=V[R]||{},V[R][e.index]=B[R],i._listened=!0}})},afterUpdate:function(t){t[tn]._labels=Ma.prepare(t[tn]._datasets)},afterDatasetsDraw:function(t){Ma.draw(t,t[tn]._labels)},beforeEvent:function(t,e){if(t[tn]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":S9(t,n);break;case"click":x9(t,n);break}}},afterEvent:function(t){var e=t[tn],n=e._actives,o=e._actives=t.getActiveElements(),i=Fa.arrayDiff(n,o),a,s,l,c,u,h,p;for(a=0,s=i.length;a<s;++a)if(u=i[a],u[1])for(p=u[0].element[tn]||[],l=0,c=p.length;l<c;++l)h=p[l],h.$context.active=u[1]===1,h.update(h.$context);(e._dirty||i.length)&&(Ma.update(e._labels),t.render()),delete e._dirty}};const C9={class:"flex flex-col h-full m-24 overflow-hidden p-24"},A9={class:"flex flex-col gap-8"},E9={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},D9={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},B9={class:"grow"},p1=r.defineComponent({__name:"FmLine",props:{name:{default:void 0},paragraph:{default:void 0},datasets:{},xAxis:{},transpose:{type:Boolean,default:!1},stacked:{type:Boolean},maintainAspectRatio:{type:Boolean},hideXAxis:{type:Boolean,default:void 0},hideYAxis:{type:Boolean,default:void 0},legend:{default:void 0},tooltip:{default:void 0},datalabels:{default:void 0},xCfg:{default:void 0},yCfg:{default:void 0},plugins:{},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;r.watch([()=>e.transpose,()=>e.maintainAspectRatio,()=>e.hideXAxis,()=>e.hideYAxis,()=>e.legend,()=>e.datalabels,()=>e.xCfg,()=>e.yCfg,()=>e.height,()=>e.width],()=>{o&&o.config.options&&(o.destroy(),c())});const i=r.computed(()=>e.transpose?"y":"x");function a({context:u,color:h}){const{ctx:p,chartArea:m}=u.chart;if(!m)return;const b=p==null?void 0:p.createLinearGradient(0,0,0,m.height);return b.addColorStop(0,vc(h,.5)),b.addColorStop(1,vc(h,0)),b}const s=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),l=r.computed(()=>({labels:e.xAxis.categories,datasets:e.datasets.map(u=>{const h=Go(u.color)??"";let p;u.borderColor===null?p=void 0:u.borderColor?p=Go(u.borderColor):p=h;let m;return u.backgroundColor===null?m=void 0:u.backgroundColor?m=Go(u.backgroundColor):m=h?b=>a({context:b,color:h}):void 0,{...u,backgroundColor:m,borderColor:p,borderDash:u.dash?[5,5]:void 0,tension:.1}})}));r.watch(l,()=>{o&&(o.data=l.value,o.update())},{deep:!0});function c(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"line",data:l.value,plugins:e.plugins??[],options:{plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0,pointStyle:"line"}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}},maintainAspectRatio:e.maintainAspectRatio,responsive:!0,indexAxis:i.value,scales:{x:{display:!e.hideXAxis,stacked:e.stacked,grid:{display:!1},beginAtZero:!0,...e.xCfg},y:{display:!e.hideYAxis,stacked:e.stacked,grid:{display:!0},position:"right",beginAtZero:!0,...e.yCfg}},elements:{line:{borderWidth:1.5},point:{radius:0,hitRadius:30,hoverRadius:6,hoverBackgroundColor:"#FFFFFF",hoverBorderWidth:3}}}}))}return r.onMounted(()=>{c()}),(u,h)=>(r.openBlock(),r.createElementBlock("div",C9,[r.createElementVNode("div",A9,[r.renderSlot(u.$slots,"title"),r.createElementVNode("div",E9,r.toDisplayString(u.name),1),r.createElementVNode("div",D9,r.toDisplayString(u.paragraph),1)]),r.createElementVNode("div",B9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),P9={class:"flex flex-col h-full overflow-hidden px-24 py-16"},I9={class:"flex flex-col gap-8"},O9={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},N9={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},R9={class:"grow"},V9=r.defineComponent({__name:"FmPie",props:{name:{default:void 0},variant:{},paragraph:{default:void 0},datasets:{},metrics:{},legend:{default:void 0},text:{default:void 0},textColor:{default:"#0E1715"},textStyle:{default:"bold 30px sans-serif"},maintainAspectRatio:{type:Boolean,default:!0},percentage:{default:void 0},tooltip:{},plugins:{},datalabels:{default:void 0},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;const i=r.computed(()=>e.percentage?e.percentage:e.variant==="doughnut"?"90%":"0"),a=r.computed(()=>e.text);r.watch([()=>e.metrics,()=>e.datasets,()=>e.variant,()=>e.legend,()=>e.textColor,()=>e.textStyle,()=>e.text,()=>e.maintainAspectRatio,()=>e.percentage,()=>e.datalabels,()=>e.height,()=>e.width],()=>{o&&(o.destroy(),u())});const s=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),l=r.computed(()=>({labels:e.metrics,datasets:e.datasets.map(h=>{let p;return typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Go(m)??"")),typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Go(m)??"")),{...h,backgroundColor:p,hoverOffset:h.hoverOffset??0}})})),c={id:"doughnutlabel",beforeDatasetsDraw:h=>{var p,m;if(e.variant==="doughnut"){const{ctx:b}=h;b.save();const y=(p=h.getDatasetMeta(0).data[0])==null?void 0:p.x,v=(m=h.getDatasetMeta(0).data[0])==null?void 0:m.y;if(b.font=e.textStyle,b.textAlign="center",b.textBaseline="middle",a.value&&a.value!==""){const w=a.value.split(`
38
+ `);for(let x=0;x<w.length;x++){const I=x===0?1:.7;b.fillStyle=vc(Go(e.textColor)??"",I),b.fillText(w[x],y,v+x*40)}}}}};function u(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"doughnut",data:l.value,options:{maintainAspectRatio:e.maintainAspectRatio,responsive:!0,cutout:i.value,plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}}},plugins:[c,...e.plugins??[]]}))}return r.onMounted(()=>{u()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",P9,[r.createElementVNode("div",I9,[r.renderSlot(h.$slots,"title"),r.createElementVNode("div",O9,r.toDisplayString(h.name),1),r.createElementVNode("div",N9,r.toDisplayString(h.paragraph),1)]),r.createElementVNode("div",R9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),F9={class:"flex flex-col h-full overflow-hidden px-24 py-16"},T9={class:"flex flex-col gap-8"},M9={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},L9={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},z9={class:"grow"},_9=r.defineComponent({__name:"FmBar",props:{name:{default:void 0},paragraph:{default:void 0},datasets:{},xAxis:{},transpose:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},maintainAspectRatio:{type:Boolean,default:!0},hideXAxis:{type:Boolean,default:void 0},hideYAxis:{type:Boolean,default:void 0},legend:{default:void 0},tooltip:{default:void 0},datalabels:{default:void 0},xCfg:{default:void 0},yCfg:{default:void 0},plugins:{},height:{default:void 0},width:{default:void 0}},setup(t){const e=t,n=r.ref(null);let o=null;r.watch([()=>e.transpose,()=>e.maintainAspectRatio,()=>e.legend,()=>e.hideXAxis,()=>e.hideYAxis,()=>e.datalabels,()=>e.xCfg,()=>e.yCfg,()=>e.height,()=>e.width],()=>{o&&(o.destroy(),l())});const i=r.computed(()=>e.transpose?"y":"x"),a=r.computed(()=>({height:e.height||"100%",width:e.width||"100%"})),s=r.computed(()=>({labels:e.xAxis.categories,datasets:e.datasets.map(c=>{var p;let u,h;return typeof c.backgroundColor=="string"?u=c.backgroundColor:typeof c.backgroundColor=="object"&&(u=c.backgroundColor.map(m=>Go(m)??"")),typeof c.borderColor=="string"?h=c.borderColor:typeof c.borderColor=="object"&&(h=(p=c.borderColor)==null?void 0:p.map(m=>Go(m)??"")),{...c,backgroundColor:u,borderColor:h,borderRadius:10,borderWidth:h?1:0}})}));r.watch(s,()=>{o&&(o.data=s.value,o.update())},{deep:!0});function l(){Zt.register(Lu),n.value&&(o=new Zt(n.value,{type:"bar",data:s.value,plugins:e.plugins??[],options:{plugins:{legend:e.legend||{display:!0,position:"bottom",maxHeight:60,labels:{usePointStyle:!0}},tooltip:{...e.tooltip},datalabels:{display:!1,...e.datalabels}},maintainAspectRatio:e.maintainAspectRatio,responsive:!0,indexAxis:i.value,scales:{x:{display:!e.hideXAxis,stacked:e.stacked,grid:{display:!1},beginAtZero:!0,...e.xCfg},y:{display:!e.hideYAxis,stacked:e.stacked,grid:{display:!1},position:"right",beginAtZero:!0,...e.yCfg}},elements:{point:{radius:0,hitRadius:30,hoverRadius:6,hoverBackgroundColor:"#FFFFFF",hoverBorderWidth:3}}}}))}return r.onMounted(()=>{l()}),(c,u)=>(r.openBlock(),r.createElementBlock("div",F9,[r.createElementVNode("div",T9,[r.renderSlot(c.$slots,"title"),r.createElementVNode("div",M9,r.toDisplayString(c.name),1),r.createElementVNode("div",L9,r.toDisplayString(c.paragraph),1)]),r.createElementVNode("div",z9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(a.value)},null,4)])]))}}),H9={class:"fm-typo-en-body-lg-600"},U9={class:"h-[264px] overflow-y-auto w-[160px]"},W9=["onVnodeMounted"],j9=["onVnodeMounted"],ki=r.defineComponent({__name:"FmDateRangeYearMonthPicker",props:{modelValue:{},picker:{},min:{},max:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>{const u=W(n.min).startOf("year"),h=W(n.max).startOf("year"),p=h.diff(u,"year"),m=[];for(let b=0;b<=p;b++)m.push(h.subtract(b,"year"));return m}),s=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");return u.get("year")===h.get("year")?u.startOf("month").isAfter(h)||u.get("month")===h.get("month"):u.get("year")===p.get("year")?u.startOf("month").isBefore(p)||u.get("month")===p.get("month"):!0},l=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");if(h.get("year")===u.get("year")){o("update:modelValue",h);return}if(p.get("year")===u.get("year")){o("update:modelValue",p);return}o("update:modelValue",u)};function c(u,h){if(!h)return!1;const p=u.el,m=p==null?void 0:p.parentElement;!p||!m||m.scrollTo({top:p.offsetTop-50})}return(u,h)=>(r.openBlock(),r.createBlock(io,{trigger:"click","in-popover":"",onMenuChanged:h[0]||(h[0]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-4 h-24 items-center px-8 rounded-sm",i.value?"text-fm-color-primary":"hover:bg-fm-color-neutral-gray-100"])},[r.createElementVNode("div",H9,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.monthFormat"))),1)],64)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ce,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",U9,[u.picker==="month"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(Array.from(Array(12),(p,m)=>u.modelValue.month(m)),p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")))},[r.createVNode(xt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")),label:p.format(r.unref(H)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,W9))),128)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(a.value,p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")))},[r.createVNode(xt,{"model-value":u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")),label:p.format(r.unref(H)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,j9))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),Bo=De(r.defineComponent({__name:"FmPopover",props:{showPopover:{type:Boolean,default:!1},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1},zIndex:{default:99},excludeElFromClickOutside:{default:void 0}},emits:["popover-changed"],setup(t,{expose:e,emit:n}){const o=t,i=r.ref(o.showPopover),a=r.ref(null),s=r.ref(null),{floatingStyles:l}=ci(a,s,{middleware:[si(4),li(),Nc({crossAxis:!0})],placement:o.placement,whileElementsMounted:ai,strategy:"fixed"}),c=n,u=()=>{i.value||(i.value=!0,c("popover-changed",i.value))},h=()=>{i.value&&(i.value=!1,c("popover-changed",i.value))};e({show:u,hide:h});const p=()=>{o.disabled||(i.value=!i.value,c("popover-changed",i.value))};r.watch(()=>o.showPopover,v=>i.value=v);const m=`fm-popover-${Math.random().toString(36).substring(2,15)}`,b=r.computed(()=>[m,...o.excludeElFromClickOutside||[]]),y=()=>{i.value&&(i.value=!1,c("popover-changed",i.value))};return(v,w)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{ref_key:"anchorEl",ref:a,class:"fm-popover",onClick:p},[r.renderSlot(v.$slots,"popover-button",{},void 0,!0)],512),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:m,ref_key:"popoverEl",ref:s,style:r.normalizeStyle({...r.unref(l),zIndex:o.zIndex}),class:"fm-popover__content"},[r.renderSlot(v.$slots,"default",{hide:h,show:u},void 0,!0)],4)):r.createCommentVNode("",!0)]))])),[[r.unref(Vc),y,b.value]])}}),[["__scopeId","data-v-c760cf20"]]),ne="YYYY-MM-DD",zu=t=>{const e=[],n=t.endOf("month"),o=t.month();let i=t.startOf("week"),a=[];for(;i.isBefore(n.endOf("week"));)i.day()===0&&a.length>0&&(e.push(a),a=[]),a.push({date:i,isCurrentMonth:i.month()===o}),i=i.add(1,"day");return a.length>0&&e.push(a),e},h1=(t,e)=>{const n=W().startOf("month"),o=W(t).diff(n,"month"),i=W(e).diff(n,"month"),a=[];for(let s=o-1;s<=i;s++){const l=[],c=n.add(s,"month").startOf("month"),u=c.endOf("month"),h=c.month();let p=c.startOf("week"),m=[];for(;p.isBefore(u.endOf("week"));)p.day()===0&&m.length>0&&(l.push(m),m=[]),m.push({id:c.format("MM-YYYY"),date:p,isCurrentMonth:p.month()===h}),p=p.add(1,"day");m.length>0&&l.push(m),a.push({id:c.format("YYYY-MM-DD"),matrix:l,height:64+48*(u.endOf("week").diff(c.startOf("week"),"week")+1)})}return a},wi=()=>[H("date.day.sun"),H("date.day.mon"),H("date.day.tue"),H("date.day.wed"),H("date.day.thu"),H("date.day.fri"),H("date.day.sat")],G9={class:"p-12 w-[360px]"},Q9={class:"w-max"},X9={class:"flex h-40 justify-between px-4 py-8"},q9={class:"flex gap-4 items-center"},K9={class:"flex gap-4 items-center justify-center"},J9={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},Y9=["onClick"],Z9={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},$9=De(r.defineComponent({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,ne)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=r.ref(!1),u=r.ref(!1),h=y=>{i.value=y},p=()=>{o.value=i.value.format(ne),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?W(o.value):null,a.value=!1},b=y=>{c.value=!1,u.value=!1,l.value=y};return(y,v)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":v[5]||(v[5]=w=>r.isRef(o)?o.value=w:null),disabled:s.value,focused:a.value,"helper-state":y.helperState,"helper-text":y.helperText,info:y.labelInfo,label:y.label,optional:y.labelMark==="optional",required:y.labelMark==="required",rules:y.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(y.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:w})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":y.zIndex,onPopoverChanged:v[4]||(v[4]=x=>a.value=x)},{"popover-button":r.withCtx(()=>[y.$slots["trigger-button"]?r.renderSlot(y.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:w,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value})),void 0,!0):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:w,"show-valid-border":y.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(y.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",G9,[r.createElementVNode("div",Q9,[r.createElementVNode("div",X9,[r.createElementVNode("div",q9,[r.createVNode(ki,{max:y.max,min:y.min,"model-value":l.value,picker:"month","onUpdate:modelValue":v[0]||(v[0]=x=>b(x))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:y.max,min:y.min,"model-value":l.value,picker:"year","onUpdate:modelValue":v[1]||(v[1]=x=>b(x))},null,8,["max","min","model-value"])]),r.createElementVNode("div",K9,[r.createVNode(ce,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:v[2]||(v[2]=()=>b(l.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_right",onClick:v[3]||(v[3]=()=>b(l.value.add(1,"month")))})])]),r.createElementVNode("div",null,[r.createElementVNode("div",J9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),x=>(r.openBlock(),r.createElementBlock("div",{key:x,class:"fm-calendar__cell"},r.toDisplayString(x),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(l.value),(x,I)=>(r.openBlock(),r.createElementBlock("div",{key:I,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x,R=>(r.openBlock(),r.createElementBlock("div",{key:R.date.date(),class:"fm-calendar__cell"},[R.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":R.date.isSame(i.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(R.date)},r.toDisplayString(R.date.date()),11,Y9)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",Z9,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(y.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-f6b5a366"]]),m1=t=>(r.pushScopeId("data-v-43495396"),t=t(),r.popScopeId(),t),e6={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},t6={class:"flex items-center justify-center"},n6={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},o6={class:"flex h-[calc(100%-208px)] justify-center relative w-full"},r6=m1(()=>r.createElementVNode("div",{class:"absolute bg-gradient-to-b from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),i6={id:"wrapper",class:"h-full relative w-[336px]"},a6=["id"],s6={class:"flex gap-4 items-center"},l6={class:"fm-typo-en-body-lg-600"},d6={class:"fm-typo-en-body-lg-600"},c6=["onClick"],u6={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},f6=m1(()=>r.createElementVNode("div",{class:"-top-32 absolute bg-gradient-to-t from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),p6={class:"flex gap-8 items-center justify-end w-full"},g1=De(r.defineComponent({__name:"FmDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:99},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=h1(e.min,e.max),i=Pe(e,"modelValue"),a=W(),s=r.ref(W(i.value,ne)),l=r.ref(!1),c=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),u=r.ref(),h=v=>{s.value=v},p=()=>{i.value=s.value.format(ne),setTimeout(()=>{l.value=!1},0)},m=()=>{s.value=i.value?W(i.value):null,l.value=!1},b=()=>{l.value=!0,setTimeout(()=>{u.value.scrollToItem(y(a.startOf("month")))},0)},y=v=>o.findIndex(w=>w.id===v.startOf("month").format(ne));return(v,w)=>{const x=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":w[0]||(w[0]=I=>r.isRef(i)?i.value=I:null),disabled:c.value,focused:l.value,"helper-state":v.helperState,"helper-text":v.helperText,info:v.labelInfo,label:v.label,optional:v.labelMark==="optional",required:v.labelMark==="required",rules:v.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(v.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:I})=>[v.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:b},[r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({invalid:I,opened:l.value,showValidBorder:v.showValidBorder})),void 0,!0)])):(r.openBlock(),r.createBlock(at,{key:1,disabled:c.value,focused:l.value,invalid:I,"show-valid-border":v.showValidBorder,class:"cursor-pointer","icon-outlined":"","prepend-icon":"calendar_month",onClick:b},{prepend:r.withCtx(()=>[r.renderSlot(v.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(v.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":r.unref(i)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(i)?r.unref(W)(r.unref(i)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","invalid","show-valid-border"])),l.value?(r.openBlock(),r.createBlock(r.Teleport,{key:2,to:"body"},[r.createElementVNode("div",{style:r.normalizeStyle({zIndex:e.zIndex}),class:"bg-fm-color-neutral-white fixed flex flex-col h-dvh left-0 top-0 w-screen"},[r.createElementVNode("div",e6,[r.createVNode(at,{focused:l.value,invalid:I,"show-valid-border":v.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(v.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(v.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var R,V;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":(R=s.value)!=null&&R.isValid()?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((V=s.value)!=null&&V.isValid()?r.unref(W)(s.value).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["focused","invalid","show-valid-border"]),r.createElementVNode("div",t6,[r.createElementVNode("div",n6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),R=>(r.openBlock(),r.createElementBlock("div",{key:R,class:"fm-calendar__cell"},r.toDisplayString(R),1))),128))])])]),r.createElementVNode("div",o6,[r6,r.createElementVNode("div",i6,[r.createVNode(x,{ref_key:"scroller",ref:u,buffer:200,"item-size":null,items:r.unref(o),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:R})=>[r.createElementVNode("div",{id:R.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",s6,[r.createElementVNode("div",l6,r.toDisplayString(r.unref(W)(R.id).format(r.unref(H)("date.monthFormat"))),1),r.createElementVNode("div",d6,r.toDisplayString(r.unref(W)(R.id).format(r.unref(H)("date.yearFormat"))),1)])],8,a6),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(R.matrix,(V,B)=>(r.openBlock(),r.createElementBlock("div",{key:B,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(V,L=>(r.openBlock(),r.createElementBlock("div",{key:L.date.date(),class:"fm-calendar__cell"},[L.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":L.date.isSame(s.value),"fm-typo-en-body-lg-600":L.date.isSame(r.unref(a),"day")},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(L.date)},r.toDisplayString(L.date.date()),11,c6)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",u6,[f6,r.createElementVNode("div",p6,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!s.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]),"helper-text":r.withCtx(()=>[r.renderSlot(v.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"])}}}),[["__scopeId","data-v-43495396"]]),El=t=>{const e=r.inject(Ke,null);return r.computed(()=>{const n=t.disabled??(e==null?void 0:e.getDisabled())??!1;return{...t,disabled:n}})},h6=r.defineComponent({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const{breakpoints:e}=Jo(),n=t,o=Pe(n,"modelValue"),i=El(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock($9,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(e).xs||r.unref(e).sm?(r.openBlock(),r.createBlock(g1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),b1=r.defineComponent({__name:"FmMenuDivider",props:{vertical:{type:Boolean,default:!1},inset:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["border-fm-color-neutral-gray-100 rounded-sm",[e.vertical?"border-l -my-4 mx-4":"border-t -mx-4 my-4",{"my-0":e.inset&&e.vertical,"mx-0":e.inset&&!e.vertical}]])},null,2))}}),m6={class:"cursor-pointer fm-switch__container"},g6={key:0,class:"space-y-4"},b6={class:"fm-typo-en-body-lg-400"},y6={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},v6={class:"fm-switch__input--container"},k6=["checked","disabled","value"],w6={key:1,class:"space-y-4"},S6={class:"fm-typo-en-body-lg-400"},x6={key:0,class:"text-fm-color-typo-secondary fm-typo-en-body-md-400"},Dl=De(r.defineComponent({__name:"FmSwitch",props:{modelValue:{type:Boolean},label:{default:""},sublabel:{default:""},labelPlacement:{default:"left"},value:{default:null},disabled:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=()=>{o.value||(i.value=!i.value)};return(s,l)=>(r.openBlock(),r.createElementBlock("label",m6,[s.labelPlacement==="left"?(r.openBlock(),r.createElementBlock("div",g6,[r.renderSlot(s.$slots,"label",{},void 0,!0),r.createElementVNode("div",b6,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",y6,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",v6,[r.createElementVNode("input",{checked:r.unref(i),disabled:o.value,value:s.value,class:"fm-switch__input--btn",type:"checkbox",onClick:a},null,8,k6),r.createElementVNode("div",{class:r.normalizeClass({"fm-switch__input--knob":!0,"fm-switch__input--knob--show-icon":s.showIcon})},[s.showIcon?(r.openBlock(),r.createBlock(ce,{key:0,color:o.value?"#C7C7CC":r.unref(i)?"#1C1C1E":"#FFFFFF",name:r.unref(i)?"check":"close",size:"sm"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)]),s.labelPlacement==="right"?(r.openBlock(),r.createElementBlock("div",w6,[r.createElementVNode("div",S6,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",x6,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-48c9e062"]]);var Ct=(t=>(t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.CUSTOM="CUSTOM",t))(Ct||{});const y1=t=>(r.pushScopeId("data-v-cc800d6b"),t=t(),r.popScopeId(),t),C6={key:0,class:"flex gap-4 items-center relative w-full"},A6={class:"flex flex-col gap-4 w-full"},E6=y1(()=>r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1)),D6={class:"flex flex-col gap-4 w-full"},B6={key:1,class:"flex flex-col gap-4 w-full"},P6={class:"flex gap-4 p-12"},I6={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},O6={key:0,class:"px-8"},N6={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},R6={class:"flex flex-col gap-24"},V6={key:0,class:"flex gap-4 items-center px-12 w-full"},F6={class:"flex flex-col gap-4 w-full"},T6=y1(()=>r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," - ",-1)),M6={class:"flex flex-col gap-4 w-full"},L6={class:"flex gap-24"},z6={class:"w-max"},_6={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},H6={class:"flex gap-4 items-center"},U6={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},W6={class:"h-[288px]"},j6={key:0,class:"fm-calendar__cell__button--today"},G6=["onClick","onMouseover"],Q6={class:"w-max"},X6={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},q6={class:"flex gap-4 items-center"},K6={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},J6={key:0,class:"fm-calendar__cell__button--today"},Y6=["onClick","onMouseover"],Z6={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},$6=De(r.defineComponent({__name:"FmDateRangePickerDesktop",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:void 0},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){var Q,F;const e=[{id:Ct.PRECEDING_PERIOD,label:H("date.precedingPeriod"),sublabel:"",action:()=>{h.value=Ct.PRECEDING_PERIOD;const E=s.value;if(E[0].startDate&&E[0].endDate){const S=E[0].startDate.diff(E[0].endDate,"day");E[1]={startDate:E[0].startDate.subtract(+(1-S),"day"),endDate:E[0].startDate.subtract(1,"day")}}}},{id:Ct.PRECEDING_WEEK,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfWeek"),action:()=>{h.value=Ct.PRECEDING_WEEK;const E=s.value;if(E[0].startDate&&E[0].endDate){let S=E[0].endDate.diff(E[0].startDate,"week");S===0&&(S+=1),E[1]={startDate:E[0].startDate.subtract(S,"week"),endDate:E[0].endDate.subtract(S,"week")}}}},{id:Ct.PRECEDING_MONTH,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfMonth"),action:()=>{h.value=Ct.PRECEDING_MONTH;const E=s.value;if(E[0].startDate&&E[0].endDate){let S=E[0].endDate.diff(E[0].startDate,"month");S===0&&(S+=1),E[1]={startDate:E[0].startDate.subtract(S,"month"),endDate:E[0].endDate.subtract(S,"month")}}}},{id:Ct.CUSTOM,label:H("date.match.custom"),sublabel:"",action:()=>{h.value=Ct.CUSTOM}}],n=t,o=r.inject(Ke,null),i=W(),a=Pe(n,"modelValue"),s=r.ref([{startDate:(Q=a.value)!=null&&Q.startDate?W(a.value.startDate,ne):null,endDate:(F=a.value)!=null&&F.endDate?W(a.value.endDate,ne):null},{startDate:null,endDate:null}]),l=r.ref(!1),c=r.computed(()=>n.disabled??(o==null?void 0:o.getDisabled())??!1),u=r.ref(!1),h=r.ref(""),p=r.ref(W().startOf("month")),m=r.ref(W().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(null);let v=0;const w=E=>{var S;if(b.value="",s.value[v].startDate&&s.value[v].endDate){v===1&&(s.value=s.value.map(()=>({startDate:null,endDate:null})),v=0),s.value[0]={startDate:E,endDate:null};return}else if(!s.value[v].startDate&&!s.value[v].endDate)s.value[v].startDate=E;else{if(E.isBefore(s.value[v].startDate)){const D=s.value[v].startDate;s.value[v]={startDate:E,endDate:D}}else s.value[v].endDate=E;u.value&&(v=1),e.find(D=>D.id===h.value)||(h.value=Ct.CUSTOM)}(S=e.find(D=>D.id===h.value))==null||S.action()},x=()=>{u.value?a.value=s.value.map(E=>({startDate:E.startDate.format(ne),endDate:E.endDate.format(ne)})):a.value={startDate:s.value[0].startDate.format(ne),endDate:s.value[0].endDate.format(ne)},setTimeout(()=>{l.value=!1})},I=()=>{var E,S;Array.isArray(a.value)?s.value=a.value:s.value[0]={startDate:(E=a.value)!=null&&E.startDate?W(a.value.startDate,ne):null,endDate:(S=a.value)!=null&&S.endDate?W(a.value.endDate,ne):null},l.value=!1},R=(E,S)=>{E==="left"?(p.value=S,m.value=S.add(1,"month")):E==="right"&&(m.value=S,p.value=S.subtract(1,"month"))},V=E=>{const S=s.value[0].startDate,D=s.value[0].endDate,C=s.value[1].startDate,T=s.value[1].endDate,M=y.value,K=S==null?void 0:S.isSame(E),oe=D==null?void 0:D.isSame(E),le=C==null?void 0:C.isSame(E),Z=T==null?void 0:T.isSame(E),ie=M==null?void 0:M.isSame(E),fe=K&&D&&!(K&&oe)||S&&!D&&K&&(M==null?void 0:M.isAfter(S))||S&&!D&&ie&&(M==null?void 0:M.isBefore(S)),he=le&&T&&!(le&&Z)||C&&!T&&le&&(M==null?void 0:M.isAfter(C))||C&&!T&&ie&&(M==null?void 0:M.isBefore(C)),Oe=oe&&S&&!(K&&oe)||S&&!D&&K&&(M==null?void 0:M.isBefore(S))||S&&!D&&ie&&(M==null?void 0:M.isAfter(S)),st=Z&&C&&!(le&&Z)||C&&!T&&le&&(M==null?void 0:M.isBefore(C))||C&&!T&&ie&&(M==null?void 0:M.isAfter(C)),Xe=K&&oe||K&&!D,nt=le&&Z||le&&!T,ot=S&&(D||M)&&D?E.isAfter(S)&&E.isBefore(D):E.isAfter(M)&&E.isBefore(S)||E.isBefore(M)&&E.isAfter(S),At=C&&(T||M)&&T?E.isAfter(C)&&E.isBefore(T):E.isAfter(M)&&E.isBefore(C)||E.isBefore(M)&&E.isAfter(C),Pt=()=>{if(s.value.filter(Xt=>{var Xn;for(const Ni in Xt)if((Xn=Xt[Ni])!=null&&Xn.isSame(E,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(K&&oe&&(pt(E,C,T)||pt(E,C,M)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(le&&Z&&(pt(E,S,D)||pt(E,S,M)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(fe||Oe)return pt(E,C,T)||pt(E,C,M)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(he||st)return pt(E,S,D)||pt(E,S,M)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(Xe)return"bg-fm-color-primary";if(nt)return"bg-fm-color-system-info-300";if(pt(E,S,D)&&(pt(E,C,T)||pt(E,C,M)))return"bg-fm-color-system-success-100";if(ot)return"bg-fm-color-system-warning-100";if(At)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Pt()}`]:fe||he,[`fm-calendar__cell__button--selected-end ${Pt()}`]:Oe||st,[`fm-calendar__cell__button--selected-between ${Pt()}`]:ot||At,[`fm-calendar__cell__button--selected ${Pt()}`]:Xe||nt}},B=E=>{const S=s.value;if(S[0].startDate&&!S[0].endDate||S[1].startDate&&!S[1].endDate){y.value=E;return}y.value=null},L=E=>{b.value=E.label,s.value[0]={startDate:W(E.value.startDate,ne),endDate:W(E.value.endDate,ne)},R("left",W(E.value.startDate,ne).startOf("month"))},P=r.computed(()=>u.value?!s.value.every(E=>E.startDate&&E.endDate):!(s.value[0].startDate&&s.value[0].endDate)),_=E=>{h.value="",u.value=E,s.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),v=0},U=r.computed(()=>{if(!a.value)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const E=u.value&&Array.isArray(a.value)?a.value[0].startDate:a.value.startDate,S=u.value&&Array.isArray(a.value)?a.value[0].endDate:a.value.endDate;return{startDate:E?W(E).format(H("date.format")):H("date.placeholder"),endDate:S?W(S).format(H("date.format")):H("date.placeholder")}}),G=r.computed(()=>{const E=u.value&&Array.isArray(a.value)?a.value[1].startDate:null,S=u.value&&Array.isArray(a.value)?a.value[1].endDate:null;return E&&S?`${H("date.compareLabel")} ${W(E).format(H("date.format"))} - ${W(S).format(H("date.format"))}`:""});return r.watch(()=>a.value,()=>{var E,S;u.value?s.value=a.value.map(D=>({startDate:D!=null&&D.startDate?W(D.startDate,ne):null,endDate:D!=null&&D.endDate?W(D.endDate,ne):null})):s.value[0]={startDate:(E=a.value)!=null&&E.startDate?W(a.value.startDate,ne):null,endDate:(S=a.value)!=null&&S.endDate?W(a.value.endDate,ne):null}}),(E,S)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(a),"onUpdate:modelValue":S[8]||(S[8]=D=>r.isRef(a)?a.value=D:null),disabled:c.value,focused:l.value,"helper-state":E.helperState,"helper-text":u.value?G.value:E.helperText,rules:E.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:D})=>[r.createVNode(Bo,{disabled:c.value,"show-popover":l.value,"z-index":n.zIndex,onPopoverChanged:S[7]||(S[7]=C=>l.value=C)},{"popover-button":r.withCtx(()=>[E.$slots["trigger-button"]?r.renderSlot(E.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:l.value,invalid:D,showValidBorder:E.showValidBorder,isComparing:u.value,disabled:c.value})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[E.compare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",C6,[r.createElementVNode("label",A6,[r.createVNode(hn,{disabled:c.value,label:n.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),disabled:c.value,focused:l.value,"icon-outlined":!l.value,invalid:D,"show-valid-border":E.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(a))!=null&&C.startDate?r.unref(W)(r.unref(a).startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),E6,r.createElementVNode("label",D6,[r.createVNode(hn,{disabled:c.value,label:n.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),disabled:c.value,focused:l.value,"icon-outlined":!l.value,invalid:D,"show-valid-border":E.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":U.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(a))!=null&&C.endDate?r.unref(W)(r.unref(a).endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),E.compare?(r.openBlock(),r.createElementBlock("label",B6,[r.createVNode(hn,{label:E.compareLabel??r.unref(H)("date.compare"),locale:E.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(c.value?"cursor-not-allowed":"cursor-pointer"),focused:l.value,invalid:D,"show-valid-border":E.showValidBorder},{prepend:r.withCtx(()=>[r.renderSlot(E.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(E.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":U.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(U.value.startDate)+" - "+r.toDisplayString(U.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)],64))]),default:r.withCtx(()=>[r.createElementVNode("div",P6,[E.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",I6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.predefinedRange,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":b.value===C.label,selectable:"",onClick:M=>L(C)},null,8,["label","model-value","onClick"]))),128)),E.compare&&E.predefinedRange?(r.openBlock(),r.createElementBlock("div",O6,[r.createVNode(b1,{inset:""})])):r.createCommentVNode("",!0),E.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Dl,{"model-value":u.value,class:"justify-between px-12",label:r.unref(H)("date.label.compare"),"onUpdate:modelValue":S[0]||(S[0]=C=>_(C))},null,8,["model-value","label"]),u.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},r.renderList(e,(C,T)=>r.createVNode(xt,{key:T,label:C.label,"model-value":h.value===C.id,sublabel:C.sublabel,selectable:"",onClick:M=>C.action()},null,8,["label","model-value","sublabel","onClick"])),64)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),E.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",N6)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass({"pl-4":E.showPredefinedRange})},[r.createElementVNode("div",R6,[u.value?(r.openBlock(),r.createElementBlock("div",V6,[r.createElementVNode("label",F6,[r.createVNode(hn,{locale:E.locale,label:r.unref(H)("date.label.custom")},null,8,["locale","label"]),r.createVNode(at,{focused:!1},{default:r.withCtx(()=>{var C,T;return[r.createElementVNode("div",{class:r.normalizeClass([[(C=s.value[0])!=null&&C.startDate&&((T=s.value[0])!=null&&T.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(s.value[0].startDate!==null?s.value[0].startDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder"))+" - "+r.toDisplayString(s.value[0].endDate!==null?s.value[0].endDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:1})]),T6,r.createElementVNode("label",M6,[r.createVNode(hn,{locale:E.locale,label:r.unref(H)("date.label.compare")},null,8,["locale","label"]),r.createVNode(at,{focused:!1},{default:r.withCtx(()=>{var C,T;return[r.createElementVNode("div",{class:r.normalizeClass([[(C=s.value[1])!=null&&C.startDate&&((T=s.value[1])!=null&&T.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(s.value[1].startDate!==null?s.value[1].startDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder"))+" - "+r.toDisplayString(s.value[1].endDate!==null?s.value[1].endDate.format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",L6,[r.createElementVNode("div",z6,[r.createElementVNode("div",_6,[r.createElementVNode("div",H6,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:S[1]||(S[1]=()=>R("left",p.value.subtract(1,"month")))}),r.createVNode(ki,{max:E.max,min:E.min,"model-value":p.value,picker:"month","onUpdate:modelValue":S[2]||(S[2]=C=>R("left",C))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:E.max,min:E.min,"model-value":p.value,picker:"year","onUpdate:modelValue":S[3]||(S[3]=C=>R("left",C))},null,8,["max","min","model-value"])])]),r.createElementVNode("div",null,[r.createElementVNode("div",U6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),C=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__cell"},r.toDisplayString(C),1))),128))]),r.createElementVNode("div",W6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(p.value),(C,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C,M=>(r.openBlock(),r.createElementBlock("div",{key:M.date.date(),class:"fm-calendar__cell"},[M.date.isSame(r.unref(i),"day")&&M.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",j6)):r.createCommentVNode("",!0),M.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[V(M.date),{"fm-typo-en-body-lg-600":M.date.isSame(r.unref(i),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>w(M.date),onMouseover:K=>B(M.date)},r.toDisplayString(M.date.date()),43,G6)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",Q6,[r.createElementVNode("div",X6,[r.createElementVNode("div",q6,[r.createVNode(ki,{max:E.max,min:E.min,"model-value":m.value,picker:"month","onUpdate:modelValue":S[4]||(S[4]=C=>R("right",C))},null,8,["max","min","model-value"]),r.createVNode(ki,{max:E.max,min:E.min,"model-value":m.value,picker:"year","onUpdate:modelValue":S[5]||(S[5]=C=>R("right",C))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:S[6]||(S[6]=()=>R("left",p.value.add(1,"month")))})]),r.createElementVNode("div",null,[r.createElementVNode("div",K6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),C=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__cell"},r.toDisplayString(C),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(zu)(m.value),(C,T)=>(r.openBlock(),r.createElementBlock("div",{key:T,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(C,M=>(r.openBlock(),r.createElementBlock("div",{key:M.date.date(),class:"fm-calendar__cell"},[M.date.isSame(r.unref(i),"day")&&M.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",J6)):r.createCommentVNode("",!0),M.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[V(M.date),{"fm-typo-en-body-lg-600":M.date.isSame(r.unref(i),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>w(M.date),onMouseover:K=>B(M.date)},r.toDisplayString(M.date.date()),43,Y6)):r.createCommentVNode("",!0)]))),128))]))),128))])])])])]),r.createElementVNode("div",Z6,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:I},null,8,["label"]),r.createVNode(me,{disabled:P.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[E.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(E.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),[["__scopeId","data-v-cc800d6b"]]),e5={key:0},t5={class:"flex gap-4 items-center relative w-full"},n5={class:"flex flex-col gap-4 w-full"},o5=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),r5={class:"flex flex-col gap-4 w-full"},i5={key:1,class:"flex flex-col gap-4 w-full"},_u=r.defineComponent({__name:"FmDateRangePickerField",props:{modelValue:{},analytic:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},isComparing:{type:Boolean,default:!1},startLabel:{},endLabel:{},compareLabel:{},locale:{}},setup(t){const e=t,n=r.computed(()=>{if(!e.modelValue)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const o=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,i=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o?W(o).format(H("date.format")):H("date.placeholder"),endDate:i?W(i).format(H("date.format")):H("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",e5,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",t5,[r.createElementVNode("label",n5,[r.createVNode(hn,{disabled:o.disabled,label:e.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.startDate?r.unref(W)(o.modelValue.startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),o5,r.createElementVNode("label",r5,[r.createVNode(hn,{disabled:o.disabled,label:e.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.endDate?r.unref(W)(o.modelValue.endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",i5,[r.createVNode(hn,{label:o.compareLabel??r.unref(H)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":n.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(n.value.startDate)+" - "+r.toDisplayString(n.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),v1=t=>(r.pushScopeId("data-v-f67f5a71"),t=t(),r.popScopeId(),t),a5={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},s5={class:"flex items-center justify-center"},l5={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},d5={class:"flex h-[calc(100%-172px)] justify-center relative w-full"},c5=v1(()=>r.createElementVNode("div",{class:"absolute bg-gradient-to-b from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),u5={id:"wrapper",class:"h-full relative w-[336px]"},f5=["id"],p5={class:"flex gap-4 items-center"},h5={class:"fm-typo-en-body-lg-600"},m5={class:"fm-typo-en-body-lg-600"},g5=["onClick","onMouseover"],b5={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},y5=v1(()=>r.createElementVNode("div",{class:"-top-32 absolute bg-gradient-to-t from-[#1C1C1E14] h-32 left-0 pointer-events-none to-80% w-full z-10"},null,-1)),v5={class:"flex gap-8 items-center justify-end w-full"},k1=De(r.defineComponent({__name:"FmDateRangePickerMobile",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{default:100},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){var F,E;const e=r.ref(),n=[{id:Ct.PRECEDING_PERIOD,label:H("date.precedingPeriod"),sublabel:"",action:()=>{p.value=Ct.PRECEDING_PERIOD;const S=c.value;if(S[0].startDate&&S[0].endDate){const D=S[0].startDate.diff(S[0].endDate,"day");S[1]={startDate:S[0].startDate.subtract(+(1-D),"day"),endDate:S[0].startDate.subtract(1,"day")}}}},{id:Ct.PRECEDING_WEEK,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfWeek"),action:()=>{p.value=Ct.PRECEDING_WEEK;const S=c.value;if(S[0].startDate&&S[0].endDate){let D=S[0].endDate.diff(S[0].startDate,"week");D===0&&(D+=1),S[1]={startDate:S[0].startDate.subtract(D,"week"),endDate:S[0].endDate.subtract(D,"week")}}}},{id:Ct.PRECEDING_MONTH,label:H("date.precedingPeriod"),sublabel:H("date.match.dayOfMonth"),action:()=>{p.value=Ct.PRECEDING_MONTH;const S=c.value;if(S[0].startDate&&S[0].endDate){let D=S[0].endDate.diff(S[0].startDate,"month");D===0&&(D+=1),S[1]={startDate:S[0].startDate.subtract(D,"month"),endDate:S[0].endDate.subtract(D,"month")}}}},{id:Ct.CUSTOM,label:H("date.match.custom"),sublabel:"",action:()=>{p.value=Ct.CUSTOM}}],o=t,i=r.inject(Ke,null),a=h1(o.min,o.max),s=W(),l=Pe(o,"modelValue"),c=r.ref([{startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,ne):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,ne):null},{startDate:null,endDate:null}]),u=r.ref(!1),h=r.ref(!1),p=r.ref(""),m=r.ref(""),b=r.ref(null);let y=0;const v=S=>{var D;if(m.value="",c.value[y].startDate&&c.value[y].endDate){y===1&&(c.value=c.value.map(()=>({startDate:null,endDate:null})),y=0),c.value[0]={startDate:S,endDate:null};return}else if(!c.value[y].startDate&&!c.value[y].endDate)c.value[y].startDate=S;else{if(S.isBefore(c.value[y].startDate)){const C=c.value[y].startDate;c.value[y]={startDate:S,endDate:C}}else c.value[y].endDate=S;h.value&&(y=1),n.find(C=>C.id===p.value)||(p.value=Ct.CUSTOM)}(D=n.find(C=>C.id===p.value))==null||D.action()},w=()=>{h.value?l.value=c.value.map(S=>({startDate:S.startDate.format(ne),endDate:S.endDate.format(ne)})):l.value={startDate:c.value[0].startDate.format(ne),endDate:c.value[0].endDate.format(ne)},setTimeout(()=>{u.value=!1})},x=()=>{var S,D;Array.isArray(l.value)?c.value=l.value:c.value[0]={startDate:(S=l.value)!=null&&S.startDate?W(l.value.startDate,ne):null,endDate:(D=l.value)!=null&&D.endDate?W(l.value.endDate,ne):null},u.value=!1},I=S=>{const D=c.value[0].startDate,C=c.value[0].endDate,T=c.value[1].startDate,M=c.value[1].endDate,K=b.value,oe=D==null?void 0:D.isSame(S),le=C==null?void 0:C.isSame(S),Z=T==null?void 0:T.isSame(S),ie=M==null?void 0:M.isSame(S),fe=K==null?void 0:K.isSame(S),he=oe&&C&&!(oe&&le)||D&&!C&&oe&&(K==null?void 0:K.isAfter(D))||D&&!C&&fe&&(K==null?void 0:K.isBefore(D)),Oe=Z&&M&&!(Z&&ie)||T&&!M&&Z&&(K==null?void 0:K.isAfter(T))||T&&!M&&fe&&(K==null?void 0:K.isBefore(T)),st=le&&D&&!(oe&&le)||D&&!C&&oe&&(K==null?void 0:K.isBefore(D))||D&&!C&&fe&&(K==null?void 0:K.isAfter(D)),Xe=ie&&T&&!(Z&&ie)||T&&!M&&Z&&(K==null?void 0:K.isBefore(T))||T&&!M&&fe&&(K==null?void 0:K.isAfter(T)),nt=oe&&le||oe&&!C,ot=Z&&ie||Z&&!M,At=D&&(C||K)&&C?S.isAfter(D)&&S.isBefore(C):S.isAfter(K)&&S.isBefore(D)||S.isBefore(K)&&S.isAfter(D),Pt=T&&(M||K)&&M?S.isAfter(T)&&S.isBefore(M):S.isAfter(K)&&S.isBefore(T)||S.isBefore(K)&&S.isAfter(T),kn=()=>{if(c.value.filter(Xn=>{var Ni;for(const qn in Xn)if((Ni=Xn[qn])!=null&&Ni.isSame(S,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(oe&&le&&(pt(S,T,M)||pt(S,T,K)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(Z&&ie&&(pt(S,D,C)||pt(S,D,K)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(he||st)return pt(S,T,M)||pt(S,T,K)?"bg-fm-color-primary before:bg-fm-color-system-success-100 after:bg-fm-color-system-info-100":"bg-fm-color-primary before:bg-fm-color-system-warning-100";if(Oe||Xe)return pt(S,D,C)||pt(S,D,K)?"bg-fm-color-system-info-300 before:bg-fm-color-system-success-100 after:bg-fm-color-system-warning-100":"bg-fm-color-system-info-300 before:bg-fm-color-system-info-100";if(nt)return"bg-fm-color-primary";if(ot)return"bg-fm-color-system-info-300";if(pt(S,D,C)&&(pt(S,T,M)||pt(S,T,K)))return"bg-fm-color-system-success-100";if(At)return"bg-fm-color-system-warning-100";if(Pt)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${kn()}`]:he||Oe,[`fm-calendar__cell__button--selected-end ${kn()}`]:st||Xe,[`fm-calendar__cell__button--selected-between ${kn()}`]:At||Pt,[`fm-calendar__cell__button--selected ${kn()}`]:nt||ot}},R=S=>{const D=c.value;if(D[0].startDate&&!D[0].endDate||D[1].startDate&&!D[1].endDate){b.value=S;return}b.value=null},V=S=>{c.value[0]={startDate:W(S.startDate,ne),endDate:W(S.endDate,ne)}},B=S=>{const D=n.find(C=>C.id===S);D==null||D.action()},L=r.computed(()=>h.value?!c.value.every(S=>S.startDate&&S.endDate):!(c.value[0].startDate&&c.value[0].endDate)),P=S=>{p.value="",h.value=S,c.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),y=0},_=r.computed(()=>{const S=h.value&&Array.isArray(l.value)?l.value[1].startDate:null,D=h.value&&Array.isArray(l.value)?l.value[1].endDate:null;return S&&D?`${H("date.compareLabel")} ${W(S).format(H("date.format"))} - ${W(D).format(H("date.format"))}`:""}),U=r.computed(()=>o.disabled??(i==null?void 0:i.getDisabled())??!1),G=()=>{U.value||(u.value=!0,setTimeout(()=>{e.value.scrollToItem(Q(s.startOf("month")))},0))},Q=S=>a.findIndex(D=>D.id===S.startOf("month").format(ne));return r.watch(()=>l.value,()=>{var S,D;h.value?c.value=l.value.map(C=>({startDate:C!=null&&C.startDate?W(C.startDate,ne):null,endDate:C!=null&&C.endDate?W(C.endDate,ne):null})):c.value[0]={startDate:(S=l.value)!=null&&S.startDate?W(l.value.startDate,ne):null,endDate:(D=l.value)!=null&&D.endDate?W(l.value.endDate,ne):null}}),(S,D)=>{const C=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":D[3]||(D[3]=T=>r.isRef(l)?l.value=T:null),disabled:U.value,focused:u.value,"helper-state":S.helperState,"helper-text":h.value?_.value:S.helperText,rules:S.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:T})=>{var M,K,oe,le;return[S.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:G},[r.renderSlot(S.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({opened:u.value,invalid:T,showValidBorder:S.showValidBorder,isComparing:h.value,disabled:U.value})),void 0,!0)])):(r.openBlock(),r.createBlock(_u,{key:1,analytic:S.compare,"compare-label":S.compareLabel??r.unref(H)("date.compare"),disabled:U.value,"end-label":S.endLabel??r.unref(H)("date.endDate"),focused:u.value,invalid:T,"is-comparing":h.value,"model-value":r.unref(l),"show-valid-border":S.showValidBorder,"start-label":S.startLabel??r.unref(H)("date.startDate"),onClick:G},r.createSlots({_:2},[S.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(S.$slots,"popover-button",{focused:u.value},void 0,!0)]),key:"0"}:void 0]),1032,["analytic","compare-label","disabled","end-label","focused","invalid","is-comparing","model-value","show-valid-border","start-label"])),u.value?(r.openBlock(),r.createBlock(r.Teleport,{key:2,to:"body"},[r.createElementVNode("div",{style:r.normalizeStyle({zIndex:o.zIndex}),class:"bg-fm-color-neutral-white fixed flex flex-col h-dvh left-0 top-0 w-screen"},[r.createElementVNode("div",a5,[S.showPredefinedRange?(r.openBlock(),r.createBlock(yo,{key:0,items:S.predefinedRange,"model-value":m.value,"onUpdate:modelValue":D[0]||(D[0]=Z=>V(Z))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createVNode(_u,{analytic:S.compare,"compare-label":S.compareLabel??r.unref(H)("date.compare"),"end-label":S.endLabel??r.unref(H)("date.endDate"),"is-comparing":h.value,"model-value":{startDate:((M=c.value[0].startDate)==null?void 0:M.format(r.unref(ne)))??null,endDate:((K=c.value[0].endDate)==null?void 0:K.format(r.unref(ne)))??null},"start-label":S.startLabel??r.unref(H)("date.startDate")},null,8,["analytic","compare-label","end-label","is-comparing","model-value","start-label"]),S.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Dl,{"model-value":h.value,label:r.unref(H)("date.label.compare"),"label-placement":"right","onUpdate:modelValue":D[1]||(D[1]=Z=>P(Z))},null,8,["model-value","label"]),h.value&&S.compare?(r.openBlock(),r.createBlock(yo,{key:0,items:n.map(Z=>({label:Z.label,sublabel:Z.sublabel,value:Z.id})),"model-value":p.value,"onUpdate:modelValue":D[2]||(D[2]=Z=>B(Z))},null,8,["items","model-value"])):r.createCommentVNode("",!0),h.value&&S.compare?(r.openBlock(),r.createBlock(_u,{key:1,analytic:S.compare,"end-label":S.endLabel??r.unref(H)("date.endDate"),"is-comparing":h.value,"model-value":{startDate:((oe=c.value[1].startDate)==null?void 0:oe.format(r.unref(ne)))??null,endDate:((le=c.value[1].endDate)==null?void 0:le.format(r.unref(ne)))??null},"start-label":S.startLabel??r.unref(H)("date.startDate"),"compare-label":"Compare: Custom"},null,8,["analytic","end-label","is-comparing","model-value","start-label"])):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",s5,[r.createElementVNode("div",l5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))])])]),r.createElementVNode("div",d5,[c5,r.createElementVNode("div",u5,[r.createVNode(C,{ref_key:"scroller",ref:e,buffer:200,"item-size":null,items:r.unref(a),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:Z})=>[r.createElementVNode("div",{id:Z.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",p5,[r.createElementVNode("div",h5,r.toDisplayString(r.unref(W)(Z.id).format(r.unref(H)("date.monthFormat"))),1),r.createElementVNode("div",m5,r.toDisplayString(r.unref(W)(Z.id).format(r.unref(H)("date.yearFormat"))),1)])],8,f5),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.matrix,(ie,fe)=>(r.openBlock(),r.createElementBlock("div",{key:fe,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(ie,he=>(r.openBlock(),r.createElementBlock("div",{key:he.date.date(),class:"fm-calendar__cell"},[he.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([[I(he.date),{"fm-typo-en-body-lg-600":he.date.isSame(r.unref(s),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>v(he.date),onMouseover:Oe=>R(he.date)},r.toDisplayString(he.date.date()),43,g5)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",b5,[y5,r.createElementVNode("div",v5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:x},null,8,["label"]),r.createVNode(me,{disabled:L.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:w},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]}),_:2},[S.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(S.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),[["__scopeId","data-v-f67f5a71"]]),k5=r.defineComponent({__name:"FmDateRangePicker",props:{modelValue:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:H("date.predefinedRanges.today"),value:{startDate:W().format(ne),endDate:W().format(ne)}},{label:H("date.predefinedRanges.yesterday"),value:{startDate:W().subtract(1,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisWeek"),value:{startDate:W().startOf("week").format(ne),endDate:W().endOf("week").format(ne)}},{label:H("date.predefinedRanges.lastWeek"),value:{startDate:W().subtract(1,"week").startOf("week").format(ne),endDate:W().subtract(1,"week").endOf("week").format(ne)}},{label:H("date.predefinedRanges.last7Days"),value:{startDate:W().subtract(7,"day").format(ne),endDate:W().subtract(1,"day").format(ne)}},{label:H("date.predefinedRanges.thisMonth"),value:{startDate:W().startOf("month").format(ne),endDate:W().endOf("month").format(ne)}},{label:H("date.predefinedRanges.lastMonth"),value:{startDate:W().subtract(1,"month").startOf("month").format(ne),endDate:W().subtract(1,"month").endOf("month").format(ne)}},{label:H("date.predefinedRanges.thisYear"),value:{startDate:W().startOf("year").format(ne),endDate:W().endOf("year").format(ne)}}]},compare:{type:Boolean,default:!1},compareLabel:{},min:{default:()=>W().subtract(50,"year").format(ne)},max:{default:()=>W().add(25,"year").format(ne)},zIndex:{},locale:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,{breakpoints:n}=Jo(),o=Pe(e,"modelValue"),i=El(e);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).md||r.unref(n).lg?(r.openBlock(),r.createBlock($6,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(n).xs||r.unref(n).sm?(r.openBlock(),r.createBlock(k1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),re="YYYY-MM-DD",Si=t=>{const e=[],n=t.endOf("month"),o=t.month();let i=t.startOf("week"),a=[];for(;i.isBefore(n.endOf("week"));)i.day()===0&&a.length>0&&(e.push(a),a=[]),a.push({date:i,isCurrentMonth:i.month()===o}),i=i.add(1,"day");return a.length>0&&e.push(a),e.length<6&&e.push([]),e},w1=(t,e)=>({startAt:t?W(t,re):null,endAt:e?W(e,re):null}),w5={class:"fm-typo-en-body-md-600"},S5={id:"in-calendar-app",class:"h-[264px] overflow-y-auto w-[160px]"},x5=["onVnodeMounted"],C5=["onVnodeMounted"],Pn=r.defineComponent({__name:"FmDateRangeYearMonthPicker",props:{modelValue:{},picker:{},min:{},max:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>{const u=W(n.min).startOf("year"),h=W(n.max).startOf("year"),p=h.diff(u,"year"),m=[];for(let b=0;b<=p;b++)m.push(h.subtract(b,"year"));return m}),s=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");return u.get("year")===h.get("year")?u.startOf("month").isAfter(h)||u.get("month")===h.get("month"):u.get("year")===p.get("year")?u.startOf("month").isBefore(p)||u.get("month")===p.get("month"):!0},l=u=>{const h=W(n.min).startOf("month"),p=W(n.max).startOf("month");if(h.get("year")===u.get("year")){o("update:modelValue",h);return}if(p.get("year")===u.get("year")){o("update:modelValue",p);return}o("update:modelValue",u)};function c(u,h){if(!h)return!1;const p=u.el,m=p==null?void 0:p.parentElement;!p||!m||m.scrollTo({top:p.offsetTop-50})}return(u,h)=>(r.openBlock(),r.createBlock(io,{trigger:"click",onMenuChanged:h[0]||(h[0]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-4 h-24 items-center px-4 rounded-sm",i.value?"text-fm-color-primary":"hover:bg-fm-color-neutral-gray-100"])},[r.createElementVNode("div",w5,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.monthFormat"))),1)],64)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(H)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ce,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",S5,[u.picker==="month"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(Array.from(Array(12),(p,m)=>u.modelValue.month(m)),p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")))},[r.createVNode(xt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(H)("date.monthFormat"))===p.format(r.unref(H)("date.monthFormat")),label:p.format(r.unref(H)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,x5))),128)):r.createCommentVNode("",!0),u.picker==="year"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(a.value,p=>(r.openBlock(),r.createElementBlock("li",{key:p.format(r.unref(H)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")))},[r.createVNode(xt,{"model-value":u.modelValue.format(r.unref(H)("date.yearFormat"))===p.format(r.unref(H)("date.yearFormat")),label:p.format(r.unref(H)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,C5))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),A5={class:"fm-calendar__name-row fm-typo-en-body-md-400 text-fm-color-typo-tertiary"},E5=["id"],D5={key:0,class:"fm-calendar__cell__button--today"},B5=["onClick","onMouseover"],xi=De(r.defineComponent({__name:"FmCalendar",props:{days:{},dayCellClass:{type:[Object,Function],default:void 0},onDayClick:{},onCellMouseOver:{type:Function,default:void 0},cellSize:{default:"md"}},setup(t){const e=W(),n=(i,a)=>typeof i=="function"?i(...a):i,o=(i,a)=>{if(!a)return;const s={"fm-calendar__cell--selected":!1,"fm-calendar__cell--selected-start":!1,"fm-calendar__cell--selected-end":!1,"fm-calendar__cell--selected-between":!1};let l;if(typeof a=="function"){const{status:c,className:u}=a(i);c&&(s["fm-calendar__cell--selected"]=c.isSelected??!1,s["fm-calendar__cell--selected-start"]=c.isStart??!1,s["fm-calendar__cell--selected-end"]=c.isEnd??!1,s["fm-calendar__cell--selected-between"]=c.isBetween??!1),l=u??""}else{const{status:c,className:u}=a;c&&(s["fm-calendar__cell--selected"]=n(c.isSelected,[i])??!1,s["fm-calendar__cell--selected-start"]=n(c.isStart,[i])??!1,s["fm-calendar__cell--selected-end"]=n(c.isEnd,[i])??!1,s["fm-calendar__cell--selected-between"]=n(c.isBetween,[i])??!1),l=n(u,[i])??""}return[s,l]};return(i,a)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",A5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(wi)(),s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["fm-calendar__cell",`fm-calendar__cell__${i.cellSize}`])},r.toDisplayString(s),3))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.days,(s,l)=>(r.openBlock(),r.createElementBlock("div",{key:l,class:"fm-calendar__row fm-typo-en-body-md-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s,c=>(r.openBlock(),r.createElementBlock("div",{id:`${c.date.toISOString()}`,key:c.date.date(),class:r.normalizeClass(["fm-calendar__cell",[`fm-calendar__cell__${i.cellSize}`,o(c.date,i.dayCellClass),!c.isCurrentMonth&&"fm-calendar__cell--not-current-month"]])},[c.date.isSame(r.unref(e),"day")&&c.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",D5)):r.createCommentVNode("",!0),c.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:"fm-calendar__cell__button",type:"button",onClick:u=>i.onDayClick(c),onMouseover:u=>{var h;return(h=i.onCellMouseOver)==null?void 0:h.call(i,c.date)}},r.toDisplayString(c.date.date()),41,B5)):r.createCommentVNode("",!0)],10,E5))),128))]))),128))])]))}}),[["__scopeId","data-v-9a5f3a22"]]),P5={class:"p-12 space-y-4 w-[552px]"},I5={class:"w-max"},O5={class:"flex space-x-24"},N5={class:"flex items-center py-8 space-x-16"},R5={class:"flex space-x-4"},V5={class:"flex items-center justify-end py-8 space-x-16"},F5={class:"flex space-x-4"},T5={class:"flex gap-8 items-center justify-end w-full"},M5=r.defineComponent({__name:"FmSimpleDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,re)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=r.ref(W().startOf("month").add(1,"month")),u=(w,x)=>{w==="left"?(l.value=x,c.value=x.add(1,"month")):w==="right"&&(c.value=x,l.value=x.subtract(1,"month"))},h=w=>{i.value=w},p=r.computed(()=>Si(l.value)),m=r.computed(()=>Si(l.value.add(1,"month"))),b=()=>{o.value=i.value.format(re),setTimeout(()=>{a.value=!1},0)},y=()=>{i.value=o.value?W(o.value):null,a.value=!1},v=w=>{a.value=w,w||y()};return(w,x)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":x[6]||(x[6]=I=>r.isRef(o)?o.value=I:null),disabled:s.value,focused:a.value,"helper-state":w.helperState,"helper-text":w.helperText,info:w.labelInfo,label:w.label,optional:w.labelMark==="optional",required:w.labelMark==="required",rules:w.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(w.$slots,"label")]),default:r.withCtx(({invalid:I})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":e.zIndex,"exclude-el-from-click-outside":["in-calendar-app"],onPopoverChanged:v},{"popover-button":r.withCtx(()=>[w.$slots["trigger-button"]?r.renderSlot(w.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:I,opened:a.value,showValidBorder:w.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:I,"show-valid-border":w.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(w.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(w.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",P5,[r.createElementVNode("div",I5,[r.createElementVNode("div",O5,[r.createElementVNode("div",null,[r.createElementVNode("div",N5,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:x[0]||(x[0]=()=>u("left",l.value.subtract(1,"month")))}),r.createElementVNode("div",R5,[r.createVNode(Pn,{max:w.max,min:w.min,"model-value":l.value,picker:"month","onUpdate:modelValue":x[1]||(x[1]=R=>u("left",R))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:w.max,min:w.min,"model-value":l.value,picker:"year","onUpdate:modelValue":x[2]||(x[2]=R=>u("left",R))},null,8,["max","min","model-value"])])]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:R=>R.isSame(i.value,"date")}},days:p.value,"on-day-click":R=>h(R.date)},null,8,["day-cell-class","days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",V5,[r.createElementVNode("div",F5,[r.createVNode(Pn,{max:w.max,min:w.min,"model-value":c.value,picker:"month","onUpdate:modelValue":x[3]||(x[3]=R=>u("right",R))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:w.max,min:w.min,"model-value":c.value,picker:"year","onUpdate:modelValue":x[4]||(x[4]=R=>u("right",R))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:x[5]||(x[5]=()=>u("left",l.value.add(1,"month")))})]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:R=>R.isSame(i.value,"date")}},days:m.value,"on-day-click":R=>h(R.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",T5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:y},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:b},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(w.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),L5={class:"p-12 space-y-4 w-[276px]"},z5={class:"w-max"},_5={class:"flex space-x-24"},H5={class:"flex items-center justify-between py-8"},U5={class:"flex space-x-4"},W5={class:"flex space-x-4"},j5={class:"flex gap-8 items-center justify-end w-full"},S1=r.defineComponent({__name:"FmSimpleDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=Pe(e,"modelValue"),i=r.ref(W(o.value,re)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(W().startOf("month")),c=y=>{l.value=y},u=y=>{i.value=y},h=r.computed(()=>Si(l.value)),p=()=>{o.value=i.value.format(re),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?W(o.value):null,a.value=!1},b=y=>{a.value=y,y||m()};return(y,v)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(o),"onUpdate:modelValue":v[4]||(v[4]=w=>r.isRef(o)?o.value=w:null),disabled:s.value,focused:a.value,"helper-state":y.helperState,"helper-text":y.helperText,info:y.labelInfo,label:y.label,optional:y.labelMark==="optional",required:y.labelMark==="required",rules:y.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(y.$slots,"label")]),default:r.withCtx(({invalid:w})=>[r.createVNode(Bo,{disabled:s.value,"show-popover":a.value,"z-index":e.zIndex,"exclude-el-from-click-outside":["in-calendar-app"],onPopoverChanged:b},{"popover-button":r.withCtx(()=>[y.$slots["trigger-button"]?r.renderSlot(y.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:w,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(at,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:w,"show-valid-border":y.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(y.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(y.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[s.value?"text-fm-color-typo-disabled":r.unref(o)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(r.unref(o)?r.unref(W)(r.unref(o)).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",L5,[r.createElementVNode("div",z5,[r.createElementVNode("div",_5,[r.createElementVNode("div",null,[r.createElementVNode("div",H5,[r.createElementVNode("div",U5,[r.createVNode(Pn,{max:y.max,min:y.min,"model-value":l.value,picker:"month","onUpdate:modelValue":v[0]||(v[0]=x=>c(x))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:y.max,min:y.min,"model-value":l.value,picker:"year","onUpdate:modelValue":v[1]||(v[1]=x=>c(x))},null,8,["max","min","model-value"])]),r.createElementVNode("div",W5,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:v[2]||(v[2]=()=>c(l.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:v[3]||(v[3]=()=>c(l.value.add(1,"month")))})])]),r.createVNode(xi,{"day-cell-class":{status:{isSelected:x=>x.isSame(i.value,"date")}},days:h.value,"on-day-click":x=>u(x.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",j5,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(me,{disabled:!i.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:p},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(y.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),G5=r.defineComponent({__name:"FmSimpleDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const{breakpoints:e}=Jo(),n=t,o=Pe(n,"modelValue"),i=El(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(M5,r.mergeProps({key:0},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(e).xs||r.unref(e).sm?(r.openBlock(),r.createBlock(S1,r.mergeProps({key:1},r.unref(i),{modelValue:r.unref(o),"onUpdate:modelValue":s[1]||(s[1]=l=>r.isRef(o)?o.value=l:null)}),r.createSlots({_:2},[a.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(l=>[r.renderSlot(a.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(l)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}});var He=(t=>(t.NO_COMPARISON="NO_COMPARISON",t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.PRECEDING_YEAR="PRECEDING_YEAR",t.CUSTOM="CUSTOM",t))(He||{});const Q5={key:1,class:"flex gap-4 items-center relative w-full"},X5={class:"flex flex-col gap-4 w-full"},q5=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),K5={class:"flex flex-col gap-4 w-full"},J5={class:"flex h-[360px]"},Y5={class:"flex flex-col items-start p-12 pr-4"},Z5={key:0},$5={key:1},eE=r.createElementVNode("div",{class:"bg-fm-color-neutral-gray-100 h-full mx-4 w-px"},null,-1),tE={class:"w-max"},nE={class:"flex space-x-24"},oE={class:"flex items-center py-8 space-x-16"},rE={class:"flex space-x-4"},iE={class:"flex items-center justify-end py-8 space-x-16"},aE={class:"flex space-x-4"},sE={class:"flex gap-8 items-center justify-end w-full"},lE=r.defineComponent({__name:"FmSimpleDateRangePickerDesktop",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{default:He.PRECEDING_PERIOD},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){var G,Q;const n=F=>()=>{var C,T;const{startAt:E,endAt:S}=w1((C=a.compareTarget)==null?void 0:C.startDate,(T=a.compareTarget)==null?void 0:T.endDate);if(!E||!S)return;const D=F({startAt:E,endAt:S});return V("right",D.endDate.startOf("month")),D},o=r.computed(()=>[{id:He.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},y.value=He.NO_COMPARISON}},{id:He.PRECEDING_WEEK,label:"Same period last week",sublabel:"Match day of week",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"week")+1;return c.value={startDate:F.subtract(S,"week"),endDate:E.subtract(S,"week")},y.value=He.PRECEDING_WEEK,c.value})},{id:He.PRECEDING_MONTH,label:"Same period last month",sublabel:"Match day of month",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"month")+1;return c.value={startDate:F.subtract(S,"month"),endDate:E.subtract(S,"month")},y.value=He.PRECEDING_MONTH,c.value})},{id:He.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"day")+1;return c.value={startDate:F.subtract(S,"day"),endDate:E.subtract(S,"day")},y.value=He.PRECEDING_PERIOD,c.value})},{id:He.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"year")+1;return c.value={startDate:F.subtract(S,"year"),endDate:E.subtract(S,"year")},y.value=He.PRECEDING_YEAR,c.value})},{id:He.CUSTOM,label:"Custom",sublabel:"",action:()=>{y.value=He.CUSTOM}}]),i=e,a=t,s=r.inject(Ke,null),l=Pe(a,"modelValue"),c=r.ref({startDate:(G=l.value)!=null&&G.startDate?W(l.value.startDate,re):null,endDate:(Q=l.value)!=null&&Q.endDate?W(l.value.endDate,re):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(W().startOf("month")),m=r.ref(W().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(a.defaultCompareType),v=r.ref(null),w=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:F,endDate:E},label:S})=>{var D,C;((D=c.value.startDate)==null?void 0:D.format(re))===F&&((C=c.value.endDate)==null?void 0:C.format(re))===E&&(b.value=S)})},x=F=>{if(b.value="",y.value=He.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:F,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=F;else{if(F.isBefore(c.value.startDate)){const E=c.value.startDate;c.value={startDate:F,endDate:E}}else c.value.endDate=F;w()}},I=()=>{var F,E;l.value={startDate:(F=c.value.startDate)==null?void 0:F.format(re),endDate:(E=c.value.endDate)==null?void 0:E.format(re)},i("select-comparison",y.value),setTimeout(()=>{u.value=!1})},R=()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null},u.value=!1},V=(F,E)=>{F==="left"?(p.value=E,m.value=E.add(1,"month")):F==="right"&&(m.value=E,p.value=E.subtract(1,"month"))},B=F=>{var ie,fe;const E=(ie=c.value.startDate)==null?void 0:ie.startOf("day"),S=(fe=c.value.endDate)==null?void 0:fe.startOf("day"),D=v.value,C=E==null?void 0:E.isSame(F),T=S==null?void 0:S.isSame(F),M=D==null?void 0:D.isSame(F),K=C&&S&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isAfter(E))||E&&!S&&M&&(D==null?void 0:D.isBefore(E)),oe=T&&E&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isBefore(E))||E&&!S&&M&&(D==null?void 0:D.isAfter(E)),le=C&&T||C&&!S,Z=E&&(S||D)&&S?F.isAfter(E)&&F.isBefore(S):F.isAfter(D)&&F.isBefore(E)||F.isBefore(D)&&F.isAfter(E);return{status:{isStart:K??!1,isEnd:oe??!1,isBetween:Z??!1,isSelected:le??!1}}},L=F=>{const E=c.value;if(E.startDate&&!E.endDate){v.value=F;return}v.value=null},P=F=>{b.value=F.label;const E=W(F.value.startDate,re),S=W(F.value.endDate,re);c.value={startDate:E,endDate:S},V("left",E.startOf("month"))},_=F=>{u.value=F,F||R()},U=r.computed(()=>!y.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||y.value===He.CUSTOM)return;const F=o.value.find(S=>S.id===y.value),E=F==null?void 0:F.action();E&&(l.value=E)}),r.onMounted(()=>{w()}),(F,E)=>{const S=r.resolveComponent("fm-label");return r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":E[6]||(E[6]=D=>r.isRef(l)?l.value=D:null),disabled:h.value,focused:u.value,"helper-state":F.helperState,"helper-text":F.helperText,rules:F.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:D})=>[r.createVNode(Bo,{disabled:h.value,"exclude-el-from-click-outside":["in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:_},{"popover-button":r.withCtx(()=>[F.$slots["trigger-button"]?r.renderSlot(F.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:D,showValidBorder:F.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createElementBlock("div",Q5,[r.createElementVNode("label",X5,[r.createVNode(S,{disabled:h.value,label:a.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:D,"show-valid-border":F.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(F.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(F.$slots,"append")]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[h.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(l))!=null&&C.startDate?r.unref(W)(r.unref(l).startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),q5,r.createElementVNode("label",K5,[r.createVNode(S,{disabled:h.value,label:a.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:D,"show-valid-border":F.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(F.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(F.$slots,"append")]),default:r.withCtx(()=>{var C;return[r.createElementVNode("div",{class:r.normalizeClass([[h.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString((C=r.unref(l))!=null&&C.endDate?r.unref(W)(r.unref(l).endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])]))]),default:r.withCtx(()=>[r.createElementVNode("div",J5,[F.showPredefinedRange||F.compareTarget?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Y5,[F.showPredefinedRange&&!F.compareTarget?(r.openBlock(),r.createElementBlock("div",Z5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.predefinedRange,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":b.value===C.label,class:"min-w-[158px]",selectable:"",onClick:M=>P(C)},null,8,["label","model-value","onClick"]))),128))])):r.createCommentVNode("",!0),F.compareTarget?(r.openBlock(),r.createElementBlock("div",$5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(C,T)=>(r.openBlock(),r.createBlock(xt,{key:T,label:C.label,"model-value":y.value===C.id,sublabel:C.sublabel,class:"min-w-[158px]",selectable:"",onClick:M=>C.action()},null,8,["label","model-value","sublabel","onClick"]))),128))])):r.createCommentVNode("",!0)]),eE],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{"pl-4":F.showPredefinedRange||F.compareTarget},"p-12 space-y-4"])},[r.createElementVNode("div",tE,[r.createElementVNode("div",nE,[r.createElementVNode("div",null,[r.createElementVNode("div",oE,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:E[0]||(E[0]=()=>V("left",p.value.subtract(1,"month")))}),r.createElementVNode("div",rE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"month","onUpdate:modelValue":E[1]||(E[1]=C=>V("left",C))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"year","onUpdate:modelValue":E[2]||(E[2]=C=>V("left",C))},null,8,["max","min","model-value"])])]),r.createVNode(xi,{"day-cell-class":B,days:r.unref(Si)(p.value),"on-day-click":C=>x(C.date),onCellMouseOver:L},null,8,["days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",iE,[r.createElementVNode("div",aE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":m.value,picker:"month","onUpdate:modelValue":E[3]||(E[3]=C=>V("right",C))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":m.value,picker:"year","onUpdate:modelValue":E[4]||(E[4]=C=>V("right",C))},null,8,["max","min","model-value"])]),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:E[5]||(E[5]=()=>V("left",p.value.add(1,"month")))})]),r.createVNode(xi,{"day-cell-class":C=>B(C),days:r.unref(Si)(m.value),"on-day-click":C=>x(C.date),onCellMouseOver:L},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",sE,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:R},null,8,["label"]),r.createVNode(me,{disabled:U.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:I},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[F.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),dE={key:0},cE={class:"flex gap-4 items-center relative w-full"},uE={class:"flex flex-col gap-4 w-full"},fE=r.createElementVNode("div",{class:"fm-typo-en-body-lg-400 h-6 mt-7 shrink-0 text-center text-fm-color-typo-primary w-6"}," to ",-1),pE={class:"flex flex-col gap-4 w-full"},hE={key:1,class:"flex flex-col gap-4 w-full"},mE=r.defineComponent({__name:"FmSimpleDateRangePickerField",props:{modelValue:{},analytic:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},isComparing:{type:Boolean,default:!1},startLabel:{},endLabel:{},compareLabel:{},locale:{}},setup(t){const e=t,n=r.computed(()=>{if(!e.modelValue)return{startDate:H("date.placeholder"),endDate:H("date.placeholder")};const o=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,i=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o?W(o).format(H("date.format")):H("date.placeholder"),endDate:i?W(i).format(H("date.format")):H("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",dE,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",cE,[r.createElementVNode("label",uE,[r.createVNode(hn,{disabled:o.disabled,label:e.startLabel??r.unref(H)("date.startDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.startDate?r.unref(W)(o.modelValue.startDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),fE,r.createElementVNode("label",pE,[r.createVNode(hn,{disabled:o.disabled,label:e.endLabel??r.unref(H)("date.endDate")},null,8,["disabled","label"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:o.disabled,focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>{var a,s;return[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":(a=o.modelValue)!=null&&a.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((s=o.modelValue)!=null&&s.endDate?r.unref(W)(o.modelValue.endDate).format(r.unref(H)("date.format")):r.unref(H)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",hE,[r.createVNode(hn,{label:o.compareLabel??r.unref(H)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(at,{class:r.normalizeClass(o.disabled?"cursor-not-allowed":"cursor-pointer"),focused:o.focused,invalid:o.invalid,"show-valid-border":o.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(o.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[o.disabled?"text-fm-color-typo-disabled":n.value.startDate!==r.unref(H)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(n.value.startDate)+" - "+r.toDisplayString(n.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),gE={class:"p-12 space-y-4"},bE={class:"w-max"},yE={class:"flex space-x-24"},vE={class:"flex items-center justify-between py-8"},kE={class:"flex space-x-4"},wE={class:"flex space-x-4"},SE={class:"flex gap-8 items-center justify-end w-full"},x1=r.defineComponent({__name:"FmSimpleDateRangePickerMobile",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{default:He.PRECEDING_PERIOD},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{default:void 0},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){var G,Q;const n=F=>()=>{var C,T;const{startAt:E,endAt:S}=w1((C=a.compareTarget)==null?void 0:C.startDate,(T=a.compareTarget)==null?void 0:T.endDate);if(!E||!S)return;const D=F({startAt:E,endAt:S});return R(D.endDate.startOf("month")),D},o=r.computed(()=>[{id:He.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},b.value=He.NO_COMPARISON}},{id:He.PRECEDING_WEEK,label:"Preceding period",sublabel:"Match day of week",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"week")+1;return c.value={startDate:F.subtract(S,"week"),endDate:E.subtract(S,"week")},b.value=He.PRECEDING_WEEK,c.value})},{id:He.PRECEDING_MONTH,label:"Same period last week",sublabel:"Match day of month",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"month")+1;return c.value={startDate:F.subtract(S,"month"),endDate:E.subtract(S,"month")},b.value=He.PRECEDING_MONTH,c.value})},{id:He.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"day")+1;return c.value={startDate:F.subtract(S,"day"),endDate:E.subtract(S,"day")},b.value=He.PRECEDING_PERIOD,c.value})},{id:He.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:F,endAt:E})=>{const S=E.diff(F,"year")+1;return c.value={startDate:F.subtract(S,"year"),endDate:E.subtract(S,"year")},b.value=He.PRECEDING_YEAR,c.value})},{id:He.CUSTOM,label:"Custom",sublabel:"",action:()=>{b.value=He.CUSTOM}}]),i=e,a=t,s=r.inject(Ke,null),l=Pe(a,"modelValue"),c=r.ref({startDate:(G=l.value)!=null&&G.startDate?W(l.value.startDate,re):null,endDate:(Q=l.value)!=null&&Q.endDate?W(l.value.endDate,re):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(W().startOf("month")),m=r.ref(null),b=r.ref(a.defaultCompareType),y=r.ref(null),v=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:F,endDate:E},label:S})=>{var D,C;((D=c.value.startDate)==null?void 0:D.format(re))===F&&((C=c.value.endDate)==null?void 0:C.format(re))===E&&(m.value={startDate:F,endDate:E})})},w=F=>{if(m.value=null,b.value=He.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:F,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=F;else{if(F.isBefore(c.value.startDate)){const E=c.value.startDate;c.value={startDate:F,endDate:E}}else c.value.endDate=F;v()}},x=()=>{var F,E;l.value={startDate:(F=c.value.startDate)==null?void 0:F.format(re),endDate:(E=c.value.endDate)==null?void 0:E.format(re)},i("select-comparison",b.value),setTimeout(()=>{u.value=!1})},I=()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null},u.value=!1},R=F=>{p.value=F},V=F=>{var ie,fe;const E=(ie=c.value.startDate)==null?void 0:ie.startOf("day"),S=(fe=c.value.endDate)==null?void 0:fe.startOf("day"),D=y.value,C=E==null?void 0:E.isSame(F),T=S==null?void 0:S.isSame(F),M=D==null?void 0:D.isSame(F),K=C&&S&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isAfter(E))||E&&!S&&M&&(D==null?void 0:D.isBefore(E)),oe=T&&E&&!(C&&T)||E&&!S&&C&&(D==null?void 0:D.isBefore(E))||E&&!S&&M&&(D==null?void 0:D.isAfter(E)),le=C&&T||C&&!S,Z=E&&(S||D)&&S?F.isAfter(E)&&F.isBefore(S):F.isAfter(D)&&F.isBefore(E)||F.isBefore(D)&&F.isAfter(E);return{status:{isStart:K??!1,isEnd:oe??!1,isBetween:Z??!1,isSelected:le??!1}}},B=F=>{const E=c.value;if(E.startDate&&!E.endDate){y.value=F;return}y.value=null},L=F=>{const E=W(F.startDate,re),S=W(F.endDate,re);m.value=F,c.value={startDate:E,endDate:S},R(S.startOf("month"))},P=F=>{const E=o.value.find(S=>S.id===F);E==null||E.action()},_=F=>{u.value=F,F||I()},U=r.computed(()=>!b.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var F,E;c.value={startDate:(F=l.value)!=null&&F.startDate?W(l.value.startDate,re):null,endDate:(E=l.value)!=null&&E.endDate?W(l.value.endDate,re):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||b.value===He.CUSTOM)return;const F=o.value.find(S=>S.id===b.value),E=F==null?void 0:F.action();E&&(l.value=E)}),r.onMounted(()=>{v()}),(F,E)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(l),"onUpdate:modelValue":E[6]||(E[6]=S=>r.isRef(l)?l.value=S:null),disabled:h.value,focused:u.value,"helper-state":F.helperState,"helper-text":F.helperText,rules:F.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:S})=>[r.createVNode(Bo,{disabled:h.value,"exclude-el-from-click-outside":["exclude-from-click-outside","in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:_},{"popover-button":r.withCtx(()=>[F.$slots["trigger-button"]?r.renderSlot(F.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:S,showValidBorder:F.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createBlock(mE,{key:1,disabled:h.value,focused:u.value,invalid:S,"model-value":r.unref(l),"show-valid-border":F.showValidBorder,"start-label":F.startLabel??r.unref(H)("date.startDate"),"end-label":F.endLabel??r.unref(H)("date.endDate")},r.createSlots({_:2},[F.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"popover-button",{focused:u.value})]),key:"0"}:void 0]),1032,["disabled","focused","invalid","model-value","show-valid-border","start-label","end-label"]))]),default:r.withCtx(()=>[r.createElementVNode("div",gE,[F.showPredefinedRange&&!F.compareTarget?(r.openBlock(),r.createBlock(yo,{key:0,items:F.predefinedRange,"model-value":m.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":E[0]||(E[0]=D=>L(D))},null,8,["items","model-value"])):r.createCommentVNode("",!0),F.compareTarget?(r.openBlock(),r.createBlock(yo,{key:1,items:o.value.map(D=>({label:D.label,sublabel:D.sublabel,value:D.id})),"model-value":b.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":E[1]||(E[1]=D=>P(D))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createElementVNode("div",bE,[r.createElementVNode("div",yE,[r.createElementVNode("div",null,[r.createElementVNode("div",vE,[r.createElementVNode("div",kE,[r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"month","onUpdate:modelValue":E[2]||(E[2]=D=>R(D))},null,8,["max","min","model-value"]),r.createVNode(Pn,{max:F.max,min:F.min,"model-value":p.value,picker:"year","onUpdate:modelValue":E[3]||(E[3]=D=>R(D))},null,8,["max","min","model-value"])]),r.createElementVNode("div",wE,[r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:E[4]||(E[4]=()=>R(p.value.subtract(1,"month")))}),r.createVNode(ce,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:E[5]||(E[5]=()=>R(p.value.add(1,"month")))})])]),r.createVNode(xi,{"day-cell-class":V,days:r.unref(Si)(p.value),"on-day-click":D=>w(D.date),"cell-size":"lg",onCellMouseOver:B},null,8,["days","on-day-click"])])])]),r.createElementVNode("div",SE,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:I},null,8,["label"]),r.createVNode(me,{disabled:U.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[F.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(F.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),xE=r.defineComponent({__name:"FmSimpleDateRangePicker",props:{modelValue:{},compareTarget:{},startLabel:{},endLabel:{},disabled:{type:Boolean,default:void 0},showValidBorder:{type:Boolean,default:!1},showPredefinedRange:{type:Boolean,default:!1},predefinedRange:{default:()=>[{label:"Today",value:{startDate:W().format(re),endDate:W().format(re)}},{label:"Yesterday",value:{startDate:W().subtract(1,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This week",value:{startDate:W().startOf("week").format(re),endDate:W().endOf("week").format(re)}},{label:"Last week",value:{startDate:W().subtract(1,"week").startOf("week").format(re),endDate:W().subtract(1,"week").endOf("week").format(re)}},{label:"Last 7 days",value:{startDate:W().subtract(7,"day").format(re),endDate:W().subtract(1,"day").format(re)}},{label:"This month",value:{startDate:W().startOf("month").format(re),endDate:W().endOf("month").format(re)}},{label:"Last month",value:{startDate:W().subtract(1,"month").startOf("month").format(re),endDate:W().subtract(1,"month").endOf("month").format(re)}},{label:"This year",value:{startDate:W().startOf("year").format(re),endDate:W().endOf("year").format(re)}}]},defaultCompareType:{},min:{default:()=>W().subtract(50,"year").format(re)},max:{default:()=>W().add(25,"year").format(re)},zIndex:{},labelMark:{default:"none"},labelInfo:{default:""},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue","select-comparison"],setup(t,{emit:e}){const n=t,{breakpoints:o}=Jo(),i=Pe(n,"modelValue"),a=e,s=El(n);return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(o).md||r.unref(o).lg?(r.openBlock(),r.createBlock(lE,r.mergeProps({key:0},r.unref(s),{modelValue:r.unref(i),"onUpdate:modelValue":c[0]||(c[0]=u=>r.isRef(i)?i.value=u:null),onSelectComparison:c[1]||(c[1]=u=>a("select-comparison",u))}),r.createSlots({_:2},[l.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(u=>[r.renderSlot(l.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(u)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0),r.unref(o).xs||r.unref(o).sm?(r.openBlock(),r.createBlock(x1,r.mergeProps({key:1},r.unref(s),{modelValue:r.unref(i),"onUpdate:modelValue":c[2]||(c[2]=u=>r.isRef(i)?i.value=u:null),onSelectComparison:c[3]||(c[3]=u=>a("select-comparison",u))}),r.createSlots({_:2},[l.$slots["trigger-button"]?{name:"trigger-button",fn:r.withCtx(u=>[r.renderSlot(l.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps(u)))]),key:"0"}:void 0]),1040,["modelValue"])):r.createCommentVNode("",!0)],64))}}),CE={class:"flex items-center gap-8"},AE={class:"fm-typo-en-body-md-400 text-fm-color-system-error-300"},EE={class:"flex items-center gap-4"},DE=De(r.defineComponent({__name:"FmErrorSummary",props:{position:{default:"sticky-bottom"},labelFormat:{default:void 0},zIndex:{default:50}},setup(t,{expose:e}){const n=t,o=r.inject(Kh,null),i=r.ref(0),a=r.computed(()=>(o==null?void 0:o.getErrorCount())??0),s=r.computed(()=>a.value>0),l=r.computed(()=>{const p=n.labelFormat??H("errorSummary.label",{current:i.value+1,total:a.value});return n.labelFormat?p.replace("{current}",String(i.value+1)).replace("{total}",String(a.value)):p}),c=r.computed(()=>{switch(n.position){case"sticky-bottom":return"sticky bottom-0 left-0 right-0";case"sticky-top":return"sticky top-0 left-0 right-0";case"static":default:return""}}),u=()=>{!o||a.value===0||(i.value=(i.value-1+a.value)%a.value,o.goToError(i.value))},h=()=>{!o||a.value===0||(i.value=(i.value+1)%a.value,o.goToError(i.value))};return r.watch(a,(p,m)=>{if((m===0||m===void 0)&&p>0){i.value=0;return}i.value>=p&&(i.value=Math.max(0,p-1))},{immediate:!0}),e({goToPrevError:u,goToNextError:h,currentIndex:i,errorCount:a}),(p,m)=>(r.openBlock(),r.createBlock(r.Transition,{name:`fm-error-summary-slide-${p.position}`},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([c.value,"flex items-center justify-between gap-16 rounded-md bg-fm-color-system-error-100 px-16 py-12"]),style:r.normalizeStyle({zIndex:p.zIndex}),role:"alert","aria-live":"polite"},[r.createElementVNode("div",CE,[r.createVNode(ce,{name:"error",size:"sm",color:"system-error-300"}),r.createElementVNode("span",AE,r.toDisplayString(l.value),1)]),r.createElementVNode("div",EE,[a.value>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(me,{variant:"plain","prepend-icon":"keyboard_arrow_up","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.previousError"),onClick:u},null,8,["aria-label"]),r.createVNode(me,{variant:"plain","prepend-icon":"keyboard_arrow_down","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.nextError"),onClick:h},null,8,["aria-label"])],64)):(r.openBlock(),r.createBlock(me,{key:1,variant:"plain","prepend-icon":"arrow_forward","icon-color":"system-error-300",size:"md","aria-label":r.unref(H)("errorSummary.goToError"),onClick:h},null,8,["aria-label"]))])],6)):r.createCommentVNode("",!0)]),_:1},8,["name"]))}}),[["__scopeId","data-v-06b36cc1"]]),BE={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function C1(t,e){var n=Array.prototype.slice.call(e);return n.push(BE),t.apply(this,n)}function Hu(t){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(t)}function PE(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function IE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&La(t,e)}function NE(t){var e=E1();return function(){var o=za(t),i;if(e){var a=za(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return RE(this,i)}}function RE(t,e){if(e&&(Hu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A1(t)}function A1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uu(t){var e=typeof Map=="function"?new Map:void 0;return Uu=function(o){if(o===null||!VE(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(o))return e.get(o);e.set(o,i)}function i(){return Bl(o,arguments,za(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),La(i,o)},Uu(t)}function Bl(t,e,n){return E1()?Bl=Reflect.construct:Bl=function(i,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(i,l),u=new c;return s&&La(u,s.prototype),u},Bl.apply(null,arguments)}function E1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VE(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function La(t,e){return La=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},La(t,e)}function za(t){return za=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},za(t)}var Po=function(t){OE(n,t);var e=NE(n);function n(o){var i;return IE(this,n),i=e.call(this,o),Object.setPrototypeOf(A1(i),n.prototype),i.name=i.constructor.name,i}return PE(n)}(Uu(Error)),Wu=2,FE=17,TE=3,Gn="0-90-9٠-٩۰-۹",ME="-‐-―−ー-",LE="//",zE="..",_E="  ­​⁠ ",HE="()()[]\\[\\]",UE="~⁓∼~",Pl="".concat(ME).concat(LE).concat(zE).concat(_E).concat(HE).concat(UE),ju="++";function D1(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),o=e[0].split("."),i=0;i<3;i++){var a=Number(n[i]),s=Number(o[i]);if(a>s)return 1;if(s>a)return-1;if(!isNaN(a)&&isNaN(s))return 1;if(isNaN(a)&&!isNaN(s))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var WE={}.constructor;function Il(t){return t!=null&&t.constructor===WE}function Gu(t){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gu(t)}function Ol(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jE(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Nl(t,e,n){return e&&jE(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var GE="1.2.0",QE="1.7.35",B1=" ext. ",XE=/^\d+$/,Qt=function(){function t(e){Ol(this,t),YE(e),this.metadata=e,O1.call(this,e)}return Nl(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var o=this.countryCallingCodes()[n];if(o&&o.length===1&&o[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,o){if(n&&XE.test(n)&&(o=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new P1(this.getCountryMetadata(n),this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new P1(this.getNumberingPlanMetadata(o),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var o=this.countryCallingCodes()[n];if(o)return o.length===1&&o[0].length===3?void 0:o}},{key:"getCountryCodeForCallingCode",value:function(n){var o=this.getCountryCodesForCallingCode(n);if(o)return o[0]}},{key:"getNumberingPlanMetadata",value:function(n){var o=this.getCountryCodeForCallingCode(n);if(o)return this.getCountryMetadata(o);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),t}(),P1=function(){function t(e,n){Ol(this,t),this.globalMetadataObject=n,this.metadata=e,O1.call(this,n.metadata)}return Nl(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,o=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return o.map(function(i){return new qE(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&I1(this.types(),n))return new JE(I1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?B1:this.metadata[13]||B1}}]),t}(),qE=function(){function t(e,n){Ol(this,t),this._format=e,this.metadata=n}return Nl(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!KE.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),KE=/^\(?\$1\)?$/,JE=function(){function t(e,n){Ol(this,t),this.type=e,this.metadata=n}return Nl(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function I1(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function YE(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Il(t)||!Il(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Il(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+ZE(t)+": "+t,"."))}var ZE=function(e){return Gu(e)};function Rl(t,e){if(e=new Qt(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function $E(t,e){return e.countries.hasOwnProperty(t)}function O1(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?D1(e,GE)===-1?this.v2=!0:D1(e,QE)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var eD=";ext=",Ci=function(e){return"([".concat(Gn,"]{1,").concat(e,"})")};function N1(t){var e="20",n="15",o="9",i="6",a="[  \\t,]*",s="[:\\..]?[  \\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",h="[- ]+",p="[  \\t]*",m="(?:,{2}|;)",b=eD+Ci(e),y=a+c+s+Ci(e)+l,v=a+u+s+Ci(o)+l,w=h+Ci(i)+"#",x=p+m+s+Ci(n)+l,I=p+"(?:,)+"+s+Ci(o)+l;return b+"|"+y+"|"+v+"|"+w+"|"+x+"|"+I}var tD="["+Gn+"]{"+Wu+"}",nD="["+ju+"]{0,1}(?:["+Pl+"]*["+Gn+"]){3,}["+Pl+Gn+"]*",oD=new RegExp("^["+ju+"]{0,1}(?:["+Pl+"]*["+Gn+"]){1,2}$","i"),rD=nD+"(?:"+N1()+")?",iD=new RegExp("^"+tD+"$|^"+rD+"$","i");function aD(t){return t.length>=Wu&&iD.test(t)}function sD(t){return oD.test(t)}var R1=new RegExp("(?:"+N1()+")$","i");function lD(t){var e=t.search(R1);if(e<0)return{};for(var n=t.slice(0,e),o=t.match(R1),i=1;i<o.length;){if(o[i])return{number:n,ext:o[i]};i++}}var dD={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function cD(t){return dD[t]}function uD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=fD(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
39
39
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fD(t,e){if(t){if(typeof t=="string")return V1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V1(t,e)}}function V1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function F1(t){for(var e="",n=uD(t.split("")),o;!(o=n()).done;){var i=o.value;e+=pD(i,e)||""}return e}function pD(t,e,n){return t==="+"?e?void 0:"+":cD(t)}function Qu(t,e){return hD(t,void 0,e)}function hD(t,e,n){var o=n.type(e),i=o&&o.possibleLengths()||n.possibleLengths();if(!i)return"IS_POSSIBLE";var a=t.length,s=i[0];return s===a?"IS_POSSIBLE":s>a?"TOO_SHORT":i[i.length-1]<a?"TOO_LONG":i.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function mD(t,e,n){if(e===void 0&&(e={}),n=new Qt(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return T1(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function T1(t,e){switch(Qu(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Io(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function gD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=bD(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
40
40
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bD(t,e){if(t){if(typeof t=="string")return M1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M1(t,e)}}function M1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var yD=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Xu(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new Qt(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var o=e.v2?t.nationalNumber:t.phone;if(Io(o,n.nationalNumberPattern())){if(qu(o,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||qu(o,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=gD(yD),a;!(a=i()).done;){var s=a.value;if(qu(o,s,n))return s}}}}function qu(t,e,n){return e=n.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:Io(t,e.pattern())}function vD(t,e,n){if(e=e||{},n=new Qt(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return Xu(t,e,n.metadata)!==void 0;var o=e.v2?t.nationalNumber:t.phone;return Io(o,n.nationalNumberPattern())}function kD(t,e,n){var o=new Qt(n),i=o.getCountryCodesForCallingCode(t);return i?i.filter(function(a){return wD(e,a,n)}):[]}function wD(t,e,n){var o=new Qt(n);return o.selectNumberingPlan(e),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function SD(t){return t.replace(new RegExp("[".concat(Pl,"]+"),"g")," ").trim()}var xD=/(\$\d)/;function CD(t,e,n){var o=n.useInternationalFormat,i=n.withNationalPrefix,a=t.replace(new RegExp(e.pattern()),o?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(xD,e.nationalPrefixFormattingRule()):e.format());return o?SD(a):a}var AD=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ED(t,e,n){var o=new Qt(n);if(o.selectNumberingPlan(t,e),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(AD.test(o.IDDPrefix()))return o.IDDPrefix()}function DD(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function BD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=PD(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
41
41
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PD(t,e){if(t){if(typeof t=="string")return L1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(t,e)}}function L1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function z1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function _1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?z1(Object(n),!0).forEach(function(o){ID(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ID(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var H1={formatExtension:function(e,n,o){return"".concat(e).concat(o.ext()).concat(n)}};function OD(t,e,n,o){if(n?n=_1(_1({},H1),n):n=H1,o=new Qt(o),t.country&&t.country!=="001"){if(!o.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));o.country(t.country)}else if(t.countryCallingCode)o.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var i=o.countryCallingCode(),a=n.v2?t.nationalNumber:t.phone,s;switch(e){case"NATIONAL":return a?(s=Vl(a,t.carrierCode,"NATIONAL",o,n),Ku(s,t.ext,o,n.formatExtension)):"";case"INTERNATIONAL":return a?(s=Vl(a,null,"INTERNATIONAL",o,n),s="+".concat(i," ").concat(s),Ku(s,t.ext,o,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return DD({number:"+".concat(i).concat(a),ext:t.ext});case"IDD":if(!n.fromCountry)return;var l=RD(a,t.carrierCode,i,n.fromCountry,o);return Ku(l,t.ext,o,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function Vl(t,e,n,o,i){var a=ND(o.formats(),t);return a?CD(t,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:o}):t}function ND(t,e){for(var n=BD(t),o;!(o=n()).done;){var i=o.value;if(i.leadingDigitsPatterns().length>0){var a=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(a)!==0)continue}if(Io(e,i.pattern()))return i}}function Ku(t,e,n,o){return e?o(t,e,n):t}function RD(t,e,n,o,i){var a=Rl(o,i.metadata);if(a===n){var s=Vl(t,e,"NATIONAL",i);return n==="1"?n+" "+s:s}var l=ED(o,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Vl(t,null,"INTERNATIONAL",i))}function U1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function W1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U1(Object(n),!0).forEach(function(o){VD(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function VD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FD(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TD(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function MD(t,e,n){return e&&TD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var LD=function(){function t(e,n,o){if(FD(this,t),!e)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!o)throw new TypeError("`metadata` not passed");var i=_D(e,o),a=i.country,s=i.countryCallingCode;this.country=a,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return o}}return MD(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:kD(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return mD(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return vD(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Qt(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Xu(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,o){return OD(this,n,o?W1(W1({},o),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),t}(),zD=function(e){return/^[A-Z]{2}$/.test(e)};function _D(t,e){var n,o,i=new Qt(e);return zD(t)?(n=t,i.selectNumberingPlan(n),o=i.countryCallingCode()):o=t,{country:n,countryCallingCode:o}}var HD=new RegExp("(["+Gn+"])");function UD(t,e,n,o){if(e){var i=new Qt(o);i.selectNumberingPlan(e,n);var a=new RegExp(i.IDDPrefix());if(t.search(a)===0){t=t.slice(t.match(a)[0].length);var s=t.match(HD);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function WD(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),o=n.exec(t);if(o){var i,a,s=o.length-1,l=s>0&&o[s];if(e.nationalPrefixTransformRule()&&l)i=t.replace(n,e.nationalPrefixTransformRule()),s>1&&(a=o[1]);else{var c=o[0];i=t.slice(c.length),l&&(a=o[1])}var u;if(l){var h=t.indexOf(o[1]),p=t.slice(0,h);p===e.numberingPlan.nationalPrefix()&&(u=e.numberingPlan.nationalPrefix())}else u=o[0];return{nationalNumber:i,nationalPrefix:u,carrierCode:a}}}return{nationalNumber:t}}function Ju(t,e){var n=WD(t,e),o=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!jD(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!GD(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:o}}function jD(t,e,n){return!(Io(t,n.nationalNumberPattern())&&!Io(e,n.nationalNumberPattern()))}function GD(t,e){switch(Qu(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function QD(t,e,n,o){var i=e?Rl(e,o):n;if(t.indexOf(i)===0){o=new Qt(o),o.selectNumberingPlan(e,n);var a=t.slice(i.length),s=Ju(a,o),l=s.nationalNumber,c=Ju(t,o),u=c.nationalNumber;if(!Io(u,o.nationalNumberPattern())&&Io(l,o.nationalNumberPattern())||Qu(u,o)==="TOO_LONG")return{countryCallingCode:i,number:a}}return{number:t}}function XD(t,e,n,o){if(!t)return{};var i;if(t[0]!=="+"){var a=UD(t,e,n,o);if(a&&a!==t)i=!0,t="+"+a;else{if(e||n){var s=QD(t,e,n,o),l=s.countryCallingCode,c=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:c}}return{number:t}}}if(t[1]==="0")return{};o=new Qt(o);for(var u=2;u-1<=TE&&u<=t.length;){var h=t.slice(1,u);if(o.hasCallingCode(h))return o.selectNumberingPlan(h),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:t.slice(u)};u++}return{}}function qD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=KD(t))||e){n&&(t=n);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -111,7 +111,7 @@ __p += '`),Me&&(te+=`' +
111
111
  function print() { __p += __j.call(arguments, '') }
112
112
  `:`;
113
113
  `)+te+`return __p
114
- }`;var Ie=$v(function(){return Ue(N,pe+"return "+te).apply(n,z)});if(Ie.source=te,eh(Ie))throw Ie;return Ie}function NG(d){return je(d).toLowerCase()}function RG(d){return je(d).toUpperCase()}function VG(d,f,g){if(d=je(d),d&&(g||f===n))return l2(d);if(!d||!(f=xn(f)))return d;var k=Jn(d),A=Jn(f),N=d2(k,A),z=c2(k,A)+1;return br(k,N,z).join("")}function FG(d,f,g){if(d=je(d),d&&(g||f===n))return d.slice(0,f2(d)+1);if(!d||!(f=xn(f)))return d;var k=Jn(d),A=c2(k,Jn(f))+1;return br(k,0,A).join("")}function TG(d,f,g){if(d=je(d),d&&(g||f===n))return d.replace(ep,"");if(!d||!(f=xn(f)))return d;var k=Jn(d),A=d2(k,Jn(f));return br(k,A).join("")}function MG(d,f){var g=G,k=Q;if(ct(f)){var A="separator"in f?f.separator:A;g="length"in f?Be(f.length):g,k="omission"in f?xn(f.omission):k}d=je(d);var N=d.length;if(Ti(d)){var z=Jn(d);N=z.length}if(g>=N)return d;var j=g-Mi(k);if(j<1)return k;var q=z?br(z,0,j).join(""):d.slice(0,j);if(A===n)return q+k;if(z&&(j+=q.length-j),th(A)){if(d.slice(j).search(A)){var $,ee=q;for(A.global||(A=bp(A.source,je(Iy.exec(A))+"g")),A.lastIndex=0;$=A.exec(ee);)var te=$.index;q=q.slice(0,te===n?j:te)}}else if(d.indexOf(xn(A),j)!=j){var de=q.lastIndexOf(A);de>-1&&(q=q.slice(0,de))}return q+k}function LG(d){return d=je(d),d&&KL.test(d)?d.replace(Dy,p_):d}var zG=ji(function(d,f,g){return d+(g?" ":"")+f.toUpperCase()}),rh=ev("toUpperCase");function Zv(d,f,g){return d=je(d),f=g?n:f,f===n?l_(d)?g_(d):$z(d):d.match(f)||[]}var $v=Ne(function(d,f){try{return wn(d,n,f)}catch(g){return eh(g)?g:new xe(g)}}),_G=Mo(function(d,f){return Nn(f,function(g){g=po(g),Fo(d,g,Zp(d[g],d))}),d});function HG(d){var f=d==null?0:d.length,g=ye();return d=f?lt(d,function(k){if(typeof k[1]!="function")throw new Rn(s);return[g(k[0]),k[1]]}):[],Ne(function(k){for(var A=-1;++A<f;){var N=d[A];if(wn(N[0],this,k))return wn(N[1],this,k)}})}function UG(d){return pH(Fn(d,p))}function ih(d){return function(){return d}}function WG(d,f){return d==null||d!==d?f:d}var jG=nv(),GG=nv(!0);function ln(d){return d}function ah(d){return N2(typeof d=="function"?d:Fn(d,p))}function QG(d){return V2(Fn(d,p))}function XG(d,f){return F2(d,Fn(f,p))}var qG=Ne(function(d,f){return function(g){return ss(g,d,f)}}),KG=Ne(function(d,f){return function(g){return ss(d,g,f)}});function sh(d,f,g){var k=It(f),A=Od(f,k);g==null&&!(ct(f)&&(A.length||!k.length))&&(g=f,f=d,d=this,A=Od(f,It(f)));var N=!(ct(g)&&"chain"in g)||!!g.chain,z=zo(d);return Nn(A,function(j){var q=f[j];d[j]=q,z&&(d.prototype[j]=function(){var $=this.__chain__;if(N||$){var ee=d(this.__wrapped__),te=ee.__actions__=rn(this.__actions__);return te.push({func:q,args:arguments,thisArg:d}),ee.__chain__=$,ee}return q.apply(d,ur([this.value()],arguments))})}),d}function JG(){return Tt._===this&&(Tt._=S_),this}function lh(){}function YG(d){return d=Be(d),Ne(function(f){return T2(f,d)})}var ZG=zp(lt),$G=zp(o2),eQ=zp(cp);function ek(d){return Qp(d)?up(po(d)):IH(d)}function tQ(d){return function(f){return d==null?n:Qr(d,f)}}var nQ=rv(),oQ=rv(!0);function dh(){return[]}function ch(){return!1}function rQ(){return{}}function iQ(){return""}function aQ(){return!0}function sQ(d,f){if(d=Be(d),d<1||d>M)return[];var g=le,k=Ut(d,le);f=ye(f),d-=le;for(var A=hp(k,f);++g<d;)f(g);return A}function lQ(d){return Ae(d)?lt(d,po):Cn(d)?[d]:rn(kv(je(d)))}function dQ(d){var f=++k_;return je(d)+f}var cQ=Md(function(d,f){return d+f},0),uQ=_p("ceil"),fQ=Md(function(d,f){return d/f},1),pQ=_p("floor");function hQ(d){return d&&d.length?Id(d,ln,Ap):n}function mQ(d,f){return d&&d.length?Id(d,ye(f,2),Ap):n}function gQ(d){return a2(d,ln)}function bQ(d,f){return a2(d,ye(f,2))}function yQ(d){return d&&d.length?Id(d,ln,Pp):n}function vQ(d,f){return d&&d.length?Id(d,ye(f,2),Pp):n}var kQ=Md(function(d,f){return d*f},1),wQ=_p("round"),SQ=Md(function(d,f){return d-f},0);function xQ(d){return d&&d.length?pp(d,ln):0}function CQ(d,f){return d&&d.length?pp(d,ye(f,2)):0}return O.after=QW,O.ary=Ov,O.assign=Rj,O.assignIn=Gv,O.assignInWith=Jd,O.assignWith=Vj,O.at=Fj,O.before=Nv,O.bind=Zp,O.bindAll=_G,O.bindKey=Rv,O.castArray=rj,O.chain=Bv,O.chunk=pU,O.compact=hU,O.concat=mU,O.cond=HG,O.conforms=UG,O.constant=ih,O.countBy=xW,O.create=Tj,O.curry=Vv,O.curryRight=Fv,O.debounce=Tv,O.defaults=Mj,O.defaultsDeep=Lj,O.defer=XW,O.delay=qW,O.difference=gU,O.differenceBy=bU,O.differenceWith=yU,O.drop=vU,O.dropRight=kU,O.dropRightWhile=wU,O.dropWhile=SU,O.fill=xU,O.filter=AW,O.flatMap=BW,O.flatMapDeep=PW,O.flatMapDepth=IW,O.flatten=Cv,O.flattenDeep=CU,O.flattenDepth=AU,O.flip=KW,O.flow=jG,O.flowRight=GG,O.fromPairs=EU,O.functions=Gj,O.functionsIn=Qj,O.groupBy=OW,O.initial=BU,O.intersection=PU,O.intersectionBy=IU,O.intersectionWith=OU,O.invert=qj,O.invertBy=Kj,O.invokeMap=RW,O.iteratee=ah,O.keyBy=VW,O.keys=It,O.keysIn=sn,O.map=jd,O.mapKeys=Yj,O.mapValues=Zj,O.matches=QG,O.matchesProperty=XG,O.memoize=Qd,O.merge=$j,O.mergeWith=Qv,O.method=qG,O.methodOf=KG,O.mixin=sh,O.negate=Xd,O.nthArg=YG,O.omit=eG,O.omitBy=tG,O.once=JW,O.orderBy=FW,O.over=ZG,O.overArgs=YW,O.overEvery=$G,O.overSome=eQ,O.partial=$p,O.partialRight=Mv,O.partition=TW,O.pick=nG,O.pickBy=Xv,O.property=ek,O.propertyOf=tQ,O.pull=FU,O.pullAll=Ev,O.pullAllBy=TU,O.pullAllWith=MU,O.pullAt=LU,O.range=nQ,O.rangeRight=oQ,O.rearg=ZW,O.reject=zW,O.remove=zU,O.rest=$W,O.reverse=Jp,O.sampleSize=HW,O.set=rG,O.setWith=iG,O.shuffle=UW,O.slice=_U,O.sortBy=GW,O.sortedUniq=XU,O.sortedUniqBy=qU,O.split=BG,O.spread=ej,O.tail=KU,O.take=JU,O.takeRight=YU,O.takeRightWhile=ZU,O.takeWhile=$U,O.tap=hW,O.throttle=tj,O.thru=Wd,O.toArray=Uv,O.toPairs=qv,O.toPairsIn=Kv,O.toPath=lQ,O.toPlainObject=jv,O.transform=aG,O.unary=nj,O.union=eW,O.unionBy=tW,O.unionWith=nW,O.uniq=oW,O.uniqBy=rW,O.uniqWith=iW,O.unset=sG,O.unzip=Yp,O.unzipWith=Dv,O.update=lG,O.updateWith=dG,O.values=Xi,O.valuesIn=cG,O.without=aW,O.words=Zv,O.wrap=oj,O.xor=sW,O.xorBy=lW,O.xorWith=dW,O.zip=cW,O.zipObject=uW,O.zipObjectDeep=fW,O.zipWith=pW,O.entries=qv,O.entriesIn=Kv,O.extend=Gv,O.extendWith=Jd,sh(O,O),O.add=cQ,O.attempt=$v,O.camelCase=hG,O.capitalize=Jv,O.ceil=uQ,O.clamp=uG,O.clone=ij,O.cloneDeep=sj,O.cloneDeepWith=lj,O.cloneWith=aj,O.conformsTo=dj,O.deburr=Yv,O.defaultTo=WG,O.divide=fQ,O.endsWith=mG,O.eq=Zn,O.escape=gG,O.escapeRegExp=bG,O.every=CW,O.find=EW,O.findIndex=Sv,O.findKey=zj,O.findLast=DW,O.findLastIndex=xv,O.findLastKey=_j,O.floor=pQ,O.forEach=Pv,O.forEachRight=Iv,O.forIn=Hj,O.forInRight=Uj,O.forOwn=Wj,O.forOwnRight=jj,O.get=nh,O.gt=cj,O.gte=uj,O.has=Xj,O.hasIn=oh,O.head=Av,O.identity=ln,O.includes=NW,O.indexOf=DU,O.inRange=fG,O.invoke=Jj,O.isArguments=Kr,O.isArray=Ae,O.isArrayBuffer=fj,O.isArrayLike=an,O.isArrayLikeObject=yt,O.isBoolean=pj,O.isBuffer=yr,O.isDate=hj,O.isElement=mj,O.isEmpty=gj,O.isEqual=bj,O.isEqualWith=yj,O.isError=eh,O.isFinite=vj,O.isFunction=zo,O.isInteger=Lv,O.isLength=qd,O.isMap=zv,O.isMatch=kj,O.isMatchWith=wj,O.isNaN=Sj,O.isNative=xj,O.isNil=Aj,O.isNull=Cj,O.isNumber=_v,O.isObject=ct,O.isObjectLike=mt,O.isPlainObject=ps,O.isRegExp=th,O.isSafeInteger=Ej,O.isSet=Hv,O.isString=Kd,O.isSymbol=Cn,O.isTypedArray=Qi,O.isUndefined=Dj,O.isWeakMap=Bj,O.isWeakSet=Pj,O.join=NU,O.kebabCase=yG,O.last=Mn,O.lastIndexOf=RU,O.lowerCase=vG,O.lowerFirst=kG,O.lt=Ij,O.lte=Oj,O.max=hQ,O.maxBy=mQ,O.mean=gQ,O.meanBy=bQ,O.min=yQ,O.minBy=vQ,O.stubArray=dh,O.stubFalse=ch,O.stubObject=rQ,O.stubString=iQ,O.stubTrue=aQ,O.multiply=kQ,O.nth=VU,O.noConflict=JG,O.noop=lh,O.now=Gd,O.pad=wG,O.padEnd=SG,O.padStart=xG,O.parseInt=CG,O.random=pG,O.reduce=MW,O.reduceRight=LW,O.repeat=AG,O.replace=EG,O.result=oG,O.round=wQ,O.runInContext=X,O.sample=_W,O.size=WW,O.snakeCase=DG,O.some=jW,O.sortedIndex=HU,O.sortedIndexBy=UU,O.sortedIndexOf=WU,O.sortedLastIndex=jU,O.sortedLastIndexBy=GU,O.sortedLastIndexOf=QU,O.startCase=PG,O.startsWith=IG,O.subtract=SQ,O.sum=xQ,O.sumBy=CQ,O.template=OG,O.times=sQ,O.toFinite=_o,O.toInteger=Be,O.toLength=Wv,O.toLower=NG,O.toNumber=Ln,O.toSafeInteger=Nj,O.toString=je,O.toUpper=RG,O.trim=VG,O.trimEnd=FG,O.trimStart=TG,O.truncate=MG,O.unescape=LG,O.uniqueId=dQ,O.upperCase=zG,O.upperFirst=rh,O.each=Pv,O.eachRight=Iv,O.first=Av,sh(O,function(){var d={};return uo(O,function(f,g){Ge.call(O.prototype,g)||(d[g]=f)}),d}(),{chain:!1}),O.VERSION=o,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){O[d].placeholder=O}),Nn(["drop","take"],function(d,f){Te.prototype[d]=function(g){g=g===n?1:Dt(Be(g),0);var k=this.__filtered__&&!f?new Te(this):this.clone();return k.__filtered__?k.__takeCount__=Ut(g,k.__takeCount__):k.__views__.push({size:Ut(g,le),type:d+(k.__dir__<0?"Right":"")}),k},Te.prototype[d+"Right"]=function(g){return this.reverse()[d](g).reverse()}}),Nn(["filter","map","takeWhile"],function(d,f){var g=f+1,k=g==S||g==C;Te.prototype[d]=function(A){var N=this.clone();return N.__iteratees__.push({iteratee:ye(A,3),type:g}),N.__filtered__=N.__filtered__||k,N}}),Nn(["head","last"],function(d,f){var g="take"+(f?"Right":"");Te.prototype[d]=function(){return this[g](1).value()[0]}}),Nn(["initial","tail"],function(d,f){var g="drop"+(f?"":"Right");Te.prototype[d]=function(){return this.__filtered__?new Te(this):this[g](1)}}),Te.prototype.compact=function(){return this.filter(ln)},Te.prototype.find=function(d){return this.filter(d).head()},Te.prototype.findLast=function(d){return this.reverse().find(d)},Te.prototype.invokeMap=Ne(function(d,f){return typeof d=="function"?new Te(this):this.map(function(g){return ss(g,d,f)})}),Te.prototype.reject=function(d){return this.filter(Xd(ye(d)))},Te.prototype.slice=function(d,f){d=Be(d);var g=this;return g.__filtered__&&(d>0||f<0)?new Te(g):(d<0?g=g.takeRight(-d):d&&(g=g.drop(d)),f!==n&&(f=Be(f),g=f<0?g.dropRight(-f):g.take(f-d)),g)},Te.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Te.prototype.toArray=function(){return this.take(le)},uo(Te.prototype,function(d,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),k=/^(?:head|last)$/.test(f),A=O[k?"take"+(f=="last"?"Right":""):f],N=k||/^find/.test(f);A&&(O.prototype[f]=function(){var z=this.__wrapped__,j=k?[1]:arguments,q=z instanceof Te,$=j[0],ee=q||Ae(z),te=function(Fe){var Me=A.apply(O,ur([Fe],j));return k&&de?Me[0]:Me};ee&&g&&typeof $=="function"&&$.length!=1&&(q=ee=!1);var de=this.__chain__,pe=!!this.__actions__.length,ve=N&&!de,Ie=q&&!pe;if(!N&&ee){z=Ie?z:new Te(this);var ke=d.apply(z,j);return ke.__actions__.push({func:Wd,args:[te],thisArg:n}),new Vn(ke,de)}return ve&&Ie?d.apply(this,j):(ke=this.thru(te),ve?k?ke.value()[0]:ke.value():ke)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(d){var f=md[d],g=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",k=/^(?:pop|shift)$/.test(d);O.prototype[d]=function(){var A=arguments;if(k&&!this.__chain__){var N=this.value();return f.apply(Ae(N)?N:[],A)}return this[g](function(z){return f.apply(Ae(z)?z:[],A)})}}),uo(Te.prototype,function(d,f){var g=O[f];if(g){var k=g.name+"";Ge.call(Hi,k)||(Hi[k]=[]),Hi[k].push({name:f,func:g})}}),Hi[Td(n,x).name]=[{name:"wrapper",func:n}],Te.prototype.clone=L_,Te.prototype.reverse=z_,Te.prototype.value=__,O.prototype.at=mW,O.prototype.chain=gW,O.prototype.commit=bW,O.prototype.next=yW,O.prototype.plant=kW,O.prototype.reverse=wW,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=SW,O.prototype.first=O.prototype.head,es&&(O.prototype[es]=vW),O},Li=b_();Hr?((Hr.exports=Li)._=Li,ap._=Li):Tt._=Li}).call(mn)}(Fl,Fl.exports);var ef=Fl.exports;const U7={class:"flex gap-8 items-center"},W7=["type","onInput","onKeydown"],j7=De(r.defineComponent({__name:"FmPinField",props:{modelValue:{default:()=>[]},length:{default:6},type:{default:"number"},isError:{type:Boolean},masked:{type:Boolean,default:!1}},emits:["update:modelValue","complete","focus"],setup(t,{emit:e}){const n=e,o=t,i=Pe(o,"modelValue"),a=r.ref([]),s=(m,b)=>{const y=m.target;if(o.type==="number"&&!/^[0-9]$/g.test(y.value)){y.value="";return}y.value=y.value.slice(-1),u(y.value,b),a.value[b+1]?a.value[b+1].focus():a.value[b].blur()},l=(m,b)=>{m.preventDefault();const y=m.target;y.value="",u(null,b),a.value[b-1]?a.value[b-1].focus():a.value[b].focus()},c=(m,b)=>{m.preventDefault(),m.key==="ArrowLeft"&&(a.value[b-1]?a.value[b-1].focus():a.value[b].focus()),m.key==="ArrowRight"&&(a.value[b+1]?a.value[b+1].focus():a.value[b].focus())},u=(m,b)=>{i.value=i.value.toSpliced(b,1,m)},h=(m,b)=>{a.value[b]=m};r.onMounted(()=>{const m=Array.from(Array(o.length).fill(null));Array.isArray(i.value)&&i.value.forEach((b,y)=>{b!==null&&y<m.length&&(m[y]=b)}),i.value=m});const p=r.computed(()=>ef.isArray(i.value)?i.value.map(m=>m===null?" ":m).join(""):new Array(o.length).fill(" ").join(""));return r.watch([()=>{var m;return(m=a.value)==null?void 0:m.length},p],()=>{var m,b;((m=a.value)==null?void 0:m.length)>0&&((b=i.value)==null||b.forEach((y,v)=>{v<o.length&&(a.value[v].value=y??"")}))},{immediate:!0,flush:"post"}),r.watch(()=>i.value,()=>{i.value.every(m=>m!==null)&&n("complete",i.value.join(""))}),(m,b)=>(r.openBlock(),r.createElementBlock("div",U7,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.length,(y,v)=>(r.openBlock(),r.createElementBlock("input",{key:y,ref_for:!0,ref:w=>h(w,v),class:r.normalizeClass(["fm-pin-field",{[m.isError?"fm-pin-field--error":"fm-pin-field--populated"]:r.unref(i)[v]!==null}]),inputmode:"numeric",type:m.masked?"password":"text",onFocus:b[0]||(b[0]=w=>n("focus")),onInput:w=>s(w,v),onKeydown:[r.withKeys(w=>l(w,v),["backspace"]),r.withKeys(w=>c(w,v),["arrow-left","arrow-right"])]},null,42,W7))),128))]))}}),[["__scopeId","data-v-aec3f93d"]]),G7={class:"fm-radio-btn"},Q7={class:"relative flex items-center justify-center w-6 h-6"},X7={class:"fm-radio-btn__input--container"},q7=["checked","disabled","value"],K7={class:"fm-typo-en-body-lg-400"},J7={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},Y7=De(r.defineComponent({__name:"FmRadio",props:{modelValue:{default:null},value:{},label:{default:""},sublabel:{default:""},disabled:{type:Boolean,default:void 0}},emits:["update:modelValue"],setup(t){const e=t,n=Pe(e,"modelValue"),o=r.ref(),i=r.inject(Jh,null),a=r.inject(Ke,null),s=()=>{l.value||(i?i.updateValue(e.value):n.value=e.value)},l=r.computed(()=>e.disabled??(i==null?void 0:i.getDisabled())??(a==null?void 0:a.getDisabled())??!1),c=r.computed(()=>i?e.value===i.groupValue.value:n.value===e.value);return(u,h)=>{const p=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",G7,[r.createElementVNode("label",{class:r.normalizeClass([{"fm-radio-btn--wrapper":!0,"cursor-not-allowed text-fm-color-typo-disabled":l.value,"cursor-pointer":!l.value},"space-x-8",u.sublabel?"items-start":"items-center"]),onClick:s},[r.createElementVNode("div",Q7,[r.withDirectives((r.openBlock(),r.createElementBlock("div",X7,[r.createElementVNode("input",{ref_key:"inputEl",ref:o,checked:c.value,disabled:l.value,value:u.value,class:"fm-radio-btn__input--btn",type:"radio"},null,8,q7)])),[[p,!l.value]])]),r.createElementVNode("div",{class:r.normalizeClass([u.sublabel?"py-0":"py-0.5","space-y-4","flex-1","min-w-0"])},[r.renderSlot(u.$slots,"label",{},()=>[r.createElementVNode("div",K7,r.toDisplayString(u.label),1),u.sublabel?(r.openBlock(),r.createElementBlock("div",J7,r.toDisplayString(u.sublabel),1)):r.createCommentVNode("",!0)],!0)],2)],2)])}}}),[["__scopeId","data-v-9d8dbc91"]]),Z7=r.defineComponent({__name:"FmRadioGroup",props:{modelValue:{},inline:{type:Boolean,default:!1},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[t=>!ef.isNil(t)||"This field is required"]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=Pe(e,"modelValue"),o=r.inject(Ke,null);r.provide(Jh,{groupValue:n,getDisabled:()=>i.value,updateValue(a){n.value=a}});const i=r.computed(()=>e.disabled??(o==null?void 0:o.getDisabled())??!1);return(a,s)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null),disabled:i.value,"helper-state":a.helperState,"helper-text":a.helperText,info:a.labelInfo,label:a.label,optional:a.labelMark==="optional",required:a.labelMark==="required",rules:a.rules},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass({"flex items-center gap-16 justify-start":a.inline,"flex flex-col gap-8":!a.inline})},[r.renderSlot(a.$slots,"default")],2)]),_:2},[a.label||a.$slots.label?{name:"label",fn:r.withCtx(()=>[r.renderSlot(a.$slots,"label")]),key:"0"}:void 0,a.helperText||a.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(a.$slots,"helper-text")]),key:"1"}:void 0]),1032,["modelValue","disabled","helper-state","helper-text","info","label","optional","required","rules"]))}}),Tl=r.defineComponent({__name:"FmSearch",props:{placeholder:{default:""},minLength:{default:0},maxLength:{default:NaN},inputmode:{default:"text"},readonly:{type:Boolean,default:!1},labelMark:{default:"none"},showSuccess:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},prependText:{default:""},appendText:{default:""},labelInfo:{default:""},showWordCount:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},maxWidth:{default:void 0},autofocus:{type:Boolean,default:!1},modelValue:{},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>{const{modelValue:m,disabled:b,...y}=e;return y}),i=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),a=Pe(e,"modelValue"),s=r.ref(!1),l=r.ref(),c=r.ref(e.collapsible),u=r.ref(e.collapsible);function h(){c.value=!1,r.nextTick(()=>{var m,b,y,v;(v=(y=(b=(m=l.value)==null?void 0:m.querySelector)==null?void 0:b.call(m,"input"))==null?void 0:y.focus)==null||v.call(y)})}function p(m){if(s.value=m,!!e.collapsible){if(m){u.value=!1;return}c.value=a.value.length===0,c.value&&setTimeout(()=>{u.value=!0},250)}}return(m,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"componentRoot",ref:l,class:"flex items-center justify-end min-w-48 relative"},[r.createElementVNode("div",{class:r.normalizeClass(["transition-all",{"opacity-100":!m.collapsible||!c.value,"opacity-0 pointer-events-none":m.collapsible&&c.value},m.collapsible&&c.value?"w-9 h-9":"w-full"])},[r.createVNode(Dr,r.mergeProps({modelValue:r.unref(a),"onUpdate:modelValue":b[1]||(b[1]=y=>r.isRef(a)?a.value=y:null),disabled:i.value||m.collapsible&&c.value},o.value,{autofocus:e.autofocus,onFocusChanged:p}),r.createSlots({_:2},[!m.collapsible||!s.value?{name:"prepend",fn:r.withCtx(()=>[r.createVNode(ce,{name:"search"})]),key:"0"}:void 0,r.unref(a).length?{name:"append",fn:r.withCtx(()=>[r.createVNode(ce,{class:"cursor-pointer text-fm-color-neutral-gray-300",name:"close",onClick:b[0]||(b[0]=y=>a.value="")})]),key:"1"}:void 0]),1040,["modelValue","disabled","autofocus"])],2),m.collapsible?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["absolute bottom-0 right-0",c.value?"opacity-100":"opacity-0 pointer-events-none"]),style:r.normalizeStyle({transition:"opacity 150ms",transitionTimingFunction:c.value?"cubic-bezier(.95,-0.01,.82,.6)":"ease-out"})},[r.createVNode(me,{icon:"search",variant:"tertiary",onClick:h})],6)):r.createCommentVNode("",!0)],512))}}),$7={key:0,class:"flex fm-typo-en-title-sm-600 items-center justify-between text-fm-color-typo-primary"},eB={key:0},tB={class:"h-full overflow-y-auto"},nB={key:1,class:"flex gap-8 items-center"},nb=De(r.defineComponent({__name:"FmTopSheet",props:{header:{default:""},modelValue:{type:Boolean,default:!1},dismissAway:{type:Boolean,default:!1},fullscreenSize:{default:void 0},zIndex:{default:void 0},noOverlay:{type:Boolean,default:!1}},emits:["update:modelValue","on:clickedAway"],setup(t){const e=t,n=Pe(e,"modelValue");return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{onClick:i[0]||(i[0]=a=>n.value=!0)},[r.renderSlot(o.$slots,"top-sheet-button",{},void 0,!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.unref(n)?(r.openBlock(),r.createBlock(fi,{key:0,"dismiss-away":e.dismissAway,"z-index":e.zIndex,transparent:e.noOverlay,onClose:i[1]||(i[1]=a=>n.value=!1),onClickedAway:i[2]||(i[2]=a=>o.$emit("on:clickedAway"))},{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:o.fullscreenSize?`slide-${o.fullscreenSize}`:"slide",appear:""},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["fm-top-sheet",`fm-top-sheet--fullscreen-${o.fullscreenSize}`,e.noOverlay&&"shadow-md"])},[o.header||o.$slots["top-sheet-header"]?(r.openBlock(),r.createElementBlock("div",$7,[r.renderSlot(o.$slots,"top-sheet-header",{},()=>[o.header?(r.openBlock(),r.createElementBlock("div",eB,r.toDisplayString(o.header),1)):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",tB,[r.renderSlot(o.$slots,"default",{},void 0,!0)]),o.$slots["top-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",nB,[r.renderSlot(o.$slots,"top-sheet-footer",{},void 0,!0)])):r.createCommentVNode("",!0)],2)]),_:3},8,["name"])]),_:3},8,["dismiss-away","z-index","transparent"])):r.createCommentVNode("",!0)]),_:3})]))]))}}),[["__scopeId","data-v-6e83c161"]]);var tf={exports:{}};function ob(t,e=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:o}=typeof n=="boolean"?{immediate:n}:n;let i,a,s,l,c;function u(){const m=i,b=a;return i=void 0,a=void 0,c=t.apply(m,b),c}function h(){const m=Date.now()-l;m<e&&m>=0?s=setTimeout(h,e-m):(s=void 0,o||(c=u()))}const p=function(...m){if(i&&this!==i)throw new Error("Debounced method called with different contexts.");i=this,a=m,l=Date.now();const b=o&&!s;return s||(s=setTimeout(h,e)),b&&(c=u()),c};return p.clear=()=>{s&&(clearTimeout(s),s=void 0)},p.flush=()=>{s&&p.trigger()},p.trigger=()=>{c=u(),p.clear()},p}tf.exports.debounce=ob,tf.exports=ob;var oB=tf.exports;const nf=zs(oB);var rb={exports:{}};(function(t,e){(function(){var n={};t.exports=n,n.simpleFilter=function(o,i){return i.filter(function(a){return n.test(o,a)})},n.test=function(o,i){return n.match(o,i)!==null},n.match=function(o,i,a){a=a||{};var s=0,l=[],c=i.length,u=0,h=0,p=a.pre||"",m=a.post||"",b=a.caseSensitive&&i||i.toLowerCase(),y;o=a.caseSensitive&&o||o.toLowerCase();for(var v=0;v<c;v++)y=i[v],b[v]===o[s]?(y=p+y+m,s+=1,h+=1+h):h=0,u+=h,l[l.length]=y;return s===o.length?(u=b===o?1/0:u,{rendered:l.join(""),score:u}):null},n.filter=function(o,i,a){return!i||i.length===0?[]:typeof o!="string"?i:(a=a||{},i.reduce(function(s,l,c,u){var h=l;a.extract&&(h=a.extract(l));var p=n.match(o,h,a);return p!=null&&(s[s.length]={string:p.rendered,score:p.score,index:c,original:l}),s},[]).sort(function(s,l){var c=l.score-s.score;return c||s.index-l.index}))}})()})(rb);var rB=rb.exports;const iB=zs(rB);function Ml(t,e){const[n]=iB.filter(t.toLocaleLowerCase(),[e],{pre:"|",post:"|",extract(i){return i.toLocaleLowerCase()}});if(!n)return{label:e,segments:[{segment:e,isMatch:!1}],matched:!1};const o=n.string.toString().replace(/\|\|/g,"").split("|").reduce((i,a,s)=>(i.push({segment:a,isMatch:s%2!==0}),i),new Array);return{label:e,segments:o,matched:!0}}const aB={class:"flex flex-col gap-4"},sB={class:"bg-white flex gap-4 px-24 py-8 sticky top-0"},lB={class:"hidden sm:inline xs:inline"},dB={key:0},cB={key:0,class:"flex flex-col"},uB={class:"flex flex-col"},fB={class:"flex items-center px-24 py-12"},pB={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},hB=r.createElementVNode("div",{class:"py-4"},[r.createElementVNode("hr",{class:"border-fm-color-neutral-gray-100"})],-1),mB=["onClick"],gB={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},bB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-primary"},yB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-typo-secondary"},vB={key:3,class:"flex flex-col"},kB=["onClick"],wB={class:"flex flex-col gap-4"},SB={key:0,class:"text-fm-color-typo-secondary"},xB={class:"px-16 py-4"},CB=5,AB=r.defineComponent({__name:"FmGlobalSearch",props:{show:{type:Boolean,default:!1},modelValue:{default:""},suggestions:{default:void 0},onSearch:{type:Function,default:void 0},placeholder:{default:""},hintPlaceholder:{default:""},notFoundPlaceholder:{default:""},recentSearchKey:{default:""}},emits:["dismiss","submit","update:show","update:modelValue"],setup(t,{emit:e}){const n=t,o=e;function i(){if(!n.recentSearchKey)return;const U=n.recentSearchKey;localStorage.removeItem(U),l.value=[]}function a(){if(!n.recentSearchKey)return;const U=n.recentSearchKey,G=localStorage.getItem(U);if(!G)return[];try{return JSON.parse(G)}catch{return new Array}}const s=nf(function(G){if(!n.recentSearchKey)return;const Q=n.recentSearchKey,F=G().trim();if(!Q||!F)return;const E=a()??[],S=[...new Set([F,...E])].slice(0,CB),D=JSON.stringify(S);return localStorage.setItem(Q,D),l.value=S,S},800),l=r.ref(a()),c=Pe(n,"show");r.watch([()=>n.show],()=>{n.show?(p.value=null,n.suggestions&&I()):o("dismiss")});const u=Pe(n,"modelValue"),h=r.ref(n.modelValue);r.watch([()=>h.value],()=>{V()});const p=r.ref(null),m=r.ref(!0),b=r.computed(()=>{var U;return m.value?(U=p.value)==null?void 0:U.slice(0,5):p.value});r.watch([()=>p.value],([])=>{m.value=!0});const y=r.computed(()=>p.value===null),v=r.ref(!1),w=r.ref(""),x=()=>h.value;async function I(){if(!c.value)return;const U=x();if(!U)return;const G=Math.random().toString();if(w.value=G,n.suggestions){p.value=n.suggestions.map(Q=>({label:Ml(U,Q.label),sublabel:Q.sublabel?Ml(U,Q.sublabel):null})).filter(Q=>{var F;return Q.label.matched||((F=Q.sublabel)==null?void 0:F.matched)}),s(x);return}if(n.onSearch)try{v.value=!0;const Q=await n.onSearch(U);G===w.value&&(p.value=Q.map(F=>({label:Ml(U,F.label),sublabel:F.sublabel?Ml(U,F.sublabel):null})))}catch{G===w.value&&(p.value=[])}finally{G===w.value&&(v.value=!1,s(x))}}function R(U){c.value=!1,o("dismiss"),u.value=U}const V=nf(I),B=r.computed(()=>l.value&&l.value.length===0),L=r.computed(()=>(!h.value||y.value)&&!B.value),P=r.computed(()=>(!h.value||y.value)&&B.value),_=r.computed(()=>h.value&&p.value&&p.value.length===0);return(U,G)=>(r.openBlock(),r.createBlock(nb,{"model-value":r.unref(c),"onUpdate:modelValue":G[4]||(G[4]=Q=>r.isRef(c)?c.value=Q:null),"fullscreen-size":"sm","dismiss-away":""},{default:r.withCtx(()=>{var Q,F;return[r.createElementVNode("div",aB,[r.createElementVNode("div",sB,[r.createElementVNode("div",lB,[r.createVNode(me,{"prepend-icon":"arrow_back",variant:"tertiary",onClick:G[0]||(G[0]=E=>c.value=!1)})]),r.createVNode(Tl,{"model-value":h.value,"onUpdate:modelValue":G[1]||(G[1]=E=>h.value=E),class:"flex-1",placeholder:U.placeholder},null,8,["model-value","placeholder"])]),v.value?(r.openBlock(),r.createElementBlock("div",dB,[r.createVNode(xr,{size:"xl"})])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[L.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[U.recentSearchKey&&((Q=l.value)!=null&&Q.length)?(r.openBlock(),r.createElementBlock("div",cB,[r.createElementVNode("div",uB,[r.createElementVNode("div",fB,[r.createElementVNode("div",pB,r.toDisplayString(r.unref(H)("search.recent")),1),r.createVNode(Zo),r.createVNode(me,{label:r.unref(H)("search.clearHistory"),variant:"plain",size:"md",onClick:G[2]||(G[2]=E=>i())},null,8,["label"])]),hB]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(E,S)=>(r.openBlock(),r.createElementBlock("div",{key:S,class:"cursor-pointer flex gap-8 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12",onClick:D=>h.value=E},[r.createVNode(ce,{size:"lg",name:"history"}),r.createElementVNode("div",gB,r.toDisplayString(E),1)],8,mB))),128))])])):r.createCommentVNode("",!0)],64)):P.value?r.renderSlot(U.$slots,"hint-placeholder",{key:1},()=>[r.createElementVNode("div",bB,r.toDisplayString(U.hintPlaceholder),1)]):_.value?r.renderSlot(U.$slots,"not-found-placeholder",{key:2},()=>[r.createElementVNode("div",yB,r.toDisplayString(U.notFoundPlaceholder||`No result found for “${h.value}”`),1)]):(r.openBlock(),r.createElementBlock("div",vB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.value,(E,S)=>r.renderSlot(U.$slots,"search-result-item",r.mergeProps({key:S,ref_for:!0},{result:E}),()=>[r.createElementVNode("div",{class:"cursor-pointer flex gap-16 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12 w-full",onClick:D=>R(E.label.label)},[r.createVNode(ce,{size:"lg",name:"arrow_forward"}),r.createElementVNode("div",wB,[r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.label.segments,(D,C)=>(r.openBlock(),r.createElementBlock("span",{key:C,class:r.normalizeClass({"fm-typo-en-body-lg-400":!D.isMatch,"fm-typo-en-body-lg-600":D.isMatch})},r.toDisplayString(D.segment),3))),128))]),E.sublabel?(r.openBlock(),r.createElementBlock("div",SB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.sublabel.segments,(D,C)=>(r.openBlock(),r.createElementBlock("span",{key:C,class:r.normalizeClass({"fm-typo-en-body-md-400":!D.isMatch,"fm-typo-en-body-md-600":D.isMatch})},r.toDisplayString(D.segment),3))),128))])):r.createCommentVNode("",!0)])],8,kB)])),128)),r.createElementVNode("div",xB,[m.value&&(((F=p.value)==null?void 0:F.length)??0)>5?(r.openBlock(),r.createBlock(me,{key:0,label:`show ${p.value.length-5} more results`,variant:"plain",onClick:G[3]||(G[3]=E=>m.value=!1)},null,8,["label"])):r.createCommentVNode("",!0)])]))],64))])]}),_:3},8,["model-value"]))}}),EB=["disabled","inputMode","placeholder","readOnly","value"],DB={key:0},BB=["disabled"],PB=["disabled"],IB=De(r.defineComponent({__name:"FmStepperField",props:{modelValue:{},placeholder:{default:""},inputmode:{default:"numeric"},readonly:{type:Boolean},labelMark:{default:"none"},step:{default:1},min:{default:void 0},max:{default:void 0},prependIcon:{default:""},appendIcon:{default:""},isCurrency:{type:Boolean,default:!1},showSteppers:{type:Boolean,default:!0},showValidBorder:{type:Boolean,default:!1},prependText:{default:""},appendText:{default:""},labelInfo:{default:""},useGrouping:{type:Boolean,default:!0},minFractionDigits:{default:0},maxFractionDigits:{default:2},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),{isFocused:a,blur:s,focus:l}=la(),c=r.ref(null);let u;const h=B=>{if(B!==""){const L=+B.replace(/,/g,"");return isNaN(L)?null:L}return null},p=B=>u.format(B),m=B=>{if(typeof i.value!="number"){i.value=+i.value;return}if(B>0&&x.value||B<0&&I.value)return;let L=R(i.value)?i.value+B:0;L=b(L),i.value=L},b=B=>e.max!==void 0&&B>e.max?e.max:e.min!==void 0&&B<e.min?e.min:B,y=()=>{var B;i.value=h(((B=c.value)==null?void 0:B.value)??"")},v=B=>{if(![...Array(10).keys()].map(L=>L.toString()).includes(B.key)&&!["Backspace","Tab","Enter",".","-","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(B.key)){B.preventDefault();return}},w=r.computed(()=>i.value!=null?p(i.value):""),x=r.computed(()=>{let B=!1;return e.max!==void 0&&(B=i.value>=e.max),e.min!==void 0&&(B=i.value<e.min),B}),I=r.computed(()=>{let B=!1;return e.max!==void 0&&(B=i.value>e.max),e.min!==void 0&&(B=i.value<=e.min),B});r.onBeforeMount(()=>{u=new Intl.NumberFormat("en-MY",{useGrouping:e.useGrouping,minimumFractionDigits:e.minFractionDigits,maximumFractionDigits:e.maxFractionDigits,roundingMode:"trunc"})});function R(B){return typeof B=="number"&&isFinite(B)}const V=()=>{var B;(B=c.value)==null||B.focus()};return(B,L)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":L[8]||(L[8]=P=>r.isRef(i)?i.value=P:null),disabled:o.value,focused:r.unref(a),"helper-state":B.helperState,"helper-text":B.helperText,info:B.labelInfo,label:B.label,optional:B.labelMark==="optional",required:B.labelMark==="required",rules:B.rules,"blame-handler":V},{label:r.withCtx(()=>[r.renderSlot(B.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:P})=>[r.createVNode(at,{"append-icon":B.appendIcon,focused:r.unref(a),invalid:P,"prepend-icon":B.prependIcon,"show-valid-border":B.showValidBorder,class:"cursor-text"},{prepend:r.withCtx(()=>[r.renderSlot(B.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(B.$slots,"append",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([{"mr-32":B.showSteppers},"flex items-center justify-center"])},[B.appendText?(r.openBlock(),r.createElementBlock("div",DB,r.toDisplayString(B.appendText),1)):r.createCommentVNode("",!0),B.appendIcon?(r.openBlock(),r.createBlock(ce,{key:1,color:o.value?"#C7C7CC":"#1C1C1E",name:B.appendIcon,size:"md"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)],!0),B.showSteppers?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fm-stepper-field__stepper__container",r.unref(a)?"right-[6px]":"right-[7px]"])},[r.createElementVNode("button",{disabled:o.value||x.value,class:"fm-stepper-field__stepper__item",tabindex:"0",type:"button",onBlur:L[2]||(L[2]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[3]||(L[3]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onMousedown:L[4]||(L[4]=()=>m(B.step))},[r.createVNode(ce,{color:o.value||x.value?"#C7C7CC":"#1C1C1E",name:"expand_less",size:"md"},null,8,["color"])],40,BB),r.createElementVNode("button",{disabled:o.value||I.value,class:"fm-stepper-field__stepper__item",tabindex:"1",type:"button",onBlur:L[5]||(L[5]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[6]||(L[6]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onMousedown:L[7]||(L[7]=()=>m(-B.step))},[r.createVNode(ce,{color:o.value||I.value?"#C7C7CC":"#1C1C1E",name:"expand_more",size:"md"},null,8,["color"])],40,PB)],2)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.createElementVNode("input",{ref_key:"inputEl",ref:c,disabled:o.value,inputMode:B.inputmode,placeholder:B.placeholder,readOnly:B.readonly,value:w.value,class:"fm-stepper-field--input outline-none",type:"text",onBlur:L[0]||(L[0]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[1]||(L[1]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onInput:y,onKeydown:v},null,40,EB)]),_:2},1032,["append-icon","focused","invalid","prepend-icon","show-valid-border"])]),"helper-text":r.withCtx(()=>[r.renderSlot(B.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-62601f37"]]),OB=["disabled","maxlength","minlength","placeholder","readOnly","value"],NB=De(r.defineComponent({__name:"FmTextarea",props:{modelValue:{default:""},placeholder:{default:""},minLength:{default:0},maxLength:{default:NaN},readonly:{type:Boolean,default:!1},labelMark:{default:"none"},showSuccess:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},labelInfo:{default:""},helperText:{default:""},helperState:{default:"none"},showWordCount:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),{isFocused:a,focus:s,blur:l}=la(),c=p=>{i.value=p.target.value},u=r.ref(null);Dm(u,r.toRef(()=>e.autofocus));const h=()=>{var p;(p=u.value)==null||p.focus()};return(p,m)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":m[2]||(m[2]=b=>r.isRef(i)?i.value=b:null),disabled:o.value,focused:r.unref(a),"helper-state":p.helperState,"helper-text":p.helperText,info:p.labelInfo,label:p.label,optional:p.labelMark==="optional",required:p.labelMark==="required",rules:p.rules,"blame-handler":h},r.createSlots({label:r.withCtx(()=>[r.renderSlot(p.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:b})=>[r.createElementVNode("div",{class:r.normalizeClass({"fm-textarea__container":!0,"fm-textarea__container--focused":r.unref(a),"fm-textarea__container--invalid":!!r.unref(i)&&b,"fm-textarea__container--valid":p.showValidBorder&&p.showSuccess&&!!r.unref(i)&&!b,"fm-textarea__container--disabled":o.value})},[r.createElementVNode("textarea",{ref_key:"inputEl",ref:u,class:r.normalizeClass({"fm-textarea--input fm-typo-en-body-lg-400":!0,"fm-color-typo-primary":!o.value,"fm-color-typo-disabled":o.value,"outline-none":!0}),disabled:o.value,maxlength:p.maxLength,minlength:p.minLength,placeholder:p.placeholder,readOnly:p.readonly,value:r.unref(i),onBlur:m[0]||(m[0]=(...y)=>r.unref(l)&&r.unref(l)(...y)),onFocus:m[1]||(m[1]=(...y)=>r.unref(s)&&r.unref(s)(...y)),onInput:c},null,42,OB)],2)]),"helper-text":r.withCtx(()=>[r.renderSlot(p.$slots,"helper-text",{},void 0,!0)]),_:2},[p.showWordCount?{name:"helper-append",fn:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([o.value?"fm-color-typo-disabled":"text-fm-color-typo-secondary","fm-typo-en-body-sm-400"])},r.toDisplayString(p.maxLength?`${r.unref(i).length} / ${p.maxLength}`:""),3)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-8bc4f92e"]]);var In=(t=>(t.AM="AM",t.PM="PM",t))(In||{});function yn(t){return t.toString().padStart(2,"0")}function RB(t){const[e,n]=t.split(":"),o=Number(e),i=Number(n),a=o>11?"PM":"AM";let s=o;return s===0?s=12:s>12&&(s-=12),`${yn(s)}:${yn(i)}:${a}`}function nn(t){const[e,n,o]=RB(t).split(":");return{hours:Number(e),minutes:Number(n),period:o}}function of({hours:t,minutes:e,period:n}){let o=t;return n==="PM"?o=t===12?t:t+12:t===12&&(o=0),`${yn(o)}:${yn(e)}`}const VB={class:"flex flex-col gap-8 fm-time-input items-center"},FB=["value","maxlength"],ib=De(r.defineComponent({__name:"TimeInput",props:{modelValue:{type:String,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e,i=r.ref();function a(p){i.value&&(i.value.value=p)}r.watch(()=>n.modelValue,a);function s(p){!/^\d$/.test(p.key)&&!["ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(p.key)&&p.preventDefault()}function l(){if(!i.value)return;const p=c(i.value.value);p==null||p<n.min?(a(yn(n.min)),o("update:model-value",n.min)):p>n.max?(a(yn(n.max)),o("update:model-value",n.max)):(a(yn(p)),o("update:model-value",p))}function c(p){return p&&/^\d+$/.test(p)?Number(p):null}function u(){var p;(p=i.value)==null||p.focus(),o("update:model-value",c(n.modelValue)+1)}function h(){var p;(p=i.value)==null||p.focus(),o("update:model-value",c(n.modelValue)-1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",VB,[r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:u},[r.createVNode(ce,{name:"expand_less",size:"md"})]),r.createElementVNode("input",{ref_key:"inputRef",ref:i,value:n.modelValue,onKeypress:s,onBlur:l,maxlength:t.max.toString().length},null,40,FB),r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:h},[r.createVNode(ce,{name:"expand_more",size:"md"})])]))}}),[["__scopeId","data-v-ced7c472"]]),TB={class:"flex fm-time-input items-center"},MB=r.createElementVNode("div",{class:"fm-typo-en-title-sm-600 w-6 flex items-center justify-center"},[r.createElementVNode("span",null,":")],-1),LB={class:"fm-time-input-periods ml-16"},zB=["onClick"],Ll=r.defineComponent({__name:"FmTimeInput",props:{modelValue:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e;function i(a){const s={hours:a.hours??n.modelValue.hours,minutes:a.minutes??n.modelValue.minutes,period:a.period??n.modelValue.period},l=n.modelValue.hours;(l===12&&s.hours===11||l===11&&s.hours===12)&&(s.period=n.modelValue.period===In.AM?In.PM:In.AM),s.hours>12?s.hours=1:s.hours<1&&(s.hours=12),s.minutes>59?s.minutes=0:s.minutes<0&&(s.minutes=59),o("update:model-value",s)}return(a,s)=>(r.openBlock(),r.createElementBlock("div",TB,[r.createVNode(ib,{"model-value":r.unref(yn)(t.modelValue.hours),min:1,max:12,"onUpdate:modelValue":s[0]||(s[0]=l=>i({hours:l}))},null,8,["model-value"]),MB,r.createVNode(ib,{"model-value":r.unref(yn)(t.modelValue.minutes),min:0,max:59,"onUpdate:modelValue":s[1]||(s[1]=l=>i({minutes:l}))},null,8,["model-value"]),r.createElementVNode("div",LB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(In),l=>(r.openBlock(),r.createElementBlock("div",{key:l,class:r.normalizeClass([{"fm-time-input-period__selected":l===t.modelValue.period},"bg-fm-color-neutral-gray-100 fm-time-input-period"]),onClick:()=>i({period:l})},r.toDisplayString(l),11,zB))),128))])]))}}),_B={class:"flex gap-8"},HB={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},UB={class:"flex items-center justify-center py-16 w-full"},WB={class:"flex justify-end gap-8"},jB=r.defineComponent({__name:"FmTimePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},placeholder:{default:"HH:MM"},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=r.ref(null),s=r.computed(()=>{if(!i.value)return null;const{hours:u,minutes:h,period:p}=nn(i.value);return`${yn(u)}:${yn(h)} ${p}`});function l(){if(!a.value){i.value=null;return}const u=of(a.value);i.value=u,c.value=!1}r.onMounted(()=>{i.value&&(a.value=nn(i.value))}),r.watch(()=>i.value,u=>{u&&(a.value=nn(u))});const c=r.ref(!1);return r.watchEffect(()=>{o.value||(c.value?a.value=nn(i.value??"00:00"):a.value=i.value?nn(i.value):null)}),(u,h)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":h[3]||(h[3]=p=>r.isRef(i)?i.value=p:null),disabled:o.value,focused:c.value,"helper-state":u.helperState,"helper-text":u.helperText,info:u.labelInfo,label:u.label,optional:u.labelMark==="optional",required:u.labelMark==="required",rules:u.rules,"disable-auto-focus":"",tag:"div"},{label:r.withCtx(()=>[r.renderSlot(u.$slots,"label")]),default:r.withCtx(({invalid:p})=>[r.createVNode(Bo,{disabled:o.value,"show-popover":c.value,"z-index":u.zIndex,onPopoverChanged:h[2]||(h[2]=m=>c.value=m)},{"popover-button":r.withCtx(()=>[u.$slots["trigger-button"]?r.renderSlot(u.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:p,dropdownShowed:c.value,showValidBorder:u.showValidBorder,shouldDisable:o.value}))):(r.openBlock(),r.createBlock(at,{key:1,class:r.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer"),focused:c.value,invalid:p,"show-valid-border":u.showValidBorder},{default:r.withCtx(()=>[r.createElementVNode("div",_B,[r.createVNode(ce,{outline:!c.value,name:"schedule"},null,8,["outline"]),r.createElementVNode("div",{class:r.normalizeClass([{"text-fm-color-typo-disabled":!s.value},"grow"])},r.toDisplayString(s.value??u.placeholder??"HH:MM"),3)])]),_:2},1032,["class","focused","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",HB,[r.createElementVNode("div",UB,[r.createVNode(Ll,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":h[0]||(h[0]=m=>a.value=m)},null,8,["model-value"])]),r.createElementVNode("div",WB,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:h[1]||(h[1]=m=>c.value=!1)},null,8,["label"]),r.createVNode(me,{label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:l},null,8,["label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(u.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),GB={class:"flex gap-8"},QB={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},XB={class:"flex flex-col gap-16 items-center justify-center w-full pb-16"},qB={class:"fm-typo-en-body-lg-600 text-left w-full"},KB={class:"fm-typo-en-body-lg-600 text-left w-full"},JB={class:"flex gap-8 items-center justify-end"},YB=r.defineComponent({__name:"FmTimeRangePicker",props:{modelValue:{},disableTimeCheck:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},placeholder:{default:"HH:MM"},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=r.ref(null),s=r.ref(null),l=r.computed(()=>{const v=Array.isArray(i.value);return!i.value||!v||v&&i.value.every(w=>!b(w))?null:i.value.map(w=>{const{hours:x,minutes:I,period:R}=nn(w);return`${yn(x)}:${yn(I)} ${R}`}).join(" - ")});function c(){if(!a.value||!s.value){i.value=null;return}const v=a.value,w=s.value,x=v.period===In.PM&&w.period===In.AM,R=!(v.period===In.PM&&v.hours===12&&w.period===In.PM&&w.hours!==12)&&v.period===w.period&&(v.hours>w.hours||v.hours===w.hours&&v.minutes>w.minutes),V=!e.disableTimeCheck&&(x||R),B=of(a.value),L=of(s.value);i.value=V?[L,B]:[B,L],h()}r.onMounted(()=>{Array.isArray(i.value)&&i.value.every(v=>!!v)&&(a.value=nn(i.value[0]),s.value=nn(i.value[1]))}),r.watch(()=>i.value,v=>{const w=Array.isArray(v);v&&w&&v.every(x=>b(x))&&(a.value=nn(v[0]),s.value=nn(v[1]))});const u=r.ref();function h(){var v;(v=u.value)==null||v.hide()}const p=r.ref(!1);function m(v){var w,x,I,R;v?(a.value=nn(((I=i.value)==null?void 0:I[0])??"00:00"),s.value=nn(((R=i.value)==null?void 0:R[1])??"23:59")):(a.value=(w=i.value)!=null&&w[0]?nn(i.value[0]):null,s.value=(x=i.value)!=null&&x[1]?nn(i.value[1]):null),p.value=v}const b=v=>/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(v),y=r.computed(()=>e.disableTimeCheck?!1:Rt(a.value,s.value));return(v,w)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":w[2]||(w[2]=x=>r.isRef(i)?i.value=x:null),disabled:o.value,focused:p.value,"helper-state":v.helperState,"helper-text":v.helperText,info:v.labelInfo,label:v.label,optional:v.labelMark==="optional",required:v.labelMark==="required",rules:v.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(v.$slots,"label")]),default:r.withCtx(({invalid:x})=>[r.createVNode(Bo,{ref_key:"dropdownRef",ref:u,"show-popover":p.value,width:343,"z-index":e.zIndex,onPopoverChanged:m},{"popover-button":r.withCtx(()=>[v.$slots["trigger-button"]?r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:x,dropdownShowed:p.value,showValidBorder:v.showValidBorder,shouldDisable:o.value}))):(r.openBlock(),r.createBlock(at,{key:1,class:r.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer"),focused:p.value,invalid:x,"show-valid-border":v.showValidBorder},{default:r.withCtx(()=>[r.createElementVNode("div",GB,[r.createVNode(ce,{outline:!p.value,name:"schedule"},null,8,["outline"]),r.createElementVNode("div",{class:r.normalizeClass([{"text-fm-color-typo-disabled":!l.value},"grow"])},r.toDisplayString(l.value??v.placeholder??"HH:MM"),3)])]),_:2},1032,["class","focused","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",QB,[r.createElementVNode("div",XB,[r.createElementVNode("div",null,[r.createElementVNode("div",qB,r.toDisplayString(r.unref(H)("time.start")),1),r.createVNode(Ll,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":w[0]||(w[0]=I=>a.value=I)},null,8,["model-value"])]),r.createElementVNode("div",null,[r.createElementVNode("div",KB,r.toDisplayString(r.unref(H)("time.end")),1),r.createVNode(Ll,{"model-value":s.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":w[1]||(w[1]=I=>s.value=I)},null,8,["model-value"])])]),r.createElementVNode("div",JB,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:h},null,8,["label"]),r.createVNode(me,{disabled:y.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:c},null,8,["disabled","label"])])])]),_:2},1032,["show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(v.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),rf=De(r.defineComponent({__name:"FmList",props:{separator:{type:Boolean,default:!1},disabled:{type:Boolean},activeClass:{default:""}},setup(t,{expose:e}){const n=r.ref(null);return e({element:n}),(o,i)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"element",ref:n,class:r.normalizeClass({"fm-list--separator":o.separator,activeClass:o.activeClass})},[r.renderSlot(o.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-266d01d7"]]),af=De(r.defineComponent({__name:"FmListItem",props:{tag:{default:"div"},clickable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:""},sublabel:{default:""}},setup(t){const e=t;function n(o){e.disabled&&o.stopImmediatePropagation()}return(o,i)=>{const a=r.resolveDirective("wave");return r.withDirectives((r.openBlock(),r.createBlock(e.tag,{class:r.normalizeClass({"fm-list-item":!0,"fm-list-item--disabled":o.disabled,"cursor-pointer hover:bg-fm-color-opacity-sm":o.clickable&&!o.disabled,"cursor-not-allowed":o.clickable&&o.disabled}),onClick:r.withModifiers(n,["prevent"])},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend",{},void 0,!0),r.renderSlot(o.$slots,"default",{},()=>[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(`fm-typo-en-body-lg-400 line-clamp-1 break-all ${o.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-primary"}`)},r.toDisplayString(o.label),3),o.sublabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`fm-typo-en-body-md-400 line-clamp-2 break-all ${o.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-secondary"}`)},r.toDisplayString(o.sublabel),3)):r.createCommentVNode("",!0)])],!0),o.$slots.append?(r.openBlock(),r.createBlock(Zo,{key:0})):r.createCommentVNode("",!0),r.renderSlot(o.$slots,"append",{},void 0,!0)]),_:3},8,["class"])),[[a,o.clickable&&!o.disabled]])}}}),[["__scopeId","data-v-90c2ba0a"]]);function ZB(t){for(;t;){if($B(t))return t;t=t.parentElement}return document.scrollingElement}function $B(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}class eP{constructor(e,n){ae(this,"onScroll");ae(this,"scrollParent");this.onScroll=n,this.scrollParent=ZB(e)}bindScroll(){this.scrollParent.addEventListener("scroll",this.onScroll)}unbindScroll(){this.scrollParent.removeEventListener("scroll",this.onScroll)}}const tP={class:"fm-menu__wrapper"},nP=De(r.defineComponent({__name:"FmMenuDeprecated",props:{showMenu:{type:Boolean,default:!1},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1}},emits:["dropdown-changed"],setup(t,{expose:e,emit:n}){const o=t,i=r.ref(!1),a=r.ref(null),s=r.ref(null),{floatingStyles:l}=ci(a,s,{middleware:[si(4),li()],placement:o.placement,whileElementsMounted:ai});let c;const u=n;e({show:()=>{i.value||(i.value=!0,u("dropdown-changed",i.value))},hide:()=>{i.value&&(i.value=!1,u("dropdown-changed",i.value))}});const h=b=>{b.preventDefault(),b.stopPropagation(),!o.disabled&&(i.value=!i.value,u("dropdown-changed",i.value))},p=b=>{if(!i.value)return;const y=b.path||b.composedPath();for(const v of y)if(v==a.value||v==s.value)return;i.value=!1,u("dropdown-changed",i.value)},m=()=>{u("dropdown-changed",!1)};return r.watch(()=>o.showMenu,b=>i.value=b),r.onMounted(()=>{i.value=o.showMenu,window.addEventListener("click",p),c=new eP(a.value,m),c.bindScroll()}),r.onUnmounted(()=>{window.removeEventListener("click",p),c.unbindScroll()}),(b,y)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{ref_key:"anchorEl",ref:a,class:"fm-menu",onClick:h},[r.renderSlot(b.$slots,"menu-button",{},void 0,!0)],512),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuEl",ref:s,class:r.normalizeClass({"fm-menu__content":!0,"fm-menu__content--opened":i.value}),style:r.normalizeStyle(r.unref(l))},[r.renderSlot(b.$slots,"menu-wrapper",{},()=>[r.createElementVNode("div",tP,[r.renderSlot(b.$slots,"menu-content",{},void 0,!0)])],!0)],6)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5b19ece2"]]),oP={class:"fm-typo-en-body-md-600 mx-8 p-8 text-fm-color-typo-secondary"},rP=r.defineComponent({__name:"FmMenuHeader",props:{label:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",oP,r.toDisplayString(e.label),1))}}),iP=t=>(r.pushScopeId("data-v-6d0e6490"),t=t(),r.popScopeId(),t),aP={class:"relative"},sP={class:"fm-progress-linear fm-typo-en-body-sm-400 h-4 overflow-hidden relative rounded-lg w-auto"},lP=iP(()=>r.createElementVNode("span",{class:"bg-fm-color-neutral-gray-100",style:{width:"100%"}},null,-1)),dP=De(r.defineComponent({__name:"FmLinearProgress",props:{color:{default:"primary"}},setup(t){const e=t,n=r.computed(()=>{const o=new Array,i={};return e.color?(ia(e.color)?i["background-color"]=e.color:o.push(`bg-fm-color-${e.color}`),{class:o.join(" "),style:i}):{class:o.join(" "),style:i}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",aP,[r.createElementVNode("div",sP,[lP,r.createElementVNode("span",{class:r.normalizeClass(["dash-1",n.value.class]),style:r.normalizeStyle(n.value.style)},null,6),r.createElementVNode("span",{class:r.normalizeClass(["dash-2",n.value.class]),style:r.normalizeStyle(n.value.style)},null,6)])]))}}),[["__scopeId","data-v-6d0e6490"]]),cP={class:"flex fm-typo-en-title-md-600 items-center justify-between text-fm-color-typo-primary pb-16"},uP={key:0},fP={class:"h-full overflow-y-auto"},pP={key:0,class:"pt-24"},hP=De(r.defineComponent({__name:"FmSideSheet",props:{header:{default:""},modelValue:{type:Boolean,default:!1},dismissAway:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!0},maxWidth:{default:void 0},zIndex:{default:void 0},isContainer:{default:"div"},isContainerProps:{default:()=>({})},closeIcon:{default:"close"},noOverlay:{type:Boolean,default:!1}},emits:["update:modelValue","on:clickedAway","on:close"],setup(t,{expose:e,emit:n}){const o=t,i=n,a=Pe(o,"modelValue"),s=r.ref(),l=()=>{a.value=!1,i("on:close")};return e({containerRef:s}),(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{onClick:u[0]||(u[0]=h=>a.value=!0)},[r.renderSlot(c.$slots,"side-sheet-button",{},void 0,!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(fi,{key:0,"dismiss-away":o.dismissAway,"z-index":o.zIndex,transparent:o.noOverlay,onClose:l,onClickedAway:u[1]||(u[1]=h=>c.$emit("on:clickedAway"))},{default:r.withCtx(()=>[r.createVNode(r.Transition,{appear:"",name:"slide"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.isContainer),r.mergeProps({ref_key:"containerRef",ref:s,class:[[!c.maxWidth&&"max-w-[400px]",o.noOverlay&&"shadow-md"],"fm-side-sheet xs:w-full"],style:{maxWidth:`${c.maxWidth}px`}},c.isContainerProps),{default:r.withCtx(()=>[r.createElementVNode("div",cP,[r.renderSlot(c.$slots,"side-sheet-header",{},()=>[c.header?(r.openBlock(),r.createElementBlock("div",uP,r.toDisplayString(c.header),1)):r.createCommentVNode("",!0)],!0),c.closeButton?(r.openBlock(),r.createBlock(ce,{key:0,name:c.closeIcon,class:"cursor-pointer",size:"md",onClick:l},null,8,["name"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",fP,[r.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots["side-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",pP,[r.renderSlot(c.$slots,"side-sheet-footer",{},void 0,!0)])):r.createCommentVNode("",!0)]),_:3},16,["class","style"]))]),_:3})]),_:3},8,["dismiss-away","z-index","transparent"])):r.createCommentVNode("",!0)]),_:3})]))]))}}),[["__scopeId","data-v-d5a939ad"]]),mP={class:"flex items-center"},gP={key:1,class:"flex items-center mx-12"},bP={key:0,class:"mt-8"},ab=De(r.defineComponent({__name:"FmSnackbar",props:{title:{type:String,default:void 0},description:{type:String,default:void 0},variant:{type:String,default:"info"},dismissable:{type:Boolean,default:!1},action:{type:String,default:void 0},color:{type:String,default:void 0},bgColor:{type:String,default:void 0},zIndex:{type:Number,default:1e3},spinner:{type:Boolean,default:!1}},emits:["onDismiss","onAction"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{switch(n.variant){case"info":return{icon:{name:"info",color:"system-info-300"},actionColor:"typo-info",bgColor:"system-info-100"};case"success":return{icon:{name:"check_circle",color:"system-success-300"},actionColor:"typo-success",bgColor:"system-success-100"};case"warning":return{icon:{name:"warning",color:"system-warning-300"},actionColor:"typo-warning",bgColor:"system-warning-100"};case"error":return{icon:{name:"error",color:"system-error-300"},actionColor:"typo-error",bgColor:"system-error-100"};case"neutral":return{actionColor:"primary",bgColor:"neutral-gray-100"};default:throw Error(`Unimplement snackbar variant ${n.variant}`)}}),a=r.computed(()=>n.title?{text:n.title,classes:"fm-typo-en-body-lg-600"}:{text:n.description,classes:""}),s=r.computed(()=>n.bgColor?ia(n.bgColor)?{style:{backgroundColor:n.bgColor}}:{class:`bg-fm-color-${n.bgColor}`}:{class:`bg-fm-color-${i.value.bgColor}`}),l=r.computed(()=>n.color?ia(n.color)?{style:{color:n.color}}:{class:`text-fm-color-${n.color}`}:{class:`text-fm-color-${i.value.actionColor}`});return(c,u)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({style:{zIndex:t.zIndex},class:"fm-corner-radius-lg fm-shadow-light-400 fm-snackbar px-24 py-16"},s.value),[r.createElementVNode("div",mP,[i.value.icon?(r.openBlock(),r.createBlock(ce,{key:0,color:n.color??i.value.icon.color,name:i.value.icon.name,class:"mr-12"},null,8,["color","name"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(`${a.value.classes} grow ellipsis mr-16`)},r.toDisplayString(a.value.text),3),t.spinner?(r.openBlock(),r.createElementBlock("div",gP,[r.createVNode(ce,{class:"animate-spin",name:"progress_activity"})])):r.createCommentVNode("",!0),n.dismissable?(r.openBlock(),r.createBlock(ce,{key:2,class:"cursor-pointer",name:"close",style:{"{ flex":"none}"},onClick:u[0]||(u[0]=()=>o("onDismiss"))})):r.createCommentVNode("",!0)]),n.title&&n.description?(r.openBlock(),r.createElementBlock("div",bP,r.toDisplayString(n.description),1)):r.createCommentVNode("",!0),r.renderSlot(c.$slots,"actions",{},()=>[n.action?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:"mt-16 fm-typo-en-body-lg-600"},l.value),[r.createElementVNode("span",{class:"cursor-pointer",onClick:u[1]||(u[1]=()=>o("onAction"))},r.toDisplayString(n.action),1)],16)):r.createCommentVNode("",!0)],!0)],16))}}),[["__scopeId","data-v-65fce1f3"]]),yP={class:r.normalizeClass(["fm-step-description","text-fm-color-typo-secondary","fm-typo-en-body-md-400 line-clamp-1","mt-4"])},sf=r.defineComponent({__name:"FmStepHeader",props:{title:{type:String,required:!0},description:{type:String,default:void 0},disabled:{type:Boolean,default:!1},titleBold:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([t.disabled?"text-fm-color-typo-disabled":"","flex flex-col"])},[r.renderSlot(e.$slots,"title",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([t.titleBold?"fm-typo-en-title-md-600":"fm-typo-en-body-md-400","fm-step-title line-clamp-2"])},r.toDisplayString(t.title),3)]),r.renderSlot(e.$slots,"description",{},()=>[r.createElementVNode("div",yP,r.toDisplayString(t.description),1)])],2))}}),vP=["data-title","data-description","data-disabled"],kP={class:"flex flex-col fm-step-container grow"},wP={class:"fm-step-container-content"},SP=De(r.defineComponent({__name:"FmStep",props:{title:{type:String,required:!0},description:{type:String,default:void 0},value:{type:Number,required:!0},complete:{type:Function,required:!0},error:{type:Function,default:void 0},disabled:{type:Function,default:void 0}},setup(t){const e=t,{currentStep:n,goToStep:o}=r.inject(Yh);function i(){a.value||o(e.value)}const a=r.computed(()=>e.disabled?e.disabled():!1),s=r.computed(()=>e.error?e.error():!1),l=r.computed(()=>n()===e.value),c=r.computed(()=>e.complete()),u=r.computed(()=>l.value||c.value||n()>e.value?"bg-fm-color-primary":"bg-fm-color-neutral-gray-300"),h=r.computed(()=>l.value?{className:"bg-fm-color-primary"}:s.value?{config:{name:"warning",color:"system-error-300"}}:a.value?{className:"border-2 border-fm-color-neutral-gray-200"}:c.value?{config:{name:"check_small",color:"primary"},className:"border-2 border-fm-color-primary"}:{className:"border-2 border-fm-color-neutral-gray-300"});return(p,m)=>{const b=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",{"data-title":t.title,"data-description":t.description,"data-disabled":a.value,class:r.normalizeClass(`fm-step gap-4 grow ${a.value?"cursor-not-allowed":"cursor-pointer"}`)},[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(`fm-step-indicator ${u.value}`)},null,2)]),r.createElementVNode("div",kP,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:"flex gap-12",onClick:r.withModifiers(i,["stop"])},[r.createElementVNode("div",{class:r.normalizeClass(["flex fm-step-container-icon h-[24px] items-center justify-center min-h-[24px] min-w-[24px] relative rounded-full w-[24px]",h.value.className])},[h.value.config?(r.openBlock(),r.createBlock(ce,{key:0,name:h.value.config.name,color:h.value.config.color,outline:"",class:"absolute"},null,8,["name","color"])):r.createCommentVNode("",!0)],2),r.createVNode(sf,{title:t.title,description:t.description,disabled:a.value,class:"grow"},null,8,["title","description","disabled"])])),[[b,!a.value]]),r.createElementVNode("div",wP,[r.renderSlot(p.$slots,"default",{},void 0,!0)])])],10,vP)}}}),[["__scopeId","data-v-113e7095"]]),xP={class:"hidden items-center xs:flex"},CP={class:"flex gap-2 items-start justify-end mb-24 mt-40 p-0 self-stretch"},AP=r.defineComponent({__name:"FmStepper",props:{modelValue:{type:Number,required:!0},orientation:{type:String,default:"horizontal"}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e,i=h=>{o("update:model-value",h)};r.provide(Yh,{currentStep:()=>n.modelValue,goToStep:i});const a=r.ref(),s=r.ref([]),l=r.computed(()=>s.value[n.modelValue-1]),c=r.computed(()=>`${n.modelValue} of ${s.value.length}`),u=()=>{var p;const h=Array.from(((p=a.value)==null?void 0:p.querySelectorAll(":scope > .fm-step"))??[]);s.value=h.map(m=>({title:m.dataset.title??"",description:m.dataset.description,disabled:m.dataset.disabled=="true"}))};return r.onMounted(()=>{u()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`fm-stepper fm-stepper__${t.orientation}`)},[r.createElementVNode("div",{ref_key:"stepperRef",ref:a,class:r.normalizeClass(`flex mx-24 mt-12 mb-24 xs:hidden ${t.orientation==="vertical"?"flex-col":""}`)},[r.renderSlot(h.$slots,"default")],2),r.createElementVNode("div",xP,[r.createVNode(xr,{"current-step":t.modelValue,"total-steps":s.value.length,class:"mr-12"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.value),1)]),_:1},8,["current-step","total-steps"]),l.value?(r.openBlock(),r.createBlock(sf,{key:0,class:"grow","title-bold":"",title:l.value.title,description:l.value.description,disabled:l.value.disabled},null,8,["title","description","disabled"])):r.createCommentVNode("",!0)]),h.$slots.contents?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`flex-col mx-24 mt-12 mb-24 ${t.orientation==="vertical"?"w-2/3":""}`)},[r.renderSlot(h.$slots,"contents"),r.createElementVNode("div",CP,[r.renderSlot(h.$slots,"actions")])],2)):r.createCommentVNode("",!0)],2))}});let EP=0;function DP(){return EP++}const BP=t=>(r.pushScopeId("data-v-dfbdb871"),t=t(),r.popScopeId(),t),PP=["disabled"],IP={key:1,class:"ml-4"},OP={key:0,class:"ml-4"},NP={key:0,class:r.normalizeClass(["block","absolute bottom-0 left-0","h-0.5 w-full"])},RP=[BP(()=>r.createElementVNode("span",{class:r.normalizeClass(["block","bg-fm-color-primary rounded-xxxl","w-full h-full"])},null,-1))],sb=De(r.defineComponent({__name:"FmTab",props:{modelValue:{default:null},label:{default:""},vertical:{type:Boolean,default:!1},icon:{default:""},disabled:{type:Boolean,default:!1},badge:{default:0},value:{default:()=>DP()},children:{default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.ref(!1),o=t,i=e,a=r.ref(!1);function s(p){n.value=p}const l=()=>{o.disabled||o.children.length>0||i("update:modelValue",o.value)},c=p=>{o.children.length!==0&&(a.value=p)},u=r.computed(()=>o.children.length>0?o.children.some(p=>p.value===o.modelValue):o.modelValue===o.value),h=p=>{a.value=!1,i("update:modelValue",p)};return(p,m)=>{const b=r.resolveDirective("wave");return r.openBlock(),r.createBlock(io,{class:r.normalizeClass([{"w-full":p.vertical},"flex-shrink-0 max-w-[360px] min-w-[90px] rounded-sm"]),disabled:p.children.length===0,placement:p.vertical?"right-start":"bottom-start","show-menu":a.value,onMenuChanged:c},{"menu-button":r.withCtx(()=>[r.createElementVNode("button",{class:r.normalizeClass([p.vertical?["px-16 py-8"]:["px-8 pt-8"],p.vertical?["max-w-[360px] w-full"]:["min-w-[90px] max-w-[360px]"]]),disabled:p.disabled,type:"button",onClick:l,onMousedown:m[0]||(m[0]=()=>s(!0)),onMouseleave:m[1]||(m[1]=()=>s(!1)),onMouseup:m[2]||(m[2]=()=>s(!1))},[r.createElementVNode("span",{class:r.normalizeClass(["flex items-center",p.vertical?["justify-start"]:["justify-center"],"relative"])},[r.createElementVNode("span",{class:r.normalizeClass([[p.vertical&&"w-full"],"block"])},[r.createElementVNode("span",{class:r.normalizeClass(["flex items-center",!p.vertical&&"pb-1.5",p.vertical&&"w-full"])},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["rounded-xxxl",!p.vertical&&"hover:bg-fm-color-opacity-sm group",p.vertical&&"w-full"]),type:"button"},[r.createElementVNode("button",{class:r.normalizeClass(["relative","flex items-center","px-8",p.vertical?"py-1":"py-1.5 space-x-8",p.vertical&&"w-full"]),type:"button"},[r.renderSlot(p.$slots,"prepend",{},void 0,!0),p.icon?(r.openBlock(),r.createBlock(ce,{key:0,color:p.disabled?"neutral-gray-200":u.value?"primary":"neutral-black",name:p.icon,outline:!n.value&&!u.value,size:"md"},null,8,["color","name","outline"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-lg-400",p.disabled?"text-fm-color-typo-disabled":u.value?"text-fm-color-primary":"text-fm-color-typo-secondary"])},r.toDisplayString(p.label),3),p.badge&&p.vertical?(r.openBlock(),r.createElementBlock("span",IP,[r.createVNode(Yo,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0),p.children.length>0?(r.openBlock(),r.createBlock(ce,{key:2,class:r.normalizeClass(["text-fm-color-neutral-gray-400",p.vertical&&"block ml-auto"]),name:a.value?"expand_less":"expand_more",size:"md"},null,8,["class","name"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"append",{},void 0,!0)],2)],2)),[[b,p.vertical?!1:{color:"rgba(28, 28, 30, 0.16)"}]]),p.badge&&!p.vertical?(r.openBlock(),r.createElementBlock("span",OP,[r.createVNode(Yo,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0)],2),u.value&&!p.vertical?(r.openBlock(),r.createElementBlock("span",NP,RP)):r.createCommentVNode("",!0)],2)],2)],42,PP)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,y=>(r.openBlock(),r.createBlock(xt,{key:y.value,disabled:y.disabled,icon:y.icon,label:y.label,"model-value":o.modelValue===y.value,onClick:v=>h(y.value)},{append:r.withCtx(()=>[y.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:y.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["disabled","icon","label","model-value","onClick"]))),128))]),_:3},8,["class","disabled","placement","show-menu"])}}}),[["__scopeId","data-v-dfbdb871"]]),VP={class:"flex gap-8 h-48 items-center justify-end transition-all w-full xs:flex-wrap-reverse"},FP={class:"flex flex-1 gap-8"},TP=r.defineComponent({__name:"FmTableToolbar",props:{searchModel:{default:""},searchable:{type:Boolean},filterable:{type:Boolean},chips:{default:()=>[]},actions:{default:()=>[]},zIndexForBottomSheet:{default:void 0}},emits:["update:search-model","click:remove-chip"],setup(t){const e=t,{breakpoints:n}=Jo(),o=r.computed(()=>{const l=[];e.searchable&&l.push({label:"Search",icon:"search",key:"search"}),e.filterable&&l.push({label:"Filter",icon:"filter_alt",key:"filter"});const c=l.concat(e.actions);if(n.value.xs){const[y,v,w,...x]=c;return x.length===0?{actionButtons:[y,v,w].filter(I=>I),collapse:x}:{actionButtons:[y,v].filter(I=>I),collapse:[w,...x]}}const[u,h,p,m,...b]=c;return b.length===0?{actionButtons:[u,h,p,m].filter(y=>y),collapse:b}:{actionButtons:[u,h,p].filter(y=>y),collapse:[m,...b]}}),i=r.ref(!1);function a(l){if(n.value.xs){l.stopPropagation(),i.value=!0;return}}const s=Pe(e,"searchModel");return(l,c)=>(r.openBlock(),r.createElementBlock("div",VP,[r.renderSlot(l.$slots,"chips",{},()=>[l.chips.length?(r.openBlock(),r.createBlock(Hc,{key:0,class:"min-w-0 mr-auto",items:l.chips,removable:"",onChipClosed:c[0]||(c[0]=u=>l.$emit("click:remove-chip",u))},null,8,["items"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",FP,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.actionButtons,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u.key},[u.key==="search"?r.renderSlot(l.$slots,"action-search",{key:0},()=>[r.createVNode(Tl,{"model-value":r.unref(s),"onUpdate:modelValue":c[1]||(c[1]=h=>r.isRef(s)?s.value=h:null),class:"w-full",collapsible:""},null,8,["model-value"])]):r.renderSlot(l.$slots,`action-${u.key}`,{key:1},()=>[r.createVNode(me,{"prepend-icon":u.icon,variant:"tertiary",onClick:h=>l.$emit(`click:action-${u.key}`)},null,8,["prepend-icon","onClick"])])],64))),128)),o.value.collapse.length?(r.openBlock(),r.createBlock(io,{key:0},{"menu-button":r.withCtx(()=>[r.createVNode(me,{"prepend-icon":"more_vert",variant:"tertiary",onClick:a})]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(xt,{key:u.key,label:u.label,icon:u.icon,onClick:h=>{l.$emit(`click:action-${u.key}`),i.value=!1}},null,8,["label","icon","onClick"]))),128))]),_:1})):r.createCommentVNode("",!0),l.$slots.append?r.renderSlot(l.$slots,"append",{key:1}):r.createCommentVNode("",!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Uc,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u),"dismiss-away":"","z-index":e.zIndexForBottomSheet},{default:r.withCtx(()=>[r.createVNode(rf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(af,{key:u.key,label:u.label,class:"hover:bg-fm-color-neutral-gray-100",onClick:h=>{l.$emit(`click:action-${u.key}`),i.value=!1}},null,8,["label","onClick"]))),128))]),_:1})]),_:1},8,["modelValue","z-index"])]))]))}});var MP={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",npm_package_exports___require:"./dist/feedmepos-ui-library.umd.cjs",npm_package_dependencies_prettier:"^3.2.5",npm_package_devDependencies__types_node:"^18.19.21",DOTNET_NOLOGO:"1",npm_package_devDependencies__originjs_vite_plugin_federation:"^1.3.5",USER:"runner",npm_package_dependencies__rollup_plugin_commonjs:"^26.0.1",npm_config_user_agent:"pnpm/9.15.9 npm/? node/v20.20.2 linux x64",CI:"true",npm_package_dependencies_v_wave:"^1.5.1",npm_package_dependencies_vue:"^3.4.21",USE_BAZEL_FALLBACK_VERSION:"silent:",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",PIPX_HOME:"/opt/pipx",npm_package_dependencies__types_lodash:"^4.17.7",npm_package_devDependencies_tsc_alias:"^1.8.8",npm_package_devDependencies_vite:"^5.1.4",npm_package_peerDependencies_tailwindcss:"^3.4.1",npm_node_execpath:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_package_files_0:"dist",npm_package_scripts_build_lib:"vite build --mode library",npm_package_dependencies_vue_virtual_scroller:"2.0.0-beta.8",HOME:"/home/runner",npm_package_exports___meta_types:"./dist/meta.d.ts",npm_package_dependencies_chart_js:"^4.4.2",npm_package_devDependencies_sass:"^1.71.1",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_package_devDependencies_vite_plugin_static_copy:"^0.17.1",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"feedmepos",npm_package_scripts_build_components:'run-p type-check "build-lib {@}" --',GRADLE_HOME:"/usr/share/gradle-9.4.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/29.0.14206865",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",npm_package_scripts_type_check:"vue-tsc --noEmit -p tsconfig.app.json --composite false",npm_package_dependencies__tanstack_vue_virtual:"^3.13.0",npm_package_devDependencies_npm_run_all2:"^6.1.2",npm_package_peerDependencies_vue:"^3.4.21",GITHUB_REPOSITORY_OWNER_ID:"54831515",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_package_scripts_build_federation:"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp",npm_package_devDependencies_vue_component_meta:"^2.0.13",SYSTEMD_EXEC_PID:"1884",ACTIONS_ORCHESTRATION_ID:"54995c96-d181-41c1-8c98-439e3ed5b685.deploy.__default",npm_package_dependencies_dayjs:"^1.11.10",npm_package_devDependencies__tsconfig_node18:"^18.2.2",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",npm_package_devDependencies_tailwindcss:"^3.4.1",npm_package_devDependencies_typescript:"~5.2.2",JAVA_HOME_25_X64:"/usr/lib/jvm/temurin-25-jdk-amd64",NVM_DIR:"/home/runner/.nvm",npm_package_homepage:"ui.feedme.ai",npm_package_devDependencies_vue_tsc:"^1.8.27",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20260413.86.1",npm_package_scripts_dev:"vite --port 5273",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",STORE_PATH:"/home/runner/setup-pnpm/node_modules/.bin/store/v3",SWIFT_PATH:"/usr/share/swift/usr/bin",npm_package_type:"module",npm_package_dependencies__vueuse_core:"^10.9.0",npm_package_devDependencies__vue_tsconfig:"^0.4.0",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:15362",GITHUB_WORKFLOW:"Publish Vue",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",npm_package_module:"./dist/feedmepos-ui-library.js",npm_package_devDependencies_autoprefixer:"^10.4.17",RUNNER_DEBUG:"1",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.13/x64",npm_package_scripts_build_tailwind_plugin:"vite build --mode tailwind-plugin",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",npm_package_dependencies_fuzzy:"^0.1.3",npm_package_devDependencies__types_uuid:"^10.0.0",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GOROOT_1_25_X64:"/opt/hostedtoolcache/go/1.25.9/x64",GITHUB_RUN_ID:"24823263517",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"a8417ca1e01aa8fb1d9054e44e169d7a1cce3fa3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",npm_package_exports___import:"./dist/feedmepos-ui-library.js",npm_package_devDependencies__vitejs_plugin_vue:"^5.0.4",GITHUB_WORKFLOW_REF:"feedmepos/ui-library/.github/workflows/publish-vue.yml@refs/heads/main",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fba73558-16ce-4dc7-84f6-12aadce10ec0",INVOCATION_ID:"b64080d07f3d40c88833f700aa2166be",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",npm_package_name:"@feedmepos/ui-library",npm_package_repository_type:"git",GITHUB_ACTION:"__run_4",GITHUB_RUN_NUMBER:"340",GITHUB_TRIGGERING_ACTOR:"mmjang",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",npm_package_dependencies_vue_country_flag_next:"^2.3.2",npm_config_frozen_lockfile:"",npm_package_exports___styles_css:"./dist/style.css",npm_package_scripts_build_tailwind_styling:"vite build --mode tailwind-styling",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",npm_package_scripts_generate_component_meta:"node ./scripts/generate-component-meta.js",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies_eslint:"^8.57.0",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000062662",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"feedmepos/ui-library",npm_package_main:"./dist/feedmepos-ui-library.umd.cjs",npm_package_scripts_build_types:"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false",npm_package_dependencies__feedmepos_core:"^2.10.12",npm_package_devDependencies__types_debounce:"^1.2.4",npm_lifecycle_script:"vite build --mode library",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",npm_package_exports___tailwind_plugin:"./dist/tailwind-plugin.js",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"677015340",GITHUB_ACTIONS:"true",NODE_PATH:"/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/run-p/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"1.10.2",npm_package_repository_url:"git+https://github.com/feedmepos/ui-library.git",npm_package_dependencies__tanstack_vue_table:"^8.13.2",npm_package_dependencies_vuedraggable:"^4.1.0",npm_package_devDependencies__rushstack_eslint_patch:"^1.7.2",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_lifecycle_event:"build-lib",GITHUB_REF_PROTECTED:"false",npm_package_scripts_build:"vite build",npm_package_dependencies_uuid:"^10.0.0",GITHUB_WORKSPACE:"/home/runner/work/ui-library/ui-library",ACCEPT_EULA:"Y",GITHUB_JOB:"deploy",npm_package_dependencies_lodash:"^4.17.21",GITHUB_SHA:"a8417ca1e01aa8fb1d9054e44e169d7a1cce3fa3",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mmjang",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_package_scripts_build_pack:"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../",npm_package_exports___tailwind_styling:"./dist/tailwind-styling.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/ui-library/ui-library/packages/vue",GITHUB_ACTOR_ID:"5045203",RUNNER_WORKSPACE:"/home/runner/work/ui-library",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",npm_package_exports___types:"./dist/index.d.ts",npm_package_devDependencies__types_chart_js:"^2.9.41",npm_config_recursive:"true",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_devDependencies_eslint_plugin_vue:"^9.22.0",npm_package_devDependencies_postcss:"^8.4.35",npm_package_peerDependencies_vite:"^5.1.4",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",PSModulePath:"/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0",CHROME_BIN:"/usr/bin/google-chrome",npm_package_scripts_preview:"vite preview",npm_package_scripts_deploy:"pnpm run build:lib && pnpm publish --no-git-checks .",npm_package_dependencies__floating_ui_vue:"^1.0.6",npm_package_dependencies_debounce:"^2.0.0",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",npm_package_bugs:"https://feedmepos.atlassian.net/browse/CT-3",npm_package_scripts_register_components:"node ./scripts/register-components.js && pnpm lint",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",INIT_CWD:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_scripts_copy_changelog:"cp ./CHANGELOG.md ./dist/CHANGELOG.md",npm_package_dependencies_chartjs_plugin_datalabels:"^2.2.0",npm_package_dependencies_libphonenumber_js:"^1.10.57",NODE_ENV:"production"}};function sr(t,e){return typeof t=="function"?t(e):t}function vn(t,e){return n=>{e.setState(o=>({...o,[t]:sr(n,o[t])}))}}function zl(t){return t instanceof Function}function LP(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function zP(t,e){const n=[],o=i=>{i.forEach(a=>{n.push(a);const s=e(a);s!=null&&s.length&&o(s)})};return o(t),n}function ge(t,e,n){let o=[],i;return a=>{let s;n.key&&n.debug&&(s=Date.now());const l=t(a);if(!(l.length!==o.length||l.some((h,p)=>o[p]!==h)))return i;o=l;let u;if(n.key&&n.debug&&(u=Date.now()),i=e(...l),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-s)*100)/100,p=Math.round((Date.now()-u)*100)/100,m=p/16,b=(y,v)=>{for(y=String(y);y.length<v;)y=" "+y;return y};console.info(`%c⏱ ${b(p,5)} /${b(h,5)} ms`,`
114
+ }`;var Ie=$v(function(){return Ue(N,pe+"return "+te).apply(n,z)});if(Ie.source=te,eh(Ie))throw Ie;return Ie}function NG(d){return je(d).toLowerCase()}function RG(d){return je(d).toUpperCase()}function VG(d,f,g){if(d=je(d),d&&(g||f===n))return l2(d);if(!d||!(f=xn(f)))return d;var k=Jn(d),A=Jn(f),N=d2(k,A),z=c2(k,A)+1;return br(k,N,z).join("")}function FG(d,f,g){if(d=je(d),d&&(g||f===n))return d.slice(0,f2(d)+1);if(!d||!(f=xn(f)))return d;var k=Jn(d),A=c2(k,Jn(f))+1;return br(k,0,A).join("")}function TG(d,f,g){if(d=je(d),d&&(g||f===n))return d.replace(ep,"");if(!d||!(f=xn(f)))return d;var k=Jn(d),A=d2(k,Jn(f));return br(k,A).join("")}function MG(d,f){var g=G,k=Q;if(ct(f)){var A="separator"in f?f.separator:A;g="length"in f?Be(f.length):g,k="omission"in f?xn(f.omission):k}d=je(d);var N=d.length;if(Ti(d)){var z=Jn(d);N=z.length}if(g>=N)return d;var j=g-Mi(k);if(j<1)return k;var q=z?br(z,0,j).join(""):d.slice(0,j);if(A===n)return q+k;if(z&&(j+=q.length-j),th(A)){if(d.slice(j).search(A)){var $,ee=q;for(A.global||(A=bp(A.source,je(Iy.exec(A))+"g")),A.lastIndex=0;$=A.exec(ee);)var te=$.index;q=q.slice(0,te===n?j:te)}}else if(d.indexOf(xn(A),j)!=j){var de=q.lastIndexOf(A);de>-1&&(q=q.slice(0,de))}return q+k}function LG(d){return d=je(d),d&&KL.test(d)?d.replace(Dy,p_):d}var zG=ji(function(d,f,g){return d+(g?" ":"")+f.toUpperCase()}),rh=ev("toUpperCase");function Zv(d,f,g){return d=je(d),f=g?n:f,f===n?l_(d)?g_(d):$z(d):d.match(f)||[]}var $v=Ne(function(d,f){try{return wn(d,n,f)}catch(g){return eh(g)?g:new xe(g)}}),_G=Mo(function(d,f){return Nn(f,function(g){g=po(g),Fo(d,g,Zp(d[g],d))}),d});function HG(d){var f=d==null?0:d.length,g=ye();return d=f?lt(d,function(k){if(typeof k[1]!="function")throw new Rn(s);return[g(k[0]),k[1]]}):[],Ne(function(k){for(var A=-1;++A<f;){var N=d[A];if(wn(N[0],this,k))return wn(N[1],this,k)}})}function UG(d){return pH(Fn(d,p))}function ih(d){return function(){return d}}function WG(d,f){return d==null||d!==d?f:d}var jG=nv(),GG=nv(!0);function ln(d){return d}function ah(d){return N2(typeof d=="function"?d:Fn(d,p))}function QG(d){return V2(Fn(d,p))}function XG(d,f){return F2(d,Fn(f,p))}var qG=Ne(function(d,f){return function(g){return ss(g,d,f)}}),KG=Ne(function(d,f){return function(g){return ss(d,g,f)}});function sh(d,f,g){var k=It(f),A=Od(f,k);g==null&&!(ct(f)&&(A.length||!k.length))&&(g=f,f=d,d=this,A=Od(f,It(f)));var N=!(ct(g)&&"chain"in g)||!!g.chain,z=zo(d);return Nn(A,function(j){var q=f[j];d[j]=q,z&&(d.prototype[j]=function(){var $=this.__chain__;if(N||$){var ee=d(this.__wrapped__),te=ee.__actions__=rn(this.__actions__);return te.push({func:q,args:arguments,thisArg:d}),ee.__chain__=$,ee}return q.apply(d,ur([this.value()],arguments))})}),d}function JG(){return Tt._===this&&(Tt._=S_),this}function lh(){}function YG(d){return d=Be(d),Ne(function(f){return T2(f,d)})}var ZG=zp(lt),$G=zp(o2),eQ=zp(cp);function ek(d){return Qp(d)?up(po(d)):IH(d)}function tQ(d){return function(f){return d==null?n:Qr(d,f)}}var nQ=rv(),oQ=rv(!0);function dh(){return[]}function ch(){return!1}function rQ(){return{}}function iQ(){return""}function aQ(){return!0}function sQ(d,f){if(d=Be(d),d<1||d>M)return[];var g=le,k=Ut(d,le);f=ye(f),d-=le;for(var A=hp(k,f);++g<d;)f(g);return A}function lQ(d){return Ae(d)?lt(d,po):Cn(d)?[d]:rn(kv(je(d)))}function dQ(d){var f=++k_;return je(d)+f}var cQ=Md(function(d,f){return d+f},0),uQ=_p("ceil"),fQ=Md(function(d,f){return d/f},1),pQ=_p("floor");function hQ(d){return d&&d.length?Id(d,ln,Ap):n}function mQ(d,f){return d&&d.length?Id(d,ye(f,2),Ap):n}function gQ(d){return a2(d,ln)}function bQ(d,f){return a2(d,ye(f,2))}function yQ(d){return d&&d.length?Id(d,ln,Pp):n}function vQ(d,f){return d&&d.length?Id(d,ye(f,2),Pp):n}var kQ=Md(function(d,f){return d*f},1),wQ=_p("round"),SQ=Md(function(d,f){return d-f},0);function xQ(d){return d&&d.length?pp(d,ln):0}function CQ(d,f){return d&&d.length?pp(d,ye(f,2)):0}return O.after=QW,O.ary=Ov,O.assign=Rj,O.assignIn=Gv,O.assignInWith=Jd,O.assignWith=Vj,O.at=Fj,O.before=Nv,O.bind=Zp,O.bindAll=_G,O.bindKey=Rv,O.castArray=rj,O.chain=Bv,O.chunk=pU,O.compact=hU,O.concat=mU,O.cond=HG,O.conforms=UG,O.constant=ih,O.countBy=xW,O.create=Tj,O.curry=Vv,O.curryRight=Fv,O.debounce=Tv,O.defaults=Mj,O.defaultsDeep=Lj,O.defer=XW,O.delay=qW,O.difference=gU,O.differenceBy=bU,O.differenceWith=yU,O.drop=vU,O.dropRight=kU,O.dropRightWhile=wU,O.dropWhile=SU,O.fill=xU,O.filter=AW,O.flatMap=BW,O.flatMapDeep=PW,O.flatMapDepth=IW,O.flatten=Cv,O.flattenDeep=CU,O.flattenDepth=AU,O.flip=KW,O.flow=jG,O.flowRight=GG,O.fromPairs=EU,O.functions=Gj,O.functionsIn=Qj,O.groupBy=OW,O.initial=BU,O.intersection=PU,O.intersectionBy=IU,O.intersectionWith=OU,O.invert=qj,O.invertBy=Kj,O.invokeMap=RW,O.iteratee=ah,O.keyBy=VW,O.keys=It,O.keysIn=sn,O.map=jd,O.mapKeys=Yj,O.mapValues=Zj,O.matches=QG,O.matchesProperty=XG,O.memoize=Qd,O.merge=$j,O.mergeWith=Qv,O.method=qG,O.methodOf=KG,O.mixin=sh,O.negate=Xd,O.nthArg=YG,O.omit=eG,O.omitBy=tG,O.once=JW,O.orderBy=FW,O.over=ZG,O.overArgs=YW,O.overEvery=$G,O.overSome=eQ,O.partial=$p,O.partialRight=Mv,O.partition=TW,O.pick=nG,O.pickBy=Xv,O.property=ek,O.propertyOf=tQ,O.pull=FU,O.pullAll=Ev,O.pullAllBy=TU,O.pullAllWith=MU,O.pullAt=LU,O.range=nQ,O.rangeRight=oQ,O.rearg=ZW,O.reject=zW,O.remove=zU,O.rest=$W,O.reverse=Jp,O.sampleSize=HW,O.set=rG,O.setWith=iG,O.shuffle=UW,O.slice=_U,O.sortBy=GW,O.sortedUniq=XU,O.sortedUniqBy=qU,O.split=BG,O.spread=ej,O.tail=KU,O.take=JU,O.takeRight=YU,O.takeRightWhile=ZU,O.takeWhile=$U,O.tap=hW,O.throttle=tj,O.thru=Wd,O.toArray=Uv,O.toPairs=qv,O.toPairsIn=Kv,O.toPath=lQ,O.toPlainObject=jv,O.transform=aG,O.unary=nj,O.union=eW,O.unionBy=tW,O.unionWith=nW,O.uniq=oW,O.uniqBy=rW,O.uniqWith=iW,O.unset=sG,O.unzip=Yp,O.unzipWith=Dv,O.update=lG,O.updateWith=dG,O.values=Xi,O.valuesIn=cG,O.without=aW,O.words=Zv,O.wrap=oj,O.xor=sW,O.xorBy=lW,O.xorWith=dW,O.zip=cW,O.zipObject=uW,O.zipObjectDeep=fW,O.zipWith=pW,O.entries=qv,O.entriesIn=Kv,O.extend=Gv,O.extendWith=Jd,sh(O,O),O.add=cQ,O.attempt=$v,O.camelCase=hG,O.capitalize=Jv,O.ceil=uQ,O.clamp=uG,O.clone=ij,O.cloneDeep=sj,O.cloneDeepWith=lj,O.cloneWith=aj,O.conformsTo=dj,O.deburr=Yv,O.defaultTo=WG,O.divide=fQ,O.endsWith=mG,O.eq=Zn,O.escape=gG,O.escapeRegExp=bG,O.every=CW,O.find=EW,O.findIndex=Sv,O.findKey=zj,O.findLast=DW,O.findLastIndex=xv,O.findLastKey=_j,O.floor=pQ,O.forEach=Pv,O.forEachRight=Iv,O.forIn=Hj,O.forInRight=Uj,O.forOwn=Wj,O.forOwnRight=jj,O.get=nh,O.gt=cj,O.gte=uj,O.has=Xj,O.hasIn=oh,O.head=Av,O.identity=ln,O.includes=NW,O.indexOf=DU,O.inRange=fG,O.invoke=Jj,O.isArguments=Kr,O.isArray=Ae,O.isArrayBuffer=fj,O.isArrayLike=an,O.isArrayLikeObject=yt,O.isBoolean=pj,O.isBuffer=yr,O.isDate=hj,O.isElement=mj,O.isEmpty=gj,O.isEqual=bj,O.isEqualWith=yj,O.isError=eh,O.isFinite=vj,O.isFunction=zo,O.isInteger=Lv,O.isLength=qd,O.isMap=zv,O.isMatch=kj,O.isMatchWith=wj,O.isNaN=Sj,O.isNative=xj,O.isNil=Aj,O.isNull=Cj,O.isNumber=_v,O.isObject=ct,O.isObjectLike=mt,O.isPlainObject=ps,O.isRegExp=th,O.isSafeInteger=Ej,O.isSet=Hv,O.isString=Kd,O.isSymbol=Cn,O.isTypedArray=Qi,O.isUndefined=Dj,O.isWeakMap=Bj,O.isWeakSet=Pj,O.join=NU,O.kebabCase=yG,O.last=Mn,O.lastIndexOf=RU,O.lowerCase=vG,O.lowerFirst=kG,O.lt=Ij,O.lte=Oj,O.max=hQ,O.maxBy=mQ,O.mean=gQ,O.meanBy=bQ,O.min=yQ,O.minBy=vQ,O.stubArray=dh,O.stubFalse=ch,O.stubObject=rQ,O.stubString=iQ,O.stubTrue=aQ,O.multiply=kQ,O.nth=VU,O.noConflict=JG,O.noop=lh,O.now=Gd,O.pad=wG,O.padEnd=SG,O.padStart=xG,O.parseInt=CG,O.random=pG,O.reduce=MW,O.reduceRight=LW,O.repeat=AG,O.replace=EG,O.result=oG,O.round=wQ,O.runInContext=X,O.sample=_W,O.size=WW,O.snakeCase=DG,O.some=jW,O.sortedIndex=HU,O.sortedIndexBy=UU,O.sortedIndexOf=WU,O.sortedLastIndex=jU,O.sortedLastIndexBy=GU,O.sortedLastIndexOf=QU,O.startCase=PG,O.startsWith=IG,O.subtract=SQ,O.sum=xQ,O.sumBy=CQ,O.template=OG,O.times=sQ,O.toFinite=_o,O.toInteger=Be,O.toLength=Wv,O.toLower=NG,O.toNumber=Ln,O.toSafeInteger=Nj,O.toString=je,O.toUpper=RG,O.trim=VG,O.trimEnd=FG,O.trimStart=TG,O.truncate=MG,O.unescape=LG,O.uniqueId=dQ,O.upperCase=zG,O.upperFirst=rh,O.each=Pv,O.eachRight=Iv,O.first=Av,sh(O,function(){var d={};return uo(O,function(f,g){Ge.call(O.prototype,g)||(d[g]=f)}),d}(),{chain:!1}),O.VERSION=o,Nn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){O[d].placeholder=O}),Nn(["drop","take"],function(d,f){Te.prototype[d]=function(g){g=g===n?1:Dt(Be(g),0);var k=this.__filtered__&&!f?new Te(this):this.clone();return k.__filtered__?k.__takeCount__=Ut(g,k.__takeCount__):k.__views__.push({size:Ut(g,le),type:d+(k.__dir__<0?"Right":"")}),k},Te.prototype[d+"Right"]=function(g){return this.reverse()[d](g).reverse()}}),Nn(["filter","map","takeWhile"],function(d,f){var g=f+1,k=g==S||g==C;Te.prototype[d]=function(A){var N=this.clone();return N.__iteratees__.push({iteratee:ye(A,3),type:g}),N.__filtered__=N.__filtered__||k,N}}),Nn(["head","last"],function(d,f){var g="take"+(f?"Right":"");Te.prototype[d]=function(){return this[g](1).value()[0]}}),Nn(["initial","tail"],function(d,f){var g="drop"+(f?"":"Right");Te.prototype[d]=function(){return this.__filtered__?new Te(this):this[g](1)}}),Te.prototype.compact=function(){return this.filter(ln)},Te.prototype.find=function(d){return this.filter(d).head()},Te.prototype.findLast=function(d){return this.reverse().find(d)},Te.prototype.invokeMap=Ne(function(d,f){return typeof d=="function"?new Te(this):this.map(function(g){return ss(g,d,f)})}),Te.prototype.reject=function(d){return this.filter(Xd(ye(d)))},Te.prototype.slice=function(d,f){d=Be(d);var g=this;return g.__filtered__&&(d>0||f<0)?new Te(g):(d<0?g=g.takeRight(-d):d&&(g=g.drop(d)),f!==n&&(f=Be(f),g=f<0?g.dropRight(-f):g.take(f-d)),g)},Te.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Te.prototype.toArray=function(){return this.take(le)},uo(Te.prototype,function(d,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),k=/^(?:head|last)$/.test(f),A=O[k?"take"+(f=="last"?"Right":""):f],N=k||/^find/.test(f);A&&(O.prototype[f]=function(){var z=this.__wrapped__,j=k?[1]:arguments,q=z instanceof Te,$=j[0],ee=q||Ae(z),te=function(Fe){var Me=A.apply(O,ur([Fe],j));return k&&de?Me[0]:Me};ee&&g&&typeof $=="function"&&$.length!=1&&(q=ee=!1);var de=this.__chain__,pe=!!this.__actions__.length,ve=N&&!de,Ie=q&&!pe;if(!N&&ee){z=Ie?z:new Te(this);var ke=d.apply(z,j);return ke.__actions__.push({func:Wd,args:[te],thisArg:n}),new Vn(ke,de)}return ve&&Ie?d.apply(this,j):(ke=this.thru(te),ve?k?ke.value()[0]:ke.value():ke)})}),Nn(["pop","push","shift","sort","splice","unshift"],function(d){var f=md[d],g=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",k=/^(?:pop|shift)$/.test(d);O.prototype[d]=function(){var A=arguments;if(k&&!this.__chain__){var N=this.value();return f.apply(Ae(N)?N:[],A)}return this[g](function(z){return f.apply(Ae(z)?z:[],A)})}}),uo(Te.prototype,function(d,f){var g=O[f];if(g){var k=g.name+"";Ge.call(Hi,k)||(Hi[k]=[]),Hi[k].push({name:f,func:g})}}),Hi[Td(n,x).name]=[{name:"wrapper",func:n}],Te.prototype.clone=L_,Te.prototype.reverse=z_,Te.prototype.value=__,O.prototype.at=mW,O.prototype.chain=gW,O.prototype.commit=bW,O.prototype.next=yW,O.prototype.plant=kW,O.prototype.reverse=wW,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=SW,O.prototype.first=O.prototype.head,es&&(O.prototype[es]=vW),O},Li=b_();Hr?((Hr.exports=Li)._=Li,ap._=Li):Tt._=Li}).call(mn)}(Fl,Fl.exports);var ef=Fl.exports;const U7={class:"flex gap-8 items-center"},W7=["type","onInput","onKeydown"],j7=De(r.defineComponent({__name:"FmPinField",props:{modelValue:{default:()=>[]},length:{default:6},type:{default:"number"},isError:{type:Boolean},masked:{type:Boolean,default:!1}},emits:["update:modelValue","complete","focus"],setup(t,{emit:e}){const n=e,o=t,i=Pe(o,"modelValue"),a=r.ref([]),s=(m,b)=>{const y=m.target;if(o.type==="number"&&!/^[0-9]$/g.test(y.value)){y.value="";return}y.value=y.value.slice(-1),u(y.value,b),a.value[b+1]?a.value[b+1].focus():a.value[b].blur()},l=(m,b)=>{m.preventDefault();const y=m.target;y.value="",u(null,b),a.value[b-1]?a.value[b-1].focus():a.value[b].focus()},c=(m,b)=>{m.preventDefault(),m.key==="ArrowLeft"&&(a.value[b-1]?a.value[b-1].focus():a.value[b].focus()),m.key==="ArrowRight"&&(a.value[b+1]?a.value[b+1].focus():a.value[b].focus())},u=(m,b)=>{i.value=i.value.toSpliced(b,1,m)},h=(m,b)=>{a.value[b]=m};r.onMounted(()=>{const m=Array.from(Array(o.length).fill(null));Array.isArray(i.value)&&i.value.forEach((b,y)=>{b!==null&&y<m.length&&(m[y]=b)}),i.value=m});const p=r.computed(()=>ef.isArray(i.value)?i.value.map(m=>m===null?" ":m).join(""):new Array(o.length).fill(" ").join(""));return r.watch([()=>{var m;return(m=a.value)==null?void 0:m.length},p],()=>{var m,b;((m=a.value)==null?void 0:m.length)>0&&((b=i.value)==null||b.forEach((y,v)=>{v<o.length&&(a.value[v].value=y??"")}))},{immediate:!0,flush:"post"}),r.watch(()=>i.value,()=>{i.value.every(m=>m!==null)&&n("complete",i.value.join(""))}),(m,b)=>(r.openBlock(),r.createElementBlock("div",U7,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.length,(y,v)=>(r.openBlock(),r.createElementBlock("input",{key:y,ref_for:!0,ref:w=>h(w,v),class:r.normalizeClass(["fm-pin-field",{[m.isError?"fm-pin-field--error":"fm-pin-field--populated"]:r.unref(i)[v]!==null}]),inputmode:"numeric",type:m.masked?"password":"text",onFocus:b[0]||(b[0]=w=>n("focus")),onInput:w=>s(w,v),onKeydown:[r.withKeys(w=>l(w,v),["backspace"]),r.withKeys(w=>c(w,v),["arrow-left","arrow-right"])]},null,42,W7))),128))]))}}),[["__scopeId","data-v-aec3f93d"]]),G7={class:"fm-radio-btn"},Q7={class:"relative flex items-center justify-center w-6 h-6"},X7={class:"fm-radio-btn__input--container"},q7=["checked","disabled","value"],K7={class:"fm-typo-en-body-lg-400"},J7={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},Y7=De(r.defineComponent({__name:"FmRadio",props:{modelValue:{default:null},value:{},label:{default:""},sublabel:{default:""},disabled:{type:Boolean,default:void 0}},emits:["update:modelValue"],setup(t){const e=t,n=Pe(e,"modelValue"),o=r.ref(),i=r.inject(Jh,null),a=r.inject(Ke,null),s=()=>{l.value||(i?i.updateValue(e.value):n.value=e.value)},l=r.computed(()=>e.disabled??(i==null?void 0:i.getDisabled())??(a==null?void 0:a.getDisabled())??!1),c=r.computed(()=>i?e.value===i.groupValue.value:n.value===e.value);return(u,h)=>{const p=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",G7,[r.createElementVNode("label",{class:r.normalizeClass([{"fm-radio-btn--wrapper":!0,"cursor-not-allowed text-fm-color-typo-disabled":l.value,"cursor-pointer":!l.value},"space-x-8",u.sublabel?"items-start":"items-center"]),onClick:s},[r.createElementVNode("div",Q7,[r.withDirectives((r.openBlock(),r.createElementBlock("div",X7,[r.createElementVNode("input",{ref_key:"inputEl",ref:o,checked:c.value,disabled:l.value,value:u.value,class:"fm-radio-btn__input--btn",type:"radio"},null,8,q7)])),[[p,!l.value]])]),r.createElementVNode("div",{class:r.normalizeClass([u.sublabel?"py-0":"py-0.5","space-y-4","flex-1","min-w-0"])},[r.renderSlot(u.$slots,"label",{},()=>[r.createElementVNode("div",K7,r.toDisplayString(u.label),1),u.sublabel?(r.openBlock(),r.createElementBlock("div",J7,r.toDisplayString(u.sublabel),1)):r.createCommentVNode("",!0)],!0)],2)],2)])}}}),[["__scopeId","data-v-9d8dbc91"]]),Z7=r.defineComponent({__name:"FmRadioGroup",props:{modelValue:{},inline:{type:Boolean,default:!1},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[t=>!ef.isNil(t)||"This field is required"]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=Pe(e,"modelValue"),o=r.inject(Ke,null);r.provide(Jh,{groupValue:n,getDisabled:()=>i.value,updateValue(a){n.value=a}});const i=r.computed(()=>e.disabled??(o==null?void 0:o.getDisabled())??!1);return(a,s)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=l=>r.isRef(n)?n.value=l:null),disabled:i.value,"helper-state":a.helperState,"helper-text":a.helperText,info:a.labelInfo,label:a.label,optional:a.labelMark==="optional",required:a.labelMark==="required",rules:a.rules},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass({"flex items-center gap-16 justify-start":a.inline,"flex flex-col gap-8":!a.inline})},[r.renderSlot(a.$slots,"default")],2)]),_:2},[a.label||a.$slots.label?{name:"label",fn:r.withCtx(()=>[r.renderSlot(a.$slots,"label")]),key:"0"}:void 0,a.helperText||a.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(a.$slots,"helper-text")]),key:"1"}:void 0]),1032,["modelValue","disabled","helper-state","helper-text","info","label","optional","required","rules"]))}}),Tl=r.defineComponent({__name:"FmSearch",props:{placeholder:{default:""},minLength:{default:0},maxLength:{default:NaN},inputmode:{default:"text"},readonly:{type:Boolean,default:!1},labelMark:{default:"none"},showSuccess:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},prependText:{default:""},appendText:{default:""},labelInfo:{default:""},showWordCount:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},maxWidth:{default:void 0},autofocus:{type:Boolean,default:!1},modelValue:{},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>{const{modelValue:m,disabled:b,...y}=e;return y}),i=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),a=Pe(e,"modelValue"),s=r.ref(!1),l=r.ref(),c=r.ref(e.collapsible),u=r.ref(e.collapsible);function h(){c.value=!1,r.nextTick(()=>{var m,b,y,v;(v=(y=(b=(m=l.value)==null?void 0:m.querySelector)==null?void 0:b.call(m,"input"))==null?void 0:y.focus)==null||v.call(y)})}function p(m){if(s.value=m,!!e.collapsible){if(m){u.value=!1;return}c.value=a.value.length===0,c.value&&setTimeout(()=>{u.value=!0},250)}}return(m,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"componentRoot",ref:l,class:"flex items-center justify-end min-w-48 relative"},[r.createElementVNode("div",{class:r.normalizeClass(["transition-all",{"opacity-100":!m.collapsible||!c.value,"opacity-0 pointer-events-none":m.collapsible&&c.value},m.collapsible&&c.value?"w-9 h-9":"w-full"])},[r.createVNode(Dr,r.mergeProps({modelValue:r.unref(a),"onUpdate:modelValue":b[1]||(b[1]=y=>r.isRef(a)?a.value=y:null),disabled:i.value||m.collapsible&&c.value},o.value,{autofocus:e.autofocus,onFocusChanged:p}),r.createSlots({_:2},[!m.collapsible||!s.value?{name:"prepend",fn:r.withCtx(()=>[r.createVNode(ce,{name:"search"})]),key:"0"}:void 0,r.unref(a).length?{name:"append",fn:r.withCtx(()=>[r.createVNode(ce,{class:"cursor-pointer text-fm-color-neutral-gray-300",name:"close",onClick:b[0]||(b[0]=y=>a.value="")})]),key:"1"}:void 0]),1040,["modelValue","disabled","autofocus"])],2),m.collapsible?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["absolute bottom-0 right-0",c.value?"opacity-100":"opacity-0 pointer-events-none"]),style:r.normalizeStyle({transition:"opacity 150ms",transitionTimingFunction:c.value?"cubic-bezier(.95,-0.01,.82,.6)":"ease-out"})},[r.createVNode(me,{icon:"search",variant:"tertiary",onClick:h})],6)):r.createCommentVNode("",!0)],512))}}),$7={key:0,class:"flex fm-typo-en-title-sm-600 items-center justify-between text-fm-color-typo-primary"},eB={key:0},tB={class:"h-full overflow-y-auto"},nB={key:1,class:"flex gap-8 items-center"},nb=De(r.defineComponent({__name:"FmTopSheet",props:{header:{default:""},modelValue:{type:Boolean,default:!1},dismissAway:{type:Boolean,default:!1},fullscreenSize:{default:void 0},zIndex:{default:void 0},noOverlay:{type:Boolean,default:!1}},emits:["update:modelValue","on:clickedAway"],setup(t){const e=t,n=Pe(e,"modelValue");return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{onClick:i[0]||(i[0]=a=>n.value=!0)},[r.renderSlot(o.$slots,"top-sheet-button",{},void 0,!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.unref(n)?(r.openBlock(),r.createBlock(fi,{key:0,"dismiss-away":e.dismissAway,"z-index":e.zIndex,transparent:e.noOverlay,onClose:i[1]||(i[1]=a=>n.value=!1),onClickedAway:i[2]||(i[2]=a=>o.$emit("on:clickedAway"))},{default:r.withCtx(()=>[r.createVNode(r.Transition,{name:o.fullscreenSize?`slide-${o.fullscreenSize}`:"slide",appear:""},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["fm-top-sheet",`fm-top-sheet--fullscreen-${o.fullscreenSize}`,e.noOverlay&&"shadow-md"])},[o.header||o.$slots["top-sheet-header"]?(r.openBlock(),r.createElementBlock("div",$7,[r.renderSlot(o.$slots,"top-sheet-header",{},()=>[o.header?(r.openBlock(),r.createElementBlock("div",eB,r.toDisplayString(o.header),1)):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",tB,[r.renderSlot(o.$slots,"default",{},void 0,!0)]),o.$slots["top-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",nB,[r.renderSlot(o.$slots,"top-sheet-footer",{},void 0,!0)])):r.createCommentVNode("",!0)],2)]),_:3},8,["name"])]),_:3},8,["dismiss-away","z-index","transparent"])):r.createCommentVNode("",!0)]),_:3})]))]))}}),[["__scopeId","data-v-6e83c161"]]);var tf={exports:{}};function ob(t,e=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:o}=typeof n=="boolean"?{immediate:n}:n;let i,a,s,l,c;function u(){const m=i,b=a;return i=void 0,a=void 0,c=t.apply(m,b),c}function h(){const m=Date.now()-l;m<e&&m>=0?s=setTimeout(h,e-m):(s=void 0,o||(c=u()))}const p=function(...m){if(i&&this!==i)throw new Error("Debounced method called with different contexts.");i=this,a=m,l=Date.now();const b=o&&!s;return s||(s=setTimeout(h,e)),b&&(c=u()),c};return p.clear=()=>{s&&(clearTimeout(s),s=void 0)},p.flush=()=>{s&&p.trigger()},p.trigger=()=>{c=u(),p.clear()},p}tf.exports.debounce=ob,tf.exports=ob;var oB=tf.exports;const nf=zs(oB);var rb={exports:{}};(function(t,e){(function(){var n={};t.exports=n,n.simpleFilter=function(o,i){return i.filter(function(a){return n.test(o,a)})},n.test=function(o,i){return n.match(o,i)!==null},n.match=function(o,i,a){a=a||{};var s=0,l=[],c=i.length,u=0,h=0,p=a.pre||"",m=a.post||"",b=a.caseSensitive&&i||i.toLowerCase(),y;o=a.caseSensitive&&o||o.toLowerCase();for(var v=0;v<c;v++)y=i[v],b[v]===o[s]?(y=p+y+m,s+=1,h+=1+h):h=0,u+=h,l[l.length]=y;return s===o.length?(u=b===o?1/0:u,{rendered:l.join(""),score:u}):null},n.filter=function(o,i,a){return!i||i.length===0?[]:typeof o!="string"?i:(a=a||{},i.reduce(function(s,l,c,u){var h=l;a.extract&&(h=a.extract(l));var p=n.match(o,h,a);return p!=null&&(s[s.length]={string:p.rendered,score:p.score,index:c,original:l}),s},[]).sort(function(s,l){var c=l.score-s.score;return c||s.index-l.index}))}})()})(rb);var rB=rb.exports;const iB=zs(rB);function Ml(t,e){const[n]=iB.filter(t.toLocaleLowerCase(),[e],{pre:"|",post:"|",extract(i){return i.toLocaleLowerCase()}});if(!n)return{label:e,segments:[{segment:e,isMatch:!1}],matched:!1};const o=n.string.toString().replace(/\|\|/g,"").split("|").reduce((i,a,s)=>(i.push({segment:a,isMatch:s%2!==0}),i),new Array);return{label:e,segments:o,matched:!0}}const aB={class:"flex flex-col gap-4"},sB={class:"bg-white flex gap-4 px-24 py-8 sticky top-0"},lB={class:"hidden sm:inline xs:inline"},dB={key:0},cB={key:0,class:"flex flex-col"},uB={class:"flex flex-col"},fB={class:"flex items-center px-24 py-12"},pB={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},hB=r.createElementVNode("div",{class:"py-4"},[r.createElementVNode("hr",{class:"border-fm-color-neutral-gray-100"})],-1),mB=["onClick"],gB={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},bB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-primary"},yB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-typo-secondary"},vB={key:3,class:"flex flex-col"},kB=["onClick"],wB={class:"flex flex-col gap-4"},SB={key:0,class:"text-fm-color-typo-secondary"},xB={class:"px-16 py-4"},CB=5,AB=r.defineComponent({__name:"FmGlobalSearch",props:{show:{type:Boolean,default:!1},modelValue:{default:""},suggestions:{default:void 0},onSearch:{type:Function,default:void 0},placeholder:{default:""},hintPlaceholder:{default:""},notFoundPlaceholder:{default:""},recentSearchKey:{default:""}},emits:["dismiss","submit","update:show","update:modelValue"],setup(t,{emit:e}){const n=t,o=e;function i(){if(!n.recentSearchKey)return;const U=n.recentSearchKey;localStorage.removeItem(U),l.value=[]}function a(){if(!n.recentSearchKey)return;const U=n.recentSearchKey,G=localStorage.getItem(U);if(!G)return[];try{return JSON.parse(G)}catch{return new Array}}const s=nf(function(G){if(!n.recentSearchKey)return;const Q=n.recentSearchKey,F=G().trim();if(!Q||!F)return;const E=a()??[],S=[...new Set([F,...E])].slice(0,CB),D=JSON.stringify(S);return localStorage.setItem(Q,D),l.value=S,S},800),l=r.ref(a()),c=Pe(n,"show");r.watch([()=>n.show],()=>{n.show?(p.value=null,n.suggestions&&I()):o("dismiss")});const u=Pe(n,"modelValue"),h=r.ref(n.modelValue);r.watch([()=>h.value],()=>{V()});const p=r.ref(null),m=r.ref(!0),b=r.computed(()=>{var U;return m.value?(U=p.value)==null?void 0:U.slice(0,5):p.value});r.watch([()=>p.value],([])=>{m.value=!0});const y=r.computed(()=>p.value===null),v=r.ref(!1),w=r.ref(""),x=()=>h.value;async function I(){if(!c.value)return;const U=x();if(!U)return;const G=Math.random().toString();if(w.value=G,n.suggestions){p.value=n.suggestions.map(Q=>({label:Ml(U,Q.label),sublabel:Q.sublabel?Ml(U,Q.sublabel):null})).filter(Q=>{var F;return Q.label.matched||((F=Q.sublabel)==null?void 0:F.matched)}),s(x);return}if(n.onSearch)try{v.value=!0;const Q=await n.onSearch(U);G===w.value&&(p.value=Q.map(F=>({label:Ml(U,F.label),sublabel:F.sublabel?Ml(U,F.sublabel):null})))}catch{G===w.value&&(p.value=[])}finally{G===w.value&&(v.value=!1,s(x))}}function R(U){c.value=!1,o("dismiss"),u.value=U}const V=nf(I),B=r.computed(()=>l.value&&l.value.length===0),L=r.computed(()=>(!h.value||y.value)&&!B.value),P=r.computed(()=>(!h.value||y.value)&&B.value),_=r.computed(()=>h.value&&p.value&&p.value.length===0);return(U,G)=>(r.openBlock(),r.createBlock(nb,{"model-value":r.unref(c),"onUpdate:modelValue":G[4]||(G[4]=Q=>r.isRef(c)?c.value=Q:null),"fullscreen-size":"sm","dismiss-away":""},{default:r.withCtx(()=>{var Q,F;return[r.createElementVNode("div",aB,[r.createElementVNode("div",sB,[r.createElementVNode("div",lB,[r.createVNode(me,{"prepend-icon":"arrow_back",variant:"tertiary",onClick:G[0]||(G[0]=E=>c.value=!1)})]),r.createVNode(Tl,{"model-value":h.value,"onUpdate:modelValue":G[1]||(G[1]=E=>h.value=E),class:"flex-1",placeholder:U.placeholder},null,8,["model-value","placeholder"])]),v.value?(r.openBlock(),r.createElementBlock("div",dB,[r.createVNode(xr,{size:"xl"})])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[L.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[U.recentSearchKey&&((Q=l.value)!=null&&Q.length)?(r.openBlock(),r.createElementBlock("div",cB,[r.createElementVNode("div",uB,[r.createElementVNode("div",fB,[r.createElementVNode("div",pB,r.toDisplayString(r.unref(H)("search.recent")),1),r.createVNode(Zo),r.createVNode(me,{label:r.unref(H)("search.clearHistory"),variant:"plain",size:"md",onClick:G[2]||(G[2]=E=>i())},null,8,["label"])]),hB]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(E,S)=>(r.openBlock(),r.createElementBlock("div",{key:S,class:"cursor-pointer flex gap-8 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12",onClick:D=>h.value=E},[r.createVNode(ce,{size:"lg",name:"history"}),r.createElementVNode("div",gB,r.toDisplayString(E),1)],8,mB))),128))])])):r.createCommentVNode("",!0)],64)):P.value?r.renderSlot(U.$slots,"hint-placeholder",{key:1},()=>[r.createElementVNode("div",bB,r.toDisplayString(U.hintPlaceholder),1)]):_.value?r.renderSlot(U.$slots,"not-found-placeholder",{key:2},()=>[r.createElementVNode("div",yB,r.toDisplayString(U.notFoundPlaceholder||`No result found for “${h.value}”`),1)]):(r.openBlock(),r.createElementBlock("div",vB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.value,(E,S)=>r.renderSlot(U.$slots,"search-result-item",r.mergeProps({key:S,ref_for:!0},{result:E}),()=>[r.createElementVNode("div",{class:"cursor-pointer flex gap-16 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12 w-full",onClick:D=>R(E.label.label)},[r.createVNode(ce,{size:"lg",name:"arrow_forward"}),r.createElementVNode("div",wB,[r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.label.segments,(D,C)=>(r.openBlock(),r.createElementBlock("span",{key:C,class:r.normalizeClass({"fm-typo-en-body-lg-400":!D.isMatch,"fm-typo-en-body-lg-600":D.isMatch})},r.toDisplayString(D.segment),3))),128))]),E.sublabel?(r.openBlock(),r.createElementBlock("div",SB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(E.sublabel.segments,(D,C)=>(r.openBlock(),r.createElementBlock("span",{key:C,class:r.normalizeClass({"fm-typo-en-body-md-400":!D.isMatch,"fm-typo-en-body-md-600":D.isMatch})},r.toDisplayString(D.segment),3))),128))])):r.createCommentVNode("",!0)])],8,kB)])),128)),r.createElementVNode("div",xB,[m.value&&(((F=p.value)==null?void 0:F.length)??0)>5?(r.openBlock(),r.createBlock(me,{key:0,label:`show ${p.value.length-5} more results`,variant:"plain",onClick:G[3]||(G[3]=E=>m.value=!1)},null,8,["label"])):r.createCommentVNode("",!0)])]))],64))])]}),_:3},8,["model-value"]))}}),EB=["disabled","inputMode","placeholder","readOnly","value"],DB={key:0},BB=["disabled"],PB=["disabled"],IB=De(r.defineComponent({__name:"FmStepperField",props:{modelValue:{},placeholder:{default:""},inputmode:{default:"numeric"},readonly:{type:Boolean},labelMark:{default:"none"},step:{default:1},min:{default:void 0},max:{default:void 0},prependIcon:{default:""},appendIcon:{default:""},isCurrency:{type:Boolean,default:!1},showSteppers:{type:Boolean,default:!0},showValidBorder:{type:Boolean,default:!1},prependText:{default:""},appendText:{default:""},labelInfo:{default:""},useGrouping:{type:Boolean,default:!0},minFractionDigits:{default:0},maxFractionDigits:{default:2},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),{isFocused:a,blur:s,focus:l}=la(),c=r.ref(null);let u;const h=B=>{if(B!==""){const L=+B.replace(/,/g,"");return isNaN(L)?null:L}return null},p=B=>u.format(B),m=B=>{if(typeof i.value!="number"){i.value=+i.value;return}if(B>0&&x.value||B<0&&I.value)return;let L=R(i.value)?i.value+B:0;L=b(L),i.value=L},b=B=>e.max!==void 0&&B>e.max?e.max:e.min!==void 0&&B<e.min?e.min:B,y=()=>{var B;i.value=h(((B=c.value)==null?void 0:B.value)??"")},v=B=>{if(![...Array(10).keys()].map(L=>L.toString()).includes(B.key)&&!["Backspace","Tab","Enter",".","-","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(B.key)){B.preventDefault();return}},w=r.computed(()=>i.value!=null?p(i.value):""),x=r.computed(()=>{let B=!1;return e.max!==void 0&&(B=i.value>=e.max),e.min!==void 0&&(B=i.value<e.min),B}),I=r.computed(()=>{let B=!1;return e.max!==void 0&&(B=i.value>e.max),e.min!==void 0&&(B=i.value<=e.min),B});r.onBeforeMount(()=>{u=new Intl.NumberFormat("en-MY",{useGrouping:e.useGrouping,minimumFractionDigits:e.minFractionDigits,maximumFractionDigits:e.maxFractionDigits,roundingMode:"trunc"})});function R(B){return typeof B=="number"&&isFinite(B)}const V=()=>{var B;(B=c.value)==null||B.focus()};return(B,L)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":L[8]||(L[8]=P=>r.isRef(i)?i.value=P:null),disabled:o.value,focused:r.unref(a),"helper-state":B.helperState,"helper-text":B.helperText,info:B.labelInfo,label:B.label,optional:B.labelMark==="optional",required:B.labelMark==="required",rules:B.rules,"blame-handler":V},{label:r.withCtx(()=>[r.renderSlot(B.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:P})=>[r.createVNode(at,{"append-icon":B.appendIcon,focused:r.unref(a),invalid:P,"prepend-icon":B.prependIcon,"show-valid-border":B.showValidBorder,class:"cursor-text"},{prepend:r.withCtx(()=>[r.renderSlot(B.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(B.$slots,"append",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([{"mr-32":B.showSteppers},"flex items-center justify-center"])},[B.appendText?(r.openBlock(),r.createElementBlock("div",DB,r.toDisplayString(B.appendText),1)):r.createCommentVNode("",!0),B.appendIcon?(r.openBlock(),r.createBlock(ce,{key:1,color:o.value?"#C7C7CC":"#1C1C1E",name:B.appendIcon,size:"md"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)],!0),B.showSteppers?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fm-stepper-field__stepper__container",r.unref(a)?"right-[6px]":"right-[7px]"])},[r.createElementVNode("button",{disabled:o.value||x.value,class:"fm-stepper-field__stepper__item",tabindex:"0",type:"button",onBlur:L[2]||(L[2]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[3]||(L[3]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onMousedown:L[4]||(L[4]=()=>m(B.step))},[r.createVNode(ce,{color:o.value||x.value?"#C7C7CC":"#1C1C1E",name:"expand_less",size:"md"},null,8,["color"])],40,BB),r.createElementVNode("button",{disabled:o.value||I.value,class:"fm-stepper-field__stepper__item",tabindex:"1",type:"button",onBlur:L[5]||(L[5]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[6]||(L[6]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onMousedown:L[7]||(L[7]=()=>m(-B.step))},[r.createVNode(ce,{color:o.value||I.value?"#C7C7CC":"#1C1C1E",name:"expand_more",size:"md"},null,8,["color"])],40,PB)],2)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.createElementVNode("input",{ref_key:"inputEl",ref:c,disabled:o.value,inputMode:B.inputmode,placeholder:B.placeholder,readOnly:B.readonly,value:w.value,class:"fm-stepper-field--input outline-none",type:"text",onBlur:L[0]||(L[0]=(..._)=>r.unref(s)&&r.unref(s)(..._)),onFocus:L[1]||(L[1]=(..._)=>r.unref(l)&&r.unref(l)(..._)),onInput:y,onKeydown:v},null,40,EB)]),_:2},1032,["append-icon","focused","invalid","prepend-icon","show-valid-border"])]),"helper-text":r.withCtx(()=>[r.renderSlot(B.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-62601f37"]]),OB=["disabled","maxlength","minlength","placeholder","readOnly","value"],NB=De(r.defineComponent({__name:"FmTextarea",props:{modelValue:{default:""},placeholder:{default:""},minLength:{default:0},maxLength:{default:NaN},readonly:{type:Boolean,default:!1},labelMark:{default:"none"},showSuccess:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},labelInfo:{default:""},helperText:{default:""},helperState:{default:"none"},showWordCount:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},label:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),{isFocused:a,focus:s,blur:l}=la(),c=p=>{i.value=p.target.value},u=r.ref(null);Dm(u,r.toRef(()=>e.autofocus));const h=()=>{var p;(p=u.value)==null||p.focus()};return(p,m)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":m[2]||(m[2]=b=>r.isRef(i)?i.value=b:null),disabled:o.value,focused:r.unref(a),"helper-state":p.helperState,"helper-text":p.helperText,info:p.labelInfo,label:p.label,optional:p.labelMark==="optional",required:p.labelMark==="required",rules:p.rules,"blame-handler":h},r.createSlots({label:r.withCtx(()=>[r.renderSlot(p.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:b})=>[r.createElementVNode("div",{class:r.normalizeClass({"fm-textarea__container":!0,"fm-textarea__container--focused":r.unref(a),"fm-textarea__container--invalid":!!r.unref(i)&&b,"fm-textarea__container--valid":p.showValidBorder&&p.showSuccess&&!!r.unref(i)&&!b,"fm-textarea__container--disabled":o.value})},[r.createElementVNode("textarea",{ref_key:"inputEl",ref:u,class:r.normalizeClass({"fm-textarea--input fm-typo-en-body-lg-400":!0,"fm-color-typo-primary":!o.value,"fm-color-typo-disabled":o.value,"outline-none":!0}),disabled:o.value,maxlength:p.maxLength,minlength:p.minLength,placeholder:p.placeholder,readOnly:p.readonly,value:r.unref(i),onBlur:m[0]||(m[0]=(...y)=>r.unref(l)&&r.unref(l)(...y)),onFocus:m[1]||(m[1]=(...y)=>r.unref(s)&&r.unref(s)(...y)),onInput:c},null,42,OB)],2)]),"helper-text":r.withCtx(()=>[r.renderSlot(p.$slots,"helper-text",{},void 0,!0)]),_:2},[p.showWordCount?{name:"helper-append",fn:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([o.value?"fm-color-typo-disabled":"text-fm-color-typo-secondary","fm-typo-en-body-sm-400"])},r.toDisplayString(p.maxLength?`${r.unref(i).length} / ${p.maxLength}`:""),3)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-8bc4f92e"]]);var In=(t=>(t.AM="AM",t.PM="PM",t))(In||{});function yn(t){return t.toString().padStart(2,"0")}function RB(t){const[e,n]=t.split(":"),o=Number(e),i=Number(n),a=o>11?"PM":"AM";let s=o;return s===0?s=12:s>12&&(s-=12),`${yn(s)}:${yn(i)}:${a}`}function nn(t){const[e,n,o]=RB(t).split(":");return{hours:Number(e),minutes:Number(n),period:o}}function of({hours:t,minutes:e,period:n}){let o=t;return n==="PM"?o=t===12?t:t+12:t===12&&(o=0),`${yn(o)}:${yn(e)}`}const VB={class:"flex flex-col gap-8 fm-time-input items-center"},FB=["value","maxlength"],ib=De(r.defineComponent({__name:"TimeInput",props:{modelValue:{type:String,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e,i=r.ref();function a(p){i.value&&(i.value.value=p)}r.watch(()=>n.modelValue,a);function s(p){!/^\d$/.test(p.key)&&!["ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(p.key)&&p.preventDefault()}function l(){if(!i.value)return;const p=c(i.value.value);p==null||p<n.min?(a(yn(n.min)),o("update:model-value",n.min)):p>n.max?(a(yn(n.max)),o("update:model-value",n.max)):(a(yn(p)),o("update:model-value",p))}function c(p){return p&&/^\d+$/.test(p)?Number(p):null}function u(){var p;(p=i.value)==null||p.focus(),o("update:model-value",c(n.modelValue)+1)}function h(){var p;(p=i.value)==null||p.focus(),o("update:model-value",c(n.modelValue)-1)}return(p,m)=>(r.openBlock(),r.createElementBlock("div",VB,[r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:u},[r.createVNode(ce,{name:"expand_less",size:"md"})]),r.createElementVNode("input",{ref_key:"inputRef",ref:i,value:n.modelValue,onKeypress:s,onBlur:l,maxlength:t.max.toString().length},null,40,FB),r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:h},[r.createVNode(ce,{name:"expand_more",size:"md"})])]))}}),[["__scopeId","data-v-ced7c472"]]),TB={class:"flex fm-time-input items-center"},MB=r.createElementVNode("div",{class:"fm-typo-en-title-sm-600 w-6 flex items-center justify-center"},[r.createElementVNode("span",null,":")],-1),LB={class:"fm-time-input-periods ml-16"},zB=["onClick"],Ll=r.defineComponent({__name:"FmTimeInput",props:{modelValue:{type:Object,required:!0}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e;function i(a){const s={hours:a.hours??n.modelValue.hours,minutes:a.minutes??n.modelValue.minutes,period:a.period??n.modelValue.period},l=n.modelValue.hours;(l===12&&s.hours===11||l===11&&s.hours===12)&&(s.period=n.modelValue.period===In.AM?In.PM:In.AM),s.hours>12?s.hours=1:s.hours<1&&(s.hours=12),s.minutes>59?s.minutes=0:s.minutes<0&&(s.minutes=59),o("update:model-value",s)}return(a,s)=>(r.openBlock(),r.createElementBlock("div",TB,[r.createVNode(ib,{"model-value":r.unref(yn)(t.modelValue.hours),min:1,max:12,"onUpdate:modelValue":s[0]||(s[0]=l=>i({hours:l}))},null,8,["model-value"]),MB,r.createVNode(ib,{"model-value":r.unref(yn)(t.modelValue.minutes),min:0,max:59,"onUpdate:modelValue":s[1]||(s[1]=l=>i({minutes:l}))},null,8,["model-value"]),r.createElementVNode("div",LB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(In),l=>(r.openBlock(),r.createElementBlock("div",{key:l,class:r.normalizeClass([{"fm-time-input-period__selected":l===t.modelValue.period},"bg-fm-color-neutral-gray-100 fm-time-input-period"]),onClick:()=>i({period:l})},r.toDisplayString(l),11,zB))),128))])]))}}),_B={class:"flex gap-8"},HB={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},UB={class:"flex items-center justify-center py-16 w-full"},WB={class:"flex justify-end gap-8"},jB=r.defineComponent({__name:"FmTimePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},placeholder:{default:"HH:MM"},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=r.ref(null),s=r.computed(()=>{if(!i.value)return null;const{hours:u,minutes:h,period:p}=nn(i.value);return`${yn(u)}:${yn(h)} ${p}`});function l(){if(!a.value){i.value=null;return}const u=of(a.value);i.value=u,c.value=!1}r.onMounted(()=>{i.value&&(a.value=nn(i.value))}),r.watch(()=>i.value,u=>{u&&(a.value=nn(u))});const c=r.ref(!1);return r.watchEffect(()=>{o.value||(c.value?a.value=nn(i.value??"00:00"):a.value=i.value?nn(i.value):null)}),(u,h)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":h[3]||(h[3]=p=>r.isRef(i)?i.value=p:null),disabled:o.value,focused:c.value,"helper-state":u.helperState,"helper-text":u.helperText,info:u.labelInfo,label:u.label,optional:u.labelMark==="optional",required:u.labelMark==="required",rules:u.rules,"disable-auto-focus":"",tag:"div"},{label:r.withCtx(()=>[r.renderSlot(u.$slots,"label")]),default:r.withCtx(({invalid:p})=>[r.createVNode(Bo,{disabled:o.value,"show-popover":c.value,"z-index":u.zIndex,onPopoverChanged:h[2]||(h[2]=m=>c.value=m)},{"popover-button":r.withCtx(()=>[u.$slots["trigger-button"]?r.renderSlot(u.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:p,dropdownShowed:c.value,showValidBorder:u.showValidBorder,shouldDisable:o.value}))):(r.openBlock(),r.createBlock(at,{key:1,class:r.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer"),focused:c.value,invalid:p,"show-valid-border":u.showValidBorder},{default:r.withCtx(()=>[r.createElementVNode("div",_B,[r.createVNode(ce,{outline:!c.value,name:"schedule"},null,8,["outline"]),r.createElementVNode("div",{class:r.normalizeClass([{"text-fm-color-typo-disabled":!s.value},"grow"])},r.toDisplayString(s.value??u.placeholder??"HH:MM"),3)])]),_:2},1032,["class","focused","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",HB,[r.createElementVNode("div",UB,[r.createVNode(Ll,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":h[0]||(h[0]=m=>a.value=m)},null,8,["model-value"])]),r.createElementVNode("div",WB,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:h[1]||(h[1]=m=>c.value=!1)},null,8,["label"]),r.createVNode(me,{label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:l},null,8,["label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(u.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),GB={class:"flex gap-8"},QB={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},XB={class:"flex flex-col gap-16 items-center justify-center w-full pb-16"},qB={class:"fm-typo-en-body-lg-600 text-left w-full"},KB={class:"fm-typo-en-body-lg-600 text-left w-full"},JB={class:"flex gap-8 items-center justify-end"},YB=r.defineComponent({__name:"FmTimeRangePicker",props:{modelValue:{},disableTimeCheck:{type:Boolean,default:!1},showValidBorder:{type:Boolean,default:!1},placeholder:{default:"HH:MM"},zIndex:{default:void 0},label:{default:""},labelMark:{default:"none"},labelInfo:{default:""},disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:!1},rules:{default:()=>[]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=r.inject(Ke,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Pe(e,"modelValue"),a=r.ref(null),s=r.ref(null),l=r.computed(()=>{const v=Array.isArray(i.value);return!i.value||!v||v&&i.value.every(w=>!b(w))?null:i.value.map(w=>{const{hours:x,minutes:I,period:R}=nn(w);return`${yn(x)}:${yn(I)} ${R}`}).join(" - ")});function c(){if(!a.value||!s.value){i.value=null;return}const v=a.value,w=s.value,x=v.period===In.PM&&w.period===In.AM,R=!(v.period===In.PM&&v.hours===12&&w.period===In.PM&&w.hours!==12)&&v.period===w.period&&(v.hours>w.hours||v.hours===w.hours&&v.minutes>w.minutes),V=!e.disableTimeCheck&&(x||R),B=of(a.value),L=of(s.value);i.value=V?[L,B]:[B,L],h()}r.onMounted(()=>{Array.isArray(i.value)&&i.value.every(v=>!!v)&&(a.value=nn(i.value[0]),s.value=nn(i.value[1]))}),r.watch(()=>i.value,v=>{const w=Array.isArray(v);v&&w&&v.every(x=>b(x))&&(a.value=nn(v[0]),s.value=nn(v[1]))});const u=r.ref();function h(){var v;(v=u.value)==null||v.hide()}const p=r.ref(!1);function m(v){var w,x,I,R;v?(a.value=nn(((I=i.value)==null?void 0:I[0])??"00:00"),s.value=nn(((R=i.value)==null?void 0:R[1])??"23:59")):(a.value=(w=i.value)!=null&&w[0]?nn(i.value[0]):null,s.value=(x=i.value)!=null&&x[1]?nn(i.value[1]):null),p.value=v}const b=v=>/^(?:[01]\d|2[0-3]):[0-5]\d$/.test(v),y=r.computed(()=>e.disableTimeCheck?!1:Rt(a.value,s.value));return(v,w)=>(r.openBlock(),r.createBlock(Nt,{modelValue:r.unref(i),"onUpdate:modelValue":w[2]||(w[2]=x=>r.isRef(i)?i.value=x:null),disabled:o.value,focused:p.value,"helper-state":v.helperState,"helper-text":v.helperText,info:v.labelInfo,label:v.label,optional:v.labelMark==="optional",required:v.labelMark==="required",rules:v.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(v.$slots,"label")]),default:r.withCtx(({invalid:x})=>[r.createVNode(Bo,{ref_key:"dropdownRef",ref:u,"show-popover":p.value,width:343,"z-index":e.zIndex,onPopoverChanged:m},{"popover-button":r.withCtx(()=>[v.$slots["trigger-button"]?r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:x,dropdownShowed:p.value,showValidBorder:v.showValidBorder,shouldDisable:o.value}))):(r.openBlock(),r.createBlock(at,{key:1,class:r.normalizeClass(o.value?"cursor-not-allowed":"cursor-pointer"),focused:p.value,invalid:x,"show-valid-border":v.showValidBorder},{default:r.withCtx(()=>[r.createElementVNode("div",GB,[r.createVNode(ce,{outline:!p.value,name:"schedule"},null,8,["outline"]),r.createElementVNode("div",{class:r.normalizeClass([{"text-fm-color-typo-disabled":!l.value},"grow"])},r.toDisplayString(l.value??v.placeholder??"HH:MM"),3)])]),_:2},1032,["class","focused","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",QB,[r.createElementVNode("div",XB,[r.createElementVNode("div",null,[r.createElementVNode("div",qB,r.toDisplayString(r.unref(H)("time.start")),1),r.createVNode(Ll,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":w[0]||(w[0]=I=>a.value=I)},null,8,["model-value"])]),r.createElementVNode("div",null,[r.createElementVNode("div",KB,r.toDisplayString(r.unref(H)("time.end")),1),r.createVNode(Ll,{"model-value":s.value??{hours:0,minutes:0,period:r.unref(In).AM},"onUpdate:modelValue":w[1]||(w[1]=I=>s.value=I)},null,8,["model-value"])])]),r.createElementVNode("div",JB,[r.createVNode(me,{label:r.unref(H)("actions.cancel"),size:"md",variant:"tertiary",onClick:h},null,8,["label"]),r.createVNode(me,{disabled:y.value,label:r.unref(H)("actions.apply"),size:"md",variant:"primary",onClick:c},null,8,["disabled","label"])])])]),_:2},1032,["show-popover","z-index"])]),"helper-text":r.withCtx(()=>[r.renderSlot(v.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),rf=De(r.defineComponent({__name:"FmList",props:{separator:{type:Boolean,default:!1},disabled:{type:Boolean},activeClass:{default:""}},setup(t,{expose:e}){const n=r.ref(null);return e({element:n}),(o,i)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"element",ref:n,class:r.normalizeClass({"fm-list--separator":o.separator,activeClass:o.activeClass})},[r.renderSlot(o.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-266d01d7"]]),af=De(r.defineComponent({__name:"FmListItem",props:{tag:{default:"div"},clickable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:""},sublabel:{default:""}},setup(t){const e=t;function n(o){e.disabled&&o.stopImmediatePropagation()}return(o,i)=>{const a=r.resolveDirective("wave");return r.withDirectives((r.openBlock(),r.createBlock(e.tag,{class:r.normalizeClass({"fm-list-item":!0,"fm-list-item--disabled":o.disabled,"cursor-pointer hover:bg-fm-color-opacity-sm":o.clickable&&!o.disabled,"cursor-not-allowed":o.clickable&&o.disabled}),onClick:r.withModifiers(n,["prevent"])},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"prepend",{},void 0,!0),r.renderSlot(o.$slots,"default",{},()=>[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(`fm-typo-en-body-lg-400 line-clamp-1 break-all ${o.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-primary"}`)},r.toDisplayString(o.label),3),o.sublabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`fm-typo-en-body-md-400 line-clamp-2 break-all ${o.disabled?"text-fm-color-typo-disabled":"text-fm-color-typo-secondary"}`)},r.toDisplayString(o.sublabel),3)):r.createCommentVNode("",!0)])],!0),o.$slots.append?(r.openBlock(),r.createBlock(Zo,{key:0})):r.createCommentVNode("",!0),r.renderSlot(o.$slots,"append",{},void 0,!0)]),_:3},8,["class"])),[[a,o.clickable&&!o.disabled]])}}}),[["__scopeId","data-v-90c2ba0a"]]);function ZB(t){for(;t;){if($B(t))return t;t=t.parentElement}return document.scrollingElement}function $B(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}class eP{constructor(e,n){ae(this,"onScroll");ae(this,"scrollParent");this.onScroll=n,this.scrollParent=ZB(e)}bindScroll(){this.scrollParent.addEventListener("scroll",this.onScroll)}unbindScroll(){this.scrollParent.removeEventListener("scroll",this.onScroll)}}const tP={class:"fm-menu__wrapper"},nP=De(r.defineComponent({__name:"FmMenuDeprecated",props:{showMenu:{type:Boolean,default:!1},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1}},emits:["dropdown-changed"],setup(t,{expose:e,emit:n}){const o=t,i=r.ref(!1),a=r.ref(null),s=r.ref(null),{floatingStyles:l}=ci(a,s,{middleware:[si(4),li()],placement:o.placement,whileElementsMounted:ai});let c;const u=n;e({show:()=>{i.value||(i.value=!0,u("dropdown-changed",i.value))},hide:()=>{i.value&&(i.value=!1,u("dropdown-changed",i.value))}});const h=b=>{b.preventDefault(),b.stopPropagation(),!o.disabled&&(i.value=!i.value,u("dropdown-changed",i.value))},p=b=>{if(!i.value)return;const y=b.path||b.composedPath();for(const v of y)if(v==a.value||v==s.value)return;i.value=!1,u("dropdown-changed",i.value)},m=()=>{u("dropdown-changed",!1)};return r.watch(()=>o.showMenu,b=>i.value=b),r.onMounted(()=>{i.value=o.showMenu,window.addEventListener("click",p),c=new eP(a.value,m),c.bindScroll()}),r.onUnmounted(()=>{window.removeEventListener("click",p),c.unbindScroll()}),(b,y)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{ref_key:"anchorEl",ref:a,class:"fm-menu",onClick:h},[r.renderSlot(b.$slots,"menu-button",{},void 0,!0)],512),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuEl",ref:s,class:r.normalizeClass({"fm-menu__content":!0,"fm-menu__content--opened":i.value}),style:r.normalizeStyle(r.unref(l))},[r.renderSlot(b.$slots,"menu-wrapper",{},()=>[r.createElementVNode("div",tP,[r.renderSlot(b.$slots,"menu-content",{},void 0,!0)])],!0)],6)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5b19ece2"]]),oP={class:"fm-typo-en-body-md-600 mx-8 p-8 text-fm-color-typo-secondary"},rP=r.defineComponent({__name:"FmMenuHeader",props:{label:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",oP,r.toDisplayString(e.label),1))}}),iP=t=>(r.pushScopeId("data-v-6d0e6490"),t=t(),r.popScopeId(),t),aP={class:"relative"},sP={class:"fm-progress-linear fm-typo-en-body-sm-400 h-4 overflow-hidden relative rounded-lg w-auto"},lP=iP(()=>r.createElementVNode("span",{class:"bg-fm-color-neutral-gray-100",style:{width:"100%"}},null,-1)),dP=De(r.defineComponent({__name:"FmLinearProgress",props:{color:{default:"primary"}},setup(t){const e=t,n=r.computed(()=>{const o=new Array,i={};return e.color?(ia(e.color)?i["background-color"]=e.color:o.push(`bg-fm-color-${e.color}`),{class:o.join(" "),style:i}):{class:o.join(" "),style:i}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",aP,[r.createElementVNode("div",sP,[lP,r.createElementVNode("span",{class:r.normalizeClass(["dash-1",n.value.class]),style:r.normalizeStyle(n.value.style)},null,6),r.createElementVNode("span",{class:r.normalizeClass(["dash-2",n.value.class]),style:r.normalizeStyle(n.value.style)},null,6)])]))}}),[["__scopeId","data-v-6d0e6490"]]),cP={class:"flex fm-typo-en-title-md-600 items-center justify-between text-fm-color-typo-primary pb-16"},uP={key:0},fP={class:"h-full overflow-y-auto"},pP={key:0,class:"pt-24"},hP=De(r.defineComponent({__name:"FmSideSheet",props:{header:{default:""},modelValue:{type:Boolean,default:!1},dismissAway:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!0},maxWidth:{default:void 0},zIndex:{default:void 0},isContainer:{default:"div"},isContainerProps:{default:()=>({})},closeIcon:{default:"close"},noOverlay:{type:Boolean,default:!1}},emits:["update:modelValue","on:clickedAway","on:close"],setup(t,{expose:e,emit:n}){const o=t,i=n,a=Pe(o,"modelValue"),s=r.ref(),l=()=>{a.value=!1,i("on:close")};return e({containerRef:s}),(c,u)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{onClick:u[0]||(u[0]=h=>a.value=!0)},[r.renderSlot(c.$slots,"side-sheet-button",{},void 0,!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,null,{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(fi,{key:0,"dismiss-away":o.dismissAway,"z-index":o.zIndex,transparent:o.noOverlay,onClose:l,onClickedAway:u[1]||(u[1]=h=>c.$emit("on:clickedAway"))},{default:r.withCtx(()=>[r.createVNode(r.Transition,{appear:"",name:"slide"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(c.isContainer),r.mergeProps({ref_key:"containerRef",ref:s,class:[[!c.maxWidth&&"max-w-[400px]",o.noOverlay&&"shadow-md"],"fm-side-sheet xs:w-full"],style:{maxWidth:`${c.maxWidth}px`}},c.isContainerProps),{default:r.withCtx(()=>[r.createElementVNode("div",cP,[r.renderSlot(c.$slots,"side-sheet-header",{},()=>[c.header?(r.openBlock(),r.createElementBlock("div",uP,r.toDisplayString(c.header),1)):r.createCommentVNode("",!0)],!0),c.closeButton?(r.openBlock(),r.createBlock(ce,{key:0,name:c.closeIcon,class:"cursor-pointer",size:"md",onClick:l},null,8,["name"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",fP,[r.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots["side-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",pP,[r.renderSlot(c.$slots,"side-sheet-footer",{},void 0,!0)])):r.createCommentVNode("",!0)]),_:3},16,["class","style"]))]),_:3})]),_:3},8,["dismiss-away","z-index","transparent"])):r.createCommentVNode("",!0)]),_:3})]))]))}}),[["__scopeId","data-v-d5a939ad"]]),mP={class:"flex items-center"},gP={key:1,class:"flex items-center mx-12"},bP={key:0,class:"mt-8"},ab=De(r.defineComponent({__name:"FmSnackbar",props:{title:{type:String,default:void 0},description:{type:String,default:void 0},variant:{type:String,default:"info"},dismissable:{type:Boolean,default:!1},action:{type:String,default:void 0},color:{type:String,default:void 0},bgColor:{type:String,default:void 0},zIndex:{type:Number,default:1e3},spinner:{type:Boolean,default:!1}},emits:["onDismiss","onAction"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{switch(n.variant){case"info":return{icon:{name:"info",color:"system-info-300"},actionColor:"typo-info",bgColor:"system-info-100"};case"success":return{icon:{name:"check_circle",color:"system-success-300"},actionColor:"typo-success",bgColor:"system-success-100"};case"warning":return{icon:{name:"warning",color:"system-warning-300"},actionColor:"typo-warning",bgColor:"system-warning-100"};case"error":return{icon:{name:"error",color:"system-error-300"},actionColor:"typo-error",bgColor:"system-error-100"};case"neutral":return{actionColor:"primary",bgColor:"neutral-gray-100"};default:throw Error(`Unimplement snackbar variant ${n.variant}`)}}),a=r.computed(()=>n.title?{text:n.title,classes:"fm-typo-en-body-lg-600"}:{text:n.description,classes:""}),s=r.computed(()=>n.bgColor?ia(n.bgColor)?{style:{backgroundColor:n.bgColor}}:{class:`bg-fm-color-${n.bgColor}`}:{class:`bg-fm-color-${i.value.bgColor}`}),l=r.computed(()=>n.color?ia(n.color)?{style:{color:n.color}}:{class:`text-fm-color-${n.color}`}:{class:`text-fm-color-${i.value.actionColor}`});return(c,u)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({style:{zIndex:t.zIndex},class:"fm-corner-radius-lg fm-shadow-light-400 fm-snackbar px-24 py-16"},s.value),[r.createElementVNode("div",mP,[i.value.icon?(r.openBlock(),r.createBlock(ce,{key:0,color:n.color??i.value.icon.color,name:i.value.icon.name,class:"mr-12"},null,8,["color","name"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(`${a.value.classes} grow ellipsis mr-16`)},r.toDisplayString(a.value.text),3),t.spinner?(r.openBlock(),r.createElementBlock("div",gP,[r.createVNode(ce,{class:"animate-spin",name:"progress_activity"})])):r.createCommentVNode("",!0),n.dismissable?(r.openBlock(),r.createBlock(ce,{key:2,class:"cursor-pointer",name:"close",style:{"{ flex":"none}"},onClick:u[0]||(u[0]=()=>o("onDismiss"))})):r.createCommentVNode("",!0)]),n.title&&n.description?(r.openBlock(),r.createElementBlock("div",bP,r.toDisplayString(n.description),1)):r.createCommentVNode("",!0),r.renderSlot(c.$slots,"actions",{},()=>[n.action?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:"mt-16 fm-typo-en-body-lg-600"},l.value),[r.createElementVNode("span",{class:"cursor-pointer",onClick:u[1]||(u[1]=()=>o("onAction"))},r.toDisplayString(n.action),1)],16)):r.createCommentVNode("",!0)],!0)],16))}}),[["__scopeId","data-v-65fce1f3"]]),yP={class:r.normalizeClass(["fm-step-description","text-fm-color-typo-secondary","fm-typo-en-body-md-400 line-clamp-1","mt-4"])},sf=r.defineComponent({__name:"FmStepHeader",props:{title:{type:String,required:!0},description:{type:String,default:void 0},disabled:{type:Boolean,default:!1},titleBold:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass([t.disabled?"text-fm-color-typo-disabled":"","flex flex-col"])},[r.renderSlot(e.$slots,"title",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([t.titleBold?"fm-typo-en-title-md-600":"fm-typo-en-body-md-400","fm-step-title line-clamp-2"])},r.toDisplayString(t.title),3)]),r.renderSlot(e.$slots,"description",{},()=>[r.createElementVNode("div",yP,r.toDisplayString(t.description),1)])],2))}}),vP=["data-title","data-description","data-disabled"],kP={class:"flex flex-col fm-step-container grow"},wP={class:"fm-step-container-content"},SP=De(r.defineComponent({__name:"FmStep",props:{title:{type:String,required:!0},description:{type:String,default:void 0},value:{type:Number,required:!0},complete:{type:Function,required:!0},error:{type:Function,default:void 0},disabled:{type:Function,default:void 0}},setup(t){const e=t,{currentStep:n,goToStep:o}=r.inject(Yh);function i(){a.value||o(e.value)}const a=r.computed(()=>e.disabled?e.disabled():!1),s=r.computed(()=>e.error?e.error():!1),l=r.computed(()=>n()===e.value),c=r.computed(()=>e.complete()),u=r.computed(()=>l.value||c.value||n()>e.value?"bg-fm-color-primary":"bg-fm-color-neutral-gray-300"),h=r.computed(()=>l.value?{className:"bg-fm-color-primary"}:s.value?{config:{name:"warning",color:"system-error-300"}}:a.value?{className:"border-2 border-fm-color-neutral-gray-200"}:c.value?{config:{name:"check_small",color:"primary"},className:"border-2 border-fm-color-primary"}:{className:"border-2 border-fm-color-neutral-gray-300"});return(p,m)=>{const b=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",{"data-title":t.title,"data-description":t.description,"data-disabled":a.value,class:r.normalizeClass(`fm-step gap-4 grow ${a.value?"cursor-not-allowed":"cursor-pointer"}`)},[r.createElementVNode("div",null,[r.createElementVNode("div",{class:r.normalizeClass(`fm-step-indicator ${u.value}`)},null,2)]),r.createElementVNode("div",kP,[r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:"flex gap-12",onClick:r.withModifiers(i,["stop"])},[r.createElementVNode("div",{class:r.normalizeClass(["flex fm-step-container-icon h-[24px] items-center justify-center min-h-[24px] min-w-[24px] relative rounded-full w-[24px]",h.value.className])},[h.value.config?(r.openBlock(),r.createBlock(ce,{key:0,name:h.value.config.name,color:h.value.config.color,outline:"",class:"absolute"},null,8,["name","color"])):r.createCommentVNode("",!0)],2),r.createVNode(sf,{title:t.title,description:t.description,disabled:a.value,class:"grow"},null,8,["title","description","disabled"])])),[[b,!a.value]]),r.createElementVNode("div",wP,[r.renderSlot(p.$slots,"default",{},void 0,!0)])])],10,vP)}}}),[["__scopeId","data-v-113e7095"]]),xP={class:"hidden items-center xs:flex"},CP={class:"flex gap-2 items-start justify-end mb-24 mt-40 p-0 self-stretch"},AP=r.defineComponent({__name:"FmStepper",props:{modelValue:{type:Number,required:!0},orientation:{type:String,default:"horizontal"}},emits:["update:model-value"],setup(t,{emit:e}){const n=t,o=e,i=h=>{o("update:model-value",h)};r.provide(Yh,{currentStep:()=>n.modelValue,goToStep:i});const a=r.ref(),s=r.ref([]),l=r.computed(()=>s.value[n.modelValue-1]),c=r.computed(()=>`${n.modelValue} of ${s.value.length}`),u=()=>{var p;const h=Array.from(((p=a.value)==null?void 0:p.querySelectorAll(":scope > .fm-step"))??[]);s.value=h.map(m=>({title:m.dataset.title??"",description:m.dataset.description,disabled:m.dataset.disabled=="true"}))};return r.onMounted(()=>{u()}),(h,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`fm-stepper fm-stepper__${t.orientation}`)},[r.createElementVNode("div",{ref_key:"stepperRef",ref:a,class:r.normalizeClass(`flex mx-24 mt-12 mb-24 xs:hidden ${t.orientation==="vertical"?"flex-col":""}`)},[r.renderSlot(h.$slots,"default")],2),r.createElementVNode("div",xP,[r.createVNode(xr,{"current-step":t.modelValue,"total-steps":s.value.length,class:"mr-12"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(c.value),1)]),_:1},8,["current-step","total-steps"]),l.value?(r.openBlock(),r.createBlock(sf,{key:0,class:"grow","title-bold":"",title:l.value.title,description:l.value.description,disabled:l.value.disabled},null,8,["title","description","disabled"])):r.createCommentVNode("",!0)]),h.$slots.contents?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(`flex-col mx-24 mt-12 mb-24 ${t.orientation==="vertical"?"w-2/3":""}`)},[r.renderSlot(h.$slots,"contents"),r.createElementVNode("div",CP,[r.renderSlot(h.$slots,"actions")])],2)):r.createCommentVNode("",!0)],2))}});let EP=0;function DP(){return EP++}const BP=t=>(r.pushScopeId("data-v-dfbdb871"),t=t(),r.popScopeId(),t),PP=["disabled"],IP={key:1,class:"ml-4"},OP={key:0,class:"ml-4"},NP={key:0,class:r.normalizeClass(["block","absolute bottom-0 left-0","h-0.5 w-full"])},RP=[BP(()=>r.createElementVNode("span",{class:r.normalizeClass(["block","bg-fm-color-primary rounded-xxxl","w-full h-full"])},null,-1))],sb=De(r.defineComponent({__name:"FmTab",props:{modelValue:{default:null},label:{default:""},vertical:{type:Boolean,default:!1},icon:{default:""},disabled:{type:Boolean,default:!1},badge:{default:0},value:{default:()=>DP()},children:{default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:e}){const n=r.ref(!1),o=t,i=e,a=r.ref(!1);function s(p){n.value=p}const l=()=>{o.disabled||o.children.length>0||i("update:modelValue",o.value)},c=p=>{o.children.length!==0&&(a.value=p)},u=r.computed(()=>o.children.length>0?o.children.some(p=>p.value===o.modelValue):o.modelValue===o.value),h=p=>{a.value=!1,i("update:modelValue",p)};return(p,m)=>{const b=r.resolveDirective("wave");return r.openBlock(),r.createBlock(io,{class:r.normalizeClass([{"w-full":p.vertical},"flex-shrink-0 max-w-[360px] min-w-[90px] rounded-sm"]),disabled:p.children.length===0,placement:p.vertical?"right-start":"bottom-start","show-menu":a.value,onMenuChanged:c},{"menu-button":r.withCtx(()=>[r.createElementVNode("button",{class:r.normalizeClass([p.vertical?["px-16 py-8"]:["px-8 pt-8"],p.vertical?["max-w-[360px] w-full"]:["min-w-[90px] max-w-[360px]"]]),disabled:p.disabled,type:"button",onClick:l,onMousedown:m[0]||(m[0]=()=>s(!0)),onMouseleave:m[1]||(m[1]=()=>s(!1)),onMouseup:m[2]||(m[2]=()=>s(!1))},[r.createElementVNode("span",{class:r.normalizeClass(["flex items-center",p.vertical?["justify-start"]:["justify-center"],"relative"])},[r.createElementVNode("span",{class:r.normalizeClass([[p.vertical&&"w-full"],"block"])},[r.createElementVNode("span",{class:r.normalizeClass(["flex items-center",!p.vertical&&"pb-1.5",p.vertical&&"w-full"])},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["rounded-xxxl",!p.vertical&&"hover:bg-fm-color-opacity-sm group",p.vertical&&"w-full"]),type:"button"},[r.createElementVNode("button",{class:r.normalizeClass(["relative","flex items-center","px-8",p.vertical?"py-1":"py-1.5 space-x-8",p.vertical&&"w-full"]),type:"button"},[r.renderSlot(p.$slots,"prepend",{},void 0,!0),p.icon?(r.openBlock(),r.createBlock(ce,{key:0,color:p.disabled?"neutral-gray-200":u.value?"primary":"neutral-black",name:p.icon,outline:!n.value&&!u.value,size:"md"},null,8,["color","name","outline"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-lg-400",p.disabled?"text-fm-color-typo-disabled":u.value?"text-fm-color-primary":"text-fm-color-typo-secondary"])},r.toDisplayString(p.label),3),p.badge&&p.vertical?(r.openBlock(),r.createElementBlock("span",IP,[r.createVNode(Yo,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0),p.children.length>0?(r.openBlock(),r.createBlock(ce,{key:2,class:r.normalizeClass(["text-fm-color-neutral-gray-400",p.vertical&&"block ml-auto"]),name:a.value?"expand_less":"expand_more",size:"md"},null,8,["class","name"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"append",{},void 0,!0)],2)],2)),[[b,p.vertical?!1:{color:"rgba(28, 28, 30, 0.16)"}]]),p.badge&&!p.vertical?(r.openBlock(),r.createElementBlock("span",OP,[r.createVNode(Yo,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0)],2),u.value&&!p.vertical?(r.openBlock(),r.createElementBlock("span",NP,RP)):r.createCommentVNode("",!0)],2)],2)],42,PP)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,y=>(r.openBlock(),r.createBlock(xt,{key:y.value,disabled:y.disabled,icon:y.icon,label:y.label,"model-value":o.modelValue===y.value,onClick:v=>h(y.value)},{append:r.withCtx(()=>[y.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:y.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["disabled","icon","label","model-value","onClick"]))),128))]),_:3},8,["class","disabled","placement","show-menu"])}}}),[["__scopeId","data-v-dfbdb871"]]),VP={class:"flex gap-8 h-48 items-center justify-end transition-all w-full xs:flex-wrap-reverse"},FP={class:"flex flex-1 gap-8"},TP=r.defineComponent({__name:"FmTableToolbar",props:{searchModel:{default:""},searchable:{type:Boolean},filterable:{type:Boolean},chips:{default:()=>[]},actions:{default:()=>[]},zIndexForBottomSheet:{default:void 0}},emits:["update:search-model","click:remove-chip"],setup(t){const e=t,{breakpoints:n}=Jo(),o=r.computed(()=>{const l=[];e.searchable&&l.push({label:"Search",icon:"search",key:"search"}),e.filterable&&l.push({label:"Filter",icon:"filter_alt",key:"filter"});const c=l.concat(e.actions);if(n.value.xs){const[y,v,w,...x]=c;return x.length===0?{actionButtons:[y,v,w].filter(I=>I),collapse:x}:{actionButtons:[y,v].filter(I=>I),collapse:[w,...x]}}const[u,h,p,m,...b]=c;return b.length===0?{actionButtons:[u,h,p,m].filter(y=>y),collapse:b}:{actionButtons:[u,h,p].filter(y=>y),collapse:[m,...b]}}),i=r.ref(!1);function a(l){if(n.value.xs){l.stopPropagation(),i.value=!0;return}}const s=Pe(e,"searchModel");return(l,c)=>(r.openBlock(),r.createElementBlock("div",VP,[r.renderSlot(l.$slots,"chips",{},()=>[l.chips.length?(r.openBlock(),r.createBlock(Hc,{key:0,class:"min-w-0 mr-auto",items:l.chips,removable:"",onChipClosed:c[0]||(c[0]=u=>l.$emit("click:remove-chip",u))},null,8,["items"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",FP,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.actionButtons,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u.key},[u.key==="search"?r.renderSlot(l.$slots,"action-search",{key:0},()=>[r.createVNode(Tl,{"model-value":r.unref(s),"onUpdate:modelValue":c[1]||(c[1]=h=>r.isRef(s)?s.value=h:null),class:"w-full",collapsible:""},null,8,["model-value"])]):r.renderSlot(l.$slots,`action-${u.key}`,{key:1},()=>[r.createVNode(me,{"prepend-icon":u.icon,variant:"tertiary",onClick:h=>l.$emit(`click:action-${u.key}`)},null,8,["prepend-icon","onClick"])])],64))),128)),o.value.collapse.length?(r.openBlock(),r.createBlock(io,{key:0},{"menu-button":r.withCtx(()=>[r.createVNode(me,{"prepend-icon":"more_vert",variant:"tertiary",onClick:a})]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(xt,{key:u.key,label:u.label,icon:u.icon,onClick:h=>{l.$emit(`click:action-${u.key}`),i.value=!1}},null,8,["label","icon","onClick"]))),128))]),_:1})):r.createCommentVNode("",!0),l.$slots.append?r.renderSlot(l.$slots,"append",{key:1}):r.createCommentVNode("",!0)]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Uc,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u),"dismiss-away":"","z-index":e.zIndexForBottomSheet},{default:r.withCtx(()=>[r.createVNode(rf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(af,{key:u.key,label:u.label,class:"hover:bg-fm-color-neutral-gray-100",onClick:h=>{l.$emit(`click:action-${u.key}`),i.value=!1}},null,8,["label","onClick"]))),128))]),_:1})]),_:1},8,["modelValue","z-index"])]))]))}});var MP={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",npm_package_exports___require:"./dist/feedmepos-ui-library.umd.cjs",npm_package_dependencies_prettier:"^3.2.5",npm_package_devDependencies__types_node:"^18.19.21",DOTNET_NOLOGO:"1",npm_package_devDependencies__originjs_vite_plugin_federation:"^1.3.5",USER:"runner",npm_package_dependencies__rollup_plugin_commonjs:"^26.0.1",npm_config_user_agent:"pnpm/9.15.9 npm/? node/v20.20.2 linux x64",CI:"true",npm_package_dependencies_v_wave:"^1.5.1",npm_package_dependencies_vue:"^3.4.21",USE_BAZEL_FALLBACK_VERSION:"silent:",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",PIPX_HOME:"/opt/pipx",npm_package_dependencies__types_lodash:"^4.17.7",npm_package_devDependencies_tsc_alias:"^1.8.8",npm_package_devDependencies_vite:"^5.1.4",npm_package_peerDependencies_tailwindcss:"^3.4.1",npm_node_execpath:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_package_files_0:"dist",npm_package_scripts_build_lib:"vite build --mode library",npm_package_dependencies_vue_virtual_scroller:"2.0.0-beta.8",HOME:"/home/runner",npm_package_exports___meta_types:"./dist/meta.d.ts",npm_package_dependencies_chart_js:"^4.4.2",npm_package_devDependencies_sass:"^1.71.1",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_package_devDependencies_vite_plugin_static_copy:"^0.17.1",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"feedmepos",npm_package_scripts_build_components:'run-p type-check "build-lib {@}" --',GRADLE_HOME:"/usr/share/gradle-9.4.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/29.0.14206865",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",npm_package_scripts_type_check:"vue-tsc --noEmit -p tsconfig.app.json --composite false",npm_package_dependencies__tanstack_vue_virtual:"^3.13.0",npm_package_devDependencies_npm_run_all2:"^6.1.2",npm_package_peerDependencies_vue:"^3.4.21",GITHUB_REPOSITORY_OWNER_ID:"54831515",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_package_scripts_build_federation:"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp",npm_package_devDependencies_vue_component_meta:"^2.0.13",SYSTEMD_EXEC_PID:"1872",ACTIONS_ORCHESTRATION_ID:"ca07ea72-8b91-4963-a209-0faea4174115.deploy.__default",npm_package_dependencies_dayjs:"^1.11.10",npm_package_devDependencies__tsconfig_node18:"^18.2.2",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",npm_package_devDependencies_tailwindcss:"^3.4.1",npm_package_devDependencies_typescript:"~5.2.2",JAVA_HOME_25_X64:"/usr/lib/jvm/temurin-25-jdk-amd64",NVM_DIR:"/home/runner/.nvm",npm_package_homepage:"ui.feedme.ai",npm_package_devDependencies_vue_tsc:"^1.8.27",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20260413.86.1",npm_package_scripts_dev:"vite --port 5273",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",STORE_PATH:"/home/runner/setup-pnpm/node_modules/.bin/store/v3",SWIFT_PATH:"/usr/share/swift/usr/bin",npm_package_type:"module",npm_package_dependencies__vueuse_core:"^10.9.0",npm_package_devDependencies__vue_tsconfig:"^0.4.0",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:15635",GITHUB_WORKFLOW:"Publish Vue",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",npm_package_module:"./dist/feedmepos-ui-library.js",npm_package_devDependencies_autoprefixer:"^10.4.17",RUNNER_DEBUG:"1",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.13/x64",npm_package_scripts_build_tailwind_plugin:"vite build --mode tailwind-plugin",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",npm_package_dependencies_fuzzy:"^0.1.3",npm_package_devDependencies__types_uuid:"^10.0.0",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GOROOT_1_25_X64:"/opt/hostedtoolcache/go/1.25.9/x64",GITHUB_RUN_ID:"25423638058",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"31d1ac73a8b83dc311c546b14b680eb7a010db2d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",npm_package_exports___import:"./dist/feedmepos-ui-library.js",npm_package_devDependencies__vitejs_plugin_vue:"^5.0.4",GITHUB_WORKFLOW_REF:"feedmepos/ui-library/.github/workflows/publish-vue.yml@refs/heads/main",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_48b89e2c-5531-4b5d-9e4a-9427686b792f",INVOCATION_ID:"d3b6b44a78ff4c3eaa3c6d8208d9fa38",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",npm_package_name:"@feedmepos/ui-library",npm_package_repository_type:"git",GITHUB_ACTION:"__run_4",GITHUB_RUN_NUMBER:"342",GITHUB_TRIGGERING_ACTOR:"heiseshandian",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",npm_package_dependencies_vue_country_flag_next:"^2.3.2",npm_config_frozen_lockfile:"",npm_package_exports___styles_css:"./dist/style.css",npm_package_scripts_build_tailwind_styling:"vite build --mode tailwind-styling",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",npm_package_scripts_generate_component_meta:"node ./scripts/generate-component-meta.js",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies_eslint:"^8.57.0",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000066229",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"feedmepos/ui-library",npm_package_main:"./dist/feedmepos-ui-library.umd.cjs",npm_package_scripts_build_types:"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false",npm_package_devDependencies__types_debounce:"^1.2.4",npm_lifecycle_script:"vite build --mode library",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",npm_package_exports___tailwind_plugin:"./dist/tailwind-plugin.js",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"677015340",GITHUB_ACTIONS:"true",NODE_PATH:"/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/run-p/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"1.10.3",npm_package_repository_url:"git+https://github.com/feedmepos/ui-library.git",npm_package_dependencies__tanstack_vue_table:"^8.13.2",npm_package_dependencies_vuedraggable:"^4.1.0",npm_package_devDependencies__rushstack_eslint_patch:"^1.7.2",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_lifecycle_event:"build-lib",GITHUB_REF_PROTECTED:"false",npm_package_scripts_build:"vite build",npm_package_dependencies_uuid:"^10.0.0",GITHUB_WORKSPACE:"/home/runner/work/ui-library/ui-library",ACCEPT_EULA:"Y",GITHUB_JOB:"deploy",npm_package_dependencies_lodash:"^4.17.21",GITHUB_SHA:"31d1ac73a8b83dc311c546b14b680eb7a010db2d",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"heiseshandian",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_package_scripts_build_pack:"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../",npm_package_exports___tailwind_styling:"./dist/tailwind-styling.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/ui-library/ui-library/packages/vue",GITHUB_ACTOR_ID:"7780463",RUNNER_WORKSPACE:"/home/runner/work/ui-library",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",npm_package_exports___types:"./dist/index.d.ts",npm_package_devDependencies__types_chart_js:"^2.9.41",npm_config_recursive:"true",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_devDependencies_eslint_plugin_vue:"^9.22.0",npm_package_devDependencies_postcss:"^8.4.35",npm_package_peerDependencies_vite:"^5.1.4",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",PSModulePath:"/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0",CHROME_BIN:"/usr/bin/google-chrome",npm_package_scripts_preview:"vite preview",npm_package_scripts_deploy:"pnpm run build:lib && pnpm publish --no-git-checks .",npm_package_dependencies__floating_ui_vue:"^1.0.6",npm_package_dependencies_debounce:"^2.0.0",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",npm_package_bugs:"https://feedmepos.atlassian.net/browse/CT-3",npm_package_scripts_register_components:"node ./scripts/register-components.js && pnpm lint",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",INIT_CWD:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_scripts_copy_changelog:"cp ./CHANGELOG.md ./dist/CHANGELOG.md",npm_package_dependencies_chartjs_plugin_datalabels:"^2.2.0",npm_package_dependencies_libphonenumber_js:"^1.10.57",NODE_ENV:"production"}};function sr(t,e){return typeof t=="function"?t(e):t}function vn(t,e){return n=>{e.setState(o=>({...o,[t]:sr(n,o[t])}))}}function zl(t){return t instanceof Function}function LP(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function zP(t,e){const n=[],o=i=>{i.forEach(a=>{n.push(a);const s=e(a);s!=null&&s.length&&o(s)})};return o(t),n}function ge(t,e,n){let o=[],i;return a=>{let s;n.key&&n.debug&&(s=Date.now());const l=t(a);if(!(l.length!==o.length||l.some((h,p)=>o[p]!==h)))return i;o=l;let u;if(n.key&&n.debug&&(u=Date.now()),i=e(...l),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-s)*100)/100,p=Math.round((Date.now()-u)*100)/100,m=p/16,b=(y,v)=>{for(y=String(y);y.length<v;)y=" "+y;return y};console.info(`%c⏱ ${b(p,5)} /${b(h,5)} ms`,`
115
115
  font-size: .6rem;
116
116
  font-weight: bold;
117
117
  color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function be(t,e,n,o){return{debug:()=>{var i;return(i=t==null?void 0:t.debugAll)!=null?i:t[e]},key:MP.env.NODE_ENV==="development",onChange:o}}function _P(t,e,n,o){const i=()=>{var s;return(s=a.getValue())!=null?s:t.options.renderFallbackValue},a={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(o),renderValue:i,getContext:ge(()=>[t,n,e,a],(s,l,c,u)=>({table:s,column:l,row:c,cell:u,getValue:u.getValue,renderValue:u.renderValue}),be(t.options,"debugCells"))};return t._features.forEach(s=>{s.createCell==null||s.createCell(a,n,e,t)},{}),a}function HP(t,e,n,o){var i,a;const l={...t._getDefaultColumnDef(),...e},c=l.accessorKey;let u=(i=(a=l.id)!=null?a:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?i:typeof l.header=="string"?l.header:void 0,h;if(l.accessorFn?h=l.accessorFn:c&&(c.includes(".")?h=m=>{let b=m;for(const v of c.split(".")){var y;b=(y=b)==null?void 0:y[v]}return b}:h=m=>m[l.accessorKey]),!u)throw new Error;let p={id:`${String(u)}`,accessorFn:h,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:ge(()=>[!0],()=>{var m;return[p,...(m=p.columns)==null?void 0:m.flatMap(b=>b.getFlatColumns())]},be(t.options,"debugColumns")),getLeafColumns:ge(()=>[t._getOrderColumnsFn()],m=>{var b;if((b=p.columns)!=null&&b.length){let y=p.columns.flatMap(v=>v.getLeafColumns());return m(y)}return[p]},be(t.options,"debugColumns"))};for(const m of t._features)m.createColumn==null||m.createColumn(p,t);return p}const Ht="debugHeaders";function lb(t,e,n){var o;let a={id:(o=n.id)!=null?o:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),s.push(c)};return l(a),s},getContext:()=>({table:t,header:a,column:e})};return t._features.forEach(s=>{s.createHeader==null||s.createHeader(a,t)}),a}const UP={createTable:t=>{t.getHeaderGroups=ge(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o,i)=>{var a,s;const l=(a=o==null?void 0:o.map(p=>n.find(m=>m.id===p)).filter(Boolean))!=null?a:[],c=(s=i==null?void 0:i.map(p=>n.find(m=>m.id===p)).filter(Boolean))!=null?s:[],u=n.filter(p=>!(o!=null&&o.includes(p.id))&&!(i!=null&&i.includes(p.id)));return _l(e,[...l,...u,...c],t)},be(t.options,Ht)),t.getCenterHeaderGroups=ge(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o,i)=>(n=n.filter(a=>!(o!=null&&o.includes(a.id))&&!(i!=null&&i.includes(a.id))),_l(e,n,t,"center")),be(t.options,Ht)),t.getLeftHeaderGroups=ge(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,o)=>{var i;const a=(i=o==null?void 0:o.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?i:[];return _l(e,a,t,"left")},be(t.options,Ht)),t.getRightHeaderGroups=ge(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,o)=>{var i;const a=(i=o==null?void 0:o.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?i:[];return _l(e,a,t,"right")},be(t.options,Ht)),t.getFooterGroups=ge(()=>[t.getHeaderGroups()],e=>[...e].reverse(),be(t.options,Ht)),t.getLeftFooterGroups=ge(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),be(t.options,Ht)),t.getCenterFooterGroups=ge(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),be(t.options,Ht)),t.getRightFooterGroups=ge(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),be(t.options,Ht)),t.getFlatHeaders=ge(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),be(t.options,Ht)),t.getLeftFlatHeaders=ge(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),be(t.options,Ht)),t.getCenterFlatHeaders=ge(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),be(t.options,Ht)),t.getRightFlatHeaders=ge(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),be(t.options,Ht)),t.getCenterLeafHeaders=ge(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),be(t.options,Ht)),t.getLeftLeafHeaders=ge(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),be(t.options,Ht)),t.getRightLeafHeaders=ge(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),be(t.options,Ht)),t.getLeafHeaders=ge(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,o)=>{var i,a,s,l,c,u;return[...(i=(a=e[0])==null?void 0:a.headers)!=null?i:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(c=(u=o[0])==null?void 0:u.headers)!=null?c:[]].map(h=>h.getLeafHeaders()).flat()},be(t.options,Ht))}};function _l(t,e,n,o){var i,a;let s=0;const l=function(m,b){b===void 0&&(b=1),s=Math.max(s,b),m.filter(y=>y.getIsVisible()).forEach(y=>{var v;(v=y.columns)!=null&&v.length&&l(y.columns,b+1)},0)};l(t);let c=[];const u=(m,b)=>{const y={depth:b,id:[o,`${b}`].filter(Boolean).join("_"),headers:[]},v=[];m.forEach(w=>{const x=[...v].reverse()[0],I=w.column.depth===y.depth;let R,V=!1;if(I&&w.column.parent?R=w.column.parent:(R=w.column,V=!0),x&&(x==null?void 0:x.column)===R)x.subHeaders.push(w);else{const B=lb(n,R,{id:[o,b,R.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:V,placeholderId:V?`${v.filter(L=>L.column===R).length}`:void 0,depth:b,index:v.length});B.subHeaders.push(w),v.push(B)}y.headers.push(w),w.headerGroup=y}),c.push(y),b>0&&u(v,b-1)},h=e.map((m,b)=>lb(n,m,{depth:s,index:b}));u(h,s-1),c.reverse();const p=m=>m.filter(y=>y.column.getIsVisible()).map(y=>{let v=0,w=0,x=[0];y.subHeaders&&y.subHeaders.length?(x=[],p(y.subHeaders).forEach(R=>{let{colSpan:V,rowSpan:B}=R;v+=V,x.push(B)})):v=1;const I=Math.min(...x);return w=w+I,y.colSpan=v,y.rowSpan=w,{colSpan:v,rowSpan:w}});return p((i=(a=c[0])==null?void 0:a.headers)!=null?i:[]),c}const lf=(t,e,n,o,i,a,s)=>{let l={id:e,index:o,original:n,depth:i,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const u=t.getColumn(c);if(u!=null&&u.accessorFn)return l._valuesCache[c]=u.accessorFn(l.original,o),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const u=t.getColumn(c);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=u.columnDef.getUniqueValues(l.original,o),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var u;return(u=l.getValue(c))!=null?u:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>zP(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?t.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],u=l;for(;;){const h=u.getParentRow();if(!h)break;c.push(h),u=h}return c.reverse()},getAllCells:ge(()=>[t.getAllLeafColumns()],c=>c.map(u=>_P(t,l,u,u.id)),be(t.options,"debugRows")),_getAllCellsByColumnId:ge(()=>[l.getAllCells()],c=>c.reduce((u,h)=>(u[h.column.id]=h,u),{}),be(t.options,"debugRows"))};for(let c=0;c<t._features.length;c++){const u=t._features[c];u==null||u.createRow==null||u.createRow(l,t)}return l},WP={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},db=(t,e,n)=>{var o;const i=n.toLowerCase();return!!(!((o=t.getValue(e))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};db.autoRemove=t=>Qn(t);const cb=(t,e,n)=>{var o;return!!(!((o=t.getValue(e))==null||(o=o.toString())==null)&&o.includes(n))};cb.autoRemove=t=>Qn(t);const ub=(t,e,n)=>{var o;return((o=t.getValue(e))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};ub.autoRemove=t=>Qn(t);const fb=(t,e,n)=>{var o;return(o=t.getValue(e))==null?void 0:o.includes(n)};fb.autoRemove=t=>Qn(t)||!(t!=null&&t.length);const pb=(t,e,n)=>!n.some(o=>{var i;return!((i=t.getValue(e))!=null&&i.includes(o))});pb.autoRemove=t=>Qn(t)||!(t!=null&&t.length);const hb=(t,e,n)=>n.some(o=>{var i;return(i=t.getValue(e))==null?void 0:i.includes(o)});hb.autoRemove=t=>Qn(t)||!(t!=null&&t.length);const mb=(t,e,n)=>t.getValue(e)===n;mb.autoRemove=t=>Qn(t);const gb=(t,e,n)=>t.getValue(e)==n;gb.autoRemove=t=>Qn(t);const df=(t,e,n)=>{let[o,i]=n;const a=t.getValue(e);return a>=o&&a<=i};df.resolveFilterValue=t=>{let[e,n]=t,o=typeof e!="number"?parseFloat(e):e,i=typeof n!="number"?parseFloat(n):n,a=e===null||Number.isNaN(o)?-1/0:o,s=n===null||Number.isNaN(i)?1/0:i;if(a>s){const l=a;a=s,s=l}return[a,s]},df.autoRemove=t=>Qn(t)||Qn(t[0])&&Qn(t[1]);const Oo={includesString:db,includesStringSensitive:cb,equalsString:ub,arrIncludes:fb,arrIncludesAll:pb,arrIncludesSome:hb,equals:mb,weakEquals:gb,inNumberRange:df};function Qn(t){return t==null||t===""}const jP={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:vn("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(t.id);return typeof o=="string"?Oo.includesString:typeof o=="number"?Oo.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Oo.equals:Array.isArray(o)?Oo.arrIncludes:Oo.weakEquals},t.getFilterFn=()=>{var n,o;return zl(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(n=(o=e.options.filterFns)==null?void 0:o[t.columnDef.filterFn])!=null?n:Oo[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,o,i;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((o=e.options.enableColumnFilters)!=null?o:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return(n=e.getState().columnFilters)==null||(n=n.find(o=>o.id===t.id))==null?void 0:n.value},t.getFilterIndex=()=>{var n,o;return(n=(o=e.getState().columnFilters)==null?void 0:o.findIndex(i=>i.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(o=>{const i=t.getFilterFn(),a=o==null?void 0:o.find(h=>h.id===t.id),s=sr(n,a?a.value:void 0);if(bb(i,s,t)){var l;return(l=o==null?void 0:o.filter(h=>h.id!==t.id))!=null?l:[]}const c={id:t.id,value:s};if(a){var u;return(u=o==null?void 0:o.map(h=>h.id===t.id?c:h))!=null?u:[]}return o!=null&&o.length?[...o,c]:[c]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns(),o=i=>{var a;return(a=sr(e,i))==null?void 0:a.filter(s=>{const l=n.find(c=>c.id===s.id);if(l){const c=l.getFilterFn();if(bb(c,s.value,l))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(o)},t.resetColumnFilters=e=>{var n,o;t.setColumnFilters(e?[]:(n=(o=t.initialState)==null?void 0:o.columnFilters)!=null?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function bb(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const cf={sum:(t,e,n)=>n.reduce((o,i)=>{const a=i.getValue(t);return o+(typeof a=="number"?a:0)},0),min:(t,e,n)=>{let o;return n.forEach(i=>{const a=i.getValue(t);a!=null&&(o>a||o===void 0&&a>=a)&&(o=a)}),o},max:(t,e,n)=>{let o;return n.forEach(i=>{const a=i.getValue(t);a!=null&&(o<a||o===void 0&&a>=a)&&(o=a)}),o},extent:(t,e,n)=>{let o,i;return n.forEach(a=>{const s=a.getValue(t);s!=null&&(o===void 0?s>=s&&(o=i=s):(o>s&&(o=s),i<s&&(i=s)))}),[o,i]},mean:(t,e)=>{let n=0,o=0;if(e.forEach(i=>{let a=i.getValue(t);a!=null&&(a=+a)>=a&&(++n,o+=a)}),n)return o/n},median:(t,e)=>{if(!e.length)return;const n=e.map(a=>a.getValue(t));if(!LP(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),i=n.sort((a,s)=>a-s);return n.length%2!==0?i[o]:(i[o-1]+i[o])/2},unique:(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),uniqueCount:(t,e)=>new Set(e.map(n=>n.getValue(t))).size,count:(t,e)=>e.length},GP={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return(e=(n=t.getValue())==null||n.toString==null?void 0:n.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:vn("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(n=>n!=null&&n.includes(t.id)?n.filter(o=>o!==t.id):[...n??[],t.id])},t.getCanGroup=()=>{var n,o;return((n=t.columnDef.enableGrouping)!=null?n:!0)&&((o=e.options.enableGrouping)!=null?o:!0)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const n=t.getCanGroup();return()=>{n&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(t.id);if(typeof o=="number")return cf.sum;if(Object.prototype.toString.call(o)==="[object Date]")return cf.extent},t.getAggregationFn=()=>{var n,o;if(!t)throw new Error;return zl(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(n=(o=e.options.aggregationFns)==null?void 0:o[t.columnDef.aggregationFn])!=null?n:cf[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,o;t.setGrouping(e?[]:(n=(o=t.initialState)==null?void 0:o.grouping)!=null?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const o=e.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(t._groupingValuesCache[n]=o.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,o)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var i;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function QP(t,e,n){if(!(e!=null&&e.length)||!n)return t;const o=t.filter(a=>!e.includes(a.id));return n==="remove"?o:[...e.map(a=>t.find(s=>s.id===a)).filter(Boolean),...o]}const XP={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:vn("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=ge(n=>[Ha(e,n)],n=>n.findIndex(o=>o.id===t.id),be(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var o;return((o=Ha(e,n)[0])==null?void 0:o.id)===t.id},t.getIsLastColumn=n=>{var o;const i=Ha(e,n);return((o=i[i.length-1])==null?void 0:o.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:(n=t.initialState.columnOrder)!=null?n:[])},t._getOrderColumnsFn=ge(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,o)=>i=>{let a=[];if(!(e!=null&&e.length))a=i;else{const s=[...e],l=[...i];for(;l.length&&s.length;){const c=s.shift(),u=l.findIndex(h=>h.id===c);u>-1&&a.push(l.splice(u,1)[0])}a=[...a,...l]}return QP(a,n,o)},be(t.options,"debugTable"))}},uf=()=>({left:[],right:[]}),qP={getInitialState:t=>({columnPinning:uf(),...t}),getDefaultOptions:t=>({onColumnPinningChange:vn("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const o=t.getLeafColumns().map(i=>i.id).filter(Boolean);e.setColumnPinning(i=>{var a,s;if(n==="right"){var l,c;return{left:((l=i==null?void 0:i.left)!=null?l:[]).filter(p=>!(o!=null&&o.includes(p))),right:[...((c=i==null?void 0:i.right)!=null?c:[]).filter(p=>!(o!=null&&o.includes(p))),...o]}}if(n==="left"){var u,h;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(p=>!(o!=null&&o.includes(p))),...o],right:((h=i==null?void 0:i.right)!=null?h:[]).filter(p=>!(o!=null&&o.includes(p)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(p=>!(o!=null&&o.includes(p))),right:((s=i==null?void 0:i.right)!=null?s:[]).filter(p=>!(o!=null&&o.includes(p)))}})},t.getCanPin=()=>t.getLeafColumns().some(o=>{var i,a,s;return((i=o.columnDef.enablePinning)!=null?i:!0)&&((a=(s=e.options.enableColumnPinning)!=null?s:e.options.enablePinning)!=null?a:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(l=>l.id),{left:o,right:i}=e.getState().columnPinning,a=n.some(l=>o==null?void 0:o.includes(l)),s=n.some(l=>i==null?void 0:i.includes(l));return a?"left":s?"right":!1},t.getPinnedIndex=()=>{var n,o;const i=t.getIsPinned();return i?(n=(o=e.getState().columnPinning)==null||(o=o[i])==null?void 0:o.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=ge(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,o,i)=>{const a=[...o??[],...i??[]];return n.filter(s=>!a.includes(s.column.id))},be(e.options,"debugRows")),t.getLeftVisibleCells=ge(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(n,o)=>(o??[]).map(a=>n.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),be(e.options,"debugRows")),t.getRightVisibleCells=ge(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,o)=>(o??[]).map(a=>n.find(s=>s.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),be(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,o;return t.setColumnPinning(e?uf():(n=(o=t.initialState)==null?void 0:o.columnPinning)!=null?n:uf())},t.getIsSomeColumnsPinned=e=>{var n;const o=t.getState().columnPinning;if(!e){var i,a;return!!((i=o.left)!=null&&i.length||(a=o.right)!=null&&a.length)}return!!((n=o[e])!=null&&n.length)},t.getLeftLeafColumns=ge(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),be(t.options,"debugColumns")),t.getRightLeafColumns=ge(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),be(t.options,"debugColumns")),t.getCenterLeafColumns=ge(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,o)=>{const i=[...n??[],...o??[]];return e.filter(a=>!i.includes(a.id))},be(t.options,"debugColumns"))}},Hl={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ff=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),KP={getDefaultColumnDef:()=>Hl,getInitialState:t=>({columnSizing:{},columnSizingInfo:ff(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:vn("columnSizing",t),onColumnSizingInfoChange:vn("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,o,i;const a=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:Hl.minSize,(o=a??t.columnDef.size)!=null?o:Hl.size),(i=t.columnDef.maxSize)!=null?i:Hl.maxSize)},t.getStart=ge(n=>[n,Ha(e,n),e.getState().columnSizing],(n,o)=>o.slice(0,t.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),be(e.options,"debugColumns")),t.getAfter=ge(n=>[n,Ha(e,n),e.getState().columnSizing],(n,o)=>o.slice(t.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),be(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:o,...i}=n;return i})},t.getCanResize=()=>{var n,o;return((n=t.columnDef.enableResizing)!=null?n:!0)&&((o=e.options.enableColumnResizing)!=null?o:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let n=0;const o=i=>{if(i.subHeaders.length)i.subHeaders.forEach(o);else{var a;n+=(a=i.column.getSize())!=null?a:0}};return o(t),n},t.getStart=()=>{if(t.index>0){const n=t.headerGroup.headers[t.index-1];return n.getStart()+n.getSize()}return 0},t.getResizeHandler=n=>{const o=e.getColumn(t.column.id),i=o==null?void 0:o.getCanResize();return a=>{if(!o||!i||(a.persist==null||a.persist(),pf(a)&&a.touches&&a.touches.length>1))return;const s=t.getSize(),l=t?t.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[o.id,o.getSize()]],c=pf(a)?Math.round(a.touches[0].clientX):a.clientX,u={},h=(x,I)=>{typeof I=="number"&&(e.setColumnSizingInfo(R=>{var V,B;const L=e.options.columnResizeDirection==="rtl"?-1:1,P=(I-((V=R==null?void 0:R.startOffset)!=null?V:0))*L,_=Math.max(P/((B=R==null?void 0:R.startSize)!=null?B:0),-.999999);return R.columnSizingStart.forEach(U=>{let[G,Q]=U;u[G]=Math.round(Math.max(Q+Q*_,0)*100)/100}),{...R,deltaOffset:P,deltaPercentage:_}}),(e.options.columnResizeMode==="onChange"||x==="end")&&e.setColumnSizing(R=>({...R,...u})))},p=x=>h("move",x),m=x=>{h("end",x),e.setColumnSizingInfo(I=>({...I,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},b=n||typeof document<"u"?document:null,y={moveHandler:x=>p(x.clientX),upHandler:x=>{b==null||b.removeEventListener("mousemove",y.moveHandler),b==null||b.removeEventListener("mouseup",y.upHandler),m(x.clientX)}},v={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),p(x.touches[0].clientX),!1),upHandler:x=>{var I;b==null||b.removeEventListener("touchmove",v.moveHandler),b==null||b.removeEventListener("touchend",v.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),m((I=x.touches[0])==null?void 0:I.clientX)}},w=JP()?{passive:!1}:!1;pf(a)?(b==null||b.addEventListener("touchmove",v.moveHandler,w),b==null||b.addEventListener("touchend",v.upHandler,w)):(b==null||b.addEventListener("mousemove",y.moveHandler,w),b==null||b.addEventListener("mouseup",y.upHandler,w)),e.setColumnSizingInfo(x=>({...x,startOffset:c,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:o.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:(n=t.initialState.columnSizing)!=null?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?ff():(n=t.initialState.columnSizingInfo)!=null?n:ff())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,i)=>o+i.getSize(),0))!=null?e:0}}};let Ul=null;function JP(){if(typeof Ul=="boolean")return Ul;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch{t=!1}return Ul=t,Ul}function pf(t){return t.type==="touchstart"}const YP={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:vn("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(o=>({...o,[t.id]:n??!t.getIsVisible()}))},t.getIsVisible=()=>{var n,o;const i=t.columns;return(n=i.length?i.some(a=>a.getIsVisible()):(o=e.getState().columnVisibility)==null?void 0:o[t.id])!=null?n:!0},t.getCanHide=()=>{var n,o;return((n=t.columnDef.enableHiding)!=null?n:!0)&&((o=e.options.enableHiding)!=null?o:!0)},t.getToggleVisibilityHandler=()=>n=>{t.toggleVisibility==null||t.toggleVisibility(n.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=ge(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),be(e.options,"debugRows")),t.getVisibleCells=ge(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,o,i)=>[...n,...o,...i],be(e.options,"debugRows"))},createTable:t=>{const e=(n,o)=>ge(()=>[o(),o().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),be(t.options,"debugColumns"));t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=n=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(n),t.resetColumnVisibility=n=>{var o;t.setColumnVisibility(n?{}:(o=t.initialState.columnVisibility)!=null?o:{})},t.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;t.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Ha(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const ZP={createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},$P={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:vn("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const o=(n=t.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[e.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,o,i,a;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=e.options.enableGlobalFilter)!=null?o:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&((a=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?a:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>Oo.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:o}=t.options;return zl(o)?o:o==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[o])!=null?e:Oo[o]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},eI={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:vn("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var o,i;if(!e){t._queue(()=>{e=!0});return}if((o=(i=t.options.autoResetAll)!=null?i:t.options.autoResetExpanded)!=null?o:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}},t.setExpanded=o=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(o),t.toggleAllRowsExpanded=o=>{o??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=o=>{var i,a;t.setExpanded(o?{}:(i=(a=t.initialState)==null?void 0:a.expanded)!=null?i:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const o=t.getState().expanded;return o===!0||Object.values(o).some(Boolean)},t.getIsAllRowsExpanded=()=>{const o=t.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||t.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},t.getExpandedDepth=()=>{let o=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(a=>{const s=a.split(".");o=Math.max(o,s.length)}),o},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(o=>{var i;const a=o===!0?!0:!!(o!=null&&o[t.id]);let s={};if(o===!0?Object.keys(e.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=o,n=(i=n)!=null?i:!a,!a&&n)return{...s,[t.id]:!0};if(a&&!n){const{[t.id]:l,...c}=s;return c}return o})},t.getIsExpanded=()=>{var n;const o=e.getState().expanded;return!!((n=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?n:o===!0||o!=null&&o[t.id])},t.getCanExpand=()=>{var n,o,i;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((o=e.options.enableExpanding)!=null?o:!0)&&!!((i=t.subRows)!=null&&i.length)},t.getIsAllParentsExpanded=()=>{let n=!0,o=t;for(;n&&o.parentId;)o=e.getRow(o.parentId,!0),n=o.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const n=t.getCanExpand();return()=>{n&&t.toggleExpanded()}}}},hf=0,mf=10,gf=()=>({pageIndex:hf,pageSize:mf}),tI={getInitialState:t=>({...t,pagination:{...gf(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:vn("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var o,i;if(!e){t._queue(()=>{e=!0});return}if((o=(i=t.options.autoResetAll)!=null?i:t.options.autoResetPageIndex)!=null?o:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=o=>{const i=a=>sr(o,a);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i)},t.resetPagination=o=>{var i;t.setPagination(o?gf():(i=t.initialState.pagination)!=null?i:gf())},t.setPageIndex=o=>{t.setPagination(i=>{let a=sr(o,i.pageIndex);const s=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return a=Math.max(0,Math.min(a,s)),{...i,pageIndex:a}})},t.resetPageIndex=o=>{var i,a;t.setPageIndex(o?hf:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:hf)},t.resetPageSize=o=>{var i,a;t.setPageSize(o?mf:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:mf)},t.setPageSize=o=>{t.setPagination(i=>{const a=Math.max(1,sr(o,i.pageSize)),s=i.pageSize*i.pageIndex,l=Math.floor(s/a);return{...i,pageIndex:l,pageSize:a}})},t.setPageCount=o=>t.setPagination(i=>{var a;let s=sr(o,(a=t.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),t.getPageOptions=ge(()=>[t.getPageCount()],o=>{let i=[];return o&&o>0&&(i=[...new Array(o)].fill(null).map((a,s)=>s)),i},be(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:o}=t.getState().pagination,i=t.getPageCount();return i===-1?!0:i===0?!1:o<i-1},t.previousPage=()=>t.setPageIndex(o=>o-1),t.nextPage=()=>t.setPageIndex(o=>o+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var o;return(o=t.options.pageCount)!=null?o:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var o;return(o=t.options.rowCount)!=null?o:t.getPrePaginationRowModel().rows.length}}},bf=()=>({top:[],bottom:[]}),nI={getInitialState:t=>({rowPinning:bf(),...t}),getDefaultOptions:t=>({onRowPinningChange:vn("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,o,i)=>{const a=o?t.getLeafRows().map(c=>{let{id:u}=c;return u}):[],s=i?t.getParentRows().map(c=>{let{id:u}=c;return u}):[],l=new Set([...s,t.id,...a]);e.setRowPinning(c=>{var u,h;if(n==="bottom"){var p,m;return{top:((p=c==null?void 0:c.top)!=null?p:[]).filter(v=>!(l!=null&&l.has(v))),bottom:[...((m=c==null?void 0:c.bottom)!=null?m:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)]}}if(n==="top"){var b,y;return{top:[...((b=c==null?void 0:c.top)!=null?b:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)],bottom:((y=c==null?void 0:c.bottom)!=null?y:[]).filter(v=>!(l!=null&&l.has(v)))}}return{top:((u=c==null?void 0:c.top)!=null?u:[]).filter(v=>!(l!=null&&l.has(v))),bottom:((h=c==null?void 0:c.bottom)!=null?h:[]).filter(v=>!(l!=null&&l.has(v)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:i}=e.options;return typeof o=="function"?o(t):(n=o??i)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:o,bottom:i}=e.getState().rowPinning,a=n.some(l=>o==null?void 0:o.includes(l)),s=n.some(l=>i==null?void 0:i.includes(l));return a?"top":s?"bottom":!1},t.getPinnedIndex=()=>{var n,o;const i=t.getIsPinned();if(!i)return-1;const a=(n=i==="top"?e.getTopRows():e.getBottomRows())==null?void 0:n.map(s=>{let{id:l}=s;return l});return(o=a==null?void 0:a.indexOf(t.id))!=null?o:-1}},createTable:t=>{t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,o;return t.setRowPinning(e?bf():(n=(o=t.initialState)==null?void 0:o.rowPinning)!=null?n:bf())},t.getIsSomeRowsPinned=e=>{var n;const o=t.getState().rowPinning;if(!e){var i,a;return!!((i=o.top)!=null&&i.length||(a=o.bottom)!=null&&a.length)}return!!((n=o[e])!=null&&n.length)},t._getPinnedRows=(e,n,o)=>{var i;return((i=t.options.keepPinnedRows)==null||i?(n??[]).map(s=>{const l=t.getRow(s,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(s=>e.find(l=>l.id===s))).filter(Boolean).map(s=>({...s,position:o}))},t.getTopRows=ge(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),be(t.options,"debugRows")),t.getBottomRows=ge(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),be(t.options,"debugRows")),t.getCenterRows=ge(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,o)=>{const i=new Set([...n??[],...o??[]]);return e.filter(a=>!i.has(a.id))},be(t.options,"debugRows"))}},oI={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:vn("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:(n=t.initialState.rowSelection)!=null?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const o={...n},i=t.getPreGroupedRowModel().flatRows;return e?i.forEach(a=>{a.getCanSelect()&&(o[a.id]=!0)}):i.forEach(a=>{delete o[a.id]}),o})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const o=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),i={...n};return t.getRowModel().rows.forEach(a=>{yf(i,a.id,o,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=ge(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?vf(t,n):{rows:[],flatRows:[],rowsById:{}},be(t.options,"debugTable")),t.getFilteredSelectedRowModel=ge(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?vf(t,n):{rows:[],flatRows:[],rowsById:{}},be(t.options,"debugTable")),t.getGroupedSelectedRowModel=ge(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?vf(t,n):{rows:[],flatRows:[],rowsById:{}},be(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let o=!!(e.length&&Object.keys(n).length);return o&&e.some(i=>i.getCanSelect()&&!n[i.id])&&(o=!1),o},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=t.getState();let o=!!e.length;return o&&e.some(i=>!n[i.id])&&(o=!1),o},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,o)=>{const i=t.getIsSelected();e.setRowSelection(a=>{var s;if(n=typeof n<"u"?n:!i,t.getCanSelect()&&i===n)return a;const l={...a};return yf(l,t.id,n,(s=o==null?void 0:o.selectChildren)!=null?s:!0,e),l})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return kf(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return wf(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return wf(t,n)==="all"},t.getCanSelect=()=>{var n;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(n=e.options.enableRowSelection)!=null?n:!0},t.getCanSelectSubRows=()=>{var n;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(n=e.options.enableSubRowSelection)!=null?n:!0},t.getCanMultiSelect=()=>{var n;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(n=e.options.enableMultiRowSelection)!=null?n:!0},t.getToggleSelectedHandler=()=>{const n=t.getCanSelect();return o=>{var i;n&&t.toggleSelected((i=o.target)==null?void 0:i.checked)}}}},yf=(t,e,n,o,i)=>{var a;const s=i.getRow(e,!0);n?(s.getCanMultiSelect()||Object.keys(t).forEach(l=>delete t[l]),s.getCanSelect()&&(t[e]=!0)):delete t[e],o&&(a=s.subRows)!=null&&a.length&&s.getCanSelectSubRows()&&s.subRows.forEach(l=>yf(t,l.id,n,o,i))};function vf(t,e){const n=t.getState().rowSelection,o=[],i={},a=function(s,l){return s.map(c=>{var u;const h=kf(c,n);if(h&&(o.push(c),i[c.id]=c),(u=c.subRows)!=null&&u.length&&(c={...c,subRows:a(c.subRows)}),h)return c}).filter(Boolean)};return{rows:a(e.rows),flatRows:o,rowsById:i}}function kf(t,e){var n;return(n=e[t.id])!=null?n:!1}function wf(t,e,n){var o;if(!((o=t.subRows)!=null&&o.length))return!1;let i=!0,a=!1;return t.subRows.forEach(s=>{if(!(a&&!i)&&(s.getCanSelect()&&(kf(s,e)?a=!0:i=!1),s.subRows&&s.subRows.length)){const l=wf(s,e);l==="all"?a=!0:(l==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Sf=/([0-9]+)/gm,rI=(t,e,n)=>yb(lr(t.getValue(n)).toLowerCase(),lr(e.getValue(n)).toLowerCase()),iI=(t,e,n)=>yb(lr(t.getValue(n)),lr(e.getValue(n))),aI=(t,e,n)=>xf(lr(t.getValue(n)).toLowerCase(),lr(e.getValue(n)).toLowerCase()),sI=(t,e,n)=>xf(lr(t.getValue(n)),lr(e.getValue(n))),lI=(t,e,n)=>{const o=t.getValue(n),i=e.getValue(n);return o>i?1:o<i?-1:0},dI=(t,e,n)=>xf(t.getValue(n),e.getValue(n));function xf(t,e){return t===e?0:t>e?1:-1}function lr(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function yb(t,e){const n=t.split(Sf).filter(Boolean),o=e.split(Sf).filter(Boolean);for(;n.length&&o.length;){const i=n.shift(),a=o.shift(),s=parseInt(i,10),l=parseInt(a,10),c=[s,l].sort();if(isNaN(c[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(c[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-o.length}const Ua={alphanumeric:rI,alphanumericCaseSensitive:iI,text:aI,textCaseSensitive:sI,datetime:lI,basic:dI},cI=[UP,YP,XP,qP,WP,jP,ZP,$P,{getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:vn("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const i of n){const a=i==null?void 0:i.getValue(t.id);if(Object.prototype.toString.call(a)==="[object Date]")return Ua.datetime;if(typeof a=="string"&&(o=!0,a.split(Sf).length>1))return Ua.alphanumeric}return o?Ua.text:Ua.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(t.id))=="string"?"asc":"desc"},t.getSortingFn=()=>{var n,o;if(!t)throw new Error;return zl(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(n=(o=e.options.sortingFns)==null?void 0:o[t.columnDef.sortingFn])!=null?n:Ua[t.columnDef.sortingFn]},t.toggleSorting=(n,o)=>{const i=t.getNextSortingOrder(),a=typeof n<"u"&&n!==null;e.setSorting(s=>{const l=s==null?void 0:s.find(b=>b.id===t.id),c=s==null?void 0:s.findIndex(b=>b.id===t.id);let u=[],h,p=a?n:i==="desc";if(s!=null&&s.length&&t.getCanMultiSort()&&o?l?h="toggle":h="add":s!=null&&s.length&&c!==s.length-1?h="replace":l?h="toggle":h="replace",h==="toggle"&&(a||i||(h="remove")),h==="add"){var m;u=[...s,{id:t.id,desc:p}],u.splice(0,u.length-((m=e.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=s.map(b=>b.id===t.id?{...b,desc:p}:b):h==="remove"?u=s.filter(b=>b.id!==t.id):u=[{id:t.id,desc:p}];return u})},t.getFirstSortDir=()=>{var n,o;return((n=(o=t.columnDef.sortDescFirst)!=null?o:e.options.sortDescFirst)!=null?n:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=n=>{var o,i;const a=t.getFirstSortDir(),s=t.getIsSorted();return s?s!==a&&((o=e.options.enableSortingRemoval)==null||o)&&(!(n&&(i=e.options.enableMultiRemove)!=null)||i)?!1:s==="desc"?"asc":"desc":a},t.getCanSort=()=>{var n,o;return((n=t.columnDef.enableSorting)!=null?n:!0)&&((o=e.options.enableSorting)!=null?o:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,o;return(n=(o=t.columnDef.enableMultiSort)!=null?o:e.options.enableMultiSort)!=null?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const o=(n=e.getState().sorting)==null?void 0:n.find(i=>i.id===t.id);return o?o.desc?"desc":"asc":!1},t.getSortIndex=()=>{var n,o;return(n=(o=e.getState().sorting)==null?void 0:o.findIndex(i=>i.id===t.id))!=null?n:-1},t.clearSorting=()=>{e.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return o=>{n&&(o.persist==null||o.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(o):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,o;t.setSorting(e?[]:(n=(o=t.initialState)==null?void 0:o.sorting)!=null?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},GP,eI,tI,nI,oI,KP];function uI(t){var e,n;const o=[...cI,...(e=t._features)!=null?e:[]];let i={_features:o};const a=i._features.reduce((m,b)=>Object.assign(m,b.getDefaultOptions==null?void 0:b.getDefaultOptions(i)),{}),s=m=>i.options.mergeOptions?i.options.mergeOptions(a,m):{...a,...m};let c={...{},...(n=t.initialState)!=null?n:{}};i._features.forEach(m=>{var b;c=(b=m.getInitialState==null?void 0:m.getInitialState(c))!=null?b:c});const u=[];let h=!1;const p={_features:o,options:{...a,...t},initialState:c,_queue:m=>{u.push(m),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(b=>setTimeout(()=>{throw b})))},reset:()=>{i.setState(i.initialState)},setOptions:m=>{const b=sr(m,i.options);i.options=s(b)},getState:()=>i.options.state,setState:m=>{i.options.onStateChange==null||i.options.onStateChange(m)},_getRowId:(m,b,y)=>{var v;return(v=i.options.getRowId==null?void 0:i.options.getRowId(m,b,y))!=null?v:`${y?[y.id,b].join("."):b}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(m,b)=>{let y=(b?i.getPrePaginationRowModel():i.getRowModel()).rowsById[m];if(!y&&(y=i.getCoreRowModel().rowsById[m],!y))throw new Error;return y},_getDefaultColumnDef:ge(()=>[i.options.defaultColumn],m=>{var b;return m=(b=m)!=null?b:{},{header:y=>{const v=y.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:y=>{var v,w;return(v=(w=y.renderValue())==null||w.toString==null?void 0:w.toString())!=null?v:null},...i._features.reduce((y,v)=>Object.assign(y,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...m}},be(t,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:ge(()=>[i._getColumnDefs()],m=>{const b=function(y,v,w){return w===void 0&&(w=0),y.map(x=>{const I=HP(i,x,w,v),R=x;return I.columns=R.columns?b(R.columns,I,w+1):[],I})};return b(m)},be(t,"debugColumns")),getAllFlatColumns:ge(()=>[i.getAllColumns()],m=>m.flatMap(b=>b.getFlatColumns()),be(t,"debugColumns")),_getAllFlatColumnsById:ge(()=>[i.getAllFlatColumns()],m=>m.reduce((b,y)=>(b[y.id]=y,b),{}),be(t,"debugColumns")),getAllLeafColumns:ge(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(m,b)=>{let y=m.flatMap(v=>v.getLeafColumns());return b(y)},be(t,"debugColumns")),getColumn:m=>i._getAllFlatColumnsById()[m]};Object.assign(i,p);for(let m=0;m<i._features.length;m++){const b=i._features[m];b==null||b.createTable==null||b.createTable(i)}return i}function fI(){return t=>ge(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(i,a,s){a===void 0&&(a=0);const l=[];for(let u=0;u<i.length;u++){const h=lf(t,t._getRowId(i[u],u,s),i[u],u,a,void 0,s==null?void 0:s.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,l.push(h),t.options.getSubRows){var c;h.originalSubRows=t.options.getSubRows(i[u],u),(c=h.originalSubRows)!=null&&c.length&&(h.subRows=o(h.originalSubRows,a+1,h))}}return l};return n.rows=o(e),n},be(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function pI(){return t=>ge(()=>[t.getState().expanded,t.getPreExpandedRowModel(),t.options.paginateExpandedRows],(e,n,o)=>!n.rows.length||e!==!0&&!Object.keys(e??{}).length||!o?n:vb(n),be(t.options,"debugTable"))}function vb(t){const e=[],n=o=>{var i;e.push(o),(i=o.subRows)!=null&&i.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}function hI(t,e,n){return n.options.filterFromLeafRows?mI(t,e,n):gI(t,e,n)}function mI(t,e,n){var o;const i=[],a={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,l=function(c,u){u===void 0&&(u=0);const h=[];for(let m=0;m<c.length;m++){var p;let b=c[m];const y=lf(n,b.id,b.original,b.index,b.depth,void 0,b.parentId);if(y.columnFilters=b.columnFilters,(p=b.subRows)!=null&&p.length&&u<s){if(y.subRows=l(b.subRows,u+1),b=y,e(b)&&!y.subRows.length){h.push(b),a[b.id]=b,i.push(b);continue}if(e(b)||y.subRows.length){h.push(b),a[b.id]=b,i.push(b);continue}}else b=y,e(b)&&(h.push(b),a[b.id]=b,i.push(b))}return h};return{rows:l(t),flatRows:i,rowsById:a}}function gI(t,e,n){var o;const i=[],a={},s=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,l=function(c,u){u===void 0&&(u=0);const h=[];for(let m=0;m<c.length;m++){let b=c[m];if(e(b)){var p;if((p=b.subRows)!=null&&p.length&&u<s){const v=lf(n,b.id,b.original,b.index,b.depth,void 0,b.parentId);v.subRows=l(b.subRows,u+1),b=v}h.push(b),i.push(b),a[b.id]=b}}return h};return{rows:l(t),flatRows:i,rowsById:a}}function bI(){return t=>ge(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter],(e,n,o)=>{if(!e.rows.length||!(n!=null&&n.length)&&!o){for(let m=0;m<e.flatRows.length;m++)e.flatRows[m].columnFilters={},e.flatRows[m].columnFiltersMeta={};return e}const i=[],a=[];(n??[]).forEach(m=>{var b;const y=t.getColumn(m.id);if(!y)return;const v=y.getFilterFn();v&&i.push({id:m.id,filterFn:v,resolvedValue:(b=v.resolveFilterValue==null?void 0:v.resolveFilterValue(m.value))!=null?b:m.value})});const s=(n??[]).map(m=>m.id),l=t.getGlobalFilterFn(),c=t.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());o&&l&&c.length&&(s.push("__global__"),c.forEach(m=>{var b;a.push({id:m.id,filterFn:l,resolvedValue:(b=l.resolveFilterValue==null?void 0:l.resolveFilterValue(o))!=null?b:o})}));let u,h;for(let m=0;m<e.flatRows.length;m++){const b=e.flatRows[m];if(b.columnFilters={},i.length)for(let y=0;y<i.length;y++){u=i[y];const v=u.id;b.columnFilters[v]=u.filterFn(b,v,u.resolvedValue,w=>{b.columnFiltersMeta[v]=w})}if(a.length){for(let y=0;y<a.length;y++){h=a[y];const v=h.id;if(h.filterFn(b,v,h.resolvedValue,w=>{b.columnFiltersMeta[v]=w})){b.columnFilters.__global__=!0;break}}b.columnFilters.__global__!==!0&&(b.columnFilters.__global__=!1)}}const p=m=>{for(let b=0;b<s.length;b++)if(m.columnFilters[s[b]]===!1)return!1;return!0};return hI(e.rows,p,t)},be(t.options,"debugTable","getFilteredRowModel",()=>t._autoResetPageIndex()))}function yI(t){return e=>ge(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:i,pageIndex:a}=n;let{rows:s,flatRows:l,rowsById:c}=o;const u=i*a,h=u+i;s=s.slice(u,h);let p;e.options.paginateExpandedRows?p={rows:s,flatRows:l,rowsById:c}:p=vb({rows:s,flatRows:l,rowsById:c}),p.flatRows=[];const m=b=>{p.flatRows.push(b),b.subRows.length&&b.subRows.forEach(m)};return p.rows.forEach(m),p},be(e.options,"debugTable"))}function vI(){return t=>ge(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||!(e!=null&&e.length))return n;const o=t.getState().sorting,i=[],a=o.filter(c=>{var u;return(u=t.getColumn(c.id))==null?void 0:u.getCanSort()}),s={};a.forEach(c=>{const u=t.getColumn(c.id);u&&(s[c.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const l=c=>{const u=c.map(h=>({...h}));return u.sort((h,p)=>{for(let b=0;b<a.length;b+=1){var m;const y=a[b],v=s[y.id],w=v.sortUndefined,x=(m=y==null?void 0:y.desc)!=null?m:!1;let I=0;if(w){const R=h.getValue(y.id),V=p.getValue(y.id),B=R===void 0,L=V===void 0;if(B||L){if(w==="first")return B?-1:1;if(w==="last")return B?1:-1;I=B&&L?0:B?w:-w}}if(I===0&&(I=v.sortingFn(h,p,y.id)),I!==0)return x&&(I*=-1),v.invertSorting&&(I*=-1),I}return h.index-p.index}),u.forEach(h=>{var p;i.push(h),(p=h.subRows)!=null&&p.length&&(h.subRows=l(h.subRows))}),u};return{rows:l(n.rows),flatRows:i,rowsById:n.rowsById}},be(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}/**
@@ -126,5 +126,5 @@ function print() { __p += __j.call(arguments, '') }
126
126
  */function Wl(){return!0}const kI=Symbol("merge-proxy"),wI={get(t,e,n){return e===kI?n:t.get(e)},has(t,e){return t.has(e)},set:Wl,deleteProperty:Wl,getOwnPropertyDescriptor(t,e){return{configurable:!0,enumerable:!0,get(){return t.get(e)},set:Wl,deleteProperty:Wl}},ownKeys(t){return t.keys()}};function Cf(t){return"value"in t?t.value:t}function Wa(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Proxy({get(o){for(let i=e.length-1;i>=0;i--){const a=Cf(e[i])[o];if(a!==void 0)return a}},has(o){for(let i=e.length-1;i>=0;i--)if(o in Cf(e[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<e.length;i++)o.push(...Object.keys(Cf(e[i])));return[...Array.from(new Set(o))]}},wI)}const ja=r.defineComponent({props:["render","props"],setup:t=>()=>typeof t.render=="function"||typeof t.render=="object"?r.h(t.render,t.props):t.render});function kb(t){return Wa(t,{data:r.unref(t.data)})}function SI(t){const e=Wa({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(i,a){return Wa(i,a)}},kb(t)),n=uI(e);r.isRef(t.data)&&r.watch(t.data,()=>{n.setState(i=>({...i,data:r.unref(t.data)}))},{immediate:!0,deep:!0});const o=r.ref(n.initialState);return r.watchEffect(()=>{n.setOptions(i=>{var a;const s=new Proxy({},{get:(l,c)=>o.value[c]});return Wa(i,kb(t),{state:Wa(s,(a=t.state)!=null?a:{}),onStateChange:l=>{l instanceof Function?o.value=l(o.value):o.value=l,t.onStateChange==null||t.onStateChange(l)}})})}),n}const xI=["checked","disabled","indeterminate"],wb=De(r.defineComponent({__name:"FmTableCheckbox",props:{checked:{type:Boolean},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},onChange:{}},setup(t){const e=t,n=r.computed(()=>e.indeterminate&&!e.checked?"remove":e.checked?"check_small":"");return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:"fm-checkbox__input--container",onClick:i[0]||(i[0]=r.withModifiers((...a)=>o.onChange&&o.onChange(...a),["stop"]))},[r.createElementVNode("input",{checked:o.checked,class:r.normalizeClass({"fm-checkbox__input--btn":!0,"fm-checkbox__input--btn--checked":o.checked}),disabled:o.disabled,indeterminate:o.indeterminate,type:"checkbox"},null,10,xI),o.indeterminate||o.checked?(r.openBlock(),r.createBlock(ce,{key:0,name:n.value,class:"fm-checkbox__input--checkmark",color:"#FFFFFF",size:"md"},null,8,["name"])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-05ce96cb"]]),CI=["id"],Sb=r.defineComponent({__name:"FmTableSelection",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(t){const n=Pe(t,"modelValue"),o=r.ref(!1);return(i,a)=>(r.openBlock(),r.createBlock(io,{"max-height":264,shift:"",onMenuChanged:a[0]||(a[0]=s=>o.value=s)},{"menu-button":r.withCtx(()=>{var s;return[r.createVNode(me,{icon:o.value?"expand_less":"expand_more",label:(s=i.items.find(l=>l.value===i.modelValue))==null?void 0:s.label,"icon-position":"append",size:"md",variant:"tertiary"},null,8,["icon","label"])]}),"menu-wrapper":r.withCtx(({maxHeight:s})=>[r.createElementVNode("div",{id:`menu-wrapper-${s}`,style:r.normalizeStyle({maxHeight:`${s}px`}),class:"bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.items,l=>(r.openBlock(),r.createBlock(xt,{key:l.value,label:l.label,"model-value":l.value===r.unref(n),value:l.value,"onUpdate:modelValue":c=>n.value=l.value},null,8,["label","model-value","value","onUpdate:modelValue"]))),128))],12,CI)]),_:1}))}}),AI=["colSpan","onClick"],jl=r.defineComponent({__name:"FmTableHeader",props:{table:{}},emits:["update:column-widths"],setup(t,{emit:e}){const n=e,o=t,i=r.ref(new Map);function a(c){return c.column.columnDef.meta}function s(){const c=Array.from(i.value.values()).map(u=>u.offsetWidth);n("update:column-widths",c)}r.onMounted(()=>{setTimeout(()=>{s()},0),setTimeout(()=>{s()},100)});let l=null;return r.onMounted(()=>{window.ResizeObserver&&(l=new ResizeObserver(()=>{s()}),i.value.forEach(c=>{l==null||l.observe(c)})),r.onUnmounted(()=>{l&&l.disconnect()})}),r.onMounted(()=>{window.addEventListener("resize",s),r.onUnmounted(()=>window.removeEventListener("resize",s))}),r.watch(()=>o.table.getHeaderGroups(),()=>{s()}),(c,u)=>{const h=r.resolveComponent("FmIcon");return r.openBlock(),r.createElementBlock("thead",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.table.getHeaderGroups(),p=>(r.openBlock(),r.createElementBlock("tr",{key:p.id},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.headers,m=>{var b,y,v,w,x,I,R;return r.openBlock(),r.createElementBlock("th",{key:m.id,ref_for:!0,ref:V=>V&&i.value.set(m.id,V),class:r.normalizeClass(["fm-typo-en-body-md-600 text-fm-color-typo-secondary border-b border-fm-color-neutral-gray-100 h-24",m.column.getCanSort()?"cursor-pointer select-none hover:bg-fm-color-opacity-sm":"",((b=a(m))==null?void 0:b.headerClass)??"px-16 py-[13px]"]),colSpan:m.colSpan,style:r.normalizeStyle({width:(y=m.column.columnDef.meta)!=null&&y.width?(v=m.column.columnDef.meta)==null?void 0:v.width:m.column.getSize()!==0?`${m.column.getSize()}px`:(w=a(m))==null?void 0:w.width,maxWidth:(x=a(m))==null?void 0:x.maxWidth,textAlign:((I=a(m))==null?void 0:I.textAlign)??"left"}),onClick:V=>{var B;return(B=m.column.getToggleSortingHandler())==null?void 0:B(V)}},[r.createElementVNode("div",{class:r.normalizeClass([((R=a(m))==null?void 0:R.headerContentClass)??"flex gap-8 items-center"])},[m.isPlaceholder?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(ja),{key:0,props:m.getContext(),render:m.column.columnDef.header},null,8,["props","render"])),m.column.getCanSort()?(r.openBlock(),r.createBlock(h,{key:1,name:{asc:"arrow_upward",desc:"arrow_downward"}[m.column.getIsSorted()]??"unfold_more",color:"neutral-gray-400",size:"sm"},null,8,["name"])):r.createCommentVNode("",!0)],2)],14,AI)}),128))]))),128))])}}});function EI(){this.__data__=[],this.size=0}var DI=EI;function BI(t,e){return t===e||t!==t&&e!==e}var xb=BI,PI=xb;function II(t,e){for(var n=t.length;n--;)if(PI(t[n][0],e))return n;return-1}var Gl=II,OI=Gl,NI=Array.prototype,RI=NI.splice;function VI(t){var e=this.__data__,n=OI(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():RI.call(e,n,1),--this.size,!0}var FI=VI,TI=Gl;function MI(t){var e=this.__data__,n=TI(e,t);return n<0?void 0:e[n][1]}var LI=MI,zI=Gl;function _I(t){return zI(this.__data__,t)>-1}var HI=_I,UI=Gl;function WI(t,e){var n=this.__data__,o=UI(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var jI=WI,GI=DI,QI=FI,XI=LI,qI=HI,KI=jI;function Ai(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ai.prototype.clear=GI,Ai.prototype.delete=QI,Ai.prototype.get=XI,Ai.prototype.has=qI,Ai.prototype.set=KI;var Ql=Ai,JI=Ql;function YI(){this.__data__=new JI,this.size=0}var ZI=YI;function $I(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var eO=$I;function tO(t){return this.__data__.get(t)}var nO=tO;function oO(t){return this.__data__.has(t)}var rO=oO,iO=typeof mn=="object"&&mn&&mn.Object===Object&&mn,Cb=iO,aO=Cb,sO=typeof self=="object"&&self&&self.Object===Object&&self,lO=aO||sO||Function("return this")(),No=lO,dO=No,cO=dO.Symbol,Af=cO,Ab=Af,Eb=Object.prototype,uO=Eb.hasOwnProperty,fO=Eb.toString,Ga=Ab?Ab.toStringTag:void 0;function pO(t){var e=uO.call(t,Ga),n=t[Ga];try{t[Ga]=void 0;var o=!0}catch{}var i=fO.call(t);return o&&(e?t[Ga]=n:delete t[Ga]),i}var hO=pO,mO=Object.prototype,gO=mO.toString;function bO(t){return gO.call(t)}var yO=bO,Db=Af,vO=hO,kO=yO,wO="[object Null]",SO="[object Undefined]",Bb=Db?Db.toStringTag:void 0;function xO(t){return t==null?t===void 0?SO:wO:Bb&&Bb in Object(t)?vO(t):kO(t)}var Xl=xO;function CO(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Pb=CO,AO=Xl,EO=Pb,DO="[object AsyncFunction]",BO="[object Function]",PO="[object GeneratorFunction]",IO="[object Proxy]";function OO(t){if(!EO(t))return!1;var e=AO(t);return e==BO||e==PO||e==DO||e==IO}var Ib=OO,NO=No,RO=NO["__core-js_shared__"],VO=RO,Ef=VO,Ob=function(){var t=/[^.]+$/.exec(Ef&&Ef.keys&&Ef.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function FO(t){return!!Ob&&Ob in t}var TO=FO,MO=Function.prototype,LO=MO.toString;function zO(t){if(t!=null){try{return LO.call(t)}catch{}try{return t+""}catch{}}return""}var Nb=zO,_O=Ib,HO=TO,UO=Pb,WO=Nb,jO=/[\\^$.*+?()[\]{}|]/g,GO=/^\[object .+?Constructor\]$/,QO=Function.prototype,XO=Object.prototype,qO=QO.toString,KO=XO.hasOwnProperty,JO=RegExp("^"+qO.call(KO).replace(jO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YO(t){if(!UO(t)||HO(t))return!1;var e=_O(t)?JO:GO;return e.test(WO(t))}var ZO=YO;function $O(t,e){return t==null?void 0:t[e]}var eN=$O,tN=ZO,nN=eN;function oN(t,e){var n=nN(t,e);return tN(n)?n:void 0}var Ei=oN,rN=Ei,iN=No,aN=rN(iN,"Map"),Df=aN,sN=Ei,lN=sN(Object,"create"),ql=lN,Rb=ql;function dN(){this.__data__=Rb?Rb(null):{},this.size=0}var cN=dN;function uN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var fN=uN,pN=ql,hN="__lodash_hash_undefined__",mN=Object.prototype,gN=mN.hasOwnProperty;function bN(t){var e=this.__data__;if(pN){var n=e[t];return n===hN?void 0:n}return gN.call(e,t)?e[t]:void 0}var yN=bN,vN=ql,kN=Object.prototype,wN=kN.hasOwnProperty;function SN(t){var e=this.__data__;return vN?e[t]!==void 0:wN.call(e,t)}var xN=SN,CN=ql,AN="__lodash_hash_undefined__";function EN(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=CN&&e===void 0?AN:e,this}var DN=EN,BN=cN,PN=fN,IN=yN,ON=xN,NN=DN;function Di(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Di.prototype.clear=BN,Di.prototype.delete=PN,Di.prototype.get=IN,Di.prototype.has=ON,Di.prototype.set=NN;var RN=Di,Vb=RN,VN=Ql,FN=Df;function TN(){this.size=0,this.__data__={hash:new Vb,map:new(FN||VN),string:new Vb}}var MN=TN;function LN(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var zN=LN,_N=zN;function HN(t,e){var n=t.__data__;return _N(e)?n[typeof e=="string"?"string":"hash"]:n.map}var Kl=HN,UN=Kl;function WN(t){var e=UN(this,t).delete(t);return this.size-=e?1:0,e}var jN=WN,GN=Kl;function QN(t){return GN(this,t).get(t)}var XN=QN,qN=Kl;function KN(t){return qN(this,t).has(t)}var JN=KN,YN=Kl;function ZN(t,e){var n=YN(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var $N=ZN,eR=MN,tR=jN,nR=XN,oR=JN,rR=$N;function Bi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Bi.prototype.clear=eR,Bi.prototype.delete=tR,Bi.prototype.get=nR,Bi.prototype.has=oR,Bi.prototype.set=rR;var Fb=Bi,iR=Ql,aR=Df,sR=Fb,lR=200;function dR(t,e){var n=this.__data__;if(n instanceof iR){var o=n.__data__;if(!aR||o.length<lR-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new sR(o)}return n.set(t,e),this.size=n.size,this}var cR=dR,uR=Ql,fR=ZI,pR=eO,hR=nO,mR=rO,gR=cR;function Pi(t){var e=this.__data__=new uR(t);this.size=e.size}Pi.prototype.clear=fR,Pi.prototype.delete=pR,Pi.prototype.get=hR,Pi.prototype.has=mR,Pi.prototype.set=gR;var bR=Pi,yR="__lodash_hash_undefined__";function vR(t){return this.__data__.set(t,yR),this}var kR=vR;function wR(t){return this.__data__.has(t)}var SR=wR,xR=Fb,CR=kR,AR=SR;function Jl(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new xR;++e<n;)this.add(t[e])}Jl.prototype.add=Jl.prototype.push=CR,Jl.prototype.has=AR;var ER=Jl;function DR(t,e){for(var n=-1,o=t==null?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}var BR=DR;function PR(t,e){return t.has(e)}var IR=PR,OR=ER,NR=BR,RR=IR,VR=1,FR=2;function TR(t,e,n,o,i,a){var s=n&VR,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),h=a.get(e);if(u&&h)return u==e&&h==t;var p=-1,m=!0,b=n&FR?new OR:void 0;for(a.set(t,e),a.set(e,t);++p<l;){var y=t[p],v=e[p];if(o)var w=s?o(v,y,p,e,t,a):o(y,v,p,t,e,a);if(w!==void 0){if(w)continue;m=!1;break}if(b){if(!NR(e,function(x,I){if(!RR(b,I)&&(y===x||i(y,x,n,o,a)))return b.push(I)})){m=!1;break}}else if(!(y===v||i(y,v,n,o,a))){m=!1;break}}return a.delete(t),a.delete(e),m}var Tb=TR,MR=No,LR=MR.Uint8Array,zR=LR;function _R(t){var e=-1,n=Array(t.size);return t.forEach(function(o,i){n[++e]=[i,o]}),n}var HR=_R;function UR(t){var e=-1,n=Array(t.size);return t.forEach(function(o){n[++e]=o}),n}var WR=UR,Mb=Af,Lb=zR,jR=xb,GR=Tb,QR=HR,XR=WR,qR=1,KR=2,JR="[object Boolean]",YR="[object Date]",ZR="[object Error]",$R="[object Map]",eV="[object Number]",tV="[object RegExp]",nV="[object Set]",oV="[object String]",rV="[object Symbol]",iV="[object ArrayBuffer]",aV="[object DataView]",zb=Mb?Mb.prototype:void 0,Bf=zb?zb.valueOf:void 0;function sV(t,e,n,o,i,a,s){switch(n){case aV:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case iV:return!(t.byteLength!=e.byteLength||!a(new Lb(t),new Lb(e)));case JR:case YR:case eV:return jR(+t,+e);case ZR:return t.name==e.name&&t.message==e.message;case tV:case oV:return t==e+"";case $R:var l=QR;case nV:var c=o&qR;if(l||(l=XR),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;o|=KR,s.set(t,e);var h=GR(l(t),l(e),o,i,a,s);return s.delete(t),h;case rV:if(Bf)return Bf.call(t)==Bf.call(e)}return!1}var lV=sV;function dV(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t}var cV=dV,uV=Array.isArray,Pf=uV,fV=cV,pV=Pf;function hV(t,e,n){var o=e(t);return pV(t)?o:fV(o,n(t))}var mV=hV;function gV(t,e){for(var n=-1,o=t==null?0:t.length,i=0,a=[];++n<o;){var s=t[n];e(s,n,t)&&(a[i++]=s)}return a}var bV=gV;function yV(){return[]}var vV=yV,kV=bV,wV=vV,SV=Object.prototype,xV=SV.propertyIsEnumerable,_b=Object.getOwnPropertySymbols,CV=_b?function(t){return t==null?[]:(t=Object(t),kV(_b(t),function(e){return xV.call(t,e)}))}:wV,AV=CV;function EV(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}var DV=EV;function BV(t){return t!=null&&typeof t=="object"}var Yl=BV,PV=Xl,IV=Yl,OV="[object Arguments]";function NV(t){return IV(t)&&PV(t)==OV}var RV=NV,Hb=RV,VV=Yl,Ub=Object.prototype,FV=Ub.hasOwnProperty,TV=Ub.propertyIsEnumerable,MV=Hb(function(){return arguments}())?Hb:function(t){return VV(t)&&FV.call(t,"callee")&&!TV.call(t,"callee")},LV=MV,Zl={exports:{}};function zV(){return!1}var _V=zV;Zl.exports,function(t,e){var n=No,o=_V,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,s=a&&a.exports===i,l=s?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||o;t.exports=u}(Zl,Zl.exports);var Wb=Zl.exports,HV=9007199254740991,UV=/^(?:0|[1-9]\d*)$/;function WV(t,e){var n=typeof t;return e=e??HV,!!e&&(n=="number"||n!="symbol"&&UV.test(t))&&t>-1&&t%1==0&&t<e}var jV=WV,GV=9007199254740991;function QV(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=GV}var jb=QV,XV=Xl,qV=jb,KV=Yl,JV="[object Arguments]",YV="[object Array]",ZV="[object Boolean]",$V="[object Date]",eF="[object Error]",tF="[object Function]",nF="[object Map]",oF="[object Number]",rF="[object Object]",iF="[object RegExp]",aF="[object Set]",sF="[object String]",lF="[object WeakMap]",dF="[object ArrayBuffer]",cF="[object DataView]",uF="[object Float32Array]",fF="[object Float64Array]",pF="[object Int8Array]",hF="[object Int16Array]",mF="[object Int32Array]",gF="[object Uint8Array]",bF="[object Uint8ClampedArray]",yF="[object Uint16Array]",vF="[object Uint32Array]",tt={};tt[uF]=tt[fF]=tt[pF]=tt[hF]=tt[mF]=tt[gF]=tt[bF]=tt[yF]=tt[vF]=!0,tt[JV]=tt[YV]=tt[dF]=tt[ZV]=tt[cF]=tt[$V]=tt[eF]=tt[tF]=tt[nF]=tt[oF]=tt[rF]=tt[iF]=tt[aF]=tt[sF]=tt[lF]=!1;function kF(t){return KV(t)&&qV(t.length)&&!!tt[XV(t)]}var wF=kF;function SF(t){return function(e){return t(e)}}var xF=SF,$l={exports:{}};$l.exports,function(t,e){var n=Cb,o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();t.exports=l}($l,$l.exports);var CF=$l.exports,AF=wF,EF=xF,Gb=CF,Qb=Gb&&Gb.isTypedArray,DF=Qb?EF(Qb):AF,Xb=DF,BF=DV,PF=LV,IF=Pf,OF=Wb,NF=jV,RF=Xb,VF=Object.prototype,FF=VF.hasOwnProperty;function TF(t,e){var n=IF(t),o=!n&&PF(t),i=!n&&!o&&OF(t),a=!n&&!o&&!i&&RF(t),s=n||o||i||a,l=s?BF(t.length,String):[],c=l.length;for(var u in t)(e||FF.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||NF(u,c)))&&l.push(u);return l}var MF=TF,LF=Object.prototype;function zF(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||LF;return t===n}var _F=zF;function HF(t,e){return function(n){return t(e(n))}}var UF=HF,WF=UF,jF=WF(Object.keys,Object),GF=jF,QF=_F,XF=GF,qF=Object.prototype,KF=qF.hasOwnProperty;function JF(t){if(!QF(t))return XF(t);var e=[];for(var n in Object(t))KF.call(t,n)&&n!="constructor"&&e.push(n);return e}var YF=JF,ZF=Ib,$F=jb;function eT(t){return t!=null&&$F(t.length)&&!ZF(t)}var tT=eT,nT=MF,oT=YF,rT=tT;function iT(t){return rT(t)?nT(t):oT(t)}var aT=iT,sT=mV,lT=AV,dT=aT;function cT(t){return sT(t,dT,lT)}var uT=cT,qb=uT,fT=1,pT=Object.prototype,hT=pT.hasOwnProperty;function mT(t,e,n,o,i,a){var s=n&fT,l=qb(t),c=l.length,u=qb(e),h=u.length;if(c!=h&&!s)return!1;for(var p=c;p--;){var m=l[p];if(!(s?m in e:hT.call(e,m)))return!1}var b=a.get(t),y=a.get(e);if(b&&y)return b==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var w=s;++p<c;){m=l[p];var x=t[m],I=e[m];if(o)var R=s?o(I,x,m,e,t,a):o(x,I,m,t,e,a);if(!(R===void 0?x===I||i(x,I,n,o,a):R)){v=!1;break}w||(w=m=="constructor")}if(v&&!w){var V=t.constructor,B=e.constructor;V!=B&&"constructor"in t&&"constructor"in e&&!(typeof V=="function"&&V instanceof V&&typeof B=="function"&&B instanceof B)&&(v=!1)}return a.delete(t),a.delete(e),v}var gT=mT,bT=Ei,yT=No,vT=bT(yT,"DataView"),kT=vT,wT=Ei,ST=No,xT=wT(ST,"Promise"),CT=xT,AT=Ei,ET=No,DT=AT(ET,"Set"),BT=DT,PT=Ei,IT=No,OT=PT(IT,"WeakMap"),NT=OT,If=kT,Of=Df,Nf=CT,Rf=BT,Vf=NT,Kb=Xl,Ii=Nb,Jb="[object Map]",RT="[object Object]",Yb="[object Promise]",Zb="[object Set]",$b="[object WeakMap]",ey="[object DataView]",VT=Ii(If),FT=Ii(Of),TT=Ii(Nf),MT=Ii(Rf),LT=Ii(Vf),_r=Kb;(If&&_r(new If(new ArrayBuffer(1)))!=ey||Of&&_r(new Of)!=Jb||Nf&&_r(Nf.resolve())!=Yb||Rf&&_r(new Rf)!=Zb||Vf&&_r(new Vf)!=$b)&&(_r=function(t){var e=Kb(t),n=e==RT?t.constructor:void 0,o=n?Ii(n):"";if(o)switch(o){case VT:return ey;case FT:return Jb;case TT:return Yb;case MT:return Zb;case LT:return $b}return e});var zT=_r,Ff=bR,_T=Tb,HT=lV,UT=gT,ty=zT,ny=Pf,oy=Wb,WT=Xb,jT=1,ry="[object Arguments]",iy="[object Array]",ed="[object Object]",GT=Object.prototype,ay=GT.hasOwnProperty;function QT(t,e,n,o,i,a){var s=ny(t),l=ny(e),c=s?iy:ty(t),u=l?iy:ty(e);c=c==ry?ed:c,u=u==ry?ed:u;var h=c==ed,p=u==ed,m=c==u;if(m&&oy(t)){if(!oy(e))return!1;s=!0,h=!1}if(m&&!h)return a||(a=new Ff),s||WT(t)?_T(t,e,n,o,i,a):HT(t,e,c,n,o,i,a);if(!(n&jT)){var b=h&&ay.call(t,"__wrapped__"),y=p&&ay.call(e,"__wrapped__");if(b||y){var v=b?t.value():t,w=y?e.value():e;return a||(a=new Ff),i(v,w,n,o,a)}}return m?(a||(a=new Ff),UT(t,e,n,o,i,a)):!1}var XT=QT,qT=XT,sy=Yl;function ly(t,e,n,o,i){return t===e?!0:t==null||e==null||!sy(t)&&!sy(e)?t!==t&&e!==e:qT(t,e,n,o,ly,i)}var KT=ly,JT=KT;function YT(t,e){return JT(t,e)}var ZT=YT;const $T=zs(ZT);function Oi(t,e,n){let o=n.initialDeps??[],i;return()=>{var a,s,l,c;let u;n.key&&((a=n.debug)!=null&&a.call(n))&&(u=Date.now());const h=t();if(!(h.length!==o.length||h.some((b,y)=>o[y]!==b)))return i;o=h;let m;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(m=Date.now()),i=e(...h),n.key&&((l=n.debug)!=null&&l.call(n))){const b=Math.round((Date.now()-u)*100)/100,y=Math.round((Date.now()-m)*100)/100,v=y/16,w=(x,I)=>{for(x=String(x);x.length<I;)x=" "+x;return x};console.info(`%c⏱ ${w(y,5)} /${w(b,5)} ms`,`
127
127
  font-size: .6rem;
128
128
  font-weight: bold;
129
- color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,i),i}}function Tf(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const eM=(t,e)=>Math.abs(t-e)<1,tM=(t,e,n)=>{let o;return function(...i){t.clearTimeout(o),o=t.setTimeout(()=>e.apply(this,i),n)}};var Qa={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",npm_package_exports___require:"./dist/feedmepos-ui-library.umd.cjs",npm_package_dependencies_prettier:"^3.2.5",npm_package_devDependencies__types_node:"^18.19.21",DOTNET_NOLOGO:"1",npm_package_devDependencies__originjs_vite_plugin_federation:"^1.3.5",USER:"runner",npm_package_dependencies__rollup_plugin_commonjs:"^26.0.1",npm_config_user_agent:"pnpm/9.15.9 npm/? node/v20.20.2 linux x64",CI:"true",npm_package_dependencies_v_wave:"^1.5.1",npm_package_dependencies_vue:"^3.4.21",USE_BAZEL_FALLBACK_VERSION:"silent:",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",PIPX_HOME:"/opt/pipx",npm_package_dependencies__types_lodash:"^4.17.7",npm_package_devDependencies_tsc_alias:"^1.8.8",npm_package_devDependencies_vite:"^5.1.4",npm_package_peerDependencies_tailwindcss:"^3.4.1",npm_node_execpath:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_package_files_0:"dist",npm_package_scripts_build_lib:"vite build --mode library",npm_package_dependencies_vue_virtual_scroller:"2.0.0-beta.8",HOME:"/home/runner",npm_package_exports___meta_types:"./dist/meta.d.ts",npm_package_dependencies_chart_js:"^4.4.2",npm_package_devDependencies_sass:"^1.71.1",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_package_devDependencies_vite_plugin_static_copy:"^0.17.1",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"feedmepos",npm_package_scripts_build_components:'run-p type-check "build-lib {@}" --',GRADLE_HOME:"/usr/share/gradle-9.4.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/29.0.14206865",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",npm_package_scripts_type_check:"vue-tsc --noEmit -p tsconfig.app.json --composite false",npm_package_dependencies__tanstack_vue_virtual:"^3.13.0",npm_package_devDependencies_npm_run_all2:"^6.1.2",npm_package_peerDependencies_vue:"^3.4.21",GITHUB_REPOSITORY_OWNER_ID:"54831515",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_package_scripts_build_federation:"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp",npm_package_devDependencies_vue_component_meta:"^2.0.13",SYSTEMD_EXEC_PID:"1884",ACTIONS_ORCHESTRATION_ID:"54995c96-d181-41c1-8c98-439e3ed5b685.deploy.__default",npm_package_dependencies_dayjs:"^1.11.10",npm_package_devDependencies__tsconfig_node18:"^18.2.2",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",npm_package_devDependencies_tailwindcss:"^3.4.1",npm_package_devDependencies_typescript:"~5.2.2",JAVA_HOME_25_X64:"/usr/lib/jvm/temurin-25-jdk-amd64",NVM_DIR:"/home/runner/.nvm",npm_package_homepage:"ui.feedme.ai",npm_package_devDependencies_vue_tsc:"^1.8.27",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20260413.86.1",npm_package_scripts_dev:"vite --port 5273",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",STORE_PATH:"/home/runner/setup-pnpm/node_modules/.bin/store/v3",SWIFT_PATH:"/usr/share/swift/usr/bin",npm_package_type:"module",npm_package_dependencies__vueuse_core:"^10.9.0",npm_package_devDependencies__vue_tsconfig:"^0.4.0",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:15362",GITHUB_WORKFLOW:"Publish Vue",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",npm_package_module:"./dist/feedmepos-ui-library.js",npm_package_devDependencies_autoprefixer:"^10.4.17",RUNNER_DEBUG:"1",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.13/x64",npm_package_scripts_build_tailwind_plugin:"vite build --mode tailwind-plugin",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",npm_package_dependencies_fuzzy:"^0.1.3",npm_package_devDependencies__types_uuid:"^10.0.0",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GOROOT_1_25_X64:"/opt/hostedtoolcache/go/1.25.9/x64",GITHUB_RUN_ID:"24823263517",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"a8417ca1e01aa8fb1d9054e44e169d7a1cce3fa3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",npm_package_exports___import:"./dist/feedmepos-ui-library.js",npm_package_devDependencies__vitejs_plugin_vue:"^5.0.4",GITHUB_WORKFLOW_REF:"feedmepos/ui-library/.github/workflows/publish-vue.yml@refs/heads/main",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fba73558-16ce-4dc7-84f6-12aadce10ec0",INVOCATION_ID:"b64080d07f3d40c88833f700aa2166be",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",npm_package_name:"@feedmepos/ui-library",npm_package_repository_type:"git",GITHUB_ACTION:"__run_4",GITHUB_RUN_NUMBER:"340",GITHUB_TRIGGERING_ACTOR:"mmjang",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",npm_package_dependencies_vue_country_flag_next:"^2.3.2",npm_config_frozen_lockfile:"",npm_package_exports___styles_css:"./dist/style.css",npm_package_scripts_build_tailwind_styling:"vite build --mode tailwind-styling",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",npm_package_scripts_generate_component_meta:"node ./scripts/generate-component-meta.js",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies_eslint:"^8.57.0",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000062662",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"feedmepos/ui-library",npm_package_main:"./dist/feedmepos-ui-library.umd.cjs",npm_package_scripts_build_types:"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false",npm_package_dependencies__feedmepos_core:"^2.10.12",npm_package_devDependencies__types_debounce:"^1.2.4",npm_lifecycle_script:"vite build --mode library",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",npm_package_exports___tailwind_plugin:"./dist/tailwind-plugin.js",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"677015340",GITHUB_ACTIONS:"true",NODE_PATH:"/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/run-p/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"1.10.2",npm_package_repository_url:"git+https://github.com/feedmepos/ui-library.git",npm_package_dependencies__tanstack_vue_table:"^8.13.2",npm_package_dependencies_vuedraggable:"^4.1.0",npm_package_devDependencies__rushstack_eslint_patch:"^1.7.2",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_lifecycle_event:"build-lib",GITHUB_REF_PROTECTED:"false",npm_package_scripts_build:"vite build",npm_package_dependencies_uuid:"^10.0.0",GITHUB_WORKSPACE:"/home/runner/work/ui-library/ui-library",ACCEPT_EULA:"Y",GITHUB_JOB:"deploy",npm_package_dependencies_lodash:"^4.17.21",GITHUB_SHA:"a8417ca1e01aa8fb1d9054e44e169d7a1cce3fa3",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"mmjang",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_package_scripts_build_pack:"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../",npm_package_exports___tailwind_styling:"./dist/tailwind-styling.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/ui-library/ui-library/packages/vue",GITHUB_ACTOR_ID:"5045203",RUNNER_WORKSPACE:"/home/runner/work/ui-library",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",npm_package_exports___types:"./dist/index.d.ts",npm_package_devDependencies__types_chart_js:"^2.9.41",npm_config_recursive:"true",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_devDependencies_eslint_plugin_vue:"^9.22.0",npm_package_devDependencies_postcss:"^8.4.35",npm_package_peerDependencies_vite:"^5.1.4",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",PSModulePath:"/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0",CHROME_BIN:"/usr/bin/google-chrome",npm_package_scripts_preview:"vite preview",npm_package_scripts_deploy:"pnpm run build:lib && pnpm publish --no-git-checks .",npm_package_dependencies__floating_ui_vue:"^1.0.6",npm_package_dependencies_debounce:"^2.0.0",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",npm_package_bugs:"https://feedmepos.atlassian.net/browse/CT-3",npm_package_scripts_register_components:"node ./scripts/register-components.js && pnpm lint",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_f51b96cd-d2b4-4e9a-bede-8cb6703b10b8",INIT_CWD:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_scripts_copy_changelog:"cp ./CHANGELOG.md ./dist/CHANGELOG.md",npm_package_dependencies_chartjs_plugin_datalabels:"^2.2.0",npm_package_dependencies_libphonenumber_js:"^1.10.57",NODE_ENV:"production"}};const nM=t=>t,oM=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),o=[];for(let i=e;i<=n;i++)o.push(i);return o},rM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;const i=s=>{const{width:l,height:c}=s;e({width:Math.round(l),height:Math.round(c)})};if(i(n.getBoundingClientRect()),!o.ResizeObserver)return()=>{};const a=new o.ResizeObserver(s=>{const l=()=>{const c=s[0];if(c!=null&&c.borderBoxSize){const u=c.borderBoxSize[0];if(u){i({width:u.inlineSize,height:u.blockSize});return}}i(n.getBoundingClientRect())};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},dy={passive:!0},cy=typeof window>"u"?!0:"onscrollend"in window,iM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;let i=0;const a=t.options.useScrollendEvent&&cy?()=>{}:tM(o,()=>{e(i,!1)},t.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:m}=t.options;i=p?n.scrollLeft*(m&&-1||1):n.scrollTop,a(),e(i,h)},l=s(!0),c=s(!1);c(),n.addEventListener("scroll",l,dy);const u=t.options.useScrollendEvent&&cy;return u&&n.addEventListener("scrollend",c,dy),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},aM=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const o=e.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},sM=(t,{adjustments:e=0,behavior:n},o)=>{var i,a;const s=t+e;(a=(i=o.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[o.options.horizontal?"left":"top"]:s,behavior:n})};class lM{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const s=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=o())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=o())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=o())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,i])=>{typeof i>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nM,rangeExtractor:oM,onChange:()=>{},measureElement:aM,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,i;(i=(o=this.options).onChange)==null||i.call(o,this,n)},this.maybeNotify=Oi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const i=new Map,a=new Map;for(let s=o-1;s>=0;s--){const l=n[s];if(i.has(l.lane))continue;const c=a.get(l.lane);if(c==null||l.end>c.end?a.set(l.lane,l):l.end<c.end&&i.set(l.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Oi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,o,i,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:i,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Oi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:i,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,c);for(let h=c;h<n;h++){const p=a(h),m=this.options.lanes===1?u[h-1]:this.getFurthestMeasurement(u,h),b=m?m.end+this.options.gap:o+i,y=l.get(p),v=typeof y=="number"?y:this.options.estimateSize(h),w=b+v,x=m?m.lane:h%this.options.lanes;u[h]={index:h,start:b,size:v,end:w,key:p,lane:x}}return this.measurementsCache=u,u},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Oi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,o,i)=>this.range=n.length>0&&o>0?dM({measurements:n,outerSize:o,scrollOffset:i}):null,{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualIndexes=Oi(()=>{let n=null,o=null;const i=this.calculateRange();return i&&(n=i.startIndex,o=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,i,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:o,count:i}),{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,i=n.getAttribute(o);return i?parseInt(i,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const s=a.key,l=this.elementsCache.get(s);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(s,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,s=o-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,o)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,i)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=Oi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const i=[];for(let a=0,s=n.length;a<s;a++){const l=n[a],c=o[l];i.push(c)}return i},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Tf(o[uy(0,o.length-1,i=>Tf(o[i]).start,n)])},this.getOffsetForAlignment=(n,o)=>{const i=this.getSize(),a=this.getScrollOffset();o==="auto"&&n>=a+i&&(o="end"),o==="end"&&(n-=i);const s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),s=this.getScrollOffset();if(o==="auto")if(i.end>=s+a-this.options.scrollPaddingEnd)o="end";else if(i.start<=s+this.options.scrollPaddingStart)o="start";else return[s,o];const l=i.start-this.options.scrollPaddingStart+(i.size-a)/2;switch(o){case"center":return[this.getOffsetForAlignment(l,o),o];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:o="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:o="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(n,o);if(!a)return;const[s,l]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=Tf(this.getOffsetForIndex(n,l));eM(u,this.getScrollOffset())||this.scrollToIndex(n,{align:l,behavior:i})}else this.scrollToIndex(n,{align:l,behavior:i})}))},this.scrollBy=(n,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let i;return o.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=o[o.length-1])==null?void 0:n.end)??0:Math.max(...o.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const uy=(t,e,n,o)=>{for(;t<=e;){const i=(t+e)/2|0,a=n(i);if(a<o)t=i+1;else if(a>o)e=i-1;else return i}return t>0?t-1:0};function dM({measurements:t,outerSize:e,scrollOffset:n}){const o=t.length-1,a=uy(0,o,l=>t[l].start,n);let s=a;for(;s<o&&t[s].end<n+e;)s++;return{startIndex:a,endIndex:s}}function cM(t){const e=new lM(r.unref(t)),n=r.shallowRef(e),o=e._didMount();return r.watch(()=>r.unref(t).getScrollElement(),i=>{i&&e._willUpdate()},{immediate:!0}),r.watch(()=>r.unref(t),i=>{e.setOptions({...i,onChange:(a,s)=>{var l;r.triggerRef(n),(l=i.onChange)==null||l.call(i,a,s)}}),e._willUpdate(),r.triggerRef(n)},{immediate:!0}),r.onScopeDispose(o),n}function uM(t){return cM(r.computed(()=>({observeElementRect:rM,observeElementOffset:iM,scrollToFn:sM,...r.unref(t)})))}const fM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},pM={class:"text-fm-color-typo-secondary"},hM=["onClick"],mM={key:0},gM={key:0,class:"w-full"},bM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},yM={class:"text-fm-color-typo-secondary"},vM=["onClick"],kM=["colspan"],wM={key:1,class:"virtual-table-container w-full"},SM={class:"sticky top-0 z-10 w-full"},xM={class:"w-full"},CM=["onClick"],AM={class:"flex gap-8 items-center"},EM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},DM={class:"flex gap-8"},BM=De(r.defineComponent({__name:"FmTable",props:{modelValue:{default:{}},selection:{default:void 0},rowData:{default:()=>[]},columnDefs:{default:()=>[]},columnFilter:{default:void 0},searchValue:{default:""},pageCount:{default:0},rowCount:{default:void 0},fetchFn:{type:Function,default:void 0},pageSize:{default:10},loading:{type:Boolean,default:void 0},pinHeaderRow:{type:Boolean,default:!0},hideHeaderRow:{type:Boolean},rowClassName:{},onRowClick:{type:Function,default:void 0},autoResetPageIndex:{type:Boolean},shrinkAt:{type:[String,Number,Boolean],default:"sm"},hideFooter:{type:Boolean},forceMobileFooter:{type:Boolean},columnVisibility:{},draggable:{type:[Boolean,Function]},wholeRowDraggable:{type:Boolean},expandedState:{type:[Boolean,Object]},getRowCanExpand:{type:Function,default:()=>!0},getSubRow:{type:Function,default:t=>t.subRows},onVuedraggableMove:{type:Function,default:()=>!0},virtual:{type:Boolean,default:!1},virtualRowHeight:{default:48},getRowId:{}},emits:["sort-change","dnd-changed","update:expanded-state","update:dragging"],setup(t,{emit:e}){const n=t,o=e;if(n.virtual&&n.draggable)throw new Error("Cannot use virtual scroll and draggable at the same time");const i=Pe(n,"modelValue"),a=Pe(n,"searchValue"),s=r.ref(n.rowData),l=r.ref(!1);r.watch(()=>l.value,C=>{o("update:dragging",C),C&&o("update:expanded-state",{})});const c=()=>{let C=[];n.selection&&C.push({id:"row-selection",header:({table:M})=>r.createVNode(wb,{checked:M.getIsAllPageRowsSelected(),indeterminate:M.getIsSomePageRowsSelected(),onChange:M.getToggleAllPageRowsSelectedHandler()},null),cell:({row:M})=>M.depth===0?r.createVNode(wb,{checked:M==null?void 0:M.getIsSelected(),disabled:!(M!=null&&M.getCanSelect()),onChange:M==null?void 0:M.getToggleSelectedHandler()},null):r.createVNode("div",null,null),enableResizing:!1,meta:{headerClass:"py-[2px] pl-4 pr-16",cellClass:"pl-4 pr-16",width:"60px"},size:60});const T=n.draggable;return T&&!n.wholeRowDraggable&&C.push({id:"row-drag",header:"",cell:({row:M})=>(typeof T=="function"?T(M.original,M.index):T)&&M.depth===0?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(me,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",onMousedown:()=>{l.value=!0},onMouseup:()=>{l.value=!1}})):typeof T=="function"?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(me,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",disabled:!0})):r.createVNode("div",null,null),enableResizing:!1,meta:{cellClass:"dnd-handler",width:"60px"},size:60}),[...C,...n.columnDefs]},u=r.ref([]);r.watch(()=>u.value,C=>{o("sort-change",C)}),r.watch(()=>n.rowData,C=>{s.value=[...C]},{deep:!0});const h=r.ref({pageIndex:0,pageSize:n.pageSize}),p=SI({get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()},get data(){return s.value},getRowId:n.getRowId,state:{get pagination(){return typeof n.fetchFn=="function"?h.value:void 0},get globalFilter(){return a.value},get rowSelection(){return i.value},get sorting(){return u.value},get columnVisibility(){return n.columnVisibility},get expanded(){return n.expandedState}},getCoreRowModel:fI(),getSortedRowModel:vI(),getFilteredRowModel:bI(),getPaginationRowModel:yI(),getRowCanExpand:n.getRowCanExpand,onExpandedChange:C=>{if(!n.expandedState)return;const T=typeof C=="function"?C(n.expandedState):C;o("update:expanded-state",T)},onRowSelectionChange:C=>{if(!v.value)return i.value=typeof C=="function"?C(i.value):C},onSortingChange:C=>{u.value=typeof C=="function"?C(u.value):C},onGlobalFilterChange:C=>{a.value=typeof C=="function"?C(a.value):C},autoResetPageIndex:n.autoResetPageIndex,manualPagination:typeof n.fetchFn=="function",...typeof n.fetchFn=="function"&&{onPaginationChange:C=>h.value=typeof C=="function"?C(h.value):C},pageCount:typeof n.fetchFn=="function"?n.pageCount:void 0,getSubRows:C=>n.getSubRow(C),getExpandedRowModel:pI(),get enableHiding(){return!0}});r.watch(()=>h.value,C=>{y(C)}),r.watch(()=>n.selection,()=>{p.setOptions(C=>({...C,get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()}}))});const m=r.ref(""),b=r.ref(!1);async function y(C){if(!n.fetchFn)return;b.value=!0;const T=`${Math.random()}`;m.value=T;try{await n.fetchFn(C)}catch{}finally{m.value===T&&(b.value=!1)}}const v=r.computed(()=>{const C=b.value;return typeof n.loading=="boolean"?n.loading:C});r.watch(()=>n.rowData,()=>{p.setOptions(C=>({...C,get data(){return s.value}}))}),r.watch([()=>n.pageCount,()=>n.rowCount],()=>{p.setOptions(C=>({...C,pageCount:n.pageCount,rowCount:n.rowCount}))}),r.watch(()=>n.pageSize,()=>{p.setPageSize(n.pageSize)}),r.watch([()=>n.columnFilter],([C])=>{p.setColumnFilters(()=>C??[])}),r.watch(()=>n.columnDefs,()=>{p.setOptions(C=>({...C,get columns(){return c()}}))}),r.onMounted(()=>{n.fetchFn&&n.fetchFn(p.getState().pagination),p.setPageSize(n.pageSize)});const w=r.ref(380);function x(C){var M;const T=((M=C.el)==null?void 0:M.scrollHeight)??0;w.value=Math.max(100,T)}const I=Jo(),R=r.ref(),V=r.ref(typeof n.shrinkAt=="boolean"&&!n.shrinkAt?!1:I.isBreakpointKeyword(n.shrinkAt)&&I.isAtMost(n.shrinkAt)),B=r.computed(()=>{const C=[...Array.from(Array(Math.min(5,Math.floor(n.rowData.length/10))),(M,K)=>(K+1)*10).map(M=>({label:M.toString(),value:M}))],T={label:H("table.all"),value:n.rowData.length};return n.pageSize&&n.pageSize>0&&(C.some(M=>M.value===n.pageSize)||(C.push({label:n.pageSize.toString(),value:n.pageSize}),C.sort((M,K)=>M.value-K.value))),[...C,T]});function L(C){const T=C.el;if(!T||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt)return;const M=nf(function(){if(R.value=T.clientWidth,I.isBreakpointKeyword(n.shrinkAt)){V.value=I.isAtMost(n.shrinkAt);return}const K=Number(n.shrinkAt);if(isNaN(K)){V.value=!1;return}V.value=T.scrollWidth>=K},200);T.resizeTable??(T.resizeTable=function(){V.value=I.isBreakpointKeyword(n.shrinkAt)&&I.isAtMost(n.shrinkAt),M()}),window.addEventListener("resize",T.resizeTable),T.resizeTable()}function P(C){const T=C.el;!T||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt||T.resizeTable&&window.removeEventListener("resize",T.resizeTable)}function _(C){const T=Math.min(...C.map(ie=>ie.index)),M=Math.max(...C.map(ie=>ie.index)),K=s.value.slice(0,T),oe=s.value.slice(M+1),le=C.map(ie=>ie.original),Z=s.value.slice(T,M+1);$T(le,Z)||o("dnd-changed",[...K,...le,...oe])}const U=r.ref(),G=r.computed(()=>!n.virtual||!U.value?null:uM({count:p.getRowModel().rows.length,getScrollElement:()=>U.value||null,estimateSize:()=>n.virtualRowHeight,overscan:20})),Q=r.ref([]);function F(C){Q.value=C}function E(C,T){var K;const M=(K=C.column.columnDef.meta)==null?void 0:K.colspan;return typeof M=="function"?M(T):M??1}function S(C){return C.getVisibleCells().filter(T=>E(T,C)!==0)}function D({draggedContext:C}){const T=n.draggable,M=C.index,K=p.getRowModel().rows[M];let oe=typeof T=="function"?T(K.original,M):T;if(!oe)return oe;const le=C.futureIndex,Z=p.getRowModel().rows[le];return oe=typeof T=="function"?T(Z.original,le):T,oe}return(C,T)=>{var oe,le;const M=r.resolveComponent("FmListItem"),K=r.resolveComponent("FmList");return r.openBlock(),r.createElementBlock("div",{class:"flex flex-col h-full relative",onVnodeMounted:L,onVnodeUnmounted:P},[r.createElementVNode("div",{class:"overflow-y-auto",ref_key:"parentRef",ref:U},[V.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[v.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({height:`${w.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",fM,[r.createVNode(Zo),r.createVNode(xr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(C.$slots,"loading-text",{},()=>[r.createElementVNode("span",pM,r.toDisplayString(r.unref(H)("table.loading")),1)],!0)]),r.createVNode(Zo)])],4)):(r.openBlock(),r.createBlock(K,{key:1,onVnodeMounted:x},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p).getRowModel().rows,Z=>r.renderSlot(C.$slots,"list-row",r.mergeProps({key:Z.id,ref_for:!0},Z),()=>[r.createVNode(M,{class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":Z.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function"}]),style:{padding:"0"},tag:"label"},{prepend:r.withCtx(()=>{var ie,fe,he,Oe,st;return[r.createVNode(r.unref(ja),{props:(fe=(ie=Z.getVisibleCells().find(Xe=>Xe.column.id==="row-selection"))==null?void 0:ie.getContext)==null?void 0:fe.call(ie),render:(st=(Oe=(he=Z.getVisibleCells().find(Xe=>Xe.column.id==="row-selection"))==null?void 0:he.column)==null?void 0:Oe.columnDef)==null?void 0:st.cell},null,8,["props","render"])]}),default:r.withCtx(()=>[r.createElementVNode("div",{class:"flex flex-col gap-4 grow p-8",onClick:ie=>{var fe;return(fe=C.onRowClick)==null?void 0:fe.call(C,Z)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.getVisibleCells(),ie=>{var fe;return r.openBlock(),r.createElementBlock(r.Fragment,{key:ie.id},[ie.column.id!=="row-selection"?(r.openBlock(),r.createElementBlock("div",mM,[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((fe=ie.column.columnDef.meta)==null?void 0:fe.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:ie.getContext(),render:ie.column.columnDef.cell},null,8,["props","render"])],2)])):r.createCommentVNode("",!0)],64)}),128))],8,hM)]),_:2},1032,["class"])],!0)),128))]),_:3},512))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[C.virtual?(r.openBlock(),r.createElementBlock("div",wM,[r.createElementVNode("div",SM,[r.createElementVNode("table",xM,[C.hideHeaderRow?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(jl,{key:0,table:r.unref(p),class:"bg-fm-color-neutral-gray-100","onUpdate:columnWidths":F},null,8,["table"]))])]),r.createElementVNode("div",{class:"virtual-list relative",style:r.normalizeStyle({height:`${r.unref(p).getRowModel().rows.length*n.virtualRowHeight}px`,width:"100%"}),onVnodeMounted:x},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((le=(oe=G.value)==null?void 0:oe.value)==null?void 0:le.getVirtualItems(),Z=>{var ie,fe;return r.openBlock(),r.createElementBlock("div",{key:Z.index,style:r.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:`${n.virtualRowHeight}px`,transform:`translateY(${Z.start}px)`,display:"flex",alignItems:"center",borderBottom:"1px solid var(--fm-color-neutral-gray-100)"}),class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":(ie=r.unref(p).getRowModel().rows[Z.index])==null?void 0:ie.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function"},C.rowClassName,"hover:bg-fm-color-opacity-sm"]),onClick:he=>{var Oe;return(Oe=C.onRowClick)==null?void 0:Oe.call(C,r.unref(p).getRowModel().rows[Z.index])}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(((fe=r.unref(p).getRowModel().rows[Z.index])==null?void 0:fe.getVisibleCells())||[],(he,Oe)=>{var st,Xe,nt,ot;return r.openBlock(),r.createElementBlock("div",{key:he.id,class:r.normalizeClass(["virtual-cell","h-full flex items-center",((st=he.column.columnDef.meta)==null?void 0:st.cellClass)??"px-16"]),style:r.normalizeStyle({width:Q.value[Oe]?`${Q.value[Oe]}px`:"auto",flex:Q.value[Oe]?"0 0 auto":"1 1 0px",textAlign:((Xe=he.column.columnDef.meta)==null?void 0:Xe.textAlign)??"left",maxWidth:(nt=he.column.columnDef.meta)==null?void 0:nt.maxWidth})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ot=he.column.columnDef.meta)==null?void 0:ot.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:he.getContext(),render:he.column.columnDef.cell},null,8,["props","render"])],2)],6)}),128))],14,CM)}),128))],4)])):(r.openBlock(),r.createElementBlock("table",gM,[!C.pinHeaderRow&&!C.hideHeaderRow?(r.openBlock(),r.createBlock(jl,{key:0,table:r.unref(p)},null,8,["table"])):r.createCommentVNode("",!0),r.renderSlot(C.$slots,"pin-top",{},void 0,!0),v.value?(r.openBlock(),r.createElementBlock("tbody",{key:1,onVnodeMounted:x},[r.createElementVNode("div",{style:r.normalizeStyle({height:`${w.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",bM,[r.createVNode(Zo),r.createVNode(xr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(C.$slots,"loading-text",{},()=>[r.createElementVNode("span",yM,r.toDisplayString(r.unref(H)("table.loading")),1)],!0)]),r.createVNode(Zo)])],4)],512)):(r.openBlock(),r.createBlock(r.unref(Is),{key:2,clone:r.unref(ef.clone),handle:Object.keys(n.expandedState??{}).length>0?".dnd-handler-disabled":".dnd-handler","model-value":r.unref(p).getRowModel().rows,move:D||C.onVuedraggableMove,"item-key":"id",tag:"tbody",onDragend:T[0]||(T[0]=Z=>l.value=!1),onDragstart:T[1]||(T[1]=Z=>l.value=!0),"onUpdate:modelValue":_,onVnodeMounted:x},{item:r.withCtx(({element:Z})=>[C.$slots["table-row"]?r.renderSlot(C.$slots,"table-row",r.normalizeProps(r.mergeProps({key:0},Z)),void 0,!0):(r.openBlock(),r.createElementBlock("tr",{key:1,class:r.normalizeClass([[{"bg-fm-color-neutral-gray-100":Z.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function","dnd-handler":(typeof C.draggable=="function"?C.draggable(Z.original,Z.index):C.draggable)&&C.wholeRowDraggable,"border-b border-fm-color-neutral-gray-100":Z.subRows.length===0&&Z.depth===0?!0:Z.depth===0?!Z.getIsExpanded():Z.index+1===Z.getParentRow().subRows.length},C.rowClassName],"hover:bg-fm-color-opacity-sm"]),onClick:ie=>{var fe;return(fe=C.onRowClick)==null?void 0:fe.call(C,Z)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(S(Z),ie=>{var fe,he,Oe,st,Xe,nt;return r.openBlock(),r.createElementBlock("td",{key:ie.id,colspan:E(ie,Z),class:r.normalizeClass([v.value?"hidden":"","h-[48px] text-fm-color-typo-primary",((fe=ie.column.columnDef.meta)==null?void 0:fe.cellClass)??"px-16"]),style:r.normalizeStyle({width:(he=ie.column.columnDef.meta)!=null&&he.width?(Oe=ie.column.columnDef.meta)==null?void 0:Oe.width:ie.column.getSize()!==0?`${ie.column.getSize()}px`:void 0,maxWidth:(st=ie.column.columnDef.meta)==null?void 0:st.maxWidth,textAlign:((Xe=ie.column.columnDef.meta)==null?void 0:Xe.textAlign)??"left"})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((nt=ie.column.columnDef.meta)==null?void 0:nt.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:ie.getContext(),render:ie.column.columnDef.cell},null,8,["props","render"])],2)],14,kM)}),128))],10,vM))]),_:3},8,["clone","handle","model-value","move"])),C.pinHeaderRow&&!C.hideHeaderRow?(r.openBlock(),r.createBlock(jl,{key:3,table:r.unref(p),class:r.normalizeClass(["bg-fm-color-neutral-gray-100 top-0",{sticky:!l.value}]),"onUpdate:columnWidths":F},null,8,["table","class"])):r.createCommentVNode("",!0)]))],64))],512),C.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxWidth:R.value?`${R.value}px`:void 0}),class:"basis-72 bg-white flex items-center justify-between px-24"},[V.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"hidden invisible":C.forceMobileFooter},"flex gap-24 items-center justify-between xs:hidden xs:invisible"])},[r.createElementVNode("div",AM,[r.createElementVNode("span",EM,r.toDisplayString(r.unref(H)("table.itemsPerPage")),1),r.createVNode(Sb,{items:B.value,"model-value":r.unref(p).getState().pagination.pageSize,"onUpdate:modelValue":T[2]||(T[2]=Z=>r.unref(p).setPageSize(Z))},null,8,["items","model-value"])]),r.createElementVNode("span",{class:r.normalizeClass([{"hidden invisible":C.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible"])},r.toDisplayString(r.unref(H)("table.itemCount",{start:n.rowData.length<r.unref(p).getState().pagination.pageSize?n.rowData.length:r.unref(p).getState().pagination.pageIndex*r.unref(p).getState().pagination.pageSize+1,end:(r.unref(p).getState().pagination.pageIndex+1)*r.unref(p).getState().pagination.pageSize,total:n.rowCount??n.rowData.length})),3)],2)),r.createElementVNode("div",{class:r.normalizeClass(["flex gap-8 items-center",{"w-full justify-between":V.value||C.forceMobileFooter,"xs:w-full xs:justify-between":!V.value}])},[r.createVNode(Sb,{items:Array.from(Array(r.unref(p).getPageCount()),(Z,ie)=>ie+1).map(Z=>({label:Z.toString(),value:Z})),"model-value":r.unref(p).getState().pagination.pageIndex+1,"onUpdate:modelValue":T[3]||(T[3]=Z=>r.unref(p).setPageIndex(Z?Z-1:0))},null,8,["items","model-value"]),r.createElementVNode("span",{class:r.normalizeClass([{"mr-auto":V.value||C.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto"])},r.toDisplayString(r.unref(H)("table.pageCount",{total:r.unref(p).getPageCount()})),3),r.createElementVNode("div",DM,[r.createVNode(me,{disabled:!r.unref(p).getCanPreviousPage(),icon:"chevron_left","icon-color":"neutral-black",variant:"tertiary",onClick:T[4]||(T[4]=()=>r.unref(p).previousPage())},null,8,["disabled"]),r.createVNode(me,{disabled:!r.unref(p).getCanNextPage(),icon:"chevron_right","icon-color":"neutral-black",variant:"tertiary",onClick:T[5]||(T[5]=()=>r.unref(p).nextPage())},null,8,["disabled"])])],2)],4))],512)}}}),[["__scopeId","data-v-e7cc726e"]]),PM={class:"fm-customize-fields"},IM={class:"fm-customize-fields__header"},OM={class:"fm-typo-en-title-md-600 text-fm-color-typo-primary"},NM={key:0,class:"fm-customize-fields__search"},RM={class:"fm-customize-fields__actions"},VM={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},FM={class:"fm-customize-fields__list-container"},TM={class:"fm-customize-fields__item"},MM={class:"fm-customize-fields__item-left"},LM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary fm-customize-fields__item-label"},zM={key:0,class:"fm-customize-fields__empty"},_M={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},HM=De(r.defineComponent({__name:"FmCustomizeFields",props:{modelValue:{},title:{},searchPlaceholder:{},showCloseButton:{type:Boolean,default:!0},searchable:{type:Boolean,default:!0},showToggleAllButton:{type:Boolean,default:!0},hideAllText:{},showAllText:{},shownLabel:{}},emits:["update:modelValue","close"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),a=r.ref(!1),s=v=>[...v].sort((w,x)=>w.position-x.position),l=r.ref(s(n.modelValue));r.watch(()=>n.modelValue,v=>{l.value=s(v)},{deep:!0});const c=r.computed(()=>{if(!i.value)return l.value;const v=i.value.toLowerCase();return l.value.filter(w=>w.label.toLowerCase().includes(v))}),u=v=>{const w=l.value.findIndex(I=>I.id===v);if(w===-1)return;const x=l.value[w];x.canHide!==!1&&(l.value[w]={...x,visible:!x.visible},b())},h=()=>{l.value=l.value.map(v=>({...v,visible:v.canHide===!1?v.visible:!1})),b()},p=()=>{l.value=l.value.map(v=>({...v,visible:!0})),b()},m=()=>{a.value=!1,b()},b=()=>{const v=l.value.map((w,x)=>({...w,position:x}));o("update:modelValue",v)},y=r.computed(()=>l.value.filter(w=>w.canHide!==!1).every(w=>!w.visible));return(v,w)=>(r.openBlock(),r.createElementBlock("div",PM,[r.createElementVNode("div",IM,[r.createElementVNode("span",OM,r.toDisplayString(v.title??r.unref(H)("customizeFields.title")),1),v.showCloseButton?(r.openBlock(),r.createBlock(ce,{key:0,name:"close",size:"md",class:"fm-customize-fields__close-btn",onClick:w[0]||(w[0]=x=>v.$emit("close"))})):r.createCommentVNode("",!0)]),v.searchable?(r.openBlock(),r.createElementBlock("div",NM,[r.createVNode(Tl,{modelValue:i.value,"onUpdate:modelValue":w[1]||(w[1]=x=>i.value=x),placeholder:v.searchPlaceholder??r.unref(H)("customizeFields.searchPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])):r.createCommentVNode("",!0),r.createElementVNode("div",RM,[r.createElementVNode("span",VM,r.toDisplayString(v.shownLabel??r.unref(H)("customizeFields.shown")),1),v.showToggleAllButton&&!y.value?(r.openBlock(),r.createElementBlock("button",{key:0,class:"fm-customize-fields__hide-all-btn",onClick:h},r.toDisplayString(v.hideAllText??r.unref(H)("customizeFields.hideAll")),1)):r.createCommentVNode("",!0),v.showToggleAllButton&&y.value?(r.openBlock(),r.createElementBlock("button",{key:1,class:"fm-customize-fields__hide-all-btn",onClick:p},r.toDisplayString(v.showAllText??r.unref(H)("customizeFields.showAll")),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",FM,[r.createVNode(r.unref(Is),{modelValue:l.value,"onUpdate:modelValue":w[2]||(w[2]=x=>l.value=x),"item-key":x=>x.id,handle:".fm-customize-fields__drag-handle",class:"fm-customize-fields__list","ghost-class":"fm-customize-fields__item--ghost",onStart:w[3]||(w[3]=x=>a.value=!0),onEnd:m},{item:r.withCtx(({element:x})=>[r.withDirectives(r.createElementVNode("div",TM,[r.createElementVNode("div",MM,[r.createVNode(ce,{name:"drag_indicator",size:"md",class:"fm-customize-fields__drag-handle",color:"#8E8E93"}),x.icon?(r.openBlock(),r.createBlock(ce,{key:0,name:x.icon,size:"md",class:"fm-customize-fields__item-icon",color:"#636366"},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",LM,r.toDisplayString(x.label),1)]),r.createVNode(Dl,{"model-value":x.visible,disabled:x.canHide===!1,"onUpdate:modelValue":I=>u(x.id)},null,8,["model-value","disabled","onUpdate:modelValue"])],512),[[r.vShow,!i.value||x.label.toLowerCase().includes(i.value.toLowerCase())]])]),_:1},8,["modelValue","item-key"]),c.value.length===0&&i.value?(r.openBlock(),r.createElementBlock("div",zM,[r.createElementVNode("span",_M,r.toDisplayString(r.unref(H)("customizeFields.noFieldsFound")),1)])):r.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-28662a9d"]]),UM=r.createElementVNode("span",{class:"fm-typo-en-body-lg-400 text-fm-color-typo-secondary"}," More ",-1),WM=r.defineComponent({__name:"FmTabs",props:{modelValue:{default:null},items:{},vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showMoreAt:{default:6}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>({vertical:n.vertical,disabled:n.disabled})),s=r.computed(()=>{const u=n.items.slice(0,n.showMoreAt-1),h=n.items.find(m=>{var b;return m.value===n.modelValue||((b=m.children)==null?void 0:b.find(y=>y.value===n.modelValue))}),p=u.map(m=>m.value);return h&&p.includes(h.value)?n.items.slice(0,n.showMoreAt):h?[...u,h]:u}),l=r.computed(()=>{const u=s.value.map(h=>h.value);return n.items.filter(h=>!u.includes(h.value))}),c=u=>{i.value=!1,o("update:modelValue",u)};return(u,h)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex",u.vertical?"flex-col":"flex-row items-center"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>r.renderSlot(u.$slots,"default",r.mergeProps({ref_for:!0},{...p,tabsProps:a.value}),()=>[r.createVNode(sb,r.mergeProps({"model-value":n.modelValue,ref_for:!0},{children:p.children,label:p.label,icon:p.icon,disabled:p.disabled,badge:p.badge,value:p.value,tabsProps:a.value},{disabled:p.disabled===void 0?u.disabled:p.disabled,vertical:u.vertical,"onUpdate:modelValue":h[0]||(h[0]=m=>o("update:modelValue",m))}),null,16,["model-value","disabled","vertical"])])),256)),l.value.length>0?(r.openBlock(),r.createBlock(io,{key:0,"show-menu":i.value,class:r.normalizeClass(["max-w-[360px] min-w-[90px] rounded-sm",{"w-full":u.vertical}]),placement:u.vertical?"right-start":"bottom-start",onMenuChanged:h[1]||(h[1]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-8 hover:bg-fm-color-opacity-sm items-center px-16 rounded-sm",[u.vertical?"h-40":"h-[46px]"]])},[r.createVNode(ce,{name:"more_vert"}),UM],2)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,p=>{var m;return r.openBlock(),r.createElementBlock(r.Fragment,{key:p.value},[(m=p.children)!=null&&m.length?(r.openBlock(),r.createBlock(io,{key:0,placement:"right-start"},{"menu-button":r.withCtx(()=>[r.createVNode(xt,{"model-value":n.modelValue===p.value,label:p.label,icon:p.icon,disabled:p.disabled,expandable:""},{append:r.withCtx(()=>[p.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:p.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled"])]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,b=>(r.openBlock(),r.createBlock(xt,{key:b.value,"model-value":n.modelValue===b.value,label:b.label,icon:b.icon,disabled:b.disabled,onClick:y=>c(b.value)},{append:r.withCtx(()=>[b.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:b.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled","onClick"]))),128))]),_:2},1024)):(r.openBlock(),r.createBlock(xt,{key:1,"model-value":n.modelValue===p.value,label:p.label,icon:p.icon,disabled:p.disabled,onClick:b=>c(p.value)},{append:r.withCtx(()=>[p.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:p.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled","onClick"]))],64)}),128))]),_:1},8,["show-menu","class","placement"])):r.createCommentVNode("",!0)],2))}}),jM=["tabindex"],GM=r.defineComponent({__name:"FmCollapsibleTab",props:{modelValue:{default:void 0},label:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1},badge:{},value:{default:void 0},children:{default:()=>[]},indentation:{default:1},active:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},focusable:{type:Boolean,default:void 0},action:{}},setup(t){const e=t,n=Pe(e,"modelValue"),o=r.computed(()=>e.children.length>0),i=r.ref(!e.expand||e.disabled),a=r.computed(()=>{if(!o.value)return 0;function m(y){return y.children?[y,...y.children.flatMap(m)]:[y]}return 56*(e.children?e.children.flatMap(m):[]).length});function s(){if(!e.disabled){if(o.value){i.value=!i.value;return}n.value=e.value,e.action&&e.action()}}const l=r.computed(()=>typeof e.focusable=="boolean"?e.focusable:!e.disabled&&(!i.value||!o.value));function c(m){return m.children&&m.children.length?m.children.some(c):e.modelValue===m.value}const u=r.computed(()=>{const m=c(e);return o.value?m&&i.value:m}),h=r.computed(()=>e.children?e.children.map(({modelValue:m,indentation:b,active:y,focusable:v,...w})=>{const x=c(w);return{...w,expand:x,focusable:!w.disabled&&!i.value}}):[]),p=r.computed(()=>{switch(e.indentation){case 1:return 8;case 2:return 16;case 3:return 24;default:return 32}});return(m,b)=>{const y=r.resolveComponent("FmCollapsibleTab",!0),v=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({paddingLeft:`${p.value}px`}),class:"flex flex-col px-8"},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["flex fm-corner-radius-md gap-4 items-center px-16 py-8 focus-visible:outline-none",{"cursor-pointer focus-visible:bg-fm-color-opacity-md hover:bg-fm-color-opacity-sm ":!m.disabled,"cursor-not-allowed":m.disabled,"bg-fm-color-system-warning-100":u.value}]),tabindex:l.value?"0":"-1",type:"button",onClick:s},[m.icon?(r.openBlock(),r.createBlock(ce,{key:0,class:r.normalizeClass({"text-fm-color-typo-disabled":m.disabled,"text-fm-color-typo-primary":!m.disabled&&!u.value,"text-fm-color-primary":!m.disabled&&u.value}),name:m.icon},null,8,["class","name"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["py-4 fm-typo-en-body-lg-400 text-left line-clamp-2",{"text-fm-color-typo-secondary":!m.disabled&&!u.value,"text-fm-color-primary":!m.disabled&&u.value,"text-fm-color-typo-disabled":m.disabled}])},r.toDisplayString(m.label),3),m.badge!==void 0&&m.badge!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[typeof m.badge=="number"?(r.openBlock(),r.createBlock(Yo,{key:0,value:m.badge,inline:"",variant:"numeric"},null,8,["value"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.badge),{key:1}))],64)):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("div",{key:2,style:r.normalizeStyle({transformOrigin:"center",transform:`rotate(${i.value?"0":"180"}deg)`,transition:"transform ease-out 250ms"}),class:"flex h-24 items-center ml-auto w-24"},[r.createVNode(ce,{class:r.normalizeClass({"text-fm-color-neutral-gray-300":!m.disabled,"text-fm-color-typo-disabled":m.disabled}),name:"expand_more",size:"md"},null,8,["class"])],4)):r.createCommentVNode("",!0)],10,jM)),[[v,!m.disabled]]),o.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxHeight:i.value?0:`${a.value}px`,transition:"max-height 250ms",transitionTimingFunction:i.value?"ease-out":"ease-in"}),class:"flex flex-col overflow-hidden"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,(w,x)=>(r.openBlock(),r.createBlock(y,r.mergeProps({key:x,"model-value":r.unref(n),"onUpdate:modelValue":b[0]||(b[0]=I=>r.isRef(n)?n.value=I:null),indentation:m.indentation+1,ref_for:!0},w),null,16,["model-value","indentation"]))),128))],4)):r.createCommentVNode("",!0)],4)}}}),QM={class:"h-full flex flex-col overflow-auto"},XM=r.defineComponent({__name:"FmCollapsibleTabs",props:{modelValue:{default:void 0},items:{default:()=>[]}},setup(t){const e=t,n=Pe(e,"modelValue"),o=r.computed(()=>e.items?e.items.map(({modelValue:a,...s})=>s):[]);function i(a){function s(c){return c.children?c.children.flatMap(s):[c.value]}return(a.children?a.children.flatMap(s):[a.value]).includes(e.modelValue)}return(a,s)=>(r.openBlock(),r.createElementBlock("div",QM,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(l,c)=>(r.openBlock(),r.createBlock(GM,r.mergeProps({key:c,"model-value":r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=u=>r.isRef(n)?n.value=u:null),active:i(l),expand:i(l),ref_for:!0},l),null,16,["model-value","active","expand"]))),128))]))}}),qM=r.defineComponent({__name:"FmAvatar",props:{initials:{default:()=>""},name:{default:()=>""},src:{default:void 0},size:{default:()=>"md"},rounded:{default:()=>"xxxl"}},setup(t){const e=t,n=r.computed(()=>{if(e.initials)return e.initials.slice(0,2);if(e.name){const[o,i]=e.name.split(" ");return i?`${o[0]}${i[0]}`:o.slice(0,2)}return e.src?"":"?"});return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center justify-center uppercase",{"w-24 h-24 fm-typo-en-body-sm-600":o.size==="sm","w-9 h-9 fm-typo-en-body-sm-600":o.size==="sm2","w-40 h-40 fm-typo-en-body-md-600":o.size==="md","w-48 h-48 fm-typo-en-body-lg-600":o.size==="lg","w-56 h-56 fm-typo-en-body-lg-600":o.size==="xl","bg-fm-color-neutral-gray-100":!e.src},{"rounded-xxxl":o.rounded==="xxxl","rounded-xxl":o.rounded==="xxl","rounded-xl":o.rounded==="xl","rounded-lg":o.rounded==="lg","rounded-md":o.rounded==="md","rounded-sm":o.rounded==="sm"}]),style:r.normalizeStyle({background:e.src?`url(${e.src})`:void 0,backgroundSize:e.src?"cover":void 0,backgroundPosition:e.src?"center":void 0,backgroundRepeat:e.src?"no-repeat":void 0})},r.toDisplayString(n.value),7))}}),KM=r.defineComponent({__name:"FmThumbnail",props:{src:{default:void 0},icon:{default:t=>t.src?"":"image"},size:{default:()=>"md"}},setup(t){const e=t;return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center justify-center fm-corner-radius-md border-1 border-fm-color-neutral-gray-300",{"w-24 h-24 fm-typo-en-body-sm-600":n.size==="sm","w-40 h-40 fm-typo-en-body-md-600":n.size==="md","w-56 h-56 fm-typo-en-body-lg-600":n.size==="lg","w-72 h-72 fm-typo-en-body-lg-600":n.size==="xl","text-fm-color-neutral-gray-300 bg-fm-color-neutral-gray-100":!e.src}]),style:r.normalizeStyle({background:e.src?`url(${e.src})`:void 0,backgroundSize:e.src?"cover":void 0,backgroundPosition:e.src?"center":void 0,backgroundRepeat:e.src?"no-repeat":void 0})},[n.icon?(r.openBlock(),r.createBlock(ce,{key:0,name:n.icon},null,8,["name"])):r.createCommentVNode("",!0)],6))}}),JM={class:"bg-white flex fm-corner-radius-md gap-4 items-center px-24 py-16"},YM={class:"flex gap-4 items-center xs:hidden"},ZM={key:1,class:"hidden xs:flex"},$M=r.defineComponent({__name:"FmPageHead",props:{title:{default:()=>""},description:{default:()=>""},backButton:{type:Boolean,default:()=>!1},actions:{default:()=>[]},zIndexForBottomSheet:{default:void 0},titleBold:{type:Boolean,default:()=>!0},primaryActionXsBottomMargin:{}},emits:["click:back","click:action"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const s=[...n.actions],l=s.findIndex(m=>m.isPrimary),c=s[l],[u,h,...p]=s.filter((m,b)=>b!==l);return{primaryAction:c,firstSecondaryAction:u,secondSecondaryAction:h,showMoreSecondary:p,bottomSheetActions:s.filter(m=>!m.isPrimary),fabActions:s.filter(m=>m.isPrimary)}}),a=r.ref(!1);return(s,l)=>(r.openBlock(),r.createElementBlock("div",JM,[s.backButton?(r.openBlock(),r.createBlock(me,{key:0,icon:"arrow_back","icon-color":"black",size:"md",type:"button",variant:"tertiary",onClick:l[0]||(l[0]=c=>o("click:back"))})):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"prepend"),r.createVNode(sf,{description:s.description,title:s.title,"title-bold":s.titleBold,class:"flex-grow"},{title:r.withCtx(()=>[r.renderSlot(s.$slots,"title")]),description:r.withCtx(()=>[r.renderSlot(s.$slots,"description")]),_:3},8,["description","title","title-bold"]),r.createElementVNode("div",YM,[i.value.firstSecondaryAction?(r.openBlock(),r.createBlock(me,{key:0,"append-icon":i.value.firstSecondaryAction.appendIcon,"bg-color":i.value.firstSecondaryAction.bgColor,"border-color":i.value.firstSecondaryAction.borderColor,"icon-color":i.value.firstSecondaryAction.iconColor,label:i.value.firstSecondaryAction.label,"prepend-icon":i.value.firstSecondaryAction.prependIcon,"text-color":i.value.firstSecondaryAction.fontColor,variant:i.value.firstSecondaryAction.variant??"tertiary",size:"md",type:"button",onClick:l[1]||(l[1]=c=>o("click:action",i.value.firstSecondaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0),i.value.secondSecondaryAction?(r.openBlock(),r.createBlock(me,{key:1,"append-icon":i.value.secondSecondaryAction.appendIcon,"bg-color":i.value.secondSecondaryAction.bgColor,"border-color":i.value.secondSecondaryAction.borderColor,"icon-color":i.value.secondSecondaryAction.iconColor,label:i.value.secondSecondaryAction.label,"prepend-icon":i.value.secondSecondaryAction.prependIcon,"text-color":i.value.secondSecondaryAction.fontColor,variant:i.value.firstSecondaryAction.variant??"tertiary",size:"md",type:"button",onClick:l[2]||(l[2]=c=>o("click:action",i.value.secondSecondaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0),i.value.showMoreSecondary.length>1?(r.openBlock(),r.createBlock(io,{key:2},{"menu-button":r.withCtx(()=>[r.createVNode(me,{"append-icon":"expand_more","icon-color":"black",label:r.unref(H)("actions.more"),size:"md",type:"button",variant:"tertiary"},null,8,["label"])]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.showMoreSecondary,c=>(r.openBlock(),r.createBlock(xt,{key:c.value,icon:c.prependIcon,label:c.label,onClick:u=>o("click:action",c.value)},null,8,["icon","label","onClick"]))),128))]),_:1})):i.value.showMoreSecondary.length===1?(r.openBlock(),r.createBlock(me,{key:3,"append-icon":i.value.showMoreSecondary[0].appendIcon,label:i.value.showMoreSecondary[0].label,"prepend-icon":i.value.showMoreSecondary[0].prependIcon,size:"md",type:"button",variant:"tertiary",onClick:l[3]||(l[3]=c=>o("click:action",i.value.showMoreSecondary[0].value))},null,8,["append-icon","label","prepend-icon"])):r.createCommentVNode("",!0),i.value.primaryAction?(r.openBlock(),r.createBlock(me,{key:4,"append-icon":i.value.primaryAction.appendIcon,"bg-color":i.value.primaryAction.bgColor,"border-color":i.value.primaryAction.borderColor,"icon-color":i.value.primaryAction.iconColor,label:i.value.primaryAction.label,"prepend-icon":i.value.primaryAction.prependIcon,"text-color":i.value.primaryAction.fontColor,variant:i.value.primaryAction.variant??"primary",size:"md",type:"button",onClick:l[4]||(l[4]=c=>o("click:action",i.value.primaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0)]),i.value.bottomSheetActions.length>0?(r.openBlock(),r.createElementBlock("div",ZM,[r.createVNode(me,{icon:"more_vert","icon-color":"black",size:"md",type:"button",variant:"tertiary",onClick:l[5]||(l[5]=c=>a.value=!0)})])):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"append"),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Uc,{"model-value":a.value,"onUpdate:modelValue":l[6]||(l[6]=c=>a.value=c),"z-index":n.zIndexForBottomSheet,"dismiss-away":""},{default:r.withCtx(()=>[r.createVNode(rf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.bottomSheetActions,c=>(r.openBlock(),r.createBlock(af,{key:c.value,label:c.label,class:"hover:bg-fm-color-neutral-gray-100",onClick:u=>{o("click:action",c.value),a.value=!1}},null,8,["label","onClick"]))),128))]),_:1})]),_:1},8,["model-value","z-index"]),r.createElementVNode("div",{class:r.normalizeClass(["fixed hidden right-16 xs:inline",{"bottom-[68px]":!n.primaryActionXsBottomMargin}]),style:r.normalizeStyle({bottom:n.primaryActionXsBottomMargin})},[i.value.primaryAction?(r.openBlock(),r.createBlock(me,{key:0,"append-icon":i.value.primaryAction.appendIcon,"bg-color":i.value.primaryAction.bgColor,"border-color":i.value.primaryAction.borderColor,"icon-color":i.value.primaryAction.iconColor,label:i.value.primaryAction.label,"prepend-icon":i.value.primaryAction.prependIcon,"text-color":i.value.primaryAction.fontColor,variant:i.value.primaryAction.variant??"fab",class:"fm-shadow-light-100",size:"md",type:"button",onClick:l[7]||(l[7]=c=>o("click:action",i.value.primaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0)],6)]))]))}}),eL={class:"fm-typo-en-title-md-600"},tL={class:"flex"},nL=De(r.defineComponent({__name:"FmScorecard",props:{title:{},value:{default:0},compareValue:{default:void 0},description:{},hideCompare:{type:Boolean,default:!1},hideLineChart:{type:Boolean,default:!1},sparklineData:{default:void 0}},setup(t){const e=t,n=(s,l)=>{if(s===""||l==="")return null;const c=Number(s),u=Number(l);let h=0;u===0?c===0?h=0:h=1:h=(c-u)/u;const p=o(h);return{value:isNaN(h)?"":`${(h*100).toFixed(0)}%`,icon:p}};function o(s){return s>0?{name:"moving",color:"#1F7735",tailwind:"fm-color-system-success-100"}:s<0?{name:"trending_down",color:"#99231D",tailwind:"fm-color-system-error-100"}:{name:"equal",color:"#C7C7CC",tailwind:"fm-color-neutral-gray-100"}}const i=r.computed(()=>{const{value:s,compareValue:l}=e;return l?n(s,l):null}),a=r.computed(()=>{var s;return((s=e.sparklineData)==null?void 0:s.datasets.map(l=>{var c;return{label:l.name,data:l.values,fill:!0,color:((c=i.value)==null?void 0:c.icon.color)??"fm-color-system-info-300"}}))??[]});return(s,l)=>(r.openBlock(),r.createBlock(Wc,{class:"flex flex-col gap-2 p-5",variant:"outlined"},{default:r.withCtx(()=>[r.createVNode(Fc,{content:e.description},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"title",{},()=>[r.createElementVNode("p",{class:r.normalizeClass([e.description?"border-b-2 border-dotted":"","fm-typo-body-md-400 w-full truncate"])},r.toDisplayString(e.title),3)],!0)]),_:3},8,["content"]),r.createElementVNode("p",eL,r.toDisplayString(e.value),1),s.hideCompare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",tL,[i.value?(r.openBlock(),r.createBlock(_c,{key:0,class:r.normalizeClass(`bg-${i.value.icon.tailwind}`),compact:""},{default:r.withCtx(()=>[r.createVNode(ce,{color:i.value.icon.color,name:i.value.icon.name},null,8,["color","name"]),r.createElementVNode("p",{style:r.normalizeStyle({color:i.value.icon.color}),class:"fm-typo-body-md-700"},r.toDisplayString(i.value.value),5)]),_:1},8,["class"])):r.createCommentVNode("",!0)]),r.renderSlot(s.$slots,"compare",{},void 0,!0)],64)),e.sparklineData?(r.openBlock(),r.createBlock(Wc,{key:1},{default:r.withCtx(()=>[r.createVNode(p1,{datasets:a.value,"hide-x-axis":!0,"hide-y-axis":!0,legend:{display:!1},"x-axis":{categories:e.sparklineData.dimension},class:"sparkline"},null,8,["datasets","x-axis"])]),_:1})):r.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-c66db589"]]);var Xa=(t=>(t.Premium="premium",t.Beta="beta",t.Paid="paid",t))(Xa||{});const oL=r.defineComponent({__name:"FmPill",props:{variant:{default:Xa.Beta},label:{}},setup(t){const e=t,n=r.computed(()=>({[Xa.Beta]:{containerClass:"border border-fm-color-system-error-400 bg-fm-color-system-error-100 ",label:"BETA",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-error"},[Xa.Premium]:{containerClass:"h-[18px] fm-pill-premium-gradient",label:"Premium",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-white"},[Xa.Paid]:{containerClass:"border border-fm-color-system-info-400 bg-fm-color-system-info-100 ",icon:"lock",label:"Paid feature",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-info"}})[e.variant]);return(o,i)=>{const a=r.resolveComponent("FmIcon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center fm-corner-radius-md px-4 gap-4",n.value.containerClass])},[n.value.icon?(r.openBlock(),r.createBlock(a,{key:0,size:"sm",outline:"",name:n.value.icon,class:r.normalizeClass(n.value.labelClass)},null,8,["name","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass(n.value.labelClass)},r.toDisplayString(e.label||n.value.label),3)],2)}}}),rL=De(oL,[["__scopeId","data-v-cdca68a7"]]),td=16,iL=r.defineComponent({__name:"FmSnackbarToast",setup(t){const{breakpoints:e}=Jo(),n=r.inject(kc),o=r.computed(()=>{var u;const s={currentSum:td,tops:new Array},l=Object.values(on).reduce((h,p)=>({...h,[p]:{...s}}),{});return[...((u=n==null?void 0:n.store)==null?void 0:u.snackbars)??[]].reduce((h,p)=>{const m=e.value.xs?on.TOP:p.position??on.TOP_RIGHT,{currentSum:b,tops:y}=h[m];y.push({id:p.id,accumulatedHeight:b});const v=p.mountStage===bt.EXPIRED?0:td+p.renderedHeight;return h[m]={currentSum:b+v,tops:y},h},l)}),i=r.computed(()=>{var s,l;return(l=(s=n==null?void 0:n.store)==null?void 0:s.snackbars)==null?void 0:l.map(c=>{var p,m,b,y,v,w;let u=0;const h=e.value.xs?on.TOP:c.position??on.TOP_RIGHT;switch(c.mountStage){case bt.PREMOUNT:{u=e.value.xs?0:td;break}case bt.MOUNTED:{u=((b=(m=(p=o.value[h].tops)==null?void 0:p.find)==null?void 0:m.call(p,x=>x.id===c.id))==null?void 0:b.accumulatedHeight)||td;break}case bt.EXPIRED:{u=((w=(v=(y=o.value[h].tops)==null?void 0:y.find)==null?void 0:v.call(y,x=>x.id===c.id))==null?void 0:w.accumulatedHeight)||0,u=Math.max(0,u-c.renderedHeight);break}}return{...c,top:u}})}),a=(s,l,c)=>{if(e.value.xs)return{bottom:`${s}px`,width:"calc(100vw - 32px)",right:"16px",opacity:l===bt.EXPIRED?0:1};if(c===on.TOP)return{top:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===on.TOP_LEFT)return{top:`${s}px`,opacity:l===bt.EXPIRED?0:1,left:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.TOP_RIGHT)return{top:`${s}px`,opacity:l===bt.EXPIRED?0:1,right:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.BOTTOM)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===on.BOTTOM_LEFT)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,left:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.BOTTOM_RIGHT)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:l===bt.PREMOUNT?"-20px":"16px"}};return(s,l)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,c=>(r.openBlock(),r.createBlock(r.Teleport,{key:c.id,to:"body"},[r.createVNode(ab,{action:c.action,description:c.message,dismissable:c.dismissable,spinner:c.spinner,style:r.normalizeStyle(a(c.top,c.mountStage,c.position??r.unref(on).TOP_RIGHT)),title:c.title,variant:c.type,"z-index":c.zIndex,class:"fixed transition-all z-10",onVnodeMounted:u=>{var h;return(h=r.unref(n))==null?void 0:h.onSnackbarMounted(c.id,u.el.scrollHeight,c.persistent)},onOnAction:()=>{var u,h;(u=c==null?void 0:c.onAction)==null||u.call(c),(h=r.unref(n))==null||h.close(c.id)},onOnDismiss:()=>{var u;return(u=r.unref(n))==null?void 0:u.close(c.id)}},null,8,["action","description","dismissable","spinner","style","title","variant","z-index","onVnodeMounted","onOnAction","onOnDismiss"])]))),128))}});var on=(t=>(t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t))(on||{}),bt=(t=>(t.PREMOUNT="PREMOUNT",t.MOUNTED="MOUNTED",t.EXPIRED="EXPIRED",t))(bt||{});class fy{constructor(){ae(this,"store",r.reactive({snackbars:new Array}))}open(e,n){const o=Math.random().toString(16).slice(2),i=[{...e,id:o,mountStage:"PREMOUNT",duration:n===null?null:n??5e3,renderedHeight:0,type:(e==null?void 0:e.type)??"info",dismissable:typeof(e==null?void 0:e.dismissable)=="boolean"?e.dismissable:!0,position:(e==null?void 0:e.position)??"top-right"},...this.store.snackbars];return this.store.snackbars=i,o}onSnackbarMounted(e,n,o){const i=this.store.snackbars.findIndex(s=>s.id===e);if(i===-1)return;const a=this.store.snackbars[i];this.store.snackbars[i]={...a,renderedHeight:n},setTimeout(()=>{const s=this.store.snackbars[i];this.store.snackbars[i]={...s,mountStage:"MOUNTED"}}),!o&&typeof a.duration=="number"&&setTimeout(()=>{this.close(e)},a.duration)}close(e){const n=this.store.snackbars.findIndex(i=>i.id===e);if(n===-1)return;const o=this.store.snackbars[n];this.store.snackbars[n]={...o,mountStage:"EXPIRED"},setTimeout(()=>{this.removeSnackbar(e)},500)}removeSnackbar(e){const n=this.store.snackbars.findIndex(o=>o.id===e);n!==-1&&this.store.snackbars.splice(n,1)}updateSnackbar(e,n){const o=this.store.snackbars.findIndex(a=>a.id===e);if(o===-1)return;const i=this.store.snackbars[o];this.store.snackbars[o]={...i,...n}}}const py={install(t){t.provide(kc,new fy);const e=document.body,n=r.createVNode(iL);n.appContext=t._context,r.render(n,e)}},hy={FmAdvancedSort:Om,FmBadge:Yo,FmBottomSheet:Uc,FmBreadcrumb:BS,FmButton:me,FmButtonGroup:OS,FmCard:Wc,FmCardActionArea:NS,FmCardActions:VS,FmCardHeader:TS,FmCardMedia:LS,FmCardSection:jc,FmCardSubtitle:Fm,FmCardTitle:Vm,FmChip:_c,FmChipGroup:Hc,FmDialog:_S,FmDropField:WS,FmDynamicDialog:Mm,FmLineChart:p1,FmPieChart:V6,FmBarChart:_6,FmScorecard:nL,FmCheckbox:xm,FmDatePicker:h9,FmDatePickerMobile:g1,FmDateRangePicker:k5,FmDateRangePickerMobile:k1,FmSimpleDatePicker:G5,FmSimpleDatePickerMobile:S1,FmSimpleDateRangePicker:xE,FmSimpleDateRangePickerMobile:x1,FmField:at,FmForm:Im,FmFormGroup:Nt,FmErrorSummary:DE,FmHelperText:om,FmLabel:hn,FmPhoneNumber:H7,FmPinField:j7,FmRadio:Y7,FmRadioGroup:Z7,FmSearch:Tl,FmGlobalSearch:AB,FmSelect:yo,FmStepperField:IB,FmSwitch:Dl,FmTextField:Dr,FmTextarea:NB,FmTimeInput:Ll,FmTimePicker:jB,FmTimeRangePicker:YB,FmIcon:ce,FmList:rf,FmListItem:af,FmMenu:io,FmMenuDeprecated:nP,FmMenuDivider:b1,FmMenuHeader:rP,FmMenuItem:xt,FmCircularProgress:xr,FmLinearProgress:dP,FmSideSheet:hP,FmSnackbar:ab,FmSpacer:Zo,FmStep:SP,FmStepper:AP,FmTab:sb,FmTable:BM,FmCustomizeFields:HM,FmTableToolbar:TP,FmTableHeader:jl,FmTabs:WM,FmCollapsibleTabs:XM,FmTooltip:Fc,FmAvatar:qM,FmThumbnail:KM,FmPageHead:$M,FmTopSheet:nb,FmPopover:Bo,FmOverlay:fi,FmPill:rL},aL=r.defineComponent({__name:"FmTooltipDirective",props:{reference:{},placement:{default:"top"},content:{default:""},disabled:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},zIndex:{}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),i=r.ref(null),a=r.computed(()=>e.reference());let s;const{floatingStyles:l,middlewareData:c,placement:u}=ci(a,o,{whileElementsMounted:ai,placement:e.placement,middleware:[li(),si({mainAxis:6}),bm({element:i})]}),h=r.computed(()=>{var y,v,w,x;const b={top:"bottom",right:"left",bottom:"top",left:"right"}[u.value];return{left:((y=c.value.arrow)==null?void 0:y.x)!=null?`${(v=c.value.arrow)==null?void 0:v.x}px`:"",top:((w=c.value.arrow)==null?void 0:w.y)!=null?`${(x=c.value.arrow)==null?void 0:x.y}px`:"",[b]:"-3px"}}),p=()=>{e.disabled||(s&&clearTimeout(s),s=setTimeout(()=>{n.value=!0},250))},m=()=>{e.disabled||(s&&clearTimeout(s),s=setTimeout(()=>{n.value=!1},250))};return r.onMounted(()=>{a.value.addEventListener("pointerdown",p),a.value.addEventListener("pointermove",b=>{b.pointerType!=="touch"&&p()}),a.value.addEventListener("pointerleave",m),a.value.addEventListener("pointerup",m)}),r.onBeforeUnmount(()=>{a.value.removeEventListener("pointerdown",p),a.value.removeEventListener("pointermove",b=>{b.pointerType!=="touch"&&p()}),a.value.removeEventListener("pointerleave",m),a.value.removeEventListener("pointerup",m)}),(b,y)=>n.value&&!b.disabled?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"tooltipContent",ref:o,class:"bg-fm-color-neutral-black fm-shadow-light-300 fm-typo-en-body-sm-400 max-w-[240px] px-16 py-12 rounded-lg text-fm-color-typo-white",style:r.normalizeStyle({...r.unref(l),zIndex:b.zIndex})},[r.withDirectives(r.createElementVNode("div",{ref_key:"arrowEl",ref:i,class:"absolute bg-fm-color-neutral-black h-8 rotate-45 rounded-[2px] w-8",style:r.normalizeStyle(h.value)},null,4),[[r.vShow,!b.hideArrow]]),r.createTextVNode(" "+r.toDisplayString(b.content),1)],4)):r.createCommentVNode("",!0)}});let Mf;const dr=r.ref([]);let my=0;const sL=()=>{if(Mf)return;const t=document.createElement("div");document.body.appendChild(t),Mf=r.createApp({render:()=>dr.value.map(e=>r.h(aL,e))}),Mf.mount(t)},nd=t=>{if(t){for(const e of["top","right","bottom","left"])if(t[e])return e}return"top"},gy=(t,e)=>{const{value:n,modifiers:o}=e;sL(),t.$_fmTooltipId=my,my+=1,typeof n=="string"?dr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:nd(o),hideArrow:!1}):n&&typeof n=="object"&&dr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),placement:nd(o),disabled:n.disabled??!1,hideArrow:n.hideArrow??!1,zIndex:n.zIndex})},lL={mounted:gy,updated:(t,e)=>{const{value:n,modifiers:o}=e,i=dr.value.findIndex(a=>a.id===t.$_fmTooltipId);if(i===-1){gy(t,e);return}typeof n=="string"?dr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:nd(o),hideArrow:!1}:n&&typeof n=="object"&&(dr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),disabled:n.disabled??!1,placement:nd(o),hideArrow:n.hideArrow??!1})},beforeUnmount:t=>{const e=dr.value.findIndex(n=>n.id===t.$_fmTooltipId);e!==-1&&dr.value.splice(e,1)}};function dL(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let od;function Lf(){Lf.init||(Lf.init=!0,od=dL()!==-1)}var rd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Lf(),r.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",od&&this.$el.appendChild(t),t.data="about:blank",od||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!od&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const cL=r.withScopeId("data-v-b329ee4c");r.pushScopeId("data-v-b329ee4c");const uL={class:"resize-observer",tabindex:"-1"};r.popScopeId();const fL=cL((t,e,n,o,i,a)=>(r.openBlock(),r.createBlock("div",uL)));rd.render=fL,rd.__scopeId="data-v-b329ee4c",rd.__file="src/components/ResizeObserver.vue";function id(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?id=function(e){return typeof e}:id=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(t)}function pL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hL(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function mL(t,e,n){return e&&hL(t.prototype,e),t}function by(t){return gL(t)||bL(t)||yL(t)||vL()}function gL(t){if(Array.isArray(t))return zf(t)}function bL(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function yL(t,e){if(t){if(typeof t=="string")return zf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zf(t,e)}}function zf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function vL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
130
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kL(t){var e;return typeof t=="function"?e={callback:t}:e=t,e}function wL(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a,s=function(c){for(var u=arguments.length,h=new Array(u>1?u-1:0),p=1;p<u;p++)h[p-1]=arguments[p];if(a=h,!(o&&c===i)){var m=n.leading;typeof m=="function"&&(m=m(c,i)),(!o||c!==i)&&m&&t.apply(void 0,[c].concat(by(a))),i=c,clearTimeout(o),o=setTimeout(function(){t.apply(void 0,[c].concat(by(a))),o=0},e)}};return s._clear=function(){clearTimeout(o),o=null},s}function yy(t,e){if(t===e)return!0;if(id(t)==="object"){for(var n in t)if(!yy(t[n],e[n]))return!1;return!0}return!1}var SL=function(){function t(e,n,o){pL(this,t),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return mL(t,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=kL(n),this.callback=function(l,c){i.options.callback(l,c),l&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},s=a.leading;this.callback=wL(this.callback,this.options.throttle,{leading:function(c){return s==="both"||s==="visible"&&c||s==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var c=l[0];if(l.length>1){var u=l.find(function(p){return p.isIntersecting});u&&(c=u)}if(i.callback){var h=c.isIntersecting&&c.intersectionRatio>=i.threshold;if(h===i.oldResult)return;i.oldResult=h,i.callback(h,c)}},this.options.intersection),r.nextTick(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function vy(t,e,n){var o=e.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new SL(t,o,n);t._vue_visibilityState=i}}function xL(t,e,n){var o=e.value,i=e.oldValue;if(!yy(o,i)){var a=t._vue_visibilityState;if(!o){ky(t);return}a?a.createObserver(o,n):vy(t,{value:o},n)}}function ky(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var CL={beforeMount:vy,updated:xL,unmounted:ky};function AL(t){return{all:t=t||new Map,on:function(e,n){var o=t.get(e);o&&o.push(n)||t.set(e,[n])},off:function(e,n){var o=t.get(e);o&&o.splice(o.indexOf(n)>>>0,1)},emit:function(e,n){(t.get(e)||[]).slice().map(function(o){o(n)}),(t.get("*")||[]).slice().map(function(o){o(e,n)})}}}var wy={itemsLimit:1e3},EL=/(auto|scroll)/;function Sy(t,e){return t.parentNode===null?e:Sy(t.parentNode,e.concat([t]))}var _f=function(e,n){return getComputedStyle(e,null).getPropertyValue(n)},DL=function(e){return _f(e,"overflow")+_f(e,"overflow-y")+_f(e,"overflow-x")},BL=function(e){return EL.test(DL(e))};function xy(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var e=Sy(t.parentNode,[]),n=0;n<e.length;n+=1)if(BL(e[n]))return e[n];return document.scrollingElement||document.documentElement}}function Hf(t){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hf(t)}var Cy={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ay(){return this.items.length&&Hf(this.items[0])!=="object"}var Uf=!1;if(typeof window<"u"){Uf=!1;try{var PL=Object.defineProperty({},"passive",{get:function(){Uf=!0}});window.addEventListener("test",null,PL)}catch{}}let IL=0;var qa={name:"RecycleScroller",components:{ResizeObserver:rd},directives:{ObserveVisibility:CL},props:{...Cy,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},e=this.items,n=this.sizeField,o=this.minItemSize;let i=1e4,a=0,s;for(let l=0,c=e.length;l<c;l++)s=e[l][n]||o,s<i&&(i=s),a+=s,t[l]={accumulator:a,size:s};return this.$_computedMinItemSize=i,t}return[]},simpleArray:Ay,itemIndexByKey(){const{keyField:t,items:e}=this,n={};for(let o=0,i=e.length;o<i;o++)n[e[o][t]]=o;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,e,n,o,i){const a=r.markRaw({id:IL++,index:e,used:!0,key:o,type:i}),s=r.shallowReactive({item:n,position:0,nr:a});return t.push(s),s},unuseView(t,e=!1){const n=this.$_unusedViews,o=t.nr.type;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(t),e||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(t,e){this.ready&&(t||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,e=!1){const n=this.itemSize,o=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,s=this.typeField,l=this.simpleArray?null:this.keyField,c=this.items,u=c.length,h=this.sizes,p=this.$_views,m=this.$_unusedViews,b=this.pool,y=this.itemIndexByKey;let v,w,x,I,R;if(!u)v=w=I=R=x=0;else if(this.$_prerender)v=I=0,w=R=Math.min(this.prerender,c.length),x=null;else{const G=this.getScroll();if(e){let E=G.start-this.$_lastUpdateScrollPosition;if(E<0&&(E=-E),n===null&&E<a||E<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const Q=this.buffer;G.start-=Q,G.end+=Q;let F=0;if(this.$refs.before&&(F=this.$refs.before.scrollHeight,G.start-=F),this.$refs.after){const E=this.$refs.after.scrollHeight;G.end+=E}if(n===null){let E,S=0,D=u-1,C=~~(u/2),T;do T=C,E=h[C].accumulator,E<G.start?S=C:C<u-1&&h[C+1].accumulator>G.start&&(D=C),C=~~((S+D)/2);while(C!==T);for(C<0&&(C=0),v=C,x=h[u-1].accumulator,w=C;w<u&&h[w].accumulator<G.end;w++);for(w===-1?w=c.length-1:(w++,w>u&&(w=u)),I=v;I<u&&F+h[I].accumulator<G.start;I++);for(R=I;R<u&&F+h[R].accumulator<G.end;R++);}else{v=~~(G.start/n*o);const E=v%o;v-=E,w=Math.ceil(G.end/n*o),I=Math.max(0,Math.floor((G.start-F)/n*o)),R=Math.floor((G.end-F)/n*o),v<0&&(v=0),w>u&&(w=u),I<0&&(I=0),R>u&&(R=u),x=Math.ceil(u/o)*n}}w-v>wy.itemsLimit&&this.itemsLimitError(),this.totalSize=x;let V;const B=v<=this.$_endIndex&&w>=this.$_startIndex;if(B)for(let G=0,Q=b.length;G<Q;G++)V=b[G],V.nr.used&&(t&&(V.nr.index=y[V.item[l]]),(V.nr.index==null||V.nr.index<v||V.nr.index>=w)&&this.unuseView(V));const L=B?null:new Map;let P,_,U;for(let G=v;G<w;G++){P=c[G];const Q=l?P[l]:P;if(Q==null)throw new Error(`Key is ${Q} on item (keyField is '${l}')`);if(V=p.get(Q),!n&&!h[G].size){V&&this.unuseView(V);continue}_=P[s];let F=m.get(_),E=!1;if(!V)B?F&&F.length?V=F.pop():V=this.addView(b,G,P,Q,_):(U=L.get(_)||0,(!F||U>=F.length)&&(V=this.addView(b,G,P,Q,_),this.unuseView(V,!0),F=m.get(_)),V=F[U],L.set(_,U+1)),p.delete(V.nr.key),V.nr.used=!0,V.nr.index=G,V.nr.key=Q,V.nr.type=_,p.set(Q,V),E=!0;else if(!V.nr.used&&(V.nr.used=!0,E=!0,F)){const S=F.indexOf(V);S!==-1&&F.splice(S,1)}V.item=P,E&&(G===c.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),n===null?(V.position=h[G-1].accumulator,V.offset=0):(V.position=Math.floor(G/o)*n,V.offset=G%o*i)}return this.$_startIndex=v,this.$_endIndex=w,this.emitUpdate&&this.$emit("update",v,w,I,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let t=xy(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:e}=this,n=e==="vertical";let o;if(this.pageMode){const i=t.getBoundingClientRect(),a=n?i.height:i.width;let s=-(n?i.top:i.left),l=n?window.innerHeight:window.innerWidth;s<0&&(l+=s,s=0),s+l>a&&(l=a-s),o={start:s,end:s+l}}else n?o={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:o={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Uf?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let e;const n=this.gridItems||1;this.itemSize===null?e=t>0?this.sizes[t-1].accumulator:0:e=Math.floor(t/n)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(t){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,o,i;if(this.pageMode){const a=xy(this.$el),s=a.tagName==="HTML"?0:a[e.scroll],l=a.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[e.start]-l[e.start];n=a,o=e.scroll,i=t+s+u}else n=this.$el,o=e.scroll,i=t;n[o]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,e)=>t.nr.index-e.nr.index)}}};const OL={key:0,ref:"before",class:"vue-recycle-scroller__slot"},NL={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function RL(t,e,n,o,i,a){const s=r.resolveComponent("ResizeObserver"),l=r.resolveDirective("observe-visibility");return r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:e[0]||(e[0]=(...c)=>a.handleScroll&&a.handleScroll(...c))},[t.$slots.before?(r.openBlock(),r.createElementBlock("div",OL,[r.renderSlot(t.$slots,"before")],512)):r.createCommentVNode("v-if",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.listTag),{ref:"wrapper",style:r.normalizeStyle({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:r.normalizeClass(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.pool,c=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.itemTag),r.mergeProps({key:c.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${c.position}px) translate${t.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${t.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${t.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===c.nr.key}]]},r.toHandlers(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=c.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),r.renderSlot(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(r.openBlock(),r.createElementBlock("div",NL,[r.renderSlot(t.$slots,"after")],512)):r.createCommentVNode("v-if",!0),r.createVNode(s,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[l,a.handleVisibilityChange]])}qa.render=RL,qa.__file="src/components/RecycleScroller.vue";var ad={name:"DynamicScroller",components:{RecycleScroller:qa},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(t=>{requestAnimationFrame(()=>{if(Array.isArray(t)){for(const e of t)if(e.target&&e.target.$_vs_onResize){let n,o;if(e.borderBoxSize){const i=e.borderBoxSize[0];n=i.inlineSize,o=i.blockSize}else n=e.contentRect.width,o=e.contentRect.height;e.target.$_vs_onResize(e.target.$_vs_id,n,o)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Cy,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ay,itemsWithSize(){const t=[],{items:e,keyField:n,simpleArray:o}=this,i=this.vscrollData.sizes,a=e.length;for(let s=0;s<a;s++){const l=e[s],c=o?s:l[n];let u=i[c];typeof u>"u"&&!this.$_undefinedMap[c]&&(u=0),t.push({item:l,id:c,size:u})}return t}},watch:{items(){this.forceUpdate()},simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},direction(t){this.forceUpdate(!0)},itemsWithSize(t,e){const n=this.$el.scrollTop;let o=0,i=0;const a=Math.min(t.length,e.length);for(let l=0;l<a&&!(o>=n);l++)o+=e[l].size||this.minItemSize,i+=t[l].size||this.minItemSize;const s=i-o;s!==0&&(this.$el.scrollTop+=s)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=AL()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(t=!1){(t||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(t){const e=this.$refs.scroller;e&&e.scrollToItem(t)},getItemSize(t,e=void 0){const n=this.simpleArray?e??this.items.indexOf(t):t[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const t=this.$el;this.$nextTick(()=>{t.scrollTop=t.scrollHeight+5e3;const e=()=>{t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(e)})};requestAnimationFrame(e)})}}};function VL(t,e,n,o,i,a){const s=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(s,r.mergeProps({ref:"scroller",items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:t.direction,"key-field":"id","list-tag":t.listTag,"item-tag":t.itemTag},t.$attrs,{onResize:a.onScrollerResize,onVisible:a.onScrollerVisible}),{default:r.withCtx(({item:l,index:c,active:u})=>[r.renderSlot(t.$slots,"default",r.normalizeProps(r.guardReactiveProps({item:l.item,index:c,active:u,itemWithSize:l})))]),before:r.withCtx(()=>[r.renderSlot(t.$slots,"before")]),after:r.withCtx(()=>[r.renderSlot(t.$slots,"after")]),empty:r.withCtx(()=>[r.renderSlot(t.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}ad.render=VL,ad.__file="src/components/DynamicScroller.vue";var Wf={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(t,e){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[e],o=this.vscrollData.sizes[t];n!=null&&n!==o&&this.applySize(n)}},finalActive(t){this.size||(t?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?t?this.observeSize():this.unobserveSize():t&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const t in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[t],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:t}){!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||t||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(t){this.$nextTick(()=>{if(this.id===t){const e=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(e,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(t,e){const n=~~(this.vscrollParent.direction==="vertical"?e:t);n&&this.size!==n&&this.applySize(n)},applySize(t){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=t,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(t,e,n){this.id===t&&this.applyWidthHeight(e,n)}},render(){return r.h(this.tag,this.$slots.default())}};Wf.__file="src/components/DynamicScrollerItem.vue";function FL(t,e){t.component("".concat(e,"recycle-scroller"),qa),t.component("".concat(e,"RecycleScroller"),qa),t.component("".concat(e,"dynamic-scroller"),ad),t.component("".concat(e,"DynamicScroller"),ad),t.component("".concat(e,"dynamic-scroller-item"),Wf),t.component("".concat(e,"DynamicScrollerItem"),Wf)}var TL={version:"2.0.0-beta.8",install:function(e,n){var o=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var i in o)typeof o[i]<"u"&&(wy[i]=o[i]);o.installComponents&&FL(e,o.componentsPrefix)}},ML={exports:{}};(function(t,e){(function(n,o){t.exports=o(Lc)})(mn,function(n){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=o(n),a={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(s){return s+"."}};return i.default.locale(a,null,!0),a})})(ML);var LL={exports:{}};(function(t,e){(function(n,o){t.exports=o(Lc)})(mn,function(n){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=o(n),a={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"週":s+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})})(LL);var zL={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(mn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var o=["th","st","nd","rd"],i=n%100;return"["+n+(o[(i-20)%10]||o[i]||o[0])+"]"}}})})(zL);const _L={name:"@feedmepos/ui-library",version:"1.10.2",type:"module",files:["dist"],repository:{type:"git",url:"git+https://github.com/feedmepos/ui-library.git"},bugs:"https://feedmepos.atlassian.net/browse/CT-3",homepage:"ui.feedme.ai",main:"./dist/feedmepos-ui-library.umd.cjs",module:"./dist/feedmepos-ui-library.js",exports:{".":{types:"./dist/index.d.ts",import:"./dist/feedmepos-ui-library.js",require:"./dist/feedmepos-ui-library.umd.cjs"},"./meta":{types:"./dist/meta.d.ts"},"./tailwind-plugin":"./dist/tailwind-plugin.js","./tailwind-styling":"./dist/tailwind-styling.js","./styles.css":"./dist/style.css"},scripts:{dev:"vite --port 5273",preview:"vite preview","build:lib":"pnpm run build-components && pnpm run build-types && pnpm run build-federation && pnpm run build-tailwind-plugin && pnpm run build-tailwind-styling && tsc-alias --project tsconfig.app.json --outDir dist && mv ./dist/src/* ./dist",build:"vite build","build-lib":"vite build --mode library","build-tailwind-plugin":"vite build --mode tailwind-plugin","build-tailwind-styling":"vite build --mode tailwind-styling","build-federation":"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp","build-components":'run-p type-check "build-lib {@}" --',"build-types":"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false","copy-changelog":"cp ./CHANGELOG.md ./dist/CHANGELOG.md","type-check":"vue-tsc --noEmit -p tsconfig.app.json --composite false",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",deploy:"pnpm run build:lib && pnpm publish --no-git-checks .","register-components":"node ./scripts/register-components.js && pnpm lint","generate-component-meta":"node ./scripts/generate-component-meta.js","build:pack":"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../"},dependencies:{"@feedmepos/core":"^2.10.12","@floating-ui/vue":"^1.0.6","@rollup/plugin-commonjs":"^26.0.1","@tanstack/vue-table":"^8.13.2","@tanstack/vue-virtual":"^3.13.0","@types/lodash":"^4.17.7","@vueuse/core":"^10.9.0","chart.js":"^4.4.2","chartjs-plugin-datalabels":"^2.2.0",dayjs:"^1.11.10",debounce:"^2.0.0",fuzzy:"^0.1.3","libphonenumber-js":"^1.10.57",lodash:"^4.17.21",prettier:"^3.2.5",uuid:"^10.0.0","v-wave":"^1.5.1",vue:"^3.4.21","vue-country-flag-next":"^2.3.2","vue-router":"^4.3.0","vue-virtual-scroller":"2.0.0-beta.8",vuedraggable:"^4.1.0"},devDependencies:{"@originjs/vite-plugin-federation":"^1.3.5","@rushstack/eslint-patch":"^1.7.2","@tsconfig/node18":"^18.2.2","@types/chart.js":"^2.9.41","@types/debounce":"^1.2.4","@types/node":"^18.19.21","@types/uuid":"^10.0.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue/eslint-config-typescript":"^12.0.0","@vue/tsconfig":"^0.4.0",autoprefixer:"^10.4.17",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-unused-imports":"^4.3.0","eslint-plugin-vue":"^9.22.0","npm-run-all2":"^6.1.2",postcss:"^8.4.35",sass:"^1.71.1",tailwindcss:"^3.4.1","tsc-alias":"^1.8.8",typescript:"~5.2.2",vite:"^5.1.4","vite-plugin-static-copy":"^0.17.1","vite-plugin-top-level-await":"^1.4.1","vue-component-meta":"^2.0.13","vue-tsc":"^1.8.27"},peerDependencies:{tailwindcss:"^3.4.1",vite:"^5.1.4",vue:"^3.4.21"}};globalThis.__FM_UI_VERSION__=_L.version;const HL={"en-US":"en","zh-CN":"zh-cn","zh-Hant":"zh-tw","th-TH":"th"},UL=(t,e)=>{if(t.use(uk,{duration:.3,color:"var(--fm-color-opacity-sm)",initialOpacity:1,finalOpacity:.1,dissolveDuration:.6}),t.directive("tooltip",lL),t.use(XS),t.use(py),t.use(TL),Object.entries(hy).forEach(([n,o])=>{t.component(n,o)}),e!=null&&e.locale){wm(e.locale);const n=HL[e.locale]||"en";W.locale(n)}};ze.FeedMeUI=UL,ze.FmAdvancedSort=Om,ze.FmButtonColorThemeVariant=Gt,ze.FmButtonVariant=_n,ze.Locale=km,ze.SnackbarMountStage=bt,ze.SnackbarPlugin=py,ze.SnackbarPosition=on,ze.SnackbarService=fy,ze.components=hy,ze.setLocale=wm,ze.useBreakpoints=Jo,ze.useDialog=Bm,ze.useDialogChild=Pm,ze.useFocus=la,ze.useFormChild=nm,ze.useProxiedModel=Pe,ze.useSnackbar=Rw,ze.useValidation=tm,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
129
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,i),i}}function Tf(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const eM=(t,e)=>Math.abs(t-e)<1,tM=(t,e,n)=>{let o;return function(...i){t.clearTimeout(o),o=t.setTimeout(()=>e.apply(this,i),n)}};var Qa={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",npm_package_exports___require:"./dist/feedmepos-ui-library.umd.cjs",npm_package_dependencies_prettier:"^3.2.5",npm_package_devDependencies__types_node:"^18.19.21",DOTNET_NOLOGO:"1",npm_package_devDependencies__originjs_vite_plugin_federation:"^1.3.5",USER:"runner",npm_package_dependencies__rollup_plugin_commonjs:"^26.0.1",npm_config_user_agent:"pnpm/9.15.9 npm/? node/v20.20.2 linux x64",CI:"true",npm_package_dependencies_v_wave:"^1.5.1",npm_package_dependencies_vue:"^3.4.21",USE_BAZEL_FALLBACK_VERSION:"silent:",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",PIPX_HOME:"/opt/pipx",npm_package_dependencies__types_lodash:"^4.17.7",npm_package_devDependencies_tsc_alias:"^1.8.8",npm_package_devDependencies_vite:"^5.1.4",npm_package_peerDependencies_tailwindcss:"^3.4.1",npm_node_execpath:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_package_files_0:"dist",npm_package_scripts_build_lib:"vite build --mode library",npm_package_dependencies_vue_virtual_scroller:"2.0.0-beta.8",HOME:"/home/runner",npm_package_exports___meta_types:"./dist/meta.d.ts",npm_package_dependencies_chart_js:"^4.4.2",npm_package_devDependencies_sass:"^1.71.1",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_devDependencies_eslint_config_prettier:"^9.1.0",npm_package_devDependencies_vite_plugin_static_copy:"^0.17.1",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"feedmepos",npm_package_scripts_build_components:'run-p type-check "build-lib {@}" --',GRADLE_HOME:"/usr/share/gradle-9.4.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/29.0.14206865",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",GITHUB_RETENTION_DAYS:"90",npm_package_scripts_type_check:"vue-tsc --noEmit -p tsconfig.app.json --composite false",npm_package_dependencies__tanstack_vue_virtual:"^3.13.0",npm_package_devDependencies_npm_run_all2:"^6.1.2",npm_package_peerDependencies_vue:"^3.4.21",GITHUB_REPOSITORY_OWNER_ID:"54831515",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_package_scripts_build_federation:"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp",npm_package_devDependencies_vue_component_meta:"^2.0.13",SYSTEMD_EXEC_PID:"1872",ACTIONS_ORCHESTRATION_ID:"ca07ea72-8b91-4963-a209-0faea4174115.deploy.__default",npm_package_dependencies_dayjs:"^1.11.10",npm_package_devDependencies__tsconfig_node18:"^18.2.2",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",npm_package_devDependencies_tailwindcss:"^3.4.1",npm_package_devDependencies_typescript:"~5.2.2",JAVA_HOME_25_X64:"/usr/lib/jvm/temurin-25-jdk-amd64",NVM_DIR:"/home/runner/.nvm",npm_package_homepage:"ui.feedme.ai",npm_package_devDependencies_vue_tsc:"^1.8.27",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20260413.86.1",npm_package_scripts_dev:"vite --port 5273",LOGNAME:"runner",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",STORE_PATH:"/home/runner/setup-pnpm/node_modules/.bin/store/v3",SWIFT_PATH:"/usr/share/swift/usr/bin",npm_package_type:"module",npm_package_dependencies__vueuse_core:"^10.9.0",npm_package_devDependencies__vue_tsconfig:"^0.4.0",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.12/x64",JOURNAL_STREAM:"9:15635",GITHUB_WORKFLOW:"Publish Vue",_:"/home/runner/setup-pnpm/node_modules/.bin/pnpm",npm_package_module:"./dist/feedmepos-ui-library.js",npm_package_devDependencies_autoprefixer:"^10.4.17",RUNNER_DEBUG:"1",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure",GOROOT_1_24_X64:"/opt/hostedtoolcache/go/1.24.13/x64",npm_package_scripts_build_tailwind_plugin:"vite build --mode tailwind-plugin",npm_package_scripts_lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",npm_package_dependencies_fuzzy:"^0.1.3",npm_package_devDependencies__types_uuid:"^10.0.0",npm_config_registry:"https://registry.npmjs.org/",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",GOROOT_1_25_X64:"/opt/hostedtoolcache/go/1.25.9/x64",GITHUB_RUN_ID:"25423638058",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"31d1ac73a8b83dc311c546b14b680eb7a010db2d",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",npm_package_exports___import:"./dist/feedmepos-ui-library.js",npm_package_devDependencies__vitejs_plugin_vue:"^5.0.4",GITHUB_WORKFLOW_REF:"feedmepos/ui-library/.github/workflows/publish-vue.yml@refs/heads/main",GITHUB_ACTION_REPOSITORY:"",ENABLE_RUNNER_TRACING:"true",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/work/ui-library/ui-library/packages/vue/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/ui-library/ui-library/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_48b89e2c-5531-4b5d-9e4a-9427686b792f",INVOCATION_ID:"d3b6b44a78ff4c3eaa3c6d8208d9fa38",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.20.2/x64/bin/node",npm_package_name:"@feedmepos/ui-library",npm_package_repository_type:"git",GITHUB_ACTION:"__run_4",GITHUB_RUN_NUMBER:"342",GITHUB_TRIGGERING_ACTOR:"heiseshandian",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",npm_package_dependencies_vue_country_flag_next:"^2.3.2",npm_config_frozen_lockfile:"",npm_package_exports___styles_css:"./dist/style.css",npm_package_scripts_build_tailwind_styling:"vite build --mode tailwind-styling",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",npm_package_scripts_generate_component_meta:"node ./scripts/generate-component-meta.js",npm_package_devDependencies__vue_eslint_config_typescript:"^12.0.0",npm_package_devDependencies_eslint:"^8.57.0",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub Actions 1000066229",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"feedmepos/ui-library",npm_package_main:"./dist/feedmepos-ui-library.umd.cjs",npm_package_scripts_build_types:"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false",npm_package_devDependencies__types_debounce:"^1.2.4",npm_lifecycle_script:"vite build --mode library",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",npm_package_exports___tailwind_plugin:"./dist/tailwind-plugin.js",npm_package_devDependencies__vitejs_plugin_vue_jsx:"^3.1.0",SHELL:"/bin/bash",GITHUB_REPOSITORY_ID:"677015340",GITHUB_ACTIONS:"true",NODE_PATH:"/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules/vite/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/vite@5.4.0_@types+node@18.19.43_sass@1.77.8/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/run-p/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/bin/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules/npm-run-all2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/npm-run-all2@6.2.2/node_modules:/home/runner/work/ui-library/ui-library/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"1.10.3",npm_package_repository_url:"git+https://github.com/feedmepos/ui-library.git",npm_package_dependencies__tanstack_vue_table:"^8.13.2",npm_package_dependencies_vuedraggable:"^4.1.0",npm_package_devDependencies__rushstack_eslint_patch:"^1.7.2",npm_package_devDependencies_eslint_plugin_unused_imports:"^4.3.0",npm_lifecycle_event:"build-lib",GITHUB_REF_PROTECTED:"false",npm_package_scripts_build:"vite build",npm_package_dependencies_uuid:"^10.0.0",GITHUB_WORKSPACE:"/home/runner/work/ui-library/ui-library",ACCEPT_EULA:"Y",GITHUB_JOB:"deploy",npm_package_dependencies_lodash:"^4.17.21",GITHUB_SHA:"31d1ac73a8b83dc311c546b14b680eb7a010db2d",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"heiseshandian",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_package_scripts_build_pack:"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../",npm_package_exports___tailwind_styling:"./dist/tailwind-styling.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/ui-library/ui-library/packages/vue",GITHUB_ACTOR_ID:"7780463",RUNNER_WORKSPACE:"/home/runner/work/ui-library",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",npm_package_exports___types:"./dist/index.d.ts",npm_package_devDependencies__types_chart_js:"^2.9.41",npm_config_recursive:"true",EDGEWEBDRIVER:"/usr/local/share/edge_driver",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_devDependencies_eslint_plugin_vue:"^9.22.0",npm_package_devDependencies_postcss:"^8.4.35",npm_package_peerDependencies_vite:"^5.1.4",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.3.13750724",SGX_AESM_ADDR:"1",PSModulePath:"/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0",CHROME_BIN:"/usr/bin/google-chrome",npm_package_scripts_preview:"vite preview",npm_package_scripts_deploy:"pnpm run build:lib && pnpm publish --no-git-checks .",npm_package_dependencies__floating_ui_vue:"^1.0.6",npm_package_dependencies_debounce:"^2.0.0",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",PNPM_HOME:"/home/runner/setup-pnpm/node_modules/.bin",npm_package_bugs:"https://feedmepos.atlassian.net/browse/CT-3",npm_package_scripts_register_components:"node ./scripts/register-components.js && pnpm lint",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.3.13750724",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_dca68861-8c1c-4fb7-b93e-99cd7d156c9a",INIT_CWD:"/home/runner/work/ui-library/ui-library/packages/vue",npm_package_scripts_copy_changelog:"cp ./CHANGELOG.md ./dist/CHANGELOG.md",npm_package_dependencies_chartjs_plugin_datalabels:"^2.2.0",npm_package_dependencies_libphonenumber_js:"^1.10.57",NODE_ENV:"production"}};const nM=t=>t,oM=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),o=[];for(let i=e;i<=n;i++)o.push(i);return o},rM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;const i=s=>{const{width:l,height:c}=s;e({width:Math.round(l),height:Math.round(c)})};if(i(n.getBoundingClientRect()),!o.ResizeObserver)return()=>{};const a=new o.ResizeObserver(s=>{const l=()=>{const c=s[0];if(c!=null&&c.borderBoxSize){const u=c.borderBoxSize[0];if(u){i({width:u.inlineSize,height:u.blockSize});return}}i(n.getBoundingClientRect())};t.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},dy={passive:!0},cy=typeof window>"u"?!0:"onscrollend"in window,iM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;let i=0;const a=t.options.useScrollendEvent&&cy?()=>{}:tM(o,()=>{e(i,!1)},t.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:m}=t.options;i=p?n.scrollLeft*(m&&-1||1):n.scrollTop,a(),e(i,h)},l=s(!0),c=s(!1);c(),n.addEventListener("scroll",l,dy);const u=t.options.useScrollendEvent&&cy;return u&&n.addEventListener("scrollend",c,dy),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},aM=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const o=e.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},sM=(t,{adjustments:e=0,behavior:n},o)=>{var i,a;const s=t+e;(a=(i=o.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[o.options.horizontal?"left":"top"]:s,behavior:n})};class lM{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const s=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=o())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=o())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=o())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,i])=>{typeof i>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nM,rangeExtractor:oM,onChange:()=>{},measureElement:aM,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var o,i;(i=(o=this.options).onChange)==null||i.call(o,this,n)},this.maybeNotify=Oi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const i=new Map,a=new Map;for(let s=o-1;s>=0;s--){const l=n[s];if(i.has(l.lane))continue;const c=a.get(l.lane);if(c==null||l.end>c.end?a.set(l.lane,l):l.end<c.end&&i.set(l.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Oi(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,o,i,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:i,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Oi(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:i,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const c=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,c);for(let h=c;h<n;h++){const p=a(h),m=this.options.lanes===1?u[h-1]:this.getFurthestMeasurement(u,h),b=m?m.end+this.options.gap:o+i,y=l.get(p),v=typeof y=="number"?y:this.options.estimateSize(h),w=b+v,x=m?m.lane:h%this.options.lanes;u[h]={index:h,start:b,size:v,end:w,key:p,lane:x}}return this.measurementsCache=u,u},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Oi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,o,i)=>this.range=n.length>0&&o>0?dM({measurements:n,outerSize:o,scrollOffset:i}):null,{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualIndexes=Oi(()=>{let n=null,o=null;const i=this.calculateRange();return i&&(n=i.startIndex,o=i.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,i,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:o,count:i}),{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,i=n.getAttribute(o);return i?parseInt(i,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const s=a.key,l=this.elementsCache.get(s);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(s,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,s=o-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,o)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((o,i)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=Oi(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const i=[];for(let a=0,s=n.length;a<s;a++){const l=n[a],c=o[l];i.push(c)}return i},{key:Qa.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Tf(o[uy(0,o.length-1,i=>Tf(o[i]).start,n)])},this.getOffsetForAlignment=(n,o)=>{const i=this.getSize(),a=this.getScrollOffset();o==="auto"&&n>=a+i&&(o="end"),o==="end"&&(n-=i);const s=this.options.horizontal?"scrollWidth":"scrollHeight",c=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),s=this.getScrollOffset();if(o==="auto")if(i.end>=s+a-this.options.scrollPaddingEnd)o="end";else if(i.start<=s+this.options.scrollPaddingStart)o="start";else return[s,o];const l=i.start-this.options.scrollPaddingStart+(i.size-a)/2;switch(o){case"center":return[this.getOffsetForAlignment(l,o),o];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:o="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:o="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(n,o);if(!a)return;const[s,l]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=Tf(this.getOffsetForIndex(n,l));eM(u,this.getScrollOffset())||this.scrollToIndex(n,{align:l,behavior:i})}else this.scrollToIndex(n,{align:l,behavior:i})}))},this.scrollBy=(n,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let i;return o.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=o[o.length-1])==null?void 0:n.end)??0:Math.max(...o.slice(-this.options.lanes).map(a=>a.end)),Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const uy=(t,e,n,o)=>{for(;t<=e;){const i=(t+e)/2|0,a=n(i);if(a<o)t=i+1;else if(a>o)e=i-1;else return i}return t>0?t-1:0};function dM({measurements:t,outerSize:e,scrollOffset:n}){const o=t.length-1,a=uy(0,o,l=>t[l].start,n);let s=a;for(;s<o&&t[s].end<n+e;)s++;return{startIndex:a,endIndex:s}}function cM(t){const e=new lM(r.unref(t)),n=r.shallowRef(e),o=e._didMount();return r.watch(()=>r.unref(t).getScrollElement(),i=>{i&&e._willUpdate()},{immediate:!0}),r.watch(()=>r.unref(t),i=>{e.setOptions({...i,onChange:(a,s)=>{var l;r.triggerRef(n),(l=i.onChange)==null||l.call(i,a,s)}}),e._willUpdate(),r.triggerRef(n)},{immediate:!0}),r.onScopeDispose(o),n}function uM(t){return cM(r.computed(()=>({observeElementRect:rM,observeElementOffset:iM,scrollToFn:sM,...r.unref(t)})))}const fM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},pM={class:"text-fm-color-typo-secondary"},hM=["onClick"],mM={key:0},gM={key:0,class:"w-full"},bM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},yM={class:"text-fm-color-typo-secondary"},vM=["onClick"],kM=["colspan"],wM={key:1,class:"virtual-table-container w-full"},SM={class:"sticky top-0 z-10 w-full"},xM={class:"w-full"},CM=["onClick"],AM={class:"flex gap-8 items-center"},EM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},DM={class:"flex gap-8"},BM=De(r.defineComponent({__name:"FmTable",props:{modelValue:{default:{}},selection:{default:void 0},rowData:{default:()=>[]},columnDefs:{default:()=>[]},columnFilter:{default:void 0},searchValue:{default:""},pageCount:{default:0},rowCount:{default:void 0},fetchFn:{type:Function,default:void 0},pageSize:{default:10},loading:{type:Boolean,default:void 0},pinHeaderRow:{type:Boolean,default:!0},hideHeaderRow:{type:Boolean},rowClassName:{},onRowClick:{type:Function,default:void 0},autoResetPageIndex:{type:Boolean},shrinkAt:{type:[String,Number,Boolean],default:"sm"},hideFooter:{type:Boolean},forceMobileFooter:{type:Boolean},columnVisibility:{},draggable:{type:[Boolean,Function]},wholeRowDraggable:{type:Boolean},expandedState:{type:[Boolean,Object]},getRowCanExpand:{type:Function,default:()=>!0},getSubRow:{type:Function,default:t=>t.subRows},onVuedraggableMove:{type:Function,default:()=>!0},virtual:{type:Boolean,default:!1},virtualRowHeight:{default:48},getRowId:{}},emits:["sort-change","dnd-changed","update:expanded-state","update:dragging"],setup(t,{emit:e}){const n=t,o=e;if(n.virtual&&n.draggable)throw new Error("Cannot use virtual scroll and draggable at the same time");const i=Pe(n,"modelValue"),a=Pe(n,"searchValue"),s=r.ref(n.rowData),l=r.ref(!1);r.watch(()=>l.value,C=>{o("update:dragging",C),C&&o("update:expanded-state",{})});const c=()=>{let C=[];n.selection&&C.push({id:"row-selection",header:({table:M})=>r.createVNode(wb,{checked:M.getIsAllPageRowsSelected(),indeterminate:M.getIsSomePageRowsSelected(),onChange:M.getToggleAllPageRowsSelectedHandler()},null),cell:({row:M})=>M.depth===0?r.createVNode(wb,{checked:M==null?void 0:M.getIsSelected(),disabled:!(M!=null&&M.getCanSelect()),onChange:M==null?void 0:M.getToggleSelectedHandler()},null):r.createVNode("div",null,null),enableResizing:!1,meta:{headerClass:"py-[2px] pl-4 pr-16",cellClass:"pl-4 pr-16",width:"60px"},size:60});const T=n.draggable;return T&&!n.wholeRowDraggable&&C.push({id:"row-drag",header:"",cell:({row:M})=>(typeof T=="function"?T(M.original,M.index):T)&&M.depth===0?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(me,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",onMousedown:()=>{l.value=!0},onMouseup:()=>{l.value=!1}})):typeof T=="function"?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(me,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",disabled:!0})):r.createVNode("div",null,null),enableResizing:!1,meta:{cellClass:"dnd-handler",width:"60px"},size:60}),[...C,...n.columnDefs]},u=r.ref([]);r.watch(()=>u.value,C=>{o("sort-change",C)}),r.watch(()=>n.rowData,C=>{s.value=[...C]},{deep:!0});const h=r.ref({pageIndex:0,pageSize:n.pageSize}),p=SI({get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()},get data(){return s.value},getRowId:n.getRowId,state:{get pagination(){return typeof n.fetchFn=="function"?h.value:void 0},get globalFilter(){return a.value},get rowSelection(){return i.value},get sorting(){return u.value},get columnVisibility(){return n.columnVisibility},get expanded(){return n.expandedState}},getCoreRowModel:fI(),getSortedRowModel:vI(),getFilteredRowModel:bI(),getPaginationRowModel:yI(),getRowCanExpand:n.getRowCanExpand,onExpandedChange:C=>{if(!n.expandedState)return;const T=typeof C=="function"?C(n.expandedState):C;o("update:expanded-state",T)},onRowSelectionChange:C=>{if(!v.value)return i.value=typeof C=="function"?C(i.value):C},onSortingChange:C=>{u.value=typeof C=="function"?C(u.value):C},onGlobalFilterChange:C=>{a.value=typeof C=="function"?C(a.value):C},autoResetPageIndex:n.autoResetPageIndex,manualPagination:typeof n.fetchFn=="function",...typeof n.fetchFn=="function"&&{onPaginationChange:C=>h.value=typeof C=="function"?C(h.value):C},pageCount:typeof n.fetchFn=="function"?n.pageCount:void 0,getSubRows:C=>n.getSubRow(C),getExpandedRowModel:pI(),get enableHiding(){return!0}});r.watch(()=>h.value,C=>{y(C)}),r.watch(()=>n.selection,()=>{p.setOptions(C=>({...C,get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()}}))});const m=r.ref(""),b=r.ref(!1);async function y(C){if(!n.fetchFn)return;b.value=!0;const T=`${Math.random()}`;m.value=T;try{await n.fetchFn(C)}catch{}finally{m.value===T&&(b.value=!1)}}const v=r.computed(()=>{const C=b.value;return typeof n.loading=="boolean"?n.loading:C});r.watch(()=>n.rowData,()=>{p.setOptions(C=>({...C,get data(){return s.value}}))}),r.watch([()=>n.pageCount,()=>n.rowCount],()=>{p.setOptions(C=>({...C,pageCount:n.pageCount,rowCount:n.rowCount}))}),r.watch(()=>n.pageSize,()=>{p.setPageSize(n.pageSize)}),r.watch([()=>n.columnFilter],([C])=>{p.setColumnFilters(()=>C??[])}),r.watch(()=>n.columnDefs,()=>{p.setOptions(C=>({...C,get columns(){return c()}}))}),r.onMounted(()=>{n.fetchFn&&n.fetchFn(p.getState().pagination),p.setPageSize(n.pageSize)});const w=r.ref(380);function x(C){var M;const T=((M=C.el)==null?void 0:M.scrollHeight)??0;w.value=Math.max(100,T)}const I=Jo(),R=r.ref(),V=r.ref(typeof n.shrinkAt=="boolean"&&!n.shrinkAt?!1:I.isBreakpointKeyword(n.shrinkAt)&&I.isAtMost(n.shrinkAt)),B=r.computed(()=>{const C=[...Array.from(Array(Math.min(5,Math.floor(n.rowData.length/10))),(M,K)=>(K+1)*10).map(M=>({label:M.toString(),value:M}))],T={label:H("table.all"),value:n.rowData.length};return n.pageSize&&n.pageSize>0&&(C.some(M=>M.value===n.pageSize)||(C.push({label:n.pageSize.toString(),value:n.pageSize}),C.sort((M,K)=>M.value-K.value))),[...C,T]});function L(C){const T=C.el;if(!T||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt)return;const M=nf(function(){if(R.value=T.clientWidth,I.isBreakpointKeyword(n.shrinkAt)){V.value=I.isAtMost(n.shrinkAt);return}const K=Number(n.shrinkAt);if(isNaN(K)){V.value=!1;return}V.value=T.scrollWidth>=K},200);T.resizeTable??(T.resizeTable=function(){V.value=I.isBreakpointKeyword(n.shrinkAt)&&I.isAtMost(n.shrinkAt),M()}),window.addEventListener("resize",T.resizeTable),T.resizeTable()}function P(C){const T=C.el;!T||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt||T.resizeTable&&window.removeEventListener("resize",T.resizeTable)}function _(C){const T=Math.min(...C.map(ie=>ie.index)),M=Math.max(...C.map(ie=>ie.index)),K=s.value.slice(0,T),oe=s.value.slice(M+1),le=C.map(ie=>ie.original),Z=s.value.slice(T,M+1);$T(le,Z)||o("dnd-changed",[...K,...le,...oe])}const U=r.ref(),G=r.computed(()=>!n.virtual||!U.value?null:uM({count:p.getRowModel().rows.length,getScrollElement:()=>U.value||null,estimateSize:()=>n.virtualRowHeight,overscan:20})),Q=r.ref([]);function F(C){Q.value=C}function E(C,T){var K;const M=(K=C.column.columnDef.meta)==null?void 0:K.colspan;return typeof M=="function"?M(T):M??1}function S(C){return C.getVisibleCells().filter(T=>E(T,C)!==0)}function D({draggedContext:C}){const T=n.draggable,M=C.index,K=p.getRowModel().rows[M];let oe=typeof T=="function"?T(K.original,M):T;if(!oe)return oe;const le=C.futureIndex,Z=p.getRowModel().rows[le];return oe=typeof T=="function"?T(Z.original,le):T,oe}return(C,T)=>{var oe,le;const M=r.resolveComponent("FmListItem"),K=r.resolveComponent("FmList");return r.openBlock(),r.createElementBlock("div",{class:"flex flex-col h-full relative",onVnodeMounted:L,onVnodeUnmounted:P},[r.createElementVNode("div",{class:"overflow-y-auto",ref_key:"parentRef",ref:U},[V.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[v.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({height:`${w.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",fM,[r.createVNode(Zo),r.createVNode(xr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(C.$slots,"loading-text",{},()=>[r.createElementVNode("span",pM,r.toDisplayString(r.unref(H)("table.loading")),1)],!0)]),r.createVNode(Zo)])],4)):(r.openBlock(),r.createBlock(K,{key:1,onVnodeMounted:x},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p).getRowModel().rows,Z=>r.renderSlot(C.$slots,"list-row",r.mergeProps({key:Z.id,ref_for:!0},Z),()=>[r.createVNode(M,{class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":Z.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function"}]),style:{padding:"0"},tag:"label"},{prepend:r.withCtx(()=>{var ie,fe,he,Oe,st;return[r.createVNode(r.unref(ja),{props:(fe=(ie=Z.getVisibleCells().find(Xe=>Xe.column.id==="row-selection"))==null?void 0:ie.getContext)==null?void 0:fe.call(ie),render:(st=(Oe=(he=Z.getVisibleCells().find(Xe=>Xe.column.id==="row-selection"))==null?void 0:he.column)==null?void 0:Oe.columnDef)==null?void 0:st.cell},null,8,["props","render"])]}),default:r.withCtx(()=>[r.createElementVNode("div",{class:"flex flex-col gap-4 grow p-8",onClick:ie=>{var fe;return(fe=C.onRowClick)==null?void 0:fe.call(C,Z)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z.getVisibleCells(),ie=>{var fe;return r.openBlock(),r.createElementBlock(r.Fragment,{key:ie.id},[ie.column.id!=="row-selection"?(r.openBlock(),r.createElementBlock("div",mM,[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((fe=ie.column.columnDef.meta)==null?void 0:fe.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:ie.getContext(),render:ie.column.columnDef.cell},null,8,["props","render"])],2)])):r.createCommentVNode("",!0)],64)}),128))],8,hM)]),_:2},1032,["class"])],!0)),128))]),_:3},512))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[C.virtual?(r.openBlock(),r.createElementBlock("div",wM,[r.createElementVNode("div",SM,[r.createElementVNode("table",xM,[C.hideHeaderRow?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(jl,{key:0,table:r.unref(p),class:"bg-fm-color-neutral-gray-100","onUpdate:columnWidths":F},null,8,["table"]))])]),r.createElementVNode("div",{class:"virtual-list relative",style:r.normalizeStyle({height:`${r.unref(p).getRowModel().rows.length*n.virtualRowHeight}px`,width:"100%"}),onVnodeMounted:x},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((le=(oe=G.value)==null?void 0:oe.value)==null?void 0:le.getVirtualItems(),Z=>{var ie,fe;return r.openBlock(),r.createElementBlock("div",{key:Z.index,style:r.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:`${n.virtualRowHeight}px`,transform:`translateY(${Z.start}px)`,display:"flex",alignItems:"center",borderBottom:"1px solid var(--fm-color-neutral-gray-100)"}),class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":(ie=r.unref(p).getRowModel().rows[Z.index])==null?void 0:ie.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function"},C.rowClassName,"hover:bg-fm-color-opacity-sm"]),onClick:he=>{var Oe;return(Oe=C.onRowClick)==null?void 0:Oe.call(C,r.unref(p).getRowModel().rows[Z.index])}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(((fe=r.unref(p).getRowModel().rows[Z.index])==null?void 0:fe.getVisibleCells())||[],(he,Oe)=>{var st,Xe,nt,ot;return r.openBlock(),r.createElementBlock("div",{key:he.id,class:r.normalizeClass(["virtual-cell","h-full flex items-center",((st=he.column.columnDef.meta)==null?void 0:st.cellClass)??"px-16"]),style:r.normalizeStyle({width:Q.value[Oe]?`${Q.value[Oe]}px`:"auto",flex:Q.value[Oe]?"0 0 auto":"1 1 0px",textAlign:((Xe=he.column.columnDef.meta)==null?void 0:Xe.textAlign)??"left",maxWidth:(nt=he.column.columnDef.meta)==null?void 0:nt.maxWidth})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ot=he.column.columnDef.meta)==null?void 0:ot.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:he.getContext(),render:he.column.columnDef.cell},null,8,["props","render"])],2)],6)}),128))],14,CM)}),128))],4)])):(r.openBlock(),r.createElementBlock("table",gM,[!C.pinHeaderRow&&!C.hideHeaderRow?(r.openBlock(),r.createBlock(jl,{key:0,table:r.unref(p)},null,8,["table"])):r.createCommentVNode("",!0),r.renderSlot(C.$slots,"pin-top",{},void 0,!0),v.value?(r.openBlock(),r.createElementBlock("tbody",{key:1,onVnodeMounted:x},[r.createElementVNode("div",{style:r.normalizeStyle({height:`${w.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",bM,[r.createVNode(Zo),r.createVNode(xr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(C.$slots,"loading-text",{},()=>[r.createElementVNode("span",yM,r.toDisplayString(r.unref(H)("table.loading")),1)],!0)]),r.createVNode(Zo)])],4)],512)):(r.openBlock(),r.createBlock(r.unref(Is),{key:2,clone:r.unref(ef.clone),handle:Object.keys(n.expandedState??{}).length>0?".dnd-handler-disabled":".dnd-handler","model-value":r.unref(p).getRowModel().rows,move:D||C.onVuedraggableMove,"item-key":"id",tag:"tbody",onDragend:T[0]||(T[0]=Z=>l.value=!1),onDragstart:T[1]||(T[1]=Z=>l.value=!0),"onUpdate:modelValue":_,onVnodeMounted:x},{item:r.withCtx(({element:Z})=>[C.$slots["table-row"]?r.renderSlot(C.$slots,"table-row",r.normalizeProps(r.mergeProps({key:0},Z)),void 0,!0):(r.openBlock(),r.createElementBlock("tr",{key:1,class:r.normalizeClass([[{"bg-fm-color-neutral-gray-100":Z.getIsSelected(),"cursor-pointer":typeof C.onRowClick=="function","dnd-handler":(typeof C.draggable=="function"?C.draggable(Z.original,Z.index):C.draggable)&&C.wholeRowDraggable,"border-b border-fm-color-neutral-gray-100":Z.subRows.length===0&&Z.depth===0?!0:Z.depth===0?!Z.getIsExpanded():Z.index+1===Z.getParentRow().subRows.length},C.rowClassName],"hover:bg-fm-color-opacity-sm"]),onClick:ie=>{var fe;return(fe=C.onRowClick)==null?void 0:fe.call(C,Z)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(S(Z),ie=>{var fe,he,Oe,st,Xe,nt;return r.openBlock(),r.createElementBlock("td",{key:ie.id,colspan:E(ie,Z),class:r.normalizeClass([v.value?"hidden":"","h-[48px] text-fm-color-typo-primary",((fe=ie.column.columnDef.meta)==null?void 0:fe.cellClass)??"px-16"]),style:r.normalizeStyle({width:(he=ie.column.columnDef.meta)!=null&&he.width?(Oe=ie.column.columnDef.meta)==null?void 0:Oe.width:ie.column.getSize()!==0?`${ie.column.getSize()}px`:void 0,maxWidth:(st=ie.column.columnDef.meta)==null?void 0:st.maxWidth,textAlign:((Xe=ie.column.columnDef.meta)==null?void 0:Xe.textAlign)??"left"})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((nt=ie.column.columnDef.meta)==null?void 0:nt.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(ja),{props:ie.getContext(),render:ie.column.columnDef.cell},null,8,["props","render"])],2)],14,kM)}),128))],10,vM))]),_:3},8,["clone","handle","model-value","move"])),C.pinHeaderRow&&!C.hideHeaderRow?(r.openBlock(),r.createBlock(jl,{key:3,table:r.unref(p),class:r.normalizeClass(["bg-fm-color-neutral-gray-100 top-0",{sticky:!l.value}]),"onUpdate:columnWidths":F},null,8,["table","class"])):r.createCommentVNode("",!0)]))],64))],512),C.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxWidth:R.value?`${R.value}px`:void 0}),class:"basis-72 bg-white flex items-center justify-between px-24"},[V.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"hidden invisible":C.forceMobileFooter},"flex gap-24 items-center justify-between xs:hidden xs:invisible"])},[r.createElementVNode("div",AM,[r.createElementVNode("span",EM,r.toDisplayString(r.unref(H)("table.itemsPerPage")),1),r.createVNode(Sb,{items:B.value,"model-value":r.unref(p).getState().pagination.pageSize,"onUpdate:modelValue":T[2]||(T[2]=Z=>r.unref(p).setPageSize(Z))},null,8,["items","model-value"])]),r.createElementVNode("span",{class:r.normalizeClass([{"hidden invisible":C.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible"])},r.toDisplayString(r.unref(H)("table.itemCount",{start:n.rowData.length<r.unref(p).getState().pagination.pageSize?n.rowData.length:r.unref(p).getState().pagination.pageIndex*r.unref(p).getState().pagination.pageSize+1,end:(r.unref(p).getState().pagination.pageIndex+1)*r.unref(p).getState().pagination.pageSize,total:n.rowCount??n.rowData.length})),3)],2)),r.createElementVNode("div",{class:r.normalizeClass(["flex gap-8 items-center",{"w-full justify-between":V.value||C.forceMobileFooter,"xs:w-full xs:justify-between":!V.value}])},[r.createVNode(Sb,{items:Array.from(Array(r.unref(p).getPageCount()),(Z,ie)=>ie+1).map(Z=>({label:Z.toString(),value:Z})),"model-value":r.unref(p).getState().pagination.pageIndex+1,"onUpdate:modelValue":T[3]||(T[3]=Z=>r.unref(p).setPageIndex(Z?Z-1:0))},null,8,["items","model-value"]),r.createElementVNode("span",{class:r.normalizeClass([{"mr-auto":V.value||C.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto"])},r.toDisplayString(r.unref(H)("table.pageCount",{total:r.unref(p).getPageCount()})),3),r.createElementVNode("div",DM,[r.createVNode(me,{disabled:!r.unref(p).getCanPreviousPage(),icon:"chevron_left","icon-color":"neutral-black",variant:"tertiary",onClick:T[4]||(T[4]=()=>r.unref(p).previousPage())},null,8,["disabled"]),r.createVNode(me,{disabled:!r.unref(p).getCanNextPage(),icon:"chevron_right","icon-color":"neutral-black",variant:"tertiary",onClick:T[5]||(T[5]=()=>r.unref(p).nextPage())},null,8,["disabled"])])],2)],4))],512)}}}),[["__scopeId","data-v-e7cc726e"]]),PM={class:"fm-customize-fields"},IM={class:"fm-customize-fields__header"},OM={class:"fm-typo-en-title-md-600 text-fm-color-typo-primary"},NM={key:0,class:"fm-customize-fields__search"},RM={class:"fm-customize-fields__actions"},VM={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},FM={class:"fm-customize-fields__list-container"},TM={class:"fm-customize-fields__item"},MM={class:"fm-customize-fields__item-left"},LM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary fm-customize-fields__item-label"},zM={key:0,class:"fm-customize-fields__empty"},_M={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},HM=De(r.defineComponent({__name:"FmCustomizeFields",props:{modelValue:{},title:{},searchPlaceholder:{},showCloseButton:{type:Boolean,default:!0},searchable:{type:Boolean,default:!0},showToggleAllButton:{type:Boolean,default:!0},hideAllText:{},showAllText:{},shownLabel:{}},emits:["update:modelValue","close"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),a=r.ref(!1),s=v=>[...v].sort((w,x)=>w.position-x.position),l=r.ref(s(n.modelValue));r.watch(()=>n.modelValue,v=>{l.value=s(v)},{deep:!0});const c=r.computed(()=>{if(!i.value)return l.value;const v=i.value.toLowerCase();return l.value.filter(w=>w.label.toLowerCase().includes(v))}),u=v=>{const w=l.value.findIndex(I=>I.id===v);if(w===-1)return;const x=l.value[w];x.canHide!==!1&&(l.value[w]={...x,visible:!x.visible},b())},h=()=>{l.value=l.value.map(v=>({...v,visible:v.canHide===!1?v.visible:!1})),b()},p=()=>{l.value=l.value.map(v=>({...v,visible:!0})),b()},m=()=>{a.value=!1,b()},b=()=>{const v=l.value.map((w,x)=>({...w,position:x}));o("update:modelValue",v)},y=r.computed(()=>l.value.filter(w=>w.canHide!==!1).every(w=>!w.visible));return(v,w)=>(r.openBlock(),r.createElementBlock("div",PM,[r.createElementVNode("div",IM,[r.createElementVNode("span",OM,r.toDisplayString(v.title??r.unref(H)("customizeFields.title")),1),v.showCloseButton?(r.openBlock(),r.createBlock(ce,{key:0,name:"close",size:"md",class:"fm-customize-fields__close-btn",onClick:w[0]||(w[0]=x=>v.$emit("close"))})):r.createCommentVNode("",!0)]),v.searchable?(r.openBlock(),r.createElementBlock("div",NM,[r.createVNode(Tl,{modelValue:i.value,"onUpdate:modelValue":w[1]||(w[1]=x=>i.value=x),placeholder:v.searchPlaceholder??r.unref(H)("customizeFields.searchPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])):r.createCommentVNode("",!0),r.createElementVNode("div",RM,[r.createElementVNode("span",VM,r.toDisplayString(v.shownLabel??r.unref(H)("customizeFields.shown")),1),v.showToggleAllButton&&!y.value?(r.openBlock(),r.createElementBlock("button",{key:0,class:"fm-customize-fields__hide-all-btn",onClick:h},r.toDisplayString(v.hideAllText??r.unref(H)("customizeFields.hideAll")),1)):r.createCommentVNode("",!0),v.showToggleAllButton&&y.value?(r.openBlock(),r.createElementBlock("button",{key:1,class:"fm-customize-fields__hide-all-btn",onClick:p},r.toDisplayString(v.showAllText??r.unref(H)("customizeFields.showAll")),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",FM,[r.createVNode(r.unref(Is),{modelValue:l.value,"onUpdate:modelValue":w[2]||(w[2]=x=>l.value=x),"item-key":x=>x.id,handle:".fm-customize-fields__drag-handle",class:"fm-customize-fields__list","ghost-class":"fm-customize-fields__item--ghost",onStart:w[3]||(w[3]=x=>a.value=!0),onEnd:m},{item:r.withCtx(({element:x})=>[r.withDirectives(r.createElementVNode("div",TM,[r.createElementVNode("div",MM,[r.createVNode(ce,{name:"drag_indicator",size:"md",class:"fm-customize-fields__drag-handle",color:"#8E8E93"}),x.icon?(r.openBlock(),r.createBlock(ce,{key:0,name:x.icon,size:"md",class:"fm-customize-fields__item-icon",color:"#636366"},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",LM,r.toDisplayString(x.label),1)]),r.createVNode(Dl,{"model-value":x.visible,disabled:x.canHide===!1,"onUpdate:modelValue":I=>u(x.id)},null,8,["model-value","disabled","onUpdate:modelValue"])],512),[[r.vShow,!i.value||x.label.toLowerCase().includes(i.value.toLowerCase())]])]),_:1},8,["modelValue","item-key"]),c.value.length===0&&i.value?(r.openBlock(),r.createElementBlock("div",zM,[r.createElementVNode("span",_M,r.toDisplayString(r.unref(H)("customizeFields.noFieldsFound")),1)])):r.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-28662a9d"]]),UM=r.createElementVNode("span",{class:"fm-typo-en-body-lg-400 text-fm-color-typo-secondary"}," More ",-1),WM=r.defineComponent({__name:"FmTabs",props:{modelValue:{default:null},items:{},vertical:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},showMoreAt:{default:6}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),a=r.computed(()=>({vertical:n.vertical,disabled:n.disabled})),s=r.computed(()=>{const u=n.items.slice(0,n.showMoreAt-1),h=n.items.find(m=>{var b;return m.value===n.modelValue||((b=m.children)==null?void 0:b.find(y=>y.value===n.modelValue))}),p=u.map(m=>m.value);return h&&p.includes(h.value)?n.items.slice(0,n.showMoreAt):h?[...u,h]:u}),l=r.computed(()=>{const u=s.value.map(h=>h.value);return n.items.filter(h=>!u.includes(h.value))}),c=u=>{i.value=!1,o("update:modelValue",u)};return(u,h)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["flex",u.vertical?"flex-col":"flex-row items-center"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>r.renderSlot(u.$slots,"default",r.mergeProps({ref_for:!0},{...p,tabsProps:a.value}),()=>[r.createVNode(sb,r.mergeProps({"model-value":n.modelValue,ref_for:!0},{children:p.children,label:p.label,icon:p.icon,disabled:p.disabled,badge:p.badge,value:p.value,tabsProps:a.value},{disabled:p.disabled===void 0?u.disabled:p.disabled,vertical:u.vertical,"onUpdate:modelValue":h[0]||(h[0]=m=>o("update:modelValue",m))}),null,16,["model-value","disabled","vertical"])])),256)),l.value.length>0?(r.openBlock(),r.createBlock(io,{key:0,"show-menu":i.value,class:r.normalizeClass(["max-w-[360px] min-w-[90px] rounded-sm",{"w-full":u.vertical}]),placement:u.vertical?"right-start":"bottom-start",onMenuChanged:h[1]||(h[1]=p=>i.value=p)},{"menu-button":r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["flex gap-8 hover:bg-fm-color-opacity-sm items-center px-16 rounded-sm",[u.vertical?"h-40":"h-[46px]"]])},[r.createVNode(ce,{name:"more_vert"}),UM],2)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,p=>{var m;return r.openBlock(),r.createElementBlock(r.Fragment,{key:p.value},[(m=p.children)!=null&&m.length?(r.openBlock(),r.createBlock(io,{key:0,placement:"right-start"},{"menu-button":r.withCtx(()=>[r.createVNode(xt,{"model-value":n.modelValue===p.value,label:p.label,icon:p.icon,disabled:p.disabled,expandable:""},{append:r.withCtx(()=>[p.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:p.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled"])]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,b=>(r.openBlock(),r.createBlock(xt,{key:b.value,"model-value":n.modelValue===b.value,label:b.label,icon:b.icon,disabled:b.disabled,onClick:y=>c(b.value)},{append:r.withCtx(()=>[b.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:b.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled","onClick"]))),128))]),_:2},1024)):(r.openBlock(),r.createBlock(xt,{key:1,"model-value":n.modelValue===p.value,label:p.label,icon:p.icon,disabled:p.disabled,onClick:b=>c(p.value)},{append:r.withCtx(()=>[p.badge?(r.openBlock(),r.createBlock(Yo,{key:0,value:p.badge,inline:"",variant:"numeric"},null,8,["value"])):r.createCommentVNode("",!0)]),_:2},1032,["model-value","label","icon","disabled","onClick"]))],64)}),128))]),_:1},8,["show-menu","class","placement"])):r.createCommentVNode("",!0)],2))}}),jM=["tabindex"],GM=r.defineComponent({__name:"FmCollapsibleTab",props:{modelValue:{default:void 0},label:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1},badge:{},value:{default:void 0},children:{default:()=>[]},indentation:{default:1},active:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},focusable:{type:Boolean,default:void 0},action:{}},setup(t){const e=t,n=Pe(e,"modelValue"),o=r.computed(()=>e.children.length>0),i=r.ref(!e.expand||e.disabled),a=r.computed(()=>{if(!o.value)return 0;function m(y){return y.children?[y,...y.children.flatMap(m)]:[y]}return 56*(e.children?e.children.flatMap(m):[]).length});function s(){if(!e.disabled){if(o.value){i.value=!i.value;return}n.value=e.value,e.action&&e.action()}}const l=r.computed(()=>typeof e.focusable=="boolean"?e.focusable:!e.disabled&&(!i.value||!o.value));function c(m){return m.children&&m.children.length?m.children.some(c):e.modelValue===m.value}const u=r.computed(()=>{const m=c(e);return o.value?m&&i.value:m}),h=r.computed(()=>e.children?e.children.map(({modelValue:m,indentation:b,active:y,focusable:v,...w})=>{const x=c(w);return{...w,expand:x,focusable:!w.disabled&&!i.value}}):[]),p=r.computed(()=>{switch(e.indentation){case 1:return 8;case 2:return 16;case 3:return 24;default:return 32}});return(m,b)=>{const y=r.resolveComponent("FmCollapsibleTab",!0),v=r.resolveDirective("wave");return r.openBlock(),r.createElementBlock("div",{style:r.normalizeStyle({paddingLeft:`${p.value}px`}),class:"flex flex-col px-8"},[r.withDirectives((r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["flex fm-corner-radius-md gap-4 items-center px-16 py-8 focus-visible:outline-none",{"cursor-pointer focus-visible:bg-fm-color-opacity-md hover:bg-fm-color-opacity-sm ":!m.disabled,"cursor-not-allowed":m.disabled,"bg-fm-color-system-warning-100":u.value}]),tabindex:l.value?"0":"-1",type:"button",onClick:s},[m.icon?(r.openBlock(),r.createBlock(ce,{key:0,class:r.normalizeClass({"text-fm-color-typo-disabled":m.disabled,"text-fm-color-typo-primary":!m.disabled&&!u.value,"text-fm-color-primary":!m.disabled&&u.value}),name:m.icon},null,8,["class","name"])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["py-4 fm-typo-en-body-lg-400 text-left line-clamp-2",{"text-fm-color-typo-secondary":!m.disabled&&!u.value,"text-fm-color-primary":!m.disabled&&u.value,"text-fm-color-typo-disabled":m.disabled}])},r.toDisplayString(m.label),3),m.badge!==void 0&&m.badge!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[typeof m.badge=="number"?(r.openBlock(),r.createBlock(Yo,{key:0,value:m.badge,inline:"",variant:"numeric"},null,8,["value"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.badge),{key:1}))],64)):r.createCommentVNode("",!0),o.value?(r.openBlock(),r.createElementBlock("div",{key:2,style:r.normalizeStyle({transformOrigin:"center",transform:`rotate(${i.value?"0":"180"}deg)`,transition:"transform ease-out 250ms"}),class:"flex h-24 items-center ml-auto w-24"},[r.createVNode(ce,{class:r.normalizeClass({"text-fm-color-neutral-gray-300":!m.disabled,"text-fm-color-typo-disabled":m.disabled}),name:"expand_more",size:"md"},null,8,["class"])],4)):r.createCommentVNode("",!0)],10,jM)),[[v,!m.disabled]]),o.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxHeight:i.value?0:`${a.value}px`,transition:"max-height 250ms",transitionTimingFunction:i.value?"ease-out":"ease-in"}),class:"flex flex-col overflow-hidden"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,(w,x)=>(r.openBlock(),r.createBlock(y,r.mergeProps({key:x,"model-value":r.unref(n),"onUpdate:modelValue":b[0]||(b[0]=I=>r.isRef(n)?n.value=I:null),indentation:m.indentation+1,ref_for:!0},w),null,16,["model-value","indentation"]))),128))],4)):r.createCommentVNode("",!0)],4)}}}),QM={class:"h-full flex flex-col overflow-auto"},XM=r.defineComponent({__name:"FmCollapsibleTabs",props:{modelValue:{default:void 0},items:{default:()=>[]}},setup(t){const e=t,n=Pe(e,"modelValue"),o=r.computed(()=>e.items?e.items.map(({modelValue:a,...s})=>s):[]);function i(a){function s(c){return c.children?c.children.flatMap(s):[c.value]}return(a.children?a.children.flatMap(s):[a.value]).includes(e.modelValue)}return(a,s)=>(r.openBlock(),r.createElementBlock("div",QM,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(l,c)=>(r.openBlock(),r.createBlock(GM,r.mergeProps({key:c,"model-value":r.unref(n),"onUpdate:modelValue":s[0]||(s[0]=u=>r.isRef(n)?n.value=u:null),active:i(l),expand:i(l),ref_for:!0},l),null,16,["model-value","active","expand"]))),128))]))}}),qM=r.defineComponent({__name:"FmAvatar",props:{initials:{default:()=>""},name:{default:()=>""},src:{default:void 0},size:{default:()=>"md"},rounded:{default:()=>"xxxl"}},setup(t){const e=t,n=r.computed(()=>{if(e.initials)return e.initials.slice(0,2);if(e.name){const[o,i]=e.name.split(" ");return i?`${o[0]}${i[0]}`:o.slice(0,2)}return e.src?"":"?"});return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center justify-center uppercase",{"w-24 h-24 fm-typo-en-body-sm-600":o.size==="sm","w-9 h-9 fm-typo-en-body-sm-600":o.size==="sm2","w-40 h-40 fm-typo-en-body-md-600":o.size==="md","w-48 h-48 fm-typo-en-body-lg-600":o.size==="lg","w-56 h-56 fm-typo-en-body-lg-600":o.size==="xl","bg-fm-color-neutral-gray-100":!e.src},{"rounded-xxxl":o.rounded==="xxxl","rounded-xxl":o.rounded==="xxl","rounded-xl":o.rounded==="xl","rounded-lg":o.rounded==="lg","rounded-md":o.rounded==="md","rounded-sm":o.rounded==="sm"}]),style:r.normalizeStyle({background:e.src?`url(${e.src})`:void 0,backgroundSize:e.src?"cover":void 0,backgroundPosition:e.src?"center":void 0,backgroundRepeat:e.src?"no-repeat":void 0})},r.toDisplayString(n.value),7))}}),KM=r.defineComponent({__name:"FmThumbnail",props:{src:{default:void 0},icon:{default:t=>t.src?"":"image"},size:{default:()=>"md"}},setup(t){const e=t;return(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center justify-center fm-corner-radius-md border-1 border-fm-color-neutral-gray-300",{"w-24 h-24 fm-typo-en-body-sm-600":n.size==="sm","w-40 h-40 fm-typo-en-body-md-600":n.size==="md","w-56 h-56 fm-typo-en-body-lg-600":n.size==="lg","w-72 h-72 fm-typo-en-body-lg-600":n.size==="xl","text-fm-color-neutral-gray-300 bg-fm-color-neutral-gray-100":!e.src}]),style:r.normalizeStyle({background:e.src?`url(${e.src})`:void 0,backgroundSize:e.src?"cover":void 0,backgroundPosition:e.src?"center":void 0,backgroundRepeat:e.src?"no-repeat":void 0})},[n.icon?(r.openBlock(),r.createBlock(ce,{key:0,name:n.icon},null,8,["name"])):r.createCommentVNode("",!0)],6))}}),JM={class:"bg-white flex fm-corner-radius-md gap-4 items-center px-24 py-16"},YM={class:"flex gap-4 items-center xs:hidden"},ZM={key:1,class:"hidden xs:flex"},$M=r.defineComponent({__name:"FmPageHead",props:{title:{default:()=>""},description:{default:()=>""},backButton:{type:Boolean,default:()=>!1},actions:{default:()=>[]},zIndexForBottomSheet:{default:void 0},titleBold:{type:Boolean,default:()=>!0},primaryActionXsBottomMargin:{}},emits:["click:back","click:action"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const s=[...n.actions],l=s.findIndex(m=>m.isPrimary),c=s[l],[u,h,...p]=s.filter((m,b)=>b!==l);return{primaryAction:c,firstSecondaryAction:u,secondSecondaryAction:h,showMoreSecondary:p,bottomSheetActions:s.filter(m=>!m.isPrimary),fabActions:s.filter(m=>m.isPrimary)}}),a=r.ref(!1);return(s,l)=>(r.openBlock(),r.createElementBlock("div",JM,[s.backButton?(r.openBlock(),r.createBlock(me,{key:0,icon:"arrow_back","icon-color":"black",size:"md",type:"button",variant:"tertiary",onClick:l[0]||(l[0]=c=>o("click:back"))})):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"prepend"),r.createVNode(sf,{description:s.description,title:s.title,"title-bold":s.titleBold,class:"flex-grow"},{title:r.withCtx(()=>[r.renderSlot(s.$slots,"title")]),description:r.withCtx(()=>[r.renderSlot(s.$slots,"description")]),_:3},8,["description","title","title-bold"]),r.createElementVNode("div",YM,[i.value.firstSecondaryAction?(r.openBlock(),r.createBlock(me,{key:0,"append-icon":i.value.firstSecondaryAction.appendIcon,"bg-color":i.value.firstSecondaryAction.bgColor,"border-color":i.value.firstSecondaryAction.borderColor,"icon-color":i.value.firstSecondaryAction.iconColor,label:i.value.firstSecondaryAction.label,"prepend-icon":i.value.firstSecondaryAction.prependIcon,"text-color":i.value.firstSecondaryAction.fontColor,variant:i.value.firstSecondaryAction.variant??"tertiary",size:"md",type:"button",onClick:l[1]||(l[1]=c=>o("click:action",i.value.firstSecondaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0),i.value.secondSecondaryAction?(r.openBlock(),r.createBlock(me,{key:1,"append-icon":i.value.secondSecondaryAction.appendIcon,"bg-color":i.value.secondSecondaryAction.bgColor,"border-color":i.value.secondSecondaryAction.borderColor,"icon-color":i.value.secondSecondaryAction.iconColor,label:i.value.secondSecondaryAction.label,"prepend-icon":i.value.secondSecondaryAction.prependIcon,"text-color":i.value.secondSecondaryAction.fontColor,variant:i.value.firstSecondaryAction.variant??"tertiary",size:"md",type:"button",onClick:l[2]||(l[2]=c=>o("click:action",i.value.secondSecondaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0),i.value.showMoreSecondary.length>1?(r.openBlock(),r.createBlock(io,{key:2},{"menu-button":r.withCtx(()=>[r.createVNode(me,{"append-icon":"expand_more","icon-color":"black",label:r.unref(H)("actions.more"),size:"md",type:"button",variant:"tertiary"},null,8,["label"])]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.showMoreSecondary,c=>(r.openBlock(),r.createBlock(xt,{key:c.value,icon:c.prependIcon,label:c.label,onClick:u=>o("click:action",c.value)},null,8,["icon","label","onClick"]))),128))]),_:1})):i.value.showMoreSecondary.length===1?(r.openBlock(),r.createBlock(me,{key:3,"append-icon":i.value.showMoreSecondary[0].appendIcon,label:i.value.showMoreSecondary[0].label,"prepend-icon":i.value.showMoreSecondary[0].prependIcon,size:"md",type:"button",variant:"tertiary",onClick:l[3]||(l[3]=c=>o("click:action",i.value.showMoreSecondary[0].value))},null,8,["append-icon","label","prepend-icon"])):r.createCommentVNode("",!0),i.value.primaryAction?(r.openBlock(),r.createBlock(me,{key:4,"append-icon":i.value.primaryAction.appendIcon,"bg-color":i.value.primaryAction.bgColor,"border-color":i.value.primaryAction.borderColor,"icon-color":i.value.primaryAction.iconColor,label:i.value.primaryAction.label,"prepend-icon":i.value.primaryAction.prependIcon,"text-color":i.value.primaryAction.fontColor,variant:i.value.primaryAction.variant??"primary",size:"md",type:"button",onClick:l[4]||(l[4]=c=>o("click:action",i.value.primaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0)]),i.value.bottomSheetActions.length>0?(r.openBlock(),r.createElementBlock("div",ZM,[r.createVNode(me,{icon:"more_vert","icon-color":"black",size:"md",type:"button",variant:"tertiary",onClick:l[5]||(l[5]=c=>a.value=!0)})])):r.createCommentVNode("",!0),r.renderSlot(s.$slots,"append"),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Uc,{"model-value":a.value,"onUpdate:modelValue":l[6]||(l[6]=c=>a.value=c),"z-index":n.zIndexForBottomSheet,"dismiss-away":""},{default:r.withCtx(()=>[r.createVNode(rf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.bottomSheetActions,c=>(r.openBlock(),r.createBlock(af,{key:c.value,label:c.label,class:"hover:bg-fm-color-neutral-gray-100",onClick:u=>{o("click:action",c.value),a.value=!1}},null,8,["label","onClick"]))),128))]),_:1})]),_:1},8,["model-value","z-index"]),r.createElementVNode("div",{class:r.normalizeClass(["fixed hidden right-16 xs:inline",{"bottom-[68px]":!n.primaryActionXsBottomMargin}]),style:r.normalizeStyle({bottom:n.primaryActionXsBottomMargin})},[i.value.primaryAction?(r.openBlock(),r.createBlock(me,{key:0,"append-icon":i.value.primaryAction.appendIcon,"bg-color":i.value.primaryAction.bgColor,"border-color":i.value.primaryAction.borderColor,"icon-color":i.value.primaryAction.iconColor,label:i.value.primaryAction.label,"prepend-icon":i.value.primaryAction.prependIcon,"text-color":i.value.primaryAction.fontColor,variant:i.value.primaryAction.variant??"fab",class:"fm-shadow-light-100",size:"md",type:"button",onClick:l[7]||(l[7]=c=>o("click:action",i.value.primaryAction.value))},null,8,["append-icon","bg-color","border-color","icon-color","label","prepend-icon","text-color","variant"])):r.createCommentVNode("",!0)],6)]))]))}}),eL={class:"fm-typo-en-title-md-600"},tL={class:"flex"},nL=De(r.defineComponent({__name:"FmScorecard",props:{title:{},value:{default:0},compareValue:{default:void 0},description:{},hideCompare:{type:Boolean,default:!1},hideLineChart:{type:Boolean,default:!1},sparklineData:{default:void 0}},setup(t){const e=t,n=(s,l)=>{if(s===""||l==="")return null;const c=Number(s),u=Number(l);let h=0;u===0?c===0?h=0:h=1:h=(c-u)/u;const p=o(h);return{value:isNaN(h)?"":`${(h*100).toFixed(0)}%`,icon:p}};function o(s){return s>0?{name:"moving",color:"#1F7735",tailwind:"fm-color-system-success-100"}:s<0?{name:"trending_down",color:"#99231D",tailwind:"fm-color-system-error-100"}:{name:"equal",color:"#C7C7CC",tailwind:"fm-color-neutral-gray-100"}}const i=r.computed(()=>{const{value:s,compareValue:l}=e;return l?n(s,l):null}),a=r.computed(()=>{var s;return((s=e.sparklineData)==null?void 0:s.datasets.map(l=>{var c;return{label:l.name,data:l.values,fill:!0,color:((c=i.value)==null?void 0:c.icon.color)??"fm-color-system-info-300"}}))??[]});return(s,l)=>(r.openBlock(),r.createBlock(Wc,{class:"flex flex-col gap-2 p-5",variant:"outlined"},{default:r.withCtx(()=>[r.createVNode(Fc,{content:e.description},{default:r.withCtx(()=>[r.renderSlot(s.$slots,"title",{},()=>[r.createElementVNode("p",{class:r.normalizeClass([e.description?"border-b-2 border-dotted":"","fm-typo-body-md-400 w-full truncate"])},r.toDisplayString(e.title),3)],!0)]),_:3},8,["content"]),r.createElementVNode("p",eL,r.toDisplayString(e.value),1),s.hideCompare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",tL,[i.value?(r.openBlock(),r.createBlock(_c,{key:0,class:r.normalizeClass(`bg-${i.value.icon.tailwind}`),compact:""},{default:r.withCtx(()=>[r.createVNode(ce,{color:i.value.icon.color,name:i.value.icon.name},null,8,["color","name"]),r.createElementVNode("p",{style:r.normalizeStyle({color:i.value.icon.color}),class:"fm-typo-body-md-700"},r.toDisplayString(i.value.value),5)]),_:1},8,["class"])):r.createCommentVNode("",!0)]),r.renderSlot(s.$slots,"compare",{},void 0,!0)],64)),e.sparklineData?(r.openBlock(),r.createBlock(Wc,{key:1},{default:r.withCtx(()=>[r.createVNode(p1,{datasets:a.value,"hide-x-axis":!0,"hide-y-axis":!0,legend:{display:!1},"x-axis":{categories:e.sparklineData.dimension},class:"sparkline"},null,8,["datasets","x-axis"])]),_:1})):r.createCommentVNode("",!0)]),_:3}))}}),[["__scopeId","data-v-c66db589"]]);var Xa=(t=>(t.Premium="premium",t.Beta="beta",t.Paid="paid",t))(Xa||{});const oL=r.defineComponent({__name:"FmPill",props:{variant:{default:Xa.Beta},label:{}},setup(t){const e=t,n=r.computed(()=>({[Xa.Beta]:{containerClass:"border border-fm-color-system-error-400 bg-fm-color-system-error-100 ",label:"BETA",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-error"},[Xa.Premium]:{containerClass:"h-[18px] fm-pill-premium-gradient",label:"Premium",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-white"},[Xa.Paid]:{containerClass:"border border-fm-color-system-info-400 bg-fm-color-system-info-100 ",icon:"lock",label:"Paid feature",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-info"}})[e.variant]);return(o,i)=>{const a=r.resolveComponent("FmIcon");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["inline-flex items-center fm-corner-radius-md px-4 gap-4",n.value.containerClass])},[n.value.icon?(r.openBlock(),r.createBlock(a,{key:0,size:"sm",outline:"",name:n.value.icon,class:r.normalizeClass(n.value.labelClass)},null,8,["name","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass(n.value.labelClass)},r.toDisplayString(e.label||n.value.label),3)],2)}}}),rL=De(oL,[["__scopeId","data-v-cdca68a7"]]),td=16,iL=r.defineComponent({__name:"FmSnackbarToast",setup(t){const{breakpoints:e}=Jo(),n=r.inject(kc),o=r.computed(()=>{var u;const s={currentSum:td,tops:new Array},l=Object.values(on).reduce((h,p)=>({...h,[p]:{...s}}),{});return[...((u=n==null?void 0:n.store)==null?void 0:u.snackbars)??[]].reduce((h,p)=>{const m=e.value.xs?on.TOP:p.position??on.TOP_RIGHT,{currentSum:b,tops:y}=h[m];y.push({id:p.id,accumulatedHeight:b});const v=p.mountStage===bt.EXPIRED?0:td+p.renderedHeight;return h[m]={currentSum:b+v,tops:y},h},l)}),i=r.computed(()=>{var s,l;return(l=(s=n==null?void 0:n.store)==null?void 0:s.snackbars)==null?void 0:l.map(c=>{var p,m,b,y,v,w;let u=0;const h=e.value.xs?on.TOP:c.position??on.TOP_RIGHT;switch(c.mountStage){case bt.PREMOUNT:{u=e.value.xs?0:td;break}case bt.MOUNTED:{u=((b=(m=(p=o.value[h].tops)==null?void 0:p.find)==null?void 0:m.call(p,x=>x.id===c.id))==null?void 0:b.accumulatedHeight)||td;break}case bt.EXPIRED:{u=((w=(v=(y=o.value[h].tops)==null?void 0:y.find)==null?void 0:v.call(y,x=>x.id===c.id))==null?void 0:w.accumulatedHeight)||0,u=Math.max(0,u-c.renderedHeight);break}}return{...c,top:u}})}),a=(s,l,c)=>{if(e.value.xs)return{bottom:`${s}px`,width:"calc(100vw - 32px)",right:"16px",opacity:l===bt.EXPIRED?0:1};if(c===on.TOP)return{top:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===on.TOP_LEFT)return{top:`${s}px`,opacity:l===bt.EXPIRED?0:1,left:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.TOP_RIGHT)return{top:`${s}px`,opacity:l===bt.EXPIRED?0:1,right:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.BOTTOM)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===on.BOTTOM_LEFT)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,left:l===bt.PREMOUNT?"-20px":"16px"};if(c===on.BOTTOM_RIGHT)return{bottom:l===bt.PREMOUNT?"-20px":`${s}px`,opacity:l===bt.EXPIRED?0:1,right:l===bt.PREMOUNT?"-20px":"16px"}};return(s,l)=>(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,c=>(r.openBlock(),r.createBlock(r.Teleport,{key:c.id,to:"body"},[r.createVNode(ab,{action:c.action,description:c.message,dismissable:c.dismissable,spinner:c.spinner,style:r.normalizeStyle(a(c.top,c.mountStage,c.position??r.unref(on).TOP_RIGHT)),title:c.title,variant:c.type,"z-index":c.zIndex,class:"fixed transition-all z-10",onVnodeMounted:u=>{var h;return(h=r.unref(n))==null?void 0:h.onSnackbarMounted(c.id,u.el.scrollHeight,c.persistent)},onOnAction:()=>{var u,h;(u=c==null?void 0:c.onAction)==null||u.call(c),(h=r.unref(n))==null||h.close(c.id)},onOnDismiss:()=>{var u;return(u=r.unref(n))==null?void 0:u.close(c.id)}},null,8,["action","description","dismissable","spinner","style","title","variant","z-index","onVnodeMounted","onOnAction","onOnDismiss"])]))),128))}});var on=(t=>(t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t))(on||{}),bt=(t=>(t.PREMOUNT="PREMOUNT",t.MOUNTED="MOUNTED",t.EXPIRED="EXPIRED",t))(bt||{});class fy{constructor(){ae(this,"store",r.reactive({snackbars:new Array}))}open(e,n){const o=Math.random().toString(16).slice(2),i=[{...e,id:o,mountStage:"PREMOUNT",duration:n===null?null:n??5e3,renderedHeight:0,type:(e==null?void 0:e.type)??"info",dismissable:typeof(e==null?void 0:e.dismissable)=="boolean"?e.dismissable:!0,position:(e==null?void 0:e.position)??"top-right"},...this.store.snackbars];return this.store.snackbars=i,o}onSnackbarMounted(e,n,o){const i=this.store.snackbars.findIndex(s=>s.id===e);if(i===-1)return;const a=this.store.snackbars[i];this.store.snackbars[i]={...a,renderedHeight:n},setTimeout(()=>{const s=this.store.snackbars[i];this.store.snackbars[i]={...s,mountStage:"MOUNTED"}}),!o&&typeof a.duration=="number"&&setTimeout(()=>{this.close(e)},a.duration)}close(e){const n=this.store.snackbars.findIndex(i=>i.id===e);if(n===-1)return;const o=this.store.snackbars[n];this.store.snackbars[n]={...o,mountStage:"EXPIRED"},setTimeout(()=>{this.removeSnackbar(e)},500)}removeSnackbar(e){const n=this.store.snackbars.findIndex(o=>o.id===e);n!==-1&&this.store.snackbars.splice(n,1)}updateSnackbar(e,n){const o=this.store.snackbars.findIndex(a=>a.id===e);if(o===-1)return;const i=this.store.snackbars[o];this.store.snackbars[o]={...i,...n}}}const py={install(t){t.provide(kc,new fy);const e=document.body,n=r.createVNode(iL);n.appContext=t._context,r.render(n,e)}},hy={FmAdvancedSort:Om,FmBadge:Yo,FmBottomSheet:Uc,FmBreadcrumb:BS,FmButton:me,FmButtonGroup:OS,FmCard:Wc,FmCardActionArea:NS,FmCardActions:VS,FmCardHeader:TS,FmCardMedia:LS,FmCardSection:jc,FmCardSubtitle:Fm,FmCardTitle:Vm,FmChip:_c,FmChipGroup:Hc,FmDialog:_S,FmDropField:WS,FmDynamicDialog:Mm,FmLineChart:p1,FmPieChart:V9,FmBarChart:_9,FmScorecard:nL,FmCheckbox:xm,FmDatePicker:h6,FmDatePickerMobile:g1,FmDateRangePicker:k5,FmDateRangePickerMobile:k1,FmSimpleDatePicker:G5,FmSimpleDatePickerMobile:S1,FmSimpleDateRangePicker:xE,FmSimpleDateRangePickerMobile:x1,FmField:at,FmForm:Im,FmFormGroup:Nt,FmErrorSummary:DE,FmHelperText:om,FmLabel:hn,FmPhoneNumber:H7,FmPinField:j7,FmRadio:Y7,FmRadioGroup:Z7,FmSearch:Tl,FmGlobalSearch:AB,FmSelect:yo,FmStepperField:IB,FmSwitch:Dl,FmTextField:Dr,FmTextarea:NB,FmTimeInput:Ll,FmTimePicker:jB,FmTimeRangePicker:YB,FmIcon:ce,FmList:rf,FmListItem:af,FmMenu:io,FmMenuDeprecated:nP,FmMenuDivider:b1,FmMenuHeader:rP,FmMenuItem:xt,FmCircularProgress:xr,FmLinearProgress:dP,FmSideSheet:hP,FmSnackbar:ab,FmSpacer:Zo,FmStep:SP,FmStepper:AP,FmTab:sb,FmTable:BM,FmCustomizeFields:HM,FmTableToolbar:TP,FmTableHeader:jl,FmTabs:WM,FmCollapsibleTabs:XM,FmTooltip:Fc,FmAvatar:qM,FmThumbnail:KM,FmPageHead:$M,FmTopSheet:nb,FmPopover:Bo,FmOverlay:fi,FmPill:rL},aL=r.defineComponent({__name:"FmTooltipDirective",props:{reference:{},placement:{default:"top"},content:{default:""},disabled:{type:Boolean,default:!1},hideArrow:{type:Boolean,default:!1},zIndex:{}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),i=r.ref(null),a=r.computed(()=>e.reference());let s;const{floatingStyles:l,middlewareData:c,placement:u}=ci(a,o,{whileElementsMounted:ai,placement:e.placement,middleware:[li(),si({mainAxis:6}),bm({element:i})]}),h=r.computed(()=>{var y,v,w,x;const b={top:"bottom",right:"left",bottom:"top",left:"right"}[u.value];return{left:((y=c.value.arrow)==null?void 0:y.x)!=null?`${(v=c.value.arrow)==null?void 0:v.x}px`:"",top:((w=c.value.arrow)==null?void 0:w.y)!=null?`${(x=c.value.arrow)==null?void 0:x.y}px`:"",[b]:"-3px"}}),p=()=>{e.disabled||(s&&clearTimeout(s),s=setTimeout(()=>{n.value=!0},250))},m=()=>{e.disabled||(s&&clearTimeout(s),s=setTimeout(()=>{n.value=!1},250))};return r.onMounted(()=>{a.value.addEventListener("pointerdown",p),a.value.addEventListener("pointermove",b=>{b.pointerType!=="touch"&&p()}),a.value.addEventListener("pointerleave",m),a.value.addEventListener("pointerup",m)}),r.onBeforeUnmount(()=>{a.value.removeEventListener("pointerdown",p),a.value.removeEventListener("pointermove",b=>{b.pointerType!=="touch"&&p()}),a.value.removeEventListener("pointerleave",m),a.value.removeEventListener("pointerup",m)}),(b,y)=>n.value&&!b.disabled?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"tooltipContent",ref:o,class:"bg-fm-color-neutral-black fm-shadow-light-300 fm-typo-en-body-sm-400 max-w-[240px] px-16 py-12 rounded-lg text-fm-color-typo-white",style:r.normalizeStyle({...r.unref(l),zIndex:b.zIndex})},[r.withDirectives(r.createElementVNode("div",{ref_key:"arrowEl",ref:i,class:"absolute bg-fm-color-neutral-black h-8 rotate-45 rounded-[2px] w-8",style:r.normalizeStyle(h.value)},null,4),[[r.vShow,!b.hideArrow]]),r.createTextVNode(" "+r.toDisplayString(b.content),1)],4)):r.createCommentVNode("",!0)}});let Mf;const dr=r.ref([]);let my=0;const sL=()=>{if(Mf)return;const t=document.createElement("div");document.body.appendChild(t),Mf=r.createApp({render:()=>dr.value.map(e=>r.h(aL,e))}),Mf.mount(t)},nd=t=>{if(t){for(const e of["top","right","bottom","left"])if(t[e])return e}return"top"},gy=(t,e)=>{const{value:n,modifiers:o}=e;sL(),t.$_fmTooltipId=my,my+=1,typeof n=="string"?dr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:nd(o),hideArrow:!1}):n&&typeof n=="object"&&dr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),placement:nd(o),disabled:n.disabled??!1,hideArrow:n.hideArrow??!1,zIndex:n.zIndex})},lL={mounted:gy,updated:(t,e)=>{const{value:n,modifiers:o}=e,i=dr.value.findIndex(a=>a.id===t.$_fmTooltipId);if(i===-1){gy(t,e);return}typeof n=="string"?dr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:nd(o),hideArrow:!1}:n&&typeof n=="object"&&(dr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),disabled:n.disabled??!1,placement:nd(o),hideArrow:n.hideArrow??!1})},beforeUnmount:t=>{const e=dr.value.findIndex(n=>n.id===t.$_fmTooltipId);e!==-1&&dr.value.splice(e,1)}};function dL(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let od;function Lf(){Lf.init||(Lf.init=!0,od=dL()!==-1)}var rd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Lf(),r.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",od&&this.$el.appendChild(t),t.data="about:blank",od||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!od&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const cL=r.withScopeId("data-v-b329ee4c");r.pushScopeId("data-v-b329ee4c");const uL={class:"resize-observer",tabindex:"-1"};r.popScopeId();const fL=cL((t,e,n,o,i,a)=>(r.openBlock(),r.createBlock("div",uL)));rd.render=fL,rd.__scopeId="data-v-b329ee4c",rd.__file="src/components/ResizeObserver.vue";function id(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?id=function(e){return typeof e}:id=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(t)}function pL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hL(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function mL(t,e,n){return e&&hL(t.prototype,e),t}function by(t){return gL(t)||bL(t)||yL(t)||vL()}function gL(t){if(Array.isArray(t))return zf(t)}function bL(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function yL(t,e){if(t){if(typeof t=="string")return zf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zf(t,e)}}function zf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function vL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
130
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kL(t){var e;return typeof t=="function"?e={callback:t}:e=t,e}function wL(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a,s=function(c){for(var u=arguments.length,h=new Array(u>1?u-1:0),p=1;p<u;p++)h[p-1]=arguments[p];if(a=h,!(o&&c===i)){var m=n.leading;typeof m=="function"&&(m=m(c,i)),(!o||c!==i)&&m&&t.apply(void 0,[c].concat(by(a))),i=c,clearTimeout(o),o=setTimeout(function(){t.apply(void 0,[c].concat(by(a))),o=0},e)}};return s._clear=function(){clearTimeout(o),o=null},s}function yy(t,e){if(t===e)return!0;if(id(t)==="object"){for(var n in t)if(!yy(t[n],e[n]))return!1;return!0}return!1}var SL=function(){function t(e,n,o){pL(this,t),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return mL(t,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=kL(n),this.callback=function(l,c){i.options.callback(l,c),l&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var a=this.options.throttleOptions||{},s=a.leading;this.callback=wL(this.callback,this.options.throttle,{leading:function(c){return s==="both"||s==="visible"&&c||s==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var c=l[0];if(l.length>1){var u=l.find(function(p){return p.isIntersecting});u&&(c=u)}if(i.callback){var h=c.isIntersecting&&c.intersectionRatio>=i.threshold;if(h===i.oldResult)return;i.oldResult=h,i.callback(h,c)}},this.options.intersection),r.nextTick(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function vy(t,e,n){var o=e.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new SL(t,o,n);t._vue_visibilityState=i}}function xL(t,e,n){var o=e.value,i=e.oldValue;if(!yy(o,i)){var a=t._vue_visibilityState;if(!o){ky(t);return}a?a.createObserver(o,n):vy(t,{value:o},n)}}function ky(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var CL={beforeMount:vy,updated:xL,unmounted:ky};function AL(t){return{all:t=t||new Map,on:function(e,n){var o=t.get(e);o&&o.push(n)||t.set(e,[n])},off:function(e,n){var o=t.get(e);o&&o.splice(o.indexOf(n)>>>0,1)},emit:function(e,n){(t.get(e)||[]).slice().map(function(o){o(n)}),(t.get("*")||[]).slice().map(function(o){o(e,n)})}}}var wy={itemsLimit:1e3},EL=/(auto|scroll)/;function Sy(t,e){return t.parentNode===null?e:Sy(t.parentNode,e.concat([t]))}var _f=function(e,n){return getComputedStyle(e,null).getPropertyValue(n)},DL=function(e){return _f(e,"overflow")+_f(e,"overflow-y")+_f(e,"overflow-x")},BL=function(e){return EL.test(DL(e))};function xy(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var e=Sy(t.parentNode,[]),n=0;n<e.length;n+=1)if(BL(e[n]))return e[n];return document.scrollingElement||document.documentElement}}function Hf(t){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hf(t)}var Cy={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function Ay(){return this.items.length&&Hf(this.items[0])!=="object"}var Uf=!1;if(typeof window<"u"){Uf=!1;try{var PL=Object.defineProperty({},"passive",{get:function(){Uf=!0}});window.addEventListener("test",null,PL)}catch{}}let IL=0;var qa={name:"RecycleScroller",components:{ResizeObserver:rd},directives:{ObserveVisibility:CL},props:{...Cy,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const t={"-1":{accumulator:0}},e=this.items,n=this.sizeField,o=this.minItemSize;let i=1e4,a=0,s;for(let l=0,c=e.length;l<c;l++)s=e[l][n]||o,s<i&&(i=s),a+=s,t[l]={accumulator:a,size:s};return this.$_computedMinItemSize=i,t}return[]},simpleArray:Ay,itemIndexByKey(){const{keyField:t,items:e}=this,n={};for(let o=0,i=e.length;o<i;o++)n[e[o][t]]=o;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,e,n,o,i){const a=r.markRaw({id:IL++,index:e,used:!0,key:o,type:i}),s=r.shallowReactive({item:n,position:0,nr:a});return t.push(s),s},unuseView(t,e=!1){const n=this.$_unusedViews,o=t.nr.type;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(t),e||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(t,e){this.ready&&(t||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,e=!1){const n=this.itemSize,o=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,s=this.typeField,l=this.simpleArray?null:this.keyField,c=this.items,u=c.length,h=this.sizes,p=this.$_views,m=this.$_unusedViews,b=this.pool,y=this.itemIndexByKey;let v,w,x,I,R;if(!u)v=w=I=R=x=0;else if(this.$_prerender)v=I=0,w=R=Math.min(this.prerender,c.length),x=null;else{const G=this.getScroll();if(e){let E=G.start-this.$_lastUpdateScrollPosition;if(E<0&&(E=-E),n===null&&E<a||E<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=G.start;const Q=this.buffer;G.start-=Q,G.end+=Q;let F=0;if(this.$refs.before&&(F=this.$refs.before.scrollHeight,G.start-=F),this.$refs.after){const E=this.$refs.after.scrollHeight;G.end+=E}if(n===null){let E,S=0,D=u-1,C=~~(u/2),T;do T=C,E=h[C].accumulator,E<G.start?S=C:C<u-1&&h[C+1].accumulator>G.start&&(D=C),C=~~((S+D)/2);while(C!==T);for(C<0&&(C=0),v=C,x=h[u-1].accumulator,w=C;w<u&&h[w].accumulator<G.end;w++);for(w===-1?w=c.length-1:(w++,w>u&&(w=u)),I=v;I<u&&F+h[I].accumulator<G.start;I++);for(R=I;R<u&&F+h[R].accumulator<G.end;R++);}else{v=~~(G.start/n*o);const E=v%o;v-=E,w=Math.ceil(G.end/n*o),I=Math.max(0,Math.floor((G.start-F)/n*o)),R=Math.floor((G.end-F)/n*o),v<0&&(v=0),w>u&&(w=u),I<0&&(I=0),R>u&&(R=u),x=Math.ceil(u/o)*n}}w-v>wy.itemsLimit&&this.itemsLimitError(),this.totalSize=x;let V;const B=v<=this.$_endIndex&&w>=this.$_startIndex;if(B)for(let G=0,Q=b.length;G<Q;G++)V=b[G],V.nr.used&&(t&&(V.nr.index=y[V.item[l]]),(V.nr.index==null||V.nr.index<v||V.nr.index>=w)&&this.unuseView(V));const L=B?null:new Map;let P,_,U;for(let G=v;G<w;G++){P=c[G];const Q=l?P[l]:P;if(Q==null)throw new Error(`Key is ${Q} on item (keyField is '${l}')`);if(V=p.get(Q),!n&&!h[G].size){V&&this.unuseView(V);continue}_=P[s];let F=m.get(_),E=!1;if(!V)B?F&&F.length?V=F.pop():V=this.addView(b,G,P,Q,_):(U=L.get(_)||0,(!F||U>=F.length)&&(V=this.addView(b,G,P,Q,_),this.unuseView(V,!0),F=m.get(_)),V=F[U],L.set(_,U+1)),p.delete(V.nr.key),V.nr.used=!0,V.nr.index=G,V.nr.key=Q,V.nr.type=_,p.set(Q,V),E=!0;else if(!V.nr.used&&(V.nr.used=!0,E=!0,F)){const S=F.indexOf(V);S!==-1&&F.splice(S,1)}V.item=P,E&&(G===c.length-1&&this.$emit("scroll-end"),G===0&&this.$emit("scroll-start")),n===null?(V.position=h[G-1].accumulator,V.offset=0):(V.position=Math.floor(G/o)*n,V.offset=G%o*i)}return this.$_startIndex=v,this.$_endIndex=w,this.emitUpdate&&this.$emit("update",v,w,I,R),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let t=xy(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:e}=this,n=e==="vertical";let o;if(this.pageMode){const i=t.getBoundingClientRect(),a=n?i.height:i.width;let s=-(n?i.top:i.left),l=n?window.innerHeight:window.innerWidth;s<0&&(l+=s,s=0),s+l>a&&(l=a-s),o={start:s,end:s+l}}else n?o={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:o={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Uf?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let e;const n=this.gridItems||1;this.itemSize===null?e=t>0?this.sizes[t-1].accumulator:0:e=Math.floor(t/n)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(t){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,o,i;if(this.pageMode){const a=xy(this.$el),s=a.tagName==="HTML"?0:a[e.scroll],l=a.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[e.start]-l[e.start];n=a,o=e.scroll,i=t+s+u}else n=this.$el,o=e.scroll,i=t;n[o]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,e)=>t.nr.index-e.nr.index)}}};const OL={key:0,ref:"before",class:"vue-recycle-scroller__slot"},NL={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function RL(t,e,n,o,i,a){const s=r.resolveComponent("ResizeObserver"),l=r.resolveDirective("observe-visibility");return r.withDirectives((r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:e[0]||(e[0]=(...c)=>a.handleScroll&&a.handleScroll(...c))},[t.$slots.before?(r.openBlock(),r.createElementBlock("div",OL,[r.renderSlot(t.$slots,"before")],512)):r.createCommentVNode("v-if",!0),(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.listTag),{ref:"wrapper",style:r.normalizeStyle({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:r.normalizeClass(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.pool,c=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.itemTag),r.mergeProps({key:c.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${c.position}px) translate${t.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${t.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${t.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===c.nr.key}]]},r.toHandlers(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=c.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),r.renderSlot(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(r.openBlock(),r.createElementBlock("div",NL,[r.renderSlot(t.$slots,"after")],512)):r.createCommentVNode("v-if",!0),r.createVNode(s,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[l,a.handleVisibilityChange]])}qa.render=RL,qa.__file="src/components/RecycleScroller.vue";var ad={name:"DynamicScroller",components:{RecycleScroller:qa},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(t=>{requestAnimationFrame(()=>{if(Array.isArray(t)){for(const e of t)if(e.target&&e.target.$_vs_onResize){let n,o;if(e.borderBoxSize){const i=e.borderBoxSize[0];n=i.inlineSize,o=i.blockSize}else n=e.contentRect.width,o=e.contentRect.height;e.target.$_vs_onResize(e.target.$_vs_id,n,o)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Cy,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ay,itemsWithSize(){const t=[],{items:e,keyField:n,simpleArray:o}=this,i=this.vscrollData.sizes,a=e.length;for(let s=0;s<a;s++){const l=e[s],c=o?s:l[n];let u=i[c];typeof u>"u"&&!this.$_undefinedMap[c]&&(u=0),t.push({item:l,id:c,size:u})}return t}},watch:{items(){this.forceUpdate()},simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},direction(t){this.forceUpdate(!0)},itemsWithSize(t,e){const n=this.$el.scrollTop;let o=0,i=0;const a=Math.min(t.length,e.length);for(let l=0;l<a&&!(o>=n);l++)o+=e[l].size||this.minItemSize,i+=t[l].size||this.minItemSize;const s=i-o;s!==0&&(this.$el.scrollTop+=s)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=AL()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(t=!1){(t||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(t){const e=this.$refs.scroller;e&&e.scrollToItem(t)},getItemSize(t,e=void 0){const n=this.simpleArray?e??this.items.indexOf(t):t[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const t=this.$el;this.$nextTick(()=>{t.scrollTop=t.scrollHeight+5e3;const e=()=>{t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(e)})};requestAnimationFrame(e)})}}};function VL(t,e,n,o,i,a){const s=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(s,r.mergeProps({ref:"scroller",items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:t.direction,"key-field":"id","list-tag":t.listTag,"item-tag":t.itemTag},t.$attrs,{onResize:a.onScrollerResize,onVisible:a.onScrollerVisible}),{default:r.withCtx(({item:l,index:c,active:u})=>[r.renderSlot(t.$slots,"default",r.normalizeProps(r.guardReactiveProps({item:l.item,index:c,active:u,itemWithSize:l})))]),before:r.withCtx(()=>[r.renderSlot(t.$slots,"before")]),after:r.withCtx(()=>[r.renderSlot(t.$slots,"after")]),empty:r.withCtx(()=>[r.renderSlot(t.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}ad.render=VL,ad.__file="src/components/DynamicScroller.vue";var Wf={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(t,e){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[e],o=this.vscrollData.sizes[t];n!=null&&n!==o&&this.applySize(n)}},finalActive(t){this.size||(t?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?t?this.observeSize():this.unobserveSize():t&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const t in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[t],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:t}){!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||t||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(t){this.$nextTick(()=>{if(this.id===t){const e=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(e,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(t,e){const n=~~(this.vscrollParent.direction==="vertical"?e:t);n&&this.size!==n&&this.applySize(n)},applySize(t){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=t,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(t,e,n){this.id===t&&this.applyWidthHeight(e,n)}},render(){return r.h(this.tag,this.$slots.default())}};Wf.__file="src/components/DynamicScrollerItem.vue";function FL(t,e){t.component("".concat(e,"recycle-scroller"),qa),t.component("".concat(e,"RecycleScroller"),qa),t.component("".concat(e,"dynamic-scroller"),ad),t.component("".concat(e,"DynamicScroller"),ad),t.component("".concat(e,"dynamic-scroller-item"),Wf),t.component("".concat(e,"DynamicScrollerItem"),Wf)}var TL={version:"2.0.0-beta.8",install:function(e,n){var o=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var i in o)typeof o[i]<"u"&&(wy[i]=o[i]);o.installComponents&&FL(e,o.componentsPrefix)}},ML={exports:{}};(function(t,e){(function(n,o){t.exports=o(Lc)})(mn,function(n){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=o(n),a={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(s){return s+"."}};return i.default.locale(a,null,!0),a})})(ML);var LL={exports:{}};(function(t,e){(function(n,o){t.exports=o(Lc)})(mn,function(n){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=o(n),a={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"週":s+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})})(LL);var zL={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(mn,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var o=["th","st","nd","rd"],i=n%100;return"["+n+(o[(i-20)%10]||o[i]||o[0])+"]"}}})})(zL);const _L={name:"@feedmepos/ui-library",version:"1.10.3",type:"module",files:["dist"],repository:{type:"git",url:"git+https://github.com/feedmepos/ui-library.git"},bugs:"https://feedmepos.atlassian.net/browse/CT-3",homepage:"ui.feedme.ai",main:"./dist/feedmepos-ui-library.umd.cjs",module:"./dist/feedmepos-ui-library.js",exports:{".":{types:"./dist/index.d.ts",import:"./dist/feedmepos-ui-library.js",require:"./dist/feedmepos-ui-library.umd.cjs"},"./meta":{types:"./dist/meta.d.ts"},"./tailwind-plugin":"./dist/tailwind-plugin.js","./tailwind-styling":"./dist/tailwind-styling.js","./styles.css":"./dist/style.css"},scripts:{dev:"vite --port 5273",preview:"vite preview","build:lib":"pnpm run build-components && pnpm run build-types && pnpm run build-federation && pnpm run build-tailwind-plugin && pnpm run build-tailwind-styling && tsc-alias --project tsconfig.app.json --outDir dist && mv ./dist/src/* ./dist",build:"vite build","build-lib":"vite build --mode library","build-tailwind-plugin":"vite build --mode tailwind-plugin","build-tailwind-styling":"vite build --mode tailwind-styling","build-federation":"vite build --mode federation && cp -r ./temp/assets ./dist/federation && rm -rf ./temp","build-components":'run-p type-check "build-lib {@}" --',"build-types":"vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false","copy-changelog":"cp ./CHANGELOG.md ./dist/CHANGELOG.md","type-check":"vue-tsc --noEmit -p tsconfig.app.json --composite false",lint:"eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",deploy:"pnpm run build:lib && pnpm publish --no-git-checks .","register-components":"node ./scripts/register-components.js && pnpm lint","generate-component-meta":"node ./scripts/generate-component-meta.js","build:pack":"pnpm build:lib && cd ./dist/ && pnpm pack --pack-destination ../../"},dependencies:{"@floating-ui/vue":"^1.0.6","@rollup/plugin-commonjs":"^26.0.1","@tanstack/vue-table":"^8.13.2","@tanstack/vue-virtual":"^3.13.0","@types/lodash":"^4.17.7","@vueuse/core":"^10.9.0","chart.js":"^4.4.2","chartjs-plugin-datalabels":"^2.2.0",dayjs:"^1.11.10",debounce:"^2.0.0",fuzzy:"^0.1.3","libphonenumber-js":"^1.10.57",lodash:"^4.17.21",prettier:"^3.2.5",uuid:"^10.0.0","v-wave":"^1.5.1",vue:"^3.4.21","vue-country-flag-next":"^2.3.2","vue-router":"^4.3.0","vue-virtual-scroller":"2.0.0-beta.8",vuedraggable:"^4.1.0"},devDependencies:{"@originjs/vite-plugin-federation":"^1.3.5","@rushstack/eslint-patch":"^1.7.2","@tsconfig/node18":"^18.2.2","@types/chart.js":"^2.9.41","@types/debounce":"^1.2.4","@types/node":"^18.19.21","@types/uuid":"^10.0.0","@vitejs/plugin-vue":"^5.0.4","@vitejs/plugin-vue-jsx":"^3.1.0","@vue/eslint-config-typescript":"^12.0.0","@vue/tsconfig":"^0.4.0",autoprefixer:"^10.4.17",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-plugin-unused-imports":"^4.3.0","eslint-plugin-vue":"^9.22.0","npm-run-all2":"^6.1.2",postcss:"^8.4.35",sass:"^1.71.1",tailwindcss:"^3.4.1","tsc-alias":"^1.8.8",typescript:"~5.2.2",vite:"^5.1.4","vite-plugin-static-copy":"^0.17.1","vite-plugin-top-level-await":"^1.4.1","vue-component-meta":"^2.0.13","vue-tsc":"^1.8.27"},peerDependencies:{tailwindcss:"^3.4.1",vite:"^5.1.4",vue:"^3.4.21"}};globalThis.__FM_UI_VERSION__=_L.version;const HL={"en-US":"en","zh-CN":"zh-cn","zh-Hant":"zh-tw","th-TH":"th"},UL=(t,e)=>{if(t.use(uk,{duration:.3,color:"var(--fm-color-opacity-sm)",initialOpacity:1,finalOpacity:.1,dissolveDuration:.6}),t.directive("tooltip",lL),t.use(XS),t.use(py),t.use(TL),Object.entries(hy).forEach(([n,o])=>{t.component(n,o)}),e!=null&&e.locale){wm(e.locale);const n=HL[e.locale]||"en";W.locale(n)}};ze.FeedMeUI=UL,ze.FmAdvancedSort=Om,ze.FmButtonColorThemeVariant=Gt,ze.FmButtonVariant=_n,ze.Locale=km,ze.SnackbarMountStage=bt,ze.SnackbarPlugin=py,ze.SnackbarPosition=on,ze.SnackbarService=fy,ze.components=hy,ze.setLocale=wm,ze.useBreakpoints=Jo,ze.useDialog=Bm,ze.useDialogChild=Pm,ze.useFocus=la,ze.useFormChild=nm,ze.useProxiedModel=Pe,ze.useSnackbar=Rw,ze.useValidation=tm,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});