@feedmepos/ui-library 1.10.7 → 1.10.8

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 WC{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=dg.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 Eo=new WC;const zg="transparent",jC={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const o=mg(t||zg),i=o.valid&&mg(e||zg);return i&&i.valid?i.mix(o,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class GC{constructor(e,n,o,i){const a=n[o];i=at([e.to,i,a,e.from]);const s=at([e.from,a,i]);this._active=!0,this._fn=e.fn||jC[e.type||typeof s],this._easing=Pa[e.easing]||Pa.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=at([e.to,n,i,e.from]),this._from=at([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 _g{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!_e(e))return;const n=Object.keys(pt.animation),o=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const a=e[i];if(!_e(a))return;const s={};for(const l of n)s[l]=a[l];(ot(a.properties)&&a.properties||[i]).forEach(l=>{(l===i||!o.has(l))&&o.set(l,s)})})}_animateOptions(e,n){const o=n.options,i=XC(e,o);if(!i)return[];const a=this._createAnimations(i,o);return o.$shared&&QC(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 GC(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 Eo.add(this._chart,o),!0}}function QC(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 XC(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 Hg(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 qC(t,e,n){if(n===!1)return!1;const o=Hg(t,n),i=Hg(e,n);return{top:i.end,right:o.end,bottom:i.start,left:o.start}}function KC(t){let e,n,o,i;return _e(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 Ug(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 Wg(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],yt(u)&&(a||e===0||co(e)===co(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 jg(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function YC(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function ZC(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 $C(t,e,n){const o=t[e]||(t[e]={});return o[n]||(o[n]={})}function Gg(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 Qg(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=YC(a,s,o),p=e.length;let m;for(let b=0;b<p;++b){const y=e[b],{[c]:v,[u]:k}=y,x=y._stacks||(y._stacks={});m=x[u]=$C(i,h,v),m[l]=k,m._top=Gg(m,s,!0,o.type),m._bottom=Gg(m,s,!1,o.type);const C=m._visualValues||(m._visualValues={});C[l]=k}}function yu(t,e){const n=t.scales;return Object.keys(n).filter(o=>n[o].axis===e).shift()}function eA(t,e){return cr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function tA(t,e,n){return cr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function Va(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 vu=t=>t==="reset"||t==="none",Xg=(t,e)=>e?t:Object.assign({},t),nA=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ug(n,!0),values:null};class qn{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=jg(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&&Va(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=Oe(o.xAxisID,yu(e,"x")),s=n.yAxisID=Oe(o.yAxisID,yu(e,"y")),l=n.rAxisID=Oe(o.rAxisID,yu(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&&sg(this._data,this),e._stacked&&Va(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(_e(n)){const i=this._cachedMeta;this._data=JC(n,i)}else if(o!==n){if(o){sg(o,this);const i=this._cachedMeta;Va(i),i._parsed=[]}n&&Object.isExtensible(n)&&HS(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=jg(n.vScale,n),n.stack!==o.stack&&(i=!0,Va(n),n.stack=o.stack),this._resyncElements(e),(i||a!==n._stacked)&&Qg(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{ot(i[e])?m=this.parseArrayData(o,i,e,n):_e(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&&Qg(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(sr(b,l),m),y:s.parse(sr(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:Ug(i,!0),values:n._stacks[e.axis]._visualValues};return Wg(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=Wg(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=nA(n,o,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:p}=ZC(l);let m,b;function y(){b=i[m];const v=b[l.axis];return!yt(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],yt(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=KC(Oe(this.options.clip,qC(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=tA(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=eA(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&&Ea(o);if(l)return Xg(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(pt.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(Xg(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 _g(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||vu(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){vu(i)?Object.assign(e,o):this._resolveAnimations(n,i).update(e,o)}updateSharedOptions(e,n,o){e&&!vu(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&&Va(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])}}ce(qn,"defaults",{}),ce(qn,"datasetElementType",null),ce(qn,"dataElementType",null);function oA(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=lg(o.sort((i,a)=>i-a))}return t._cache.$bar}function rA(t){const e=t.iScale,n=oA(e,t.type);let o=e._length,i,a,s,l;const c=()=>{s===32767||s===-32768||(Ea(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 iA(t,e,n,o){const i=n.barThickness;let a,s;return ze(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 aA(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 sA(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 qg(t,e,n,o){return ot(t)?sA(t,e,n,o):e[n.axis]=n.parse(t,o),e}function Kg(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(qg(m,p,a,u));return c}function ku(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function lA(t,e,n){return t!==0?co(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function dA(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 cA(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}=dA(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=uA(t,e,n),t=Yg(t,n,e)):t=Yg(t,e,n),t}function uA(t,e,n){return t===e?n:t===n?e:t}function Yg(t,e,n){return t==="start"?e:t==="end"?n:t}function fA(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class cl extends qn{parsePrimitiveData(e,n,o,i){return Kg(e,n,o,i)}parseArrayData(e,n,o,i){return Kg(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(sr(v,u),m),p.push(qg(sr(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=ku(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||ze(y[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(b),k=this._calculateBarIndexPixels(b,h),x=(y._stacks||{})[l.axis],C={horizontal:u,base:v.base,enableBorderRadius:!x||ku(y._custom)||s===x._top||s===x._bottom,x:u?v.head:k.center,y:u?k.center:v.head,height:u?k.size:Math.abs(v.size),width:u?Math.abs(v.size):k.size};m&&(C.options=p||this.resolveDataElementOptions(b,e[b].active?"active":i));const B=C.options||e[b].options;cA(C,B,x,s),fA(C,B,h.ratio),this.updateElement(e[b],b,C,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(ze(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||rA(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=ku(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&&co(p)!==co(u.barEnd)&&(m=0),m+=p);const k=!ze(a)&&!h?a:m;let x=n.getPixelForValue(k);if(this.chart.getDataVisibility(e)?y=n.getPixelForValue(m+b):y=x,v=y-x,Math.abs(v)<s){v=lA(v,n,l)*s,p===l&&(x-=v/2);const C=n.getPixelForDecimal(0),B=n.getPixelForDecimal(1),O=Math.min(C,B),A=Math.max(C,B);x=Math.max(Math.min(x,A),O),y=x+v,o&&!h&&(c._stacks[n.axis]._visualValues[i]=n.getValueForPixel(y)-n.getValueForPixel(x))}if(x===n.getPixelForValue(l)){const C=co(v)*n.getLineWidthForValue(l)/2;x+=C,v-=C}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=Oe(i.maxBarThickness,1/0);let l,c;if(n.grouped){const u=a?this._getStackCount(e):n.stackCount,h=i.barThickness==="flex"?aA(e,n,i,u):iA(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)}}ce(cl,"id","bar"),ce(cl,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ce(cl,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class ul extends qn{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=Oe(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=Oe(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={},k=v[h]=a?s.getPixelForDecimal(.5):s.getPixelForValue(y[h]),x=v[p]=a?l.getBasePixel():l.getPixelForValue(y[p]);v.skip=isNaN(k)||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+=Oe(o&&o._custom,a),i}}ce(ul,"id","bubble"),ce(ul,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ce(ul,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function pA(t,e,n){let o=1,i=1,a=0,s=0;if(e<it){const l=t,c=l+e,u=Math.cos(l),h=Math.sin(l),p=Math.cos(c),m=Math.sin(c),b=(B,O,A)=>Ba(B,l,c,!0)?1:Math.max(O,O*n,A,A*n),y=(B,O,A)=>Ba(B,l,c,!0)?-1:Math.min(O,O*n,A,A*n),v=b(0,u,p),k=b(kt,h,m),x=y(rt,u,p),C=y(rt+kt,h,m);o=(v-x)/2,i=(k-C)/2,a=-(v+x)/2,s=-(k+C)/2}return{ratioX:o,ratioY:i,offsetX:a,offsetY:s}}class Xr extends qn{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(_e(o[e])){const{key:c="value"}=this._parsing;a=u=>+sr(o[u],c)}let s,l;for(s=e,l=e+n;s<l;++s)i._parsed[s]=a(s)}}_getRotation(){return Xn(this.options.rotation-90)}_getCircumference(){return Xn(this.options.circumference)}_getRotationExtents(){let e=it,n=-it;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(DS(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:h,rotation:p}=this._getRotationExtents(),{ratioX:m,ratioY:b,offsetX:y,offsetY:v}=pA(p,h,c),k=(o.width-s)/m,x=(o.height-s)/b,C=Math.max(Math.min(k,x)/2,0),B=Ym(this.options.radius,C),O=Math.max(B*c,0),A=(B-O)/this._getVisibleDatasetWeightTotal();this.offsetX=y*B,this.offsetY=v*B,i.total=this.calculateTotal(),this.outerRadius=B-A*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-A*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/it)}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:k}=this._getSharedOptions(n,i);let x=this._getRotation(),C;for(C=0;C<n;++C)x+=this._circumference(C,a);for(C=n;C<n+o;++C){const B=this._circumference(C,a),O=e[C],A={x:h+this.offsetX,y:p+this.offsetY,startAngle:x,endAngle:x+B,circumference:B,outerRadius:y,innerRadius:b};k&&(A.options=v||this.resolveDataElementOptions(C,O.active?"active":i)),x+=B,this.updateElement(O,C,A,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)?it*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,o=this.chart,i=o.data.labels||[],a=Ia(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(Oe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ce(Xr,"id","doughnut"),ce(Xr,"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"}),ce(Xr,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ce(Xr,"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 fl extends qn{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}=ug(n,i,s);this._drawStart=l,this._drawCount=c,fg(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,k=Bi(y)?y:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||a||i==="none",C=n+o,B=e.length;let O=n>0&&this.getParsed(n-1);for(let A=0;A<B;++A){const T=e[A],E=x?T:{};if(A<n||A>=C){E.skip=!0;continue}const L=this.getParsed(A),H=ze(L[b]),j=E[m]=s.getPixelForValue(L[m],A),X=E[b]=a||H?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,L,c):L[b],A);E.skip=isNaN(j)||isNaN(X)||H,E.stop=A>0&&Math.abs(L[m]-O[m])>k,v&&(E.parsed=L,E.raw=u.data[A]),p&&(E.options=h||this.resolveDataElementOptions(A,T.active?"active":i)),x||this.updateElement(T,A,E,i),O=L}}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()}}ce(fl,"id","line"),ce(fl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ce(fl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ra extends qn{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=Ia(n._parsed[e].r,o.options.locale);return{label:i[e]||"",value:a}}parseObjectData(e,n,o,i){return Dg.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*rt;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 k=e[y];let x=b,C=b+this._computeAngle(y,i,v),B=s.getDataVisibility(y)?u.getDistanceFromCenterForValue(this.getParsed(y).r):0;b=C,a&&(c.animateScale&&(B=0),c.animateRotate&&(x=C=m));const O={x:h,y:p,innerRadius:0,outerRadius:B,startAngle:x,endAngle:C,options:this.resolveDataElementOptions(y,k.active?"active":i)};this.updateElement(k,y,O,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)?Xn(this.resolveDataElementOptions(e,n).angle||o):0}}ce(Ra,"id","polarArea"),ce(Ra,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ce(Ra,"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 wu extends Xr{}ce(wu,"id","pie"),ce(wu,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class pl extends qn{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 Dg.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)}}}ce(pl,"id","radar"),ce(pl,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ce(pl,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class hl extends qn{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}=ug(n,o,i);if(this._drawStart=a,this._drawCount=s,fg(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:k}=this.options,x=Bi(v)?v:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||a||i==="none";let B=n>0&&this.getParsed(n-1);for(let O=n;O<n+o;++O){const A=e[O],T=this.getParsed(O),E=C?A:{},L=ze(T[y]),H=E[b]=s.getPixelForValue(T[b],O),j=E[y]=a||L?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,T,c):T[y],O);E.skip=isNaN(H)||isNaN(j)||L,E.stop=O>0&&Math.abs(T[b]-B[b])>x,k&&(E.parsed=T,E.raw=u.data[O]),m&&(E.options=p||this.resolveDataElementOptions(O,A.active?"active":i)),C||this.updateElement(A,O,E,i),B=T}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}}ce(hl,"id","scatter"),ce(hl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ce(hl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var hA=Object.freeze({__proto__:null,BarController:cl,BubbleController:ul,DoughnutController:Xr,LineController:fl,PieController:wu,PolarAreaController:Ra,RadarController:pl,ScatterController:hl});function qr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xu{constructor(e){ce(this,"options");this.options=e||{}}static override(e){Object.assign(xu.prototype,e)}init(){}formats(){return qr()}parse(){return qr()}format(){return qr()}add(){return qr()}diff(){return qr()}startOf(){return qr()}endOf(){return qr()}}var mA={_date:xu};function gA(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?zS:Co;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 Ta(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}=gA(a[l],e,s,i);for(let b=p;b<=m;++b){const y=h[b];y.skip||o(y,u,b)}}}function bA(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 Su(t,e,n,o,i){const a=[];return!i&&!t.isPointInArea(e)||Ta(t,n,e,function(l,c,u){!i&&!Ao(l,t.chartArea,0)||l.inRange(e.x,e.y,o)&&a.push({element:l,datasetIndex:c,index:u})},!0),a}function yA(t,e,n,o){let i=[];function a(s,l,c){const{startAngle:u,endAngle:h}=s.getProps(["startAngle","endAngle"],o),{angle:p}=ig(s,{x:e.x,y:e.y});Ba(p,u,h)&&i.push({element:s,datasetIndex:l,index:c})}return Ta(t,n,e,a),i}function vA(t,e,n,o,i,a){let s=[];const l=bA(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 k=l(e,y);k<c?(s=[{element:h,datasetIndex:p,index:m}],c=k):k===c&&s.push({element:h,datasetIndex:p,index:m})}return Ta(t,n,e,u),s}function Cu(t,e,n,o,i,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!o?yA(t,e,n,i):vA(t,e,n,o,i,a)}function Zg(t,e,n,o,i){const a=[],s=n==="x"?"inXRange":"inYRange";let l=!1;return Ta(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 kA={evaluateInteractionItems:Ta,modes:{index(t,e,n,o){const i=Gr(e,t),a=n.axis||"x",s=n.includeInvisible||!1,l=n.intersect?Su(t,i,a,o,s):Cu(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=Gr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let l=n.intersect?Su(t,i,a,o,s):Cu(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=Gr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return Su(t,i,a,o,s)},nearest(t,e,n,o){const i=Gr(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return Cu(t,i,a,n.intersect,o,s)},x(t,e,n,o){const i=Gr(e,t);return Zg(t,i,"x",n.intersect,o)},y(t,e,n,o){const i=Gr(e,t);return Zg(t,i,"y",n.intersect,o)}}};const $g=["left","top","right","bottom"];function Fa(t,e){return t.filter(n=>n.pos===e)}function e0(t,e){return t.filter(n=>$g.indexOf(n.pos)===-1&&n.box.axis===e)}function Ma(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 wA(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 xA(t){const e={};for(const n of t){const{stack:o,pos:i,stackWeight:a}=n;if(!o||!$g.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 SA(t,e){const n=xA(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 CA(t){const e=wA(t),n=Ma(e.filter(u=>u.box.fullSize),!0),o=Ma(Fa(e,"left"),!0),i=Ma(Fa(e,"right")),a=Ma(Fa(e,"top"),!0),s=Ma(Fa(e,"bottom")),l=e0(e,"x"),c=e0(e,"y");return{fullSize:n,leftAndTop:o.concat(a),rightAndBottom:i.concat(c).concat(s).concat(l),chartArea:Fa(e,"chartArea"),vertical:o.concat(i).concat(c),horizontal:a.concat(s).concat(l)}}function t0(t,e,n,o){return Math.max(t[n],e[n])+Math.max(t[o],e[o])}function n0(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 AA(t,e,n,o){const{pos:i,box:a}=n,s=t.maxPadding;if(!_e(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&&n0(s,a.getPadding());const l=Math.max(0,e.outerWidth-t0(s,t,"left","right")),c=Math.max(0,e.outerHeight-t0(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 EA(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 DA(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 La(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,DA(l.horizontal,e));const{same:p,other:m}=AA(e,n,l,o);u|=p&&i.length,h=h||m,c.fullSize||i.push(l)}return u&&La(i,e,n,o)||h}function ml(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 o0(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;Ea(u.start)&&(s=u.start),c.fullSize?ml(c,i.left,s,n.outerWidth-i.right-i.left,m):ml(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;Ea(u.start)&&(a=u.start),c.fullSize?ml(c,a,i.top,m,n.outerHeight-i.bottom-i.top):ml(c,a,e.top+u.placed,m,p),u.start=a,u.placed+=p,a=c.right}}e.x=a,e.y=s}var jt={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=Mt(t.options.layout.padding),a=Math.max(e-i.width,0),s=Math.max(n-i.height,0),l=CA(t.boxes),c=l.vertical,u=l.horizontal;Je(t.boxes,v=>{typeof v.beforeLayout=="function"&&v.beforeLayout()});const h=c.reduce((v,k)=>k.box.options&&k.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);n0(m,Mt(o));const b=Object.assign({maxPadding:m,w:a,h:s,x:i.left,y:i.top},i),y=SA(c.concat(u),p);La(l.fullSize,b,p,y),La(c,b,p,y),La(u,b,p,y)&&La(c,b,p,y),EA(b),o0(l.leftAndTop,b,p,y),b.x+=b.w,b.y+=b.h,o0(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},Je(l.chartArea,v=>{const k=v.box;Object.assign(k,t.chartArea),k.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class r0{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 BA extends r0{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const gl="$chartjs",PA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},i0=t=>t===null||t==="";function IA(t,e){const n=t.style,o=t.getAttribute("height"),i=t.getAttribute("width");if(t[gl]={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",i0(i)){const a=Ig(t,"width");a!==void 0&&(t.width=a)}if(i0(o))if(t.style.height==="")t.height=t.width/(e||2);else{const a=Ig(t,"height");a!==void 0&&(t.height=a)}return t}const a0=NC?{passive:!0}:!1;function OA(t,e,n){t&&t.addEventListener(e,n,a0)}function NA(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,a0)}function VA(t,e){const n=PA[t.type]||t.type,{x:o,y:i}=Gr(t,e);return{type:n,chart:e,native:t,x:o!==void 0?o:null,y:i!==void 0?i:null}}function bl(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function RA(t,e,n){const o=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const l of a)s=s||bl(l.addedNodes,o),s=s&&!bl(l.removedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function TA(t,e,n){const o=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const l of a)s=s||bl(l.removedNodes,o),s=s&&!bl(l.addedNodes,o);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const za=new Map;let s0=0;function l0(){const t=window.devicePixelRatio;t!==s0&&(s0=t,za.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function FA(t,e){za.size||window.addEventListener("resize",l0),za.set(t,e)}function MA(t){za.delete(t),za.size||window.removeEventListener("resize",l0)}function LA(t,e,n){const o=t.canvas,i=o&&bu(o);if(!i)return;const a=cg((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),FA(t,a),s}function Au(t,e,n){n&&n.disconnect(),e==="resize"&&MA(t)}function zA(t,e,n){const o=t.canvas,i=cg(a=>{t.ctx!==null&&n(VA(a,t))},t);return OA(o,e,i),i}class _A extends r0{acquireContext(e,n){const o=e&&e.getContext&&e.getContext("2d");return o&&o.canvas===e?(IA(e,n),o):null}releaseContext(e){const n=e.canvas;if(!n[gl])return!1;const o=n[gl].initial;["height","width"].forEach(a=>{const s=o[a];ze(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[gl],!0}addEventListener(e,n,o){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),s={attach:RA,detach:TA,resize:LA}[n]||zA;i[n]=s(e,n,o)}removeEventListener(e,n){const o=e.$proxies||(e.$proxies={}),i=o[n];if(!i)return;({attach:Au,detach:Au,resize:Au}[n]||NA)(e,n,i),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,o,i){return OC(e,n,o,i)}isAttached(e){const n=e&&bu(e);return!!(n&&n.isConnected)}}function HA(t){return!gu()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?BA:_A}let Do=(hd=class{constructor(){ce(this,"x");ce(this,"y");ce(this,"active",!1);ce(this,"options");ce(this,"$animations")}tooltipPosition(e){const{x:n,y:o}=this.getProps(["x","y"],e);return{x:n,y:o}}hasValue(){return Bi(this.x)&&Bi(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}},ce(hd,"defaults",{}),ce(hd,"defaultRoutes"),hd);function UA(t,e){const n=t.options.ticks,o=WA(t),i=Math.min(n.maxTicksLimit||o,o),a=n.major.enabled?GA(e):[],s=a.length,l=a[0],c=a[s-1],u=[];if(s>i)return QA(e,u,a,s/i),u;const h=jA(a,e,i);if(s>0){let p,m;const b=s>1?Math.round((c-l)/(s-1)):null;for(yl(e,u,h,ze(b)?0:l-b,l),p=0,m=s-1;p<m;p++)yl(e,u,h,a[p],a[p+1]);return yl(e,u,h,c,ze(b)?e.length:c+b),u}return yl(e,u,h),u}function WA(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 jA(t,e,n){const o=XA(t),i=e.length/n;if(!o)return Math.max(i,1);const a=TS(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 GA(t){const e=[];let n,o;for(n=0,o=t.length;n<o;n++)t[n].major&&e.push(n);return e}function QA(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 yl(t,e,n,o,i){const a=Oe(o,0),s=Math.min(Oe(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 XA(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 qA=t=>t==="left"?"right":t==="right"?"left":t,d0=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,c0=(t,e)=>Math.min(e||t,t);function u0(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 KA(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){Je(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 _a(t){return t.drawTicks?t.tickLength:0}function f0(t,e){if(!t.display)return 0;const n=At(t.font,e),o=Mt(t.padding);return(ot(t.text)?t.text.length:1)*n.lineHeight+o.height}function YA(t,e){return cr(t,{scale:e,type:"scale"})}function ZA(t,e,n){return cr(t,{tick:n,index:e,type:"tick"})}function $A(t,e,n){let o=au(t);return(n&&e!=="right"||!n&&e==="right")&&(o=qA(o)),o}function e8(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,k=l-a;if(t.isHorizontal()){if(b=Wt(o,a,l),_e(n)){const x=Object.keys(n)[0],C=n[x];y=h[x].getPixelForValue(C)+v-e}else n==="center"?y=(u.bottom+u.top)/2+v-e:y=d0(t,n,e);m=l-a}else{if(_e(n)){const x=Object.keys(n)[0],C=n[x];b=h[x].getPixelForValue(C)-k+e}else n==="center"?b=(u.left+u.right)/2-k+e:b=d0(t,n,e);y=Wt(o,s,i),p=n==="left"?-kt:kt}return{titleX:b,titleY:y,maxWidth:m,rotation:p}}class Kr extends Do{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=kn(e,Number.POSITIVE_INFINITY),n=kn(n,Number.NEGATIVE_INFINITY),o=kn(o,Number.POSITIVE_INFINITY),i=kn(i,Number.NEGATIVE_INFINITY),{min:kn(e,o),max:kn(n,i),minDefined:yt(e),maxDefined:yt(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:kn(n,kn(o,n)),max:kn(o,kn(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(){$e(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=dC(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?u0(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=UA(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(){$e(this.options.afterUpdate,[this])}beforeSetDimensions(){$e(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(){$e(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),$e(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$e(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=$e(n.callback,[a.value,o,e],this)}afterTickToLabelConversion(){$e(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$e(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,o=c0(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=Ot(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-_a(e.grid)-n.padding-f0(e.title,this.chart.options.font),u=Math.sqrt(p*p+m*m),s=ou(Math.min(Math.asin(Ot((h.highest.height+6)/l,-1,1)),Math.asin(Ot(c/u,-1,1))-Math.asin(Ot(m/u,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){$e(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$e(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=f0(i,n.options.font);if(l?(e.width=this.maxWidth,e.height=_a(a)+c):(e.height=this.maxHeight,e.width=_a(a)+c),o.display&&this.ticks.length){const{first:u,last:h,widest:p,highest:m}=this._getLabelSizes(),b=o.padding*2,y=Xn(this.labelRotation),v=Math.cos(y),k=Math.sin(y);if(l){const x=o.mirror?0:k*p.width+v*m.height;e.height=Math.min(this.maxHeight,e.height+x+b)}else{const x=o.mirror?0:v*p.width+k*m.height;e.width=Math.min(this.maxWidth,e.width+x+b)}this._calculatePadding(u,h,k,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(){$e(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++)ze(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=u0(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/c0(n,o));let u=0,h=0,p,m,b,y,v,k,x,C,B,O,A;for(p=0;p<n;p+=c){if(y=e[p].label,v=this._resolveTickFontOptions(p),i.font=k=v.string,x=a[k]=a[k]||{data:{},gc:[]},C=v.lineHeight,B=O=0,!ze(y)&&!ot(y))B=ol(i,x.data,x.gc,B,y),O=C;else if(ot(y))for(m=0,b=y.length;m<b;++m)A=y[m],!ze(A)&&!ot(A)&&(B=ol(i,x.data,x.gc,B,A),O+=C);s.push(B),l.push(O),u=Math.max(B,u),h=Math.max(O,h)}JA(a,n);const T=s.indexOf(u),E=l.indexOf(h),L=H=>({width:s[H]||0,height:l[H]||0});return{first:L(0),last:L(n-1),widest:L(T),highest:L(E),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 LS(this._alignToPixels?Hr(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=ZA(this.getContext(),e,o))}return this.$context||(this.$context=YA(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Xn(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=_a(a),b=[],y=l.setContext(this.getContext()),v=y.display?y.width:0,k=v/2,x=function(M){return Hr(o,M,v)};let C,B,O,A,T,E,L,H,j,X,I,F;if(s==="top")C=x(this.bottom),E=this.bottom-m,H=C-k,X=x(e.top)+k,F=e.bottom;else if(s==="bottom")C=x(this.top),X=e.top,F=x(e.bottom)-k,E=C+k,H=this.top+m;else if(s==="left")C=x(this.right),T=this.right-m,L=C-k,j=x(e.left)+k,I=e.right;else if(s==="right")C=x(this.left),j=e.left,I=x(e.right)-k,T=C+k,L=this.left+m;else if(n==="x"){if(s==="center")C=x((e.top+e.bottom)/2+.5);else if(_e(s)){const M=Object.keys(s)[0],V=s[M];C=x(this.chart.scales[M].getPixelForValue(V))}X=e.top,F=e.bottom,E=C+k,H=E+m}else if(n==="y"){if(s==="center")C=x((e.left+e.right)/2);else if(_e(s)){const M=Object.keys(s)[0],V=s[M];C=x(this.chart.scales[M].getPixelForValue(V))}T=C-k,L=T-m,j=e.left,I=e.right}const N=Oe(i.ticks.maxTicksLimit,p),R=Math.max(1,Math.ceil(p/N));for(B=0;B<p;B+=R){const M=this.getContext(B),V=a.setContext(M),Q=l.setContext(M),ee=V.lineWidth,le=V.color,he=Q.dash||[],ke=Q.dashOffset,W=V.tickWidth,$=V.tickColor,U=V.tickBorderDash||[],J=V.tickBorderDashOffset;O=KA(this,B,c),O!==void 0&&(A=Hr(o,O,ee),u?T=L=j=I=A:E=H=X=F=A,b.push({tx1:T,ty1:E,tx2:L,ty2:H,x1:j,y1:X,x2:I,y2:F,width:ee,color:le,borderDash:he,borderDashOffset:ke,tickWidth:W,tickColor:$,tickBorderDash:U,tickBorderDashOffset:J}))}return this._ticksLength=p,this._borderValue=C,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=_a(o.grid),b=m+h,y=p?-h:b,v=-Xn(this.labelRotation),k=[];let x,C,B,O,A,T,E,L,H,j,X,I,F="middle";if(i==="top")T=this.bottom-y,E=this._getXAxisLabelAlignment();else if(i==="bottom")T=this.top+y,E=this._getXAxisLabelAlignment();else if(i==="left"){const R=this._getYAxisLabelAlignment(m);E=R.textAlign,A=R.x}else if(i==="right"){const R=this._getYAxisLabelAlignment(m);E=R.textAlign,A=R.x}else if(n==="x"){if(i==="center")T=(e.top+e.bottom)/2+b;else if(_e(i)){const R=Object.keys(i)[0],M=i[R];T=this.chart.scales[R].getPixelForValue(M)+b}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")A=(e.left+e.right)/2-b;else if(_e(i)){const R=Object.keys(i)[0],M=i[R];A=this.chart.scales[R].getPixelForValue(M)}E=this._getYAxisLabelAlignment(m).textAlign}n==="y"&&(c==="start"?F="top":c==="end"&&(F="bottom"));const N=this._getLabelSizes();for(x=0,C=l.length;x<C;++x){B=l[x],O=B.label;const R=a.setContext(this.getContext(x));L=this.getPixelForTick(x)+a.labelOffset,H=this._resolveTickFontOptions(x),j=H.lineHeight,X=ot(O)?O.length:1;const M=X/2,V=R.color,Q=R.textStrokeColor,ee=R.textStrokeWidth;let le=E;s?(A=L,E==="inner"&&(x===C-1?le=this.options.reverse?"left":"right":x===0?le=this.options.reverse?"right":"left":le="center"),i==="top"?u==="near"||v!==0?I=-X*j+j/2:u==="center"?I=-N.highest.height/2-M*j+j:I=-N.highest.height+j/2:u==="near"||v!==0?I=j/2:u==="center"?I=N.highest.height/2-M*j:I=N.highest.height-X*j,p&&(I*=-1),v!==0&&!R.showLabelBackdrop&&(A+=j/2*Math.sin(v))):(T=L,I=(1-X)*j/2);let he;if(R.showLabelBackdrop){const ke=Mt(R.backdropPadding),W=N.heights[x],$=N.widths[x];let U=I-ke.top,J=0-ke.left;switch(F){case"middle":U-=W/2;break;case"bottom":U-=W;break}switch(E){case"center":J-=$/2;break;case"right":J-=$;break;case"inner":x===C-1?J-=$:x>0&&(J-=$/2);break}he={left:J,top:U,width:$+ke.width,height:W+ke.height,color:R.backdropColor}}k.push({label:O,font:H,textOffset:I,options:{rotation:v,color:V,strokeColor:Q,strokeWidth:ee,textAlign:le,textBaseline:F,translation:[A,T],backdrop:he}})}return k}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Xn(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=Hr(e,this.left,s)-s/2,h=Hr(e,this.right,l)+l/2,p=m=c):(p=Hr(e,this.top,s)-s/2,m=Hr(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&&rl(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;Ur(o,u,0,h,c,l)}i&&il(o)}drawTitle(){const{ctx:e,options:{position:n,title:o,reverse:i}}=this;if(!o.display)return;const a=At(o.font),s=Mt(o.padding),l=o.align;let c=a.lineHeight/2;n==="bottom"||n==="center"||_e(n)?(c+=s.bottom,ot(o.text)&&(c+=a.lineHeight*(o.text.length-1))):c+=s.top;const{titleX:u,titleY:h,maxWidth:p,rotation:m}=e8(this,c,n,l);Ur(e,o.text,0,0,a,{color:o.color,maxWidth:p,rotation:m,textAlign:$A(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=Oe(e.grid&&e.grid.z,-1),i=Oe(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Kr.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 At(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class vl{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;o8(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,t8(e,s,o),this.override&&pt.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 pt[i]&&(delete pt[i][o],this.override&&delete _r[o])}}function t8(t,e,n){const o=lo(Object.create(null),[n?pt.get(n):{},pt.get(e),t.defaults]);pt.set(e,o),t.defaultRoutes&&n8(e,t.defaultRoutes),t.descriptors&&pt.describe(e,t.descriptors)}function n8(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(".");pt.route(a,i,c,l)})}function o8(t){return"id"in t&&"defaults"in t}class r8{constructor(){this.controllers=new vl(qn,"datasets",!0),this.elements=new vl(Do,"elements"),this.plugins=new vl(Object,"plugins"),this.scales=new vl(Kr,"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):Je(i,s=>{const l=o||this._getRegistryForType(s);this._exec(e,l,s)})})}_exec(e,n,o){const i=nu(e);$e(o["before"+i],[],o),n[e](o),$e(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 uo=new r8;class i8{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($e(l,c,s)===!1&&i.cancelable)return!1}return!0}invalidate(){ze(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=Oe(o.options&&o.options.plugins,{}),a=a8(o);return i===!1&&!n?[]:l8(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 a8(t){const e={},n=[],o=Object.keys(uo.plugins.items);for(let a=0;a<o.length;a++)n.push(uo.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 s8(t,e){return!e&&t===!1?null:t===!0?{}:t}function l8(t,{plugins:e,localIds:n},o,i){const a=[],s=t.getContext();for(const l of e){const c=l.id,u=s8(o[c],i);u!==null&&a.push({plugin:l,options:d8(t.config,{plugin:l,local:n[c]},u,s)})}return a}function d8(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 Eu(t,e){const n=pt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function c8(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function u8(t,e){return t===e?"_index_":"_value_"}function p0(t){if(t==="x"||t==="y"||t==="r")return t}function f8(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Du(t,...e){if(p0(t))return t;for(const n of e){const o=n.axis||f8(n.position)||t.length>1&&p0(t[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function h0(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function p8(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 h0(t,"x",n[0])||h0(t,"y",n[0])}return{}}function h8(t,e){const n=_r[t.type]||{scales:{}},o=e.scales||{},i=Eu(t.type,e),a=Object.create(null);return Object.keys(o).forEach(s=>{const l=o[s];if(!_e(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=Du(s,l,p8(s,t),pt.scales[l.type]),u=u8(c,i),h=n.scales||{};a[s]=Aa(Object.create(null),[{axis:c},l,h[c],h[u]])}),t.data.datasets.forEach(s=>{const l=s.type||t.type,c=s.indexAxis||Eu(l,e),h=(_r[l]||{}).scales||{};Object.keys(h).forEach(p=>{const m=c8(p,c),b=s[m+"AxisID"]||m;a[b]=a[b]||Object.create(null),Aa(a[b],[{axis:m},o[b],h[p]])})}),Object.keys(a).forEach(s=>{const l=a[s];Aa(l,[pt.scales[l.type],pt.scale])}),a}function m0(t){const e=t.options||(t.options={});e.plugins=Oe(e.plugins,{}),e.scales=h8(t,e)}function g0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function m8(t){return t=t||{},t.data=g0(t.data),m0(t),t}const b0=new Map,y0=new Set;function kl(t,e){let n=b0.get(t);return n||(n=e(),b0.set(t,n),y0.add(n)),n}const Ha=(t,e,n)=>{const o=sr(e,n);o!==void 0&&t.add(o)};class g8{constructor(e){this._config=m8(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=g0(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(),m0(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return kl(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return kl(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return kl(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,o=this.type;return kl(`${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=>Ha(c,e,p))),h.forEach(p=>Ha(c,i,p)),h.forEach(p=>Ha(c,_r[a]||{},p)),h.forEach(p=>Ha(c,pt,p)),h.forEach(p=>Ha(c,du,p))});const u=Array.from(c);return u.length===0&&u.push(Object.create(null)),y0.has(n)&&s.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,_r[n]||{},pt.datasets[n]||{},{type:n},pt,du]}resolveNamedOptions(e,n,o,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:l}=v0(this._resolverCache,e,i);let c=s;if(y8(s,n)){a.$shared=!1,o=lr(o)?o():o;const u=this.createResolver(e,o,l);c=Pi(s,o,u)}for(const u of n)a[u]=c[u];return a}createResolver(e,n,o=[""],i){const{resolver:a}=v0(this._resolverCache,e,o);return _e(n)?Pi(a,n,void 0,i):a}}function v0(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:pu(e,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},o.set(i,a)),a}const b8=t=>_e(t)&&Object.getOwnPropertyNames(t).some(e=>lr(t[e]));function y8(t,e){const{isScriptable:n,isIndexable:o}=wg(t);for(const i of e){const a=n(i),s=o(i),l=(s||a)&&t[i];if(a&&(lr(l)||b8(l))||s&&ot(l))return!0}return!1}var v8="4.4.3";const k8=["top","bottom","left","right","chartArea"];function k0(t,e){return t==="top"||t==="bottom"||k8.indexOf(t)===-1&&e==="x"}function w0(t,e){return function(n,o){return n[t]===o[t]?n[e]-o[e]:n[t]-o[t]}}function x0(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),$e(n&&n.onComplete,[t],e)}function w8(t){const e=t.chart,n=e.options.animation;$e(n&&n.onProgress,[t],e)}function S0(t){return gu()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const wl={},C0=t=>{const e=S0(t);return Object.values(wl).filter(n=>n.canvas===e).pop()};function x8(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 S8(t,e,n,o){return!n||t.type==="mouseout"?null:o?e:t}function xl(t,e,n){return t.options.clip?t[n]:e[n]}function C8(t,e){const{xScale:n,yScale:o}=t;return n&&o?{left:xl(n,e,"left"),right:xl(n,e,"right"),top:xl(o,e,"top"),bottom:xl(o,e,"bottom")}:e}class on{static register(...e){uo.add(...e),A0()}static unregister(...e){uo.remove(...e),A0()}constructor(e,n){const o=this.config=new g8(n),i=S0(e),a=C0(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||HA(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=ES(),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 i8,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=US(p=>this.update(p),s.resizeDelay||0),this._dataChanges=[],wl[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Eo.listen(this,"complete",x0),Eo.listen(this,"progress",w8),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:o,height:i,_aspectRatio:a}=this;return ze(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 uo}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Pg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yg(this.canvas,this.ctx),this}stop(){return Eo.stop(this),this}resize(e,n){Eo.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,Pg(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),$e(o.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Je(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=Du(s,l),u=c==="r",h=c==="x";return{options:l,dposition:u?"chartArea":h?"bottom":"left",dtype:u?"radialLinear":h?"category":"linear"}}))),Je(a,s=>{const l=s.options,c=l.id,u=Du(c,l),h=Oe(l.type,s.dtype);(l.position===void 0||k0(l.position,u)!==k0(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=uo.getScale(h);p=new m({id:c,type:h,ctx:this.ctx,chart:this}),o[p.id]=p}p.init(l,e)}),Je(i,(s,l)=>{s||delete o[l]}),Je(o,s=>{jt.configure(this,s,s.options),jt.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(w0("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||Eu(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=uo.getController(l),{datasetElementType:u,dataElementType:h}=pt.datasets[l];Object.assign(c,{dataElementType:uo.getElement(h),datasetElementType:u&&uo.getElement(u)}),s.controller=new c(this,o),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){Je(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||Je(a,u=>{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(w0("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Je(this.scales,e=>{jt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!eg(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;x8(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(!eg(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;jt.update(this,this.width,this.height,e);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],Je(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,lr(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&&(Eo.has(this)?this.attached&&!Eo.running(this)&&Eo.start(this):(this.draw(),x0({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=C8(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&rl(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&&il(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Ao(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,o,i){const a=kA.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=cr(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);Ea(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(),Eo.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(),yg(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete wl[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)};Je(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(){Je(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Je(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}});!Zs(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=NS(e),u=S8(e,this._lastEvent,o,c);o&&(this._lastEvent=null,$e(a.onHover,[e,l,this],this),c&&$e(a.onClick,[e,l,this],this));const h=!Zs(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)}}ce(on,"defaults",pt),ce(on,"instances",wl),ce(on,"overrides",_r),ce(on,"registry",uo),ce(on,"version",v8),ce(on,"getChart",C0);function A0(){return Je(on.instances,t=>t._plugins.invalidate())}function A8(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+kt,o-kt),t.closePath(),t.clip()}function E8(t){return fu(t,["outerStart","outerEnd","innerStart","innerEnd"])}function D8(t,e,n,o){const i=E8(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 Ot(c,0,Math.min(a,u))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:Ot(i.innerStart,0,s),innerEnd:Ot(i.innerEnd,0,s)}}function Ni(t,e,n,o){return{x:n+t*Math.cos(e),y:o+t*Math.sin(e)}}function Sl(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 R=h>0?h-o:0,M=p>0?p-o:0,V=(R+M)/2,Q=V!==0?y*V/(V+o):y;b=(y-Q)/2}const v=Math.max(.001,y*p-n/rt)/p,k=(y-v)/2,x=c+k+b,C=i-k-b,{outerStart:B,outerEnd:O,innerStart:A,innerEnd:T}=D8(e,m,p,C-x),E=p-B,L=p-O,H=x+B/E,j=C-O/L,X=m+A,I=m+T,F=x+A/X,N=C-T/I;if(t.beginPath(),a){const R=(H+j)/2;if(t.arc(s,l,p,H,R),t.arc(s,l,p,R,j),O>0){const ee=Ni(L,j,s,l);t.arc(ee.x,ee.y,O,j,C+kt)}const M=Ni(I,C,s,l);if(t.lineTo(M.x,M.y),T>0){const ee=Ni(I,N,s,l);t.arc(ee.x,ee.y,T,C+kt,N+Math.PI)}const V=(C-T/m+(x+A/m))/2;if(t.arc(s,l,m,C-T/m,V,!0),t.arc(s,l,m,V,x+A/m,!0),A>0){const ee=Ni(X,F,s,l);t.arc(ee.x,ee.y,A,F+Math.PI,x-kt)}const Q=Ni(E,x,s,l);if(t.lineTo(Q.x,Q.y),B>0){const ee=Ni(E,H,s,l);t.arc(ee.x,ee.y,B,x-kt,H)}}else{t.moveTo(s,l);const R=Math.cos(H)*p+s,M=Math.sin(H)*p+l;t.lineTo(R,M);const V=Math.cos(j)*p+s,Q=Math.sin(j)*p+l;t.lineTo(V,Q)}t.closePath()}function B8(t,e,n,o,i){const{fullCircles:a,startAngle:s,circumference:l}=e;let c=e.endAngle;if(a){Sl(t,e,n,o,c,i);for(let u=0;u<a;++u)t.fill();isNaN(l)||(c=s+(l%it||it))}return Sl(t,e,n,o,c,i),t.fill(),c}function P8(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){Sl(t,e,n,o,y,i);for(let v=0;v<a;++v)t.stroke();isNaN(l)||(y=s+(l%it||it))}b&&A8(t,e,y),a||(Sl(t,e,n,o,y,i),t.stroke())}class Vi extends Do{constructor(n){super();ce(this,"circumference");ce(this,"endAngle");ce(this,"fullCircles");ce(this,"innerRadius");ce(this,"outerRadius");ce(this,"pixelMargin");ce(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}=ig(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=Oe(m,u-c)>=it||Ba(s,c,u),k=So(l,h+b,p+b);return v&&k}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>it?Math.floor(i/it):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(rt,i||0)),h=a*u;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,B8(n,this,h,s,l),P8(n,this,h,s,l),n.restore()}}ce(Vi,"id","arc"),ce(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}),ce(Vi,"defaultRoutes",{backgroundColor:"backgroundColor"}),ce(Vi,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function E0(t,e,n=e){t.lineCap=Oe(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Oe(n.borderDash,e.borderDash)),t.lineDashOffset=Oe(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Oe(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Oe(n.borderWidth,e.borderWidth),t.strokeStyle=Oe(n.borderColor,e.borderColor)}function I8(t,e,n){t.lineTo(n.x,n.y)}function O8(t){return t.stepped?eC:t.tension||t.cubicInterpolationMode==="monotone"?tC:I8}function D0(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 N8(t,e,n,o){const{points:i,options:a}=e,{count:s,start:l,loop:c,ilen:u}=D0(i,n,o),h=O8(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 V8(t,e,n,o){const i=e.points,{count:a,start:s,ilen:l}=D0(i,n,o),{move:c=!0,reverse:u}=o||{};let h=0,p=0,m,b,y,v,k,x;const C=O=>(s+(u?l-O:O))%a,B=()=>{v!==k&&(t.lineTo(h,k),t.lineTo(h,v),t.lineTo(h,x))};for(c&&(b=i[C(0)],t.moveTo(b.x,b.y)),m=0;m<=l;++m){if(b=i[C(m)],b.skip)continue;const O=b.x,A=b.y,T=O|0;T===y?(A<v?v=A:A>k&&(k=A),h=(p*h+O)/++p):(B(),t.lineTo(O,A),y=T,p=0,v=k=A),x=A}B()}function Bu(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?V8:N8}function R8(t){return t.stepped?VC:t.tension||t.cubicInterpolationMode==="monotone"?RC:Qr}function T8(t,e,n,o){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,o)&&i.closePath()),E0(t,e.options),t.stroke(i)}function F8(t,e,n,o){const{segments:i,options:a}=e,s=Bu(e);for(const l of i)E0(t,a,l.style),t.beginPath(),s(t,e,l,{start:n,end:n+o-1})&&t.closePath(),t.stroke()}const M8=typeof Path2D=="function";function L8(t,e,n,o){M8&&!e.options.segment?T8(t,e,n,o):F8(t,e,n,o)}class ur extends Do{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;AC(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=_C(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=Fg(this,{property:n,start:i,end:i});if(!s.length)return;const l=[],c=R8(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])),k=c(b,y,v,o.stepped);k[n]=e[n],l.push(k)}return l.length===1?l[0]:l}pathSegment(e,n,o){return Bu(this)(e,this,n,o)}path(e,n,o){const i=this.segments,a=Bu(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(),L8(e,this,o,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ce(ur,"id","line"),ce(ur,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ce(ur,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ce(ur,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function B0(t,e,n,o){const i=t.options,{[n]:a}=t.getProps([n],o);return Math.abs(e-a)<i.radius+i.hitRadius}class Ua extends Do{constructor(n){super();ce(this,"parsed");ce(this,"skip");ce(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 B0(this,n,"x",o)}inYRange(n,o){return B0(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||!Ao(this,o,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,uu(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ce(Ua,"id","point"),ce(Ua,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ce(Ua,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function P0(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 fr(t,e,n,o){return t?0:Ot(e,n,o)}function z8(t,e,n){const o=t.options.borderWidth,i=t.borderSkipped,a=kg(o);return{t:fr(i.top,a.top,0,n),r:fr(i.right,a.right,0,e),b:fr(i.bottom,a.bottom,0,n),l:fr(i.left,a.left,0,e)}}function _8(t,e,n){const{enableBorderRadius:o}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,a=Wr(i),s=Math.min(e,n),l=t.borderSkipped,c=o||_e(i);return{topLeft:fr(!c||l.top||l.left,a.topLeft,0,s),topRight:fr(!c||l.top||l.right,a.topRight,0,s),bottomLeft:fr(!c||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:fr(!c||l.bottom||l.right,a.bottomRight,0,s)}}function H8(t){const e=P0(t),n=e.right-e.left,o=e.bottom-e.top,i=z8(t,n/2,o/2),a=_8(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 Pu(t,e,n,o){const i=e===null,a=n===null,l=t&&!(i&&a)&&P0(t,o);return l&&(i||So(e,l.left,l.right))&&(a||So(n,l.top,l.bottom))}function U8(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function W8(t,e){t.rect(e.x,e.y,e.w,e.h)}function Iu(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 Wa extends Do{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}=H8(this),l=U8(s.radius)?Na:W8;e.save(),(s.w!==a.w||s.h!==a.h)&&(e.beginPath(),l(e,Iu(s,n,a)),e.clip(),l(e,Iu(a,-n,s)),e.fillStyle=o,e.fill("evenodd")),e.beginPath(),l(e,Iu(a,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,o){return Pu(this,e,n,o)}inXRange(e,n){return Pu(this,e,null,n)}inYRange(e,n){return Pu(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}}ce(Wa,"id","bar"),ce(Wa,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ce(Wa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var j8=Object.freeze({__proto__:null,ArcElement:Vi,BarElement:Wa,LineElement:ur,PointElement:Ua});const Ou=["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)"],I0=Ou.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function O0(t){return Ou[t%Ou.length]}function N0(t){return I0[t%I0.length]}function G8(t,e){return t.borderColor=O0(e),t.backgroundColor=N0(e),++e}function Q8(t,e){return t.backgroundColor=t.data.map(()=>O0(e++)),e}function X8(t,e){return t.backgroundColor=t.data.map(()=>N0(e++)),e}function q8(t){let e=0;return(n,o)=>{const i=t.getDatasetMeta(o).controller;i instanceof Xr?e=Q8(n,e):i instanceof Ra?e=X8(n,e):i&&(e=G8(n,e))}}function V0(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function K8(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&&(V0(o)||K8(i)||a&&V0(a)))return;const s=q8(t);o.forEach(s)}};function Y8(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 k=0,x=0,C;const B=Math.floor((p+1)*l)+1+e,O=Math.min(Math.floor((p+2)*l)+1,n)+e,A=O-B;for(C=B;C<O;C++)k+=t[C].x,x+=t[C].y;k/=A,x/=A;const T=Math.floor(p*l)+1+e,E=Math.min(Math.floor((p+1)*l)+1,n)+e,{x:L,y:H}=t[h];for(b=y=-1,C=T;C<E;C++)y=.5*Math.abs((L-k)*(t[C].y-H)-(L-t[C].x)*(x-H)),y>b&&(b=y,m=t[C],v=C);s[c++]=m,h=v}return s[c++]=t[u],s}function Z8(t,e,n,o){let i=0,a=0,s,l,c,u,h,p,m,b,y,v;const k=[],x=e+n-1,C=t[e].x,O=t[x].x-C;for(s=e;s<e+n;++s){l=t[s],c=(l.x-C)/O*o,u=l.y;const A=c|0;if(A===h)u<y?(y=u,p=s):u>v&&(v=u,m=s),i=(a*i+l.x)/++a;else{const T=s-1;if(!ze(p)&&!ze(m)){const E=Math.min(p,m),L=Math.max(p,m);E!==b&&E!==T&&k.push({...t[E],x:i}),L!==b&&L!==T&&k.push({...t[L],x:i})}s>0&&T!==b&&k.push(t[T]),k.push(l),h=A,a=0,y=v=u,p=m=b=s}}return k}function R0(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 T0(t){t.data.datasets.forEach(e=>{R0(e)})}function $8(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=Ot(Co(e,a.axis,s).lo,0,n-1)),u?i=Ot(Co(e,a.axis,l).hi+1,o,n)-o:i=n-o,{start:o,count:i}}var e4={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){T0(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(at([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}=$8(c,u);const b=n.threshold||4*o;if(m<=b){R0(i);return}ze(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=Y8(u,p,m,o,n);break;case"min-max":y=Z8(u,p,m,o);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=y})},destroy(t){T0(t)}};function t4(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=Vu(c,u,i);const h=Nu(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=Fg(e,h);for(const m of p){const b=Nu(n,a[m.start],a[m.end],m.loop),y=Tg(l,i,b);for(const v of y)s.push({source:v,target:m,start:{[n]:F0(h,b,"start",Math.max)},end:{[n]:F0(h,b,"end",Math.min)}})}}return s}function Nu(t,e,n,o){if(o)return;let i=e[t],a=n[t];return t==="angle"&&(i=wn(i),a=wn(a)),{property:t,start:i,end:a}}function n4(t,e){const{x:n=null,y:o=null}=t||{},i=e.points,a=[];return e.segments.forEach(({start:s,end:l})=>{l=Vu(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 Vu(t,e,n){for(;e>t;e--){const o=n[e];if(!isNaN(o.x)&&!isNaN(o.y))break}return e}function F0(t,e,n,o){return t&&e?o(t[n],e[n]):t?t[n]:e?e[n]:0}function M0(t,e){let n=[],o=!1;return ot(t)?(o=!0,n=t):n=n4(t,e),n.length?new ur({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function L0(t){return t&&t.fill!==!1}function o4(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(!yt(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function r4(t,e,n){const o=l4(t);if(_e(o))return isNaN(o.value)?!1:o;let i=parseFloat(o);return yt(i)&&Math.floor(i)===i?i4(o[0],e,i,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function i4(t,e,n,o){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=o?!1:n}function a4(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:_e(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function s4(t,e,n){let o;return t==="start"?o=n:t==="end"?o=e.options.reverse?e.min:e.max:_e(t)?o=t.value:o=e.getBaseValue(),o}function l4(t){const e=t.options,n=e.fill;let o=Oe(n&&n.target,n);return o===void 0&&(o=!!e.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function d4(t){const{scale:e,index:n,line:o}=t,i=[],a=o.segments,s=o.points,l=c4(e,n);l.push(M0({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++)u4(i,s[h],l)}return new ur({points:i,options:{}})}function c4(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 u4(t,e,n){const o=[];for(let i=0;i<n.length;i++){const a=n[i],{first:s,last:l,point:c}=f4(a,e,"x");if(!(!c||s&&l)){if(s)o.unshift(c);else if(t.push(c),!l)break}}t.push(...o)}function f4(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(So(i,p,m)){l=i===p,c=i===m;break}}return{first:l,last:c,point:o}}class z0{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:it},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 p4(t){const{chart:e,fill:n,line:o}=t;if(yt(n))return h4(e,n);if(n==="stack")return d4(t);if(n==="shape")return!0;const i=m4(t);return i instanceof z0?i:M0(i,o)}function h4(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function m4(t){return(t.scale||{}).getPointPositionForValue?b4(t):g4(t)}function g4(t){const{scale:e={},fill:n}=t,o=a4(n,e);if(yt(o)){const i=e.isHorizontal();return{x:i?o:null,y:i?null:o}}return null}function b4(t){const{scale:e,fill:n}=t,o=e.options,i=e.getLabels().length,a=o.reverse?e.max:e.min,s=s4(n,e,a),l=[];if(o.grid.circular){const c=e.getPointPositionForValue(0,a);return new z0({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 Ru(t,e,n){const o=p4(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&&(rl(t,n),y4(t,{line:i,target:o,above:h,below:p,area:n,scale:a,axis:s}),il(t))}function y4(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&&(_0(t,o,s.top),H0(t,{line:n,target:o,color:i,scale:l,property:c}),t.restore(),t.save(),_0(t,o,s.bottom)),H0(t,{line:n,target:o,color:a,scale:l,property:c}),t.restore()}function _0(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[Vu(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 H0(t,e){const{line:n,target:o,property:i,color:a,scale:s}=e,l=t4(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,v4(t,s,b&&Nu(i,h,p)),t.beginPath();const y=!!n.pathSegment(t,c);let v;if(b){y?t.closePath():U0(t,o,p,i);const k=!!o.pathSegment(t,u,{move:y,reverse:!0});v=y&&k,v||U0(t,o,h,i)}t.closePath(),t.fill(v?"evenodd":"nonzero"),t.restore()}}function v4(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 U0(t,e,n,o){const i=e.interpolate(n,o);i&&t.lineTo(i.x,i.y)}var k4={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 ur&&(c={visible:t.isDatasetVisible(s),index:s,fill:r4(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=o4(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&&Ru(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;L0(a)&&Ru(t.ctx,a,t.chartArea)}},beforeDatasetDraw(t,e,n){const o=e.meta.$filler;!L0(o)||n.drawTime!=="beforeDatasetDraw"||Ru(t.ctx,o,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const W0=(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)}},w4=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class j0 extends Do{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=$e(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=At(o.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=W0(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 k=o+n/2+a.measureText(y.text).width;(v===0||u[u.length-1]+k+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:k,height:i},u[u.length-1]+=k+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((k,x)=>{const{itemWidth:C,itemHeight:B}=x4(o,n,a,k,i);x>0&&b+B+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:C,height:B},m=Math.max(m,C),b+=B+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=Oi(a,this.left,this.width);if(this.isHorizontal()){let l=0,c=Wt(o,this.left+i,this.right-this.lineWidths[l]);for(const u of n)l!==u.row&&(l=u.row,c=Wt(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=Wt(o,this.top+e+i,this.bottom-this.columnSizes[l].height);for(const u of n)u.col!==l&&(l=u.col,c=Wt(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;rl(e,this),this._draw(),il(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:o,ctx:i}=this,{align:a,labels:s}=e,l=pt.color,c=Oi(e.rtl,this.left,this.width),u=At(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:k}=W0(s,p),x=function(T,E,L){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;i.save();const H=Oe(L.lineWidth,1);if(i.fillStyle=Oe(L.fillStyle,l),i.lineCap=Oe(L.lineCap,"butt"),i.lineDashOffset=Oe(L.lineDashOffset,0),i.lineJoin=Oe(L.lineJoin,"miter"),i.lineWidth=H,i.strokeStyle=Oe(L.strokeStyle,l),i.setLineDash(Oe(L.lineDash,[])),s.usePointStyle){const j={radius:v*Math.SQRT2/2,pointStyle:L.pointStyle,rotation:L.rotation,borderWidth:H},X=c.xPlus(T,y/2),I=E+m;vg(i,j,X,I,s.pointStyleWidth&&y)}else{const j=E+Math.max((p-v)/2,0),X=c.leftForLtr(T,y),I=Wr(L.borderRadius);i.beginPath(),Object.values(I).some(F=>F!==0)?Na(i,{x:X,y:j,w:y,h:v,radius:I}):i.rect(X,j,y,v),i.fill(),H!==0&&i.stroke()}i.restore()},C=function(T,E,L){Ur(i,L.text,T,E+k/2,u,{strikethrough:L.hidden,textAlign:c.textAlign(L.textAlign)})},B=this.isHorizontal(),O=this._computeTitleHeight();B?b={x:Wt(a,this.left+h,this.right-o[0]),y:this.top+h+O,line:0}:b={x:this.left+h,y:Wt(a,this.top+O+h,this.bottom-n[0].height),line:0},Og(this.ctx,e.textDirection);const A=k+h;this.legendItems.forEach((T,E)=>{i.strokeStyle=T.fontColor,i.fillStyle=T.fontColor;const L=i.measureText(T.text).width,H=c.textAlign(T.textAlign||(T.textAlign=s.textAlign)),j=y+m+L;let X=b.x,I=b.y;c.setWidth(this.width),B?E>0&&X+j+h>this.right&&(I=b.y+=A,b.line++,X=b.x=Wt(a,this.left+h,this.right-o[b.line])):E>0&&I+A>this.bottom&&(X=b.x=X+n[b.line].width+h,b.line++,I=b.y=Wt(a,this.top+O+h,this.bottom-n[b.line].height));const F=c.x(X);if(x(F,I,T),X=WS(H,X+y+m,B?X+j:this.right,e.rtl),C(c.x(X),I,T),B)b.x+=j+h;else if(typeof T.text!="string"){const N=u.lineHeight;b.y+=G0(T,N)+h}else b.y+=A}),Ng(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,o=At(n.font),i=Mt(n.padding);if(!n.display)return;const a=Oi(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=Wt(e.align,p,this.right-m);else{const y=this.columnSizes.reduce((v,k)=>Math.max(v,k.height),0);h=u+Wt(e.align,this.top,this.bottom-y-e.labels.padding-this._computeTitleHeight())}const b=Wt(l,p,p+m);s.textAlign=a.textAlign(au(l)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=o.string,Ur(s,n.text,b,h,o)}_computeTitleHeight(){const e=this.options.title,n=At(e.font),o=Mt(e.padding);return e.display?n.lineHeight+o.height:0}_getLegendItemAt(e,n){let o,i,a;if(So(e,this.left,this.right)&&So(n,this.top,this.bottom)){for(a=this.legendHitBoxes,o=0;o<a.length;++o)if(i=a[o],So(e,i.left,i.left+i.width)&&So(n,i.top,i.top+i.height))return this.legendItems[o]}return null}handleEvent(e){const n=this.options;if(!A4(e.type,n))return;const o=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,a=w4(i,o);i&&!a&&$e(n.onLeave,[e,i,this],this),this._hoveredItem=o,o&&!a&&$e(n.onHover,[e,o,this],this)}else o&&$e(n.onClick,[e,o,this],this)}}function x4(t,e,n,o,i){const a=S4(o,t,e,n),s=C4(i,o,e.lineHeight);return{itemWidth:a,itemHeight:s}}function S4(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 C4(t,e,n){let o=t;return typeof e.text!="string"&&(o=G0(e,n)),o}function G0(t,e){const n=t.text?t.text.length:0;return e*n}function A4(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var E4={id:"legend",_element:j0,start(t,e,n){const o=t.legend=new j0({ctx:t.ctx,options:n,chart:t});jt.configure(t,o,n),jt.addBox(t,o)},stop(t){jt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const o=t.legend;jt.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=Mt(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 Tu extends Do{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=ot(o.text)?o.text.length:1;this._padding=Mt(o.padding);const a=i*At(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=Wt(l,o,a),p=n+e,u=a-o):(s.position==="left"?(h=o+e,p=Wt(l,i,n),c=rt*-.5):(h=a-e,p=Wt(l,n,i),c=rt*.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=At(n.font),a=o.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:u}=this._drawArgs(a);Ur(e,n.text,0,0,o,{color:n.color,maxWidth:c,rotation:u,textAlign:au(n.align),textBaseline:"middle",translation:[s,l]})}}function D4(t,e){const n=new Tu({ctx:t.ctx,options:e,chart:t});jt.configure(t,n,e),jt.addBox(t,n),t.titleBlock=n}var B4={id:"title",_element:Tu,start(t,e,n){D4(t,n)},stop(t){const e=t.titleBlock;jt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const o=t.titleBlock;jt.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 Cl=new WeakMap;var P4={id:"subtitle",start(t,e,n){const o=new Tu({ctx:t.ctx,options:n,chart:t});jt.configure(t,o,n),jt.addBox(t,o),Cl.set(t,o)},stop(t){jt.removeBox(t,Cl.get(t)),Cl.delete(t)},beforeUpdate(t,e,n){const o=Cl.get(t);jt.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 ja={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=ru(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 fo(t,e){return e&&(ot(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Bo(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
30
30
  `)>-1?t.split(`
31
- `):t}function I4(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 Q0(t,e){const n=t.chart.ctx,{body:o,footer:i,title:a}=t,{boxWidth:s,boxHeight:l}=e,c=At(e.bodyFont),u=At(e.titleFont),h=At(e.footerFont),p=a.length,m=i.length,b=o.length,y=Mt(e.padding);let v=y.height,k=0,x=o.reduce((O,A)=>O+A.before.length+A.lines.length+A.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,p&&(v+=p*u.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),x){const O=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=b*O+(x-b)*c.lineHeight+(x-1)*e.bodySpacing}m&&(v+=e.footerMarginTop+m*h.lineHeight+(m-1)*e.footerSpacing);let C=0;const B=function(O){k=Math.max(k,n.measureText(O).width+C)};return n.save(),n.font=u.string,Je(t.title,B),n.font=c.string,Je(t.beforeBody.concat(t.afterBody),B),C=e.displayColors?s+2+e.boxPadding:0,Je(o,O=>{Je(O.before,B),Je(O.lines,B),Je(O.after,B)}),C=0,n.font=h.string,Je(t.footer,B),n.restore(),k+=y.width,{width:k,height:v}}function O4(t,e){const{y:n,height:o}=e;return n<o/2?"top":n>t.height-o/2?"bottom":"center"}function N4(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 V4(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"),N4(u,t,e,n)&&(u="center"),u}function X0(t,e,n){const o=n.yAlign||e.yAlign||O4(t,n);return{xAlign:n.xAlign||e.xAlign||V4(t,e,n,o),yAlign:o}}function R4(t,e){let{x:n,width:o}=t;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function T4(t,e,n){let{y:o,height:i}=t;return e==="top"?o+=n:e==="bottom"?o-=i+n:o-=i/2,o}function q0(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}=Wr(s);let y=R4(e,l);const v=T4(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:Ot(y,0,o.width-e.width),y:Ot(v,0,o.height-e.height)}}function Al(t,e,n){const o=Mt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-o.right:t.x+o.left}function K0(t){return fo([],Bo(t))}function F4(t,e,n){return cr(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 Y0={beforeTitle:xo,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:xo,beforeBody:xo,beforeLabel:xo,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 ze(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:xo,afterBody:xo,beforeFooter:xo,footer:xo,afterFooter:xo};function rn(t,e,n,o){const i=t[e].call(n,o);return typeof i>"u"?Y0[e].call(n,o):i}class Fu extends Do{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 _g(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=F4(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,i=rn(o,"beforeTitle",this,e),a=rn(o,"title",this,e),s=rn(o,"afterTitle",this,e);let l=[];return l=fo(l,Bo(i)),l=fo(l,Bo(a)),l=fo(l,Bo(s)),l}getBeforeBody(e,n){return K0(rn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,i=[];return Je(e,a=>{const s={before:[],lines:[],after:[]},l=J0(o,a);fo(s.before,Bo(rn(l,"beforeLabel",this,a))),fo(s.lines,rn(l,"label",this,a)),fo(s.after,Bo(rn(l,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,n){return K0(rn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,i=rn(o,"beforeFooter",this,e),a=rn(o,"footer",this,e),s=rn(o,"afterFooter",this,e);let l=[];return l=fo(l,Bo(i)),l=fo(l,Bo(a)),l=fo(l,Bo(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(I4(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))),Je(l,h=>{const p=J0(e.callbacks,h);i.push(rn(p,"labelColor",this,h)),a.push(rn(p,"labelPointStyle",this,h)),s.push(rn(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=ja[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=Q0(this,o),u=Object.assign({},l,c),h=X0(this.chart,o,u),p=q0(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}=Wr(l),{x:m,y:b}=e,{width:y,height:v}=n;let k,x,C,B,O,A;return a==="center"?(O=b+v/2,i==="left"?(k=m,x=k-s,B=O+s,A=O-s):(k=m+y,x=k+s,B=O-s,A=O+s),C=k):(i==="left"?x=m+Math.max(c,h)+s:i==="right"?x=m+y-Math.max(u,p)-s:x=this.caretX,a==="top"?(B=b,O=B-s,k=x-s,C=x+s):(B=b+v,O=B+s,k=x+s,C=x-s),A=B),{x1:k,x2:x,x3:C,y1:B,y2:O,y3:A}}drawTitle(e,n,o){const i=this.title,a=i.length;let s,l,c;if(a){const u=Oi(o.rtl,this.x,this.width);for(e.x=Al(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",s=At(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=At(a.bodyFont),p=Al(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},k=i.leftForLtr(m,u)+u/2,x=y+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,uu(e,v,k,x),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,uu(e,v,k,x)}else{e.lineWidth=_e(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),k=i.leftForLtr(i.xPlus(m,1),u-2),x=Wr(s.borderRadius);Object.values(x).some(C=>C!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Na(e,{x:v,y,w:u,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Na(e,{x:k,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(k,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=At(o.bodyFont);let m=p.lineHeight,b=0;const y=Oi(o.rtl,this.x,this.width),v=function(L){n.fillText(L,y.x(e.x+b),e.y+m/2),e.y+=m+a},k=y.textAlign(s);let x,C,B,O,A,T,E;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=Al(this,k,o),n.fillStyle=o.bodyColor,Je(this.beforeBody,v),b=l&&k!=="right"?s==="center"?u/2+h:u+2+h:0,O=0,T=i.length;O<T;++O){for(x=i[O],C=this.labelTextColors[O],n.fillStyle=C,Je(x.before,v),B=x.lines,l&&B.length&&(this._drawColorBox(n,e,O,y,o),m=Math.max(p.lineHeight,c)),A=0,E=B.length;A<E;++A)v(B[A]),m=p.lineHeight;Je(x.after,v)}b=0,m=p.lineHeight,Je(this.afterBody,v),e.y-=a}drawFooter(e,n,o){const i=this.footer,a=i.length;let s,l;if(a){const c=Oi(o.rtl,this.x,this.width);for(e.x=Al(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=c.textAlign(o.footerAlign),n.textBaseline="middle",s=At(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}=Wr(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=ja[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Q0(this,e),c=Object.assign({},s,this._size),u=X0(n,e,c),h=q0(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=Mt(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),Og(e,n.textDirection),a.y+=s.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),Ng(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=!Zs(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||!Zs(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=ja[a.position].call(this,e,n);return s!==!1&&(o!==s.x||i!==s.y)}}ce(Fu,"positioners",ja);var M4={id:"tooltip",_element:Fu,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new Fu({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:Y0},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"]},L4=Object.freeze({__proto__:null,Colors:J8,Decimation:e4,Filler:k4,Legend:E4,SubTitle:P4,Title:B4,Tooltip:M4});const z4=(t,e,n,o)=>(typeof e=="string"?(n=t.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function _4(t,e,n,o){const i=t.indexOf(e);if(i===-1)return z4(t,e,n,o);const a=t.lastIndexOf(e);return i!==a?n:i}const H4=(t,e)=>t===null?null:Ot(Math.round(t),0,e);function Z0(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Mu extends Kr{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(ze(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:_4(o,e,Oe(n,e),this._addedLabels),H4(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 Z0.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}}ce(Mu,"id","category"),ce(Mu,"defaults",{ticks:{callback:Z0}});function U4(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:k}=e,x=!ze(s),C=!ze(l),B=!ze(u),O=(k-v)/(p+1);let A=ng((k-v)/y/b)*b,T,E,L,H;if(A<1e-14&&!x&&!C)return[{value:v},{value:k}];H=Math.ceil(k/A)-Math.floor(v/A),H>y&&(A=ng(H*A/y/b)*b),ze(c)||(T=Math.pow(10,c),A=Math.ceil(A*T)/T),i==="ticks"?(E=Math.floor(v/A)*A,L=Math.ceil(k/A)*A):(E=v,L=k),x&&C&&a&&FS((l-s)/a,A/1e3)?(H=Math.round(Math.min((l-s)/A,h)),A=(l-s)/H,E=s,L=l):B?(E=x?s:E,L=C?l:L,H=u-1,A=(L-E)/H):(H=(L-E)/A,Da(H,Math.round(H),A/1e3)?H=Math.round(H):H=Math.ceil(H));const j=Math.max(rg(A),rg(E));T=Math.pow(10,ze(c)?j:c),E=Math.round(E*T)/T,L=Math.round(L*T)/T;let X=0;for(x&&(m&&E!==s?(n.push({value:s}),E<s&&X++,Da(Math.round((E+X*A)*T)/T,s,$0(s,O,t))&&X++):E<s&&X++);X<H;++X){const I=Math.round((E+X*A)*T)/T;if(C&&I>l)break;n.push({value:I})}return C&&m&&L!==l?n.length&&Da(n[n.length-1].value,l,$0(l,O,t))?n[n.length-1].value=l:n.push({value:l}):(!C||L===l)&&n.push({value:L}),n}function $0(t,e,{horizontal:n,minRotation:o}){const i=Xn(o),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class El extends Kr{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 ze(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=co(i),u=co(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=U4(i,a);return e.bounds==="ticks"&&og(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 Ia(e,this.chart.options.locale,this.options.ticks.format)}}class Lu extends El{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?e:0,this.max=yt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Xn(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}}ce(Lu,"id","linear"),ce(Lu,"defaults",{ticks:{callback:nl.formatters.numeric}});const Ga=t=>Math.floor(dr(t)),Jr=(t,e)=>Math.pow(10,Ga(t)+e);function e1(t){return t/Math.pow(10,Ga(t))===1}function t1(t,e,n){const o=Math.pow(10,n),i=Math.floor(t/o);return Math.ceil(e/o)-i}function W4(t,e){const n=e-t;let o=Ga(n);for(;t1(t,e,o)>10;)o++;for(;t1(t,e,o)<10;)o--;return Math.min(o,Ga(t))}function j4(t,{min:e,max:n}){e=kn(t.min,e);const o=[],i=Ga(e);let a=W4(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=kn(t.min,Math.round((c+h+p*Math.pow(10,a))*s)/s);for(;m<n;)o.push({value:m,major:e1(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=kn(t.max,m);return o.push({value:b,major:e1(b),significand:p}),o}class zu extends Kr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const o=El.prototype.parse.apply(this,[e,n]);if(o===0){this._zero=!0;return}return yt(o)&&o>0?o:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?Math.max(0,e):null,this.max=yt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!yt(this._userMin)&&(this.min=e===Jr(this.min,0)?Jr(this.min,-1):Jr(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(Jr(o,-1)),s(Jr(i,1)))),o<=0&&a(Jr(i,-1)),i<=0&&s(Jr(o,1)),this.min=o,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},o=j4(n,this);return e.bounds==="ticks"&&og(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":Ia(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=dr(e),this._valueRange=dr(this.max)-dr(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(dr(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ce(zu,"id","logarithmic"),ce(zu,"defaults",{ticks:{callback:nl.formatters.logarithmic,major:{enabled:!0}}});function _u(t){const e=t.ticks;if(e.display&&t.display){const n=Mt(e.backdropPadding);return Oe(e.font&&e.font.size,pt.font.size)+n.height}return 0}function G4(t,e,n){return n=ot(n)?n:[n],{w:$S(t,e.string,n),h:n.length*e.lineHeight}}function n1(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 Q4(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?rt/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=At(u.font),m=G4(t.ctx,p,t._pointLabels[c]);o[c]=m;const b=wn(t.getIndexAngle(c)+l),y=Math.round(ou(b)),v=n1(y,h.x,m.w,0,180),k=n1(y,h.y,m.h,90,270);X4(n,e,b,v,k)}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 X4(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 q4(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(ou(wn(c.angle+kt))),h=$4(c.y,l.h,u),p=Y4(u),m=Z4(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 K4(t,e){if(!e)return!0;const{left:n,top:o,right:i,bottom:a}=t;return!(Ao({x:n,y:o},e)||Ao({x:n,y:a},e)||Ao({x:i,y:o},e)||Ao({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:_u(a)/2,additionalAngle:s?rt/i:0};let u;for(let h=0;h<i;h++){c.padding=n[h],c.size=e[h];const p=q4(t,h,c);o.push(p),l==="auto"&&(p.visible=K4(p,u),p.visible&&(u=p))}return o}function Y4(t){return t===0||t===180?"center":t<180?"left":"right"}function Z4(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $4(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function e6(t,e,n){const{left:o,top:i,right:a,bottom:s}=n,{backdropColor:l}=e;if(!ze(l)){const c=Wr(e.borderRadius),u=Mt(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(),Na(t,{x:h,y:p,w:m,h:b,radius:c}),t.fill()):t.fillRect(h,p,m,b)}}function t6(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));e6(n,s,a);const l=At(s.font),{x:c,y:u,textAlign:h}=a;Ur(n,t._pointLabels[i],c,u+l.lineHeight/2,l,{color:s.color,textAlign:h,textBaseline:"middle"})}}function o1(t,e,n,o){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,it);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 n6(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(),o1(t,n,s,o),a.closePath(),a.stroke(),a.restore())}function o6(t,e,n){return cr(t,{label:n,index:e,type:"pointLabel"})}class Qa extends El{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=Mt(_u(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=yt(e)&&!isNaN(e)?e:0,this.max=yt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/_u(this.options))}generateTickLabels(e){El.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,o)=>{const i=$e(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?Q4(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=it/(this._pointLabels.length||1),o=this.options.startAngle||0;return wn(e*n+Xn(o))}getDistanceFromCenterForValue(e){if(ze(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(ze(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 o6(this.getContext(),e,o)}}getPointPosition(e,n,o=0){const i=this.getIndexAngle(e)-kt+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(),o1(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&&t6(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);n6(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=At(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=Mt(u.backdropPadding);e.fillRect(-s/2-p.left,-a-h.size/2-p.top,s+p.width,h.size+p.height)}Ur(e,l.label,0,-a,h,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}ce(Qa,"id","radialLinear"),ce(Qa,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ce(Qa,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ce(Qa,"descriptors",{angleLines:{_fallback:"grid"}});const Dl={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}},an=Object.keys(Dl);function r1(t,e){return t-e}function i1(t,e){if(ze(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)),yt(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Bi(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function a1(t,e,n,o){const i=an.length;for(let a=an.indexOf(t);a<i-1;++a){const s=Dl[an[a]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=o)return an[a]}return an[i-1]}function r6(t,e,n,o,i){for(let a=an.length-1;a>=an.indexOf(n);a--){const s=an[a];if(Dl[s].common&&t._adapter.diff(i,o,s)>=e-1)return s}return an[n?an.indexOf(n):0]}function i6(t){for(let e=an.indexOf(t)+1,n=an.length;e<n;++e)if(Dl[an[e]].common)return an[e]}function s1(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:o,hi:i}=iu(n,e),a=n[o]>=e?n[o]:n[i];t[a]=!0}}function a6(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 l1(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:a6(t,o,i,n)}class Xa extends Kr{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 mA._date(e.adapters.date);i.init(n),Aa(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:i1(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=yt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),o),a=yt(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=_S(i,a,s);return this._unit=n.unit||(o.autoSkip?a1(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):r6(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:i6(this._unit),this.initOffsets(i),e.reverse&&l.reverse(),l1(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=Ot(n,0,s),o=Ot(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||a1(a.minUnit,n,o,this._getLabelCapacity(n)),l=Oe(i.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,u=Bi(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++)s1(h,m,y);return(m===o||i.bounds==="ticks"||b===1)&&s1(h,m,y),Object.keys(h).sort(r1).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 $e(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=Xn(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,l1(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(i1(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return lg(e.sort(r1))}}ce(Xa,"id","time"),ce(Xa,"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 Bl(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}=Co(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}=Co(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 Hu extends Xa{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=Bl(n,this.min),this._tableRange=Bl(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(Bl(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return Bl(this._table,o*this._tableRange+this._minPos,!0)}}ce(Hu,"id","timeseries"),ce(Hu,"defaults",Xa.defaults);var s6=Object.freeze({__proto__:null,CategoryScale:Mu,LinearScale:Lu,LogarithmicScale:zu,RadialLinearScale:Qa,TimeScale:Xa,TimeSeriesScale:Hu});const l6=[hA,j8,L4,s6];on.register(...l6);/*!
31
+ `):t}function I4(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 Q0(t,e){const n=t.chart.ctx,{body:o,footer:i,title:a}=t,{boxWidth:s,boxHeight:l}=e,c=At(e.bodyFont),u=At(e.titleFont),h=At(e.footerFont),p=a.length,m=i.length,b=o.length,y=Mt(e.padding);let v=y.height,k=0,x=o.reduce((O,A)=>O+A.before.length+A.lines.length+A.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,p&&(v+=p*u.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),x){const O=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;v+=b*O+(x-b)*c.lineHeight+(x-1)*e.bodySpacing}m&&(v+=e.footerMarginTop+m*h.lineHeight+(m-1)*e.footerSpacing);let C=0;const B=function(O){k=Math.max(k,n.measureText(O).width+C)};return n.save(),n.font=u.string,Je(t.title,B),n.font=c.string,Je(t.beforeBody.concat(t.afterBody),B),C=e.displayColors?s+2+e.boxPadding:0,Je(o,O=>{Je(O.before,B),Je(O.lines,B),Je(O.after,B)}),C=0,n.font=h.string,Je(t.footer,B),n.restore(),k+=y.width,{width:k,height:v}}function O4(t,e){const{y:n,height:o}=e;return n<o/2?"top":n>t.height-o/2?"bottom":"center"}function N4(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 V4(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"),N4(u,t,e,n)&&(u="center"),u}function X0(t,e,n){const o=n.yAlign||e.yAlign||O4(t,n);return{xAlign:n.xAlign||e.xAlign||V4(t,e,n,o),yAlign:o}}function R4(t,e){let{x:n,width:o}=t;return e==="right"?n-=o:e==="center"&&(n-=o/2),n}function T4(t,e,n){let{y:o,height:i}=t;return e==="top"?o+=n:e==="bottom"?o-=i+n:o-=i/2,o}function q0(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}=Wr(s);let y=R4(e,l);const v=T4(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:Ot(y,0,o.width-e.width),y:Ot(v,0,o.height-e.height)}}function Al(t,e,n){const o=Mt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-o.right:t.x+o.left}function K0(t){return fo([],Bo(t))}function F4(t,e,n){return cr(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 Y0={beforeTitle:xo,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:xo,beforeBody:xo,beforeLabel:xo,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 ze(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:xo,afterBody:xo,beforeFooter:xo,footer:xo,afterFooter:xo};function rn(t,e,n,o){const i=t[e].call(n,o);return typeof i>"u"?Y0[e].call(n,o):i}class Fu extends Do{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 _g(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=F4(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,i=rn(o,"beforeTitle",this,e),a=rn(o,"title",this,e),s=rn(o,"afterTitle",this,e);let l=[];return l=fo(l,Bo(i)),l=fo(l,Bo(a)),l=fo(l,Bo(s)),l}getBeforeBody(e,n){return K0(rn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:o}=n,i=[];return Je(e,a=>{const s={before:[],lines:[],after:[]},l=J0(o,a);fo(s.before,Bo(rn(l,"beforeLabel",this,a))),fo(s.lines,rn(l,"label",this,a)),fo(s.after,Bo(rn(l,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,n){return K0(rn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:o}=n,i=rn(o,"beforeFooter",this,e),a=rn(o,"footer",this,e),s=rn(o,"afterFooter",this,e);let l=[];return l=fo(l,Bo(i)),l=fo(l,Bo(a)),l=fo(l,Bo(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(I4(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))),Je(l,h=>{const p=J0(e.callbacks,h);i.push(rn(p,"labelColor",this,h)),a.push(rn(p,"labelPointStyle",this,h)),s.push(rn(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=ja[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=Q0(this,o),u=Object.assign({},l,c),h=X0(this.chart,o,u),p=q0(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}=Wr(l),{x:m,y:b}=e,{width:y,height:v}=n;let k,x,C,B,O,A;return a==="center"?(O=b+v/2,i==="left"?(k=m,x=k-s,B=O+s,A=O-s):(k=m+y,x=k+s,B=O-s,A=O+s),C=k):(i==="left"?x=m+Math.max(c,h)+s:i==="right"?x=m+y-Math.max(u,p)-s:x=this.caretX,a==="top"?(B=b,O=B-s,k=x-s,C=x+s):(B=b+v,O=B+s,k=x+s,C=x-s),A=B),{x1:k,x2:x,x3:C,y1:B,y2:O,y3:A}}drawTitle(e,n,o){const i=this.title,a=i.length;let s,l,c;if(a){const u=Oi(o.rtl,this.x,this.width);for(e.x=Al(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",s=At(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=At(a.bodyFont),p=Al(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},k=i.leftForLtr(m,u)+u/2,x=y+c/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,uu(e,v,k,x),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,uu(e,v,k,x)}else{e.lineWidth=_e(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),k=i.leftForLtr(i.xPlus(m,1),u-2),x=Wr(s.borderRadius);Object.values(x).some(C=>C!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Na(e,{x:v,y,w:u,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Na(e,{x:k,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(k,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=At(o.bodyFont);let m=p.lineHeight,b=0;const y=Oi(o.rtl,this.x,this.width),v=function(L){n.fillText(L,y.x(e.x+b),e.y+m/2),e.y+=m+a},k=y.textAlign(s);let x,C,B,O,A,T,E;for(n.textAlign=s,n.textBaseline="middle",n.font=p.string,e.x=Al(this,k,o),n.fillStyle=o.bodyColor,Je(this.beforeBody,v),b=l&&k!=="right"?s==="center"?u/2+h:u+2+h:0,O=0,T=i.length;O<T;++O){for(x=i[O],C=this.labelTextColors[O],n.fillStyle=C,Je(x.before,v),B=x.lines,l&&B.length&&(this._drawColorBox(n,e,O,y,o),m=Math.max(p.lineHeight,c)),A=0,E=B.length;A<E;++A)v(B[A]),m=p.lineHeight;Je(x.after,v)}b=0,m=p.lineHeight,Je(this.afterBody,v),e.y-=a}drawFooter(e,n,o){const i=this.footer,a=i.length;let s,l;if(a){const c=Oi(o.rtl,this.x,this.width);for(e.x=Al(this,o.footerAlign,o),e.y+=o.footerMarginTop,n.textAlign=c.textAlign(o.footerAlign),n.textBaseline="middle",s=At(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}=Wr(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=ja[e.position].call(this,this._active,this._eventPosition);if(!s)return;const l=this._size=Q0(this,e),c=Object.assign({},s,this._size),u=X0(n,e,c),h=q0(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=Mt(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),Og(e,n.textDirection),a.y+=s.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),Ng(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=!Zs(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||!Zs(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=ja[a.position].call(this,e,n);return s!==!1&&(o!==s.x||i!==s.y)}}ce(Fu,"positioners",ja);var M4={id:"tooltip",_element:Fu,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new Fu({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:Y0},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"]},L4=Object.freeze({__proto__:null,Colors:J8,Decimation:e4,Filler:k4,Legend:E4,SubTitle:P4,Title:B4,Tooltip:M4});const z4=(t,e,n,o)=>(typeof e=="string"?(n=t.push(e)-1,o.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function _4(t,e,n,o){const i=t.indexOf(e);if(i===-1)return z4(t,e,n,o);const a=t.lastIndexOf(e);return i!==a?n:i}const H4=(t,e)=>t===null?null:Ot(Math.round(t),0,e);function Z0(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Mu extends Kr{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(ze(e))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===e?n:_4(o,e,Oe(n,e),this._addedLabels),H4(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 Z0.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}}ce(Mu,"id","category"),ce(Mu,"defaults",{ticks:{callback:Z0}});function U4(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:k}=e,x=!ze(s),C=!ze(l),B=!ze(u),O=(k-v)/(p+1);let A=ng((k-v)/y/b)*b,T,E,L,H;if(A<1e-14&&!x&&!C)return[{value:v},{value:k}];H=Math.ceil(k/A)-Math.floor(v/A),H>y&&(A=ng(H*A/y/b)*b),ze(c)||(T=Math.pow(10,c),A=Math.ceil(A*T)/T),i==="ticks"?(E=Math.floor(v/A)*A,L=Math.ceil(k/A)*A):(E=v,L=k),x&&C&&a&&FS((l-s)/a,A/1e3)?(H=Math.round(Math.min((l-s)/A,h)),A=(l-s)/H,E=s,L=l):B?(E=x?s:E,L=C?l:L,H=u-1,A=(L-E)/H):(H=(L-E)/A,Da(H,Math.round(H),A/1e3)?H=Math.round(H):H=Math.ceil(H));const j=Math.max(rg(A),rg(E));T=Math.pow(10,ze(c)?j:c),E=Math.round(E*T)/T,L=Math.round(L*T)/T;let X=0;for(x&&(m&&E!==s?(n.push({value:s}),E<s&&X++,Da(Math.round((E+X*A)*T)/T,s,$0(s,O,t))&&X++):E<s&&X++);X<H;++X){const I=Math.round((E+X*A)*T)/T;if(C&&I>l)break;n.push({value:I})}return C&&m&&L!==l?n.length&&Da(n[n.length-1].value,l,$0(l,O,t))?n[n.length-1].value=l:n.push({value:l}):(!C||L===l)&&n.push({value:L}),n}function $0(t,e,{horizontal:n,minRotation:o}){const i=Xn(o),a=(n?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class El extends Kr{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 ze(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=co(i),u=co(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=U4(i,a);return e.bounds==="ticks"&&og(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 Ia(e,this.chart.options.locale,this.options.ticks.format)}}class Lu extends El{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?e:0,this.max=yt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,o=Xn(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}}ce(Lu,"id","linear"),ce(Lu,"defaults",{ticks:{callback:nl.formatters.numeric}});const Ga=t=>Math.floor(dr(t)),Jr=(t,e)=>Math.pow(10,Ga(t)+e);function e1(t){return t/Math.pow(10,Ga(t))===1}function t1(t,e,n){const o=Math.pow(10,n),i=Math.floor(t/o);return Math.ceil(e/o)-i}function W4(t,e){const n=e-t;let o=Ga(n);for(;t1(t,e,o)>10;)o++;for(;t1(t,e,o)<10;)o--;return Math.min(o,Ga(t))}function j4(t,{min:e,max:n}){e=kn(t.min,e);const o=[],i=Ga(e);let a=W4(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=kn(t.min,Math.round((c+h+p*Math.pow(10,a))*s)/s);for(;m<n;)o.push({value:m,major:e1(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=kn(t.max,m);return o.push({value:b,major:e1(b),significand:p}),o}class zu extends Kr{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const o=El.prototype.parse.apply(this,[e,n]);if(o===0){this._zero=!0;return}return yt(o)&&o>0?o:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=yt(e)?Math.max(0,e):null,this.max=yt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!yt(this._userMin)&&(this.min=e===Jr(this.min,0)?Jr(this.min,-1):Jr(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(Jr(o,-1)),s(Jr(i,1)))),o<=0&&a(Jr(i,-1)),i<=0&&s(Jr(o,1)),this.min=o,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},o=j4(n,this);return e.bounds==="ticks"&&og(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":Ia(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=dr(e),this._valueRange=dr(this.max)-dr(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(dr(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}ce(zu,"id","logarithmic"),ce(zu,"defaults",{ticks:{callback:nl.formatters.logarithmic,major:{enabled:!0}}});function _u(t){const e=t.ticks;if(e.display&&t.display){const n=Mt(e.backdropPadding);return Oe(e.font&&e.font.size,pt.font.size)+n.height}return 0}function G4(t,e,n){return n=ot(n)?n:[n],{w:$S(t,e.string,n),h:n.length*e.lineHeight}}function n1(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 Q4(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?rt/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=At(u.font),m=G4(t.ctx,p,t._pointLabels[c]);o[c]=m;const b=wn(t.getIndexAngle(c)+l),y=Math.round(ou(b)),v=n1(y,h.x,m.w,0,180),k=n1(y,h.y,m.h,90,270);X4(n,e,b,v,k)}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 X4(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 q4(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(ou(wn(c.angle+kt))),h=$4(c.y,l.h,u),p=Y4(u),m=Z4(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 K4(t,e){if(!e)return!0;const{left:n,top:o,right:i,bottom:a}=t;return!(Ao({x:n,y:o},e)||Ao({x:n,y:a},e)||Ao({x:i,y:o},e)||Ao({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:_u(a)/2,additionalAngle:s?rt/i:0};let u;for(let h=0;h<i;h++){c.padding=n[h],c.size=e[h];const p=q4(t,h,c);o.push(p),l==="auto"&&(p.visible=K4(p,u),p.visible&&(u=p))}return o}function Y4(t){return t===0||t===180?"center":t<180?"left":"right"}function Z4(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $4(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function e9(t,e,n){const{left:o,top:i,right:a,bottom:s}=n,{backdropColor:l}=e;if(!ze(l)){const c=Wr(e.borderRadius),u=Mt(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(),Na(t,{x:h,y:p,w:m,h:b,radius:c}),t.fill()):t.fillRect(h,p,m,b)}}function t9(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));e9(n,s,a);const l=At(s.font),{x:c,y:u,textAlign:h}=a;Ur(n,t._pointLabels[i],c,u+l.lineHeight/2,l,{color:s.color,textAlign:h,textBaseline:"middle"})}}function o1(t,e,n,o){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,it);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 n9(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(),o1(t,n,s,o),a.closePath(),a.stroke(),a.restore())}function o9(t,e,n){return cr(t,{label:n,index:e,type:"pointLabel"})}class Qa extends El{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=Mt(_u(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=yt(e)&&!isNaN(e)?e:0,this.max=yt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/_u(this.options))}generateTickLabels(e){El.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,o)=>{const i=$e(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?Q4(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=it/(this._pointLabels.length||1),o=this.options.startAngle||0;return wn(e*n+Xn(o))}getDistanceFromCenterForValue(e){if(ze(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(ze(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 o9(this.getContext(),e,o)}}getPointPosition(e,n,o=0){const i=this.getIndexAngle(e)-kt+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(),o1(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&&t9(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);n9(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=At(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=Mt(u.backdropPadding);e.fillRect(-s/2-p.left,-a-h.size/2-p.top,s+p.width,h.size+p.height)}Ur(e,l.label,0,-a,h,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),e.restore()}drawTitle(){}}ce(Qa,"id","radialLinear"),ce(Qa,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ce(Qa,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ce(Qa,"descriptors",{angleLines:{_fallback:"grid"}});const Dl={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}},an=Object.keys(Dl);function r1(t,e){return t-e}function i1(t,e){if(ze(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)),yt(s)||(s=typeof o=="string"?n.parse(s,o):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(Bi(a)||a===!0)?n.startOf(s,"isoWeek",a):n.startOf(s,i)),+s)}function a1(t,e,n,o){const i=an.length;for(let a=an.indexOf(t);a<i-1;++a){const s=Dl[an[a]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-e)/(l*s.size))<=o)return an[a]}return an[i-1]}function r9(t,e,n,o,i){for(let a=an.length-1;a>=an.indexOf(n);a--){const s=an[a];if(Dl[s].common&&t._adapter.diff(i,o,s)>=e-1)return s}return an[n?an.indexOf(n):0]}function i9(t){for(let e=an.indexOf(t)+1,n=an.length;e<n;++e)if(Dl[an[e]].common)return an[e]}function s1(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:o,hi:i}=iu(n,e),a=n[o]>=e?n[o]:n[i];t[a]=!0}}function a9(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 l1(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:a9(t,o,i,n)}class Xa extends Kr{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 mA._date(e.adapters.date);i.init(n),Aa(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:i1(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=yt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),o),a=yt(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=_S(i,a,s);return this._unit=n.unit||(o.autoSkip?a1(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):r9(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:i9(this._unit),this.initOffsets(i),e.reverse&&l.reverse(),l1(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=Ot(n,0,s),o=Ot(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||a1(a.minUnit,n,o,this._getLabelCapacity(n)),l=Oe(i.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,u=Bi(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++)s1(h,m,y);return(m===o||i.bounds==="ticks"||b===1)&&s1(h,m,y),Object.keys(h).sort(r1).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 $e(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=Xn(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,l1(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(i1(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return lg(e.sort(r1))}}ce(Xa,"id","time"),ce(Xa,"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 Bl(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}=Co(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}=Co(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 Hu extends Xa{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=Bl(n,this.min),this._tableRange=Bl(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(Bl(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,o=this.getDecimalForPixel(e)/n.factor-n.end;return Bl(this._table,o*this._tableRange+this._minPos,!0)}}ce(Hu,"id","timeseries"),ce(Hu,"defaults",Xa.defaults);var s9=Object.freeze({__proto__:null,CategoryScale:Mu,LinearScale:Lu,LogarithmicScale:zu,RadialLinearScale:Qa,TimeScale:Xa,TimeSeriesScale:Hu});const l9=[hA,j8,L4,s9];on.register(...l9);/*!
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 d1=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}(),qa={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):ze(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*d1)/d1}};function Uu(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 d6(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 c6=0,c1=1,u1=2,f1=4,p1=8;function Pl(t,e,n){var o=c6;return t<n.left?o|=c1:t>n.right&&(o|=u1),e<n.top?o|=p1:e>n.bottom&&(o|=f1),o}function u6(t,e){for(var n=t.x0,o=t.y0,i=t.x1,a=t.y1,s=Pl(n,o,e),l=Pl(i,a,e),c,u,h;!(!(s|l)||s&l);)c=s||l,c&p1?(u=n+(i-n)*(e.top-o)/(a-o),h=e.top):c&f1?(u=n+(i-n)*(e.bottom-o)/(a-o),h=e.bottom):c&u1?(h=o+(a-o)*(e.right-n)/(i-n),u=e.right):c&c1&&(h=o+(a-o)*(e.left-n)/(i-n),u=e.left),c===s?(n=u,o=h,s=Pl(n,o,e)):(i=u,a=h,l=Pl(i,a,e));return{x0:n,x1:i,y0:o,y1:a}}function Il(t,e){var n=e.anchor,o=t,i,a;return e.clamp&&(o=u6(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),d6(i,a,t.vx,t.vy,e.align)}var Ol={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 Il({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=Uu(t,e.origin),o=n.x*t.options.radius,i=n.y*t.options.radius;return Il({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=Uu(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)),Il({x0:o,y0:i+s,x1:o+a,y1:i,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Uu(t,e.origin);return Il({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)}},Po=qa.rasterize;function f6(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 p6(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 h6(t){return t instanceof Vi?Ol.arc:t instanceof Ua?Ol.point:t instanceof Wa?Ol.bar:Ol.fallback}function m6(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 g6(t,e,n){var o=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!o&&(!i||!a)||(t.beginPath(),m6(t,Po(e.x)+a/2,Po(e.y)+a/2,Po(e.w)-a,Po(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 b6(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 y6(t,e,n){var o=t.shadowBlur,i=n.stroked,a=Po(n.x),s=Po(n.y),l=Po(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 v6(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=b6(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)y6(t,e[m],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*m})}var h1=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};lo(h1.prototype,{_modelize:function(t,e,n,o){var i=this,a=i._index,s=At(at([n.font,{}],o,a)),l=at([n.color,pt.color],o,a);return{align:at([n.align,"center"],o,a),anchor:at([n.anchor,"center"],o,a),area:o.chart.chartArea,backgroundColor:at([n.backgroundColor,null],o,a),borderColor:at([n.borderColor,null],o,a),borderRadius:at([n.borderRadius,0],o,a),borderWidth:at([n.borderWidth,0],o,a),clamp:at([n.clamp,!1],o,a),clip:at([n.clip,!1],o,a),color:l,display:t,font:s,lines:e,offset:at([n.offset,4],o,a),opacity:at([n.opacity,1],o,a),origin:p6(i._el,o),padding:Mt(at([n.padding,4],o,a)),positioner:h6(i._el),rotation:at([n.rotation,0],o,a)*(Math.PI/180),size:qa.textSize(i._ctx,e,s),textAlign:at([n.textAlign,"start"],o,a),textShadowBlur:at([n.textShadowBlur,0],o,a),textShadowColor:at([n.textShadowColor,l],o,a),textStrokeColor:at([n.textStrokeColor,l],o,a),textStrokeWidth:at([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=at([a.display,!0],t,i);u&&(s=t.dataset.data[i],l=Oe($e(a.formatter,[s,t]),s),c=ze(l)?[]:qa.toTextLines(l),c.length&&(n=e._modelize(u,c,a,t),o=f6(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=qa.bound(0,i.opacity,1),o.translate(Po(e.x),Po(e.y)),o.rotate(i.rotation),g6(o,a.frame,i),v6(o,i.lines,a.text,i),o.restore())}});var k6=Number.MIN_SAFE_INTEGER||-9007199254740991,w6=Number.MAX_SAFE_INTEGER||9007199254740991;function Ka(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 m1(t,e){var n=w6,o=k6,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 Nl(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 g1=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};lo(g1.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=Ka(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=[Nl(e[0],e[1]),Nl(e[0],e[3])],i,a,s;for(this._rotation!==t._rotation&&o.push(Nl(n[0],n[1]),Nl(n[0],n[3])),i=0;i<o.length;++i)if(a=m1(e,o[i]),s=m1(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[Ka({x:e.x,y:e.y},o,n),Ka({x:e.x+e.w,y:e.y},o,n),Ka({x:e.x+e.w,y:e.y+e.h},o,n),Ka({x:e.x,y:e.y+e.h},o,n)]}});function b1(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 x6(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 S6(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=b1(l,o.model(),a),i._box.update(s,a,o.rotation()));return x6(t,function(c,u){var h=c._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(c._visible=!1)})}var Ja={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 g1,_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&&S6(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=b1(i._el,i.model(),s),a._box.update(l,s,i.rotation()),i.draw(t,l))}},C6=function(t){if(ze(t))return null;var e=t,n,o,i;if(_e(t))if(!ze(t.label))e=t.label;else if(!ze(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},A6={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:C6,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},sn="$datalabels",y1="$default";function E6(t,e){var n=t.datalabels,o={},i=[],a,s;return n===!1?null:(n===!0&&(n={}),e=lo({},[e,n]),a=e.labels||{},s=Object.keys(a),delete e.labels,s.length?s.forEach(function(l){a[l]&&i.push(lo({},[e,a[l],{_key:l}]))}):i.push(e),o=i.reduce(function(l,c){return Je(c.listeners||{},function(u,h){l[h]=l[h]||{},l[h][c._key||y1]=u}),delete c.listeners,l},{}),{labels:i,listeners:o})}function Wu(t,e,n,o){if(e){var i=n.$context,a=n.$groups,s;e[a._set]&&(s=e[a._set][a._key],s&&$e(s,[i,o])===!0&&(t[sn]._dirty=!0,n.update(i)))}}function D6(t,e,n,o,i){var a,s;!n&&!o||(n?o?n!==o&&(s=a=!0):s=!0:a=!0,s&&Wu(t,e.leave,n,i),a&&Wu(t,e.enter,o,i))}function B6(t,e){var n=t[sn],o=n._listeners,i,a;if(!(!o.enter&&!o.leave)){if(e.type==="mousemove")a=Ja.lookup(n._labels,e);else if(e.type!=="mouseout")return;i=n._hovered,n._hovered=a,D6(t,o,i,a,e)}}function P6(t,e){var n=t[sn],o=n._listeners.click,i=o&&Ja.lookup(n._labels,e);i&&Wu(t,o,i,e)}var ju={id:"datalabels",defaults:A6,beforeInit:function(t){t[sn]={_actives:[]}},beforeUpdate:function(t){var e=t[sn];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var o=e.index,i=t[sn],a=i._datasets[o]=[],s=t.isDatasetVisible(o),l=t.data.datasets[o],c=E6(l,n),u=e.meta.data||[],h=t.ctx,p,m,b,y,v,k,x,C;for(h.save(),p=0,b=u.length;p<b;++p)if(x=u[p],x[sn]=[],s&&x&&t.getDataVisibility(p)&&!x.skip)for(m=0,y=c.labels.length;m<y;++m)v=c.labels[m],k=v._key,C=new h1(v,h,x,p),C.$groups={_set:o,_key:k||y1},C.$context={active:!1,chart:t,dataIndex:p,dataset:l,datasetIndex:o},C.update(C.$context),x[sn].push(C),a.push(C);h.restore(),lo(i._listeners,c.listeners,{merger:function(B,O,A){O[B]=O[B]||{},O[B][e.index]=A[B],i._listened=!0}})},afterUpdate:function(t){t[sn]._labels=Ja.prepare(t[sn]._datasets)},afterDatasetsDraw:function(t){Ja.draw(t,t[sn]._labels)},beforeEvent:function(t,e){if(t[sn]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":B6(t,n);break;case"click":P6(t,n);break}}},afterEvent:function(t){var e=t[sn],n=e._actives,o=e._actives=t.getActiveElements(),i=qa.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[sn]||[],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)&&(Ja.update(e._labels),t.render()),delete e._dirty}};const I6={class:"flex flex-col h-full m-24 overflow-hidden p-24"},O6={class:"flex flex-col gap-8"},N6={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},V6={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},R6={class:"grow"},v1=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,Ac(h,.5)),b.addColorStop(1,Ac(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=Yo(u.color)??"";let p;u.borderColor===null?p=void 0:u.borderColor?p=Yo(u.borderColor):p=h;let m;return u.backgroundColor===null?m=void 0:u.backgroundColor?m=Yo(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(){on.register(ju),n.value&&(o=new on(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",I6,[r.createElementVNode("div",O6,[r.renderSlot(u.$slots,"title"),r.createElementVNode("div",N6,r.toDisplayString(u.name),1),r.createElementVNode("div",V6,r.toDisplayString(u.paragraph),1)]),r.createElementVNode("div",R6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),T6={class:"flex flex-col h-full overflow-hidden px-24 py-16"},F6={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:"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=>Yo(m)??"")),typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Yo(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 k=a.value.split(`
38
- `);for(let x=0;x<k.length;x++){const C=x===0?1:.7;b.fillStyle=Ac(Yo(e.textColor)??"",C),b.fillText(k[x],y,v+x*40)}}}}};function u(){on.register(ju),n.value&&(o=new on(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",T6,[r.createElementVNode("div",F6,[r.renderSlot(h.$slots,"title"),r.createElementVNode("div",M6,r.toDisplayString(h.name),1),r.createElementVNode("div",L6,r.toDisplayString(h.paragraph),1)]),r.createElementVNode("div",z6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),H6={class:"flex flex-col h-full overflow-hidden px-24 py-16"},U6={class:"flex flex-col gap-8"},W6={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},j6={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},G6={class:"grow"},Q6=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=>Yo(m)??"")),typeof c.borderColor=="string"?h=c.borderColor:typeof c.borderColor=="object"&&(h=(p=c.borderColor)==null?void 0:p.map(m=>Yo(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(){on.register(ju),n.value&&(o=new on(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",H6,[r.createElementVNode("div",U6,[r.renderSlot(c.$slots,"title"),r.createElementVNode("div",W6,r.toDisplayString(c.name),1),r.createElementVNode("div",j6,r.toDisplayString(c.paragraph),1)]),r.createElementVNode("div",G6,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(a.value)},null,4)])]))}}),X6={class:"fm-typo-en-body-lg-600"},q6={class:"h-[264px] overflow-y-auto w-[160px]"},K6=["onVnodeMounted"],J6=["onVnodeMounted"],Ri=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=q(n.min).startOf("year"),h=q(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=q(n.min).startOf("month"),p=q(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=q(n.min).startOf("month"),p=q(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(so,{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",X6,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(_)("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(_)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ge,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",q6,[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(_)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")))},[r.createVNode(Dt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")),label:p.format(r.unref(_)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,K6))),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(_)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")))},[r.createVNode(Dt,{"model-value":u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")),label:p.format(r.unref(_)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,J6))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),Io=Ie(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:[wi(4),xi(),Lc({crossAxis:!0})],placement:o.placement,whileElementsMounted:ki,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=v=>{if(!i.value)return;const k=v==null?void 0:v.target;k instanceof Element&&k.closest(`.fm-popover__content:not(#${m})`)||(i.value=!1,c("popover-changed",i.value))};return(v,k)=>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(_c),y,b.value]])}}),[["__scopeId","data-v-6a5803f1"]]),pe="YYYY-MM-DD",Oo="YYYY-MM-DDTHH:mm",Gu=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},k1=(t,e)=>{const n=q().startOf("month"),o=q(t).diff(n,"month"),i=q(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},Ti=()=>[_("date.day.sun"),_("date.day.mon"),_("date.day.tue"),_("date.day.wed"),_("date.day.thu"),_("date.day.fri"),_("date.day.sat")],Y6={class:"p-12 w-[360px]"},Z6={class:"w-max"},$6={class:"flex h-40 justify-between px-4 py-8"},e9={class:"flex gap-4 items-center"},t9={class:"flex gap-4 items-center justify-center"},n9={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},o9=["onClick"],r9={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},i9=Ie(r.defineComponent({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,pe)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=r.ref(!1),u=r.ref(!1),h=y=>{i.value=y},p=()=>{o.value=i.value.format(pe),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?q(o.value):null,a.value=!1},b=y=>{c.value=!1,u.value=!1,l.value=y};return(y,v)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":v[5]||(v[5]=k=>r.isRef(o)?o.value=k: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:k})=>[r.createVNode(Io,{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:k,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value})),void 0,!0):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:k,"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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",Y6,[r.createElementVNode("div",Z6,[r.createElementVNode("div",$6,[r.createElementVNode("div",e9,[r.createVNode(Ri,{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(Ri,{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",t9,[r.createVNode(ge,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:v[2]||(v[2]=()=>b(l.value.subtract(1,"month")))}),r.createVNode(ge,{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",n9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),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(Gu)(l.value),(x,C)=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x,B=>(r.openBlock(),r.createElementBlock("div",{key:B.date.date(),class:"fm-calendar__cell"},[B.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":B.date.isSame(i.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(B.date)},r.toDisplayString(B.date.date()),11,o9)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",r9,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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"]]),w1=t=>(r.pushScopeId("data-v-43495396"),t=t(),r.popScopeId(),t),a9={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},s9={class:"flex items-center justify-center"},l9={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},d9={class:"flex h-[calc(100%-208px)] justify-center relative w-full"},c9=w1(()=>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)),u9={id:"wrapper",class:"h-full relative w-[336px]"},f9=["id"],p9={class:"flex gap-4 items-center"},h9={class:"fm-typo-en-body-lg-600"},m9={class:"fm-typo-en-body-lg-600"},g9=["onClick"],b9={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},y9=w1(()=>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)),v9={class:"flex gap-8 items-center justify-end w-full"},x1=Ie(r.defineComponent({__name:"FmDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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(tt,null),o=k1(e.min,e.max),i=Te(e,"modelValue"),a=q(),s=r.ref(q(i.value,pe)),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(pe),setTimeout(()=>{l.value=!1},0)},m=()=>{s.value=i.value?q(i.value):null,l.value=!1},b=()=>{l.value=!0,setTimeout(()=>{u.value.scrollToItem(y(a.startOf("month")))},0)},y=v=>o.findIndex(k=>k.id===v.startOf("month").format(pe));return(v,k)=>{const x=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":k[0]||(k[0]=C=>r.isRef(i)?i.value=C: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:C})=>[v.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:b},[r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({invalid:C,opened:l.value,showValidBorder:v.showValidBorder})),void 0,!0)])):(r.openBlock(),r.createBlock(ct,{key:1,disabled:c.value,focused:l.value,invalid:C,"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(q)(r.unref(i)).format(r.unref(_)("date.format")):r.unref(_)("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",a9,[r.createVNode(ct,{focused:l.value,invalid:C,"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 B,O;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":(B=s.value)!=null&&B.isValid()?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((O=s.value)!=null&&O.isValid()?r.unref(q)(s.value).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["focused","invalid","show-valid-border"]),r.createElementVNode("div",s9,[r.createElementVNode("div",l9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),B=>(r.openBlock(),r.createElementBlock("div",{key:B,class:"fm-calendar__cell"},r.toDisplayString(B),1))),128))])])]),r.createElementVNode("div",d9,[c9,r.createElementVNode("div",u9,[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:B})=>[r.createElementVNode("div",{id:B.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",p9,[r.createElementVNode("div",h9,r.toDisplayString(r.unref(q)(B.id).format(r.unref(_)("date.monthFormat"))),1),r.createElementVNode("div",m9,r.toDisplayString(r.unref(q)(B.id).format(r.unref(_)("date.yearFormat"))),1)])],8,f9),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(B.matrix,(O,A)=>(r.openBlock(),r.createElementBlock("div",{key:A,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O,T=>(r.openBlock(),r.createElementBlock("div",{key:T.date.date(),class:"fm-calendar__cell"},[T.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":T.date.isSame(s.value),"fm-typo-en-body-lg-600":T.date.isSame(r.unref(a),"day")},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(T.date)},r.toDisplayString(T.date.date()),11,g9)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",b9,[y9,r.createElementVNode("div",v9,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!s.value,label:r.unref(_)("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"]]),Vl=t=>{const e=r.inject(tt,null);return r.computed(()=>{const n=t.disabled??(e==null?void 0:e.getDisabled())??!1;return{...t,disabled:n}})},k9=r.defineComponent({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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}=nr(),n=t,o=Te(n,"modelValue"),i=Vl(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(i9,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(x1,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))}}),S1=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))}}),w9={class:"cursor-pointer fm-switch__container"},x9={key:0,class:"space-y-4"},S9={class:"fm-typo-en-body-lg-400"},C9={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},A9={class:"fm-switch__input--container"},E9=["checked","disabled","value"],D9={key:1,class:"space-y-4"},B9={class:"fm-typo-en-body-lg-400"},P9={key:0,class:"text-fm-color-typo-secondary fm-typo-en-body-md-400"},Rl=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),a=()=>{o.value||(i.value=!i.value)};return(s,l)=>(r.openBlock(),r.createElementBlock("label",w9,[s.labelPlacement==="left"?(r.openBlock(),r.createElementBlock("div",x9,[r.renderSlot(s.$slots,"label",{},void 0,!0),r.createElementVNode("div",S9,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",C9,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",A9,[r.createElementVNode("input",{checked:r.unref(i),disabled:o.value,value:s.value,class:"fm-switch__input--btn",type:"checkbox",onClick:a},null,8,E9),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(ge,{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",D9,[r.createElementVNode("div",B9,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",P9,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-48c9e062"]]);var Vn=(t=>(t.AM="AM",t.PM="PM",t))(Vn||{});function xn(t){return t.toString().padStart(2,"0")}function I9(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),`${xn(s)}:${xn(i)}:${a}`}function ln(t){const[e,n,o]=I9(t).split(":");return{hours:Number(e),minutes:Number(n),period:o}}function Qu({hours:t,minutes:e,period:n}){let o=t;return n==="PM"?o=t===12?t:t+12:t===12&&(o=0),`${xn(o)}:${xn(e)}`}const O9={class:"flex flex-col gap-8 fm-time-input items-center"},N9=["value","maxlength"],C1=Ie(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(xn(n.min)),o("update:model-value",n.min)):p>n.max?(a(xn(n.max)),o("update:model-value",n.max)):(a(xn(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",O9,[r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:u},[r.createVNode(ge,{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,N9),r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:h},[r.createVNode(ge,{name:"expand_more",size:"md"})])]))}}),[["__scopeId","data-v-ced7c472"]]),V9={class:"flex fm-time-input items-center"},R9=r.createElementVNode("div",{class:"fm-typo-en-title-sm-600 w-6 flex items-center justify-center"},[r.createElementVNode("span",null,":")],-1),T9={class:"fm-time-input-periods ml-16"},F9=["onClick"],Tl=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===Vn.AM?Vn.PM:Vn.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",V9,[r.createVNode(C1,{"model-value":r.unref(xn)(t.modelValue.hours),min:1,max:12,"onUpdate:modelValue":s[0]||(s[0]=l=>i({hours:l}))},null,8,["model-value"]),R9,r.createVNode(C1,{"model-value":r.unref(xn)(t.modelValue.minutes),min:0,max:59,"onUpdate:modelValue":s[1]||(s[1]=l=>i({minutes:l}))},null,8,["model-value"]),r.createElementVNode("div",T9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Vn),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,F9))),128))])]))}}),M9={class:"flex gap-8"},L9={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},z9={class:"flex items-center justify-center py-16 w-full"},_9={class:"flex justify-end gap-8"},No=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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),a=r.ref(null),s=r.computed(()=>{if(!i.value)return null;const{hours:u,minutes:h,period:p}=ln(i.value);return`${xn(u)}:${xn(h)} ${p}`});function l(){if(!a.value){i.value=null;return}const u=Qu(a.value);i.value=u,c.value=!1}r.onMounted(()=>{i.value&&(a.value=ln(i.value))}),r.watch(()=>i.value,u=>{u&&(a.value=ln(u))});const c=r.ref(!1);return r.watchEffect(()=>{o.value||(c.value?a.value=ln(i.value??"00:00"):a.value=i.value?ln(i.value):null)}),(u,h)=>(r.openBlock(),r.createBlock(Rt,{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(Io,{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(ct,{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",M9,[r.createVNode(ge,{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",L9,[r.createElementVNode("div",z9,[r.createVNode(Tl,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":h[0]||(h[0]=m=>a.value=m)},null,8,["model-value"])]),r.createElementVNode("div",_9,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:h[1]||(h[1]=m=>c.value=!1)},null,8,["label"]),r.createVNode(we,{label:r.unref(_)("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"]))}});var Bt=(t=>(t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.CUSTOM="CUSTOM",t))(Bt||{});const A1=t=>(r.pushScopeId("data-v-0a4d28bb"),t=t(),r.popScopeId(),t),H9={key:0,class:"flex gap-4 items-center relative w-full"},U9={class:"flex flex-col gap-4 w-full"},W9=A1(()=>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)),j9={class:"flex flex-col gap-4 w-full"},G9={key:1,class:"flex flex-col gap-4 w-full"},Q9={class:"flex gap-4 p-12"},X9={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},q9={key:0,class:"px-8"},K9={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},J9={class:"flex flex-col gap-24"},Y9={key:0,class:"flex gap-4 items-center px-12 w-full"},Z9={class:"flex flex-col gap-4 w-full"},$9=A1(()=>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)),e5={class:"flex flex-col gap-4 w-full"},t5={class:"flex gap-24"},n5={class:"w-max"},o5={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},r5={class:"flex gap-4 items-center"},i5={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},a5={class:"h-[288px]"},s5={key:0,class:"fm-calendar__cell__button--today"},l5=["onClick","onMouseover"],d5={class:"w-max"},c5={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},u5={class:"flex gap-4 items-center"},f5={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},p5={key:0,class:"fm-calendar__cell__button--today"},h5=["onClick","onMouseover"],m5={key:0,class:"flex gap-16 items-end px-12 pt-8 w-full"},g5={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},b5=Ie(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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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 he,ke,W,$;const e=[{id:Bt.PRECEDING_PERIOD,label:_("date.precedingPeriod"),sublabel:"",action:()=>{C.value=Bt.PRECEDING_PERIOD;const U=u.value;if(U[0].startDate&&U[0].endDate){const J=U[0].startDate.diff(U[0].endDate,"day");U[1]={startDate:U[0].startDate.subtract(+(1-J),"day"),endDate:U[0].startDate.subtract(1,"day")}}}},{id:Bt.PRECEDING_WEEK,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfWeek"),action:()=>{C.value=Bt.PRECEDING_WEEK;const U=u.value;if(U[0].startDate&&U[0].endDate){let J=U[0].endDate.diff(U[0].startDate,"week");J===0&&(J+=1),U[1]={startDate:U[0].startDate.subtract(J,"week"),endDate:U[0].endDate.subtract(J,"week")}}}},{id:Bt.PRECEDING_MONTH,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfMonth"),action:()=>{C.value=Bt.PRECEDING_MONTH;const U=u.value;if(U[0].startDate&&U[0].endDate){let J=U[0].endDate.diff(U[0].startDate,"month");J===0&&(J+=1),U[1]={startDate:U[0].startDate.subtract(J,"month"),endDate:U[0].endDate.subtract(J,"month")}}}},{id:Bt.CUSTOM,label:_("date.match.custom"),sublabel:"",action:()=>{C.value=Bt.CUSTOM}}],n=t,o=r.inject(tt,null),i=n.showTime?Oo:pe,a=U=>/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(U)?U.replace(" ","T"):U,s=U=>U?q(a(U)):null,l=q(),c=Te(n,"modelValue"),u=r.ref([{startDate:s((he=c.value)==null?void 0:he.startDate),endDate:s((ke=c.value)==null?void 0:ke.endDate)},{startDate:null,endDate:null}]),h=r.ref(((W=u.value[0].startDate)==null?void 0:W.format("HH:mm"))??"00:00"),p=r.ref((($=u.value[0].endDate)==null?void 0:$.format("HH:mm"))??"23:59"),m=r.ref("00:00"),b=r.ref("23:59"),y=(U,J)=>{const[oe,Z]=J.split(":").map(Number);return U.startOf("day").hour(oe).minute(Z)},v=r.ref(!1),k=r.computed(()=>n.disabled??(o==null?void 0:o.getDisabled())??!1),x=r.ref(!1),C=r.ref(""),B=r.ref(q().startOf("month")),O=r.ref(q().startOf("month").add(1,"month")),A=r.ref(""),T=r.ref(null);let E=0;const L=U=>{var J;if(A.value="",u.value[E].startDate&&u.value[E].endDate){E===1&&(u.value=u.value.map(()=>({startDate:null,endDate:null})),E=0),u.value[0]={startDate:U,endDate:null};return}else if(!u.value[E].startDate&&!u.value[E].endDate)u.value[E].startDate=U;else{if(U.isBefore(u.value[E].startDate)){const oe=u.value[E].startDate;u.value[E]={startDate:U,endDate:oe}}else u.value[E].endDate=U;x.value&&(E=1),e.find(oe=>oe.id===C.value)||(C.value=Bt.CUSTOM)}(J=e.find(oe=>oe.id===C.value))==null||J.action()},H=()=>{const U=(J,oe)=>({startDate:(n.showTime?y(J.startDate,oe[0]):J.startDate).format(i),endDate:(n.showTime?y(J.endDate,oe[1]):J.endDate).format(i)});x.value?c.value=[U(u.value[0],[h.value,p.value]),U(u.value[1],[m.value,b.value])]:c.value=U(u.value[0],[h.value,p.value]),setTimeout(()=>{v.value=!1})},j=()=>{var U,J,oe,Z,ue,ae,ye,Qe;Array.isArray(c.value)?(u.value=c.value.map(Me=>({startDate:s(Me==null?void 0:Me.startDate),endDate:s(Me==null?void 0:Me.endDate)})),n.showTime&&(h.value=((U=u.value[0].startDate)==null?void 0:U.format("HH:mm"))??"00:00",p.value=((J=u.value[0].endDate)==null?void 0:J.format("HH:mm"))??"23:59",m.value=((oe=u.value[1].startDate)==null?void 0:oe.format("HH:mm"))??"00:00",b.value=((Z=u.value[1].endDate)==null?void 0:Z.format("HH:mm"))??"23:59")):(u.value[0]={startDate:s((ue=c.value)==null?void 0:ue.startDate),endDate:s((ae=c.value)==null?void 0:ae.endDate)},n.showTime&&(h.value=((ye=u.value[0].startDate)==null?void 0:ye.format("HH:mm"))??"00:00",p.value=((Qe=u.value[0].endDate)==null?void 0:Qe.format("HH:mm"))??"23:59")),v.value=!1},X=(U,J)=>{U==="left"?(B.value=J,O.value=J.add(1,"month")):U==="right"&&(O.value=J,B.value=J.subtract(1,"month"))},I=U=>{const J=u.value[0].startDate,oe=u.value[0].endDate,Z=u.value[1].startDate,ue=u.value[1].endDate,ae=T.value,ye=J==null?void 0:J.isSame(U),Qe=oe==null?void 0:oe.isSame(U),Me=Z==null?void 0:Z.isSame(U),ut=ue==null?void 0:ue.isSame(U),Lt=ae==null?void 0:ae.isSame(U),gr=ye&&oe&&!(ye&&Qe)||J&&!oe&&ye&&(ae==null?void 0:ae.isAfter(J))||J&&!oe&&Lt&&(ae==null?void 0:ae.isBefore(J)),Yt=Me&&ue&&!(Me&&ut)||Z&&!ue&&Me&&(ae==null?void 0:ae.isAfter(Z))||Z&&!ue&&Lt&&(ae==null?void 0:ae.isBefore(Z)),br=Qe&&J&&!(ye&&Qe)||J&&!oe&&ye&&(ae==null?void 0:ae.isBefore(J))||J&&!oe&&Lt&&(ae==null?void 0:ae.isAfter(J)),Zr=ut&&Z&&!(Me&&ut)||Z&&!ue&&Me&&(ae==null?void 0:ae.isBefore(Z))||Z&&!ue&&Lt&&(ae==null?void 0:ae.isAfter(Z)),Yn=ye&&Qe||ye&&!oe,zt=Me&&ut||Me&&!ue,Cn=J&&(oe||ae)&&oe?U.isAfter(J)&&U.isBefore(oe):U.isAfter(ae)&&U.isBefore(J)||U.isBefore(ae)&&U.isAfter(J),yr=Z&&(ue||ae)&&ue?U.isAfter(Z)&&U.isBefore(ue):U.isAfter(ae)&&U.isBefore(Z)||U.isBefore(ae)&&U.isAfter(Z),Mo=()=>{if(u.value.filter(Qi=>{var vr;for(const kr in Qi)if((vr=Qi[kr])!=null&&vr.isSame(U,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(ye&&Qe&&(bt(U,Z,ue)||bt(U,Z,ae)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(Me&&ut&&(bt(U,J,oe)||bt(U,J,ae)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(gr||br)return bt(U,Z,ue)||bt(U,Z,ae)?"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(Yt||Zr)return bt(U,J,oe)||bt(U,J,ae)?"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(Yn)return"bg-fm-color-primary";if(zt)return"bg-fm-color-system-info-300";if(bt(U,J,oe)&&(bt(U,Z,ue)||bt(U,Z,ae)))return"bg-fm-color-system-success-100";if(Cn)return"bg-fm-color-system-warning-100";if(yr)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Mo()}`]:gr||Yt,[`fm-calendar__cell__button--selected-end ${Mo()}`]:br||Zr,[`fm-calendar__cell__button--selected-between ${Mo()}`]:Cn||yr,[`fm-calendar__cell__button--selected ${Mo()}`]:Yn||zt}},F=U=>{const J=u.value;if(J[0].startDate&&!J[0].endDate||J[1].startDate&&!J[1].endDate){T.value=U;return}T.value=null},N=U=>{A.value=U.label;const J=q(U.value.startDate,[Oo,pe]),oe=q(U.value.endDate,[Oo,pe]);if(u.value[0]={startDate:J,endDate:oe},n.showTime){const Z=(U.value.startDate??"").includes(" "),ue=(U.value.endDate??"").includes(" ");h.value=Z?J.format("HH:mm"):"00:00",p.value=ue?oe.format("HH:mm"):"23:59"}X("left",J.startOf("month"))},R=r.computed(()=>x.value?!u.value.every(U=>U.startDate&&U.endDate):!(u.value[0].startDate&&u.value[0].endDate)),M=U=>{C.value="",x.value=U,u.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),E=0},V=r.computed(()=>n.showTime?`${_("date.format")} HH:mm`:_("date.format")),Q=U=>{const J=s(U);return J!=null&&J.isValid()?J.format(V.value):_("date.placeholder")},ee=r.computed(()=>{if(!c.value)return{startDate:_("date.placeholder"),endDate:_("date.placeholder")};const U=x.value&&Array.isArray(c.value)?c.value[0].startDate:c.value.startDate,J=x.value&&Array.isArray(c.value)?c.value[0].endDate:c.value.endDate;return{startDate:Q(U),endDate:Q(J)}}),le=r.computed(()=>{const U=x.value&&Array.isArray(c.value)?c.value[1].startDate:null,J=x.value&&Array.isArray(c.value)?c.value[1].endDate:null;return U&&J?`${_("date.compareLabel")} ${Q(U)} - ${Q(J)}`:""});return r.watch(()=>c.value,()=>{var U,J,oe,Z,ue,ae,ye,Qe;x.value?(u.value=c.value.map(Me=>({startDate:s(Me==null?void 0:Me.startDate),endDate:s(Me==null?void 0:Me.endDate)})),n.showTime&&(h.value=((ue=u.value[0].startDate)==null?void 0:ue.format("HH:mm"))??h.value,p.value=((ae=u.value[0].endDate)==null?void 0:ae.format("HH:mm"))??p.value,m.value=((ye=u.value[1].startDate)==null?void 0:ye.format("HH:mm"))??m.value,b.value=((Qe=u.value[1].endDate)==null?void 0:Qe.format("HH:mm"))??b.value)):(u.value[0]={startDate:s((U=c.value)==null?void 0:U.startDate),endDate:s((J=c.value)==null?void 0:J.endDate)},n.showTime&&(h.value=((oe=u.value[0].startDate)==null?void 0:oe.format("HH:mm"))??h.value,p.value=((Z=u.value[0].endDate)==null?void 0:Z.format("HH:mm"))??p.value))}),(U,J)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(c),"onUpdate:modelValue":J[12]||(J[12]=oe=>r.isRef(c)?c.value=oe:null),disabled:k.value,focused:v.value,"helper-state":U.helperState,"helper-text":x.value?le.value:U.helperText,rules:U.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:oe})=>[r.createVNode(Io,{disabled:k.value,"show-popover":v.value,"z-index":n.zIndex,onPopoverChanged:J[11]||(J[11]=Z=>v.value=Z)},{"popover-button":r.withCtx(()=>[U.$slots["trigger-button"]?r.renderSlot(U.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:v.value,invalid:oe,showValidBorder:U.showValidBorder,isComparing:x.value,disabled:k.value})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[U.compare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",H9,[r.createElementVNode("label",U9,[r.createVNode(vn,{disabled:k.value,label:n.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),disabled:k.value,focused:v.value,"icon-outlined":!v.value,invalid:oe,"show-valid-border":U.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var Z;return[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString(Q((Z=r.unref(c))==null?void 0:Z.startDate)),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),W9,r.createElementVNode("label",j9,[r.createVNode(vn,{disabled:k.value,label:n.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),disabled:k.value,focused:v.value,"icon-outlined":!v.value,invalid:oe,"show-valid-border":U.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var Z;return[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled":ee.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(Q((Z=r.unref(c))==null?void 0:Z.endDate)),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),U.compare?(r.openBlock(),r.createElementBlock("label",G9,[r.createVNode(vn,{label:U.compareLabel??r.unref(_)("date.compare"),locale:U.locale},null,8,["label","locale"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),focused:v.value,invalid:oe,"show-valid-border":U.showValidBorder},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled":ee.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(ee.value.startDate)+" - "+r.toDisplayString(ee.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)],64))]),default:r.withCtx(()=>[r.createElementVNode("div",Q9,[U.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",X9,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(U.predefinedRange,(Z,ue)=>(r.openBlock(),r.createBlock(Dt,{key:ue,label:Z.label,"model-value":A.value===Z.label,selectable:"",onClick:ae=>N(Z)},null,8,["label","model-value","onClick"]))),128)),U.compare&&U.predefinedRange?(r.openBlock(),r.createElementBlock("div",q9,[r.createVNode(S1,{inset:""})])):r.createCommentVNode("",!0),U.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Rl,{"model-value":x.value,class:"justify-between px-12",label:r.unref(_)("date.label.compare"),"onUpdate:modelValue":J[0]||(J[0]=Z=>M(Z))},null,8,["model-value","label"]),x.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},r.renderList(e,(Z,ue)=>r.createVNode(Dt,{key:ue,label:Z.label,"model-value":C.value===Z.id,sublabel:Z.sublabel,selectable:"",onClick:ae=>Z.action()},null,8,["label","model-value","sublabel","onClick"])),64)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),U.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",K9)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass({"pl-4":U.showPredefinedRange})},[r.createElementVNode("div",J9,[x.value?(r.openBlock(),r.createElementBlock("div",Y9,[r.createElementVNode("label",Z9,[r.createVNode(vn,{locale:U.locale,label:r.unref(_)("date.label.custom")},null,8,["locale","label"]),r.createVNode(ct,{focused:!1},{default:r.withCtx(()=>{var Z,ue;return[r.createElementVNode("div",{class:r.normalizeClass([[(Z=u.value[0])!=null&&Z.startDate&&((ue=u.value[0])!=null&&ue.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(u.value[0].startDate!==null?y(u.value[0].startDate,h.value).format(V.value):r.unref(_)("date.placeholder"))+" - "+r.toDisplayString(u.value[0].endDate!==null?y(u.value[0].endDate,p.value).format(V.value):r.unref(_)("date.placeholder")),3)]}),_:1})]),$9,r.createElementVNode("label",e5,[r.createVNode(vn,{locale:U.locale,label:r.unref(_)("date.label.compare")},null,8,["locale","label"]),r.createVNode(ct,{focused:!1},{default:r.withCtx(()=>{var Z,ue;return[r.createElementVNode("div",{class:r.normalizeClass([[(Z=u.value[1])!=null&&Z.startDate&&((ue=u.value[1])!=null&&ue.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(u.value[1].startDate!==null?y(u.value[1].startDate,m.value).format(V.value):r.unref(_)("date.placeholder"))+" - "+r.toDisplayString(u.value[1].endDate!==null?y(u.value[1].endDate,b.value).format(V.value):r.unref(_)("date.placeholder")),3)]}),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",t5,[r.createElementVNode("div",n5,[r.createElementVNode("div",o5,[r.createElementVNode("div",r5,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:J[1]||(J[1]=()=>X("left",B.value.subtract(1,"month")))}),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":B.value,picker:"month","onUpdate:modelValue":J[2]||(J[2]=Z=>X("left",Z))},null,8,["max","min","model-value"]),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":B.value,picker:"year","onUpdate:modelValue":J[3]||(J[3]=Z=>X("left",Z))},null,8,["max","min","model-value"])])]),r.createElementVNode("div",null,[r.createElementVNode("div",i5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))]),r.createElementVNode("div",a5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Gu)(B.value),(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.date.isSame(r.unref(l),"day")&&ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",s5)):r.createCommentVNode("",!0),ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[I(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(l),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>L(ae.date),onMouseover:ye=>F(ae.date)},r.toDisplayString(ae.date.date()),43,l5)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",d5,[r.createElementVNode("div",c5,[r.createElementVNode("div",u5,[r.createVNode(Ri,{max:U.max,min:U.min,"model-value":O.value,picker:"month","onUpdate:modelValue":J[4]||(J[4]=Z=>X("right",Z))},null,8,["max","min","model-value"]),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":O.value,picker:"year","onUpdate:modelValue":J[5]||(J[5]=Z=>X("right",Z))},null,8,["max","min","model-value"])]),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:J[6]||(J[6]=()=>X("left",B.value.add(1,"month")))})]),r.createElementVNode("div",null,[r.createElementVNode("div",f5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Gu)(O.value),(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.date.isSame(r.unref(l),"day")&&ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",p5)):r.createCommentVNode("",!0),ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[I(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(l),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>L(ae.date),onMouseover:ye=>F(ae.date)},r.toDisplayString(ae.date.date()),43,h5)):r.createCommentVNode("",!0)]))),128))]))),128))])])])])]),U.showTime?(r.openBlock(),r.createElementBlock("div",m5,[r.createVNode(No,{modelValue:h.value,"onUpdate:modelValue":J[7]||(J[7]=Z=>h.value=Z),label:r.unref(_)("time.start"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:p.value,"onUpdate:modelValue":J[8]||(J[8]=Z=>p.value=Z),label:r.unref(_)("time.end"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),x.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(No,{modelValue:m.value,"onUpdate:modelValue":J[9]||(J[9]=Z=>m.value=Z),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.start"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:b.value,"onUpdate:modelValue":J[10]||(J[10]=Z=>b.value=Z),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.end"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"])],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",g5,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:j},null,8,["label"]),r.createVNode(we,{disabled:R.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:H},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[U.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(U.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),[["__scopeId","data-v-0a4d28bb"]]);var E1={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(nn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(k){this[v]=+k}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var x=k.match(/([+-]|\d\d)/g),C=60*x[1]+(+x[2]||0);return C===0?0:x[0]==="+"?-C:C}(v)}],p=function(v){var k=l[v];return k&&(k.indexOf?k:k.s.concat(k.f))},m=function(v,k){var x,C=l.meridiem;if(C){for(var B=1;B<=24;B+=1)if(v.indexOf(C(B,0,k))>-1){x=B>12;break}}else x=v===(k?"pm":"PM");return x},b={A:[s,function(v){this.afternoon=m(v,!1)}],a:[s,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(v){var k=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],k)for(var C=1;C<=31;C+=1)k(C).replace(/\[|\]/g,"")===v&&(this.day=C)}],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(v){var k=p("months"),x=(p("monthsShort")||k.map(function(C){return C.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(v){var k=p("months").indexOf(v)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function y(v){var k,x;k=v,x=l&&l.formats;for(var C=(v=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(H,j,X){var I=X&&X.toUpperCase();return j||x[X]||n[X]||x[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,N,R){return N||R.slice(1)})})).match(o),B=C.length,O=0;O<B;O+=1){var A=C[O],T=b[A],E=T&&T[0],L=T&&T[1];C[O]=L?{regex:E,parser:L}:A.replace(/^\[|\]$/g,"")}return function(H){for(var j={},X=0,I=0;X<B;X+=1){var F=C[X];if(typeof F=="string")I+=F.length;else{var N=F.regex,R=F.parser,M=H.slice(I),V=N.exec(M)[0];R.call(j,V),H=H.replace(V,"")}}return function(Q){var ee=Q.afternoon;if(ee!==void 0){var le=Q.hours;ee?le<12&&(Q.hours+=12):le===12&&(Q.hours=0),delete Q.afternoon}}(j),j}}return function(v,k,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var C=k.prototype,B=C.parse;C.parse=function(O){var A=O.date,T=O.utc,E=O.args;this.$u=T;var L=E[1];if(typeof L=="string"){var H=E[2]===!0,j=E[3]===!0,X=H||j,I=E[2];j&&(I=E[2]),l=this.$locale(),!H&&I&&(l=x.Ls[I]),this.$d=function(M,V,Q){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*M);var ee=y(V)(M),le=ee.year,he=ee.month,ke=ee.day,W=ee.hours,$=ee.minutes,U=ee.seconds,J=ee.milliseconds,oe=ee.zone,Z=new Date,ue=ke||(le||he?1:Z.getDate()),ae=le||Z.getFullYear(),ye=0;le&&!he||(ye=he>0?he-1:Z.getMonth());var Qe=W||0,Me=$||0,ut=U||0,Lt=J||0;return oe?new Date(Date.UTC(ae,ye,ue,Qe,Me,ut,Lt+60*oe.offset*1e3)):Q?new Date(Date.UTC(ae,ye,ue,Qe,Me,ut,Lt)):new Date(ae,ye,ue,Qe,Me,ut,Lt)}catch{return new Date("")}}(A,L,T),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),X&&A!=this.format(L)&&(this.$d=new Date("")),l={}}else if(L instanceof Array)for(var F=L.length,N=1;N<=F;N+=1){E[1]=L[N-1];var R=x.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}N===F&&(this.$d=new Date(""))}else B.call(this,O)}}})})(E1);var y5=E1.exports;const v5=wa(y5),k5={key:0},w5={class:"flex gap-4 items-center relative w-full"},x5={class:"flex flex-col gap-4 w-full"},S5=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),C5={class:"flex flex-col gap-4 w-full"},A5={key:1,class:"flex flex-col gap-4 w-full"},Xu=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:{},showTime:{type:Boolean,default:!1}},setup(t){q.extend(v5);const e=t,n=r.computed(()=>e.showTime?`${_("date.format")} HH:mm`:_("date.format")),o=a=>a&&q(a,[Oo,pe]).isValid()?q(a,[Oo,pe]).format(n.value):_("date.placeholder"),i=r.computed(()=>{if(!e.modelValue)return{startDate:_("date.placeholder"),endDate:_("date.placeholder")};const a=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,s=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o(a),endDate:o(s)}});return(a,s)=>(r.openBlock(),r.createElementBlock("div",null,[a.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",k5,[r.renderSlot(a.$slots,"popover-button",{},()=>[r.createElementVNode("div",w5,[r.createElementVNode("label",x5,[r.createVNode(vn,{disabled:a.disabled,label:e.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:a.disabled,focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>{var l,c;return[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":(l=a.modelValue)!=null&&l.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((c=a.modelValue)!=null&&c.startDate?o(a.modelValue.startDate):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),S5,r.createElementVNode("label",C5,[r.createVNode(vn,{disabled:a.disabled,label:e.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:a.disabled,focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>{var l,c;return[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":(l=a.modelValue)!=null&&l.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((c=a.modelValue)!=null&&c.endDate?o(a.modelValue.endDate):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),a.analytic?(r.openBlock(),r.createElementBlock("label",A5,[r.createVNode(vn,{label:a.compareLabel??r.unref(_)("date.compare"),locale:a.locale},null,8,["label","locale"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":i.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(i.value.startDate)+" - "+r.toDisplayString(i.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),D1=t=>(r.pushScopeId("data-v-e2cc3110"),t=t(),r.popScopeId(),t),E5={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},D5={class:"flex items-center justify-center"},B5={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},P5={class:"flex h-[calc(100%-172px)] justify-center relative w-full"},I5=D1(()=>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)),O5={id:"wrapper",class:"h-full relative w-[336px]"},N5=["id"],V5={class:"flex gap-4 items-center"},R5={class:"fm-typo-en-body-lg-600"},T5={class:"fm-typo-en-body-lg-600"},F5=["onClick","onMouseover"],M5={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},L5=D1(()=>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)),z5={key:0,class:"flex flex-col gap-8 mb-16 w-full"},_5={class:"flex gap-8 w-full"},H5={key:0,class:"flex gap-8 w-full"},U5={class:"flex gap-8 items-center justify-end w-full"},B1=Ie(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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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 ee,le,he,ke;const e=r.ref(),n=[{id:Bt.PRECEDING_PERIOD,label:_("date.precedingPeriod"),sublabel:"",action:()=>{C.value=Bt.PRECEDING_PERIOD;const W=p.value;if(W[0].startDate&&W[0].endDate){const $=W[0].startDate.diff(W[0].endDate,"day");W[1]={startDate:W[0].startDate.subtract(+(1-$),"day"),endDate:W[0].startDate.subtract(1,"day")}}}},{id:Bt.PRECEDING_WEEK,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfWeek"),action:()=>{C.value=Bt.PRECEDING_WEEK;const W=p.value;if(W[0].startDate&&W[0].endDate){let $=W[0].endDate.diff(W[0].startDate,"week");$===0&&($+=1),W[1]={startDate:W[0].startDate.subtract($,"week"),endDate:W[0].endDate.subtract($,"week")}}}},{id:Bt.PRECEDING_MONTH,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfMonth"),action:()=>{C.value=Bt.PRECEDING_MONTH;const W=p.value;if(W[0].startDate&&W[0].endDate){let $=W[0].endDate.diff(W[0].startDate,"month");$===0&&($+=1),W[1]={startDate:W[0].startDate.subtract($,"month"),endDate:W[0].endDate.subtract($,"month")}}}},{id:Bt.CUSTOM,label:_("date.match.custom"),sublabel:"",action:()=>{C.value=Bt.CUSTOM}}],o=t,i=r.inject(tt,null),a=o.showTime?Oo:pe,s=W=>W?q(W,[Oo,pe]):null,l=(W,$)=>{const[U,J]=$.split(":").map(Number);return W.startOf("day").hour(U).minute(J)},c=k1(o.min,o.max),u=q(),h=Te(o,"modelValue"),p=r.ref([{startDate:s((ee=h.value)==null?void 0:ee.startDate),endDate:s((le=h.value)==null?void 0:le.endDate)},{startDate:null,endDate:null}]),m=r.ref(((he=p.value[0].startDate)==null?void 0:he.format("HH:mm"))??"00:00"),b=r.ref(((ke=p.value[0].endDate)==null?void 0:ke.format("HH:mm"))??"23:59"),y=r.ref("00:00"),v=r.ref("23:59"),k=r.ref(!1),x=r.ref(!1),C=r.ref(""),B=r.ref(""),O=r.ref(null);let A=0;const T=W=>{var $;if(B.value="",p.value[A].startDate&&p.value[A].endDate){A===1&&(p.value=p.value.map(()=>({startDate:null,endDate:null})),A=0),p.value[0]={startDate:W,endDate:null};return}else if(!p.value[A].startDate&&!p.value[A].endDate)p.value[A].startDate=W;else{if(W.isBefore(p.value[A].startDate)){const U=p.value[A].startDate;p.value[A]={startDate:W,endDate:U}}else p.value[A].endDate=W;x.value&&(A=1),n.find(U=>U.id===C.value)||(C.value=Bt.CUSTOM)}($=n.find(U=>U.id===C.value))==null||$.action()},E=()=>{const W=($,U)=>({startDate:(o.showTime?l($.startDate,U[0]):$.startDate).format(a),endDate:(o.showTime?l($.endDate,U[1]):$.endDate).format(a)});x.value?h.value=[W(p.value[0],[m.value,b.value]),W(p.value[1],[y.value,v.value])]:h.value=W(p.value[0],[m.value,b.value]),setTimeout(()=>{k.value=!1})},L=()=>{var W,$,U,J,oe,Z,ue,ae;Array.isArray(h.value)?(p.value=h.value.map(ye=>({startDate:s(ye==null?void 0:ye.startDate),endDate:s(ye==null?void 0:ye.endDate)})),o.showTime&&(m.value=((W=p.value[0].startDate)==null?void 0:W.format("HH:mm"))??"00:00",b.value=(($=p.value[0].endDate)==null?void 0:$.format("HH:mm"))??"23:59",y.value=((U=p.value[1].startDate)==null?void 0:U.format("HH:mm"))??"00:00",v.value=((J=p.value[1].endDate)==null?void 0:J.format("HH:mm"))??"23:59")):(p.value[0]={startDate:s((oe=h.value)==null?void 0:oe.startDate),endDate:s((Z=h.value)==null?void 0:Z.endDate)},o.showTime&&(m.value=((ue=p.value[0].startDate)==null?void 0:ue.format("HH:mm"))??"00:00",b.value=((ae=p.value[0].endDate)==null?void 0:ae.format("HH:mm"))??"23:59")),k.value=!1},H=W=>{const $=p.value[0].startDate,U=p.value[0].endDate,J=p.value[1].startDate,oe=p.value[1].endDate,Z=O.value,ue=$==null?void 0:$.isSame(W),ae=U==null?void 0:U.isSame(W),ye=J==null?void 0:J.isSame(W),Qe=oe==null?void 0:oe.isSame(W),Me=Z==null?void 0:Z.isSame(W),ut=ue&&U&&!(ue&&ae)||$&&!U&&ue&&(Z==null?void 0:Z.isAfter($))||$&&!U&&Me&&(Z==null?void 0:Z.isBefore($)),Lt=ye&&oe&&!(ye&&Qe)||J&&!oe&&ye&&(Z==null?void 0:Z.isAfter(J))||J&&!oe&&Me&&(Z==null?void 0:Z.isBefore(J)),gr=ae&&$&&!(ue&&ae)||$&&!U&&ue&&(Z==null?void 0:Z.isBefore($))||$&&!U&&Me&&(Z==null?void 0:Z.isAfter($)),Yt=Qe&&J&&!(ye&&Qe)||J&&!oe&&ye&&(Z==null?void 0:Z.isBefore(J))||J&&!oe&&Me&&(Z==null?void 0:Z.isAfter(J)),br=ue&&ae||ue&&!U,Zr=ye&&Qe||ye&&!oe,Yn=$&&(U||Z)&&U?W.isAfter($)&&W.isBefore(U):W.isAfter(Z)&&W.isBefore($)||W.isBefore(Z)&&W.isAfter($),zt=J&&(oe||Z)&&oe?W.isAfter(J)&&W.isBefore(oe):W.isAfter(Z)&&W.isBefore(J)||W.isBefore(Z)&&W.isAfter(J),Cn=()=>{if(p.value.filter(Mo=>{var Lo;for(const Qi in Mo)if((Lo=Mo[Qi])!=null&&Lo.isSame(W,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(ue&&ae&&(bt(W,J,oe)||bt(W,J,Z)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(ye&&Qe&&(bt(W,$,U)||bt(W,$,Z)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(ut||gr)return bt(W,J,oe)||bt(W,J,Z)?"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(Lt||Yt)return bt(W,$,U)||bt(W,$,Z)?"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(br)return"bg-fm-color-primary";if(Zr)return"bg-fm-color-system-info-300";if(bt(W,$,U)&&(bt(W,J,oe)||bt(W,J,Z)))return"bg-fm-color-system-success-100";if(Yn)return"bg-fm-color-system-warning-100";if(zt)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Cn()}`]:ut||Lt,[`fm-calendar__cell__button--selected-end ${Cn()}`]:gr||Yt,[`fm-calendar__cell__button--selected-between ${Cn()}`]:Yn||zt,[`fm-calendar__cell__button--selected ${Cn()}`]:br||Zr}},j=W=>{const $=p.value;if($[0].startDate&&!$[0].endDate||$[1].startDate&&!$[1].endDate){O.value=W;return}O.value=null},X=W=>{const $=q(W.startDate,[Oo,pe]),U=q(W.endDate,[Oo,pe]);if(p.value[0]={startDate:$,endDate:U},o.showTime){const J=(W.startDate??"").includes(" "),oe=(W.endDate??"").includes(" ");m.value=J?$.format("HH:mm"):"00:00",b.value=oe?U.format("HH:mm"):"23:59"}},I=W=>{const $=n.find(U=>U.id===W);$==null||$.action()},F=r.computed(()=>x.value?!p.value.every(W=>W.startDate&&W.endDate):!(p.value[0].startDate&&p.value[0].endDate)),N=W=>{C.value="",x.value=W,p.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),A=0},R=r.computed(()=>{const W=x.value&&Array.isArray(h.value)?h.value[1].startDate:null,$=x.value&&Array.isArray(h.value)?h.value[1].endDate:null;if(W&&$){const U=s(W),J=s($);if(!(U!=null&&U.isValid())||!(J!=null&&J.isValid()))return"";const oe=o.showTime?`${_("date.format")} HH:mm`:_("date.format");return`${_("date.compareLabel")} ${U.format(oe)} - ${J.format(oe)}`}return""}),M=r.computed(()=>o.disabled??(i==null?void 0:i.getDisabled())??!1),V=()=>{M.value||(k.value=!0,setTimeout(()=>{e.value.scrollToItem(Q(u.startOf("month")))},0))},Q=W=>c.findIndex($=>$.id===W.startOf("month").format(pe));return r.watch(()=>h.value,()=>{var W,$,U,J,oe,Z,ue,ae;x.value?(p.value=h.value.map(ye=>({startDate:s(ye==null?void 0:ye.startDate),endDate:s(ye==null?void 0:ye.endDate)})),o.showTime&&(m.value=((oe=p.value[0].startDate)==null?void 0:oe.format("HH:mm"))??m.value,b.value=((Z=p.value[0].endDate)==null?void 0:Z.format("HH:mm"))??b.value,y.value=((ue=p.value[1].startDate)==null?void 0:ue.format("HH:mm"))??y.value,v.value=((ae=p.value[1].endDate)==null?void 0:ae.format("HH:mm"))??v.value)):(p.value[0]={startDate:s((W=h.value)==null?void 0:W.startDate),endDate:s(($=h.value)==null?void 0:$.endDate)},o.showTime&&(m.value=((U=p.value[0].startDate)==null?void 0:U.format("HH:mm"))??m.value,b.value=((J=p.value[0].endDate)==null?void 0:J.format("HH:mm"))??b.value))}),(W,$)=>{const U=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(h),"onUpdate:modelValue":$[4]||($[4]=J=>r.isRef(h)?h.value=J:null),disabled:M.value,focused:k.value,"helper-state":W.helperState,"helper-text":x.value?R.value:W.helperText,rules:W.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:J})=>[W.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:V},[r.renderSlot(W.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({opened:k.value,invalid:J,showValidBorder:W.showValidBorder,isComparing:x.value,disabled:M.value})),void 0,!0)])):(r.openBlock(),r.createBlock(Xu,{key:1,analytic:W.compare,"compare-label":W.compareLabel??r.unref(_)("date.compare"),disabled:M.value,"end-label":W.endLabel??r.unref(_)("date.endDate"),focused:k.value,invalid:J,"is-comparing":x.value,"model-value":r.unref(h),"show-time":W.showTime,"show-valid-border":W.showValidBorder,"start-label":W.startLabel??r.unref(_)("date.startDate"),onClick:V},r.createSlots({_:2},[W.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(W.$slots,"popover-button",{focused:k.value},void 0,!0)]),key:"0"}:void 0]),1032,["analytic","compare-label","disabled","end-label","focused","invalid","is-comparing","model-value","show-time","show-valid-border","start-label"])),k.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",E5,[W.showPredefinedRange?(r.openBlock(),r.createBlock(ko,{key:0,items:W.predefinedRange,"model-value":B.value,"onUpdate:modelValue":X},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createVNode(Xu,{analytic:W.compare,"compare-label":W.compareLabel??r.unref(_)("date.compare"),"end-label":W.endLabel??r.unref(_)("date.endDate"),"is-comparing":x.value,"model-value":{startDate:p.value[0].startDate?(W.showTime?l(p.value[0].startDate,m.value):p.value[0].startDate).format(r.unref(a)):null,endDate:p.value[0].endDate?(W.showTime?l(p.value[0].endDate,b.value):p.value[0].endDate).format(r.unref(a)):null},"show-time":W.showTime,"start-label":W.startLabel??r.unref(_)("date.startDate")},null,8,["analytic","compare-label","end-label","is-comparing","model-value","show-time","start-label"]),W.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Rl,{"model-value":x.value,label:r.unref(_)("date.label.compare"),"label-placement":"right","onUpdate:modelValue":N},null,8,["model-value","label"]),x.value&&W.compare?(r.openBlock(),r.createBlock(ko,{key:0,items:n.map(oe=>({label:oe.label,sublabel:oe.sublabel,value:oe.id})),"model-value":C.value,"onUpdate:modelValue":I},null,8,["items","model-value"])):r.createCommentVNode("",!0),x.value&&W.compare?(r.openBlock(),r.createBlock(Xu,{key:1,analytic:W.compare,"end-label":W.endLabel??r.unref(_)("date.endDate"),"is-comparing":x.value,"model-value":{startDate:p.value[1].startDate?(W.showTime?l(p.value[1].startDate,y.value):p.value[1].startDate).format(r.unref(a)):null,endDate:p.value[1].endDate?(W.showTime?l(p.value[1].endDate,v.value):p.value[1].endDate).format(r.unref(a)):null},"show-time":W.showTime,"start-label":W.startLabel??r.unref(_)("date.startDate"),"compare-label":"Compare: Custom"},null,8,["analytic","end-label","is-comparing","model-value","show-time","start-label"])):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",D5,[r.createElementVNode("div",B5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),oe=>(r.openBlock(),r.createElementBlock("div",{key:oe,class:"fm-calendar__cell"},r.toDisplayString(oe),1))),128))])])]),r.createElementVNode("div",P5,[I5,r.createElementVNode("div",O5,[r.createVNode(U,{ref_key:"scroller",ref:e,buffer:200,"item-size":null,items:r.unref(c),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:oe})=>[r.createElementVNode("div",{id:oe.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",V5,[r.createElementVNode("div",R5,r.toDisplayString(r.unref(q)(oe.id).format(r.unref(_)("date.monthFormat"))),1),r.createElementVNode("div",T5,r.toDisplayString(r.unref(q)(oe.id).format(r.unref(_)("date.yearFormat"))),1)])],8,N5),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(oe.matrix,(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([[H(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(u),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>T(ae.date),onMouseover:ye=>j(ae.date)},r.toDisplayString(ae.date.date()),43,F5)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",M5,[L5,W.showTime?(r.openBlock(),r.createElementBlock("div",z5,[r.createElementVNode("div",_5,[r.createVNode(No,{modelValue:m.value,"onUpdate:modelValue":$[0]||($[0]=oe=>m.value=oe),label:r.unref(_)("time.start"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:b.value,"onUpdate:modelValue":$[1]||($[1]=oe=>b.value=oe),label:r.unref(_)("time.end"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"])]),x.value?(r.openBlock(),r.createElementBlock("div",H5,[r.createVNode(No,{modelValue:y.value,"onUpdate:modelValue":$[2]||($[2]=oe=>y.value=oe),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.start"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:v.value,"onUpdate:modelValue":$[3]||($[3]=oe=>v.value=oe),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.end"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",U5,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:L},null,8,["label"]),r.createVNode(we,{disabled:F.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:E},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]),_:2},[W.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(W.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),[["__scopeId","data-v-e2cc3110"]]),W5=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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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}=nr(),o=Te(e,"modelValue"),i=Vl(e);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).md||r.unref(n).lg?(r.openBlock(),r.createBlock(b5,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(B1,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))}}),de="YYYY-MM-DD",Fi=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},P1=(t,e)=>({startAt:t?q(t,de):null,endAt:e?q(e,de):null}),j5={class:"fm-typo-en-body-md-600"},G5={id:"in-calendar-app",class:"h-[264px] overflow-y-auto w-[160px]"},Q5=["onVnodeMounted"],X5=["onVnodeMounted"],Rn=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=q(n.min).startOf("year"),h=q(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=q(n.min).startOf("month"),p=q(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=q(n.min).startOf("month"),p=q(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(so,{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",j5,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(_)("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(_)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ge,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",G5,[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(_)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")))},[r.createVNode(Dt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")),label:p.format(r.unref(_)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,Q5))),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(_)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")))},[r.createVNode(Dt,{"model-value":u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")),label:p.format(r.unref(_)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,X5))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),q5={class:"fm-calendar__name-row fm-typo-en-body-md-400 text-fm-color-typo-tertiary"},K5=["id"],J5={key:0,class:"fm-calendar__cell__button--today"},Y5=["onClick","onMouseover"],Mi=Ie(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=q(),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",q5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),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",J5)):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,Y5)):r.createCommentVNode("",!0)],10,K5))),128))]))),128))])]))}}),[["__scopeId","data-v-9a5f3a22"]]),Z5={class:"p-12 space-y-4 w-[552px]"},$5={class:"w-max"},eE={class:"flex space-x-24"},tE={class:"flex items-center py-8 space-x-16"},nE={class:"flex space-x-4"},oE={class:"flex items-center justify-end py-8 space-x-16"},rE={class:"flex space-x-4"},iE={class:"flex gap-8 items-center justify-end w-full"},aE=r.defineComponent({__name:"FmSimpleDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,de)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=r.ref(q().startOf("month").add(1,"month")),u=(k,x)=>{k==="left"?(l.value=x,c.value=x.add(1,"month")):k==="right"&&(c.value=x,l.value=x.subtract(1,"month"))},h=k=>{i.value=k},p=r.computed(()=>Fi(l.value)),m=r.computed(()=>Fi(l.value.add(1,"month"))),b=()=>{o.value=i.value.format(de),setTimeout(()=>{a.value=!1},0)},y=()=>{i.value=o.value?q(o.value):null,a.value=!1},v=k=>{a.value=k,k||y()};return(k,x)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":x[6]||(x[6]=C=>r.isRef(o)?o.value=C:null),disabled:s.value,focused:a.value,"helper-state":k.helperState,"helper-text":k.helperText,info:k.labelInfo,label:k.label,optional:k.labelMark==="optional",required:k.labelMark==="required",rules:k.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(k.$slots,"label")]),default:r.withCtx(({invalid:C})=>[r.createVNode(Io,{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(()=>[k.$slots["trigger-button"]?r.renderSlot(k.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:C,opened:a.value,showValidBorder:k.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:C,"show-valid-border":k.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(k.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(k.$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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",Z5,[r.createElementVNode("div",$5,[r.createElementVNode("div",eE,[r.createElementVNode("div",null,[r.createElementVNode("div",tE,[r.createVNode(ge,{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",nE,[r.createVNode(Rn,{max:k.max,min:k.min,"model-value":l.value,picker:"month","onUpdate:modelValue":x[1]||(x[1]=B=>u("left",B))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:k.max,min:k.min,"model-value":l.value,picker:"year","onUpdate:modelValue":x[2]||(x[2]=B=>u("left",B))},null,8,["max","min","model-value"])])]),r.createVNode(Mi,{"day-cell-class":{status:{isSelected:B=>B.isSame(i.value,"date")}},days:p.value,"on-day-click":B=>h(B.date)},null,8,["day-cell-class","days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",oE,[r.createElementVNode("div",rE,[r.createVNode(Rn,{max:k.max,min:k.min,"model-value":c.value,picker:"month","onUpdate:modelValue":x[3]||(x[3]=B=>u("right",B))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:k.max,min:k.min,"model-value":c.value,picker:"year","onUpdate:modelValue":x[4]||(x[4]=B=>u("right",B))},null,8,["max","min","model-value"])]),r.createVNode(ge,{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(Mi,{"day-cell-class":{status:{isSelected:B=>B.isSame(i.value,"date")}},days:m.value,"on-day-click":B=>h(B.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",iE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:y},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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(k.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),sE={class:"p-12 space-y-4 w-[276px]"},lE={class:"w-max"},dE={class:"flex space-x-24"},cE={class:"flex items-center justify-between py-8"},uE={class:"flex space-x-4"},fE={class:"flex space-x-4"},pE={class:"flex gap-8 items-center justify-end w-full"},I1=r.defineComponent({__name:"FmSimpleDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,de)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=y=>{l.value=y},u=y=>{i.value=y},h=r.computed(()=>Fi(l.value)),p=()=>{o.value=i.value.format(de),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?q(o.value):null,a.value=!1},b=y=>{a.value=y,y||m()};return(y,v)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":v[4]||(v[4]=k=>r.isRef(o)?o.value=k: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:k})=>[r.createVNode(Io,{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:k,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:k,"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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",sE,[r.createElementVNode("div",lE,[r.createElementVNode("div",dE,[r.createElementVNode("div",null,[r.createElementVNode("div",cE,[r.createElementVNode("div",uE,[r.createVNode(Rn,{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(Rn,{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",fE,[r.createVNode(ge,{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(ge,{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(Mi,{"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",pE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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"]))}}),hE=r.defineComponent({__name:"FmSimpleDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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}=nr(),n=t,o=Te(n,"modelValue"),i=Vl(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(aE,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(I1,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 qe=(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))(qe||{});const mE={key:1,class:"flex gap-4 items-center relative w-full"},gE={class:"flex flex-col gap-4 w-full"},bE=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),yE={class:"flex flex-col gap-4 w-full"},vE={class:"flex h-[360px]"},kE={class:"flex flex-col items-start p-12 pr-4"},wE={key:0},xE={key:1},SE=r.createElementVNode("div",{class:"bg-fm-color-neutral-gray-100 h-full mx-4 w-px"},null,-1),CE={class:"w-max"},AE={class:"flex space-x-24"},EE={class:"flex items-center py-8 space-x-16"},DE={class:"flex space-x-4"},BE={class:"flex items-center justify-end py-8 space-x-16"},PE={class:"flex space-x-4"},IE={class:"flex gap-8 items-center justify-end w-full"},OE=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{default:qe.PRECEDING_PERIOD},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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 j,X;const n=I=>()=>{var M,V;const{startAt:F,endAt:N}=P1((M=a.compareTarget)==null?void 0:M.startDate,(V=a.compareTarget)==null?void 0:V.endDate);if(!F||!N)return;const R=I({startAt:F,endAt:N});return O("right",R.endDate.startOf("month")),R},o=r.computed(()=>[{id:qe.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},y.value=qe.NO_COMPARISON}},{id:qe.PRECEDING_WEEK,label:"Same period last week",sublabel:"Match day of week",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"week")+1;return c.value={startDate:I.subtract(N,"week"),endDate:F.subtract(N,"week")},y.value=qe.PRECEDING_WEEK,c.value})},{id:qe.PRECEDING_MONTH,label:"Same period last month",sublabel:"Match day of month",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"month")+1;return c.value={startDate:I.subtract(N,"month"),endDate:F.subtract(N,"month")},y.value=qe.PRECEDING_MONTH,c.value})},{id:qe.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"day")+1;return c.value={startDate:I.subtract(N,"day"),endDate:F.subtract(N,"day")},y.value=qe.PRECEDING_PERIOD,c.value})},{id:qe.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"year")+1;return c.value={startDate:I.subtract(N,"year"),endDate:F.subtract(N,"year")},y.value=qe.PRECEDING_YEAR,c.value})},{id:qe.CUSTOM,label:"Custom",sublabel:"",action:()=>{y.value=qe.CUSTOM}}]),i=e,a=t,s=r.inject(tt,null),l=Te(a,"modelValue"),c=r.ref({startDate:(j=l.value)!=null&&j.startDate?q(l.value.startDate,de):null,endDate:(X=l.value)!=null&&X.endDate?q(l.value.endDate,de):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(q().startOf("month")),m=r.ref(q().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(a.defaultCompareType),v=r.ref(null),k=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:I,endDate:F},label:N})=>{var R,M;((R=c.value.startDate)==null?void 0:R.format(de))===I&&((M=c.value.endDate)==null?void 0:M.format(de))===F&&(b.value=N)})},x=I=>{if(b.value="",y.value=qe.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:I,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=I;else{if(I.isBefore(c.value.startDate)){const F=c.value.startDate;c.value={startDate:I,endDate:F}}else c.value.endDate=I;k()}},C=()=>{var I,F;l.value={startDate:(I=c.value.startDate)==null?void 0:I.format(de),endDate:(F=c.value.endDate)==null?void 0:F.format(de)},i("select-comparison",y.value),setTimeout(()=>{u.value=!1})},B=()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null},u.value=!1},O=(I,F)=>{I==="left"?(p.value=F,m.value=F.add(1,"month")):I==="right"&&(m.value=F,p.value=F.subtract(1,"month"))},A=I=>{var W,$;const F=(W=c.value.startDate)==null?void 0:W.startOf("day"),N=($=c.value.endDate)==null?void 0:$.startOf("day"),R=v.value,M=F==null?void 0:F.isSame(I),V=N==null?void 0:N.isSame(I),Q=R==null?void 0:R.isSame(I),ee=M&&N&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isAfter(F))||F&&!N&&Q&&(R==null?void 0:R.isBefore(F)),le=V&&F&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isBefore(F))||F&&!N&&Q&&(R==null?void 0:R.isAfter(F)),he=M&&V||M&&!N,ke=F&&(N||R)&&N?I.isAfter(F)&&I.isBefore(N):I.isAfter(R)&&I.isBefore(F)||I.isBefore(R)&&I.isAfter(F);return{status:{isStart:ee??!1,isEnd:le??!1,isBetween:ke??!1,isSelected:he??!1}}},T=I=>{const F=c.value;if(F.startDate&&!F.endDate){v.value=I;return}v.value=null},E=I=>{b.value=I.label;const F=q(I.value.startDate,de),N=q(I.value.endDate,de);c.value={startDate:F,endDate:N},O("left",F.startOf("month"))},L=I=>{u.value=I,I||B()},H=r.computed(()=>!y.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||y.value===qe.CUSTOM)return;const I=o.value.find(N=>N.id===y.value),F=I==null?void 0:I.action();F&&(l.value=F)}),r.onMounted(()=>{k()}),(I,F)=>{const N=r.resolveComponent("fm-label");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(l),"onUpdate:modelValue":F[6]||(F[6]=R=>r.isRef(l)?l.value=R:null),disabled:h.value,focused:u.value,"helper-state":I.helperState,"helper-text":I.helperText,rules:I.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:R})=>[r.createVNode(Io,{disabled:h.value,"exclude-el-from-click-outside":["in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:L},{"popover-button":r.withCtx(()=>[I.$slots["trigger-button"]?r.renderSlot(I.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:R,showValidBorder:I.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createElementBlock("div",mE,[r.createElementVNode("label",gE,[r.createVNode(N,{disabled:h.value,label:a.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:R,"show-valid-border":I.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(I.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(I.$slots,"append")]),default:r.withCtx(()=>{var M;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((M=r.unref(l))!=null&&M.startDate?r.unref(q)(r.unref(l).startDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),bE,r.createElementVNode("label",yE,[r.createVNode(N,{disabled:h.value,label:a.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:R,"show-valid-border":I.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(I.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(I.$slots,"append")]),default:r.withCtx(()=>{var M;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((M=r.unref(l))!=null&&M.endDate?r.unref(q)(r.unref(l).endDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])]))]),default:r.withCtx(()=>[r.createElementVNode("div",vE,[I.showPredefinedRange||I.compareTarget?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",kE,[I.showPredefinedRange&&!I.compareTarget?(r.openBlock(),r.createElementBlock("div",wE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(I.predefinedRange,(M,V)=>(r.openBlock(),r.createBlock(Dt,{key:V,label:M.label,"model-value":b.value===M.label,class:"min-w-[158px]",selectable:"",onClick:Q=>E(M)},null,8,["label","model-value","onClick"]))),128))])):r.createCommentVNode("",!0),I.compareTarget?(r.openBlock(),r.createElementBlock("div",xE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(M,V)=>(r.openBlock(),r.createBlock(Dt,{key:V,label:M.label,"model-value":y.value===M.id,sublabel:M.sublabel,class:"min-w-[158px]",selectable:"",onClick:Q=>M.action()},null,8,["label","model-value","sublabel","onClick"]))),128))])):r.createCommentVNode("",!0)]),SE],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{"pl-4":I.showPredefinedRange||I.compareTarget},"p-12 space-y-4"])},[r.createElementVNode("div",CE,[r.createElementVNode("div",AE,[r.createElementVNode("div",null,[r.createElementVNode("div",EE,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:F[0]||(F[0]=()=>O("left",p.value.subtract(1,"month")))}),r.createElementVNode("div",DE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"month","onUpdate:modelValue":F[1]||(F[1]=M=>O("left",M))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"year","onUpdate:modelValue":F[2]||(F[2]=M=>O("left",M))},null,8,["max","min","model-value"])])]),r.createVNode(Mi,{"day-cell-class":A,days:r.unref(Fi)(p.value),"on-day-click":M=>x(M.date),onCellMouseOver:T},null,8,["days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",BE,[r.createElementVNode("div",PE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":m.value,picker:"month","onUpdate:modelValue":F[3]||(F[3]=M=>O("right",M))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":m.value,picker:"year","onUpdate:modelValue":F[4]||(F[4]=M=>O("right",M))},null,8,["max","min","model-value"])]),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:F[5]||(F[5]=()=>O("left",p.value.add(1,"month")))})]),r.createVNode(Mi,{"day-cell-class":M=>A(M),days:r.unref(Fi)(m.value),"on-day-click":M=>x(M.date),onCellMouseOver:T},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",IE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:B},null,8,["label"]),r.createVNode(we,{disabled:H.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:C},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[I.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(I.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),NE={key:0},VE={class:"flex gap-4 items-center relative w-full"},RE={class:"flex flex-col gap-4 w-full"},TE=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),FE={class:"flex flex-col gap-4 w-full"},ME={key:1,class:"flex flex-col gap-4 w-full"},LE=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:_("date.placeholder"),endDate:_("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?q(o).format(_("date.format")):_("date.placeholder"),endDate:i?q(i).format(_("date.format")):_("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",NE,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",VE,[r.createElementVNode("label",RE,[r.createVNode(vn,{disabled:o.disabled,label:e.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{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(q)(o.modelValue.startDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),TE,r.createElementVNode("label",FE,[r.createVNode(vn,{disabled:o.disabled,label:e.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{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(q)(o.modelValue.endDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",ME,[r.createVNode(vn,{label:o.compareLabel??r.unref(_)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(ct,{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(_)("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)]))}}),zE={class:"p-12 space-y-4"},_E={class:"w-max"},HE={class:"flex space-x-24"},UE={class:"flex items-center justify-between py-8"},WE={class:"flex space-x-4"},jE={class:"flex space-x-4"},GE={class:"flex gap-8 items-center justify-end w-full"},O1=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{default:qe.PRECEDING_PERIOD},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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 j,X;const n=I=>()=>{var M,V;const{startAt:F,endAt:N}=P1((M=a.compareTarget)==null?void 0:M.startDate,(V=a.compareTarget)==null?void 0:V.endDate);if(!F||!N)return;const R=I({startAt:F,endAt:N});return B(R.endDate.startOf("month")),R},o=r.computed(()=>[{id:qe.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},b.value=qe.NO_COMPARISON}},{id:qe.PRECEDING_WEEK,label:"Preceding period",sublabel:"Match day of week",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"week")+1;return c.value={startDate:I.subtract(N,"week"),endDate:F.subtract(N,"week")},b.value=qe.PRECEDING_WEEK,c.value})},{id:qe.PRECEDING_MONTH,label:"Same period last week",sublabel:"Match day of month",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"month")+1;return c.value={startDate:I.subtract(N,"month"),endDate:F.subtract(N,"month")},b.value=qe.PRECEDING_MONTH,c.value})},{id:qe.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"day")+1;return c.value={startDate:I.subtract(N,"day"),endDate:F.subtract(N,"day")},b.value=qe.PRECEDING_PERIOD,c.value})},{id:qe.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"year")+1;return c.value={startDate:I.subtract(N,"year"),endDate:F.subtract(N,"year")},b.value=qe.PRECEDING_YEAR,c.value})},{id:qe.CUSTOM,label:"Custom",sublabel:"",action:()=>{b.value=qe.CUSTOM}}]),i=e,a=t,s=r.inject(tt,null),l=Te(a,"modelValue"),c=r.ref({startDate:(j=l.value)!=null&&j.startDate?q(l.value.startDate,de):null,endDate:(X=l.value)!=null&&X.endDate?q(l.value.endDate,de):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(q().startOf("month")),m=r.ref(null),b=r.ref(a.defaultCompareType),y=r.ref(null),v=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:I,endDate:F},label:N})=>{var R,M;((R=c.value.startDate)==null?void 0:R.format(de))===I&&((M=c.value.endDate)==null?void 0:M.format(de))===F&&(m.value={startDate:I,endDate:F})})},k=I=>{if(m.value=null,b.value=qe.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:I,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=I;else{if(I.isBefore(c.value.startDate)){const F=c.value.startDate;c.value={startDate:I,endDate:F}}else c.value.endDate=I;v()}},x=()=>{var I,F;l.value={startDate:(I=c.value.startDate)==null?void 0:I.format(de),endDate:(F=c.value.endDate)==null?void 0:F.format(de)},i("select-comparison",b.value),setTimeout(()=>{u.value=!1})},C=()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null},u.value=!1},B=I=>{p.value=I},O=I=>{var W,$;const F=(W=c.value.startDate)==null?void 0:W.startOf("day"),N=($=c.value.endDate)==null?void 0:$.startOf("day"),R=y.value,M=F==null?void 0:F.isSame(I),V=N==null?void 0:N.isSame(I),Q=R==null?void 0:R.isSame(I),ee=M&&N&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isAfter(F))||F&&!N&&Q&&(R==null?void 0:R.isBefore(F)),le=V&&F&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isBefore(F))||F&&!N&&Q&&(R==null?void 0:R.isAfter(F)),he=M&&V||M&&!N,ke=F&&(N||R)&&N?I.isAfter(F)&&I.isBefore(N):I.isAfter(R)&&I.isBefore(F)||I.isBefore(R)&&I.isAfter(F);return{status:{isStart:ee??!1,isEnd:le??!1,isBetween:ke??!1,isSelected:he??!1}}},A=I=>{const F=c.value;if(F.startDate&&!F.endDate){y.value=I;return}y.value=null},T=I=>{const F=q(I.startDate,de),N=q(I.endDate,de);m.value=I,c.value={startDate:F,endDate:N},B(N.startOf("month"))},E=I=>{const F=o.value.find(N=>N.id===I);F==null||F.action()},L=I=>{u.value=I,I||C()},H=r.computed(()=>!b.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||b.value===qe.CUSTOM)return;const I=o.value.find(N=>N.id===b.value),F=I==null?void 0:I.action();F&&(l.value=F)}),r.onMounted(()=>{v()}),(I,F)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(l),"onUpdate:modelValue":F[6]||(F[6]=N=>r.isRef(l)?l.value=N:null),disabled:h.value,focused:u.value,"helper-state":I.helperState,"helper-text":I.helperText,rules:I.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:N})=>[r.createVNode(Io,{disabled:h.value,"exclude-el-from-click-outside":["exclude-from-click-outside","in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:L},{"popover-button":r.withCtx(()=>[I.$slots["trigger-button"]?r.renderSlot(I.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:N,showValidBorder:I.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createBlock(LE,{key:1,disabled:h.value,focused:u.value,invalid:N,"model-value":r.unref(l),"show-valid-border":I.showValidBorder,"start-label":I.startLabel??r.unref(_)("date.startDate"),"end-label":I.endLabel??r.unref(_)("date.endDate")},r.createSlots({_:2},[I.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(I.$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",zE,[I.showPredefinedRange&&!I.compareTarget?(r.openBlock(),r.createBlock(ko,{key:0,items:I.predefinedRange,"model-value":m.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":F[0]||(F[0]=R=>T(R))},null,8,["items","model-value"])):r.createCommentVNode("",!0),I.compareTarget?(r.openBlock(),r.createBlock(ko,{key:1,items:o.value.map(R=>({label:R.label,sublabel:R.sublabel,value:R.id})),"model-value":b.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":F[1]||(F[1]=R=>E(R))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createElementVNode("div",_E,[r.createElementVNode("div",HE,[r.createElementVNode("div",null,[r.createElementVNode("div",UE,[r.createElementVNode("div",WE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"month","onUpdate:modelValue":F[2]||(F[2]=R=>B(R))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"year","onUpdate:modelValue":F[3]||(F[3]=R=>B(R))},null,8,["max","min","model-value"])]),r.createElementVNode("div",jE,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:F[4]||(F[4]=()=>B(p.value.subtract(1,"month")))}),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:F[5]||(F[5]=()=>B(p.value.add(1,"month")))})])]),r.createVNode(Mi,{"day-cell-class":O,days:r.unref(Fi)(p.value),"on-day-click":R=>k(R.date),"cell-size":"lg",onCellMouseOver:A},null,8,["days","on-day-click"])])])]),r.createElementVNode("div",GE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:C},null,8,["label"]),r.createVNode(we,{disabled:H.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[I.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(I.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),QE=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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}=nr(),i=Te(n,"modelValue"),a=e,s=Vl(n);return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(o).md||r.unref(o).lg?(r.openBlock(),r.createBlock(OE,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(O1,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))}}),XE={class:"flex items-center gap-8"},qE={class:"fm-typo-en-body-md-400 text-fm-color-system-error-300"},KE={class:"flex items-center gap-4"},JE=Ie(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(tm,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??_("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",XE,[r.createVNode(ge,{name:"error",size:"sm",color:"system-error-300"}),r.createElementVNode("span",qE,r.toDisplayString(l.value),1)]),r.createElementVNode("div",KE,[a.value>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(we,{variant:"plain","prepend-icon":"keyboard_arrow_up","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.previousError"),onClick:u},null,8,["aria-label"]),r.createVNode(we,{variant:"plain","prepend-icon":"keyboard_arrow_down","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.nextError"),onClick:h},null,8,["aria-label"])],64)):(r.openBlock(),r.createBlock(we,{key:1,variant:"plain","prepend-icon":"arrow_forward","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.goToError"),onClick:h},null,8,["aria-label"]))])],6)):r.createCommentVNode("",!0)]),_:1},8,["name"]))}}),[["__scopeId","data-v-06b36cc1"]]),YE={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 N1(t,e){var n=Array.prototype.slice.call(e);return n.push(YE),t.apply(this,n)}function qu(t){"@babel/helpers - typeof";return qu=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},qu(t)}function ZE(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function $E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eD(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&&Ya(t,e)}function tD(t){var e=R1();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 nD(this,i)}}function nD(t,e){if(e&&(qu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V1(t)}function V1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ku(t){var e=typeof Map=="function"?new Map:void 0;return Ku=function(o){if(o===null||!oD(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 Fl(o,arguments,Za(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ya(i,o)},Ku(t)}function Fl(t,e,n){return R1()?Fl=Reflect.construct:Fl=function(i,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(i,l),u=new c;return s&&Ya(u,s.prototype),u},Fl.apply(null,arguments)}function R1(){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 oD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ya(t,e){return Ya=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},Ya(t,e)}function Za(t){return Za=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Za(t)}var Vo=function(t){eD(n,t);var e=tD(n);function n(o){var i;return $E(this,n),i=e.call(this,o),Object.setPrototypeOf(V1(i),n.prototype),i.name=i.constructor.name,i}return ZE(n)}(Ku(Error)),Ju=2,rD=17,iD=3,Kn="0-90-9٠-٩۰-۹",aD="-‐-―−ー-",sD="//",lD="..",dD="  ­​⁠ ",cD="()()[]\\[\\]",uD="~⁓∼~",Ml="".concat(aD).concat(sD).concat(lD).concat(dD).concat(cD).concat(uD),Yu="++";function T1(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 fD={}.constructor;function Ll(t){return t!=null&&t.constructor===fD}function Zu(t){"@babel/helpers - typeof";return Zu=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},Zu(t)}function zl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pD(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 _l(t,e,n){return e&&pD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var hD="1.2.0",mD="1.7.35",F1=" ext. ",gD=/^\d+$/,Jt=function(){function t(e){zl(this,t),kD(e),this.metadata=e,z1.call(this,e)}return _l(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&&gD.test(n)&&(o=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new M1(this.getCountryMetadata(n),this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new M1(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}(),M1=function(){function t(e,n){zl(this,t),this.globalMetadataObject=n,this.metadata=e,z1.call(this,n.metadata)}return _l(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 bD(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()&&L1(this.types(),n))return new vD(L1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?F1:this.metadata[13]||F1}}]),t}(),bD=function(){function t(e,n){zl(this,t),this._format=e,this.metadata=n}return _l(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()&&!yD.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),yD=/^\(?\$1\)?$/,vD=function(){function t(e,n){zl(this,t),this.type=e,this.metadata=n}return _l(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 L1(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 kD(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ll(t)||!Ll(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(Ll(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+wD(t)+": "+t,"."))}var wD=function(e){return Zu(e)};function Hl(t,e){if(e=new Jt(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function xD(t,e){return e.countries.hasOwnProperty(t)}function z1(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?T1(e,hD)===-1?this.v2=!0:T1(e,mD)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var SD=";ext=",Li=function(e){return"([".concat(Kn,"]{1,").concat(e,"})")};function _1(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=SD+Li(e),y=a+c+s+Li(e)+l,v=a+u+s+Li(o)+l,k=h+Li(i)+"#",x=p+m+s+Li(n)+l,C=p+"(?:,)+"+s+Li(o)+l;return b+"|"+y+"|"+v+"|"+k+"|"+x+"|"+C}var CD="["+Kn+"]{"+Ju+"}",AD="["+Yu+"]{0,1}(?:["+Ml+"]*["+Kn+"]){3,}["+Ml+Kn+"]*",ED=new RegExp("^["+Yu+"]{0,1}(?:["+Ml+"]*["+Kn+"]){1,2}$","i"),DD=AD+"(?:"+_1()+")?",BD=new RegExp("^"+CD+"$|^"+DD+"$","i");function PD(t){return t.length>=Ju&&BD.test(t)}function ID(t){return ED.test(t)}var H1=new RegExp("(?:"+_1()+")$","i");function OD(t){var e=t.search(H1);if(e<0)return{};for(var n=t.slice(0,e),o=t.match(H1),i=1;i<o.length;){if(o[i])return{number:n,ext:o[i]};i++}}var ND={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 VD(t){return ND[t]}function RD(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=TD(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):ze(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*d1)/d1}};function Uu(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 d9(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 c9=0,c1=1,u1=2,f1=4,p1=8;function Pl(t,e,n){var o=c9;return t<n.left?o|=c1:t>n.right&&(o|=u1),e<n.top?o|=p1:e>n.bottom&&(o|=f1),o}function u9(t,e){for(var n=t.x0,o=t.y0,i=t.x1,a=t.y1,s=Pl(n,o,e),l=Pl(i,a,e),c,u,h;!(!(s|l)||s&l);)c=s||l,c&p1?(u=n+(i-n)*(e.top-o)/(a-o),h=e.top):c&f1?(u=n+(i-n)*(e.bottom-o)/(a-o),h=e.bottom):c&u1?(h=o+(a-o)*(e.right-n)/(i-n),u=e.right):c&c1&&(h=o+(a-o)*(e.left-n)/(i-n),u=e.left),c===s?(n=u,o=h,s=Pl(n,o,e)):(i=u,a=h,l=Pl(i,a,e));return{x0:n,x1:i,y0:o,y1:a}}function Il(t,e){var n=e.anchor,o=t,i,a;return e.clamp&&(o=u9(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),d9(i,a,t.vx,t.vy,e.align)}var Ol={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 Il({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=Uu(t,e.origin),o=n.x*t.options.radius,i=n.y*t.options.radius;return Il({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=Uu(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)),Il({x0:o,y0:i+s,x1:o+a,y1:i,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Uu(t,e.origin);return Il({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)}},Po=qa.rasterize;function f9(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 p9(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 h9(t){return t instanceof Vi?Ol.arc:t instanceof Ua?Ol.point:t instanceof Wa?Ol.bar:Ol.fallback}function m9(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 g9(t,e,n){var o=n.backgroundColor,i=n.borderColor,a=n.borderWidth;!o&&(!i||!a)||(t.beginPath(),m9(t,Po(e.x)+a/2,Po(e.y)+a/2,Po(e.w)-a,Po(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 b9(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 y9(t,e,n){var o=t.shadowBlur,i=n.stroked,a=Po(n.x),s=Po(n.y),l=Po(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 v9(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=b9(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)y9(t,e[m],{stroked:p,filled:s,w:n.w,x:n.x,y:n.y+n.h*m})}var h1=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};lo(h1.prototype,{_modelize:function(t,e,n,o){var i=this,a=i._index,s=At(at([n.font,{}],o,a)),l=at([n.color,pt.color],o,a);return{align:at([n.align,"center"],o,a),anchor:at([n.anchor,"center"],o,a),area:o.chart.chartArea,backgroundColor:at([n.backgroundColor,null],o,a),borderColor:at([n.borderColor,null],o,a),borderRadius:at([n.borderRadius,0],o,a),borderWidth:at([n.borderWidth,0],o,a),clamp:at([n.clamp,!1],o,a),clip:at([n.clip,!1],o,a),color:l,display:t,font:s,lines:e,offset:at([n.offset,4],o,a),opacity:at([n.opacity,1],o,a),origin:p9(i._el,o),padding:Mt(at([n.padding,4],o,a)),positioner:h9(i._el),rotation:at([n.rotation,0],o,a)*(Math.PI/180),size:qa.textSize(i._ctx,e,s),textAlign:at([n.textAlign,"start"],o,a),textShadowBlur:at([n.textShadowBlur,0],o,a),textShadowColor:at([n.textShadowColor,l],o,a),textStrokeColor:at([n.textStrokeColor,l],o,a),textStrokeWidth:at([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=at([a.display,!0],t,i);u&&(s=t.dataset.data[i],l=Oe($e(a.formatter,[s,t]),s),c=ze(l)?[]:qa.toTextLines(l),c.length&&(n=e._modelize(u,c,a,t),o=f9(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=qa.bound(0,i.opacity,1),o.translate(Po(e.x),Po(e.y)),o.rotate(i.rotation),g9(o,a.frame,i),v9(o,i.lines,a.text,i),o.restore())}});var k9=Number.MIN_SAFE_INTEGER||-9007199254740991,w9=Number.MAX_SAFE_INTEGER||9007199254740991;function Ka(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 m1(t,e){var n=w9,o=k9,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 Nl(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 g1=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};lo(g1.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=Ka(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=[Nl(e[0],e[1]),Nl(e[0],e[3])],i,a,s;for(this._rotation!==t._rotation&&o.push(Nl(n[0],n[1]),Nl(n[0],n[3])),i=0;i<o.length;++i)if(a=m1(e,o[i]),s=m1(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[Ka({x:e.x,y:e.y},o,n),Ka({x:e.x+e.w,y:e.y},o,n),Ka({x:e.x+e.w,y:e.y+e.h},o,n),Ka({x:e.x,y:e.y+e.h},o,n)]}});function b1(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 x9(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 S9(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=b1(l,o.model(),a),i._box.update(s,a,o.rotation()));return x9(t,function(c,u){var h=c._hidable,p=u._hidable;h&&p||p?u._visible=!1:h&&(c._visible=!1)})}var Ja={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 g1,_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&&S9(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=b1(i._el,i.model(),s),a._box.update(l,s,i.rotation()),i.draw(t,l))}},C9=function(t){if(ze(t))return null;var e=t,n,o,i;if(_e(t))if(!ze(t.label))e=t.label;else if(!ze(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},A9={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:C9,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},sn="$datalabels",y1="$default";function E9(t,e){var n=t.datalabels,o={},i=[],a,s;return n===!1?null:(n===!0&&(n={}),e=lo({},[e,n]),a=e.labels||{},s=Object.keys(a),delete e.labels,s.length?s.forEach(function(l){a[l]&&i.push(lo({},[e,a[l],{_key:l}]))}):i.push(e),o=i.reduce(function(l,c){return Je(c.listeners||{},function(u,h){l[h]=l[h]||{},l[h][c._key||y1]=u}),delete c.listeners,l},{}),{labels:i,listeners:o})}function Wu(t,e,n,o){if(e){var i=n.$context,a=n.$groups,s;e[a._set]&&(s=e[a._set][a._key],s&&$e(s,[i,o])===!0&&(t[sn]._dirty=!0,n.update(i)))}}function D9(t,e,n,o,i){var a,s;!n&&!o||(n?o?n!==o&&(s=a=!0):s=!0:a=!0,s&&Wu(t,e.leave,n,i),a&&Wu(t,e.enter,o,i))}function B9(t,e){var n=t[sn],o=n._listeners,i,a;if(!(!o.enter&&!o.leave)){if(e.type==="mousemove")a=Ja.lookup(n._labels,e);else if(e.type!=="mouseout")return;i=n._hovered,n._hovered=a,D9(t,o,i,a,e)}}function P9(t,e){var n=t[sn],o=n._listeners.click,i=o&&Ja.lookup(n._labels,e);i&&Wu(t,o,i,e)}var ju={id:"datalabels",defaults:A9,beforeInit:function(t){t[sn]={_actives:[]}},beforeUpdate:function(t){var e=t[sn];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,n){var o=e.index,i=t[sn],a=i._datasets[o]=[],s=t.isDatasetVisible(o),l=t.data.datasets[o],c=E9(l,n),u=e.meta.data||[],h=t.ctx,p,m,b,y,v,k,x,C;for(h.save(),p=0,b=u.length;p<b;++p)if(x=u[p],x[sn]=[],s&&x&&t.getDataVisibility(p)&&!x.skip)for(m=0,y=c.labels.length;m<y;++m)v=c.labels[m],k=v._key,C=new h1(v,h,x,p),C.$groups={_set:o,_key:k||y1},C.$context={active:!1,chart:t,dataIndex:p,dataset:l,datasetIndex:o},C.update(C.$context),x[sn].push(C),a.push(C);h.restore(),lo(i._listeners,c.listeners,{merger:function(B,O,A){O[B]=O[B]||{},O[B][e.index]=A[B],i._listened=!0}})},afterUpdate:function(t){t[sn]._labels=Ja.prepare(t[sn]._datasets)},afterDatasetsDraw:function(t){Ja.draw(t,t[sn]._labels)},beforeEvent:function(t,e){if(t[sn]._listened){var n=e.event;switch(n.type){case"mousemove":case"mouseout":B9(t,n);break;case"click":P9(t,n);break}}},afterEvent:function(t){var e=t[sn],n=e._actives,o=e._actives=t.getActiveElements(),i=qa.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[sn]||[],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)&&(Ja.update(e._labels),t.render()),delete e._dirty}};const I9={class:"flex flex-col h-full m-24 overflow-hidden p-24"},O9={class:"flex flex-col gap-8"},N9={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},V9={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},R9={class:"grow"},v1=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,Ac(h,.5)),b.addColorStop(1,Ac(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=Yo(u.color)??"";let p;u.borderColor===null?p=void 0:u.borderColor?p=Yo(u.borderColor):p=h;let m;return u.backgroundColor===null?m=void 0:u.backgroundColor?m=Yo(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(){on.register(ju),n.value&&(o=new on(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",I9,[r.createElementVNode("div",O9,[r.renderSlot(u.$slots,"title"),r.createElementVNode("div",N9,r.toDisplayString(u.name),1),r.createElementVNode("div",V9,r.toDisplayString(u.paragraph),1)]),r.createElementVNode("div",R9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),T9={class:"flex flex-col h-full overflow-hidden px-24 py-16"},F9={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:"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=>Yo(m)??"")),typeof h.backgroundColor=="string"?p=h.backgroundColor:typeof h.backgroundColor=="object"&&(p=h.backgroundColor.map(m=>Yo(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 k=a.value.split(`
38
+ `);for(let x=0;x<k.length;x++){const C=x===0?1:.7;b.fillStyle=Ac(Yo(e.textColor)??"",C),b.fillText(k[x],y,v+x*40)}}}}};function u(){on.register(ju),n.value&&(o=new on(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",T9,[r.createElementVNode("div",F9,[r.renderSlot(h.$slots,"title"),r.createElementVNode("div",M9,r.toDisplayString(h.name),1),r.createElementVNode("div",L9,r.toDisplayString(h.paragraph),1)]),r.createElementVNode("div",z9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(s.value)},null,4)])]))}}),H9={class:"flex flex-col h-full overflow-hidden px-24 py-16"},U9={class:"flex flex-col gap-8"},W9={class:"fm-color-typo-primary fm-typo-en-body-lg-400"},j9={class:"fm-color-typo-secondary fm-typo-en-body-md-400"},G9={class:"grow"},Q9=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=>Yo(m)??"")),typeof c.borderColor=="string"?h=c.borderColor:typeof c.borderColor=="object"&&(h=(p=c.borderColor)==null?void 0:p.map(m=>Yo(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(){on.register(ju),n.value&&(o=new on(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",H9,[r.createElementVNode("div",U9,[r.renderSlot(c.$slots,"title"),r.createElementVNode("div",W9,r.toDisplayString(c.name),1),r.createElementVNode("div",j9,r.toDisplayString(c.paragraph),1)]),r.createElementVNode("div",G9,[r.createElementVNode("canvas",{ref_key:"canvas",ref:n,style:r.normalizeStyle(a.value)},null,4)])]))}}),X9={class:"fm-typo-en-body-lg-600"},q9={class:"h-[264px] overflow-y-auto w-[160px]"},K9=["onVnodeMounted"],J9=["onVnodeMounted"],Ri=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=q(n.min).startOf("year"),h=q(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=q(n.min).startOf("month"),p=q(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=q(n.min).startOf("month"),p=q(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(so,{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",X9,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(_)("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(_)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ge,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",q9,[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(_)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")))},[r.createVNode(Dt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")),label:p.format(r.unref(_)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,K9))),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(_)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")))},[r.createVNode(Dt,{"model-value":u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")),label:p.format(r.unref(_)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,J9))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),Io=Ie(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:[wi(4),xi(),Lc({crossAxis:!0})],placement:o.placement,whileElementsMounted:ki,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=v=>{if(!i.value)return;const k=v==null?void 0:v.target;k instanceof Element&&k.closest(`.fm-popover__content:not(#${m})`)||(i.value=!1,c("popover-changed",i.value))};return(v,k)=>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(_c),y,b.value]])}}),[["__scopeId","data-v-6a5803f1"]]),pe="YYYY-MM-DD",Oo="YYYY-MM-DDTHH:mm",Gu=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},k1=(t,e)=>{const n=q().startOf("month"),o=q(t).diff(n,"month"),i=q(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},Ti=()=>[_("date.day.sun"),_("date.day.mon"),_("date.day.tue"),_("date.day.wed"),_("date.day.thu"),_("date.day.fri"),_("date.day.sat")],Y9={class:"p-12 w-[360px]"},Z9={class:"w-max"},$9={class:"flex h-40 justify-between px-4 py-8"},e5={class:"flex gap-4 items-center"},t5={class:"flex gap-4 items-center justify-center"},n5={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},o5=["onClick"],r5={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},i5=Ie(r.defineComponent({__name:"FmDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,pe)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=r.ref(!1),u=r.ref(!1),h=y=>{i.value=y},p=()=>{o.value=i.value.format(pe),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?q(o.value):null,a.value=!1},b=y=>{c.value=!1,u.value=!1,l.value=y};return(y,v)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":v[5]||(v[5]=k=>r.isRef(o)?o.value=k: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:k})=>[r.createVNode(Io,{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:k,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value})),void 0,!0):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:k,"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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",Y9,[r.createElementVNode("div",Z9,[r.createElementVNode("div",$9,[r.createElementVNode("div",e5,[r.createVNode(Ri,{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(Ri,{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",t5,[r.createVNode(ge,{outline:!1,class:"cursor-pointer",color:"#1C1C1E",name:"chevron_left",onClick:v[2]||(v[2]=()=>b(l.value.subtract(1,"month")))}),r.createVNode(ge,{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",n5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),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(Gu)(l.value),(x,C)=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(x,B=>(r.openBlock(),r.createElementBlock("div",{key:B.date.date(),class:"fm-calendar__cell"},[B.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":B.date.isSame(i.value)},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(B.date)},r.toDisplayString(B.date.date()),11,o5)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",r5,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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"]]),w1=t=>(r.pushScopeId("data-v-43495396"),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%-208px)] justify-center relative w-full"},c5=w1(()=>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"],b5={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},y5=w1(()=>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"},x1=Ie(r.defineComponent({__name:"FmDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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(tt,null),o=k1(e.min,e.max),i=Te(e,"modelValue"),a=q(),s=r.ref(q(i.value,pe)),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(pe),setTimeout(()=>{l.value=!1},0)},m=()=>{s.value=i.value?q(i.value):null,l.value=!1},b=()=>{l.value=!0,setTimeout(()=>{u.value.scrollToItem(y(a.startOf("month")))},0)},y=v=>o.findIndex(k=>k.id===v.startOf("month").format(pe));return(v,k)=>{const x=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":k[0]||(k[0]=C=>r.isRef(i)?i.value=C: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:C})=>[v.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:b},[r.renderSlot(v.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({invalid:C,opened:l.value,showValidBorder:v.showValidBorder})),void 0,!0)])):(r.openBlock(),r.createBlock(ct,{key:1,disabled:c.value,focused:l.value,invalid:C,"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(q)(r.unref(i)).format(r.unref(_)("date.format")):r.unref(_)("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",a5,[r.createVNode(ct,{focused:l.value,invalid:C,"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 B,O;return[r.createElementVNode("div",{class:r.normalizeClass([[c.value?"text-fm-color-typo-disabled":(B=s.value)!=null&&B.isValid()?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((O=s.value)!=null&&O.isValid()?r.unref(q)(s.value).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["focused","invalid","show-valid-border"]),r.createElementVNode("div",s5,[r.createElementVNode("div",l5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),B=>(r.openBlock(),r.createElementBlock("div",{key:B,class:"fm-calendar__cell"},r.toDisplayString(B),1))),128))])])]),r.createElementVNode("div",d5,[c5,r.createElementVNode("div",u5,[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:B})=>[r.createElementVNode("div",{id:B.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(q)(B.id).format(r.unref(_)("date.monthFormat"))),1),r.createElementVNode("div",m5,r.toDisplayString(r.unref(q)(B.id).format(r.unref(_)("date.yearFormat"))),1)])],8,f5),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(B.matrix,(O,A)=>(r.openBlock(),r.createElementBlock("div",{key:A,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(O,T=>(r.openBlock(),r.createElementBlock("div",{key:T.date.date(),class:"fm-calendar__cell"},[T.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([{"fm-calendar__cell__button--selected":T.date.isSame(s.value),"fm-typo-en-body-lg-600":T.date.isSame(r.unref(a),"day")},"fm-calendar__cell__button"]),type:"button",onClick:()=>h(T.date)},r.toDisplayString(T.date.date()),11,g5)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",b5,[y5,r.createElementVNode("div",v5,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!s.value,label:r.unref(_)("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"]]),Vl=t=>{const e=r.inject(tt,null);return r.computed(()=>{const n=t.disabled??(e==null?void 0:e.getDisabled())??!1;return{...t,disabled:n}})},k5=r.defineComponent({__name:"FmDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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}=nr(),n=t,o=Te(n,"modelValue"),i=Vl(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(i5,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(x1,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))}}),S1=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))}}),w5={class:"cursor-pointer fm-switch__container"},x5={key:0,class:"space-y-4"},S5={class:"fm-typo-en-body-lg-400"},C5={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},A5={class:"fm-switch__input--container"},E5=["checked","disabled","value"],D5={key:1,class:"space-y-4"},B5={class:"fm-typo-en-body-lg-400"},P5={key:0,class:"text-fm-color-typo-secondary fm-typo-en-body-md-400"},Rl=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),a=()=>{o.value||(i.value=!i.value)};return(s,l)=>(r.openBlock(),r.createElementBlock("label",w5,[s.labelPlacement==="left"?(r.openBlock(),r.createElementBlock("div",x5,[r.renderSlot(s.$slots,"label",{},void 0,!0),r.createElementVNode("div",S5,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",C5,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",A5,[r.createElementVNode("input",{checked:r.unref(i),disabled:o.value,value:s.value,class:"fm-switch__input--btn",type:"checkbox",onClick:a},null,8,E5),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(ge,{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",D5,[r.createElementVNode("div",B5,r.toDisplayString(s.label),1),s.sublabel?(r.openBlock(),r.createElementBlock("div",P5,r.toDisplayString(s.sublabel),1)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-48c9e062"]]);var Vn=(t=>(t.AM="AM",t.PM="PM",t))(Vn||{});function xn(t){return t.toString().padStart(2,"0")}function I5(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),`${xn(s)}:${xn(i)}:${a}`}function ln(t){const[e,n,o]=I5(t).split(":");return{hours:Number(e),minutes:Number(n),period:o}}function Qu({hours:t,minutes:e,period:n}){let o=t;return n==="PM"?o=t===12?t:t+12:t===12&&(o=0),`${xn(o)}:${xn(e)}`}const O5={class:"flex flex-col gap-8 fm-time-input items-center"},N5=["value","maxlength"],C1=Ie(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(xn(n.min)),o("update:model-value",n.min)):p>n.max?(a(xn(n.max)),o("update:model-value",n.max)):(a(xn(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",O5,[r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:u},[r.createVNode(ge,{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,N5),r.createElementVNode("div",{class:"fm-time-input__scroller",onClick:h},[r.createVNode(ge,{name:"expand_more",size:"md"})])]))}}),[["__scopeId","data-v-ced7c472"]]),V5={class:"flex fm-time-input items-center"},R5=r.createElementVNode("div",{class:"fm-typo-en-title-sm-600 w-6 flex items-center justify-center"},[r.createElementVNode("span",null,":")],-1),T5={class:"fm-time-input-periods ml-16"},F5=["onClick"],Tl=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===Vn.AM?Vn.PM:Vn.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",V5,[r.createVNode(C1,{"model-value":r.unref(xn)(t.modelValue.hours),min:1,max:12,"onUpdate:modelValue":s[0]||(s[0]=l=>i({hours:l}))},null,8,["model-value"]),R5,r.createVNode(C1,{"model-value":r.unref(xn)(t.modelValue.minutes),min:0,max:59,"onUpdate:modelValue":s[1]||(s[1]=l=>i({minutes:l}))},null,8,["model-value"]),r.createElementVNode("div",T5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Vn),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,F5))),128))])]))}}),M5={class:"flex gap-8"},L5={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},z5={class:"flex items-center justify-center py-16 w-full"},_5={class:"flex justify-end gap-8"},No=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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),a=r.ref(null),s=r.computed(()=>{if(!i.value)return null;const{hours:u,minutes:h,period:p}=ln(i.value);return`${xn(u)}:${xn(h)} ${p}`});function l(){if(!a.value){i.value=null;return}const u=Qu(a.value);i.value=u,c.value=!1}r.onMounted(()=>{i.value&&(a.value=ln(i.value))}),r.watch(()=>i.value,u=>{u&&(a.value=ln(u))});const c=r.ref(!1);return r.watchEffect(()=>{o.value||(c.value?a.value=ln(i.value??"00:00"):a.value=i.value?ln(i.value):null)}),(u,h)=>(r.openBlock(),r.createBlock(Rt,{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(Io,{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(ct,{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",M5,[r.createVNode(ge,{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",L5,[r.createElementVNode("div",z5,[r.createVNode(Tl,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":h[0]||(h[0]=m=>a.value=m)},null,8,["model-value"])]),r.createElementVNode("div",_5,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:h[1]||(h[1]=m=>c.value=!1)},null,8,["label"]),r.createVNode(we,{label:r.unref(_)("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"]))}});var Bt=(t=>(t.PRECEDING_PERIOD="PRECEDING_PERIOD",t.PRECEDING_WEEK="PRECEDING_WEEK",t.PRECEDING_MONTH="PRECEDING_MONTH",t.CUSTOM="CUSTOM",t))(Bt||{});const A1=t=>(r.pushScopeId("data-v-0a4d28bb"),t=t(),r.popScopeId(),t),H5={key:0,class:"flex gap-4 items-center relative w-full"},U5={class:"flex flex-col gap-4 w-full"},W5=A1(()=>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)),j5={class:"flex flex-col gap-4 w-full"},G5={key:1,class:"flex flex-col gap-4 w-full"},Q5={class:"flex gap-4 p-12"},X5={key:0,class:"max-h-[549px] overflow-y-auto w-[171px]"},q5={key:0,class:"px-8"},K5={key:1,class:"-my-12 border-fm-color-neutral-gray-100 border-l shrink-0"},J5={class:"flex flex-col gap-24"},Y5={key:0,class:"flex gap-4 items-center px-12 w-full"},Z5={class:"flex flex-col gap-4 w-full"},$5=A1(()=>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)),e6={class:"flex flex-col gap-4 w-full"},t6={class:"flex gap-24"},n6={class:"w-max"},o6={class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},r6={class:"flex gap-4 items-center"},i6={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},a6={class:"h-[288px]"},s6={key:0,class:"fm-calendar__cell__button--today"},l6=["onClick","onMouseover"],d6={class:"w-max"},c6={class:"flex gap-16 h-10 items-center justify-end px-4 py-8"},u6={class:"flex gap-4 items-center"},f6={class:"fm-calendar__row fm-typo-en-body-lg-400 text-fm-color-typo-tertiary"},p6={key:0,class:"fm-calendar__cell__button--today"},h6=["onClick","onMouseover"],m6={key:0,class:"flex gap-16 items-end px-12 pt-8 w-full"},g6={class:"flex gap-8 h-72 items-center justify-end py-16 w-full"},b6=Ie(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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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 he,ke,W,$;const e=[{id:Bt.PRECEDING_PERIOD,label:_("date.precedingPeriod"),sublabel:"",action:()=>{C.value=Bt.PRECEDING_PERIOD;const U=u.value;if(U[0].startDate&&U[0].endDate){const J=U[0].startDate.diff(U[0].endDate,"day");U[1]={startDate:U[0].startDate.subtract(+(1-J),"day"),endDate:U[0].startDate.subtract(1,"day")}}}},{id:Bt.PRECEDING_WEEK,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfWeek"),action:()=>{C.value=Bt.PRECEDING_WEEK;const U=u.value;if(U[0].startDate&&U[0].endDate){let J=U[0].endDate.diff(U[0].startDate,"week");J===0&&(J+=1),U[1]={startDate:U[0].startDate.subtract(J,"week"),endDate:U[0].endDate.subtract(J,"week")}}}},{id:Bt.PRECEDING_MONTH,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfMonth"),action:()=>{C.value=Bt.PRECEDING_MONTH;const U=u.value;if(U[0].startDate&&U[0].endDate){let J=U[0].endDate.diff(U[0].startDate,"month");J===0&&(J+=1),U[1]={startDate:U[0].startDate.subtract(J,"month"),endDate:U[0].endDate.subtract(J,"month")}}}},{id:Bt.CUSTOM,label:_("date.match.custom"),sublabel:"",action:()=>{C.value=Bt.CUSTOM}}],n=t,o=r.inject(tt,null),i=n.showTime?Oo:pe,a=U=>/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/.test(U)?U.replace(" ","T"):U,s=U=>U?q(a(U)):null,l=q(),c=Te(n,"modelValue"),u=r.ref([{startDate:s((he=c.value)==null?void 0:he.startDate),endDate:s((ke=c.value)==null?void 0:ke.endDate)},{startDate:null,endDate:null}]),h=r.ref(((W=u.value[0].startDate)==null?void 0:W.format("HH:mm"))??"00:00"),p=r.ref((($=u.value[0].endDate)==null?void 0:$.format("HH:mm"))??"23:59"),m=r.ref("00:00"),b=r.ref("23:59"),y=(U,J)=>{const[oe,Z]=J.split(":").map(Number);return U.startOf("day").hour(oe).minute(Z)},v=r.ref(!1),k=r.computed(()=>n.disabled??(o==null?void 0:o.getDisabled())??!1),x=r.ref(!1),C=r.ref(""),B=r.ref(q().startOf("month")),O=r.ref(q().startOf("month").add(1,"month")),A=r.ref(""),T=r.ref(null);let E=0;const L=U=>{var J;if(A.value="",u.value[E].startDate&&u.value[E].endDate){E===1&&(u.value=u.value.map(()=>({startDate:null,endDate:null})),E=0),u.value[0]={startDate:U,endDate:null};return}else if(!u.value[E].startDate&&!u.value[E].endDate)u.value[E].startDate=U;else{if(U.isBefore(u.value[E].startDate)){const oe=u.value[E].startDate;u.value[E]={startDate:U,endDate:oe}}else u.value[E].endDate=U;x.value&&(E=1),e.find(oe=>oe.id===C.value)||(C.value=Bt.CUSTOM)}(J=e.find(oe=>oe.id===C.value))==null||J.action()},H=()=>{const U=(J,oe)=>({startDate:(n.showTime?y(J.startDate,oe[0]):J.startDate).format(i),endDate:(n.showTime?y(J.endDate,oe[1]):J.endDate).format(i)});x.value?c.value=[U(u.value[0],[h.value,p.value]),U(u.value[1],[m.value,b.value])]:c.value=U(u.value[0],[h.value,p.value]),setTimeout(()=>{v.value=!1})},j=()=>{var U,J,oe,Z,ue,ae,ye,Qe;Array.isArray(c.value)?(u.value=c.value.map(Me=>({startDate:s(Me==null?void 0:Me.startDate),endDate:s(Me==null?void 0:Me.endDate)})),n.showTime&&(h.value=((U=u.value[0].startDate)==null?void 0:U.format("HH:mm"))??"00:00",p.value=((J=u.value[0].endDate)==null?void 0:J.format("HH:mm"))??"23:59",m.value=((oe=u.value[1].startDate)==null?void 0:oe.format("HH:mm"))??"00:00",b.value=((Z=u.value[1].endDate)==null?void 0:Z.format("HH:mm"))??"23:59")):(u.value[0]={startDate:s((ue=c.value)==null?void 0:ue.startDate),endDate:s((ae=c.value)==null?void 0:ae.endDate)},n.showTime&&(h.value=((ye=u.value[0].startDate)==null?void 0:ye.format("HH:mm"))??"00:00",p.value=((Qe=u.value[0].endDate)==null?void 0:Qe.format("HH:mm"))??"23:59")),v.value=!1},X=(U,J)=>{U==="left"?(B.value=J,O.value=J.add(1,"month")):U==="right"&&(O.value=J,B.value=J.subtract(1,"month"))},I=U=>{const J=u.value[0].startDate,oe=u.value[0].endDate,Z=u.value[1].startDate,ue=u.value[1].endDate,ae=T.value,ye=J==null?void 0:J.isSame(U),Qe=oe==null?void 0:oe.isSame(U),Me=Z==null?void 0:Z.isSame(U),ut=ue==null?void 0:ue.isSame(U),Lt=ae==null?void 0:ae.isSame(U),gr=ye&&oe&&!(ye&&Qe)||J&&!oe&&ye&&(ae==null?void 0:ae.isAfter(J))||J&&!oe&&Lt&&(ae==null?void 0:ae.isBefore(J)),Yt=Me&&ue&&!(Me&&ut)||Z&&!ue&&Me&&(ae==null?void 0:ae.isAfter(Z))||Z&&!ue&&Lt&&(ae==null?void 0:ae.isBefore(Z)),br=Qe&&J&&!(ye&&Qe)||J&&!oe&&ye&&(ae==null?void 0:ae.isBefore(J))||J&&!oe&&Lt&&(ae==null?void 0:ae.isAfter(J)),Zr=ut&&Z&&!(Me&&ut)||Z&&!ue&&Me&&(ae==null?void 0:ae.isBefore(Z))||Z&&!ue&&Lt&&(ae==null?void 0:ae.isAfter(Z)),Yn=ye&&Qe||ye&&!oe,zt=Me&&ut||Me&&!ue,Cn=J&&(oe||ae)&&oe?U.isAfter(J)&&U.isBefore(oe):U.isAfter(ae)&&U.isBefore(J)||U.isBefore(ae)&&U.isAfter(J),yr=Z&&(ue||ae)&&ue?U.isAfter(Z)&&U.isBefore(ue):U.isAfter(ae)&&U.isBefore(Z)||U.isBefore(ae)&&U.isAfter(Z),Mo=()=>{if(u.value.filter(Qi=>{var vr;for(const kr in Qi)if((vr=Qi[kr])!=null&&vr.isSame(U,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(ye&&Qe&&(bt(U,Z,ue)||bt(U,Z,ae)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(Me&&ut&&(bt(U,J,oe)||bt(U,J,ae)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(gr||br)return bt(U,Z,ue)||bt(U,Z,ae)?"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(Yt||Zr)return bt(U,J,oe)||bt(U,J,ae)?"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(Yn)return"bg-fm-color-primary";if(zt)return"bg-fm-color-system-info-300";if(bt(U,J,oe)&&(bt(U,Z,ue)||bt(U,Z,ae)))return"bg-fm-color-system-success-100";if(Cn)return"bg-fm-color-system-warning-100";if(yr)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Mo()}`]:gr||Yt,[`fm-calendar__cell__button--selected-end ${Mo()}`]:br||Zr,[`fm-calendar__cell__button--selected-between ${Mo()}`]:Cn||yr,[`fm-calendar__cell__button--selected ${Mo()}`]:Yn||zt}},F=U=>{const J=u.value;if(J[0].startDate&&!J[0].endDate||J[1].startDate&&!J[1].endDate){T.value=U;return}T.value=null},N=U=>{A.value=U.label;const J=q(U.value.startDate,[Oo,pe]),oe=q(U.value.endDate,[Oo,pe]);if(u.value[0]={startDate:J,endDate:oe},n.showTime){const Z=(U.value.startDate??"").includes(" "),ue=(U.value.endDate??"").includes(" ");h.value=Z?J.format("HH:mm"):"00:00",p.value=ue?oe.format("HH:mm"):"23:59"}X("left",J.startOf("month"))},R=r.computed(()=>x.value?!u.value.every(U=>U.startDate&&U.endDate):!(u.value[0].startDate&&u.value[0].endDate)),M=U=>{C.value="",x.value=U,u.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),E=0},V=r.computed(()=>n.showTime?`${_("date.format")} HH:mm`:_("date.format")),Q=U=>{const J=s(U);return J!=null&&J.isValid()?J.format(V.value):_("date.placeholder")},ee=r.computed(()=>{if(!c.value)return{startDate:_("date.placeholder"),endDate:_("date.placeholder")};const U=x.value&&Array.isArray(c.value)?c.value[0].startDate:c.value.startDate,J=x.value&&Array.isArray(c.value)?c.value[0].endDate:c.value.endDate;return{startDate:Q(U),endDate:Q(J)}}),le=r.computed(()=>{const U=x.value&&Array.isArray(c.value)?c.value[1].startDate:null,J=x.value&&Array.isArray(c.value)?c.value[1].endDate:null;return U&&J?`${_("date.compareLabel")} ${Q(U)} - ${Q(J)}`:""});return r.watch(()=>c.value,()=>{var U,J,oe,Z,ue,ae,ye,Qe;x.value?(u.value=c.value.map(Me=>({startDate:s(Me==null?void 0:Me.startDate),endDate:s(Me==null?void 0:Me.endDate)})),n.showTime&&(h.value=((ue=u.value[0].startDate)==null?void 0:ue.format("HH:mm"))??h.value,p.value=((ae=u.value[0].endDate)==null?void 0:ae.format("HH:mm"))??p.value,m.value=((ye=u.value[1].startDate)==null?void 0:ye.format("HH:mm"))??m.value,b.value=((Qe=u.value[1].endDate)==null?void 0:Qe.format("HH:mm"))??b.value)):(u.value[0]={startDate:s((U=c.value)==null?void 0:U.startDate),endDate:s((J=c.value)==null?void 0:J.endDate)},n.showTime&&(h.value=((oe=u.value[0].startDate)==null?void 0:oe.format("HH:mm"))??h.value,p.value=((Z=u.value[0].endDate)==null?void 0:Z.format("HH:mm"))??p.value))}),(U,J)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(c),"onUpdate:modelValue":J[12]||(J[12]=oe=>r.isRef(c)?c.value=oe:null),disabled:k.value,focused:v.value,"helper-state":U.helperState,"helper-text":x.value?le.value:U.helperText,rules:U.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:oe})=>[r.createVNode(Io,{disabled:k.value,"show-popover":v.value,"z-index":n.zIndex,onPopoverChanged:J[11]||(J[11]=Z=>v.value=Z)},{"popover-button":r.withCtx(()=>[U.$slots["trigger-button"]?r.renderSlot(U.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:v.value,invalid:oe,showValidBorder:U.showValidBorder,isComparing:x.value,disabled:k.value})),void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[U.compare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",H5,[r.createElementVNode("label",U5,[r.createVNode(vn,{disabled:k.value,label:n.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),disabled:k.value,focused:v.value,"icon-outlined":!v.value,invalid:oe,"show-valid-border":U.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var Z;return[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled cursor-not-allowed":"text-fm-color-typo-primary cursor-pointer"],"fm-typo-en-body-lg-400"])},r.toDisplayString(Q((Z=r.unref(c))==null?void 0:Z.startDate)),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),W5,r.createElementVNode("label",j5,[r.createVNode(vn,{disabled:k.value,label:n.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),disabled:k.value,focused:v.value,"icon-outlined":!v.value,invalid:oe,"show-valid-border":U.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>{var Z;return[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled":ee.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(Q((Z=r.unref(c))==null?void 0:Z.endDate)),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])])),U.compare?(r.openBlock(),r.createElementBlock("label",G5,[r.createVNode(vn,{label:U.compareLabel??r.unref(_)("date.compare"),locale:U.locale},null,8,["label","locale"]),r.createVNode(ct,{class:r.normalizeClass(k.value?"cursor-not-allowed":"cursor-pointer"),focused:v.value,invalid:oe,"show-valid-border":U.showValidBorder},{prepend:r.withCtx(()=>[r.renderSlot(U.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(U.$slots,"append",{},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[k.value?"text-fm-color-typo-disabled":ee.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(ee.value.startDate)+" - "+r.toDisplayString(ee.value.endDate),3)]),_:2},1032,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)],64))]),default:r.withCtx(()=>[r.createElementVNode("div",Q5,[U.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",X5,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(U.predefinedRange,(Z,ue)=>(r.openBlock(),r.createBlock(Dt,{key:ue,label:Z.label,"model-value":A.value===Z.label,selectable:"",onClick:ae=>N(Z)},null,8,["label","model-value","onClick"]))),128)),U.compare&&U.predefinedRange?(r.openBlock(),r.createElementBlock("div",q5,[r.createVNode(S1,{inset:""})])):r.createCommentVNode("",!0),U.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Rl,{"model-value":x.value,class:"justify-between px-12",label:r.unref(_)("date.label.compare"),"onUpdate:modelValue":J[0]||(J[0]=Z=>M(Z))},null,8,["model-value","label"]),x.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},r.renderList(e,(Z,ue)=>r.createVNode(Dt,{key:ue,label:Z.label,"model-value":C.value===Z.id,sublabel:Z.sublabel,selectable:"",onClick:ae=>Z.action()},null,8,["label","model-value","sublabel","onClick"])),64)):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),U.showPredefinedRange?(r.openBlock(),r.createElementBlock("div",K5)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass({"pl-4":U.showPredefinedRange})},[r.createElementVNode("div",J5,[x.value?(r.openBlock(),r.createElementBlock("div",Y5,[r.createElementVNode("label",Z5,[r.createVNode(vn,{locale:U.locale,label:r.unref(_)("date.label.custom")},null,8,["locale","label"]),r.createVNode(ct,{focused:!1},{default:r.withCtx(()=>{var Z,ue;return[r.createElementVNode("div",{class:r.normalizeClass([[(Z=u.value[0])!=null&&Z.startDate&&((ue=u.value[0])!=null&&ue.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(u.value[0].startDate!==null?y(u.value[0].startDate,h.value).format(V.value):r.unref(_)("date.placeholder"))+" - "+r.toDisplayString(u.value[0].endDate!==null?y(u.value[0].endDate,p.value).format(V.value):r.unref(_)("date.placeholder")),3)]}),_:1})]),$5,r.createElementVNode("label",e6,[r.createVNode(vn,{locale:U.locale,label:r.unref(_)("date.label.compare")},null,8,["locale","label"]),r.createVNode(ct,{focused:!1},{default:r.withCtx(()=>{var Z,ue;return[r.createElementVNode("div",{class:r.normalizeClass([[(Z=u.value[1])!=null&&Z.startDate&&((ue=u.value[1])!=null&&ue.endDate)?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(u.value[1].startDate!==null?y(u.value[1].startDate,m.value).format(V.value):r.unref(_)("date.placeholder"))+" - "+r.toDisplayString(u.value[1].endDate!==null?y(u.value[1].endDate,b.value).format(V.value):r.unref(_)("date.placeholder")),3)]}),_:1})])])):r.createCommentVNode("",!0),r.createElementVNode("div",t6,[r.createElementVNode("div",n6,[r.createElementVNode("div",o6,[r.createElementVNode("div",r6,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",onClick:J[1]||(J[1]=()=>X("left",B.value.subtract(1,"month")))}),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":B.value,picker:"month","onUpdate:modelValue":J[2]||(J[2]=Z=>X("left",Z))},null,8,["max","min","model-value"]),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":B.value,picker:"year","onUpdate:modelValue":J[3]||(J[3]=Z=>X("left",Z))},null,8,["max","min","model-value"])])]),r.createElementVNode("div",null,[r.createElementVNode("div",i6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))]),r.createElementVNode("div",a6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Gu)(B.value),(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.date.isSame(r.unref(l),"day")&&ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",s6)):r.createCommentVNode("",!0),ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[I(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(l),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>L(ae.date),onMouseover:ye=>F(ae.date)},r.toDisplayString(ae.date.date()),43,l6)):r.createCommentVNode("",!0)]))),128))]))),128))])])]),r.createElementVNode("div",d6,[r.createElementVNode("div",c6,[r.createElementVNode("div",u6,[r.createVNode(Ri,{max:U.max,min:U.min,"model-value":O.value,picker:"month","onUpdate:modelValue":J[4]||(J[4]=Z=>X("right",Z))},null,8,["max","min","model-value"]),r.createVNode(Ri,{max:U.max,min:U.min,"model-value":O.value,picker:"year","onUpdate:modelValue":J[5]||(J[5]=Z=>X("right",Z))},null,8,["max","min","model-value"])]),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",onClick:J[6]||(J[6]=()=>X("left",B.value.add(1,"month")))})]),r.createElementVNode("div",null,[r.createElementVNode("div",f6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),Z=>(r.openBlock(),r.createElementBlock("div",{key:Z,class:"fm-calendar__cell"},r.toDisplayString(Z),1))),128))]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Gu)(O.value),(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.date.isSame(r.unref(l),"day")&&ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("div",p6)):r.createCommentVNode("",!0),ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:1,class:r.normalizeClass([[I(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(l),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>L(ae.date),onMouseover:ye=>F(ae.date)},r.toDisplayString(ae.date.date()),43,h6)):r.createCommentVNode("",!0)]))),128))]))),128))])])])])]),U.showTime?(r.openBlock(),r.createElementBlock("div",m6,[r.createVNode(No,{modelValue:h.value,"onUpdate:modelValue":J[7]||(J[7]=Z=>h.value=Z),label:r.unref(_)("time.start"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:p.value,"onUpdate:modelValue":J[8]||(J[8]=Z=>p.value=Z),label:r.unref(_)("time.end"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),x.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(No,{modelValue:m.value,"onUpdate:modelValue":J[9]||(J[9]=Z=>m.value=Z),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.start"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:b.value,"onUpdate:modelValue":J[10]||(J[10]=Z=>b.value=Z),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.end"),"z-index":n.zIndex?n.zIndex+1:void 0,class:"w-full"},null,8,["modelValue","label","z-index"])],64)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",g6,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:j},null,8,["label"]),r.createVNode(we,{disabled:R.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:H},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[U.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(U.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),[["__scopeId","data-v-0a4d28bb"]]);var E1={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(nn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(k){this[v]=+k}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var x=k.match(/([+-]|\d\d)/g),C=60*x[1]+(+x[2]||0);return C===0?0:x[0]==="+"?-C:C}(v)}],p=function(v){var k=l[v];return k&&(k.indexOf?k:k.s.concat(k.f))},m=function(v,k){var x,C=l.meridiem;if(C){for(var B=1;B<=24;B+=1)if(v.indexOf(C(B,0,k))>-1){x=B>12;break}}else x=v===(k?"pm":"PM");return x},b={A:[s,function(v){this.afternoon=m(v,!1)}],a:[s,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(v){var k=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],k)for(var C=1;C<=31;C+=1)k(C).replace(/\[|\]/g,"")===v&&(this.day=C)}],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(v){var k=p("months"),x=(p("monthsShort")||k.map(function(C){return C.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(v){var k=p("months").indexOf(v)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function y(v){var k,x;k=v,x=l&&l.formats;for(var C=(v=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(H,j,X){var I=X&&X.toUpperCase();return j||x[X]||n[X]||x[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,N,R){return N||R.slice(1)})})).match(o),B=C.length,O=0;O<B;O+=1){var A=C[O],T=b[A],E=T&&T[0],L=T&&T[1];C[O]=L?{regex:E,parser:L}:A.replace(/^\[|\]$/g,"")}return function(H){for(var j={},X=0,I=0;X<B;X+=1){var F=C[X];if(typeof F=="string")I+=F.length;else{var N=F.regex,R=F.parser,M=H.slice(I),V=N.exec(M)[0];R.call(j,V),H=H.replace(V,"")}}return function(Q){var ee=Q.afternoon;if(ee!==void 0){var le=Q.hours;ee?le<12&&(Q.hours+=12):le===12&&(Q.hours=0),delete Q.afternoon}}(j),j}}return function(v,k,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var C=k.prototype,B=C.parse;C.parse=function(O){var A=O.date,T=O.utc,E=O.args;this.$u=T;var L=E[1];if(typeof L=="string"){var H=E[2]===!0,j=E[3]===!0,X=H||j,I=E[2];j&&(I=E[2]),l=this.$locale(),!H&&I&&(l=x.Ls[I]),this.$d=function(M,V,Q){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*M);var ee=y(V)(M),le=ee.year,he=ee.month,ke=ee.day,W=ee.hours,$=ee.minutes,U=ee.seconds,J=ee.milliseconds,oe=ee.zone,Z=new Date,ue=ke||(le||he?1:Z.getDate()),ae=le||Z.getFullYear(),ye=0;le&&!he||(ye=he>0?he-1:Z.getMonth());var Qe=W||0,Me=$||0,ut=U||0,Lt=J||0;return oe?new Date(Date.UTC(ae,ye,ue,Qe,Me,ut,Lt+60*oe.offset*1e3)):Q?new Date(Date.UTC(ae,ye,ue,Qe,Me,ut,Lt)):new Date(ae,ye,ue,Qe,Me,ut,Lt)}catch{return new Date("")}}(A,L,T),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),X&&A!=this.format(L)&&(this.$d=new Date("")),l={}}else if(L instanceof Array)for(var F=L.length,N=1;N<=F;N+=1){E[1]=L[N-1];var R=x.apply(this,E);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}N===F&&(this.$d=new Date(""))}else B.call(this,O)}}})})(E1);var y6=E1.exports;const v6=wa(y6),k6={key:0},w6={class:"flex gap-4 items-center relative w-full"},x6={class:"flex flex-col gap-4 w-full"},S6=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),C6={class:"flex flex-col gap-4 w-full"},A6={key:1,class:"flex flex-col gap-4 w-full"},Xu=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:{},showTime:{type:Boolean,default:!1}},setup(t){q.extend(v6);const e=t,n=r.computed(()=>e.showTime?`${_("date.format")} HH:mm`:_("date.format")),o=a=>a&&q(a,[Oo,pe]).isValid()?q(a,[Oo,pe]).format(n.value):_("date.placeholder"),i=r.computed(()=>{if(!e.modelValue)return{startDate:_("date.placeholder"),endDate:_("date.placeholder")};const a=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].startDate:e.modelValue.startDate,s=e.isComparing&&Array.isArray(e.modelValue)?e.modelValue[0].endDate:e.modelValue.endDate;return{startDate:o(a),endDate:o(s)}});return(a,s)=>(r.openBlock(),r.createElementBlock("div",null,[a.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",k6,[r.renderSlot(a.$slots,"popover-button",{},()=>[r.createElementVNode("div",w6,[r.createElementVNode("label",x6,[r.createVNode(vn,{disabled:a.disabled,label:e.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:a.disabled,focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>{var l,c;return[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":(l=a.modelValue)!=null&&l.startDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((c=a.modelValue)!=null&&c.startDate?o(a.modelValue.startDate):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),S6,r.createElementVNode("label",C6,[r.createVNode(vn,{disabled:a.disabled,label:e.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),disabled:a.disabled,focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>{var l,c;return[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":(l=a.modelValue)!=null&&l.endDate?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString((c=a.modelValue)!=null&&c.endDate?o(a.modelValue.endDate):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),a.analytic?(r.openBlock(),r.createElementBlock("label",A6,[r.createVNode(vn,{label:a.compareLabel??r.unref(_)("date.compare"),locale:a.locale},null,8,["label","locale"]),r.createVNode(ct,{class:r.normalizeClass(a.disabled?"cursor-not-allowed":"cursor-pointer"),focused:a.focused,invalid:a.invalid,"show-valid-border":a.showValidBorder,"icon-outlined":"","prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(a.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(a.$slots,"append")]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass([[a.disabled?"text-fm-color-typo-disabled":i.value.startDate!==r.unref(_)("date.placeholder")?"text-fm-color-typo-primary":"text-fm-color-typo-tertiary"],"fm-typo-en-body-lg-400"])},r.toDisplayString(i.value.startDate)+" - "+r.toDisplayString(i.value.endDate),3)]),_:3},8,["class","focused","invalid","show-valid-border"])])):r.createCommentVNode("",!0)]))}}),D1=t=>(r.pushScopeId("data-v-e2cc3110"),t=t(),r.popScopeId(),t),E6={class:"flex flex-col gap-8 pb-8 pt-24 px-16"},D6={class:"flex items-center justify-center"},B6={class:"flex fm-typo-en-body-lg-400 h-48 justify-center text-fm-color-typo-tertiary w-[336px]"},P6={class:"flex h-[calc(100%-172px)] justify-center relative w-full"},I6=D1(()=>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)),O6={id:"wrapper",class:"h-full relative w-[336px]"},N6=["id"],V6={class:"flex gap-4 items-center"},R6={class:"fm-typo-en-body-lg-600"},T6={class:"fm-typo-en-body-lg-600"},F6=["onClick","onMouseover"],M6={class:"absolute bg-fm-color-neutral-white bottom-0 left-0 p-16 w-full"},L6=D1(()=>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)),z6={key:0,class:"flex flex-col gap-8 mb-16 w-full"},_6={class:"flex gap-8 w-full"},H6={key:0,class:"flex gap-8 w-full"},U6={class:"flex gap-8 items-center justify-end w-full"},B1=Ie(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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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 ee,le,he,ke;const e=r.ref(),n=[{id:Bt.PRECEDING_PERIOD,label:_("date.precedingPeriod"),sublabel:"",action:()=>{C.value=Bt.PRECEDING_PERIOD;const W=p.value;if(W[0].startDate&&W[0].endDate){const $=W[0].startDate.diff(W[0].endDate,"day");W[1]={startDate:W[0].startDate.subtract(+(1-$),"day"),endDate:W[0].startDate.subtract(1,"day")}}}},{id:Bt.PRECEDING_WEEK,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfWeek"),action:()=>{C.value=Bt.PRECEDING_WEEK;const W=p.value;if(W[0].startDate&&W[0].endDate){let $=W[0].endDate.diff(W[0].startDate,"week");$===0&&($+=1),W[1]={startDate:W[0].startDate.subtract($,"week"),endDate:W[0].endDate.subtract($,"week")}}}},{id:Bt.PRECEDING_MONTH,label:_("date.precedingPeriod"),sublabel:_("date.match.dayOfMonth"),action:()=>{C.value=Bt.PRECEDING_MONTH;const W=p.value;if(W[0].startDate&&W[0].endDate){let $=W[0].endDate.diff(W[0].startDate,"month");$===0&&($+=1),W[1]={startDate:W[0].startDate.subtract($,"month"),endDate:W[0].endDate.subtract($,"month")}}}},{id:Bt.CUSTOM,label:_("date.match.custom"),sublabel:"",action:()=>{C.value=Bt.CUSTOM}}],o=t,i=r.inject(tt,null),a=o.showTime?Oo:pe,s=W=>W?q(W,[Oo,pe]):null,l=(W,$)=>{const[U,J]=$.split(":").map(Number);return W.startOf("day").hour(U).minute(J)},c=k1(o.min,o.max),u=q(),h=Te(o,"modelValue"),p=r.ref([{startDate:s((ee=h.value)==null?void 0:ee.startDate),endDate:s((le=h.value)==null?void 0:le.endDate)},{startDate:null,endDate:null}]),m=r.ref(((he=p.value[0].startDate)==null?void 0:he.format("HH:mm"))??"00:00"),b=r.ref(((ke=p.value[0].endDate)==null?void 0:ke.format("HH:mm"))??"23:59"),y=r.ref("00:00"),v=r.ref("23:59"),k=r.ref(!1),x=r.ref(!1),C=r.ref(""),B=r.ref(""),O=r.ref(null);let A=0;const T=W=>{var $;if(B.value="",p.value[A].startDate&&p.value[A].endDate){A===1&&(p.value=p.value.map(()=>({startDate:null,endDate:null})),A=0),p.value[0]={startDate:W,endDate:null};return}else if(!p.value[A].startDate&&!p.value[A].endDate)p.value[A].startDate=W;else{if(W.isBefore(p.value[A].startDate)){const U=p.value[A].startDate;p.value[A]={startDate:W,endDate:U}}else p.value[A].endDate=W;x.value&&(A=1),n.find(U=>U.id===C.value)||(C.value=Bt.CUSTOM)}($=n.find(U=>U.id===C.value))==null||$.action()},E=()=>{const W=($,U)=>({startDate:(o.showTime?l($.startDate,U[0]):$.startDate).format(a),endDate:(o.showTime?l($.endDate,U[1]):$.endDate).format(a)});x.value?h.value=[W(p.value[0],[m.value,b.value]),W(p.value[1],[y.value,v.value])]:h.value=W(p.value[0],[m.value,b.value]),setTimeout(()=>{k.value=!1})},L=()=>{var W,$,U,J,oe,Z,ue,ae;Array.isArray(h.value)?(p.value=h.value.map(ye=>({startDate:s(ye==null?void 0:ye.startDate),endDate:s(ye==null?void 0:ye.endDate)})),o.showTime&&(m.value=((W=p.value[0].startDate)==null?void 0:W.format("HH:mm"))??"00:00",b.value=(($=p.value[0].endDate)==null?void 0:$.format("HH:mm"))??"23:59",y.value=((U=p.value[1].startDate)==null?void 0:U.format("HH:mm"))??"00:00",v.value=((J=p.value[1].endDate)==null?void 0:J.format("HH:mm"))??"23:59")):(p.value[0]={startDate:s((oe=h.value)==null?void 0:oe.startDate),endDate:s((Z=h.value)==null?void 0:Z.endDate)},o.showTime&&(m.value=((ue=p.value[0].startDate)==null?void 0:ue.format("HH:mm"))??"00:00",b.value=((ae=p.value[0].endDate)==null?void 0:ae.format("HH:mm"))??"23:59")),k.value=!1},H=W=>{const $=p.value[0].startDate,U=p.value[0].endDate,J=p.value[1].startDate,oe=p.value[1].endDate,Z=O.value,ue=$==null?void 0:$.isSame(W),ae=U==null?void 0:U.isSame(W),ye=J==null?void 0:J.isSame(W),Qe=oe==null?void 0:oe.isSame(W),Me=Z==null?void 0:Z.isSame(W),ut=ue&&U&&!(ue&&ae)||$&&!U&&ue&&(Z==null?void 0:Z.isAfter($))||$&&!U&&Me&&(Z==null?void 0:Z.isBefore($)),Lt=ye&&oe&&!(ye&&Qe)||J&&!oe&&ye&&(Z==null?void 0:Z.isAfter(J))||J&&!oe&&Me&&(Z==null?void 0:Z.isBefore(J)),gr=ae&&$&&!(ue&&ae)||$&&!U&&ue&&(Z==null?void 0:Z.isBefore($))||$&&!U&&Me&&(Z==null?void 0:Z.isAfter($)),Yt=Qe&&J&&!(ye&&Qe)||J&&!oe&&ye&&(Z==null?void 0:Z.isBefore(J))||J&&!oe&&Me&&(Z==null?void 0:Z.isAfter(J)),br=ue&&ae||ue&&!U,Zr=ye&&Qe||ye&&!oe,Yn=$&&(U||Z)&&U?W.isAfter($)&&W.isBefore(U):W.isAfter(Z)&&W.isBefore($)||W.isBefore(Z)&&W.isAfter($),zt=J&&(oe||Z)&&oe?W.isAfter(J)&&W.isBefore(oe):W.isAfter(Z)&&W.isBefore(J)||W.isBefore(Z)&&W.isAfter(J),Cn=()=>{if(p.value.filter(Mo=>{var Lo;for(const Qi in Mo)if((Lo=Mo[Qi])!=null&&Lo.isSame(W,"day"))return!0;return!1}).length===2)return"bg-fm-color-system-success-400 before:bg-fm-color-system-success-100";if(ue&&ae&&(bt(W,J,oe)||bt(W,J,Z)))return"bg-fm-color-primary before:bg-fm-color-system-info-100 after:bg-fm-color-system-info-100";if(ye&&Qe&&(bt(W,$,U)||bt(W,$,Z)))return"bg-fm-color-system-info-300 before:bg-fm-color-system-warning-100 after:bg-fm-color-system-warning-100";if(ut||gr)return bt(W,J,oe)||bt(W,J,Z)?"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(Lt||Yt)return bt(W,$,U)||bt(W,$,Z)?"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(br)return"bg-fm-color-primary";if(Zr)return"bg-fm-color-system-info-300";if(bt(W,$,U)&&(bt(W,J,oe)||bt(W,J,Z)))return"bg-fm-color-system-success-100";if(Yn)return"bg-fm-color-system-warning-100";if(zt)return"bg-fm-color-system-info-100"};return{[`fm-calendar__cell__button--selected-start ${Cn()}`]:ut||Lt,[`fm-calendar__cell__button--selected-end ${Cn()}`]:gr||Yt,[`fm-calendar__cell__button--selected-between ${Cn()}`]:Yn||zt,[`fm-calendar__cell__button--selected ${Cn()}`]:br||Zr}},j=W=>{const $=p.value;if($[0].startDate&&!$[0].endDate||$[1].startDate&&!$[1].endDate){O.value=W;return}O.value=null},X=W=>{const $=q(W.startDate,[Oo,pe]),U=q(W.endDate,[Oo,pe]);if(p.value[0]={startDate:$,endDate:U},o.showTime){const J=(W.startDate??"").includes(" "),oe=(W.endDate??"").includes(" ");m.value=J?$.format("HH:mm"):"00:00",b.value=oe?U.format("HH:mm"):"23:59"}},I=W=>{const $=n.find(U=>U.id===W);$==null||$.action()},F=r.computed(()=>x.value?!p.value.every(W=>W.startDate&&W.endDate):!(p.value[0].startDate&&p.value[0].endDate)),N=W=>{C.value="",x.value=W,p.value=Array.from(Array(2),()=>({startDate:null,endDate:null})),A=0},R=r.computed(()=>{const W=x.value&&Array.isArray(h.value)?h.value[1].startDate:null,$=x.value&&Array.isArray(h.value)?h.value[1].endDate:null;if(W&&$){const U=s(W),J=s($);if(!(U!=null&&U.isValid())||!(J!=null&&J.isValid()))return"";const oe=o.showTime?`${_("date.format")} HH:mm`:_("date.format");return`${_("date.compareLabel")} ${U.format(oe)} - ${J.format(oe)}`}return""}),M=r.computed(()=>o.disabled??(i==null?void 0:i.getDisabled())??!1),V=()=>{M.value||(k.value=!0,setTimeout(()=>{e.value.scrollToItem(Q(u.startOf("month")))},0))},Q=W=>c.findIndex($=>$.id===W.startOf("month").format(pe));return r.watch(()=>h.value,()=>{var W,$,U,J,oe,Z,ue,ae;x.value?(p.value=h.value.map(ye=>({startDate:s(ye==null?void 0:ye.startDate),endDate:s(ye==null?void 0:ye.endDate)})),o.showTime&&(m.value=((oe=p.value[0].startDate)==null?void 0:oe.format("HH:mm"))??m.value,b.value=((Z=p.value[0].endDate)==null?void 0:Z.format("HH:mm"))??b.value,y.value=((ue=p.value[1].startDate)==null?void 0:ue.format("HH:mm"))??y.value,v.value=((ae=p.value[1].endDate)==null?void 0:ae.format("HH:mm"))??v.value)):(p.value[0]={startDate:s((W=h.value)==null?void 0:W.startDate),endDate:s(($=h.value)==null?void 0:$.endDate)},o.showTime&&(m.value=((U=p.value[0].startDate)==null?void 0:U.format("HH:mm"))??m.value,b.value=((J=p.value[0].endDate)==null?void 0:J.format("HH:mm"))??b.value))}),(W,$)=>{const U=r.resolveComponent("RecycleScroller");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(h),"onUpdate:modelValue":$[4]||($[4]=J=>r.isRef(h)?h.value=J:null),disabled:M.value,focused:k.value,"helper-state":W.helperState,"helper-text":x.value?R.value:W.helperText,rules:W.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:J})=>[W.$slots["trigger-button"]?(r.openBlock(),r.createElementBlock("div",{key:0,onClick:V},[r.renderSlot(W.$slots,"trigger-button",r.normalizeProps(r.guardReactiveProps({opened:k.value,invalid:J,showValidBorder:W.showValidBorder,isComparing:x.value,disabled:M.value})),void 0,!0)])):(r.openBlock(),r.createBlock(Xu,{key:1,analytic:W.compare,"compare-label":W.compareLabel??r.unref(_)("date.compare"),disabled:M.value,"end-label":W.endLabel??r.unref(_)("date.endDate"),focused:k.value,invalid:J,"is-comparing":x.value,"model-value":r.unref(h),"show-time":W.showTime,"show-valid-border":W.showValidBorder,"start-label":W.startLabel??r.unref(_)("date.startDate"),onClick:V},r.createSlots({_:2},[W.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(W.$slots,"popover-button",{focused:k.value},void 0,!0)]),key:"0"}:void 0]),1032,["analytic","compare-label","disabled","end-label","focused","invalid","is-comparing","model-value","show-time","show-valid-border","start-label"])),k.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",E6,[W.showPredefinedRange?(r.openBlock(),r.createBlock(ko,{key:0,items:W.predefinedRange,"model-value":B.value,"onUpdate:modelValue":X},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createVNode(Xu,{analytic:W.compare,"compare-label":W.compareLabel??r.unref(_)("date.compare"),"end-label":W.endLabel??r.unref(_)("date.endDate"),"is-comparing":x.value,"model-value":{startDate:p.value[0].startDate?(W.showTime?l(p.value[0].startDate,m.value):p.value[0].startDate).format(r.unref(a)):null,endDate:p.value[0].endDate?(W.showTime?l(p.value[0].endDate,b.value):p.value[0].endDate).format(r.unref(a)):null},"show-time":W.showTime,"start-label":W.startLabel??r.unref(_)("date.startDate")},null,8,["analytic","compare-label","end-label","is-comparing","model-value","show-time","start-label"]),W.compare?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(Rl,{"model-value":x.value,label:r.unref(_)("date.label.compare"),"label-placement":"right","onUpdate:modelValue":N},null,8,["model-value","label"]),x.value&&W.compare?(r.openBlock(),r.createBlock(ko,{key:0,items:n.map(oe=>({label:oe.label,sublabel:oe.sublabel,value:oe.id})),"model-value":C.value,"onUpdate:modelValue":I},null,8,["items","model-value"])):r.createCommentVNode("",!0),x.value&&W.compare?(r.openBlock(),r.createBlock(Xu,{key:1,analytic:W.compare,"end-label":W.endLabel??r.unref(_)("date.endDate"),"is-comparing":x.value,"model-value":{startDate:p.value[1].startDate?(W.showTime?l(p.value[1].startDate,y.value):p.value[1].startDate).format(r.unref(a)):null,endDate:p.value[1].endDate?(W.showTime?l(p.value[1].endDate,v.value):p.value[1].endDate).format(r.unref(a)):null},"show-time":W.showTime,"start-label":W.startLabel??r.unref(_)("date.startDate"),"compare-label":"Compare: Custom"},null,8,["analytic","end-label","is-comparing","model-value","show-time","start-label"])):r.createCommentVNode("",!0)],64)):r.createCommentVNode("",!0),r.createElementVNode("div",D6,[r.createElementVNode("div",B6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),oe=>(r.openBlock(),r.createElementBlock("div",{key:oe,class:"fm-calendar__cell"},r.toDisplayString(oe),1))),128))])])]),r.createElementVNode("div",P6,[I6,r.createElementVNode("div",O6,[r.createVNode(U,{ref_key:"scroller",ref:e,buffer:200,"item-size":null,items:r.unref(c),class:"h-full no-scrollbar overflow-y-auto w-full","key-field":"id","size-field":"height"},{default:r.withCtx(({item:oe})=>[r.createElementVNode("div",{id:oe.id,class:"flex gap-16 h-40 items-center justify-start px-4 py-8"},[r.createElementVNode("div",V6,[r.createElementVNode("div",R6,r.toDisplayString(r.unref(q)(oe.id).format(r.unref(_)("date.monthFormat"))),1),r.createElementVNode("div",T6,r.toDisplayString(r.unref(q)(oe.id).format(r.unref(_)("date.yearFormat"))),1)])],8,N6),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(oe.matrix,(Z,ue)=>(r.openBlock(),r.createElementBlock("div",{key:ue,class:"fm-calendar__row fm-typo-en-body-lg-400"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Z,ae=>(r.openBlock(),r.createElementBlock("div",{key:ae.date.date(),class:"fm-calendar__cell"},[ae.isCurrentMonth?(r.openBlock(),r.createElementBlock("button",{key:0,class:r.normalizeClass([[H(ae.date),{"fm-typo-en-body-lg-600":ae.date.isSame(r.unref(u),"day")}],"fm-calendar__cell__button"]),type:"button",onClick:()=>T(ae.date),onMouseover:ye=>j(ae.date)},r.toDisplayString(ae.date.date()),43,F6)):r.createCommentVNode("",!0)]))),128))]))),128))])]),_:1},8,["items"])])]),r.createElementVNode("div",M6,[L6,W.showTime?(r.openBlock(),r.createElementBlock("div",z6,[r.createElementVNode("div",_6,[r.createVNode(No,{modelValue:m.value,"onUpdate:modelValue":$[0]||($[0]=oe=>m.value=oe),label:r.unref(_)("time.start"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:b.value,"onUpdate:modelValue":$[1]||($[1]=oe=>b.value=oe),label:r.unref(_)("time.end"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"])]),x.value?(r.openBlock(),r.createElementBlock("div",H6,[r.createVNode(No,{modelValue:y.value,"onUpdate:modelValue":$[2]||($[2]=oe=>y.value=oe),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.start"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"]),r.createVNode(No,{modelValue:v.value,"onUpdate:modelValue":$[3]||($[3]=oe=>v.value=oe),label:r.unref(_)("date.label.compare")+" "+r.unref(_)("time.end"),"z-index":o.zIndex+1,class:"w-full"},null,8,["modelValue","label","z-index"])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",U6,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:L},null,8,["label"]),r.createVNode(we,{disabled:F.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:E},null,8,["disabled","label"])])])],4)])):r.createCommentVNode("",!0)]),_:2},[W.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(W.$slots,"helper-text",{},void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),[["__scopeId","data-v-e2cc3110"]]),W6=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:_("date.predefinedRanges.today"),value:{startDate:q().format(pe),endDate:q().format(pe)}},{label:_("date.predefinedRanges.yesterday"),value:{startDate:q().subtract(1,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisWeek"),value:{startDate:q().startOf("week").format(pe),endDate:q().endOf("week").format(pe)}},{label:_("date.predefinedRanges.lastWeek"),value:{startDate:q().subtract(1,"week").startOf("week").format(pe),endDate:q().subtract(1,"week").endOf("week").format(pe)}},{label:_("date.predefinedRanges.last7Days"),value:{startDate:q().subtract(7,"day").format(pe),endDate:q().subtract(1,"day").format(pe)}},{label:_("date.predefinedRanges.thisMonth"),value:{startDate:q().startOf("month").format(pe),endDate:q().endOf("month").format(pe)}},{label:_("date.predefinedRanges.lastMonth"),value:{startDate:q().subtract(1,"month").startOf("month").format(pe),endDate:q().subtract(1,"month").endOf("month").format(pe)}},{label:_("date.predefinedRanges.thisYear"),value:{startDate:q().startOf("year").format(pe),endDate:q().endOf("year").format(pe)}}]},compare:{type:Boolean,default:!1},compareLabel:{},showTime:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(pe)},max:{default:()=>q().add(25,"year").format(pe)},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}=nr(),o=Te(e,"modelValue"),i=Vl(e);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(n).md||r.unref(n).lg?(r.openBlock(),r.createBlock(b6,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(B1,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))}}),de="YYYY-MM-DD",Fi=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},P1=(t,e)=>({startAt:t?q(t,de):null,endAt:e?q(e,de):null}),j6={class:"fm-typo-en-body-md-600"},G6={id:"in-calendar-app",class:"h-[264px] overflow-y-auto w-[160px]"},Q6=["onVnodeMounted"],X6=["onVnodeMounted"],Rn=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=q(n.min).startOf("year"),h=q(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=q(n.min).startOf("month"),p=q(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=q(n.min).startOf("month"),p=q(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(so,{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",j6,[u.picker==="month"?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(u.modelValue.format(r.unref(_)("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(_)("date.yearFormat"))),1)],64)):r.createCommentVNode("",!0)]),r.createVNode(ge,{name:i.value?"expand_less":"expand_more",size:"md",color:"black"},null,8,["name"])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",G6,[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(_)("date.monthFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")))},[r.createVNode(Dt,{disabled:!s(p),"model-value":u.modelValue.format(r.unref(_)("date.monthFormat"))===p.format(r.unref(_)("date.monthFormat")),label:p.format(r.unref(_)("date.monthFormat")),"onUpdate:modelValue":m=>o("update:modelValue",p)},null,8,["disabled","model-value","label","onUpdate:modelValue"])],8,Q6))),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(_)("date.yearFormat")),onVnodeMounted:m=>c(m,u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")))},[r.createVNode(Dt,{"model-value":u.modelValue.format(r.unref(_)("date.yearFormat"))===p.format(r.unref(_)("date.yearFormat")),label:p.format(r.unref(_)("date.yearFormat")),"onUpdate:modelValue":m=>l(p)},null,8,["model-value","label","onUpdate:modelValue"])],8,X6))),128)):r.createCommentVNode("",!0)])]),_:1}))}}),q6={class:"fm-calendar__name-row fm-typo-en-body-md-400 text-fm-color-typo-tertiary"},K6=["id"],J6={key:0,class:"fm-calendar__cell__button--today"},Y6=["onClick","onMouseover"],Mi=Ie(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=q(),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",q6,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(Ti)(),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",J6)):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,Y6)):r.createCommentVNode("",!0)],10,K6))),128))]))),128))])]))}}),[["__scopeId","data-v-9a5f3a22"]]),Z6={class:"p-12 space-y-4 w-[552px]"},$6={class:"w-max"},eE={class:"flex space-x-24"},tE={class:"flex items-center py-8 space-x-16"},nE={class:"flex space-x-4"},oE={class:"flex items-center justify-end py-8 space-x-16"},rE={class:"flex space-x-4"},iE={class:"flex gap-8 items-center justify-end w-full"},aE=r.defineComponent({__name:"FmSimpleDatePickerDesktop",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,de)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=r.ref(q().startOf("month").add(1,"month")),u=(k,x)=>{k==="left"?(l.value=x,c.value=x.add(1,"month")):k==="right"&&(c.value=x,l.value=x.subtract(1,"month"))},h=k=>{i.value=k},p=r.computed(()=>Fi(l.value)),m=r.computed(()=>Fi(l.value.add(1,"month"))),b=()=>{o.value=i.value.format(de),setTimeout(()=>{a.value=!1},0)},y=()=>{i.value=o.value?q(o.value):null,a.value=!1},v=k=>{a.value=k,k||y()};return(k,x)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":x[6]||(x[6]=C=>r.isRef(o)?o.value=C:null),disabled:s.value,focused:a.value,"helper-state":k.helperState,"helper-text":k.helperText,info:k.labelInfo,label:k.label,optional:k.labelMark==="optional",required:k.labelMark==="required",rules:k.rules,tag:"div"},{label:r.withCtx(()=>[r.renderSlot(k.$slots,"label")]),default:r.withCtx(({invalid:C})=>[r.createVNode(Io,{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(()=>[k.$slots["trigger-button"]?r.renderSlot(k.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{invalid:C,opened:a.value,showValidBorder:k.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:C,"show-valid-border":k.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(k.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(k.$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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",Z6,[r.createElementVNode("div",$6,[r.createElementVNode("div",eE,[r.createElementVNode("div",null,[r.createElementVNode("div",tE,[r.createVNode(ge,{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",nE,[r.createVNode(Rn,{max:k.max,min:k.min,"model-value":l.value,picker:"month","onUpdate:modelValue":x[1]||(x[1]=B=>u("left",B))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:k.max,min:k.min,"model-value":l.value,picker:"year","onUpdate:modelValue":x[2]||(x[2]=B=>u("left",B))},null,8,["max","min","model-value"])])]),r.createVNode(Mi,{"day-cell-class":{status:{isSelected:B=>B.isSame(i.value,"date")}},days:p.value,"on-day-click":B=>h(B.date)},null,8,["day-cell-class","days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",oE,[r.createElementVNode("div",rE,[r.createVNode(Rn,{max:k.max,min:k.min,"model-value":c.value,picker:"month","onUpdate:modelValue":x[3]||(x[3]=B=>u("right",B))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:k.max,min:k.min,"model-value":c.value,picker:"year","onUpdate:modelValue":x[4]||(x[4]=B=>u("right",B))},null,8,["max","min","model-value"])]),r.createVNode(ge,{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(Mi,{"day-cell-class":{status:{isSelected:B=>B.isSame(i.value,"date")}},days:m.value,"on-day-click":B=>h(B.date)},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",iE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:y},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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(k.$slots,"helper-text")]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),sE={class:"p-12 space-y-4 w-[276px]"},lE={class:"w-max"},dE={class:"flex space-x-24"},cE={class:"flex items-center justify-between py-8"},uE={class:"flex space-x-4"},fE={class:"flex space-x-4"},pE={class:"flex gap-8 items-center justify-end w-full"},I1=r.defineComponent({__name:"FmSimpleDatePickerMobile",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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(tt,null),o=Te(e,"modelValue"),i=r.ref(q(o.value,de)),a=r.ref(!1),s=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),l=r.ref(q().startOf("month")),c=y=>{l.value=y},u=y=>{i.value=y},h=r.computed(()=>Fi(l.value)),p=()=>{o.value=i.value.format(de),setTimeout(()=>{a.value=!1},0)},m=()=>{i.value=o.value?q(o.value):null,a.value=!1},b=y=>{a.value=y,y||m()};return(y,v)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(o),"onUpdate:modelValue":v[4]||(v[4]=k=>r.isRef(o)?o.value=k: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:k})=>[r.createVNode(Io,{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:k,opened:a.value,showValidBorder:y.showValidBorder,disabled:s.value}))):(r.openBlock(),r.createBlock(ct,{key:1,disabled:s.value,focused:a.value,"icon-outlined":!a.value,invalid:k,"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(q)(r.unref(o)).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]),_:2},1032,["disabled","focused","icon-outlined","invalid","show-valid-border"]))]),default:r.withCtx(()=>[r.createElementVNode("div",sE,[r.createElementVNode("div",lE,[r.createElementVNode("div",dE,[r.createElementVNode("div",null,[r.createElementVNode("div",cE,[r.createElementVNode("div",uE,[r.createVNode(Rn,{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(Rn,{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",fE,[r.createVNode(ge,{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(ge,{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(Mi,{"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",pE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:m},null,8,["label"]),r.createVNode(we,{disabled:!i.value,label:r.unref(_)("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"]))}}),hE=r.defineComponent({__name:"FmSimpleDatePicker",props:{modelValue:{},showValidBorder:{type:Boolean,default:!1},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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}=nr(),n=t,o=Te(n,"modelValue"),i=Vl(n);return(a,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(e).md||r.unref(e).lg?(r.openBlock(),r.createBlock(aE,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(I1,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 qe=(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))(qe||{});const mE={key:1,class:"flex gap-4 items-center relative w-full"},gE={class:"flex flex-col gap-4 w-full"},bE=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),yE={class:"flex flex-col gap-4 w-full"},vE={class:"flex h-[360px]"},kE={class:"flex flex-col items-start p-12 pr-4"},wE={key:0},xE={key:1},SE=r.createElementVNode("div",{class:"bg-fm-color-neutral-gray-100 h-full mx-4 w-px"},null,-1),CE={class:"w-max"},AE={class:"flex space-x-24"},EE={class:"flex items-center py-8 space-x-16"},DE={class:"flex space-x-4"},BE={class:"flex items-center justify-end py-8 space-x-16"},PE={class:"flex space-x-4"},IE={class:"flex gap-8 items-center justify-end w-full"},OE=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{default:qe.PRECEDING_PERIOD},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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 j,X;const n=I=>()=>{var M,V;const{startAt:F,endAt:N}=P1((M=a.compareTarget)==null?void 0:M.startDate,(V=a.compareTarget)==null?void 0:V.endDate);if(!F||!N)return;const R=I({startAt:F,endAt:N});return O("right",R.endDate.startOf("month")),R},o=r.computed(()=>[{id:qe.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},y.value=qe.NO_COMPARISON}},{id:qe.PRECEDING_WEEK,label:"Same period last week",sublabel:"Match day of week",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"week")+1;return c.value={startDate:I.subtract(N,"week"),endDate:F.subtract(N,"week")},y.value=qe.PRECEDING_WEEK,c.value})},{id:qe.PRECEDING_MONTH,label:"Same period last month",sublabel:"Match day of month",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"month")+1;return c.value={startDate:I.subtract(N,"month"),endDate:F.subtract(N,"month")},y.value=qe.PRECEDING_MONTH,c.value})},{id:qe.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"day")+1;return c.value={startDate:I.subtract(N,"day"),endDate:F.subtract(N,"day")},y.value=qe.PRECEDING_PERIOD,c.value})},{id:qe.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"year")+1;return c.value={startDate:I.subtract(N,"year"),endDate:F.subtract(N,"year")},y.value=qe.PRECEDING_YEAR,c.value})},{id:qe.CUSTOM,label:"Custom",sublabel:"",action:()=>{y.value=qe.CUSTOM}}]),i=e,a=t,s=r.inject(tt,null),l=Te(a,"modelValue"),c=r.ref({startDate:(j=l.value)!=null&&j.startDate?q(l.value.startDate,de):null,endDate:(X=l.value)!=null&&X.endDate?q(l.value.endDate,de):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(q().startOf("month")),m=r.ref(q().startOf("month").add(1,"month")),b=r.ref(""),y=r.ref(a.defaultCompareType),v=r.ref(null),k=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:I,endDate:F},label:N})=>{var R,M;((R=c.value.startDate)==null?void 0:R.format(de))===I&&((M=c.value.endDate)==null?void 0:M.format(de))===F&&(b.value=N)})},x=I=>{if(b.value="",y.value=qe.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:I,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=I;else{if(I.isBefore(c.value.startDate)){const F=c.value.startDate;c.value={startDate:I,endDate:F}}else c.value.endDate=I;k()}},C=()=>{var I,F;l.value={startDate:(I=c.value.startDate)==null?void 0:I.format(de),endDate:(F=c.value.endDate)==null?void 0:F.format(de)},i("select-comparison",y.value),setTimeout(()=>{u.value=!1})},B=()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null},u.value=!1},O=(I,F)=>{I==="left"?(p.value=F,m.value=F.add(1,"month")):I==="right"&&(m.value=F,p.value=F.subtract(1,"month"))},A=I=>{var W,$;const F=(W=c.value.startDate)==null?void 0:W.startOf("day"),N=($=c.value.endDate)==null?void 0:$.startOf("day"),R=v.value,M=F==null?void 0:F.isSame(I),V=N==null?void 0:N.isSame(I),Q=R==null?void 0:R.isSame(I),ee=M&&N&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isAfter(F))||F&&!N&&Q&&(R==null?void 0:R.isBefore(F)),le=V&&F&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isBefore(F))||F&&!N&&Q&&(R==null?void 0:R.isAfter(F)),he=M&&V||M&&!N,ke=F&&(N||R)&&N?I.isAfter(F)&&I.isBefore(N):I.isAfter(R)&&I.isBefore(F)||I.isBefore(R)&&I.isAfter(F);return{status:{isStart:ee??!1,isEnd:le??!1,isBetween:ke??!1,isSelected:he??!1}}},T=I=>{const F=c.value;if(F.startDate&&!F.endDate){v.value=I;return}v.value=null},E=I=>{b.value=I.label;const F=q(I.value.startDate,de),N=q(I.value.endDate,de);c.value={startDate:F,endDate:N},O("left",F.startOf("month"))},L=I=>{u.value=I,I||B()},H=r.computed(()=>!y.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||y.value===qe.CUSTOM)return;const I=o.value.find(N=>N.id===y.value),F=I==null?void 0:I.action();F&&(l.value=F)}),r.onMounted(()=>{k()}),(I,F)=>{const N=r.resolveComponent("fm-label");return r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(l),"onUpdate:modelValue":F[6]||(F[6]=R=>r.isRef(l)?l.value=R:null),disabled:h.value,focused:u.value,"helper-state":I.helperState,"helper-text":I.helperText,rules:I.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:R})=>[r.createVNode(Io,{disabled:h.value,"exclude-el-from-click-outside":["in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:L},{"popover-button":r.withCtx(()=>[I.$slots["trigger-button"]?r.renderSlot(I.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:R,showValidBorder:I.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createElementBlock("div",mE,[r.createElementVNode("label",gE,[r.createVNode(N,{disabled:h.value,label:a.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:R,"show-valid-border":I.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(I.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(I.$slots,"append")]),default:r.withCtx(()=>{var M;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((M=r.unref(l))!=null&&M.startDate?r.unref(q)(r.unref(l).startDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])]),bE,r.createElementVNode("label",yE,[r.createVNode(N,{disabled:h.value,label:a.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{class:r.normalizeClass(h.value?"cursor-not-allowed":"cursor-pointer"),disabled:h.value,focused:u.value,"icon-outlined":!u.value,invalid:R,"show-valid-border":I.showValidBorder,"prepend-icon":"calendar_month"},{prepend:r.withCtx(()=>[r.renderSlot(I.$slots,"prepend")]),append:r.withCtx(()=>[r.renderSlot(I.$slots,"append")]),default:r.withCtx(()=>{var M;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((M=r.unref(l))!=null&&M.endDate?r.unref(q)(r.unref(l).endDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:2},1032,["class","disabled","focused","icon-outlined","invalid","show-valid-border"])])]))]),default:r.withCtx(()=>[r.createElementVNode("div",vE,[I.showPredefinedRange||I.compareTarget?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",kE,[I.showPredefinedRange&&!I.compareTarget?(r.openBlock(),r.createElementBlock("div",wE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(I.predefinedRange,(M,V)=>(r.openBlock(),r.createBlock(Dt,{key:V,label:M.label,"model-value":b.value===M.label,class:"min-w-[158px]",selectable:"",onClick:Q=>E(M)},null,8,["label","model-value","onClick"]))),128))])):r.createCommentVNode("",!0),I.compareTarget?(r.openBlock(),r.createElementBlock("div",xE,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(M,V)=>(r.openBlock(),r.createBlock(Dt,{key:V,label:M.label,"model-value":y.value===M.id,sublabel:M.sublabel,class:"min-w-[158px]",selectable:"",onClick:Q=>M.action()},null,8,["label","model-value","sublabel","onClick"]))),128))])):r.createCommentVNode("",!0)]),SE],64)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass([{"pl-4":I.showPredefinedRange||I.compareTarget},"p-12 space-y-4"])},[r.createElementVNode("div",CE,[r.createElementVNode("div",AE,[r.createElementVNode("div",null,[r.createElementVNode("div",EE,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:F[0]||(F[0]=()=>O("left",p.value.subtract(1,"month")))}),r.createElementVNode("div",DE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"month","onUpdate:modelValue":F[1]||(F[1]=M=>O("left",M))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"year","onUpdate:modelValue":F[2]||(F[2]=M=>O("left",M))},null,8,["max","min","model-value"])])]),r.createVNode(Mi,{"day-cell-class":A,days:r.unref(Fi)(p.value),"on-day-click":M=>x(M.date),onCellMouseOver:T},null,8,["days","on-day-click"])]),r.createElementVNode("div",null,[r.createElementVNode("div",BE,[r.createElementVNode("div",PE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":m.value,picker:"month","onUpdate:modelValue":F[3]||(F[3]=M=>O("right",M))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":m.value,picker:"year","onUpdate:modelValue":F[4]||(F[4]=M=>O("right",M))},null,8,["max","min","model-value"])]),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:F[5]||(F[5]=()=>O("left",p.value.add(1,"month")))})]),r.createVNode(Mi,{"day-cell-class":M=>A(M),days:r.unref(Fi)(m.value),"on-day-click":M=>x(M.date),onCellMouseOver:T},null,8,["day-cell-class","days","on-day-click"])])])]),r.createElementVNode("div",IE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:B},null,8,["label"]),r.createVNode(we,{disabled:H.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:C},null,8,["disabled","label"])])],2)])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[I.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(I.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"])}}}),NE={key:0},VE={class:"flex gap-4 items-center relative w-full"},RE={class:"flex flex-col gap-4 w-full"},TE=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),FE={class:"flex flex-col gap-4 w-full"},ME={key:1,class:"flex flex-col gap-4 w-full"},LE=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:_("date.placeholder"),endDate:_("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?q(o).format(_("date.format")):_("date.placeholder"),endDate:i?q(i).format(_("date.format")):_("date.placeholder")}});return(o,i)=>(r.openBlock(),r.createElementBlock("div",null,[o.analytic?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",NE,[r.renderSlot(o.$slots,"popover-button",{},()=>[r.createElementVNode("div",VE,[r.createElementVNode("label",RE,[r.createVNode(vn,{disabled:o.disabled,label:e.startLabel??r.unref(_)("date.startDate")},null,8,["disabled","label"]),r.createVNode(ct,{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(q)(o.modelValue.startDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])]),TE,r.createElementVNode("label",FE,[r.createVNode(vn,{disabled:o.disabled,label:e.endLabel??r.unref(_)("date.endDate")},null,8,["disabled","label"]),r.createVNode(ct,{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(q)(o.modelValue.endDate).format(r.unref(_)("date.format")):r.unref(_)("date.placeholder")),3)]}),_:3},8,["class","disabled","focused","invalid","show-valid-border"])])])])])),o.analytic?(r.openBlock(),r.createElementBlock("label",ME,[r.createVNode(vn,{label:o.compareLabel??r.unref(_)("date.compare"),locale:o.locale},null,8,["label","locale"]),r.createVNode(ct,{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(_)("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)]))}}),zE={class:"p-12 space-y-4"},_E={class:"w-max"},HE={class:"flex space-x-24"},UE={class:"flex items-center justify-between py-8"},WE={class:"flex space-x-4"},jE={class:"flex space-x-4"},GE={class:"flex gap-8 items-center justify-end w-full"},O1=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{default:qe.PRECEDING_PERIOD},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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 j,X;const n=I=>()=>{var M,V;const{startAt:F,endAt:N}=P1((M=a.compareTarget)==null?void 0:M.startDate,(V=a.compareTarget)==null?void 0:V.endDate);if(!F||!N)return;const R=I({startAt:F,endAt:N});return B(R.endDate.startOf("month")),R},o=r.computed(()=>[{id:qe.NO_COMPARISON,label:"No Comparison",sublabel:"",action:()=>{c.value={startDate:null,endDate:null},b.value=qe.NO_COMPARISON}},{id:qe.PRECEDING_WEEK,label:"Preceding period",sublabel:"Match day of week",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"week")+1;return c.value={startDate:I.subtract(N,"week"),endDate:F.subtract(N,"week")},b.value=qe.PRECEDING_WEEK,c.value})},{id:qe.PRECEDING_MONTH,label:"Same period last week",sublabel:"Match day of month",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"month")+1;return c.value={startDate:I.subtract(N,"month"),endDate:F.subtract(N,"month")},b.value=qe.PRECEDING_MONTH,c.value})},{id:qe.PRECEDING_PERIOD,label:"Preceding period",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"day")+1;return c.value={startDate:I.subtract(N,"day"),endDate:F.subtract(N,"day")},b.value=qe.PRECEDING_PERIOD,c.value})},{id:qe.PRECEDING_YEAR,label:"Same period last year",sublabel:"",action:n(({startAt:I,endAt:F})=>{const N=F.diff(I,"year")+1;return c.value={startDate:I.subtract(N,"year"),endDate:F.subtract(N,"year")},b.value=qe.PRECEDING_YEAR,c.value})},{id:qe.CUSTOM,label:"Custom",sublabel:"",action:()=>{b.value=qe.CUSTOM}}]),i=e,a=t,s=r.inject(tt,null),l=Te(a,"modelValue"),c=r.ref({startDate:(j=l.value)!=null&&j.startDate?q(l.value.startDate,de):null,endDate:(X=l.value)!=null&&X.endDate?q(l.value.endDate,de):null}),u=r.ref(!1),h=r.computed(()=>a.disabled??(s==null?void 0:s.getDisabled())??!1),p=r.ref(q().startOf("month")),m=r.ref(null),b=r.ref(a.defaultCompareType),y=r.ref(null),v=()=>{a.showPredefinedRange&&a.predefinedRange.map(({value:{startDate:I,endDate:F},label:N})=>{var R,M;((R=c.value.startDate)==null?void 0:R.format(de))===I&&((M=c.value.endDate)==null?void 0:M.format(de))===F&&(m.value={startDate:I,endDate:F})})},k=I=>{if(m.value=null,b.value=qe.CUSTOM,c.value.startDate&&c.value.endDate){c.value={startDate:I,endDate:null};return}else if(!c.value.startDate&&!c.value.endDate)c.value.startDate=I;else{if(I.isBefore(c.value.startDate)){const F=c.value.startDate;c.value={startDate:I,endDate:F}}else c.value.endDate=I;v()}},x=()=>{var I,F;l.value={startDate:(I=c.value.startDate)==null?void 0:I.format(de),endDate:(F=c.value.endDate)==null?void 0:F.format(de)},i("select-comparison",b.value),setTimeout(()=>{u.value=!1})},C=()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null},u.value=!1},B=I=>{p.value=I},O=I=>{var W,$;const F=(W=c.value.startDate)==null?void 0:W.startOf("day"),N=($=c.value.endDate)==null?void 0:$.startOf("day"),R=y.value,M=F==null?void 0:F.isSame(I),V=N==null?void 0:N.isSame(I),Q=R==null?void 0:R.isSame(I),ee=M&&N&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isAfter(F))||F&&!N&&Q&&(R==null?void 0:R.isBefore(F)),le=V&&F&&!(M&&V)||F&&!N&&M&&(R==null?void 0:R.isBefore(F))||F&&!N&&Q&&(R==null?void 0:R.isAfter(F)),he=M&&V||M&&!N,ke=F&&(N||R)&&N?I.isAfter(F)&&I.isBefore(N):I.isAfter(R)&&I.isBefore(F)||I.isBefore(R)&&I.isAfter(F);return{status:{isStart:ee??!1,isEnd:le??!1,isBetween:ke??!1,isSelected:he??!1}}},A=I=>{const F=c.value;if(F.startDate&&!F.endDate){y.value=I;return}y.value=null},T=I=>{const F=q(I.startDate,de),N=q(I.endDate,de);m.value=I,c.value={startDate:F,endDate:N},B(N.startOf("month"))},E=I=>{const F=o.value.find(N=>N.id===I);F==null||F.action()},L=I=>{u.value=I,I||C()},H=r.computed(()=>!b.value&&!(c.value.startDate&&c.value.endDate));return r.watch(()=>l.value,()=>{var I,F;c.value={startDate:(I=l.value)!=null&&I.startDate?q(l.value.startDate,de):null,endDate:(F=l.value)!=null&&F.endDate?q(l.value.endDate,de):null}}),r.watch(()=>a.compareTarget,()=>{if(!a.compareTarget||b.value===qe.CUSTOM)return;const I=o.value.find(N=>N.id===b.value),F=I==null?void 0:I.action();F&&(l.value=F)}),r.onMounted(()=>{v()}),(I,F)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(l),"onUpdate:modelValue":F[6]||(F[6]=N=>r.isRef(l)?l.value=N:null),disabled:h.value,focused:u.value,"helper-state":I.helperState,"helper-text":I.helperText,rules:I.rules,tag:"div"},r.createSlots({default:r.withCtx(({invalid:N})=>[r.createVNode(Io,{disabled:h.value,"exclude-el-from-click-outside":["exclude-from-click-outside","in-calendar-app"],"show-popover":u.value,"z-index":a.zIndex,onPopoverChanged:L},{"popover-button":r.withCtx(()=>[I.$slots["trigger-button"]?r.renderSlot(I.$slots,"trigger-button",r.normalizeProps(r.mergeProps({key:0},{opened:u.value,invalid:N,showValidBorder:I.showValidBorder,disabled:h.value}))):(r.openBlock(),r.createBlock(LE,{key:1,disabled:h.value,focused:u.value,invalid:N,"model-value":r.unref(l),"show-valid-border":I.showValidBorder,"start-label":I.startLabel??r.unref(_)("date.startDate"),"end-label":I.endLabel??r.unref(_)("date.endDate")},r.createSlots({_:2},[I.$slots["popover-button"]?{name:"popover-button",fn:r.withCtx(()=>[r.renderSlot(I.$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",zE,[I.showPredefinedRange&&!I.compareTarget?(r.openBlock(),r.createBlock(ko,{key:0,items:I.predefinedRange,"model-value":m.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":F[0]||(F[0]=R=>T(R))},null,8,["items","model-value"])):r.createCommentVNode("",!0),I.compareTarget?(r.openBlock(),r.createBlock(ko,{key:1,items:o.value.map(R=>({label:R.label,sublabel:R.sublabel,value:R.id})),"model-value":b.value,"menu-id":"exclude-from-click-outside","onUpdate:modelValue":F[1]||(F[1]=R=>E(R))},null,8,["items","model-value"])):r.createCommentVNode("",!0),r.createElementVNode("div",_E,[r.createElementVNode("div",HE,[r.createElementVNode("div",null,[r.createElementVNode("div",UE,[r.createElementVNode("div",WE,[r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"month","onUpdate:modelValue":F[2]||(F[2]=R=>B(R))},null,8,["max","min","model-value"]),r.createVNode(Rn,{max:I.max,min:I.min,"model-value":p.value,picker:"year","onUpdate:modelValue":F[3]||(F[3]=R=>B(R))},null,8,["max","min","model-value"])]),r.createElementVNode("div",jE,[r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_left",size:"md",onClick:F[4]||(F[4]=()=>B(p.value.subtract(1,"month")))}),r.createVNode(ge,{outline:!1,class:"cursor-pointer select-none",color:"#1C1C1E",name:"chevron_right",size:"md",onClick:F[5]||(F[5]=()=>B(p.value.add(1,"month")))})])]),r.createVNode(Mi,{"day-cell-class":O,days:r.unref(Fi)(p.value),"on-day-click":R=>k(R.date),"cell-size":"lg",onCellMouseOver:A},null,8,["days","on-day-click"])])])]),r.createElementVNode("div",GE,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:C},null,8,["label"]),r.createVNode(we,{disabled:H.value,label:r.unref(_)("actions.apply"),size:"md",variant:"primary",onClick:x},null,8,["disabled","label"])])])]),_:2},1032,["disabled","show-popover","z-index"])]),_:2},[I.$slots["helper-text"]?{name:"helper-text",fn:r.withCtx(()=>[r.renderSlot(I.$slots,"helper-text")]),key:"0"}:void 0]),1032,["modelValue","disabled","focused","helper-state","helper-text","rules"]))}}),QE=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:q().format(de),endDate:q().format(de)}},{label:"Yesterday",value:{startDate:q().subtract(1,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This week",value:{startDate:q().startOf("week").format(de),endDate:q().endOf("week").format(de)}},{label:"Last week",value:{startDate:q().subtract(1,"week").startOf("week").format(de),endDate:q().subtract(1,"week").endOf("week").format(de)}},{label:"Last 7 days",value:{startDate:q().subtract(7,"day").format(de),endDate:q().subtract(1,"day").format(de)}},{label:"This month",value:{startDate:q().startOf("month").format(de),endDate:q().endOf("month").format(de)}},{label:"Last month",value:{startDate:q().subtract(1,"month").startOf("month").format(de),endDate:q().subtract(1,"month").endOf("month").format(de)}},{label:"This year",value:{startDate:q().startOf("year").format(de),endDate:q().endOf("year").format(de)}}]},defaultCompareType:{},min:{default:()=>q().subtract(50,"year").format(de)},max:{default:()=>q().add(25,"year").format(de)},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}=nr(),i=Te(n,"modelValue"),a=e,s=Vl(n);return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(o).md||r.unref(o).lg?(r.openBlock(),r.createBlock(OE,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(O1,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))}}),XE={class:"flex items-center gap-8"},qE={class:"fm-typo-en-body-md-400 text-fm-color-system-error-300"},KE={class:"flex items-center gap-4"},JE=Ie(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(tm,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??_("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",XE,[r.createVNode(ge,{name:"error",size:"sm",color:"system-error-300"}),r.createElementVNode("span",qE,r.toDisplayString(l.value),1)]),r.createElementVNode("div",KE,[a.value>1?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(we,{variant:"plain","prepend-icon":"keyboard_arrow_up","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.previousError"),onClick:u},null,8,["aria-label"]),r.createVNode(we,{variant:"plain","prepend-icon":"keyboard_arrow_down","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.nextError"),onClick:h},null,8,["aria-label"])],64)):(r.openBlock(),r.createBlock(we,{key:1,variant:"plain","prepend-icon":"arrow_forward","icon-color":"system-error-300",size:"md","aria-label":r.unref(_)("errorSummary.goToError"),onClick:h},null,8,["aria-label"]))])],6)):r.createCommentVNode("",!0)]),_:1},8,["name"]))}}),[["__scopeId","data-v-06b36cc1"]]),YE={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 N1(t,e){var n=Array.prototype.slice.call(e);return n.push(YE),t.apply(this,n)}function qu(t){"@babel/helpers - typeof";return qu=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},qu(t)}function ZE(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function $E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eD(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&&Ya(t,e)}function tD(t){var e=R1();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 nD(this,i)}}function nD(t,e){if(e&&(qu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V1(t)}function V1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ku(t){var e=typeof Map=="function"?new Map:void 0;return Ku=function(o){if(o===null||!oD(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 Fl(o,arguments,Za(this).constructor)}return i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ya(i,o)},Ku(t)}function Fl(t,e,n){return R1()?Fl=Reflect.construct:Fl=function(i,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(i,l),u=new c;return s&&Ya(u,s.prototype),u},Fl.apply(null,arguments)}function R1(){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 oD(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ya(t,e){return Ya=Object.setPrototypeOf||function(o,i){return o.__proto__=i,o},Ya(t,e)}function Za(t){return Za=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Za(t)}var Vo=function(t){eD(n,t);var e=tD(n);function n(o){var i;return $E(this,n),i=e.call(this,o),Object.setPrototypeOf(V1(i),n.prototype),i.name=i.constructor.name,i}return ZE(n)}(Ku(Error)),Ju=2,rD=17,iD=3,Kn="0-90-9٠-٩۰-۹",aD="-‐-―−ー-",sD="//",lD="..",dD="  ­​⁠ ",cD="()()[]\\[\\]",uD="~⁓∼~",Ml="".concat(aD).concat(sD).concat(lD).concat(dD).concat(cD).concat(uD),Yu="++";function T1(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 fD={}.constructor;function Ll(t){return t!=null&&t.constructor===fD}function Zu(t){"@babel/helpers - typeof";return Zu=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},Zu(t)}function zl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pD(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 _l(t,e,n){return e&&pD(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var hD="1.2.0",mD="1.7.35",F1=" ext. ",gD=/^\d+$/,Jt=function(){function t(e){zl(this,t),kD(e),this.metadata=e,z1.call(this,e)}return _l(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&&gD.test(n)&&(o=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new M1(this.getCountryMetadata(n),this)}else if(o){if(!this.hasCallingCode(o))throw new Error("Unknown calling code: ".concat(o));this.numberingPlan=new M1(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}(),M1=function(){function t(e,n){zl(this,t),this.globalMetadataObject=n,this.metadata=e,z1.call(this,n.metadata)}return _l(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 bD(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()&&L1(this.types(),n))return new vD(L1(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?F1:this.metadata[13]||F1}}]),t}(),bD=function(){function t(e,n){zl(this,t),this._format=e,this.metadata=n}return _l(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()&&!yD.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),yD=/^\(?\$1\)?$/,vD=function(){function t(e,n){zl(this,t),this.type=e,this.metadata=n}return _l(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 L1(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 kD(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Ll(t)||!Ll(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(Ll(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+wD(t)+": "+t,"."))}var wD=function(e){return Zu(e)};function Hl(t,e){if(e=new Jt(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function xD(t,e){return e.countries.hasOwnProperty(t)}function z1(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?T1(e,hD)===-1?this.v2=!0:T1(e,mD)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var SD=";ext=",Li=function(e){return"([".concat(Kn,"]{1,").concat(e,"})")};function _1(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=SD+Li(e),y=a+c+s+Li(e)+l,v=a+u+s+Li(o)+l,k=h+Li(i)+"#",x=p+m+s+Li(n)+l,C=p+"(?:,)+"+s+Li(o)+l;return b+"|"+y+"|"+v+"|"+k+"|"+x+"|"+C}var CD="["+Kn+"]{"+Ju+"}",AD="["+Yu+"]{0,1}(?:["+Ml+"]*["+Kn+"]){3,}["+Ml+Kn+"]*",ED=new RegExp("^["+Yu+"]{0,1}(?:["+Ml+"]*["+Kn+"]){1,2}$","i"),DD=AD+"(?:"+_1()+")?",BD=new RegExp("^"+CD+"$|^"+DD+"$","i");function PD(t){return t.length>=Ju&&BD.test(t)}function ID(t){return ED.test(t)}var H1=new RegExp("(?:"+_1()+")$","i");function OD(t){var e=t.search(H1);if(e<0)return{};for(var n=t.slice(0,e),o=t.match(H1),i=1;i<o.length;){if(o[i])return{number:n,ext:o[i]};i++}}var ND={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 VD(t){return ND[t]}function RD(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=TD(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 TD(t,e){if(t){if(typeof t=="string")return U1(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 U1(t,e)}}function U1(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 W1(t){for(var e="",n=RD(t.split("")),o;!(o=n()).done;){var i=o.value;e+=FD(i,e)||""}return e}function FD(t,e,n){return t==="+"?e?void 0:"+":VD(t)}function $u(t,e){return MD(t,void 0,e)}function MD(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 LD(t,e,n){if(e===void 0&&(e={}),n=new Jt(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 j1(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 j1(t,e){switch($u(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Ro(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function zD(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=_D(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 _D(t,e){if(t){if(typeof t=="string")return G1(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 G1(t,e)}}function G1(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 HD=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function ef(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new Jt(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var o=e.v2?t.nationalNumber:t.phone;if(Ro(o,n.nationalNumberPattern())){if(tf(o,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||tf(o,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=zD(HD),a;!(a=i()).done;){var s=a.value;if(tf(o,s,n))return s}}}}function tf(t,e,n){return e=n.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:Ro(t,e.pattern())}function UD(t,e,n){if(e=e||{},n=new Jt(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return ef(t,e,n.metadata)!==void 0;var o=e.v2?t.nationalNumber:t.phone;return Ro(o,n.nationalNumberPattern())}function WD(t,e,n){var o=new Jt(n),i=o.getCountryCodesForCallingCode(t);return i?i.filter(function(a){return jD(e,a,n)}):[]}function jD(t,e,n){var o=new Jt(n);return o.selectNumberingPlan(e),o.numberingPlan.possibleLengths().indexOf(t.length)>=0}function GD(t){return t.replace(new RegExp("[".concat(Ml,"]+"),"g")," ").trim()}var QD=/(\$\d)/;function XD(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(QD,e.nationalPrefixFormattingRule()):e.format());return o?GD(a):a}var qD=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function KD(t,e,n){var o=new Jt(n);if(o.selectNumberingPlan(t,e),o.defaultIDDPrefix())return o.defaultIDDPrefix();if(qD.test(o.IDDPrefix()))return o.IDDPrefix()}function JD(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 YD(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=ZD(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 ZD(t,e){if(t){if(typeof t=="string")return Q1(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 Q1(t,e)}}function Q1(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 X1(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 q1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X1(Object(n),!0).forEach(function(o){$D(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function $D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var K1={formatExtension:function(e,n,o){return"".concat(e).concat(o.ext()).concat(n)}};function e7(t,e,n,o){if(n?n=q1(q1({},K1),n):n=K1,o=new Jt(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=Ul(a,t.carrierCode,"NATIONAL",o,n),nf(s,t.ext,o,n.formatExtension)):"";case"INTERNATIONAL":return a?(s=Ul(a,null,"INTERNATIONAL",o,n),s="+".concat(i," ").concat(s),nf(s,t.ext,o,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return JD({number:"+".concat(i).concat(a),ext:t.ext});case"IDD":if(!n.fromCountry)return;var l=n7(a,t.carrierCode,i,n.fromCountry,o);return nf(l,t.ext,o,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function Ul(t,e,n,o,i){var a=t7(o.formats(),t);return a?XD(t,a,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:o}):t}function t7(t,e){for(var n=YD(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(Ro(e,i.pattern()))return i}}function nf(t,e,n,o){return e?o(t,e,n):t}function n7(t,e,n,o,i){var a=Hl(o,i.metadata);if(a===n){var s=Ul(t,e,"NATIONAL",i);return n==="1"?n+" "+s:s}var l=KD(o,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Ul(t,null,"INTERNATIONAL",i))}function J1(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 Y1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J1(Object(n),!0).forEach(function(o){o7(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function o7(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i7(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 a7(t,e,n){return e&&i7(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var s7=function(){function t(e,n,o){if(r7(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=d7(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 a7(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:WD(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return LD(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return UD(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Jt(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 ef(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,o){return e7(this,n,o?Y1(Y1({},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}(),l7=function(e){return/^[A-Z]{2}$/.test(e)};function d7(t,e){var n,o,i=new Jt(e);return l7(t)?(n=t,i.selectNumberingPlan(n),o=i.countryCallingCode()):o=t,{country:n,countryCallingCode:o}}var c7=new RegExp("(["+Kn+"])");function u7(t,e,n,o){if(e){var i=new Jt(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(c7);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return t}}}function f7(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 of(t,e){var n=f7(t,e),o=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!p7(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!h7(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:o}}function p7(t,e,n){return!(Ro(t,n.nationalNumberPattern())&&!Ro(e,n.nationalNumberPattern()))}function h7(t,e){switch($u(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function m7(t,e,n,o){var i=e?Hl(e,o):n;if(t.indexOf(i)===0){o=new Jt(o),o.selectNumberingPlan(e,n);var a=t.slice(i.length),s=of(a,o),l=s.nationalNumber,c=of(t,o),u=c.nationalNumber;if(!Ro(u,o.nationalNumberPattern())&&Ro(l,o.nationalNumberPattern())||$u(u,o)==="TOO_LONG")return{countryCallingCode:i,number:a}}return{number:t}}function g7(t,e,n,o){if(!t)return{};var i;if(t[0]!=="+"){var a=u7(t,e,n,o);if(a&&a!==t)i=!0,t="+"+a;else{if(e||n){var s=m7(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 Jt(o);for(var u=2;u-1<=iD&&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 b7(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=y7(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 += '`),We&&(se+=`' +
111
111
  function print() { __p += __j.call(arguments, '') }
112
112
  `:`;
113
113
  `)+se+`return __p
114
- }`;var Fe=ik(function(){return Ke(P,ve+"return "+se).apply(n,z)});if(Fe.source=se,ah(Fe))throw Fe;return Fe}function UG(d){return Ye(d).toLowerCase()}function WG(d){return Ye(d).toUpperCase()}function jG(d,f,g){if(d=Ye(d),d&&(g||f===n))return h2(d);if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=Zn(f),P=m2(w,S),z=g2(w,S)+1;return Br(w,P,z).join("")}function GG(d,f,g){if(d=Ye(d),d&&(g||f===n))return d.slice(0,y2(d)+1);if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=g2(w,Zn(f))+1;return Br(w,0,S).join("")}function QG(d,f,g){if(d=Ye(d),d&&(g||f===n))return d.replace(ap,"");if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=m2(w,Zn(f));return Br(w,S).join("")}function XG(d,f){var g=j,w=X;if(ht(f)){var S="separator"in f?f.separator:S;g="length"in f?Re(f.length):g,w="omission"in f?Dn(f.omission):w}d=Ye(d);var P=d.length;if(Ki(d)){var z=Zn(d);P=z.length}if(g>=P)return d;var G=g-Ji(w);if(G<1)return w;var Y=z?Br(z,0,G).join(""):d.slice(0,G);if(S===n)return Y+w;if(z&&(G+=Y.length-G),sh(S)){if(d.slice(G).search(S)){var re,ie=Y;for(S.global||(S=Sp(S.source,Ye(Fy.exec(S))+"g")),S.lastIndex=0;re=S.exec(ie);)var se=re.index;Y=Y.slice(0,se===n?G:se)}}else if(d.indexOf(Dn(S),G)!=G){var me=Y.lastIndexOf(S);me>-1&&(Y=Y.slice(0,me))}return Y+w}function qG(d){return d=Ye(d),d&&iz.test(d)?d.replace(Vy,S_):d}var KG=oa(function(d,f,g){return d+(g?" ":"")+f.toUpperCase()}),ch=av("toUpperCase");function rk(d,f,g){return d=Ye(d),f=g?n:f,f===n?y_(d)?E_(d):d_(d):d.match(f)||[]}var ik=Le(function(d,f){try{return An(d,n,f)}catch(g){return ah(g)?g:new Pe(g)}}),JG=Wo(function(d,f){return Fn(f,function(g){g=mo(g),Ho(d,g,rh(d[g],d))}),d});function YG(d){var f=d==null?0:d.length,g=Ce();return d=f?ft(d,function(w){if(typeof w[1]!="function")throw new Mn(s);return[g(w[0]),w[1]]}):[],Le(function(w){for(var S=-1;++S<f;){var P=d[S];if(An(P[0],this,w))return An(P[1],this,w)}})}function ZG(d){return SH(zn(d,p))}function uh(d){return function(){return d}}function $G(d,f){return d==null||d!==d?f:d}var eQ=lv(),tQ=lv(!0);function pn(d){return d}function fh(d){return L2(typeof d=="function"?d:zn(d,p))}function nQ(d){return _2(zn(d,p))}function oQ(d,f){return H2(d,zn(f,p))}var rQ=Le(function(d,f){return function(g){return gs(g,d,f)}}),iQ=Le(function(d,f){return function(g){return gs(d,g,f)}});function ph(d,f,g){var w=Nt(f),S=Md(f,w);g==null&&!(ht(f)&&(S.length||!w.length))&&(g=f,f=d,d=this,S=Md(f,Nt(f)));var P=!(ht(g)&&"chain"in g)||!!g.chain,z=Go(d);return Fn(S,function(G){var Y=f[G];d[G]=Y,z&&(d.prototype[G]=function(){var re=this.__chain__;if(P||re){var ie=d(this.__wrapped__),se=ie.__actions__=cn(this.__actions__);return se.push({func:Y,args:arguments,thisArg:d}),ie.__chain__=re,ie}return Y.apply(d,xr([this.value()],arguments))})}),d}function aQ(){return _t._===this&&(_t._=N_),this}function hh(){}function sQ(d){return d=Re(d),Le(function(f){return U2(f,d)})}var lQ=Gp(ft),dQ=Gp(d2),cQ=Gp(gp);function ak(d){return Zp(d)?bp(mo(d)):_H(d)}function uQ(d){return function(f){return d==null?n:ri(d,f)}}var fQ=cv(),pQ=cv(!0);function mh(){return[]}function gh(){return!1}function hQ(){return{}}function mQ(){return""}function gQ(){return!0}function bQ(d,f){if(d=Re(d),d<1||d>Q)return[];var g=he,w=Qt(d,he);f=Ce(f),d-=he;for(var S=kp(w,f);++g<d;)f(g);return S}function yQ(d){return Ne(d)?ft(d,mo):Bn(d)?[d]:cn(Ev(Ye(d)))}function vQ(d){var f=++I_;return Ye(d)+f}var kQ=Wd(function(d,f){return d+f},0),wQ=Qp("ceil"),xQ=Wd(function(d,f){return d/f},1),SQ=Qp("floor");function CQ(d){return d&&d.length?Fd(d,pn,Op):n}function AQ(d,f){return d&&d.length?Fd(d,Ce(f,2),Op):n}function EQ(d){return f2(d,pn)}function DQ(d,f){return f2(d,Ce(f,2))}function BQ(d){return d&&d.length?Fd(d,pn,Tp):n}function PQ(d,f){return d&&d.length?Fd(d,Ce(f,2),Tp):n}var IQ=Wd(function(d,f){return d*f},1),OQ=Qp("round"),NQ=Wd(function(d,f){return d-f},0);function VQ(d){return d&&d.length?vp(d,pn):0}function RQ(d,f){return d&&d.length?vp(d,Ce(f,2)):0}return D.after=nj,D.ary=Mv,D.assign=Wj,D.assignIn=Yv,D.assignInWith=nc,D.assignWith=jj,D.at=Gj,D.before=Lv,D.bind=rh,D.bindAll=JG,D.bindKey=zv,D.castArray=hj,D.chain=Rv,D.chunk=SU,D.compact=CU,D.concat=AU,D.cond=YG,D.conforms=ZG,D.constant=uh,D.countBy=VW,D.create=Qj,D.curry=_v,D.curryRight=Hv,D.debounce=Uv,D.defaults=Xj,D.defaultsDeep=qj,D.defer=oj,D.delay=rj,D.difference=EU,D.differenceBy=DU,D.differenceWith=BU,D.drop=PU,D.dropRight=IU,D.dropRightWhile=OU,D.dropWhile=NU,D.fill=VU,D.filter=TW,D.flatMap=LW,D.flatMapDeep=zW,D.flatMapDepth=_W,D.flatten=Iv,D.flattenDeep=RU,D.flattenDepth=TU,D.flip=ij,D.flow=eQ,D.flowRight=tQ,D.fromPairs=FU,D.functions=tG,D.functionsIn=nG,D.groupBy=HW,D.initial=LU,D.intersection=zU,D.intersectionBy=_U,D.intersectionWith=HU,D.invert=rG,D.invertBy=iG,D.invokeMap=WW,D.iteratee=fh,D.keyBy=jW,D.keys=Nt,D.keysIn=fn,D.map=Jd,D.mapKeys=sG,D.mapValues=lG,D.matches=nQ,D.matchesProperty=oQ,D.memoize=Zd,D.merge=dG,D.mergeWith=Zv,D.method=rQ,D.methodOf=iQ,D.mixin=ph,D.negate=$d,D.nthArg=sQ,D.omit=cG,D.omitBy=uG,D.once=aj,D.orderBy=GW,D.over=lQ,D.overArgs=sj,D.overEvery=dQ,D.overSome=cQ,D.partial=ih,D.partialRight=Wv,D.partition=QW,D.pick=fG,D.pickBy=$v,D.property=ak,D.propertyOf=uQ,D.pull=GU,D.pullAll=Nv,D.pullAllBy=QU,D.pullAllWith=XU,D.pullAt=qU,D.range=fQ,D.rangeRight=pQ,D.rearg=lj,D.reject=KW,D.remove=KU,D.rest=dj,D.reverse=nh,D.sampleSize=YW,D.set=hG,D.setWith=mG,D.shuffle=ZW,D.slice=JU,D.sortBy=tj,D.sortedUniq=oW,D.sortedUniqBy=rW,D.split=LG,D.spread=cj,D.tail=iW,D.take=aW,D.takeRight=sW,D.takeRightWhile=lW,D.takeWhile=dW,D.tap=CW,D.throttle=uj,D.thru=Kd,D.toArray=qv,D.toPairs=ek,D.toPairsIn=tk,D.toPath=yQ,D.toPlainObject=Jv,D.transform=gG,D.unary=fj,D.union=cW,D.unionBy=uW,D.unionWith=fW,D.uniq=pW,D.uniqBy=hW,D.uniqWith=mW,D.unset=bG,D.unzip=oh,D.unzipWith=Vv,D.update=yG,D.updateWith=vG,D.values=aa,D.valuesIn=kG,D.without=gW,D.words=rk,D.wrap=pj,D.xor=bW,D.xorBy=yW,D.xorWith=vW,D.zip=kW,D.zipObject=wW,D.zipObjectDeep=xW,D.zipWith=SW,D.entries=ek,D.entriesIn=tk,D.extend=Yv,D.extendWith=nc,ph(D,D),D.add=kQ,D.attempt=ik,D.camelCase=CG,D.capitalize=nk,D.ceil=wQ,D.clamp=wG,D.clone=mj,D.cloneDeep=bj,D.cloneDeepWith=yj,D.cloneWith=gj,D.conformsTo=vj,D.deburr=ok,D.defaultTo=$G,D.divide=xQ,D.endsWith=AG,D.eq=eo,D.escape=EG,D.escapeRegExp=DG,D.every=RW,D.find=FW,D.findIndex=Bv,D.findKey=Kj,D.findLast=MW,D.findLastIndex=Pv,D.findLastKey=Jj,D.floor=SQ,D.forEach=Tv,D.forEachRight=Fv,D.forIn=Yj,D.forInRight=Zj,D.forOwn=$j,D.forOwnRight=eG,D.get=lh,D.gt=kj,D.gte=wj,D.has=oG,D.hasIn=dh,D.head=Ov,D.identity=pn,D.includes=UW,D.indexOf=MU,D.inRange=xG,D.invoke=aG,D.isArguments=si,D.isArray=Ne,D.isArrayBuffer=xj,D.isArrayLike=un,D.isArrayLikeObject=xt,D.isBoolean=Sj,D.isBuffer=Pr,D.isDate=Cj,D.isElement=Aj,D.isEmpty=Ej,D.isEqual=Dj,D.isEqualWith=Bj,D.isError=ah,D.isFinite=Pj,D.isFunction=Go,D.isInteger=jv,D.isLength=ec,D.isMap=Gv,D.isMatch=Ij,D.isMatchWith=Oj,D.isNaN=Nj,D.isNative=Vj,D.isNil=Tj,D.isNull=Rj,D.isNumber=Qv,D.isObject=ht,D.isObjectLike=vt,D.isPlainObject=xs,D.isRegExp=sh,D.isSafeInteger=Fj,D.isSet=Xv,D.isString=tc,D.isSymbol=Bn,D.isTypedArray=ia,D.isUndefined=Mj,D.isWeakMap=Lj,D.isWeakSet=zj,D.join=UU,D.kebabCase=BG,D.last=Hn,D.lastIndexOf=WU,D.lowerCase=PG,D.lowerFirst=IG,D.lt=_j,D.lte=Hj,D.max=CQ,D.maxBy=AQ,D.mean=EQ,D.meanBy=DQ,D.min=BQ,D.minBy=PQ,D.stubArray=mh,D.stubFalse=gh,D.stubObject=hQ,D.stubString=mQ,D.stubTrue=gQ,D.multiply=IQ,D.nth=jU,D.noConflict=aQ,D.noop=hh,D.now=Yd,D.pad=OG,D.padEnd=NG,D.padStart=VG,D.parseInt=RG,D.random=SG,D.reduce=XW,D.reduceRight=qW,D.repeat=TG,D.replace=FG,D.result=pG,D.round=OQ,D.runInContext=K,D.sample=JW,D.size=$W,D.snakeCase=MG,D.some=ej,D.sortedIndex=YU,D.sortedIndexBy=ZU,D.sortedIndexOf=$U,D.sortedLastIndex=eW,D.sortedLastIndexBy=tW,D.sortedLastIndexOf=nW,D.startCase=zG,D.startsWith=_G,D.subtract=NQ,D.sum=VQ,D.sumBy=RQ,D.template=HG,D.times=bQ,D.toFinite=Qo,D.toInteger=Re,D.toLength=Kv,D.toLower=UG,D.toNumber=Un,D.toSafeInteger=Uj,D.toString=Ye,D.toUpper=WG,D.trim=jG,D.trimEnd=GG,D.trimStart=QG,D.truncate=XG,D.unescape=qG,D.uniqueId=vQ,D.upperCase=KG,D.upperFirst=ch,D.each=Tv,D.eachRight=Fv,D.first=Ov,ph(D,function(){var d={};return po(D,function(f,g){Ze.call(D.prototype,g)||(d[g]=f)}),d}(),{chain:!1}),D.VERSION=o,Fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){D[d].placeholder=D}),Fn(["drop","take"],function(d,f){Ue.prototype[d]=function(g){g=g===n?1:It(Re(g),0);var w=this.__filtered__&&!f?new Ue(this):this.clone();return w.__filtered__?w.__takeCount__=Qt(g,w.__takeCount__):w.__views__.push({size:Qt(g,he),type:d+(w.__dir__<0?"Right":"")}),w},Ue.prototype[d+"Right"]=function(g){return this.reverse()[d](g).reverse()}}),Fn(["filter","map","takeWhile"],function(d,f){var g=f+1,w=g==N||g==M;Ue.prototype[d]=function(S){var P=this.clone();return P.__iteratees__.push({iteratee:Ce(S,3),type:g}),P.__filtered__=P.__filtered__||w,P}}),Fn(["head","last"],function(d,f){var g="take"+(f?"Right":"");Ue.prototype[d]=function(){return this[g](1).value()[0]}}),Fn(["initial","tail"],function(d,f){var g="drop"+(f?"":"Right");Ue.prototype[d]=function(){return this.__filtered__?new Ue(this):this[g](1)}}),Ue.prototype.compact=function(){return this.filter(pn)},Ue.prototype.find=function(d){return this.filter(d).head()},Ue.prototype.findLast=function(d){return this.reverse().find(d)},Ue.prototype.invokeMap=Le(function(d,f){return typeof d=="function"?new Ue(this):this.map(function(g){return gs(g,d,f)})}),Ue.prototype.reject=function(d){return this.filter($d(Ce(d)))},Ue.prototype.slice=function(d,f){d=Re(d);var g=this;return g.__filtered__&&(d>0||f<0)?new Ue(g):(d<0?g=g.takeRight(-d):d&&(g=g.drop(d)),f!==n&&(f=Re(f),g=f<0?g.dropRight(-f):g.take(f-d)),g)},Ue.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Ue.prototype.toArray=function(){return this.take(he)},po(Ue.prototype,function(d,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),w=/^(?:head|last)$/.test(f),S=D[w?"take"+(f=="last"?"Right":""):f],P=w||/^find/.test(f);S&&(D.prototype[f]=function(){var z=this.__wrapped__,G=w?[1]:arguments,Y=z instanceof Ue,re=G[0],ie=Y||Ne(z),se=function(He){var We=S.apply(D,xr([He],G));return w&&me?We[0]:We};ie&&g&&typeof re=="function"&&re.length!=1&&(Y=ie=!1);var me=this.__chain__,ve=!!this.__actions__.length,Ae=P&&!me,Fe=Y&&!ve;if(!P&&ie){z=Fe?z:new Ue(this);var Ee=d.apply(z,G);return Ee.__actions__.push({func:Kd,args:[se],thisArg:n}),new Ln(Ee,me)}return Ae&&Fe?d.apply(this,G):(Ee=this.thru(se),Ae?w?Ee.value()[0]:Ee.value():Ee)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(d){var f=wd[d],g=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",w=/^(?:pop|shift)$/.test(d);D.prototype[d]=function(){var S=arguments;if(w&&!this.__chain__){var P=this.value();return f.apply(Ne(P)?P:[],S)}return this[g](function(z){return f.apply(Ne(z)?z:[],S)})}}),po(Ue.prototype,function(d,f){var g=D[f];if(g){var w=g.name+"";Ze.call(ea,w)||(ea[w]=[]),ea[w].push({name:f,func:g})}}),ea[Ud(n,x).name]=[{name:"wrapper",func:n}],Ue.prototype.clone=q_,Ue.prototype.reverse=K_,Ue.prototype.value=J_,D.prototype.at=AW,D.prototype.chain=EW,D.prototype.commit=DW,D.prototype.next=BW,D.prototype.plant=IW,D.prototype.reverse=OW,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=NW,D.prototype.first=D.prototype.head,ds&&(D.prototype[ds]=PW),D},Yi=D_();$r?(($r.exports=Yi)._=Yi,fp._=Yi):_t._=Yi}).call(nn)}(Wl,Wl.exports);var lf=Wl.exports;const uB={class:"flex gap-8 items-center"},fB=["type","onInput","onKeydown"],pB=Ie(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=Te(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(()=>lf.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",uB,[(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:k=>h(k,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]=k=>n("focus")),onInput:k=>s(k,v),onKeydown:[r.withKeys(k=>l(k,v),["backspace"]),r.withKeys(k=>c(k,v),["arrow-left","arrow-right"])]},null,42,fB))),128))]))}}),[["__scopeId","data-v-aec3f93d"]]),hB={class:"fm-radio-btn"},mB={class:"relative flex items-center justify-center w-6 h-6"},gB={class:"fm-radio-btn__input--container"},bB=["checked","disabled","value"],yB={class:"fm-typo-en-body-lg-400"},vB={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},kB=Ie(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=Te(e,"modelValue"),o=r.ref(),i=r.inject(nm,null),a=r.inject(tt,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",hB,[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",mB,[r.withDirectives((r.openBlock(),r.createElementBlock("div",gB,[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,bB)])),[[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",yB,r.toDisplayString(u.label),1),u.sublabel?(r.openBlock(),r.createElementBlock("div",vB,r.toDisplayString(u.sublabel),1)):r.createCommentVNode("",!0)],!0)],2)],2)])}}}),[["__scopeId","data-v-9d8dbc91"]]),wB=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=>!lf.isNil(t)||"This field is required"]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=Te(e,"modelValue"),o=r.inject(tt,null);r.provide(nm,{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(Rt,{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"]))}}),jl=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(tt,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=Te(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(Lr,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(ge,{name:"search"})]),key:"0"}:void 0,r.unref(a).length?{name:"append",fn:r.withCtx(()=>[r.createVNode(ge,{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(we,{icon:"search",variant:"tertiary",onClick:h})],6)):r.createCommentVNode("",!0)],512))}}),xB={key:0,class:"flex fm-typo-en-title-sm-600 items-center justify-between text-fm-color-typo-primary"},SB={key:0},CB={class:"h-full overflow-y-auto"},AB={key:1,class:"flex gap-8 items-center"},cb=Ie(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=Te(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(Ei,{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",xB,[r.renderSlot(o.$slots,"top-sheet-header",{},()=>[o.header?(r.openBlock(),r.createElementBlock("div",SB,r.toDisplayString(o.header),1)):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",CB,[r.renderSlot(o.$slots,"default",{},void 0,!0)]),o.$slots["top-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",AB,[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 df={exports:{}};function ub(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}df.exports.debounce=ub,df.exports=ub;var EB=df.exports;const cf=wa(EB);var fb={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}))}})()})(fb);var DB=fb.exports;const BB=wa(DB);function Gl(t,e){const[n]=BB.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 PB={class:"flex flex-col gap-4"},IB={class:"bg-white flex gap-4 px-24 py-8 sticky top-0"},OB={class:"hidden sm:inline xs:inline"},NB={key:0},VB={key:0,class:"flex flex-col"},RB={class:"flex flex-col"},TB={class:"flex items-center px-24 py-12"},FB={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},MB=r.createElementVNode("div",{class:"py-4"},[r.createElementVNode("hr",{class:"border-fm-color-neutral-gray-100"})],-1),LB=["onClick"],zB={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},_B={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-primary"},HB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-typo-secondary"},UB={key:3,class:"flex flex-col"},WB=["onClick"],jB={class:"flex flex-col gap-4"},GB={key:0,class:"text-fm-color-typo-secondary"},QB={class:"px-16 py-4"},XB=5,qB=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 H=n.recentSearchKey;localStorage.removeItem(H),l.value=[]}function a(){if(!n.recentSearchKey)return;const H=n.recentSearchKey,j=localStorage.getItem(H);if(!j)return[];try{return JSON.parse(j)}catch{return new Array}}const s=cf(function(j){if(!n.recentSearchKey)return;const X=n.recentSearchKey,I=j().trim();if(!X||!I)return;const F=a()??[],N=[...new Set([I,...F])].slice(0,XB),R=JSON.stringify(N);return localStorage.setItem(X,R),l.value=N,N},800),l=r.ref(a()),c=Te(n,"show");r.watch([()=>n.show],()=>{n.show?(p.value=null,n.suggestions&&C()):o("dismiss")});const u=Te(n,"modelValue"),h=r.ref(n.modelValue);r.watch([()=>h.value],()=>{O()});const p=r.ref(null),m=r.ref(!0),b=r.computed(()=>{var H;return m.value?(H=p.value)==null?void 0:H.slice(0,5):p.value});r.watch([()=>p.value],([])=>{m.value=!0});const y=r.computed(()=>p.value===null),v=r.ref(!1),k=r.ref(""),x=()=>h.value;async function C(){if(!c.value)return;const H=x();if(!H)return;const j=Math.random().toString();if(k.value=j,n.suggestions){p.value=n.suggestions.map(X=>({label:Gl(H,X.label),sublabel:X.sublabel?Gl(H,X.sublabel):null})).filter(X=>{var I;return X.label.matched||((I=X.sublabel)==null?void 0:I.matched)}),s(x);return}if(n.onSearch)try{v.value=!0;const X=await n.onSearch(H);j===k.value&&(p.value=X.map(I=>({label:Gl(H,I.label),sublabel:I.sublabel?Gl(H,I.sublabel):null})))}catch{j===k.value&&(p.value=[])}finally{j===k.value&&(v.value=!1,s(x))}}function B(H){c.value=!1,o("dismiss"),u.value=H}const O=cf(C),A=r.computed(()=>l.value&&l.value.length===0),T=r.computed(()=>(!h.value||y.value)&&!A.value),E=r.computed(()=>(!h.value||y.value)&&A.value),L=r.computed(()=>h.value&&p.value&&p.value.length===0);return(H,j)=>(r.openBlock(),r.createBlock(cb,{"model-value":r.unref(c),"onUpdate:modelValue":j[4]||(j[4]=X=>r.isRef(c)?c.value=X:null),"fullscreen-size":"sm","dismiss-away":""},{default:r.withCtx(()=>{var X,I;return[r.createElementVNode("div",PB,[r.createElementVNode("div",IB,[r.createElementVNode("div",OB,[r.createVNode(we,{"prepend-icon":"arrow_back",variant:"tertiary",onClick:j[0]||(j[0]=F=>c.value=!1)})]),r.createVNode(jl,{"model-value":h.value,"onUpdate:modelValue":j[1]||(j[1]=F=>h.value=F),class:"flex-1",placeholder:H.placeholder},null,8,["model-value","placeholder"])]),v.value?(r.openBlock(),r.createElementBlock("div",NB,[r.createVNode(Rr,{size:"xl"})])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[T.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[H.recentSearchKey&&((X=l.value)!=null&&X.length)?(r.openBlock(),r.createElementBlock("div",VB,[r.createElementVNode("div",RB,[r.createElementVNode("div",TB,[r.createElementVNode("div",FB,r.toDisplayString(r.unref(_)("search.recent")),1),r.createVNode(rr),r.createVNode(we,{label:r.unref(_)("search.clearHistory"),variant:"plain",size:"md",onClick:j[2]||(j[2]=F=>i())},null,8,["label"])]),MB]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(F,N)=>(r.openBlock(),r.createElementBlock("div",{key:N,class:"cursor-pointer flex gap-8 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12",onClick:R=>h.value=F},[r.createVNode(ge,{size:"lg",name:"history"}),r.createElementVNode("div",zB,r.toDisplayString(F),1)],8,LB))),128))])])):r.createCommentVNode("",!0)],64)):E.value?r.renderSlot(H.$slots,"hint-placeholder",{key:1},()=>[r.createElementVNode("div",_B,r.toDisplayString(H.hintPlaceholder),1)]):L.value?r.renderSlot(H.$slots,"not-found-placeholder",{key:2},()=>[r.createElementVNode("div",HB,r.toDisplayString(H.notFoundPlaceholder||`No result found for “${h.value}”`),1)]):(r.openBlock(),r.createElementBlock("div",UB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.value,(F,N)=>r.renderSlot(H.$slots,"search-result-item",r.mergeProps({key:N,ref_for:!0},{result:F}),()=>[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:R=>B(F.label.label)},[r.createVNode(ge,{size:"lg",name:"arrow_forward"}),r.createElementVNode("div",jB,[r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.label.segments,(R,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:r.normalizeClass({"fm-typo-en-body-lg-400":!R.isMatch,"fm-typo-en-body-lg-600":R.isMatch})},r.toDisplayString(R.segment),3))),128))]),F.sublabel?(r.openBlock(),r.createElementBlock("div",GB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.sublabel.segments,(R,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:r.normalizeClass({"fm-typo-en-body-md-400":!R.isMatch,"fm-typo-en-body-md-600":R.isMatch})},r.toDisplayString(R.segment),3))),128))])):r.createCommentVNode("",!0)])],8,WB)])),128)),r.createElementVNode("div",QB,[m.value&&(((I=p.value)==null?void 0:I.length)??0)>5?(r.openBlock(),r.createBlock(we,{key:0,label:`show ${p.value.length-5} more results`,variant:"plain",onClick:j[3]||(j[3]=F=>m.value=!1)},null,8,["label"])):r.createCommentVNode("",!0)])]))],64))])]}),_:3},8,["model-value"]))}}),KB=["disabled","inputMode","placeholder","readOnly","value"],JB={key:0},YB=["disabled"],ZB=["disabled"],$B=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),{isFocused:a,blur:s,focus:l}=ka(),c=r.ref(null);let u;const h=A=>{if(A!==""){const T=+A.replace(/,/g,"");return isNaN(T)?null:T}return null},p=A=>u.format(A),m=A=>{if(typeof i.value!="number"){i.value=+i.value;return}if(A>0&&x.value||A<0&&C.value)return;let T=B(i.value)?i.value+A:0;T=b(T),i.value=T},b=A=>e.max!==void 0&&A>e.max?e.max:e.min!==void 0&&A<e.min?e.min:A,y=()=>{var A;i.value=h(((A=c.value)==null?void 0:A.value)??"")},v=A=>{if(![...Array(10).keys()].map(T=>T.toString()).includes(A.key)&&!["Backspace","Tab","Enter",".","-","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(A.key)){A.preventDefault();return}},k=r.computed(()=>i.value!=null?p(i.value):""),x=r.computed(()=>{let A=!1;return e.max!==void 0&&(A=i.value>=e.max),e.min!==void 0&&(A=i.value<e.min),A}),C=r.computed(()=>{let A=!1;return e.max!==void 0&&(A=i.value>e.max),e.min!==void 0&&(A=i.value<=e.min),A});r.onBeforeMount(()=>{u=new Intl.NumberFormat("en-MY",{useGrouping:e.useGrouping,minimumFractionDigits:e.minFractionDigits,maximumFractionDigits:e.maxFractionDigits,roundingMode:"trunc"})});function B(A){return typeof A=="number"&&isFinite(A)}const O=()=>{var A;(A=c.value)==null||A.focus()};return(A,T)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":T[8]||(T[8]=E=>r.isRef(i)?i.value=E:null),disabled:o.value,focused:r.unref(a),"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,"blame-handler":O},{label:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:E})=>[r.createVNode(ct,{"append-icon":A.appendIcon,focused:r.unref(a),invalid:E,"prepend-icon":A.prependIcon,"show-valid-border":A.showValidBorder,class:"cursor-text"},{prepend:r.withCtx(()=>[r.renderSlot(A.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(A.$slots,"append",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([{"mr-32":A.showSteppers},"flex items-center justify-center"])},[A.appendText?(r.openBlock(),r.createElementBlock("div",JB,r.toDisplayString(A.appendText),1)):r.createCommentVNode("",!0),A.appendIcon?(r.openBlock(),r.createBlock(ge,{key:1,color:o.value?"#C7C7CC":"#1C1C1E",name:A.appendIcon,size:"md"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)],!0),A.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:T[2]||(T[2]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[3]||(T[3]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onMousedown:T[4]||(T[4]=()=>m(A.step))},[r.createVNode(ge,{color:o.value||x.value?"#C7C7CC":"#1C1C1E",name:"expand_less",size:"md"},null,8,["color"])],40,YB),r.createElementVNode("button",{disabled:o.value||C.value,class:"fm-stepper-field__stepper__item",tabindex:"1",type:"button",onBlur:T[5]||(T[5]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[6]||(T[6]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onMousedown:T[7]||(T[7]=()=>m(-A.step))},[r.createVNode(ge,{color:o.value||C.value?"#C7C7CC":"#1C1C1E",name:"expand_more",size:"md"},null,8,["color"])],40,ZB)],2)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.createElementVNode("input",{ref_key:"inputEl",ref:c,disabled:o.value,inputMode:A.inputmode,placeholder:A.placeholder,readOnly:A.readonly,value:k.value,class:"fm-stepper-field--input outline-none",type:"text",onBlur:T[0]||(T[0]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[1]||(T[1]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onInput:y,onKeydown:v},null,40,KB)]),_:2},1032,["append-icon","focused","invalid","prepend-icon","show-valid-border"])]),"helper-text":r.withCtx(()=>[r.renderSlot(A.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-62601f37"]]),eP=["disabled","maxlength","minlength","placeholder","readOnly","value"],tP=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),{isFocused:a,focus:s,blur:l}=ka(),c=p=>{i.value=p.target.value},u=r.ref(null);Vm(u,r.toRef(()=>e.autofocus));const h=()=>{var p;(p=u.value)==null||p.focus()};return(p,m)=>(r.openBlock(),r.createBlock(Rt,{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,eP)],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"]]),nP={class:"flex gap-8"},oP={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},rP={class:"flex flex-col gap-16 items-center justify-center w-full pb-16"},iP={class:"fm-typo-en-body-lg-600 text-left w-full"},aP={class:"fm-typo-en-body-lg-600 text-left w-full"},sP={class:"flex gap-8 items-center justify-end"},lP=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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(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(k=>!b(k))?null:i.value.map(k=>{const{hours:x,minutes:C,period:B}=ln(k);return`${xn(x)}:${xn(C)} ${B}`}).join(" - ")});function c(){if(!a.value||!s.value){i.value=null;return}const v=a.value,k=s.value,x=v.period===Vn.PM&&k.period===Vn.AM,B=!(v.period===Vn.PM&&v.hours===12&&k.period===Vn.PM&&k.hours!==12)&&v.period===k.period&&(v.hours>k.hours||v.hours===k.hours&&v.minutes>k.minutes),O=!e.disableTimeCheck&&(x||B),A=Qu(a.value),T=Qu(s.value);i.value=O?[T,A]:[A,T],h()}r.onMounted(()=>{Array.isArray(i.value)&&i.value.every(v=>!!v)&&(a.value=ln(i.value[0]),s.value=ln(i.value[1]))}),r.watch(()=>i.value,v=>{const k=Array.isArray(v);v&&k&&v.every(x=>b(x))&&(a.value=ln(v[0]),s.value=ln(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 k,x,C,B;v?(a.value=ln(((C=i.value)==null?void 0:C[0])??"00:00"),s.value=ln(((B=i.value)==null?void 0:B[1])??"23:59")):(a.value=(k=i.value)!=null&&k[0]?ln(i.value[0]):null,s.value=(x=i.value)!=null&&x[1]?ln(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:Tt(a.value,s.value));return(v,k)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":k[2]||(k[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(Io,{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(ct,{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",nP,[r.createVNode(ge,{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",oP,[r.createElementVNode("div",rP,[r.createElementVNode("div",null,[r.createElementVNode("div",iP,r.toDisplayString(r.unref(_)("time.start")),1),r.createVNode(Tl,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":k[0]||(k[0]=C=>a.value=C)},null,8,["model-value"])]),r.createElementVNode("div",null,[r.createElementVNode("div",aP,r.toDisplayString(r.unref(_)("time.end")),1),r.createVNode(Tl,{"model-value":s.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":k[1]||(k[1]=C=>s.value=C)},null,8,["model-value"])])]),r.createElementVNode("div",sP,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:h},null,8,["label"]),r.createVNode(we,{disabled:y.value,label:r.unref(_)("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"]))}}),uf=Ie(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"]]),ff=Ie(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(rr,{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 dP(t){for(;t;){if(cP(t))return t;t=t.parentElement}return document.scrollingElement}function cP(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 uP{constructor(e,n){ce(this,"onScroll");ce(this,"scrollParent");this.onScroll=n,this.scrollParent=dP(e)}bindScroll(){this.scrollParent.addEventListener("scroll",this.onScroll)}unbindScroll(){this.scrollParent.removeEventListener("scroll",this.onScroll)}}const fP={class:"fm-menu__wrapper"},pP=Ie(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:[wi(4),xi()],placement:o.placement,whileElementsMounted:ki});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 uP(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",fP,[r.renderSlot(b.$slots,"menu-content",{},void 0,!0)])],!0)],6)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5b19ece2"]]),hP={class:"fm-typo-en-body-md-600 mx-8 p-8 text-fm-color-typo-secondary"},mP=r.defineComponent({__name:"FmMenuHeader",props:{label:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",hP,r.toDisplayString(e.label),1))}}),gP=t=>(r.pushScopeId("data-v-6d0e6490"),t=t(),r.popScopeId(),t),bP={class:"relative"},yP={class:"fm-progress-linear fm-typo-en-body-sm-400 h-4 overflow-hidden relative rounded-lg w-auto"},vP=gP(()=>r.createElementVNode("span",{class:"bg-fm-color-neutral-gray-100",style:{width:"100%"}},null,-1)),kP=Ie(r.defineComponent({__name:"FmLinearProgress",props:{color:{default:"primary"}},setup(t){const e=t,n=r.computed(()=>{const o=new Array,i={};return e.color?(hi(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",bP,[r.createElementVNode("div",yP,[vP,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"]]),wP={key:0,class:"fm-typo-en-body-sm-400 text-fm-color-typo-secondary mt-4 text-right"},xP=Ie(r.defineComponent({__name:"FmProgressBar",props:{value:{default:void 0},max:{default:100},indeterminate:{type:Boolean,default:void 0},color:{default:"primary"},showLabel:{type:Boolean,default:!1},size:{default:"md"}},setup(t){const e=t,n=r.computed(()=>{const a=mi(e.value),s=mi(e.max)??100,l=e.indeterminate??a===null;return{value:l?null:Math.min(Math.max(0,a),s),max:s,indeterminate:l}}),o=r.computed(()=>{if(n.value.indeterminate||n.value.value===null)return 0;const a=n.value.value/n.value.max*100;return isNaN(a)?0:a}),i=r.computed(()=>{const a=new Array,s={};return e.color?(hi(e.color)?s["background-color"]=e.color:a.push(`bg-fm-color-${e.color}`),{class:a.join(" "),style:s}):{class:a.join(" "),style:s}});return(a,s)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["fm-progress-bar",`fm-progress-bar--${a.size}`,{"fm-progress-bar--indeterminate":n.value.indeterminate},"overflow-hidden relative rounded-lg w-full bg-fm-color-neutral-gray-100"])},[n.value.indeterminate?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("span",{class:r.normalizeClass(["dash-1",i.value.class]),style:r.normalizeStyle(i.value.style)},null,6),r.createElementVNode("span",{class:r.normalizeClass(["dash-2",i.value.class]),style:r.normalizeStyle(i.value.style)},null,6)],64)):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["fm-progress-bar__fill rounded-lg",i.value.class]),style:r.normalizeStyle({width:`${o.value}%`,...i.value.style})},null,6))],2),a.showLabel&&!n.value.indeterminate?(r.openBlock(),r.createElementBlock("div",wP,r.toDisplayString(Math.round(o.value))+"% ",1)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-b8386e08"]]),SP={class:"flex fm-typo-en-title-md-600 items-center justify-between text-fm-color-typo-primary pb-16"},CP={key:0},AP={class:"h-full overflow-y-auto"},EP={key:0,class:"pt-24"},DP=Ie(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=Te(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(Ei,{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",SP,[r.renderSlot(c.$slots,"side-sheet-header",{},()=>[c.header?(r.openBlock(),r.createElementBlock("div",CP,r.toDisplayString(c.header),1)):r.createCommentVNode("",!0)],!0),c.closeButton?(r.openBlock(),r.createBlock(ge,{key:0,name:c.closeIcon,class:"cursor-pointer",size:"md",onClick:l},null,8,["name"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",AP,[r.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots["side-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",EP,[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"]]),BP={class:"flex items-center"},PP={key:1,class:"flex items-center mx-12"},IP={key:0,class:"mt-8"},pb=Ie(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?hi(n.bgColor)?{style:{backgroundColor:n.bgColor}}:{class:`bg-fm-color-${n.bgColor}`}:{class:`bg-fm-color-${i.value.bgColor}`}),l=r.computed(()=>n.color?hi(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",BP,[i.value.icon?(r.openBlock(),r.createBlock(ge,{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",PP,[r.createVNode(ge,{class:"animate-spin",name:"progress_activity"})])):r.createCommentVNode("",!0),n.dismissable?(r.openBlock(),r.createBlock(ge,{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",IP,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"]]),OP={class:r.normalizeClass(["fm-step-description","text-fm-color-typo-secondary","fm-typo-en-body-md-400 line-clamp-1","mt-4"])},pf=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",OP,r.toDisplayString(t.description),1)])],2))}}),NP=["data-title","data-description","data-disabled"],VP={class:"flex flex-col fm-step-container grow"},RP={class:"fm-step-container-content"},TP=Ie(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(om);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",VP,[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(ge,{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(pf,{title:t.title,description:t.description,disabled:a.value,class:"grow"},null,8,["title","description","disabled"])])),[[b,!a.value]]),r.createElementVNode("div",RP,[r.renderSlot(p.$slots,"default",{},void 0,!0)])])],10,NP)}}}),[["__scopeId","data-v-113e7095"]]),FP={class:"hidden items-center xs:flex"},MP={class:"flex gap-2 items-start justify-end mb-24 mt-40 p-0 self-stretch"},LP=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(om,{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",FP,[r.createVNode(Rr,{"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(pf,{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",MP,[r.renderSlot(h.$slots,"actions")])],2)):r.createCommentVNode("",!0)],2))}});let zP=0;function _P(){return zP++}const HP=t=>(r.pushScopeId("data-v-dfbdb871"),t=t(),r.popScopeId(),t),UP=["disabled"],WP={key:1,class:"ml-4"},jP={key:0,class:"ml-4"},GP={key:0,class:r.normalizeClass(["block","absolute bottom-0 left-0","h-0.5 w-full"])},QP=[HP(()=>r.createElementVNode("span",{class:r.normalizeClass(["block","bg-fm-color-primary rounded-xxxl","w-full h-full"])},null,-1))],hb=Ie(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:()=>_P()},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(so,{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(ge,{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",WP,[r.createVNode(or,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0),p.children.length>0?(r.openBlock(),r.createBlock(ge,{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",jP,[r.createVNode(or,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0)],2),u.value&&!p.vertical?(r.openBlock(),r.createElementBlock("span",GP,QP)):r.createCommentVNode("",!0)],2)],2)],42,UP)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,y=>(r.openBlock(),r.createBlock(Dt,{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(or,{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"]]),XP={class:"flex gap-8 h-48 items-center justify-end transition-all w-full xs:flex-wrap-reverse"},qP={class:"flex flex-1 gap-8"},KP=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}=nr(),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,k,...x]=c;return x.length===0?{actionButtons:[y,v,k].filter(C=>C),collapse:x}:{actionButtons:[y,v].filter(C=>C),collapse:[k,...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=Te(e,"searchModel");return(l,c)=>(r.openBlock(),r.createElementBlock("div",XP,[r.renderSlot(l.$slots,"chips",{},()=>[l.chips.length?(r.openBlock(),r.createBlock(Xc,{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",qP,[(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(jl,{"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(we,{"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(so,{key:0},{"menu-button":r.withCtx(()=>[r.createVNode(we,{"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(Dt,{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(qc,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u),"dismiss-away":"","z-index":e.zIndexForBottomSheet},{default:r.withCtx(()=>[r.createVNode(uf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(ff,{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 JP={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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.5.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-Linux",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:"1868",ACTIONS_ORCHESTRATION_ID:"9a2bc586-def5-4276-87a4-d38705f95958.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:"20260607.184.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:15460",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.11/x64",GITHUB_RUN_ID:"27519561550",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"c3e44b58f6358f7c5271f6ebe03d0d49f1e7b7f6",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/fix/default-page-size",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_e82ba1c0-a00b-4a77-8b7e-95865babbf70",INVOCATION_ID:"824bcebc7943411a8c19c74fb1db49e2",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:"348",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 1000077134",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"fix/default-page-size",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.7",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:"c3e44b58f6358f7c5271f6ebe03d0d49f1e7b7f6",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED:"1",GITHUB_REF:"refs/heads/fix/default-page-size",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_15.6.1",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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 pr(t,e){return typeof t=="function"?t(e):t}function Sn(t,e){return n=>{e.setState(o=>({...o,[t]:pr(n,o[t])}))}}function Ql(t){return t instanceof Function}function YP(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 xe(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 Fe=ik(function(){return Ke(P,ve+"return "+se).apply(n,z)});if(Fe.source=se,ah(Fe))throw Fe;return Fe}function UG(d){return Ye(d).toLowerCase()}function WG(d){return Ye(d).toUpperCase()}function jG(d,f,g){if(d=Ye(d),d&&(g||f===n))return h2(d);if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=Zn(f),P=m2(w,S),z=g2(w,S)+1;return Br(w,P,z).join("")}function GG(d,f,g){if(d=Ye(d),d&&(g||f===n))return d.slice(0,y2(d)+1);if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=g2(w,Zn(f))+1;return Br(w,0,S).join("")}function QG(d,f,g){if(d=Ye(d),d&&(g||f===n))return d.replace(ap,"");if(!d||!(f=Dn(f)))return d;var w=Zn(d),S=m2(w,Zn(f));return Br(w,S).join("")}function XG(d,f){var g=j,w=X;if(ht(f)){var S="separator"in f?f.separator:S;g="length"in f?Re(f.length):g,w="omission"in f?Dn(f.omission):w}d=Ye(d);var P=d.length;if(Ki(d)){var z=Zn(d);P=z.length}if(g>=P)return d;var G=g-Ji(w);if(G<1)return w;var Y=z?Br(z,0,G).join(""):d.slice(0,G);if(S===n)return Y+w;if(z&&(G+=Y.length-G),sh(S)){if(d.slice(G).search(S)){var re,ie=Y;for(S.global||(S=Sp(S.source,Ye(Fy.exec(S))+"g")),S.lastIndex=0;re=S.exec(ie);)var se=re.index;Y=Y.slice(0,se===n?G:se)}}else if(d.indexOf(Dn(S),G)!=G){var me=Y.lastIndexOf(S);me>-1&&(Y=Y.slice(0,me))}return Y+w}function qG(d){return d=Ye(d),d&&iz.test(d)?d.replace(Vy,S_):d}var KG=oa(function(d,f,g){return d+(g?" ":"")+f.toUpperCase()}),ch=av("toUpperCase");function rk(d,f,g){return d=Ye(d),f=g?n:f,f===n?y_(d)?E_(d):d_(d):d.match(f)||[]}var ik=Le(function(d,f){try{return An(d,n,f)}catch(g){return ah(g)?g:new Pe(g)}}),JG=Wo(function(d,f){return Fn(f,function(g){g=mo(g),Ho(d,g,rh(d[g],d))}),d});function YG(d){var f=d==null?0:d.length,g=Ce();return d=f?ft(d,function(w){if(typeof w[1]!="function")throw new Mn(s);return[g(w[0]),w[1]]}):[],Le(function(w){for(var S=-1;++S<f;){var P=d[S];if(An(P[0],this,w))return An(P[1],this,w)}})}function ZG(d){return SH(zn(d,p))}function uh(d){return function(){return d}}function $G(d,f){return d==null||d!==d?f:d}var eQ=lv(),tQ=lv(!0);function pn(d){return d}function fh(d){return L2(typeof d=="function"?d:zn(d,p))}function nQ(d){return _2(zn(d,p))}function oQ(d,f){return H2(d,zn(f,p))}var rQ=Le(function(d,f){return function(g){return gs(g,d,f)}}),iQ=Le(function(d,f){return function(g){return gs(d,g,f)}});function ph(d,f,g){var w=Nt(f),S=Md(f,w);g==null&&!(ht(f)&&(S.length||!w.length))&&(g=f,f=d,d=this,S=Md(f,Nt(f)));var P=!(ht(g)&&"chain"in g)||!!g.chain,z=Go(d);return Fn(S,function(G){var Y=f[G];d[G]=Y,z&&(d.prototype[G]=function(){var re=this.__chain__;if(P||re){var ie=d(this.__wrapped__),se=ie.__actions__=cn(this.__actions__);return se.push({func:Y,args:arguments,thisArg:d}),ie.__chain__=re,ie}return Y.apply(d,xr([this.value()],arguments))})}),d}function aQ(){return _t._===this&&(_t._=N_),this}function hh(){}function sQ(d){return d=Re(d),Le(function(f){return U2(f,d)})}var lQ=Gp(ft),dQ=Gp(d2),cQ=Gp(gp);function ak(d){return Zp(d)?bp(mo(d)):_H(d)}function uQ(d){return function(f){return d==null?n:ri(d,f)}}var fQ=cv(),pQ=cv(!0);function mh(){return[]}function gh(){return!1}function hQ(){return{}}function mQ(){return""}function gQ(){return!0}function bQ(d,f){if(d=Re(d),d<1||d>Q)return[];var g=he,w=Qt(d,he);f=Ce(f),d-=he;for(var S=kp(w,f);++g<d;)f(g);return S}function yQ(d){return Ne(d)?ft(d,mo):Bn(d)?[d]:cn(Ev(Ye(d)))}function vQ(d){var f=++I_;return Ye(d)+f}var kQ=Wd(function(d,f){return d+f},0),wQ=Qp("ceil"),xQ=Wd(function(d,f){return d/f},1),SQ=Qp("floor");function CQ(d){return d&&d.length?Fd(d,pn,Op):n}function AQ(d,f){return d&&d.length?Fd(d,Ce(f,2),Op):n}function EQ(d){return f2(d,pn)}function DQ(d,f){return f2(d,Ce(f,2))}function BQ(d){return d&&d.length?Fd(d,pn,Tp):n}function PQ(d,f){return d&&d.length?Fd(d,Ce(f,2),Tp):n}var IQ=Wd(function(d,f){return d*f},1),OQ=Qp("round"),NQ=Wd(function(d,f){return d-f},0);function VQ(d){return d&&d.length?vp(d,pn):0}function RQ(d,f){return d&&d.length?vp(d,Ce(f,2)):0}return D.after=nj,D.ary=Mv,D.assign=Wj,D.assignIn=Yv,D.assignInWith=nc,D.assignWith=jj,D.at=Gj,D.before=Lv,D.bind=rh,D.bindAll=JG,D.bindKey=zv,D.castArray=hj,D.chain=Rv,D.chunk=SU,D.compact=CU,D.concat=AU,D.cond=YG,D.conforms=ZG,D.constant=uh,D.countBy=VW,D.create=Qj,D.curry=_v,D.curryRight=Hv,D.debounce=Uv,D.defaults=Xj,D.defaultsDeep=qj,D.defer=oj,D.delay=rj,D.difference=EU,D.differenceBy=DU,D.differenceWith=BU,D.drop=PU,D.dropRight=IU,D.dropRightWhile=OU,D.dropWhile=NU,D.fill=VU,D.filter=TW,D.flatMap=LW,D.flatMapDeep=zW,D.flatMapDepth=_W,D.flatten=Iv,D.flattenDeep=RU,D.flattenDepth=TU,D.flip=ij,D.flow=eQ,D.flowRight=tQ,D.fromPairs=FU,D.functions=tG,D.functionsIn=nG,D.groupBy=HW,D.initial=LU,D.intersection=zU,D.intersectionBy=_U,D.intersectionWith=HU,D.invert=rG,D.invertBy=iG,D.invokeMap=WW,D.iteratee=fh,D.keyBy=jW,D.keys=Nt,D.keysIn=fn,D.map=Jd,D.mapKeys=sG,D.mapValues=lG,D.matches=nQ,D.matchesProperty=oQ,D.memoize=Zd,D.merge=dG,D.mergeWith=Zv,D.method=rQ,D.methodOf=iQ,D.mixin=ph,D.negate=$d,D.nthArg=sQ,D.omit=cG,D.omitBy=uG,D.once=aj,D.orderBy=GW,D.over=lQ,D.overArgs=sj,D.overEvery=dQ,D.overSome=cQ,D.partial=ih,D.partialRight=Wv,D.partition=QW,D.pick=fG,D.pickBy=$v,D.property=ak,D.propertyOf=uQ,D.pull=GU,D.pullAll=Nv,D.pullAllBy=QU,D.pullAllWith=XU,D.pullAt=qU,D.range=fQ,D.rangeRight=pQ,D.rearg=lj,D.reject=KW,D.remove=KU,D.rest=dj,D.reverse=nh,D.sampleSize=YW,D.set=hG,D.setWith=mG,D.shuffle=ZW,D.slice=JU,D.sortBy=tj,D.sortedUniq=oW,D.sortedUniqBy=rW,D.split=LG,D.spread=cj,D.tail=iW,D.take=aW,D.takeRight=sW,D.takeRightWhile=lW,D.takeWhile=dW,D.tap=CW,D.throttle=uj,D.thru=Kd,D.toArray=qv,D.toPairs=ek,D.toPairsIn=tk,D.toPath=yQ,D.toPlainObject=Jv,D.transform=gG,D.unary=fj,D.union=cW,D.unionBy=uW,D.unionWith=fW,D.uniq=pW,D.uniqBy=hW,D.uniqWith=mW,D.unset=bG,D.unzip=oh,D.unzipWith=Vv,D.update=yG,D.updateWith=vG,D.values=aa,D.valuesIn=kG,D.without=gW,D.words=rk,D.wrap=pj,D.xor=bW,D.xorBy=yW,D.xorWith=vW,D.zip=kW,D.zipObject=wW,D.zipObjectDeep=xW,D.zipWith=SW,D.entries=ek,D.entriesIn=tk,D.extend=Yv,D.extendWith=nc,ph(D,D),D.add=kQ,D.attempt=ik,D.camelCase=CG,D.capitalize=nk,D.ceil=wQ,D.clamp=wG,D.clone=mj,D.cloneDeep=bj,D.cloneDeepWith=yj,D.cloneWith=gj,D.conformsTo=vj,D.deburr=ok,D.defaultTo=$G,D.divide=xQ,D.endsWith=AG,D.eq=eo,D.escape=EG,D.escapeRegExp=DG,D.every=RW,D.find=FW,D.findIndex=Bv,D.findKey=Kj,D.findLast=MW,D.findLastIndex=Pv,D.findLastKey=Jj,D.floor=SQ,D.forEach=Tv,D.forEachRight=Fv,D.forIn=Yj,D.forInRight=Zj,D.forOwn=$j,D.forOwnRight=eG,D.get=lh,D.gt=kj,D.gte=wj,D.has=oG,D.hasIn=dh,D.head=Ov,D.identity=pn,D.includes=UW,D.indexOf=MU,D.inRange=xG,D.invoke=aG,D.isArguments=si,D.isArray=Ne,D.isArrayBuffer=xj,D.isArrayLike=un,D.isArrayLikeObject=xt,D.isBoolean=Sj,D.isBuffer=Pr,D.isDate=Cj,D.isElement=Aj,D.isEmpty=Ej,D.isEqual=Dj,D.isEqualWith=Bj,D.isError=ah,D.isFinite=Pj,D.isFunction=Go,D.isInteger=jv,D.isLength=ec,D.isMap=Gv,D.isMatch=Ij,D.isMatchWith=Oj,D.isNaN=Nj,D.isNative=Vj,D.isNil=Tj,D.isNull=Rj,D.isNumber=Qv,D.isObject=ht,D.isObjectLike=vt,D.isPlainObject=xs,D.isRegExp=sh,D.isSafeInteger=Fj,D.isSet=Xv,D.isString=tc,D.isSymbol=Bn,D.isTypedArray=ia,D.isUndefined=Mj,D.isWeakMap=Lj,D.isWeakSet=zj,D.join=UU,D.kebabCase=BG,D.last=Hn,D.lastIndexOf=WU,D.lowerCase=PG,D.lowerFirst=IG,D.lt=_j,D.lte=Hj,D.max=CQ,D.maxBy=AQ,D.mean=EQ,D.meanBy=DQ,D.min=BQ,D.minBy=PQ,D.stubArray=mh,D.stubFalse=gh,D.stubObject=hQ,D.stubString=mQ,D.stubTrue=gQ,D.multiply=IQ,D.nth=jU,D.noConflict=aQ,D.noop=hh,D.now=Yd,D.pad=OG,D.padEnd=NG,D.padStart=VG,D.parseInt=RG,D.random=SG,D.reduce=XW,D.reduceRight=qW,D.repeat=TG,D.replace=FG,D.result=pG,D.round=OQ,D.runInContext=K,D.sample=JW,D.size=$W,D.snakeCase=MG,D.some=ej,D.sortedIndex=YU,D.sortedIndexBy=ZU,D.sortedIndexOf=$U,D.sortedLastIndex=eW,D.sortedLastIndexBy=tW,D.sortedLastIndexOf=nW,D.startCase=zG,D.startsWith=_G,D.subtract=NQ,D.sum=VQ,D.sumBy=RQ,D.template=HG,D.times=bQ,D.toFinite=Qo,D.toInteger=Re,D.toLength=Kv,D.toLower=UG,D.toNumber=Un,D.toSafeInteger=Uj,D.toString=Ye,D.toUpper=WG,D.trim=jG,D.trimEnd=GG,D.trimStart=QG,D.truncate=XG,D.unescape=qG,D.uniqueId=vQ,D.upperCase=KG,D.upperFirst=ch,D.each=Tv,D.eachRight=Fv,D.first=Ov,ph(D,function(){var d={};return po(D,function(f,g){Ze.call(D.prototype,g)||(d[g]=f)}),d}(),{chain:!1}),D.VERSION=o,Fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){D[d].placeholder=D}),Fn(["drop","take"],function(d,f){Ue.prototype[d]=function(g){g=g===n?1:It(Re(g),0);var w=this.__filtered__&&!f?new Ue(this):this.clone();return w.__filtered__?w.__takeCount__=Qt(g,w.__takeCount__):w.__views__.push({size:Qt(g,he),type:d+(w.__dir__<0?"Right":"")}),w},Ue.prototype[d+"Right"]=function(g){return this.reverse()[d](g).reverse()}}),Fn(["filter","map","takeWhile"],function(d,f){var g=f+1,w=g==N||g==M;Ue.prototype[d]=function(S){var P=this.clone();return P.__iteratees__.push({iteratee:Ce(S,3),type:g}),P.__filtered__=P.__filtered__||w,P}}),Fn(["head","last"],function(d,f){var g="take"+(f?"Right":"");Ue.prototype[d]=function(){return this[g](1).value()[0]}}),Fn(["initial","tail"],function(d,f){var g="drop"+(f?"":"Right");Ue.prototype[d]=function(){return this.__filtered__?new Ue(this):this[g](1)}}),Ue.prototype.compact=function(){return this.filter(pn)},Ue.prototype.find=function(d){return this.filter(d).head()},Ue.prototype.findLast=function(d){return this.reverse().find(d)},Ue.prototype.invokeMap=Le(function(d,f){return typeof d=="function"?new Ue(this):this.map(function(g){return gs(g,d,f)})}),Ue.prototype.reject=function(d){return this.filter($d(Ce(d)))},Ue.prototype.slice=function(d,f){d=Re(d);var g=this;return g.__filtered__&&(d>0||f<0)?new Ue(g):(d<0?g=g.takeRight(-d):d&&(g=g.drop(d)),f!==n&&(f=Re(f),g=f<0?g.dropRight(-f):g.take(f-d)),g)},Ue.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Ue.prototype.toArray=function(){return this.take(he)},po(Ue.prototype,function(d,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),w=/^(?:head|last)$/.test(f),S=D[w?"take"+(f=="last"?"Right":""):f],P=w||/^find/.test(f);S&&(D.prototype[f]=function(){var z=this.__wrapped__,G=w?[1]:arguments,Y=z instanceof Ue,re=G[0],ie=Y||Ne(z),se=function(He){var We=S.apply(D,xr([He],G));return w&&me?We[0]:We};ie&&g&&typeof re=="function"&&re.length!=1&&(Y=ie=!1);var me=this.__chain__,ve=!!this.__actions__.length,Ae=P&&!me,Fe=Y&&!ve;if(!P&&ie){z=Fe?z:new Ue(this);var Ee=d.apply(z,G);return Ee.__actions__.push({func:Kd,args:[se],thisArg:n}),new Ln(Ee,me)}return Ae&&Fe?d.apply(this,G):(Ee=this.thru(se),Ae?w?Ee.value()[0]:Ee.value():Ee)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(d){var f=wd[d],g=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",w=/^(?:pop|shift)$/.test(d);D.prototype[d]=function(){var S=arguments;if(w&&!this.__chain__){var P=this.value();return f.apply(Ne(P)?P:[],S)}return this[g](function(z){return f.apply(Ne(z)?z:[],S)})}}),po(Ue.prototype,function(d,f){var g=D[f];if(g){var w=g.name+"";Ze.call(ea,w)||(ea[w]=[]),ea[w].push({name:f,func:g})}}),ea[Ud(n,x).name]=[{name:"wrapper",func:n}],Ue.prototype.clone=q_,Ue.prototype.reverse=K_,Ue.prototype.value=J_,D.prototype.at=AW,D.prototype.chain=EW,D.prototype.commit=DW,D.prototype.next=BW,D.prototype.plant=IW,D.prototype.reverse=OW,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=NW,D.prototype.first=D.prototype.head,ds&&(D.prototype[ds]=PW),D},Yi=D_();$r?(($r.exports=Yi)._=Yi,fp._=Yi):_t._=Yi}).call(nn)}(Wl,Wl.exports);var lf=Wl.exports;const uB={class:"flex gap-8 items-center"},fB=["type","onInput","onKeydown"],pB=Ie(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=Te(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(()=>lf.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",uB,[(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:k=>h(k,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]=k=>n("focus")),onInput:k=>s(k,v),onKeydown:[r.withKeys(k=>l(k,v),["backspace"]),r.withKeys(k=>c(k,v),["arrow-left","arrow-right"])]},null,42,fB))),128))]))}}),[["__scopeId","data-v-aec3f93d"]]),hB={class:"fm-radio-btn"},mB={class:"relative flex items-center justify-center w-6 h-6"},gB={class:"fm-radio-btn__input--container"},bB=["checked","disabled","value"],yB={class:"fm-typo-en-body-lg-400"},vB={key:0,class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},kB=Ie(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=Te(e,"modelValue"),o=r.ref(),i=r.inject(nm,null),a=r.inject(tt,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",hB,[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",mB,[r.withDirectives((r.openBlock(),r.createElementBlock("div",gB,[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,bB)])),[[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",yB,r.toDisplayString(u.label),1),u.sublabel?(r.openBlock(),r.createElementBlock("div",vB,r.toDisplayString(u.sublabel),1)):r.createCommentVNode("",!0)],!0)],2)],2)])}}}),[["__scopeId","data-v-9d8dbc91"]]),wB=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=>!lf.isNil(t)||"This field is required"]},helperText:{default:""},helperState:{default:"none"}},emits:["update:modelValue"],setup(t){const e=t,n=Te(e,"modelValue"),o=r.inject(tt,null);r.provide(nm,{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(Rt,{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"]))}}),jl=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(tt,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=Te(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(Lr,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(ge,{name:"search"})]),key:"0"}:void 0,r.unref(a).length?{name:"append",fn:r.withCtx(()=>[r.createVNode(ge,{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(we,{icon:"search",variant:"tertiary",onClick:h})],6)):r.createCommentVNode("",!0)],512))}}),xB={key:0,class:"flex fm-typo-en-title-sm-600 items-center justify-between text-fm-color-typo-primary"},SB={key:0},CB={class:"h-full overflow-y-auto"},AB={key:1,class:"flex gap-8 items-center"},cb=Ie(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=Te(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(Ei,{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",xB,[r.renderSlot(o.$slots,"top-sheet-header",{},()=>[o.header?(r.openBlock(),r.createElementBlock("div",SB,r.toDisplayString(o.header),1)):r.createCommentVNode("",!0)],!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",CB,[r.renderSlot(o.$slots,"default",{},void 0,!0)]),o.$slots["top-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",AB,[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 df={exports:{}};function ub(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}df.exports.debounce=ub,df.exports=ub;var EB=df.exports;const cf=wa(EB);var fb={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}))}})()})(fb);var DB=fb.exports;const BB=wa(DB);function Gl(t,e){const[n]=BB.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 PB={class:"flex flex-col gap-4"},IB={class:"bg-white flex gap-4 px-24 py-8 sticky top-0"},OB={class:"hidden sm:inline xs:inline"},NB={key:0},VB={key:0,class:"flex flex-col"},RB={class:"flex flex-col"},TB={class:"flex items-center px-24 py-12"},FB={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},MB=r.createElementVNode("div",{class:"py-4"},[r.createElementVNode("hr",{class:"border-fm-color-neutral-gray-100"})],-1),LB=["onClick"],zB={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},_B={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-primary"},HB={class:"fm-typo-en-body-lg-400 px-24 py-12 text-center text-fm-color-typo-secondary"},UB={key:3,class:"flex flex-col"},WB=["onClick"],jB={class:"flex flex-col gap-4"},GB={key:0,class:"text-fm-color-typo-secondary"},QB={class:"px-16 py-4"},XB=5,qB=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 H=n.recentSearchKey;localStorage.removeItem(H),l.value=[]}function a(){if(!n.recentSearchKey)return;const H=n.recentSearchKey,j=localStorage.getItem(H);if(!j)return[];try{return JSON.parse(j)}catch{return new Array}}const s=cf(function(j){if(!n.recentSearchKey)return;const X=n.recentSearchKey,I=j().trim();if(!X||!I)return;const F=a()??[],N=[...new Set([I,...F])].slice(0,XB),R=JSON.stringify(N);return localStorage.setItem(X,R),l.value=N,N},800),l=r.ref(a()),c=Te(n,"show");r.watch([()=>n.show],()=>{n.show?(p.value=null,n.suggestions&&C()):o("dismiss")});const u=Te(n,"modelValue"),h=r.ref(n.modelValue);r.watch([()=>h.value],()=>{O()});const p=r.ref(null),m=r.ref(!0),b=r.computed(()=>{var H;return m.value?(H=p.value)==null?void 0:H.slice(0,5):p.value});r.watch([()=>p.value],([])=>{m.value=!0});const y=r.computed(()=>p.value===null),v=r.ref(!1),k=r.ref(""),x=()=>h.value;async function C(){if(!c.value)return;const H=x();if(!H)return;const j=Math.random().toString();if(k.value=j,n.suggestions){p.value=n.suggestions.map(X=>({label:Gl(H,X.label),sublabel:X.sublabel?Gl(H,X.sublabel):null})).filter(X=>{var I;return X.label.matched||((I=X.sublabel)==null?void 0:I.matched)}),s(x);return}if(n.onSearch)try{v.value=!0;const X=await n.onSearch(H);j===k.value&&(p.value=X.map(I=>({label:Gl(H,I.label),sublabel:I.sublabel?Gl(H,I.sublabel):null})))}catch{j===k.value&&(p.value=[])}finally{j===k.value&&(v.value=!1,s(x))}}function B(H){c.value=!1,o("dismiss"),u.value=H}const O=cf(C),A=r.computed(()=>l.value&&l.value.length===0),T=r.computed(()=>(!h.value||y.value)&&!A.value),E=r.computed(()=>(!h.value||y.value)&&A.value),L=r.computed(()=>h.value&&p.value&&p.value.length===0);return(H,j)=>(r.openBlock(),r.createBlock(cb,{"model-value":r.unref(c),"onUpdate:modelValue":j[4]||(j[4]=X=>r.isRef(c)?c.value=X:null),"fullscreen-size":"sm","dismiss-away":""},{default:r.withCtx(()=>{var X,I;return[r.createElementVNode("div",PB,[r.createElementVNode("div",IB,[r.createElementVNode("div",OB,[r.createVNode(we,{"prepend-icon":"arrow_back",variant:"tertiary",onClick:j[0]||(j[0]=F=>c.value=!1)})]),r.createVNode(jl,{"model-value":h.value,"onUpdate:modelValue":j[1]||(j[1]=F=>h.value=F),class:"flex-1",placeholder:H.placeholder},null,8,["model-value","placeholder"])]),v.value?(r.openBlock(),r.createElementBlock("div",NB,[r.createVNode(Rr,{size:"xl"})])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[T.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[H.recentSearchKey&&((X=l.value)!=null&&X.length)?(r.openBlock(),r.createElementBlock("div",VB,[r.createElementVNode("div",RB,[r.createElementVNode("div",TB,[r.createElementVNode("div",FB,r.toDisplayString(r.unref(_)("search.recent")),1),r.createVNode(rr),r.createVNode(we,{label:r.unref(_)("search.clearHistory"),variant:"plain",size:"md",onClick:j[2]||(j[2]=F=>i())},null,8,["label"])]),MB]),r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,(F,N)=>(r.openBlock(),r.createElementBlock("div",{key:N,class:"cursor-pointer flex gap-8 hover:bg-fm-color-neutral-gray-100 items-center px-24 py-12",onClick:R=>h.value=F},[r.createVNode(ge,{size:"lg",name:"history"}),r.createElementVNode("div",zB,r.toDisplayString(F),1)],8,LB))),128))])])):r.createCommentVNode("",!0)],64)):E.value?r.renderSlot(H.$slots,"hint-placeholder",{key:1},()=>[r.createElementVNode("div",_B,r.toDisplayString(H.hintPlaceholder),1)]):L.value?r.renderSlot(H.$slots,"not-found-placeholder",{key:2},()=>[r.createElementVNode("div",HB,r.toDisplayString(H.notFoundPlaceholder||`No result found for “${h.value}”`),1)]):(r.openBlock(),r.createElementBlock("div",UB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.value,(F,N)=>r.renderSlot(H.$slots,"search-result-item",r.mergeProps({key:N,ref_for:!0},{result:F}),()=>[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:R=>B(F.label.label)},[r.createVNode(ge,{size:"lg",name:"arrow_forward"}),r.createElementVNode("div",jB,[r.createElementVNode("div",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.label.segments,(R,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:r.normalizeClass({"fm-typo-en-body-lg-400":!R.isMatch,"fm-typo-en-body-lg-600":R.isMatch})},r.toDisplayString(R.segment),3))),128))]),F.sublabel?(r.openBlock(),r.createElementBlock("div",GB,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(F.sublabel.segments,(R,M)=>(r.openBlock(),r.createElementBlock("span",{key:M,class:r.normalizeClass({"fm-typo-en-body-md-400":!R.isMatch,"fm-typo-en-body-md-600":R.isMatch})},r.toDisplayString(R.segment),3))),128))])):r.createCommentVNode("",!0)])],8,WB)])),128)),r.createElementVNode("div",QB,[m.value&&(((I=p.value)==null?void 0:I.length)??0)>5?(r.openBlock(),r.createBlock(we,{key:0,label:`show ${p.value.length-5} more results`,variant:"plain",onClick:j[3]||(j[3]=F=>m.value=!1)},null,8,["label"])):r.createCommentVNode("",!0)])]))],64))])]}),_:3},8,["model-value"]))}}),KB=["disabled","inputMode","placeholder","readOnly","value"],JB={key:0},YB=["disabled"],ZB=["disabled"],$B=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),{isFocused:a,blur:s,focus:l}=ka(),c=r.ref(null);let u;const h=A=>{if(A!==""){const T=+A.replace(/,/g,"");return isNaN(T)?null:T}return null},p=A=>u.format(A),m=A=>{if(typeof i.value!="number"){i.value=+i.value;return}if(A>0&&x.value||A<0&&C.value)return;let T=B(i.value)?i.value+A:0;T=b(T),i.value=T},b=A=>e.max!==void 0&&A>e.max?e.max:e.min!==void 0&&A<e.min?e.min:A,y=()=>{var A;i.value=h(((A=c.value)==null?void 0:A.value)??"")},v=A=>{if(![...Array(10).keys()].map(T=>T.toString()).includes(A.key)&&!["Backspace","Tab","Enter",".","-","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(A.key)){A.preventDefault();return}},k=r.computed(()=>i.value!=null?p(i.value):""),x=r.computed(()=>{let A=!1;return e.max!==void 0&&(A=i.value>=e.max),e.min!==void 0&&(A=i.value<e.min),A}),C=r.computed(()=>{let A=!1;return e.max!==void 0&&(A=i.value>e.max),e.min!==void 0&&(A=i.value<=e.min),A});r.onBeforeMount(()=>{u=new Intl.NumberFormat("en-MY",{useGrouping:e.useGrouping,minimumFractionDigits:e.minFractionDigits,maximumFractionDigits:e.maxFractionDigits,roundingMode:"trunc"})});function B(A){return typeof A=="number"&&isFinite(A)}const O=()=>{var A;(A=c.value)==null||A.focus()};return(A,T)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":T[8]||(T[8]=E=>r.isRef(i)?i.value=E:null),disabled:o.value,focused:r.unref(a),"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,"blame-handler":O},{label:r.withCtx(()=>[r.renderSlot(A.$slots,"label",{},void 0,!0)]),default:r.withCtx(({invalid:E})=>[r.createVNode(ct,{"append-icon":A.appendIcon,focused:r.unref(a),invalid:E,"prepend-icon":A.prependIcon,"show-valid-border":A.showValidBorder,class:"cursor-text"},{prepend:r.withCtx(()=>[r.renderSlot(A.$slots,"prepend",{},void 0,!0)]),append:r.withCtx(()=>[r.renderSlot(A.$slots,"append",{},()=>[r.createElementVNode("div",{class:r.normalizeClass([{"mr-32":A.showSteppers},"flex items-center justify-center"])},[A.appendText?(r.openBlock(),r.createElementBlock("div",JB,r.toDisplayString(A.appendText),1)):r.createCommentVNode("",!0),A.appendIcon?(r.openBlock(),r.createBlock(ge,{key:1,color:o.value?"#C7C7CC":"#1C1C1E",name:A.appendIcon,size:"md"},null,8,["color","name"])):r.createCommentVNode("",!0)],2)],!0),A.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:T[2]||(T[2]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[3]||(T[3]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onMousedown:T[4]||(T[4]=()=>m(A.step))},[r.createVNode(ge,{color:o.value||x.value?"#C7C7CC":"#1C1C1E",name:"expand_less",size:"md"},null,8,["color"])],40,YB),r.createElementVNode("button",{disabled:o.value||C.value,class:"fm-stepper-field__stepper__item",tabindex:"1",type:"button",onBlur:T[5]||(T[5]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[6]||(T[6]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onMousedown:T[7]||(T[7]=()=>m(-A.step))},[r.createVNode(ge,{color:o.value||C.value?"#C7C7CC":"#1C1C1E",name:"expand_more",size:"md"},null,8,["color"])],40,ZB)],2)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.createElementVNode("input",{ref_key:"inputEl",ref:c,disabled:o.value,inputMode:A.inputmode,placeholder:A.placeholder,readOnly:A.readonly,value:k.value,class:"fm-stepper-field--input outline-none",type:"text",onBlur:T[0]||(T[0]=(...L)=>r.unref(s)&&r.unref(s)(...L)),onFocus:T[1]||(T[1]=(...L)=>r.unref(l)&&r.unref(l)(...L)),onInput:y,onKeydown:v},null,40,KB)]),_:2},1032,["append-icon","focused","invalid","prepend-icon","show-valid-border"])]),"helper-text":r.withCtx(()=>[r.renderSlot(A.$slots,"helper-text",{},void 0,!0)]),_:3},8,["modelValue","disabled","focused","helper-state","helper-text","info","label","optional","required","rules"]))}}),[["__scopeId","data-v-62601f37"]]),eP=["disabled","maxlength","minlength","placeholder","readOnly","value"],tP=Ie(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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(e,"modelValue"),{isFocused:a,focus:s,blur:l}=ka(),c=p=>{i.value=p.target.value},u=r.ref(null);Vm(u,r.toRef(()=>e.autofocus));const h=()=>{var p;(p=u.value)==null||p.focus()};return(p,m)=>(r.openBlock(),r.createBlock(Rt,{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,eP)],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"]]),nP={class:"flex gap-8"},oP={class:"bg-fm-color-neutral-white flex flex-col px-24 py-16 rounded-lg shadow-light-300 w-[220px]"},rP={class:"flex flex-col gap-16 items-center justify-center w-full pb-16"},iP={class:"fm-typo-en-body-lg-600 text-left w-full"},aP={class:"fm-typo-en-body-lg-600 text-left w-full"},sP={class:"flex gap-8 items-center justify-end"},lP=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(tt,null),o=r.computed(()=>e.disabled??(n==null?void 0:n.getDisabled())??!1),i=Te(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(k=>!b(k))?null:i.value.map(k=>{const{hours:x,minutes:C,period:B}=ln(k);return`${xn(x)}:${xn(C)} ${B}`}).join(" - ")});function c(){if(!a.value||!s.value){i.value=null;return}const v=a.value,k=s.value,x=v.period===Vn.PM&&k.period===Vn.AM,B=!(v.period===Vn.PM&&v.hours===12&&k.period===Vn.PM&&k.hours!==12)&&v.period===k.period&&(v.hours>k.hours||v.hours===k.hours&&v.minutes>k.minutes),O=!e.disableTimeCheck&&(x||B),A=Qu(a.value),T=Qu(s.value);i.value=O?[T,A]:[A,T],h()}r.onMounted(()=>{Array.isArray(i.value)&&i.value.every(v=>!!v)&&(a.value=ln(i.value[0]),s.value=ln(i.value[1]))}),r.watch(()=>i.value,v=>{const k=Array.isArray(v);v&&k&&v.every(x=>b(x))&&(a.value=ln(v[0]),s.value=ln(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 k,x,C,B;v?(a.value=ln(((C=i.value)==null?void 0:C[0])??"00:00"),s.value=ln(((B=i.value)==null?void 0:B[1])??"23:59")):(a.value=(k=i.value)!=null&&k[0]?ln(i.value[0]):null,s.value=(x=i.value)!=null&&x[1]?ln(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:Tt(a.value,s.value));return(v,k)=>(r.openBlock(),r.createBlock(Rt,{modelValue:r.unref(i),"onUpdate:modelValue":k[2]||(k[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(Io,{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(ct,{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",nP,[r.createVNode(ge,{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",oP,[r.createElementVNode("div",rP,[r.createElementVNode("div",null,[r.createElementVNode("div",iP,r.toDisplayString(r.unref(_)("time.start")),1),r.createVNode(Tl,{"model-value":a.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":k[0]||(k[0]=C=>a.value=C)},null,8,["model-value"])]),r.createElementVNode("div",null,[r.createElementVNode("div",aP,r.toDisplayString(r.unref(_)("time.end")),1),r.createVNode(Tl,{"model-value":s.value??{hours:0,minutes:0,period:r.unref(Vn).AM},"onUpdate:modelValue":k[1]||(k[1]=C=>s.value=C)},null,8,["model-value"])])]),r.createElementVNode("div",sP,[r.createVNode(we,{label:r.unref(_)("actions.cancel"),size:"md",variant:"tertiary",onClick:h},null,8,["label"]),r.createVNode(we,{disabled:y.value,label:r.unref(_)("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"]))}}),uf=Ie(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"]]),ff=Ie(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(rr,{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 dP(t){for(;t;){if(cP(t))return t;t=t.parentElement}return document.scrollingElement}function cP(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 uP{constructor(e,n){ce(this,"onScroll");ce(this,"scrollParent");this.onScroll=n,this.scrollParent=dP(e)}bindScroll(){this.scrollParent.addEventListener("scroll",this.onScroll)}unbindScroll(){this.scrollParent.removeEventListener("scroll",this.onScroll)}}const fP={class:"fm-menu__wrapper"},pP=Ie(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:[wi(4),xi()],placement:o.placement,whileElementsMounted:ki});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 uP(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",fP,[r.renderSlot(b.$slots,"menu-content",{},void 0,!0)])],!0)],6)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5b19ece2"]]),hP={class:"fm-typo-en-body-md-600 mx-8 p-8 text-fm-color-typo-secondary"},mP=r.defineComponent({__name:"FmMenuHeader",props:{label:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",hP,r.toDisplayString(e.label),1))}}),gP=t=>(r.pushScopeId("data-v-6d0e6490"),t=t(),r.popScopeId(),t),bP={class:"relative"},yP={class:"fm-progress-linear fm-typo-en-body-sm-400 h-4 overflow-hidden relative rounded-lg w-auto"},vP=gP(()=>r.createElementVNode("span",{class:"bg-fm-color-neutral-gray-100",style:{width:"100%"}},null,-1)),kP=Ie(r.defineComponent({__name:"FmLinearProgress",props:{color:{default:"primary"}},setup(t){const e=t,n=r.computed(()=>{const o=new Array,i={};return e.color?(hi(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",bP,[r.createElementVNode("div",yP,[vP,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"]]),wP={key:0,class:"fm-typo-en-body-sm-400 text-fm-color-typo-secondary mt-4 text-right"},xP=Ie(r.defineComponent({__name:"FmProgressBar",props:{value:{default:void 0},max:{default:100},indeterminate:{type:Boolean,default:void 0},color:{default:"primary"},showLabel:{type:Boolean,default:!1},size:{default:"md"}},setup(t){const e=t,n=r.computed(()=>{const a=mi(e.value),s=mi(e.max)??100,l=e.indeterminate??a===null;return{value:l?null:Math.min(Math.max(0,a),s),max:s,indeterminate:l}}),o=r.computed(()=>{if(n.value.indeterminate||n.value.value===null)return 0;const a=n.value.value/n.value.max*100;return isNaN(a)?0:a}),i=r.computed(()=>{const a=new Array,s={};return e.color?(hi(e.color)?s["background-color"]=e.color:a.push(`bg-fm-color-${e.color}`),{class:a.join(" "),style:s}):{class:a.join(" "),style:s}});return(a,s)=>(r.openBlock(),r.createElementBlock("div",null,[r.createElementVNode("div",{class:r.normalizeClass(["fm-progress-bar",`fm-progress-bar--${a.size}`,{"fm-progress-bar--indeterminate":n.value.indeterminate},"overflow-hidden relative rounded-lg w-full bg-fm-color-neutral-gray-100"])},[n.value.indeterminate?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("span",{class:r.normalizeClass(["dash-1",i.value.class]),style:r.normalizeStyle(i.value.style)},null,6),r.createElementVNode("span",{class:r.normalizeClass(["dash-2",i.value.class]),style:r.normalizeStyle(i.value.style)},null,6)],64)):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["fm-progress-bar__fill rounded-lg",i.value.class]),style:r.normalizeStyle({width:`${o.value}%`,...i.value.style})},null,6))],2),a.showLabel&&!n.value.indeterminate?(r.openBlock(),r.createElementBlock("div",wP,r.toDisplayString(Math.round(o.value))+"% ",1)):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-b8386e08"]]),SP={class:"flex fm-typo-en-title-md-600 items-center justify-between text-fm-color-typo-primary pb-16"},CP={key:0},AP={class:"h-full overflow-y-auto"},EP={key:0,class:"pt-24"},DP=Ie(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=Te(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(Ei,{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",SP,[r.renderSlot(c.$slots,"side-sheet-header",{},()=>[c.header?(r.openBlock(),r.createElementBlock("div",CP,r.toDisplayString(c.header),1)):r.createCommentVNode("",!0)],!0),c.closeButton?(r.openBlock(),r.createBlock(ge,{key:0,name:c.closeIcon,class:"cursor-pointer",size:"md",onClick:l},null,8,["name"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",AP,[r.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots["side-sheet-footer"]?(r.openBlock(),r.createElementBlock("div",EP,[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"]]),BP={class:"flex items-center"},PP={key:1,class:"flex items-center mx-12"},IP={key:0,class:"mt-8"},pb=Ie(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?hi(n.bgColor)?{style:{backgroundColor:n.bgColor}}:{class:`bg-fm-color-${n.bgColor}`}:{class:`bg-fm-color-${i.value.bgColor}`}),l=r.computed(()=>n.color?hi(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",BP,[i.value.icon?(r.openBlock(),r.createBlock(ge,{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",PP,[r.createVNode(ge,{class:"animate-spin",name:"progress_activity"})])):r.createCommentVNode("",!0),n.dismissable?(r.openBlock(),r.createBlock(ge,{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",IP,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"]]),OP={class:r.normalizeClass(["fm-step-description","text-fm-color-typo-secondary","fm-typo-en-body-md-400 line-clamp-1","mt-4"])},pf=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",OP,r.toDisplayString(t.description),1)])],2))}}),NP=["data-title","data-description","data-disabled"],VP={class:"flex flex-col fm-step-container grow"},RP={class:"fm-step-container-content"},TP=Ie(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(om);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",VP,[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(ge,{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(pf,{title:t.title,description:t.description,disabled:a.value,class:"grow"},null,8,["title","description","disabled"])])),[[b,!a.value]]),r.createElementVNode("div",RP,[r.renderSlot(p.$slots,"default",{},void 0,!0)])])],10,NP)}}}),[["__scopeId","data-v-113e7095"]]),FP={class:"hidden items-center xs:flex"},MP={class:"flex gap-2 items-start justify-end mb-24 mt-40 p-0 self-stretch"},LP=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(om,{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",FP,[r.createVNode(Rr,{"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(pf,{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",MP,[r.renderSlot(h.$slots,"actions")])],2)):r.createCommentVNode("",!0)],2))}});let zP=0;function _P(){return zP++}const HP=t=>(r.pushScopeId("data-v-dfbdb871"),t=t(),r.popScopeId(),t),UP=["disabled"],WP={key:1,class:"ml-4"},jP={key:0,class:"ml-4"},GP={key:0,class:r.normalizeClass(["block","absolute bottom-0 left-0","h-0.5 w-full"])},QP=[HP(()=>r.createElementVNode("span",{class:r.normalizeClass(["block","bg-fm-color-primary rounded-xxxl","w-full h-full"])},null,-1))],hb=Ie(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:()=>_P()},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(so,{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(ge,{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",WP,[r.createVNode(or,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0),p.children.length>0?(r.openBlock(),r.createBlock(ge,{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",jP,[r.createVNode(or,{value:p.badge,inline:"",variant:"numeric"},null,8,["value"])])):r.createCommentVNode("",!0)],2),u.value&&!p.vertical?(r.openBlock(),r.createElementBlock("span",GP,QP)):r.createCommentVNode("",!0)],2)],2)],42,UP)]),default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p.children,y=>(r.openBlock(),r.createBlock(Dt,{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(or,{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"]]),XP={class:"flex gap-8 h-48 items-center justify-end transition-all w-full xs:flex-wrap-reverse"},qP={class:"flex flex-1 gap-8"},KP=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}=nr(),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,k,...x]=c;return x.length===0?{actionButtons:[y,v,k].filter(C=>C),collapse:x}:{actionButtons:[y,v].filter(C=>C),collapse:[k,...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=Te(e,"searchModel");return(l,c)=>(r.openBlock(),r.createElementBlock("div",XP,[r.renderSlot(l.$slots,"chips",{},()=>[l.chips.length?(r.openBlock(),r.createBlock(Xc,{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",qP,[(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(jl,{"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(we,{"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(so,{key:0},{"menu-button":r.withCtx(()=>[r.createVNode(we,{"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(Dt,{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(qc,{modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=u=>i.value=u),"dismiss-away":"","z-index":e.zIndexForBottomSheet},{default:r.withCtx(()=>[r.createVNode(uf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value.collapse,u=>(r.openBlock(),r.createBlock(ff,{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 JP={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_1555d81e-5c3b-44ca-969d-c47192760147",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_1555d81e-5c3b-44ca-969d-c47192760147",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.5.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-Linux",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:"1857",ACTIONS_ORCHESTRATION_ID:"7f0b5ab9-3ee5-45be-b4ff-4fe2fd103df3.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:"20260615.205.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:14837",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.11/x64",GITHUB_RUN_ID:"27700333904",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6a401b93763c8b1573ccbab8f62030bfcc9bc805",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/fix/table-page-size",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_75c75c33-18d9-4e43-b800-95def55d6768",INVOCATION_ID:"18ba417fefed49ddb02d8b4be9658a1a",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:"350",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 1000078405",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"fix/table-page-size",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.8",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:"6a401b93763c8b1573ccbab8f62030bfcc9bc805",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED:"1",GITHUB_REF:"refs/heads/fix/table-page-size",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_1555d81e-5c3b-44ca-969d-c47192760147",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_1555d81e-5c3b-44ca-969d-c47192760147",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_15.6.1",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_1555d81e-5c3b-44ca-969d-c47192760147",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 pr(t,e){return typeof t=="function"?t(e):t}function Sn(t,e){return n=>{e.setState(o=>({...o,[t]:pr(n,o[t])}))}}function Ql(t){return t instanceof Function}function YP(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 xe(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 Se(t,e,n,o){return{debug:()=>{var i;return(i=t==null?void 0:t.debugAll)!=null?i:t[e]},key:JP.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:xe(()=>[t,n,e,a],(s,l,c,u)=>({table:s,column:l,row:c,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Se(t.options,"debugCells"))};return t._features.forEach(s=>{s.createCell==null||s.createCell(a,n,e,t)},{}),a}function eI(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:xe(()=>[!0],()=>{var m;return[p,...(m=p.columns)==null?void 0:m.flatMap(b=>b.getFlatColumns())]},Se(t.options,"debugColumns")),getLeafColumns:xe(()=>[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]},Se(t.options,"debugColumns"))};for(const m of t._features)m.createColumn==null||m.createColumn(p,t);return p}const Gt="debugHeaders";function mb(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 tI={createTable:t=>{t.getHeaderGroups=xe(()=>[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 Xl(e,[...l,...u,...c],t)},Se(t.options,Gt)),t.getCenterHeaderGroups=xe(()=>[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))),Xl(e,n,t,"center")),Se(t.options,Gt)),t.getLeftHeaderGroups=xe(()=>[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 Xl(e,a,t,"left")},Se(t.options,Gt)),t.getRightHeaderGroups=xe(()=>[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 Xl(e,a,t,"right")},Se(t.options,Gt)),t.getFooterGroups=xe(()=>[t.getHeaderGroups()],e=>[...e].reverse(),Se(t.options,Gt)),t.getLeftFooterGroups=xe(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),Se(t.options,Gt)),t.getCenterFooterGroups=xe(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),Se(t.options,Gt)),t.getRightFooterGroups=xe(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),Se(t.options,Gt)),t.getFlatHeaders=xe(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),Se(t.options,Gt)),t.getLeftFlatHeaders=xe(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),Se(t.options,Gt)),t.getCenterFlatHeaders=xe(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),Se(t.options,Gt)),t.getRightFlatHeaders=xe(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),Se(t.options,Gt)),t.getCenterLeafHeaders=xe(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Se(t.options,Gt)),t.getLeftLeafHeaders=xe(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Se(t.options,Gt)),t.getRightLeafHeaders=xe(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Se(t.options,Gt)),t.getLeafHeaders=xe(()=>[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()},Se(t.options,Gt))}};function Xl(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(k=>{const x=[...v].reverse()[0],C=k.column.depth===y.depth;let B,O=!1;if(C&&k.column.parent?B=k.column.parent:(B=k.column,O=!0),x&&(x==null?void 0:x.column)===B)x.subHeaders.push(k);else{const A=mb(n,B,{id:[o,b,B.id,k==null?void 0:k.id].filter(Boolean).join("_"),isPlaceholder:O,placeholderId:O?`${v.filter(T=>T.column===B).length}`:void 0,depth:b,index:v.length});A.subHeaders.push(k),v.push(A)}y.headers.push(k),k.headerGroup=y}),c.push(y),b>0&&u(v,b-1)},h=e.map((m,b)=>mb(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,k=0,x=[0];y.subHeaders&&y.subHeaders.length?(x=[],p(y.subHeaders).forEach(B=>{let{colSpan:O,rowSpan:A}=B;v+=O,x.push(A)})):v=1;const C=Math.min(...x);return k=k+C,y.colSpan=v,y.rowSpan=k,{colSpan:v,rowSpan:k}});return p((i=(a=c[0])==null?void 0:a.headers)!=null?i:[]),c}const hf=(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:xe(()=>[t.getAllLeafColumns()],c=>c.map(u=>$P(t,l,u,u.id)),Se(t.options,"debugRows")),_getAllCellsByColumnId:xe(()=>[l.getAllCells()],c=>c.reduce((u,h)=>(u[h.column.id]=h,u),{}),Se(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},nI={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()}}},gb=(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))};gb.autoRemove=t=>Jn(t);const bb=(t,e,n)=>{var o;return!!(!((o=t.getValue(e))==null||(o=o.toString())==null)&&o.includes(n))};bb.autoRemove=t=>Jn(t);const yb=(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())};yb.autoRemove=t=>Jn(t);const vb=(t,e,n)=>{var o;return(o=t.getValue(e))==null?void 0:o.includes(n)};vb.autoRemove=t=>Jn(t)||!(t!=null&&t.length);const kb=(t,e,n)=>!n.some(o=>{var i;return!((i=t.getValue(e))!=null&&i.includes(o))});kb.autoRemove=t=>Jn(t)||!(t!=null&&t.length);const wb=(t,e,n)=>n.some(o=>{var i;return(i=t.getValue(e))==null?void 0:i.includes(o)});wb.autoRemove=t=>Jn(t)||!(t!=null&&t.length);const xb=(t,e,n)=>t.getValue(e)===n;xb.autoRemove=t=>Jn(t);const Sb=(t,e,n)=>t.getValue(e)==n;Sb.autoRemove=t=>Jn(t);const mf=(t,e,n)=>{let[o,i]=n;const a=t.getValue(e);return a>=o&&a<=i};mf.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]},mf.autoRemove=t=>Jn(t)||Jn(t[0])&&Jn(t[1]);const To={includesString:gb,includesStringSensitive:bb,equalsString:yb,arrIncludes:vb,arrIncludesAll:kb,arrIncludesSome:wb,equals:xb,weakEquals:Sb,inNumberRange:mf};function Jn(t){return t==null||t===""}const oI={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:Sn("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"?To.includesString:typeof o=="number"?To.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?To.equals:Array.isArray(o)?To.arrIncludes:To.weakEquals},t.getFilterFn=()=>{var n,o;return Ql(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:To[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=pr(n,a?a.value:void 0);if(Cb(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=pr(e,i))==null?void 0:a.filter(s=>{const l=n.find(c=>c.id===s.id);if(l){const c=l.getFilterFn();if(Cb(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 Cb(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const gf={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(!YP(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},rI={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:Sn("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 gf.sum;if(Object.prototype.toString.call(o)==="[object Date]")return gf.extent},t.getAggregationFn=()=>{var n,o;if(!t)throw new Error;return Ql(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:gf[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 iI(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 aI={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:Sn("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=xe(n=>[es(e,n)],n=>n.findIndex(o=>o.id===t.id),Se(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var o;return((o=es(e,n)[0])==null?void 0:o.id)===t.id},t.getIsLastColumn=n=>{var o;const i=es(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=xe(()=>[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 iI(a,n,o)},Se(t.options,"debugTable"))}},bf=()=>({left:[],right:[]}),sI={getInitialState:t=>({columnPinning:bf(),...t}),getDefaultOptions:t=>({onColumnPinningChange:Sn("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=xe(()=>[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))},Se(e.options,"debugRows")),t.getLeftVisibleCells=xe(()=>[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"})),Se(e.options,"debugRows")),t.getRightVisibleCells=xe(()=>[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"})),Se(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?bf():(n=(o=t.initialState)==null?void 0:o.columnPinning)!=null?n:bf())},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=xe(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),Se(t.options,"debugColumns")),t.getRightLeafColumns=xe(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(o=>e.find(i=>i.id===o)).filter(Boolean),Se(t.options,"debugColumns")),t.getCenterLeafColumns=xe(()=>[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))},Se(t.options,"debugColumns"))}},ql={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},yf=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),lI={getDefaultColumnDef:()=>ql,getInitialState:t=>({columnSizing:{},columnSizingInfo:yf(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Sn("columnSizing",t),onColumnSizingInfoChange:Sn("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:ql.minSize,(o=a??t.columnDef.size)!=null?o:ql.size),(i=t.columnDef.maxSize)!=null?i:ql.maxSize)},t.getStart=xe(n=>[n,es(e,n),e.getState().columnSizing],(n,o)=>o.slice(0,t.getIndex(n)).reduce((i,a)=>i+a.getSize(),0),Se(e.options,"debugColumns")),t.getAfter=xe(n=>[n,es(e,n),e.getState().columnSizing],(n,o)=>o.slice(t.getIndex(n)+1).reduce((i,a)=>i+a.getSize(),0),Se(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(),vf(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=vf(a)?Math.round(a.touches[0].clientX):a.clientX,u={},h=(x,C)=>{typeof C=="number"&&(e.setColumnSizingInfo(B=>{var O,A;const T=e.options.columnResizeDirection==="rtl"?-1:1,E=(C-((O=B==null?void 0:B.startOffset)!=null?O:0))*T,L=Math.max(E/((A=B==null?void 0:B.startSize)!=null?A:0),-.999999);return B.columnSizingStart.forEach(H=>{let[j,X]=H;u[j]=Math.round(Math.max(X+X*L,0)*100)/100}),{...B,deltaOffset:E,deltaPercentage:L}}),(e.options.columnResizeMode==="onChange"||x==="end")&&e.setColumnSizing(B=>({...B,...u})))},p=x=>h("move",x),m=x=>{h("end",x),e.setColumnSizingInfo(C=>({...C,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 C;b==null||b.removeEventListener("touchmove",v.moveHandler),b==null||b.removeEventListener("touchend",v.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),m((C=x.touches[0])==null?void 0:C.clientX)}},k=dI()?{passive:!1}:!1;vf(a)?(b==null||b.addEventListener("touchmove",v.moveHandler,k),b==null||b.addEventListener("touchend",v.upHandler,k)):(b==null||b.addEventListener("mousemove",y.moveHandler,k),b==null||b.addEventListener("mouseup",y.upHandler,k)),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?yf():(n=t.initialState.columnSizingInfo)!=null?n:yf())},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 Kl=null;function dI(){if(typeof Kl=="boolean")return Kl;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 Kl=t,Kl}function vf(t){return t.type==="touchstart"}const cI={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:Sn("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=xe(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),Se(e.options,"debugRows")),t.getVisibleCells=xe(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,o,i)=>[...n,...o,...i],Se(e.options,"debugRows"))},createTable:t=>{const e=(n,o)=>xe(()=>[o(),o().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Se(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 es(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const uI={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()}}},fI={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:Sn("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=()=>To.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:o}=t.options;return Ql(o)?o:o==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[o])!=null?e:To[o]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},pI={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:Sn("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()}}}},kf=0,wf=10,xf=()=>({pageIndex:kf,pageSize:wf}),hI={getInitialState:t=>({...t,pagination:{...xf(),...t==null?void 0:t.pagination}}),getDefaultOptions:t=>({onPaginationChange:Sn("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=>pr(o,a);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i)},t.resetPagination=o=>{var i;t.setPagination(o?xf():(i=t.initialState.pagination)!=null?i:xf())},t.setPageIndex=o=>{t.setPagination(i=>{let a=pr(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?kf:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:kf)},t.resetPageSize=o=>{var i,a;t.setPageSize(o?wf:(i=(a=t.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:wf)},t.setPageSize=o=>{t.setPagination(i=>{const a=Math.max(1,pr(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=pr(o,(a=t.options.pageCount)!=null?a:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...i,pageCount:s}}),t.getPageOptions=xe(()=>[t.getPageCount()],o=>{let i=[];return o&&o>0&&(i=[...new Array(o)].fill(null).map((a,s)=>s)),i},Se(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}}},Sf=()=>({top:[],bottom:[]}),mI={getInitialState:t=>({rowPinning:Sf(),...t}),getDefaultOptions:t=>({onRowPinningChange:Sn("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?Sf():(n=(o=t.initialState)==null?void 0:o.rowPinning)!=null?n:Sf())},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=xe(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),Se(t.options,"debugRows")),t.getBottomRows=xe(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),Se(t.options,"debugRows")),t.getCenterRows=xe(()=>[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))},Se(t.options,"debugRows"))}},gI={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:Sn("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=>{Cf(i,a.id,o,!0,t)}),i}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=xe(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?Af(t,n):{rows:[],flatRows:[],rowsById:{}},Se(t.options,"debugTable")),t.getFilteredSelectedRowModel=xe(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?Af(t,n):{rows:[],flatRows:[],rowsById:{}},Se(t.options,"debugTable")),t.getGroupedSelectedRowModel=xe(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?Af(t,n):{rows:[],flatRows:[],rowsById:{}},Se(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 Cf(l,t.id,n,(s=o==null?void 0:o.selectChildren)!=null?s:!0,e),l})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return Ef(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return Df(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return Df(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)}}}},Cf=(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=>Cf(t,l.id,n,o,i))};function Af(t,e){const n=t.getState().rowSelection,o=[],i={},a=function(s,l){return s.map(c=>{var u;const h=Ef(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 Ef(t,e){var n;return(n=e[t.id])!=null?n:!1}function Df(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()&&(Ef(s,e)?a=!0:i=!1),s.subRows&&s.subRows.length)){const l=Df(s,e);l==="all"?a=!0:(l==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const Bf=/([0-9]+)/gm,bI=(t,e,n)=>Ab(hr(t.getValue(n)).toLowerCase(),hr(e.getValue(n)).toLowerCase()),yI=(t,e,n)=>Ab(hr(t.getValue(n)),hr(e.getValue(n))),vI=(t,e,n)=>Pf(hr(t.getValue(n)).toLowerCase(),hr(e.getValue(n)).toLowerCase()),kI=(t,e,n)=>Pf(hr(t.getValue(n)),hr(e.getValue(n))),wI=(t,e,n)=>{const o=t.getValue(n),i=e.getValue(n);return o>i?1:o<i?-1:0},xI=(t,e,n)=>Pf(t.getValue(n),e.getValue(n));function Pf(t,e){return t===e?0:t>e?1:-1}function hr(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function Ab(t,e){const n=t.split(Bf).filter(Boolean),o=e.split(Bf).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 ts={alphanumeric:bI,alphanumericCaseSensitive:yI,text:vI,textCaseSensitive:kI,datetime:wI,basic:xI},SI=[tI,cI,aI,sI,nI,oI,uI,fI,{getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:Sn("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 ts.datetime;if(typeof a=="string"&&(o=!0,a.split(Bf).length>1))return ts.alphanumeric}return o?ts.text:ts.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 Ql(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:ts[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())}},rI,pI,hI,mI,gI,lI];function CI(t){var e,n;const o=[...SI,...(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=pr(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:xe(()=>[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,k;return(v=(k=y.renderValue())==null||k.toString==null?void 0:k.toString())!=null?v:null},...i._features.reduce((y,v)=>Object.assign(y,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...m}},Se(t,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:xe(()=>[i._getColumnDefs()],m=>{const b=function(y,v,k){return k===void 0&&(k=0),y.map(x=>{const C=eI(i,x,k,v),B=x;return C.columns=B.columns?b(B.columns,C,k+1):[],C})};return b(m)},Se(t,"debugColumns")),getAllFlatColumns:xe(()=>[i.getAllColumns()],m=>m.flatMap(b=>b.getFlatColumns()),Se(t,"debugColumns")),_getAllFlatColumnsById:xe(()=>[i.getAllFlatColumns()],m=>m.reduce((b,y)=>(b[y.id]=y,b),{}),Se(t,"debugColumns")),getAllLeafColumns:xe(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(m,b)=>{let y=m.flatMap(v=>v.getLeafColumns());return b(y)},Se(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 AI(){return t=>xe(()=>[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=hf(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},Se(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function EI(){return t=>xe(()=>[t.getState().expanded,t.getPreExpandedRowModel(),t.options.paginateExpandedRows],(e,n,o)=>!n.rows.length||e!==!0&&!Object.keys(e??{}).length||!o?n:Eb(n),Se(t.options,"debugTable"))}function Eb(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 DI(t,e,n){return n.options.filterFromLeafRows?BI(t,e,n):PI(t,e,n)}function BI(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=hf(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 PI(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=hf(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 II(){return t=>xe(()=>[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,k=>{b.columnFiltersMeta[v]=k})}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,k=>{b.columnFiltersMeta[v]=k})){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 DI(e.rows,p,t)},Se(t.options,"debugTable","getFilteredRowModel",()=>t._autoResetPageIndex()))}function OI(t){return e=>xe(()=>[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=Eb({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},Se(e.options,"debugTable"))}function NI(){return t=>xe(()=>[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],k=v.sortUndefined,x=(m=y==null?void 0:y.desc)!=null?m:!1;let C=0;if(k){const B=h.getValue(y.id),O=p.getValue(y.id),A=B===void 0,T=O===void 0;if(A||T){if(k==="first")return A?-1:1;if(k==="last")return A?1:-1;C=A&&T?0:A?k:-k}}if(C===0&&(C=v.sortingFn(h,p,y.id)),C!==0)return x&&(C*=-1),v.invertSorting&&(C*=-1),C}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}},Se(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}/**
@@ -126,5 +126,5 @@ function print() { __p += __j.call(arguments, '') }
126
126
  */function Jl(){return!0}const VI=Symbol("merge-proxy"),RI={get(t,e,n){return e===VI?n:t.get(e)},has(t,e){return t.has(e)},set:Jl,deleteProperty:Jl,getOwnPropertyDescriptor(t,e){return{configurable:!0,enumerable:!0,get(){return t.get(e)},set:Jl,deleteProperty:Jl}},ownKeys(t){return t.keys()}};function If(t){return"value"in t?t.value:t}function ns(){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=If(e[i])[o];if(a!==void 0)return a}},has(o){for(let i=e.length-1;i>=0;i--)if(o in If(e[i]))return!0;return!1},keys(){const o=[];for(let i=0;i<e.length;i++)o.push(...Object.keys(If(e[i])));return[...Array.from(new Set(o))]}},RI)}const os=r.defineComponent({props:["render","props"],setup:t=>()=>typeof t.render=="function"||typeof t.render=="object"?r.h(t.render,t.props):t.render});function Db(t){return ns(t,{data:r.unref(t.data)})}function TI(t){const e=ns({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(i,a){return ns(i,a)}},Db(t)),n=CI(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 ns(i,Db(t),{state:ns(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 FI=["checked","disabled","indeterminate"],Bb=Ie(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,FI),o.indeterminate||o.checked?(r.openBlock(),r.createBlock(ge,{key:0,name:n.value,class:"fm-checkbox__input--checkmark",color:"#FFFFFF",size:"md"},null,8,["name"])):r.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-05ce96cb"]]),MI=["id"],Pb=r.defineComponent({__name:"FmTableSelection",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(t){const n=Te(t,"modelValue"),o=r.ref(!1);return(i,a)=>(r.openBlock(),r.createBlock(so,{"max-height":264,shift:"",onMenuChanged:a[0]||(a[0]=s=>o.value=s)},{"menu-button":r.withCtx(()=>{var s;return[r.createVNode(we,{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(Dt,{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,MI)]),_:1}))}}),LI=["colSpan","onClick"],Yl=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,k,x,C,B;return r.openBlock(),r.createElementBlock("th",{key:m.id,ref_for:!0,ref:O=>O&&i.value.set(m.id,O),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`:(k=a(m))==null?void 0:k.width,maxWidth:(x=a(m))==null?void 0:x.maxWidth,textAlign:((C=a(m))==null?void 0:C.textAlign)??"left"}),onClick:O=>{var A;return(A=m.column.getToggleSortingHandler())==null?void 0:A(O)}},[r.createElementVNode("div",{class:r.normalizeClass([((B=a(m))==null?void 0:B.headerContentClass)??"flex gap-8 items-center"])},[m.isPlaceholder?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(os),{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,LI)}),128))]))),128))])}}});function zI(){this.__data__=[],this.size=0}var _I=zI;function HI(t,e){return t===e||t!==t&&e!==e}var Ib=HI,UI=Ib;function WI(t,e){for(var n=t.length;n--;)if(UI(t[n][0],e))return n;return-1}var Zl=WI,jI=Zl,GI=Array.prototype,QI=GI.splice;function XI(t){var e=this.__data__,n=jI(e,t);if(n<0)return!1;var o=e.length-1;return n==o?e.pop():QI.call(e,n,1),--this.size,!0}var qI=XI,KI=Zl;function JI(t){var e=this.__data__,n=KI(e,t);return n<0?void 0:e[n][1]}var YI=JI,ZI=Zl;function $I(t){return ZI(this.__data__,t)>-1}var eO=$I,tO=Zl;function nO(t,e){var n=this.__data__,o=tO(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var oO=nO,rO=_I,iO=qI,aO=YI,sO=eO,lO=oO;function zi(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])}}zi.prototype.clear=rO,zi.prototype.delete=iO,zi.prototype.get=aO,zi.prototype.has=sO,zi.prototype.set=lO;var $l=zi,dO=$l;function cO(){this.__data__=new dO,this.size=0}var uO=cO;function fO(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var pO=fO;function hO(t){return this.__data__.get(t)}var mO=hO;function gO(t){return this.__data__.has(t)}var bO=gO,yO=typeof nn=="object"&&nn&&nn.Object===Object&&nn,Ob=yO,vO=Ob,kO=typeof self=="object"&&self&&self.Object===Object&&self,wO=vO||kO||Function("return this")(),Fo=wO,xO=Fo,SO=xO.Symbol,Of=SO,Nb=Of,Vb=Object.prototype,CO=Vb.hasOwnProperty,AO=Vb.toString,rs=Nb?Nb.toStringTag:void 0;function EO(t){var e=CO.call(t,rs),n=t[rs];try{t[rs]=void 0;var o=!0}catch{}var i=AO.call(t);return o&&(e?t[rs]=n:delete t[rs]),i}var DO=EO,BO=Object.prototype,PO=BO.toString;function IO(t){return PO.call(t)}var OO=IO,Rb=Of,NO=DO,VO=OO,RO="[object Null]",TO="[object Undefined]",Tb=Rb?Rb.toStringTag:void 0;function FO(t){return t==null?t===void 0?TO:RO:Tb&&Tb in Object(t)?NO(t):VO(t)}var ed=FO;function MO(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Fb=MO,LO=ed,zO=Fb,_O="[object AsyncFunction]",HO="[object Function]",UO="[object GeneratorFunction]",WO="[object Proxy]";function jO(t){if(!zO(t))return!1;var e=LO(t);return e==HO||e==UO||e==_O||e==WO}var Mb=jO,GO=Fo,QO=GO["__core-js_shared__"],XO=QO,Nf=XO,Lb=function(){var t=/[^.]+$/.exec(Nf&&Nf.keys&&Nf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qO(t){return!!Lb&&Lb in t}var KO=qO,JO=Function.prototype,YO=JO.toString;function ZO(t){if(t!=null){try{return YO.call(t)}catch{}try{return t+""}catch{}}return""}var zb=ZO,$O=Mb,eN=KO,tN=Fb,nN=zb,oN=/[\\^$.*+?()[\]{}|]/g,rN=/^\[object .+?Constructor\]$/,iN=Function.prototype,aN=Object.prototype,sN=iN.toString,lN=aN.hasOwnProperty,dN=RegExp("^"+sN.call(lN).replace(oN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cN(t){if(!tN(t)||eN(t))return!1;var e=$O(t)?dN:rN;return e.test(nN(t))}var uN=cN;function fN(t,e){return t==null?void 0:t[e]}var pN=fN,hN=uN,mN=pN;function gN(t,e){var n=mN(t,e);return hN(n)?n:void 0}var _i=gN,bN=_i,yN=Fo,vN=bN(yN,"Map"),Vf=vN,kN=_i,wN=kN(Object,"create"),td=wN,_b=td;function xN(){this.__data__=_b?_b(null):{},this.size=0}var SN=xN;function CN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var AN=CN,EN=td,DN="__lodash_hash_undefined__",BN=Object.prototype,PN=BN.hasOwnProperty;function IN(t){var e=this.__data__;if(EN){var n=e[t];return n===DN?void 0:n}return PN.call(e,t)?e[t]:void 0}var ON=IN,NN=td,VN=Object.prototype,RN=VN.hasOwnProperty;function TN(t){var e=this.__data__;return NN?e[t]!==void 0:RN.call(e,t)}var FN=TN,MN=td,LN="__lodash_hash_undefined__";function zN(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=MN&&e===void 0?LN:e,this}var _N=zN,HN=SN,UN=AN,WN=ON,jN=FN,GN=_N;function Hi(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])}}Hi.prototype.clear=HN,Hi.prototype.delete=UN,Hi.prototype.get=WN,Hi.prototype.has=jN,Hi.prototype.set=GN;var QN=Hi,Hb=QN,XN=$l,qN=Vf;function KN(){this.size=0,this.__data__={hash:new Hb,map:new(qN||XN),string:new Hb}}var JN=KN;function YN(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ZN=YN,$N=ZN;function eV(t,e){var n=t.__data__;return $N(e)?n[typeof e=="string"?"string":"hash"]:n.map}var nd=eV,tV=nd;function nV(t){var e=tV(this,t).delete(t);return this.size-=e?1:0,e}var oV=nV,rV=nd;function iV(t){return rV(this,t).get(t)}var aV=iV,sV=nd;function lV(t){return sV(this,t).has(t)}var dV=lV,cV=nd;function uV(t,e){var n=cV(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var fV=uV,pV=JN,hV=oV,mV=aV,gV=dV,bV=fV;function Ui(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])}}Ui.prototype.clear=pV,Ui.prototype.delete=hV,Ui.prototype.get=mV,Ui.prototype.has=gV,Ui.prototype.set=bV;var Ub=Ui,yV=$l,vV=Vf,kV=Ub,wV=200;function xV(t,e){var n=this.__data__;if(n instanceof yV){var o=n.__data__;if(!vV||o.length<wV-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new kV(o)}return n.set(t,e),this.size=n.size,this}var SV=xV,CV=$l,AV=uO,EV=pO,DV=mO,BV=bO,PV=SV;function Wi(t){var e=this.__data__=new CV(t);this.size=e.size}Wi.prototype.clear=AV,Wi.prototype.delete=EV,Wi.prototype.get=DV,Wi.prototype.has=BV,Wi.prototype.set=PV;var IV=Wi,OV="__lodash_hash_undefined__";function NV(t){return this.__data__.set(t,OV),this}var VV=NV;function RV(t){return this.__data__.has(t)}var TV=RV,FV=Ub,MV=VV,LV=TV;function od(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new FV;++e<n;)this.add(t[e])}od.prototype.add=od.prototype.push=MV,od.prototype.has=LV;var zV=od;function _V(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 HV=_V;function UV(t,e){return t.has(e)}var WV=UV,jV=zV,GV=HV,QV=WV,XV=1,qV=2;function KV(t,e,n,o,i,a){var s=n&XV,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&qV?new jV:void 0;for(a.set(t,e),a.set(e,t);++p<l;){var y=t[p],v=e[p];if(o)var k=s?o(v,y,p,e,t,a):o(y,v,p,t,e,a);if(k!==void 0){if(k)continue;m=!1;break}if(b){if(!GV(e,function(x,C){if(!QV(b,C)&&(y===x||i(y,x,n,o,a)))return b.push(C)})){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 Wb=KV,JV=Fo,YV=JV.Uint8Array,ZV=YV;function $V(t){var e=-1,n=Array(t.size);return t.forEach(function(o,i){n[++e]=[i,o]}),n}var eR=$V;function tR(t){var e=-1,n=Array(t.size);return t.forEach(function(o){n[++e]=o}),n}var nR=tR,jb=Of,Gb=ZV,oR=Ib,rR=Wb,iR=eR,aR=nR,sR=1,lR=2,dR="[object Boolean]",cR="[object Date]",uR="[object Error]",fR="[object Map]",pR="[object Number]",hR="[object RegExp]",mR="[object Set]",gR="[object String]",bR="[object Symbol]",yR="[object ArrayBuffer]",vR="[object DataView]",Qb=jb?jb.prototype:void 0,Rf=Qb?Qb.valueOf:void 0;function kR(t,e,n,o,i,a,s){switch(n){case vR:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case yR:return!(t.byteLength!=e.byteLength||!a(new Gb(t),new Gb(e)));case dR:case cR:case pR:return oR(+t,+e);case uR:return t.name==e.name&&t.message==e.message;case hR:case gR:return t==e+"";case fR:var l=iR;case mR:var c=o&sR;if(l||(l=aR),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;o|=lR,s.set(t,e);var h=rR(l(t),l(e),o,i,a,s);return s.delete(t),h;case bR:if(Rf)return Rf.call(t)==Rf.call(e)}return!1}var wR=kR;function xR(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t}var SR=xR,CR=Array.isArray,Tf=CR,AR=SR,ER=Tf;function DR(t,e,n){var o=e(t);return ER(t)?o:AR(o,n(t))}var BR=DR;function PR(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 IR=PR;function OR(){return[]}var NR=OR,VR=IR,RR=NR,TR=Object.prototype,FR=TR.propertyIsEnumerable,Xb=Object.getOwnPropertySymbols,MR=Xb?function(t){return t==null?[]:(t=Object(t),VR(Xb(t),function(e){return FR.call(t,e)}))}:RR,LR=MR;function zR(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}var _R=zR;function HR(t){return t!=null&&typeof t=="object"}var rd=HR,UR=ed,WR=rd,jR="[object Arguments]";function GR(t){return WR(t)&&UR(t)==jR}var QR=GR,qb=QR,XR=rd,Kb=Object.prototype,qR=Kb.hasOwnProperty,KR=Kb.propertyIsEnumerable,JR=qb(function(){return arguments}())?qb:function(t){return XR(t)&&qR.call(t,"callee")&&!KR.call(t,"callee")},YR=JR,id={exports:{}};function ZR(){return!1}var $R=ZR;id.exports,function(t,e){var n=Fo,o=$R,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}(id,id.exports);var Jb=id.exports,eT=9007199254740991,tT=/^(?:0|[1-9]\d*)$/;function nT(t,e){var n=typeof t;return e=e??eT,!!e&&(n=="number"||n!="symbol"&&tT.test(t))&&t>-1&&t%1==0&&t<e}var oT=nT,rT=9007199254740991;function iT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rT}var Yb=iT,aT=ed,sT=Yb,lT=rd,dT="[object Arguments]",cT="[object Array]",uT="[object Boolean]",fT="[object Date]",pT="[object Error]",hT="[object Function]",mT="[object Map]",gT="[object Number]",bT="[object Object]",yT="[object RegExp]",vT="[object Set]",kT="[object String]",wT="[object WeakMap]",xT="[object ArrayBuffer]",ST="[object DataView]",CT="[object Float32Array]",AT="[object Float64Array]",ET="[object Int8Array]",DT="[object Int16Array]",BT="[object Int32Array]",PT="[object Uint8Array]",IT="[object Uint8ClampedArray]",OT="[object Uint16Array]",NT="[object Uint32Array]",st={};st[CT]=st[AT]=st[ET]=st[DT]=st[BT]=st[PT]=st[IT]=st[OT]=st[NT]=!0,st[dT]=st[cT]=st[xT]=st[uT]=st[ST]=st[fT]=st[pT]=st[hT]=st[mT]=st[gT]=st[bT]=st[yT]=st[vT]=st[kT]=st[wT]=!1;function VT(t){return lT(t)&&sT(t.length)&&!!st[aT(t)]}var RT=VT;function TT(t){return function(e){return t(e)}}var FT=TT,ad={exports:{}};ad.exports,function(t,e){var n=Ob,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}(ad,ad.exports);var MT=ad.exports,LT=RT,zT=FT,Zb=MT,$b=Zb&&Zb.isTypedArray,_T=$b?zT($b):LT,ey=_T,HT=_R,UT=YR,WT=Tf,jT=Jb,GT=oT,QT=ey,XT=Object.prototype,qT=XT.hasOwnProperty;function KT(t,e){var n=WT(t),o=!n&&UT(t),i=!n&&!o&&jT(t),a=!n&&!o&&!i&&QT(t),s=n||o||i||a,l=s?HT(t.length,String):[],c=l.length;for(var u in t)(e||qT.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GT(u,c)))&&l.push(u);return l}var JT=KT,YT=Object.prototype;function ZT(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||YT;return t===n}var $T=ZT;function eF(t,e){return function(n){return t(e(n))}}var tF=eF,nF=tF,oF=nF(Object.keys,Object),rF=oF,iF=$T,aF=rF,sF=Object.prototype,lF=sF.hasOwnProperty;function dF(t){if(!iF(t))return aF(t);var e=[];for(var n in Object(t))lF.call(t,n)&&n!="constructor"&&e.push(n);return e}var cF=dF,uF=Mb,fF=Yb;function pF(t){return t!=null&&fF(t.length)&&!uF(t)}var hF=pF,mF=JT,gF=cF,bF=hF;function yF(t){return bF(t)?mF(t):gF(t)}var vF=yF,kF=BR,wF=LR,xF=vF;function SF(t){return kF(t,xF,wF)}var CF=SF,ty=CF,AF=1,EF=Object.prototype,DF=EF.hasOwnProperty;function BF(t,e,n,o,i,a){var s=n&AF,l=ty(t),c=l.length,u=ty(e),h=u.length;if(c!=h&&!s)return!1;for(var p=c;p--;){var m=l[p];if(!(s?m in e:DF.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 k=s;++p<c;){m=l[p];var x=t[m],C=e[m];if(o)var B=s?o(C,x,m,e,t,a):o(x,C,m,t,e,a);if(!(B===void 0?x===C||i(x,C,n,o,a):B)){v=!1;break}k||(k=m=="constructor")}if(v&&!k){var O=t.constructor,A=e.constructor;O!=A&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(t),a.delete(e),v}var PF=BF,IF=_i,OF=Fo,NF=IF(OF,"DataView"),VF=NF,RF=_i,TF=Fo,FF=RF(TF,"Promise"),MF=FF,LF=_i,zF=Fo,_F=LF(zF,"Set"),HF=_F,UF=_i,WF=Fo,jF=UF(WF,"WeakMap"),GF=jF,Ff=VF,Mf=Vf,Lf=MF,zf=HF,_f=GF,ny=ed,ji=zb,oy="[object Map]",QF="[object Object]",ry="[object Promise]",iy="[object Set]",ay="[object WeakMap]",sy="[object DataView]",XF=ji(Ff),qF=ji(Mf),KF=ji(Lf),JF=ji(zf),YF=ji(_f),Yr=ny;(Ff&&Yr(new Ff(new ArrayBuffer(1)))!=sy||Mf&&Yr(new Mf)!=oy||Lf&&Yr(Lf.resolve())!=ry||zf&&Yr(new zf)!=iy||_f&&Yr(new _f)!=ay)&&(Yr=function(t){var e=ny(t),n=e==QF?t.constructor:void 0,o=n?ji(n):"";if(o)switch(o){case XF:return sy;case qF:return oy;case KF:return ry;case JF:return iy;case YF:return ay}return e});var ZF=Yr,Hf=IV,$F=Wb,eM=wR,tM=PF,ly=ZF,dy=Tf,cy=Jb,nM=ey,oM=1,uy="[object Arguments]",fy="[object Array]",sd="[object Object]",rM=Object.prototype,py=rM.hasOwnProperty;function iM(t,e,n,o,i,a){var s=dy(t),l=dy(e),c=s?fy:ly(t),u=l?fy:ly(e);c=c==uy?sd:c,u=u==uy?sd:u;var h=c==sd,p=u==sd,m=c==u;if(m&&cy(t)){if(!cy(e))return!1;s=!0,h=!1}if(m&&!h)return a||(a=new Hf),s||nM(t)?$F(t,e,n,o,i,a):eM(t,e,c,n,o,i,a);if(!(n&oM)){var b=h&&py.call(t,"__wrapped__"),y=p&&py.call(e,"__wrapped__");if(b||y){var v=b?t.value():t,k=y?e.value():e;return a||(a=new Hf),i(v,k,n,o,a)}}return m?(a||(a=new Hf),tM(t,e,n,o,i,a)):!1}var aM=iM,sM=aM,hy=rd;function my(t,e,n,o,i){return t===e?!0:t==null||e==null||!hy(t)&&!hy(e)?t!==t&&e!==e:sM(t,e,n,o,my,i)}var lM=my,dM=lM;function cM(t,e){return dM(t,e)}var uM=cM;const fM=wa(uM);function Gi(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,k=(x,C)=>{for(x=String(x);x.length<C;)x=" "+x;return x};console.info(`%c⏱ ${k(y,5)} /${k(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 Uf(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const pM=(t,e)=>Math.abs(t-e)<1,hM=(t,e,n)=>{let o;return function(...i){t.clearTimeout(o),o=t.setTimeout(()=>e.apply(this,i),n)}};var is={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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.5.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-Linux",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:"1868",ACTIONS_ORCHESTRATION_ID:"9a2bc586-def5-4276-87a4-d38705f95958.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:"20260607.184.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:15460",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.11/x64",GITHUB_RUN_ID:"27519561550",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"c3e44b58f6358f7c5271f6ebe03d0d49f1e7b7f6",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/fix/default-page-size",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_e82ba1c0-a00b-4a77-8b7e-95865babbf70",INVOCATION_ID:"824bcebc7943411a8c19c74fb1db49e2",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:"348",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 1000077134",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"fix/default-page-size",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.7",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:"c3e44b58f6358f7c5271f6ebe03d0d49f1e7b7f6",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED:"1",GITHUB_REF:"refs/heads/fix/default-page-size",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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_15.6.1",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_7c630dd7-063a-4125-b6a6-f57c8e4e9f3a",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 mM=t=>t,gM=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},bM=(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)}},gy={passive:!0},by=typeof window>"u"?!0:"onscrollend"in window,yM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;let i=0;const a=t.options.useScrollendEvent&&by?()=>{}:hM(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,gy);const u=t.options.useScrollendEvent&&by;return u&&n.addEventListener("scrollend",c,gy),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},vM=(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"])},kM=(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 wM{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:mM,rangeExtractor:gM,onChange:()=>{},measureElement:vM,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=Gi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:is.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=Gi(()=>[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=Gi(()=>[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),k=b+v,x=m?m.lane:h%this.options.lanes;u[h]={index:h,start:b,size:v,end:k,key:p,lane:x}}return this.measurementsCache=u,u},{key:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,o,i)=>this.range=n.length>0&&o>0?xM({measurements:n,outerSize:o,scrollOffset:i}):null,{key:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualIndexes=Gi(()=>{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:is.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=Gi(()=>[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:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Uf(o[yy(0,o.length-1,i=>Uf(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]=Uf(this.getOffsetForIndex(n,l));pM(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 yy=(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 xM({measurements:t,outerSize:e,scrollOffset:n}){const o=t.length-1,a=yy(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 SM(t){const e=new wM(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 CM(t){return SM(r.computed(()=>({observeElementRect:bM,observeElementOffset:yM,scrollToFn:kM,...r.unref(t)})))}const AM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},EM={class:"text-fm-color-typo-secondary"},DM=["onClick"],BM={key:0},PM={key:0,class:"w-full"},IM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},OM={class:"text-fm-color-typo-secondary"},NM=["onClick"],VM=["colspan"],RM={key:1,class:"virtual-table-container w-full"},TM={class:"sticky top-0 z-10 w-full"},FM={class:"w-full"},MM=["onClick"],LM={class:"flex gap-8 items-center"},zM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},_M={class:"flex gap-8"},HM=Ie(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:void 0},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=Te(n,"modelValue"),a=Te(n,"searchValue"),s=r.ref(n.rowData),l=r.ref(!1);r.watch(()=>l.value,V=>{o("update:dragging",V),V&&o("update:expanded-state",{})});const c=()=>{let V=[];n.selection&&V.push({id:"row-selection",header:({table:ee})=>r.createVNode(Bb,{checked:ee.getIsAllPageRowsSelected(),indeterminate:ee.getIsSomePageRowsSelected(),onChange:ee.getToggleAllPageRowsSelectedHandler()},null),cell:({row:ee})=>ee.depth===0?r.createVNode(Bb,{checked:ee==null?void 0:ee.getIsSelected(),disabled:!(ee!=null&&ee.getCanSelect()),onChange:ee==null?void 0:ee.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 Q=n.draggable;return Q&&!n.wholeRowDraggable&&V.push({id:"row-drag",header:"",cell:({row:ee})=>(typeof Q=="function"?Q(ee.original,ee.index):Q)&&ee.depth===0?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(we,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",onMousedown:()=>{l.value=!0},onMouseup:()=>{l.value=!1}})):typeof Q=="function"?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(we,{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}),[...V,...n.columnDefs]},u=r.ref([]);r.watch(()=>u.value,V=>{o("sort-change",V)}),r.watch(()=>n.rowData,V=>{s.value=[...V]},{deep:!0});const h=r.computed(()=>n.hideFooter?n.rowData.length:n.pageSize??10),p=r.ref({pageIndex:0,pageSize:h.value}),m=TI({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"?p.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:AI(),getSortedRowModel:NI(),getFilteredRowModel:II(),getPaginationRowModel:OI(),getRowCanExpand:n.getRowCanExpand,onExpandedChange:V=>{if(!n.expandedState)return;const Q=typeof V=="function"?V(n.expandedState):V;o("update:expanded-state",Q)},onRowSelectionChange:V=>{if(!k.value)return i.value=typeof V=="function"?V(i.value):V},onSortingChange:V=>{u.value=typeof V=="function"?V(u.value):V},onGlobalFilterChange:V=>{a.value=typeof V=="function"?V(a.value):V},autoResetPageIndex:n.autoResetPageIndex,manualPagination:typeof n.fetchFn=="function",...typeof n.fetchFn=="function"&&{onPaginationChange:V=>p.value=typeof V=="function"?V(p.value):V},get pageCount(){return typeof n.fetchFn=="function"?n.pageCount:void 0},getSubRows:V=>n.getSubRow(V),getExpandedRowModel:EI(),get enableHiding(){return!0}});r.watch(()=>p.value,V=>{v(V)}),r.watch(()=>n.selection,()=>{m.setOptions(V=>({...V,get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()}}))});const b=r.ref(""),y=r.ref(!1);async function v(V){if(!n.fetchFn)return;y.value=!0;const Q=`${Math.random()}`;b.value=Q;try{await n.fetchFn(V)}catch{}finally{b.value===Q&&(y.value=!1)}}const k=r.computed(()=>{const V=y.value;return typeof n.loading=="boolean"?n.loading:V});r.watch(()=>n.rowData,()=>{m.setOptions(V=>({...V,get data(){return s.value}}))}),r.watch([()=>n.pageCount,()=>n.rowCount],()=>{m.setOptions(V=>({...V,pageCount:n.pageCount,rowCount:n.rowCount}))}),r.watch(h,V=>{m.setPageSize(V),typeof n.fetchFn=="function"&&(p.value={...p.value,pageSize:V})}),r.watch([()=>n.columnFilter],([V])=>{m.setColumnFilters(()=>V??[])}),r.watch(()=>n.columnDefs,()=>{m.setOptions(V=>({...V,get columns(){return c()}}))}),r.onMounted(()=>{n.fetchFn&&n.fetchFn(m.getState().pagination),m.setPageSize(h.value)});const x=r.ref(380);function C(V){var ee;const Q=((ee=V.el)==null?void 0:ee.scrollHeight)??0;x.value=Math.max(100,Q)}const B=nr(),O=r.ref(),A=r.ref(typeof n.shrinkAt=="boolean"&&!n.shrinkAt?!1:B.isBreakpointKeyword(n.shrinkAt)&&B.isAtMost(n.shrinkAt)),T=r.computed(()=>{const V=[...Array.from(Array(Math.min(5,Math.floor(n.rowData.length/10))),(ee,le)=>(le+1)*10).map(ee=>({label:ee.toString(),value:ee}))],Q={label:_("table.all"),value:n.rowData.length};return h.value>0&&(V.some(ee=>ee.value===h.value)||(V.push({label:h.value.toString(),value:h.value}),V.sort((ee,le)=>ee.value-le.value))),[...V,Q]});function E(V){const Q=V.el;if(!Q||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt)return;const ee=cf(function(){if(O.value=Q.clientWidth,B.isBreakpointKeyword(n.shrinkAt)){A.value=B.isAtMost(n.shrinkAt);return}const le=Number(n.shrinkAt);if(isNaN(le)){A.value=!1;return}A.value=Q.scrollWidth>=le},200);Q.resizeTable??(Q.resizeTable=function(){A.value=B.isBreakpointKeyword(n.shrinkAt)&&B.isAtMost(n.shrinkAt),ee()}),window.addEventListener("resize",Q.resizeTable),Q.resizeTable()}function L(V){const Q=V.el;!Q||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt||Q.resizeTable&&window.removeEventListener("resize",Q.resizeTable)}function H(V){const Q=Math.min(...V.map($=>$.index)),ee=Math.max(...V.map($=>$.index)),le=s.value.slice(0,Q),he=s.value.slice(ee+1),ke=V.map($=>$.original),W=s.value.slice(Q,ee+1);fM(ke,W)||o("dnd-changed",[...le,...ke,...he])}const j=r.ref(),X=r.computed(()=>!n.virtual||!j.value?null:CM({count:m.getRowModel().rows.length,getScrollElement:()=>j.value||null,estimateSize:()=>n.virtualRowHeight,overscan:20})),I=r.ref([]);function F(V){I.value=V}function N(V,Q){var le;const ee=(le=V.column.columnDef.meta)==null?void 0:le.colspan;return typeof ee=="function"?ee(Q):ee??1}function R(V){return V.getVisibleCells().filter(Q=>N(Q,V)!==0)}function M({draggedContext:V}){const Q=n.draggable,ee=V.index,le=m.getRowModel().rows[ee];let he=typeof Q=="function"?Q(le.original,ee):Q;if(!he)return he;const ke=V.futureIndex,W=m.getRowModel().rows[ke];return he=typeof Q=="function"?Q(W.original,ke):Q,he}return(V,Q)=>{var he,ke;const ee=r.resolveComponent("FmListItem"),le=r.resolveComponent("FmList");return r.openBlock(),r.createElementBlock("div",{class:"flex flex-col h-full relative",onVnodeMounted:E,onVnodeUnmounted:L},[r.createElementVNode("div",{class:"overflow-y-auto",ref_key:"parentRef",ref:j},[A.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[k.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({height:`${x.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",AM,[r.createVNode(rr),r.createVNode(Rr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(V.$slots,"loading-text",{},()=>[r.createElementVNode("span",EM,r.toDisplayString(r.unref(_)("table.loading")),1)],!0)]),r.createVNode(rr)])],4)):(r.openBlock(),r.createBlock(le,{key:1,onVnodeMounted:C},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(m).getRowModel().rows,W=>r.renderSlot(V.$slots,"list-row",r.mergeProps({key:W.id,ref_for:!0},W),()=>[r.createVNode(ee,{class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":W.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function"}]),style:{padding:"0"},tag:"label"},{prepend:r.withCtx(()=>{var $,U,J,oe,Z;return[r.createVNode(r.unref(os),{props:(U=($=W.getVisibleCells().find(ue=>ue.column.id==="row-selection"))==null?void 0:$.getContext)==null?void 0:U.call($),render:(Z=(oe=(J=W.getVisibleCells().find(ue=>ue.column.id==="row-selection"))==null?void 0:J.column)==null?void 0:oe.columnDef)==null?void 0:Z.cell},null,8,["props","render"])]}),default:r.withCtx(()=>[r.createElementVNode("div",{class:"flex flex-col gap-4 grow p-8",onClick:$=>{var U;return(U=V.onRowClick)==null?void 0:U.call(V,W)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(W.getVisibleCells(),$=>{var U;return r.openBlock(),r.createElementBlock(r.Fragment,{key:$.id},[$.column.id!=="row-selection"?(r.openBlock(),r.createElementBlock("div",BM,[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((U=$.column.columnDef.meta)==null?void 0:U.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:$.getContext(),render:$.column.columnDef.cell},null,8,["props","render"])],2)])):r.createCommentVNode("",!0)],64)}),128))],8,DM)]),_:2},1032,["class"])],!0)),128))]),_:3},512))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[V.virtual?(r.openBlock(),r.createElementBlock("div",RM,[r.createElementVNode("div",TM,[r.createElementVNode("table",FM,[V.hideHeaderRow?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Yl,{key:0,table:r.unref(m),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(m).getRowModel().rows.length*n.virtualRowHeight}px`,width:"100%"}),onVnodeMounted:C},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((ke=(he=X.value)==null?void 0:he.value)==null?void 0:ke.getVirtualItems(),W=>{var $,U;return r.openBlock(),r.createElementBlock("div",{key:W.index,style:r.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:`${n.virtualRowHeight}px`,transform:`translateY(${W.start}px)`,display:"flex",alignItems:"center",borderBottom:"1px solid var(--fm-color-neutral-gray-100)"}),class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":($=r.unref(m).getRowModel().rows[W.index])==null?void 0:$.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function"},V.rowClassName,"hover:bg-fm-color-opacity-sm"]),onClick:J=>{var oe;return(oe=V.onRowClick)==null?void 0:oe.call(V,r.unref(m).getRowModel().rows[W.index])}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(((U=r.unref(m).getRowModel().rows[W.index])==null?void 0:U.getVisibleCells())||[],(J,oe)=>{var Z,ue,ae,ye;return r.openBlock(),r.createElementBlock("div",{key:J.id,class:r.normalizeClass(["virtual-cell","h-full flex items-center",((Z=J.column.columnDef.meta)==null?void 0:Z.cellClass)??"px-16"]),style:r.normalizeStyle({width:I.value[oe]?`${I.value[oe]}px`:"auto",flex:I.value[oe]?"0 0 auto":"1 1 0px",textAlign:((ue=J.column.columnDef.meta)==null?void 0:ue.textAlign)??"left",maxWidth:(ae=J.column.columnDef.meta)==null?void 0:ae.maxWidth})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ye=J.column.columnDef.meta)==null?void 0:ye.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:J.getContext(),render:J.column.columnDef.cell},null,8,["props","render"])],2)],6)}),128))],14,MM)}),128))],4)])):(r.openBlock(),r.createElementBlock("table",PM,[!V.pinHeaderRow&&!V.hideHeaderRow?(r.openBlock(),r.createBlock(Yl,{key:0,table:r.unref(m)},null,8,["table"])):r.createCommentVNode("",!0),r.renderSlot(V.$slots,"pin-top",{},void 0,!0),k.value?(r.openBlock(),r.createElementBlock("tbody",{key:1,onVnodeMounted:C},[r.createElementVNode("div",{style:r.normalizeStyle({height:`${x.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",IM,[r.createVNode(rr),r.createVNode(Rr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(V.$slots,"loading-text",{},()=>[r.createElementVNode("span",OM,r.toDisplayString(r.unref(_)("table.loading")),1)],!0)]),r.createVNode(rr)])],4)],512)):(r.openBlock(),r.createBlock(r.unref(zs),{key:2,clone:r.unref(lf.clone),handle:Object.keys(n.expandedState??{}).length>0?".dnd-handler-disabled":".dnd-handler","model-value":r.unref(m).getRowModel().rows,move:M||V.onVuedraggableMove,"item-key":"id",tag:"tbody",onDragend:Q[0]||(Q[0]=W=>l.value=!1),onDragstart:Q[1]||(Q[1]=W=>l.value=!0),"onUpdate:modelValue":H,onVnodeMounted:C},{item:r.withCtx(({element:W})=>[V.$slots["table-row"]?r.renderSlot(V.$slots,"table-row",r.normalizeProps(r.mergeProps({key:0},W)),void 0,!0):(r.openBlock(),r.createElementBlock("tr",{key:1,class:r.normalizeClass([[{"bg-fm-color-neutral-gray-100":W.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function","dnd-handler":(typeof V.draggable=="function"?V.draggable(W.original,W.index):V.draggable)&&V.wholeRowDraggable,"border-b border-fm-color-neutral-gray-100":W.subRows.length===0&&W.depth===0?!0:W.depth===0?!W.getIsExpanded():W.index+1===W.getParentRow().subRows.length},V.rowClassName],"hover:bg-fm-color-opacity-sm"]),onClick:$=>{var U;return(U=V.onRowClick)==null?void 0:U.call(V,W)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(R(W),$=>{var U,J,oe,Z,ue,ae;return r.openBlock(),r.createElementBlock("td",{key:$.id,colspan:N($,W),class:r.normalizeClass([k.value?"hidden":"","h-[48px] text-fm-color-typo-primary",((U=$.column.columnDef.meta)==null?void 0:U.cellClass)??"px-16"]),style:r.normalizeStyle({width:(J=$.column.columnDef.meta)!=null&&J.width?(oe=$.column.columnDef.meta)==null?void 0:oe.width:$.column.getSize()!==0?`${$.column.getSize()}px`:void 0,maxWidth:(Z=$.column.columnDef.meta)==null?void 0:Z.maxWidth,textAlign:((ue=$.column.columnDef.meta)==null?void 0:ue.textAlign)??"left"})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ae=$.column.columnDef.meta)==null?void 0:ae.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:$.getContext(),render:$.column.columnDef.cell},null,8,["props","render"])],2)],14,VM)}),128))],10,NM))]),_:3},8,["clone","handle","model-value","move"])),V.pinHeaderRow&&!V.hideHeaderRow?(r.openBlock(),r.createBlock(Yl,{key:3,table:r.unref(m),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),V.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxWidth:O.value?`${O.value}px`:void 0}),class:"basis-72 bg-white flex items-center justify-between px-24"},[A.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"hidden invisible":V.forceMobileFooter},"flex gap-24 items-center justify-between xs:hidden xs:invisible"])},[r.createElementVNode("div",LM,[r.createElementVNode("span",zM,r.toDisplayString(r.unref(_)("table.itemsPerPage")),1),r.createVNode(Pb,{items:T.value,"model-value":r.unref(m).getState().pagination.pageSize,"onUpdate:modelValue":Q[2]||(Q[2]=W=>r.unref(m).setPageSize(W))},null,8,["items","model-value"])]),r.createElementVNode("span",{class:r.normalizeClass([{"hidden invisible":V.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible"])},r.toDisplayString(r.unref(_)("table.itemCount",{start:n.rowData.length<r.unref(m).getState().pagination.pageSize?n.rowData.length:r.unref(m).getState().pagination.pageIndex*r.unref(m).getState().pagination.pageSize+1,end:(r.unref(m).getState().pagination.pageIndex+1)*r.unref(m).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":A.value||V.forceMobileFooter,"xs:w-full xs:justify-between":!A.value}])},[r.createVNode(Pb,{items:Array.from(Array(r.unref(m).getPageCount()),(W,$)=>$+1).map(W=>({label:W.toString(),value:W})),"model-value":r.unref(m).getState().pagination.pageIndex+1,"onUpdate:modelValue":Q[3]||(Q[3]=W=>r.unref(m).setPageIndex(W?W-1:0))},null,8,["items","model-value"]),r.createElementVNode("span",{class:r.normalizeClass([{"mr-auto":A.value||V.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto"])},r.toDisplayString(r.unref(_)("table.pageCount",{total:r.unref(m).getPageCount()})),3),r.createElementVNode("div",_M,[r.createVNode(we,{disabled:!r.unref(m).getCanPreviousPage(),icon:"chevron_left","icon-color":"neutral-black",variant:"tertiary",onClick:Q[4]||(Q[4]=()=>r.unref(m).previousPage())},null,8,["disabled"]),r.createVNode(we,{disabled:!r.unref(m).getCanNextPage(),icon:"chevron_right","icon-color":"neutral-black",variant:"tertiary",onClick:Q[5]||(Q[5]=()=>r.unref(m).nextPage())},null,8,["disabled"])])],2)],4))],512)}}}),[["__scopeId","data-v-a96d4d47"]]),UM={class:"fm-customize-fields"},WM={class:"fm-customize-fields__header"},jM={class:"fm-typo-en-title-md-600 text-fm-color-typo-primary"},GM={key:0,class:"fm-customize-fields__search"},QM={class:"fm-customize-fields__actions"},XM={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},qM={class:"fm-customize-fields__list-container"},KM={class:"fm-customize-fields__item"},JM={class:"fm-customize-fields__item-left"},YM={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"},eL=Ie(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((k,x)=>k.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(k=>k.label.toLowerCase().includes(v))}),u=v=>{const k=l.value.findIndex(C=>C.id===v);if(k===-1)return;const x=l.value[k];x.canHide!==!1&&(l.value[k]={...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((k,x)=>({...k,position:x}));o("update:modelValue",v)},y=r.computed(()=>l.value.filter(k=>k.canHide!==!1).every(k=>!k.visible));return(v,k)=>(r.openBlock(),r.createElementBlock("div",UM,[r.createElementVNode("div",WM,[r.createElementVNode("span",jM,r.toDisplayString(v.title??r.unref(_)("customizeFields.title")),1),v.showCloseButton?(r.openBlock(),r.createBlock(ge,{key:0,name:"close",size:"md",class:"fm-customize-fields__close-btn",onClick:k[0]||(k[0]=x=>v.$emit("close"))})):r.createCommentVNode("",!0)]),v.searchable?(r.openBlock(),r.createElementBlock("div",GM,[r.createVNode(jl,{modelValue:i.value,"onUpdate:modelValue":k[1]||(k[1]=x=>i.value=x),placeholder:v.searchPlaceholder??r.unref(_)("customizeFields.searchPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])):r.createCommentVNode("",!0),r.createElementVNode("div",QM,[r.createElementVNode("span",XM,r.toDisplayString(v.shownLabel??r.unref(_)("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(_)("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(_)("customizeFields.showAll")),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",qM,[r.createVNode(r.unref(zs),{modelValue:l.value,"onUpdate:modelValue":k[2]||(k[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:k[3]||(k[3]=x=>a.value=!0),onEnd:m},{item:r.withCtx(({element:x})=>[r.withDirectives(r.createElementVNode("div",KM,[r.createElementVNode("div",JM,[r.createVNode(ge,{name:"drag_indicator",size:"md",class:"fm-customize-fields__drag-handle",color:"#8E8E93"}),x.icon?(r.openBlock(),r.createBlock(ge,{key:0,name:x.icon,size:"md",class:"fm-customize-fields__item-icon",color:"#636366"},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",YM,r.toDisplayString(x.label),1)]),r.createVNode(Rl,{"model-value":x.visible,disabled:x.canHide===!1,"onUpdate:modelValue":C=>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(_)("customizeFields.noFieldsFound")),1)])):r.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-28662a9d"]]),tL=r.createElementVNode("span",{class:"fm-typo-en-body-lg-400 text-fm-color-typo-secondary"}," More ",-1),nL=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(hb,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(so,{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(ge,{name:"more_vert"}),tL],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(so,{key:0,placement:"right-start"},{"menu-button":r.withCtx(()=>[r.createVNode(Dt,{"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(or,{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(Dt,{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(or,{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(Dt,{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(or,{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))}}),oL=["tabindex"],rL=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=Te(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,...k})=>{const x=c(k);return{...k,expand:x,focusable:!k.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(ge,{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(or,{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(ge,{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,oL)),[[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,(k,x)=>(r.openBlock(),r.createBlock(y,r.mergeProps({key:x,"model-value":r.unref(n),"onUpdate:modelValue":b[0]||(b[0]=C=>r.isRef(n)?n.value=C:null),indentation:m.indentation+1,ref_for:!0},k),null,16,["model-value","indentation"]))),128))],4)):r.createCommentVNode("",!0)],4)}}}),iL={class:"h-full flex flex-col overflow-auto"},aL=r.defineComponent({__name:"FmCollapsibleTabs",props:{modelValue:{default:void 0},items:{default:()=>[]}},setup(t){const e=t,n=Te(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",iL,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(l,c)=>(r.openBlock(),r.createBlock(rL,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))]))}}),sL=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))}}),lL=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(ge,{key:0,name:n.icon},null,8,["name"])):r.createCommentVNode("",!0)],6))}}),dL={class:"bg-white flex fm-corner-radius-md gap-4 items-center px-24 py-16"},cL={class:"flex gap-4 items-center xs:hidden"},uL={key:1,class:"hidden xs:flex"},fL=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",dL,[s.backButton?(r.openBlock(),r.createBlock(we,{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(pf,{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",cL,[i.value.firstSecondaryAction?(r.openBlock(),r.createBlock(we,{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(we,{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(so,{key:2},{"menu-button":r.withCtx(()=>[r.createVNode(we,{"append-icon":"expand_more","icon-color":"black",label:r.unref(_)("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(Dt,{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(we,{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(we,{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",uL,[r.createVNode(we,{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(qc,{"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(uf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.bottomSheetActions,c=>(r.openBlock(),r.createBlock(ff,{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(we,{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)]))]))}}),pL={class:"fm-typo-en-title-md-600"},hL={class:"flex"},mL=Ie(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(Kc,{class:"flex flex-col gap-2 p-5",variant:"outlined"},{default:r.withCtx(()=>[r.createVNode(Hc,{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",pL,r.toDisplayString(e.value),1),s.hideCompare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",hL,[i.value?(r.openBlock(),r.createBlock(Qc,{key:0,class:r.normalizeClass(`bg-${i.value.icon.tailwind}`),compact:""},{default:r.withCtx(()=>[r.createVNode(ge,{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(Kc,{key:1},{default:r.withCtx(()=>[r.createVNode(v1,{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 as=(t=>(t.Premium="premium",t.Beta="beta",t.Paid="paid",t))(as||{});const gL=r.defineComponent({__name:"FmPill",props:{variant:{default:as.Beta},label:{}},setup(t){const e=t,n=r.computed(()=>({[as.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"},[as.Premium]:{containerClass:"h-[18px] fm-pill-premium-gradient",label:"Premium",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-white"},[as.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)}}}),bL=Ie(gL,[["__scopeId","data-v-cdca68a7"]]),ld=16,yL=r.defineComponent({__name:"FmSnackbarToast",setup(t){const{breakpoints:e}=nr(),n=r.inject(Ec),o=r.computed(()=>{var u;const s={currentSum:ld,tops:new Array},l=Object.values(dn).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?dn.TOP:p.position??dn.TOP_RIGHT,{currentSum:b,tops:y}=h[m];y.push({id:p.id,accumulatedHeight:b});const v=p.mountStage===wt.EXPIRED?0:ld+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,k;let u=0;const h=e.value.xs?dn.TOP:c.position??dn.TOP_RIGHT;switch(c.mountStage){case wt.PREMOUNT:{u=e.value.xs?0:ld;break}case wt.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)||ld;break}case wt.EXPIRED:{u=((k=(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:k.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===wt.EXPIRED?0:1};if(c===dn.TOP)return{top:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===dn.TOP_LEFT)return{top:`${s}px`,opacity:l===wt.EXPIRED?0:1,left:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.TOP_RIGHT)return{top:`${s}px`,opacity:l===wt.EXPIRED?0:1,right:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.BOTTOM)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===dn.BOTTOM_LEFT)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,left:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.BOTTOM_RIGHT)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:l===wt.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(pb,{action:c.action,description:c.message,dismissable:c.dismissable,spinner:c.spinner,style:r.normalizeStyle(a(c.top,c.mountStage,c.position??r.unref(dn).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 dn=(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))(dn||{}),wt=(t=>(t.PREMOUNT="PREMOUNT",t.MOUNTED="MOUNTED",t.EXPIRED="EXPIRED",t))(wt||{});class vy{constructor(){ce(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 ky={install(t){t.provide(Ec,new vy);const e=document.body,n=r.createVNode(yL);n.appContext=t._context,r.render(n,e)}},wy={FmAdvancedSort:Mm,FmBadge:or,FmBottomSheet:qc,FmBreadcrumb:Rx,FmButton:we,FmButtonGroup:Mx,FmCard:Kc,FmCardActionArea:Lx,FmCardActions:_x,FmCardHeader:Ux,FmCardMedia:jx,FmCardSection:Jc,FmCardSubtitle:Hm,FmCardTitle:_m,FmChip:Qc,FmChipGroup:Xc,FmDialog:Qx,FmDropField:Kx,FmDynamicDialog:Wm,FmLineChart:v1,FmPieChart:_6,FmBarChart:Q6,FmScorecard:mL,FmCheckbox:Pm,FmDatePicker:k9,FmDatePickerMobile:x1,FmDateRangePicker:W5,FmDateRangePickerMobile:B1,FmSimpleDatePicker:hE,FmSimpleDatePickerMobile:I1,FmSimpleDateRangePicker:QE,FmSimpleDateRangePickerMobile:O1,FmField:ct,FmForm:Fm,FmFormGroup:Rt,FmErrorSummary:JE,FmHelperText:dm,FmLabel:vn,FmPhoneNumber:cB,FmPinField:pB,FmRadio:kB,FmRadioGroup:wB,FmSearch:jl,FmGlobalSearch:qB,FmSelect:ko,FmStepperField:$B,FmSwitch:Rl,FmTextField:Lr,FmTextarea:tP,FmTimeInput:Tl,FmTimePicker:No,FmTimeRangePicker:lP,FmIcon:ge,FmList:uf,FmListItem:ff,FmMenu:so,FmMenuDeprecated:pP,FmMenuDivider:S1,FmMenuHeader:mP,FmMenuItem:Dt,FmCircularProgress:Rr,FmLinearProgress:kP,FmProgressBar:xP,FmSideSheet:DP,FmSnackbar:pb,FmSpacer:rr,FmStep:TP,FmStepper:LP,FmTab:hb,FmTable:HM,FmCustomizeFields:eL,FmTableToolbar:KP,FmTableHeader:Yl,FmTabs:nL,FmCollapsibleTabs:aL,FmTooltip:Hc,FmAvatar:sL,FmThumbnail:lL,FmPageHead:fL,FmTopSheet:cb,FmPopover:Io,FmOverlay:Ei,FmPill:bL},vL=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:ki,placement:e.placement,middleware:[xi(),wi({mainAxis:6}),Sm({element:i})]}),h=r.computed(()=>{var y,v,k,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:((k=c.value.arrow)==null?void 0:k.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 Wf;const mr=r.ref([]);let xy=0;const kL=()=>{if(Wf)return;const t=document.createElement("div");document.body.appendChild(t),Wf=r.createApp({render:()=>mr.value.map(e=>r.h(vL,e))}),Wf.mount(t)},dd=t=>{if(t){for(const e of["top","right","bottom","left"])if(t[e])return e}return"top"},Sy=(t,e)=>{const{value:n,modifiers:o}=e;kL(),t.$_fmTooltipId=xy,xy+=1,typeof n=="string"?mr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:dd(o),hideArrow:!1}):n&&typeof n=="object"&&mr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),placement:dd(o),disabled:n.disabled??!1,hideArrow:n.hideArrow??!1,zIndex:n.zIndex})},wL={mounted:Sy,updated:(t,e)=>{const{value:n,modifiers:o}=e,i=mr.value.findIndex(a=>a.id===t.$_fmTooltipId);if(i===-1){Sy(t,e);return}typeof n=="string"?mr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:dd(o),hideArrow:!1}:n&&typeof n=="object"&&(mr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),disabled:n.disabled??!1,placement:dd(o),hideArrow:n.hideArrow??!1})},beforeUnmount:t=>{const e=mr.value.findIndex(n=>n.id===t.$_fmTooltipId);e!==-1&&mr.value.splice(e,1)}};function xL(){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 cd;function jf(){jf.init||(jf.init=!0,cd=xL()!==-1)}var ud={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){jf(),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",cd&&this.$el.appendChild(t),t.data="about:blank",cd||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&&(!cd&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const SL=r.withScopeId("data-v-b329ee4c");r.pushScopeId("data-v-b329ee4c");const CL={class:"resize-observer",tabindex:"-1"};r.popScopeId();const AL=SL((t,e,n,o,i,a)=>(r.openBlock(),r.createBlock("div",CL)));ud.render=AL,ud.__scopeId="data-v-b329ee4c",ud.__file="src/components/ResizeObserver.vue";function fd(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fd=function(e){return typeof e}:fd=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(t)}function EL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DL(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 BL(t,e,n){return e&&DL(t.prototype,e),t}function Cy(t){return PL(t)||IL(t)||OL(t)||NL()}function PL(t){if(Array.isArray(t))return Gf(t)}function IL(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function OL(t,e){if(t){if(typeof t=="string")return Gf(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 Gf(t,e)}}function Gf(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 NL(){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 VL(t){var e;return typeof t=="function"?e={callback:t}:e=t,e}function RL(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(Cy(a))),i=c,clearTimeout(o),o=setTimeout(function(){t.apply(void 0,[c].concat(Cy(a))),o=0},e)}};return s._clear=function(){clearTimeout(o),o=null},s}function Ay(t,e){if(t===e)return!0;if(fd(t)==="object"){for(var n in t)if(!Ay(t[n],e[n]))return!1;return!0}return!1}var TL=function(){function t(e,n,o){EL(this,t),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return BL(t,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=VL(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=RL(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 Ey(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 TL(t,o,n);t._vue_visibilityState=i}}function FL(t,e,n){var o=e.value,i=e.oldValue;if(!Ay(o,i)){var a=t._vue_visibilityState;if(!o){Dy(t);return}a?a.createObserver(o,n):Ey(t,{value:o},n)}}function Dy(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var ML={beforeMount:Ey,updated:FL,unmounted:Dy};function LL(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 By={itemsLimit:1e3},zL=/(auto|scroll)/;function Py(t,e){return t.parentNode===null?e:Py(t.parentNode,e.concat([t]))}var Qf=function(e,n){return getComputedStyle(e,null).getPropertyValue(n)},_L=function(e){return Qf(e,"overflow")+Qf(e,"overflow-y")+Qf(e,"overflow-x")},HL=function(e){return zL.test(_L(e))};function Iy(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var e=Py(t.parentNode,[]),n=0;n<e.length;n+=1)if(HL(e[n]))return e[n];return document.scrollingElement||document.documentElement}}function Xf(t){"@babel/helpers - typeof";return Xf=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},Xf(t)}var Oy={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 Ny(){return this.items.length&&Xf(this.items[0])!=="object"}var qf=!1;if(typeof window<"u"){qf=!1;try{var UL=Object.defineProperty({},"passive",{get:function(){qf=!0}});window.addEventListener("test",null,UL)}catch{}}let WL=0;var ss={name:"RecycleScroller",components:{ResizeObserver:ud},directives:{ObserveVisibility:ML},props:{...Oy,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:Ny,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:WL++,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,k,x,C,B;if(!u)v=k=C=B=x=0;else if(this.$_prerender)v=C=0,k=B=Math.min(this.prerender,c.length),x=null;else{const j=this.getScroll();if(e){let F=j.start-this.$_lastUpdateScrollPosition;if(F<0&&(F=-F),n===null&&F<a||F<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const X=this.buffer;j.start-=X,j.end+=X;let I=0;if(this.$refs.before&&(I=this.$refs.before.scrollHeight,j.start-=I),this.$refs.after){const F=this.$refs.after.scrollHeight;j.end+=F}if(n===null){let F,N=0,R=u-1,M=~~(u/2),V;do V=M,F=h[M].accumulator,F<j.start?N=M:M<u-1&&h[M+1].accumulator>j.start&&(R=M),M=~~((N+R)/2);while(M!==V);for(M<0&&(M=0),v=M,x=h[u-1].accumulator,k=M;k<u&&h[k].accumulator<j.end;k++);for(k===-1?k=c.length-1:(k++,k>u&&(k=u)),C=v;C<u&&I+h[C].accumulator<j.start;C++);for(B=C;B<u&&I+h[B].accumulator<j.end;B++);}else{v=~~(j.start/n*o);const F=v%o;v-=F,k=Math.ceil(j.end/n*o),C=Math.max(0,Math.floor((j.start-I)/n*o)),B=Math.floor((j.end-I)/n*o),v<0&&(v=0),k>u&&(k=u),C<0&&(C=0),B>u&&(B=u),x=Math.ceil(u/o)*n}}k-v>By.itemsLimit&&this.itemsLimitError(),this.totalSize=x;let O;const A=v<=this.$_endIndex&&k>=this.$_startIndex;if(A)for(let j=0,X=b.length;j<X;j++)O=b[j],O.nr.used&&(t&&(O.nr.index=y[O.item[l]]),(O.nr.index==null||O.nr.index<v||O.nr.index>=k)&&this.unuseView(O));const T=A?null:new Map;let E,L,H;for(let j=v;j<k;j++){E=c[j];const X=l?E[l]:E;if(X==null)throw new Error(`Key is ${X} on item (keyField is '${l}')`);if(O=p.get(X),!n&&!h[j].size){O&&this.unuseView(O);continue}L=E[s];let I=m.get(L),F=!1;if(!O)A?I&&I.length?O=I.pop():O=this.addView(b,j,E,X,L):(H=T.get(L)||0,(!I||H>=I.length)&&(O=this.addView(b,j,E,X,L),this.unuseView(O,!0),I=m.get(L)),O=I[H],T.set(L,H+1)),p.delete(O.nr.key),O.nr.used=!0,O.nr.index=j,O.nr.key=X,O.nr.type=L,p.set(X,O),F=!0;else if(!O.nr.used&&(O.nr.used=!0,F=!0,I)){const N=I.indexOf(O);N!==-1&&I.splice(N,1)}O.item=E,F&&(j===c.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),n===null?(O.position=h[j-1].accumulator,O.offset=0):(O.position=Math.floor(j/o)*n,O.offset=j%o*i)}return this.$_startIndex=v,this.$_endIndex=k,this.emitUpdate&&this.$emit("update",v,k,C,B),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:A}},getListenerTarget(){let t=Iy(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,qf?{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=Iy(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 jL={key:0,ref:"before",class:"vue-recycle-scroller__slot"},GL={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function QL(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",jL,[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",GL,[r.renderSlot(t.$slots,"after")],512)):r.createCommentVNode("v-if",!0),r.createVNode(s,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[l,a.handleVisibilityChange]])}ss.render=QL,ss.__file="src/components/RecycleScroller.vue";var pd={name:"DynamicScroller",components:{RecycleScroller:ss},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:{...Oy,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ny,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=LL()},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 XL(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"])}pd.render=XL,pd.__file="src/components/DynamicScroller.vue";var Kf={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())}};Kf.__file="src/components/DynamicScrollerItem.vue";function qL(t,e){t.component("".concat(e,"recycle-scroller"),ss),t.component("".concat(e,"RecycleScroller"),ss),t.component("".concat(e,"dynamic-scroller"),pd),t.component("".concat(e,"DynamicScroller"),pd),t.component("".concat(e,"dynamic-scroller-item"),Kf),t.component("".concat(e,"DynamicScrollerItem"),Kf)}var KL={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"&&(By[i]=o[i]);o.installComponents&&qL(e,o.componentsPrefix)}},JL={exports:{}};(function(t,e){(function(n,o){t.exports=o(jc)})(nn,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})})(JL);var YL={exports:{}};(function(t,e){(function(n,o){t.exports=o(jc)})(nn,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})})(YL);var ZL={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(nn,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.7",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 ez={"en-US":"en","zh-CN":"zh-cn","zh-Hant":"zh-tw","th-TH":"th"},tz=(t,e)=>{if(t.use(bk,{duration:.3,color:"var(--fm-color-opacity-sm)",initialOpacity:1,finalOpacity:.1,dissolveDuration:.6}),t.directive("tooltip",wL),t.use($x),t.use(ky),t.use(KL),Object.entries(wy).forEach(([n,o])=>{t.component(n,o)}),e!=null&&e.locale){Dm(e.locale);const n=ez[e.locale]||"en";q.locale(n)}};Ge.FeedMeUI=tz,Ge.FmAdvancedSort=Mm,Ge.FmButtonColorThemeVariant=Kt,Ge.FmButtonVariant=jn,Ge.Locale=Em,Ge.SnackbarMountStage=wt,Ge.SnackbarPlugin=ky,Ge.SnackbarPosition=dn,Ge.SnackbarService=vy,Ge.components=wy,Ge.setLocale=Dm,Ge.useBreakpoints=nr,Ge.useDialog=Rm,Ge.useDialogChild=Tm,Ge.useFocus=ka,Ge.useFormChild=lm,Ge.useProxiedModel=Te,Ge.useSnackbar=zw,Ge.useValidation=sm,Object.defineProperty(Ge,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 Uf(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const pM=(t,e)=>Math.abs(t-e)<1,hM=(t,e,n)=>{let o;return function(...i){t.clearTimeout(o),o=t.setTimeout(()=>e.apply(this,i),n)}};var is={env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_1555d81e-5c3b-44ca-969d-c47192760147",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_1555d81e-5c3b-44ca-969d-c47192760147",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.5.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-Linux",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:"1857",ACTIONS_ORCHESTRATION_ID:"7f0b5ab9-3ee5-45be-b4ff-4fe2fd103df3.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:"20260615.205.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:14837",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.11/x64",GITHUB_RUN_ID:"27700333904",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"6a401b93763c8b1573ccbab8f62030bfcc9bc805",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/fix/table-page-size",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_75c75c33-18d9-4e43-b800-95def55d6768",INVOCATION_ID:"18ba417fefed49ddb02d8b4be9658a1a",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:"350",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 1000078405",XDG_CONFIG_HOME:"/home/runner/.config",GITHUB_REF_NAME:"fix/table-page-size",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.8",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:"6a401b93763c8b1573ccbab8f62030bfcc9bc805",GITHUB_RUN_ATTEMPT:"1",npm_package_dependencies_vue_router:"^4.3.0",npm_package_devDependencies_vite_plugin_top_level_await:"^1.4.1",ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED:"1",GITHUB_REF:"refs/heads/fix/table-page-size",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_1555d81e-5c3b-44ca-969d-c47192760147",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_1555d81e-5c3b-44ca-969d-c47192760147",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_15.6.1",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_1555d81e-5c3b-44ca-969d-c47192760147",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 mM=t=>t,gM=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},bM=(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)}},gy={passive:!0},by=typeof window>"u"?!0:"onscrollend"in window,yM=(t,e)=>{const n=t.scrollElement;if(!n)return;const o=t.targetWindow;if(!o)return;let i=0;const a=t.options.useScrollendEvent&&by?()=>{}:hM(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,gy);const u=t.options.useScrollendEvent&&by;return u&&n.addEventListener("scrollend",c,gy),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},vM=(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"])},kM=(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 wM{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:mM,rangeExtractor:gM,onChange:()=>{},measureElement:vM,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=Gi(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:is.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=Gi(()=>[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=Gi(()=>[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),k=b+v,x=m?m.lane:h%this.options.lanes;u[h]={index:h,start:b,size:v,end:k,key:p,lane:x}}return this.measurementsCache=u,u},{key:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.calculateRange=Gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,o,i)=>this.range=n.length>0&&o>0?xM({measurements:n,outerSize:o,scrollOffset:i}):null,{key:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualIndexes=Gi(()=>{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:is.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=Gi(()=>[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:is.env.NODE_ENV!=="production",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Uf(o[yy(0,o.length-1,i=>Uf(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]=Uf(this.getOffsetForIndex(n,l));pM(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 yy=(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 xM({measurements:t,outerSize:e,scrollOffset:n}){const o=t.length-1,a=yy(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 SM(t){const e=new wM(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 CM(t){return SM(r.computed(()=>({observeElementRect:bM,observeElementOffset:yM,scrollToFn:kM,...r.unref(t)})))}const AM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},EM={class:"text-fm-color-typo-secondary"},DM=["onClick"],BM={key:0},PM={key:0,class:"w-full"},IM={class:"-translate-x-1/2 -translate-y-1/2 absolute flex flex-col gap-16 left-1/2 top-1/2"},OM={class:"text-fm-color-typo-secondary"},NM=["onClick"],VM=["colspan"],RM={key:1,class:"virtual-table-container w-full"},TM={class:"sticky top-0 z-10 w-full"},FM={class:"w-full"},MM=["onClick"],LM={class:"flex gap-8 items-center"},zM={class:"fm-typo-en-body-lg-400 text-fm-color-typo-primary"},_M={class:"flex gap-8"},HM=Ie(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:void 0},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=Te(n,"modelValue"),a=Te(n,"searchValue"),s=r.ref(n.rowData),l=r.ref(!1);r.watch(()=>l.value,V=>{o("update:dragging",V),V&&o("update:expanded-state",{})});const c=()=>{let V=[];n.selection&&V.push({id:"row-selection",header:({table:ee})=>r.createVNode(Bb,{checked:ee.getIsAllPageRowsSelected(),indeterminate:ee.getIsSomePageRowsSelected(),onChange:ee.getToggleAllPageRowsSelectedHandler()},null),cell:({row:ee})=>ee.depth===0?r.createVNode(Bb,{checked:ee==null?void 0:ee.getIsSelected(),disabled:!(ee!=null&&ee.getCanSelect()),onChange:ee==null?void 0:ee.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 Q=n.draggable;return Q&&!n.wholeRowDraggable&&V.push({id:"row-drag",header:"",cell:({row:ee})=>(typeof Q=="function"?Q(ee.original,ee.index):Q)&&ee.depth===0?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(we,{prependIcon:"drag_handle",variant:"tertiary",class:"cursor-move",type:"button",onMousedown:()=>{l.value=!0},onMouseup:()=>{l.value=!1}})):typeof Q=="function"?r.h("div",{class:["w-full flex",n.selection?"justify-end":"justify-start"]},r.h(we,{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}),[...V,...n.columnDefs]},u=r.ref([]);r.watch(()=>u.value,V=>{o("sort-change",V)}),r.watch(()=>n.rowData,V=>{s.value=[...V]},{deep:!0});const h=r.computed(()=>n.pageSize!=null?n.pageSize:n.hideFooter?n.rowData.length:10),p=r.ref({pageIndex:0,pageSize:h.value}),m=TI({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"?p.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:AI(),getSortedRowModel:NI(),getFilteredRowModel:II(),getPaginationRowModel:OI(),getRowCanExpand:n.getRowCanExpand,onExpandedChange:V=>{if(!n.expandedState)return;const Q=typeof V=="function"?V(n.expandedState):V;o("update:expanded-state",Q)},onRowSelectionChange:V=>{if(!k.value)return i.value=typeof V=="function"?V(i.value):V},onSortingChange:V=>{u.value=typeof V=="function"?V(u.value):V},onGlobalFilterChange:V=>{a.value=typeof V=="function"?V(a.value):V},autoResetPageIndex:n.autoResetPageIndex,manualPagination:typeof n.fetchFn=="function",...typeof n.fetchFn=="function"&&{onPaginationChange:V=>p.value=typeof V=="function"?V(p.value):V},get pageCount(){return typeof n.fetchFn=="function"?n.pageCount:void 0},getSubRows:V=>n.getSubRow(V),getExpandedRowModel:EI(),get enableHiding(){return!0}});r.watch(()=>p.value,V=>{v(V)}),r.watch(()=>n.selection,()=>{m.setOptions(V=>({...V,get enableRowSelection(){return!!n.selection},get enableMultiRowSelection(){return n.selection==="multiple"},get columns(){return c()}}))});const b=r.ref(""),y=r.ref(!1);async function v(V){if(!n.fetchFn)return;y.value=!0;const Q=`${Math.random()}`;b.value=Q;try{await n.fetchFn(V)}catch{}finally{b.value===Q&&(y.value=!1)}}const k=r.computed(()=>{const V=y.value;return typeof n.loading=="boolean"?n.loading:V});r.watch(()=>n.rowData,()=>{m.setOptions(V=>({...V,get data(){return s.value}}))}),r.watch([()=>n.pageCount,()=>n.rowCount],()=>{m.setOptions(V=>({...V,pageCount:n.pageCount,rowCount:n.rowCount}))}),r.watch(h,V=>{m.setPageSize(V),typeof n.fetchFn=="function"&&(p.value={...p.value,pageSize:V})}),r.watch([()=>n.columnFilter],([V])=>{m.setColumnFilters(()=>V??[])}),r.watch(()=>n.columnDefs,()=>{m.setOptions(V=>({...V,get columns(){return c()}}))}),r.onMounted(()=>{n.fetchFn&&n.fetchFn(m.getState().pagination),m.setPageSize(h.value)});const x=r.ref(380);function C(V){var ee;const Q=((ee=V.el)==null?void 0:ee.scrollHeight)??0;x.value=Math.max(100,Q)}const B=nr(),O=r.ref(),A=r.ref(typeof n.shrinkAt=="boolean"&&!n.shrinkAt?!1:B.isBreakpointKeyword(n.shrinkAt)&&B.isAtMost(n.shrinkAt)),T=r.computed(()=>{const V=[...Array.from(Array(Math.min(5,Math.floor(n.rowData.length/10))),(ee,le)=>(le+1)*10).map(ee=>({label:ee.toString(),value:ee}))],Q={label:_("table.all"),value:n.rowData.length};return h.value>0&&(V.some(ee=>ee.value===h.value)||(V.push({label:h.value.toString(),value:h.value}),V.sort((ee,le)=>ee.value-le.value))),[...V,Q]});function E(V){const Q=V.el;if(!Q||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt)return;const ee=cf(function(){if(O.value=Q.clientWidth,B.isBreakpointKeyword(n.shrinkAt)){A.value=B.isAtMost(n.shrinkAt);return}const le=Number(n.shrinkAt);if(isNaN(le)){A.value=!1;return}A.value=Q.scrollWidth>=le},200);Q.resizeTable??(Q.resizeTable=function(){A.value=B.isBreakpointKeyword(n.shrinkAt)&&B.isAtMost(n.shrinkAt),ee()}),window.addEventListener("resize",Q.resizeTable),Q.resizeTable()}function L(V){const Q=V.el;!Q||typeof n.shrinkAt>"u"||typeof n.shrinkAt=="boolean"&&!n.shrinkAt||Q.resizeTable&&window.removeEventListener("resize",Q.resizeTable)}function H(V){const Q=Math.min(...V.map($=>$.index)),ee=Math.max(...V.map($=>$.index)),le=s.value.slice(0,Q),he=s.value.slice(ee+1),ke=V.map($=>$.original),W=s.value.slice(Q,ee+1);fM(ke,W)||o("dnd-changed",[...le,...ke,...he])}const j=r.ref(),X=r.computed(()=>!n.virtual||!j.value?null:CM({count:m.getRowModel().rows.length,getScrollElement:()=>j.value||null,estimateSize:()=>n.virtualRowHeight,overscan:20})),I=r.ref([]);function F(V){I.value=V}function N(V,Q){var le;const ee=(le=V.column.columnDef.meta)==null?void 0:le.colspan;return typeof ee=="function"?ee(Q):ee??1}function R(V){return V.getVisibleCells().filter(Q=>N(Q,V)!==0)}function M({draggedContext:V}){const Q=n.draggable,ee=V.index,le=m.getRowModel().rows[ee];let he=typeof Q=="function"?Q(le.original,ee):Q;if(!he)return he;const ke=V.futureIndex,W=m.getRowModel().rows[ke];return he=typeof Q=="function"?Q(W.original,ke):Q,he}return(V,Q)=>{var he,ke;const ee=r.resolveComponent("FmListItem"),le=r.resolveComponent("FmList");return r.openBlock(),r.createElementBlock("div",{class:"flex flex-col h-full relative",onVnodeMounted:E,onVnodeUnmounted:L},[r.createElementVNode("div",{class:"overflow-y-auto",ref_key:"parentRef",ref:j},[A.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[k.value?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({height:`${x.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",AM,[r.createVNode(rr),r.createVNode(Rr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(V.$slots,"loading-text",{},()=>[r.createElementVNode("span",EM,r.toDisplayString(r.unref(_)("table.loading")),1)],!0)]),r.createVNode(rr)])],4)):(r.openBlock(),r.createBlock(le,{key:1,onVnodeMounted:C},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(m).getRowModel().rows,W=>r.renderSlot(V.$slots,"list-row",r.mergeProps({key:W.id,ref_for:!0},W),()=>[r.createVNode(ee,{class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":W.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function"}]),style:{padding:"0"},tag:"label"},{prepend:r.withCtx(()=>{var $,U,J,oe,Z;return[r.createVNode(r.unref(os),{props:(U=($=W.getVisibleCells().find(ue=>ue.column.id==="row-selection"))==null?void 0:$.getContext)==null?void 0:U.call($),render:(Z=(oe=(J=W.getVisibleCells().find(ue=>ue.column.id==="row-selection"))==null?void 0:J.column)==null?void 0:oe.columnDef)==null?void 0:Z.cell},null,8,["props","render"])]}),default:r.withCtx(()=>[r.createElementVNode("div",{class:"flex flex-col gap-4 grow p-8",onClick:$=>{var U;return(U=V.onRowClick)==null?void 0:U.call(V,W)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(W.getVisibleCells(),$=>{var U;return r.openBlock(),r.createElementBlock(r.Fragment,{key:$.id},[$.column.id!=="row-selection"?(r.openBlock(),r.createElementBlock("div",BM,[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((U=$.column.columnDef.meta)==null?void 0:U.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:$.getContext(),render:$.column.columnDef.cell},null,8,["props","render"])],2)])):r.createCommentVNode("",!0)],64)}),128))],8,DM)]),_:2},1032,["class"])],!0)),128))]),_:3},512))],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[V.virtual?(r.openBlock(),r.createElementBlock("div",RM,[r.createElementVNode("div",TM,[r.createElementVNode("table",FM,[V.hideHeaderRow?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(Yl,{key:0,table:r.unref(m),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(m).getRowModel().rows.length*n.virtualRowHeight}px`,width:"100%"}),onVnodeMounted:C},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList((ke=(he=X.value)==null?void 0:he.value)==null?void 0:ke.getVirtualItems(),W=>{var $,U;return r.openBlock(),r.createElementBlock("div",{key:W.index,style:r.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:`${n.virtualRowHeight}px`,transform:`translateY(${W.start}px)`,display:"flex",alignItems:"center",borderBottom:"1px solid var(--fm-color-neutral-gray-100)"}),class:r.normalizeClass([{"bg-fm-color-neutral-gray-100":($=r.unref(m).getRowModel().rows[W.index])==null?void 0:$.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function"},V.rowClassName,"hover:bg-fm-color-opacity-sm"]),onClick:J=>{var oe;return(oe=V.onRowClick)==null?void 0:oe.call(V,r.unref(m).getRowModel().rows[W.index])}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(((U=r.unref(m).getRowModel().rows[W.index])==null?void 0:U.getVisibleCells())||[],(J,oe)=>{var Z,ue,ae,ye;return r.openBlock(),r.createElementBlock("div",{key:J.id,class:r.normalizeClass(["virtual-cell","h-full flex items-center",((Z=J.column.columnDef.meta)==null?void 0:Z.cellClass)??"px-16"]),style:r.normalizeStyle({width:I.value[oe]?`${I.value[oe]}px`:"auto",flex:I.value[oe]?"0 0 auto":"1 1 0px",textAlign:((ue=J.column.columnDef.meta)==null?void 0:ue.textAlign)??"left",maxWidth:(ae=J.column.columnDef.meta)==null?void 0:ae.maxWidth})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ye=J.column.columnDef.meta)==null?void 0:ye.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:J.getContext(),render:J.column.columnDef.cell},null,8,["props","render"])],2)],6)}),128))],14,MM)}),128))],4)])):(r.openBlock(),r.createElementBlock("table",PM,[!V.pinHeaderRow&&!V.hideHeaderRow?(r.openBlock(),r.createBlock(Yl,{key:0,table:r.unref(m)},null,8,["table"])):r.createCommentVNode("",!0),r.renderSlot(V.$slots,"pin-top",{},void 0,!0),k.value?(r.openBlock(),r.createElementBlock("tbody",{key:1,onVnodeMounted:C},[r.createElementVNode("div",{style:r.normalizeStyle({height:`${x.value}px`}),class:"pointer-events-none"},[r.createElementVNode("div",IM,[r.createVNode(rr),r.createVNode(Rr,{size:"xl"}),r.createElementVNode("div",null,[r.renderSlot(V.$slots,"loading-text",{},()=>[r.createElementVNode("span",OM,r.toDisplayString(r.unref(_)("table.loading")),1)],!0)]),r.createVNode(rr)])],4)],512)):(r.openBlock(),r.createBlock(r.unref(zs),{key:2,clone:r.unref(lf.clone),handle:Object.keys(n.expandedState??{}).length>0?".dnd-handler-disabled":".dnd-handler","model-value":r.unref(m).getRowModel().rows,move:M||V.onVuedraggableMove,"item-key":"id",tag:"tbody",onDragend:Q[0]||(Q[0]=W=>l.value=!1),onDragstart:Q[1]||(Q[1]=W=>l.value=!0),"onUpdate:modelValue":H,onVnodeMounted:C},{item:r.withCtx(({element:W})=>[V.$slots["table-row"]?r.renderSlot(V.$slots,"table-row",r.normalizeProps(r.mergeProps({key:0},W)),void 0,!0):(r.openBlock(),r.createElementBlock("tr",{key:1,class:r.normalizeClass([[{"bg-fm-color-neutral-gray-100":W.getIsSelected(),"cursor-pointer":typeof V.onRowClick=="function","dnd-handler":(typeof V.draggable=="function"?V.draggable(W.original,W.index):V.draggable)&&V.wholeRowDraggable,"border-b border-fm-color-neutral-gray-100":W.subRows.length===0&&W.depth===0?!0:W.depth===0?!W.getIsExpanded():W.index+1===W.getParentRow().subRows.length},V.rowClassName],"hover:bg-fm-color-opacity-sm"]),onClick:$=>{var U;return(U=V.onRowClick)==null?void 0:U.call(V,W)}},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(R(W),$=>{var U,J,oe,Z,ue,ae;return r.openBlock(),r.createElementBlock("td",{key:$.id,colspan:N($,W),class:r.normalizeClass([k.value?"hidden":"","h-[48px] text-fm-color-typo-primary",((U=$.column.columnDef.meta)==null?void 0:U.cellClass)??"px-16"]),style:r.normalizeStyle({width:(J=$.column.columnDef.meta)!=null&&J.width?(oe=$.column.columnDef.meta)==null?void 0:oe.width:$.column.getSize()!==0?`${$.column.getSize()}px`:void 0,maxWidth:(Z=$.column.columnDef.meta)==null?void 0:Z.maxWidth,textAlign:((ue=$.column.columnDef.meta)==null?void 0:ue.textAlign)??"left"})},[r.createElementVNode("span",{class:r.normalizeClass(["fm-typo-en-body-md-400",((ae=$.column.columnDef.meta)==null?void 0:ae.cellSpanClass)??"line-clamp-2 w-full"])},[r.createVNode(r.unref(os),{props:$.getContext(),render:$.column.columnDef.cell},null,8,["props","render"])],2)],14,VM)}),128))],10,NM))]),_:3},8,["clone","handle","model-value","move"])),V.pinHeaderRow&&!V.hideHeaderRow?(r.openBlock(),r.createBlock(Yl,{key:3,table:r.unref(m),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),V.hideFooter?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle({maxWidth:O.value?`${O.value}px`:void 0}),class:"basis-72 bg-white flex items-center justify-between px-24"},[A.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass([{"hidden invisible":V.forceMobileFooter},"flex gap-24 items-center justify-between xs:hidden xs:invisible"])},[r.createElementVNode("div",LM,[r.createElementVNode("span",zM,r.toDisplayString(r.unref(_)("table.itemsPerPage")),1),r.createVNode(Pb,{items:T.value,"model-value":r.unref(m).getState().pagination.pageSize,"onUpdate:modelValue":Q[2]||(Q[2]=W=>r.unref(m).setPageSize(W))},null,8,["items","model-value"])]),r.createElementVNode("span",{class:r.normalizeClass([{"hidden invisible":V.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-secondary xs:hidden xs:invisible"])},r.toDisplayString(r.unref(_)("table.itemCount",{start:n.rowData.length<r.unref(m).getState().pagination.pageSize?n.rowData.length:r.unref(m).getState().pagination.pageIndex*r.unref(m).getState().pagination.pageSize+1,end:(r.unref(m).getState().pagination.pageIndex+1)*r.unref(m).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":A.value||V.forceMobileFooter,"xs:w-full xs:justify-between":!A.value}])},[r.createVNode(Pb,{items:Array.from(Array(r.unref(m).getPageCount()),(W,$)=>$+1).map(W=>({label:W.toString(),value:W})),"model-value":r.unref(m).getState().pagination.pageIndex+1,"onUpdate:modelValue":Q[3]||(Q[3]=W=>r.unref(m).setPageIndex(W?W-1:0))},null,8,["items","model-value"]),r.createElementVNode("span",{class:r.normalizeClass([{"mr-auto":A.value||V.forceMobileFooter},"fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto"])},r.toDisplayString(r.unref(_)("table.pageCount",{total:r.unref(m).getPageCount()})),3),r.createElementVNode("div",_M,[r.createVNode(we,{disabled:!r.unref(m).getCanPreviousPage(),icon:"chevron_left","icon-color":"neutral-black",variant:"tertiary",onClick:Q[4]||(Q[4]=()=>r.unref(m).previousPage())},null,8,["disabled"]),r.createVNode(we,{disabled:!r.unref(m).getCanNextPage(),icon:"chevron_right","icon-color":"neutral-black",variant:"tertiary",onClick:Q[5]||(Q[5]=()=>r.unref(m).nextPage())},null,8,["disabled"])])],2)],4))],512)}}}),[["__scopeId","data-v-f80453e2"]]),UM={class:"fm-customize-fields"},WM={class:"fm-customize-fields__header"},jM={class:"fm-typo-en-title-md-600 text-fm-color-typo-primary"},GM={key:0,class:"fm-customize-fields__search"},QM={class:"fm-customize-fields__actions"},XM={class:"fm-typo-en-body-md-400 text-fm-color-typo-secondary"},qM={class:"fm-customize-fields__list-container"},KM={class:"fm-customize-fields__item"},JM={class:"fm-customize-fields__item-left"},YM={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"},eL=Ie(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((k,x)=>k.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(k=>k.label.toLowerCase().includes(v))}),u=v=>{const k=l.value.findIndex(C=>C.id===v);if(k===-1)return;const x=l.value[k];x.canHide!==!1&&(l.value[k]={...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((k,x)=>({...k,position:x}));o("update:modelValue",v)},y=r.computed(()=>l.value.filter(k=>k.canHide!==!1).every(k=>!k.visible));return(v,k)=>(r.openBlock(),r.createElementBlock("div",UM,[r.createElementVNode("div",WM,[r.createElementVNode("span",jM,r.toDisplayString(v.title??r.unref(_)("customizeFields.title")),1),v.showCloseButton?(r.openBlock(),r.createBlock(ge,{key:0,name:"close",size:"md",class:"fm-customize-fields__close-btn",onClick:k[0]||(k[0]=x=>v.$emit("close"))})):r.createCommentVNode("",!0)]),v.searchable?(r.openBlock(),r.createElementBlock("div",GM,[r.createVNode(jl,{modelValue:i.value,"onUpdate:modelValue":k[1]||(k[1]=x=>i.value=x),placeholder:v.searchPlaceholder??r.unref(_)("customizeFields.searchPlaceholder"),class:"w-full"},null,8,["modelValue","placeholder"])])):r.createCommentVNode("",!0),r.createElementVNode("div",QM,[r.createElementVNode("span",XM,r.toDisplayString(v.shownLabel??r.unref(_)("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(_)("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(_)("customizeFields.showAll")),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",qM,[r.createVNode(r.unref(zs),{modelValue:l.value,"onUpdate:modelValue":k[2]||(k[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:k[3]||(k[3]=x=>a.value=!0),onEnd:m},{item:r.withCtx(({element:x})=>[r.withDirectives(r.createElementVNode("div",KM,[r.createElementVNode("div",JM,[r.createVNode(ge,{name:"drag_indicator",size:"md",class:"fm-customize-fields__drag-handle",color:"#8E8E93"}),x.icon?(r.openBlock(),r.createBlock(ge,{key:0,name:x.icon,size:"md",class:"fm-customize-fields__item-icon",color:"#636366"},null,8,["name"])):r.createCommentVNode("",!0),r.createElementVNode("span",YM,r.toDisplayString(x.label),1)]),r.createVNode(Rl,{"model-value":x.visible,disabled:x.canHide===!1,"onUpdate:modelValue":C=>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(_)("customizeFields.noFieldsFound")),1)])):r.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-28662a9d"]]),tL=r.createElementVNode("span",{class:"fm-typo-en-body-lg-400 text-fm-color-typo-secondary"}," More ",-1),nL=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(hb,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(so,{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(ge,{name:"more_vert"}),tL],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(so,{key:0,placement:"right-start"},{"menu-button":r.withCtx(()=>[r.createVNode(Dt,{"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(or,{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(Dt,{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(or,{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(Dt,{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(or,{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))}}),oL=["tabindex"],rL=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=Te(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,...k})=>{const x=c(k);return{...k,expand:x,focusable:!k.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(ge,{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(or,{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(ge,{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,oL)),[[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,(k,x)=>(r.openBlock(),r.createBlock(y,r.mergeProps({key:x,"model-value":r.unref(n),"onUpdate:modelValue":b[0]||(b[0]=C=>r.isRef(n)?n.value=C:null),indentation:m.indentation+1,ref_for:!0},k),null,16,["model-value","indentation"]))),128))],4)):r.createCommentVNode("",!0)],4)}}}),iL={class:"h-full flex flex-col overflow-auto"},aL=r.defineComponent({__name:"FmCollapsibleTabs",props:{modelValue:{default:void 0},items:{default:()=>[]}},setup(t){const e=t,n=Te(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",iL,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.value,(l,c)=>(r.openBlock(),r.createBlock(rL,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))]))}}),sL=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))}}),lL=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(ge,{key:0,name:n.icon},null,8,["name"])):r.createCommentVNode("",!0)],6))}}),dL={class:"bg-white flex fm-corner-radius-md gap-4 items-center px-24 py-16"},cL={class:"flex gap-4 items-center xs:hidden"},uL={key:1,class:"hidden xs:flex"},fL=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",dL,[s.backButton?(r.openBlock(),r.createBlock(we,{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(pf,{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",cL,[i.value.firstSecondaryAction?(r.openBlock(),r.createBlock(we,{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(we,{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(so,{key:2},{"menu-button":r.withCtx(()=>[r.createVNode(we,{"append-icon":"expand_more","icon-color":"black",label:r.unref(_)("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(Dt,{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(we,{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(we,{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",uL,[r.createVNode(we,{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(qc,{"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(uf,null,{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value.bottomSheetActions,c=>(r.openBlock(),r.createBlock(ff,{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(we,{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)]))]))}}),pL={class:"fm-typo-en-title-md-600"},hL={class:"flex"},mL=Ie(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(Kc,{class:"flex flex-col gap-2 p-5",variant:"outlined"},{default:r.withCtx(()=>[r.createVNode(Hc,{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",pL,r.toDisplayString(e.value),1),s.hideCompare?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",hL,[i.value?(r.openBlock(),r.createBlock(Qc,{key:0,class:r.normalizeClass(`bg-${i.value.icon.tailwind}`),compact:""},{default:r.withCtx(()=>[r.createVNode(ge,{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(Kc,{key:1},{default:r.withCtx(()=>[r.createVNode(v1,{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 as=(t=>(t.Premium="premium",t.Beta="beta",t.Paid="paid",t))(as||{});const gL=r.defineComponent({__name:"FmPill",props:{variant:{default:as.Beta},label:{}},setup(t){const e=t,n=r.computed(()=>({[as.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"},[as.Premium]:{containerClass:"h-[18px] fm-pill-premium-gradient",label:"Premium",labelClass:"fm-typo-en-body-sm-600 text-fm-color-typo-white"},[as.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)}}}),bL=Ie(gL,[["__scopeId","data-v-cdca68a7"]]),ld=16,yL=r.defineComponent({__name:"FmSnackbarToast",setup(t){const{breakpoints:e}=nr(),n=r.inject(Ec),o=r.computed(()=>{var u;const s={currentSum:ld,tops:new Array},l=Object.values(dn).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?dn.TOP:p.position??dn.TOP_RIGHT,{currentSum:b,tops:y}=h[m];y.push({id:p.id,accumulatedHeight:b});const v=p.mountStage===wt.EXPIRED?0:ld+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,k;let u=0;const h=e.value.xs?dn.TOP:c.position??dn.TOP_RIGHT;switch(c.mountStage){case wt.PREMOUNT:{u=e.value.xs?0:ld;break}case wt.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)||ld;break}case wt.EXPIRED:{u=((k=(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:k.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===wt.EXPIRED?0:1};if(c===dn.TOP)return{top:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===dn.TOP_LEFT)return{top:`${s}px`,opacity:l===wt.EXPIRED?0:1,left:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.TOP_RIGHT)return{top:`${s}px`,opacity:l===wt.EXPIRED?0:1,right:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.BOTTOM)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:"50vw",transform:"translateX(50%)"};if(c===dn.BOTTOM_LEFT)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,left:l===wt.PREMOUNT?"-20px":"16px"};if(c===dn.BOTTOM_RIGHT)return{bottom:l===wt.PREMOUNT?"-20px":`${s}px`,opacity:l===wt.EXPIRED?0:1,right:l===wt.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(pb,{action:c.action,description:c.message,dismissable:c.dismissable,spinner:c.spinner,style:r.normalizeStyle(a(c.top,c.mountStage,c.position??r.unref(dn).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 dn=(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))(dn||{}),wt=(t=>(t.PREMOUNT="PREMOUNT",t.MOUNTED="MOUNTED",t.EXPIRED="EXPIRED",t))(wt||{});class vy{constructor(){ce(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 ky={install(t){t.provide(Ec,new vy);const e=document.body,n=r.createVNode(yL);n.appContext=t._context,r.render(n,e)}},wy={FmAdvancedSort:Mm,FmBadge:or,FmBottomSheet:qc,FmBreadcrumb:Rx,FmButton:we,FmButtonGroup:Mx,FmCard:Kc,FmCardActionArea:Lx,FmCardActions:_x,FmCardHeader:Ux,FmCardMedia:jx,FmCardSection:Jc,FmCardSubtitle:Hm,FmCardTitle:_m,FmChip:Qc,FmChipGroup:Xc,FmDialog:Qx,FmDropField:Kx,FmDynamicDialog:Wm,FmLineChart:v1,FmPieChart:_9,FmBarChart:Q9,FmScorecard:mL,FmCheckbox:Pm,FmDatePicker:k5,FmDatePickerMobile:x1,FmDateRangePicker:W6,FmDateRangePickerMobile:B1,FmSimpleDatePicker:hE,FmSimpleDatePickerMobile:I1,FmSimpleDateRangePicker:QE,FmSimpleDateRangePickerMobile:O1,FmField:ct,FmForm:Fm,FmFormGroup:Rt,FmErrorSummary:JE,FmHelperText:dm,FmLabel:vn,FmPhoneNumber:cB,FmPinField:pB,FmRadio:kB,FmRadioGroup:wB,FmSearch:jl,FmGlobalSearch:qB,FmSelect:ko,FmStepperField:$B,FmSwitch:Rl,FmTextField:Lr,FmTextarea:tP,FmTimeInput:Tl,FmTimePicker:No,FmTimeRangePicker:lP,FmIcon:ge,FmList:uf,FmListItem:ff,FmMenu:so,FmMenuDeprecated:pP,FmMenuDivider:S1,FmMenuHeader:mP,FmMenuItem:Dt,FmCircularProgress:Rr,FmLinearProgress:kP,FmProgressBar:xP,FmSideSheet:DP,FmSnackbar:pb,FmSpacer:rr,FmStep:TP,FmStepper:LP,FmTab:hb,FmTable:HM,FmCustomizeFields:eL,FmTableToolbar:KP,FmTableHeader:Yl,FmTabs:nL,FmCollapsibleTabs:aL,FmTooltip:Hc,FmAvatar:sL,FmThumbnail:lL,FmPageHead:fL,FmTopSheet:cb,FmPopover:Io,FmOverlay:Ei,FmPill:bL},vL=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:ki,placement:e.placement,middleware:[xi(),wi({mainAxis:6}),Sm({element:i})]}),h=r.computed(()=>{var y,v,k,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:((k=c.value.arrow)==null?void 0:k.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 Wf;const mr=r.ref([]);let xy=0;const kL=()=>{if(Wf)return;const t=document.createElement("div");document.body.appendChild(t),Wf=r.createApp({render:()=>mr.value.map(e=>r.h(vL,e))}),Wf.mount(t)},dd=t=>{if(t){for(const e of["top","right","bottom","left"])if(t[e])return e}return"top"},Sy=(t,e)=>{const{value:n,modifiers:o}=e;kL(),t.$_fmTooltipId=xy,xy+=1,typeof n=="string"?mr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:dd(o),hideArrow:!1}):n&&typeof n=="object"&&mr.value.push({id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),placement:dd(o),disabled:n.disabled??!1,hideArrow:n.hideArrow??!1,zIndex:n.zIndex})},wL={mounted:Sy,updated:(t,e)=>{const{value:n,modifiers:o}=e,i=mr.value.findIndex(a=>a.id===t.$_fmTooltipId);if(i===-1){Sy(t,e);return}typeof n=="string"?mr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.toString(),placement:dd(o),hideArrow:!1}:n&&typeof n=="object"&&(mr.value[i]={id:t.$_fmTooltipId,reference:()=>t,content:n.content.toString(),disabled:n.disabled??!1,placement:dd(o),hideArrow:n.hideArrow??!1})},beforeUnmount:t=>{const e=mr.value.findIndex(n=>n.id===t.$_fmTooltipId);e!==-1&&mr.value.splice(e,1)}};function xL(){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 cd;function jf(){jf.init||(jf.init=!0,cd=xL()!==-1)}var ud={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){jf(),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",cd&&this.$el.appendChild(t),t.data="about:blank",cd||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&&(!cd&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const SL=r.withScopeId("data-v-b329ee4c");r.pushScopeId("data-v-b329ee4c");const CL={class:"resize-observer",tabindex:"-1"};r.popScopeId();const AL=SL((t,e,n,o,i,a)=>(r.openBlock(),r.createBlock("div",CL)));ud.render=AL,ud.__scopeId="data-v-b329ee4c",ud.__file="src/components/ResizeObserver.vue";function fd(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fd=function(e){return typeof e}:fd=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fd(t)}function EL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DL(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 BL(t,e,n){return e&&DL(t.prototype,e),t}function Cy(t){return PL(t)||IL(t)||OL(t)||NL()}function PL(t){if(Array.isArray(t))return Gf(t)}function IL(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function OL(t,e){if(t){if(typeof t=="string")return Gf(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 Gf(t,e)}}function Gf(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 NL(){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 VL(t){var e;return typeof t=="function"?e={callback:t}:e=t,e}function RL(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(Cy(a))),i=c,clearTimeout(o),o=setTimeout(function(){t.apply(void 0,[c].concat(Cy(a))),o=0},e)}};return s._clear=function(){clearTimeout(o),o=null},s}function Ay(t,e){if(t===e)return!0;if(fd(t)==="object"){for(var n in t)if(!Ay(t[n],e[n]))return!1;return!0}return!1}var TL=function(){function t(e,n,o){EL(this,t),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return BL(t,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=VL(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=RL(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 Ey(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 TL(t,o,n);t._vue_visibilityState=i}}function FL(t,e,n){var o=e.value,i=e.oldValue;if(!Ay(o,i)){var a=t._vue_visibilityState;if(!o){Dy(t);return}a?a.createObserver(o,n):Ey(t,{value:o},n)}}function Dy(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var ML={beforeMount:Ey,updated:FL,unmounted:Dy};function LL(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 By={itemsLimit:1e3},zL=/(auto|scroll)/;function Py(t,e){return t.parentNode===null?e:Py(t.parentNode,e.concat([t]))}var Qf=function(e,n){return getComputedStyle(e,null).getPropertyValue(n)},_L=function(e){return Qf(e,"overflow")+Qf(e,"overflow-y")+Qf(e,"overflow-x")},HL=function(e){return zL.test(_L(e))};function Iy(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var e=Py(t.parentNode,[]),n=0;n<e.length;n+=1)if(HL(e[n]))return e[n];return document.scrollingElement||document.documentElement}}function Xf(t){"@babel/helpers - typeof";return Xf=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},Xf(t)}var Oy={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 Ny(){return this.items.length&&Xf(this.items[0])!=="object"}var qf=!1;if(typeof window<"u"){qf=!1;try{var UL=Object.defineProperty({},"passive",{get:function(){qf=!0}});window.addEventListener("test",null,UL)}catch{}}let WL=0;var ss={name:"RecycleScroller",components:{ResizeObserver:ud},directives:{ObserveVisibility:ML},props:{...Oy,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:Ny,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:WL++,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,k,x,C,B;if(!u)v=k=C=B=x=0;else if(this.$_prerender)v=C=0,k=B=Math.min(this.prerender,c.length),x=null;else{const j=this.getScroll();if(e){let F=j.start-this.$_lastUpdateScrollPosition;if(F<0&&(F=-F),n===null&&F<a||F<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=j.start;const X=this.buffer;j.start-=X,j.end+=X;let I=0;if(this.$refs.before&&(I=this.$refs.before.scrollHeight,j.start-=I),this.$refs.after){const F=this.$refs.after.scrollHeight;j.end+=F}if(n===null){let F,N=0,R=u-1,M=~~(u/2),V;do V=M,F=h[M].accumulator,F<j.start?N=M:M<u-1&&h[M+1].accumulator>j.start&&(R=M),M=~~((N+R)/2);while(M!==V);for(M<0&&(M=0),v=M,x=h[u-1].accumulator,k=M;k<u&&h[k].accumulator<j.end;k++);for(k===-1?k=c.length-1:(k++,k>u&&(k=u)),C=v;C<u&&I+h[C].accumulator<j.start;C++);for(B=C;B<u&&I+h[B].accumulator<j.end;B++);}else{v=~~(j.start/n*o);const F=v%o;v-=F,k=Math.ceil(j.end/n*o),C=Math.max(0,Math.floor((j.start-I)/n*o)),B=Math.floor((j.end-I)/n*o),v<0&&(v=0),k>u&&(k=u),C<0&&(C=0),B>u&&(B=u),x=Math.ceil(u/o)*n}}k-v>By.itemsLimit&&this.itemsLimitError(),this.totalSize=x;let O;const A=v<=this.$_endIndex&&k>=this.$_startIndex;if(A)for(let j=0,X=b.length;j<X;j++)O=b[j],O.nr.used&&(t&&(O.nr.index=y[O.item[l]]),(O.nr.index==null||O.nr.index<v||O.nr.index>=k)&&this.unuseView(O));const T=A?null:new Map;let E,L,H;for(let j=v;j<k;j++){E=c[j];const X=l?E[l]:E;if(X==null)throw new Error(`Key is ${X} on item (keyField is '${l}')`);if(O=p.get(X),!n&&!h[j].size){O&&this.unuseView(O);continue}L=E[s];let I=m.get(L),F=!1;if(!O)A?I&&I.length?O=I.pop():O=this.addView(b,j,E,X,L):(H=T.get(L)||0,(!I||H>=I.length)&&(O=this.addView(b,j,E,X,L),this.unuseView(O,!0),I=m.get(L)),O=I[H],T.set(L,H+1)),p.delete(O.nr.key),O.nr.used=!0,O.nr.index=j,O.nr.key=X,O.nr.type=L,p.set(X,O),F=!0;else if(!O.nr.used&&(O.nr.used=!0,F=!0,I)){const N=I.indexOf(O);N!==-1&&I.splice(N,1)}O.item=E,F&&(j===c.length-1&&this.$emit("scroll-end"),j===0&&this.$emit("scroll-start")),n===null?(O.position=h[j-1].accumulator,O.offset=0):(O.position=Math.floor(j/o)*n,O.offset=j%o*i)}return this.$_startIndex=v,this.$_endIndex=k,this.emitUpdate&&this.$emit("update",v,k,C,B),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:A}},getListenerTarget(){let t=Iy(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,qf?{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=Iy(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 jL={key:0,ref:"before",class:"vue-recycle-scroller__slot"},GL={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function QL(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",jL,[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",GL,[r.renderSlot(t.$slots,"after")],512)):r.createCommentVNode("v-if",!0),r.createVNode(s,{onNotify:a.handleResize},null,8,["onNotify"])],34)),[[l,a.handleVisibilityChange]])}ss.render=QL,ss.__file="src/components/RecycleScroller.vue";var pd={name:"DynamicScroller",components:{RecycleScroller:ss},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:{...Oy,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Ny,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=LL()},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 XL(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"])}pd.render=XL,pd.__file="src/components/DynamicScroller.vue";var Kf={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())}};Kf.__file="src/components/DynamicScrollerItem.vue";function qL(t,e){t.component("".concat(e,"recycle-scroller"),ss),t.component("".concat(e,"RecycleScroller"),ss),t.component("".concat(e,"dynamic-scroller"),pd),t.component("".concat(e,"DynamicScroller"),pd),t.component("".concat(e,"dynamic-scroller-item"),Kf),t.component("".concat(e,"DynamicScrollerItem"),Kf)}var KL={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"&&(By[i]=o[i]);o.installComponents&&qL(e,o.componentsPrefix)}},JL={exports:{}};(function(t,e){(function(n,o){t.exports=o(jc)})(nn,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})})(JL);var YL={exports:{}};(function(t,e){(function(n,o){t.exports=o(jc)})(nn,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})})(YL);var ZL={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(nn,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.8",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 ez={"en-US":"en","zh-CN":"zh-cn","zh-Hant":"zh-tw","th-TH":"th"},tz=(t,e)=>{if(t.use(bk,{duration:.3,color:"var(--fm-color-opacity-sm)",initialOpacity:1,finalOpacity:.1,dissolveDuration:.6}),t.directive("tooltip",wL),t.use($x),t.use(ky),t.use(KL),Object.entries(wy).forEach(([n,o])=>{t.component(n,o)}),e!=null&&e.locale){Dm(e.locale);const n=ez[e.locale]||"en";q.locale(n)}};Ge.FeedMeUI=tz,Ge.FmAdvancedSort=Mm,Ge.FmButtonColorThemeVariant=Kt,Ge.FmButtonVariant=jn,Ge.Locale=Em,Ge.SnackbarMountStage=wt,Ge.SnackbarPlugin=ky,Ge.SnackbarPosition=dn,Ge.SnackbarService=vy,Ge.components=wy,Ge.setLocale=Dm,Ge.useBreakpoints=nr,Ge.useDialog=Rm,Ge.useDialogChild=Tm,Ge.useFocus=ka,Ge.useFormChild=lm,Ge.useProxiedModel=Te,Ge.useSnackbar=zw,Ge.useValidation=sm,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});