PageSourceSearch

https://baserow.io/_nuxt/BNhXlrA32.js

js baserow.io collected 2026-09-24 22:00:41 UTC 9,610 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`681b4f9e-4e15-4ccf-b3c6-aff56abb4656`,e._sentryDebugIdIdentifier=`sentry-dbid-681b4f9e-4e15-4ccf-b3c6-aff56abb4656`)}catch{}})();import{o as e}from"./T7Kr6sqh.js";import{t}from"./DDw8eM802.js";import{t as n}from"./oB7W6JYn2.js";var r=e(t(),1),i=`h:mm:ss.sss`,a=864e11,o=a*-1,s=`d h`,c=`d h:mm`,l=`d h:mm:ss`,u=`h:mm`,d=`h:mm:ss`,f=`h:mm:ss.s`,p=`h:mm:ss.ss`,m=`h:mm:ss.sss`,h=`d h mm`,g=`d h mm ss`,_=86400,v=3600,y=60,b=class{constructor(e){this.ms=e}},x=[[`hh`,`hours`],[`mm`,`minutes`],[`ss`,`seconds`],[`d`,`days`],[`h`,`hours`],[`m`,`minutes`],[`s`,`seconds`]],S=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),C=e=>{if(typeof e!=`string`||e.length===0)return null;let t=[`^-?`],n=[],r=new Set,i=0;for(;i<e.length;){if(e[i]===`\\`){if(i+1>=e.length)return null;t.push(S(e[i+1])),i+=2;continue}if(e[i]===`f`){if(r.has(`fraction`))return null;r.add(`fraction`);let a=0;for(;i<e.length&&e[i]===`f`;)a+=1,i+=1;n.push(`fraction`),t.push(`(\\d{1,${a}})`);continue}let a=!1;for(let[o,s]of x)if(e.startsWith(o,i)){if(r.has(s))return null;r.add(s),n.push(s),t.push(`(\\d+)`),i+=o.length,a=!0;break}a||(t.push(S(e[i])),i+=1)}return n.length===0?null:(t.push(`$`),{pattern:new RegExp(t.join(``)),fields:n})},w=e=>C(e)!==null,T=e=>{let t=0;for(;t<e.length;){if(e[t]===`\\`){t+=2;continue}if(e[t]===`f`){let n=0;for(;t<e.length&&e[t]===`f`;)n+=1,t+=1;return n}t+=1}return 0},E=(e,t)=>{if(typeof e!=`string`)return null;let n=C(t);if(n===null)return null;let r=e.trim(),i=r.startsWith(`-`),a=r.match(n.pattern);if(a===null)return null;let o={days:0,hours:0,minutes:0,seconds:0},s=0;n.fields.forEach((e,t)=>{let n=a[t+1];e===`fraction`?s=parseInt(n,10)/10**n.length*1e3:o[e]=parseInt(n,10)});let c=o.days*_*1e3+o.hours*v*1e3+o.minutes*y*1e3+o.seconds*1e3+s;return i&&(c=-c),new b(c)},D=(e,t)=>{if(!(e instanceof b))return null;let n=C(t);if(n===null)return null;let r=new Set(n.fields),i=e.ms<0,a=Math.abs(e.ms),o=r.has(`fraction`)?T(t):0,s=10**o,c=Math.round(a/1e3*s)/s,l=Math.trunc(c),u=c-l,d=0,f=0,p=0,m=0;r.has(`days`)&&(d=Math.trunc(l/_)),r.has(`hours`)&&(f=r.has(`days`)?Math.trunc(l%_/v):Math.trunc(l/v)),r.has(`minutes`)&&(p=r.has(`hours`)||r.has(`days`)?Math.trunc(l%v/y):Math.trunc(l/y)),r.has(`seconds`)&&(m=r.has(`minutes`)||r.has(`hours`)||r.has(`days`)?l%y:l);let h={days:d,hours:f,minutes:p,seconds:m},g=[],S=0;for(;S<t.length;){if(t[S]===`\\`){g.push(t[S+1]),S+=2;continue}if(t[S]===`f`){let e=Math.round(u*10**o);g.push(String(e).padStart(o,`0`)),S+=o;continue}let e=!1;for(let[n,r]of x)if(t.startsWith(n,S)){let t=h[r];g.push(n.length===2?String(t).padStart(2,`0`):String(t)),S+=n.length,e=!0;break}e||(g.push(t[S]),S+=1)}let w=g.join(``);return i?`-${w}`:w},O=[{regex:/^(\d+)\s+years?$/i,unit:`days`,factor:365},{regex:/^(\d+)\s+months?$/i,unit:`days`,factor:30},{regex:/^(\d+)\s+weeks?$/i,unit:`days`,factor:7},{regex:/^(\d+)\s+days?$/i,unit:`days`,factor:1},{regex:/^(\d+)\s+hours?$/i,unit:`hours`,factor:1},{regex:/^(\d+)\s+minutes?$/i,unit:`minutes`,factor:1},{regex:/^(\d+)\s+seconds?$/i,unit:`seconds`,factor:1}],k={days:_*1e3,hours:v*1e3,minutes:y*1e3,seconds:1e3};function A({secs:e=null,mins:t=null,hours:n=null,days:r=null}){return parseInt(r||0)*_+parseInt(n||0)*v+parseInt(t||0)*y+parseFloat(e||0)}var j=new Map([[/^((?<days>\d+)(?:d\s*))?((?<hours>\d+)(?:h\s*))?((?<mins>\d+)(?:m\s*))?((?<secs>\d+|\d+\.\d+)(?:s\s*))?$/,{default:({days:e,hours:t,mins:n,secs:r})=>A({days:e,hours:t,mins:n,secs:r})}],[/^(\d+)(?:d\s*|\s+)(\d+):(\d+):(\d+|\d+\.\d+)$/,{default:(e,t,n,r)=>A({days:e,hours:t,mins:n,secs:r})}],[/^(\d+):(\d+):(\d+|\d+\.\d+)$/,{default:(e,t,n)=>A({hours:e,mins:t,secs:n})}],[/^(\d+)(?:d\s*|\s+)(\d+):(\d+)$/,{[s]:(e,t,n)=>A({days:e,hours:t,mins:n}),[c]:(e,t,n)=>A({days:e,hours:t,mins:n}),[h]:(e,t,n)=>A({days:e,hours:t,mins:n}),default:(e,t,n)=>A({days:e,mins:t,secs:n})}],[/^(\d+)(?:d\s*|\s+)(\d+):(\d+\.\d+)$/,{default:(e,t,n)=>A({days:e,mins:t,secs:n})}],[/^(\d+)h$/,{default:e=>A({hours:e})}],[/^(\d+)(?:d\s*|\s+)(\d+)h$/,{default:(e,t)=>A({days:e,hours:t})}],[/^(\d+)d$/,{default:e=>A({days:e})}],[/^(\d+)(?:d\s*|\s+)(\d+)$/,{[s]:(e,t)=>A({days:e,hours:t}),[c]:(e,t)=>A({days:e,mins:t}),[u]:(e,t)=>A({days:e,mins:t}),[h]:(e,t)=>A({days:e,mins:t}),default:(e,t)=>A({days:e,secs:t})}],[/^(\d+)(?:d\s*|\s+)(\d+\.\d+)$/,{default:(e,t)=>A({days:e,secs:t})}],[/^(\d+):(\d+)$/,{[s]:(e,t)=>A({hours:e,mins:t}),[c]:(e,t)=>A({hours:e,mins:t}),[u]:(e,t)=>A({hours:e,mins:t}),[h]:(e,t)=>A({hours:e,mins:t}),default:(e,t)=>A({mins:e,secs:t})}],[/^(\d+):(\d+\.\d+)$/,{default:(e,t)=>A({mins:e,secs:t})}],[/^(\d+\.\d+)$/,{default:e=>A({secs:e})}],[/^(\d+)$/,{[s]:e=>A({hours:e}),[c]:e=>A({mins:e}),[u]:e=>A({mins:e}),[h]:e=>A({mins:e}),default:e=>A({secs:e})}]]),M=new Map([[u,{description:`h:mm (1:23)`,example:`1:23`,toString(e,t,n,r){return`${e*24+t}:${n.toString().padStart(2,`0`)}`},round:e=>Math.round(e/60)*60}],[d,{description:`h:mm:ss (1:23:40)`,example:`1:23:40`,toString(e,t,n,r){return`${e*24+t}:${n.toString().padStart(2,`0`)}:${r.toFixed(0).padStart(2,`0`)}`},round:e=>Math.round(e)}
1],[f,{description:`h:mm:ss.s (1:23:40.0)`,example:`1:23:40.0`,toString(e,t,n,r){return`${e*24+t}:${n.toString().padStart(2,`0`)}:${r.toFixed(1).padStart(4,`0`)}`},round:e=>Math.round(e*10)/10}],[p,{description:`h:mm:ss.ss (1:23:40.00)`,example:`1:23:40.00`,toString(e,t,n,r){return`${e*24+t}:${n.toString().padStart(2,`0`)}:${r.toFixed(2).padStart(5,`0`)}`},round:e=>Math.round(e*100)/100}],[m,{description:`h:mm:ss.sss (1:23:40.000)`,example:`1:23:40.000`,toString(e,t,n,r){return`${e*24+t}:${n.toString().padStart(2,`0`)}:${r.toFixed(3).padStart(6,`0`)}`},round:e=>Math.round(e*1e3)/1e3}],[s,{description:`d h (1d 2h)`,example:`1d 2h`,toString(e,t,n,r){return`${e}d ${t}h`},round:e=>Math.round(e/3600)*3600}],[c,{description:`d h:mm (1d 2:34)`,example:`1d 2:34`,toString(e,t,n,r){return`${e}d ${t}:${n.toString().padStart(2,`0`)}`},round:e=>Math.round(e/60)*60}],[l,{description:`d h:mm:ss (1d 2:34:56)`,example:`1d 2:34:56`,toString(e,t,n,r){return`${e}d ${t}:${n.toString().padStart(2,`0`)}:${r.toFixed(0).padStart(2,`0`)}`},round:e=>Math.round(e)}],[h,{description:`d h m (1d 2h 3m)`,example:`1d 2h 3m`,toString(e,t,n,r){return`${e}d ${t}h ${n.toString().padStart(2,`0`)}m`},round:e=>Math.round(e/60)*60}],[g,{description:`d h m s (1d 2h 3m 4s)`,example:`1d 2h 3m 4s`,toString(e,t,n,r){return`${e}d ${t}h ${n.toString().padStart(2,`0`)}m ${r.toFixed(0).padStart(2,`0`)}s`},round:e=>Math.round(e)}]]),N={[u]:`h:mm`,[d]:`h:mm:ss`,[f]:`h:mm:ss.f`,[p]:`h:mm:ss.ff`,[m]:`h:mm:ss.fff`,[s]:`d\\d h\\h`,[c]:`d\\d h:mm`,[l]:`d\\d h:mm:ss`,[h]:`d\\d h\\h mm\\m`,[g]:`d\\d h\\h mm\\m ss\\s`},P=(e,t)=>{if(e===null)return null;let n=M.get(t);if(!n)throw Error(`Unknown duration format ${t}`);return n.round(e)},F=(e,t=i)=>{if(e==null||e===``)return null;if(Number.isFinite(e))return e;let n=1;e.startsWith(`-`)&&(n=-1,e=e.substring(1));for(let[i,a]of j){let o={};try{o=i.exec(e).groups}catch{}let s=e.match(i),c=a[t]||a.default;if(!r.default.isEmpty(o))return c(o)*n;if(s)return c(...s.slice(1))*n}return null},I=e=>{if(e==null||e===``||typeof e!=`string`&&!Number.isFinite(e))return null;let t=F(e,i);if(t!==null)return new b(t*1e3);if(typeof e!=`string`)return null;for(let{regex:t,unit:n,factor:r}of O){let i=e.trim().match(t);if(i)return new b(parseInt(i[1],10)*r*k[n])}return null},L=(e,t)=>e==null||e===``?``:D(new b(e*1e3),N[t]),R=/YYYY|MMMM|dddd|MMM|ddd|SSS|YY|MM|DD|HH|hh|mm|ss|[MDHhmsAaT]/g;function z(e){return typeof e!=`string`||e===``?!1:!/[a-zA-Z]/.test(e.replace(R,``))}var B=e=>{let t=n(),r=n(e),i=t.diff(r,`years`);if(i>=1)return{period:`years`,count:i};let a=t.diff(r,`months`);if(a>=1)return{period:`months`,count:a};let o=t.diff(r,`days`);if(o>=1)return{period:`days`,count:o};let s=t.diff(r,`hours`);if(s>=1)return{period:`hours`,count:s};let c=t.diff(r,`minutes`);return c>=1?{period:`minutes`,count:c}:{period:`seconds`,count:t.diff(r,`seconds`)}};function V(){let e=n.weekdaysShort();return e.push(e.shift()),e}function H({year:e,month:t,day:r,timezone:i}){return n.tz({year:e,month:t,day:r,hour:0,minute:0,second:0,millisecond:0},i)}function U(e){let t=H({year:e.year(),month:e.month(),day:1,timezone:e.tz()}),r=n(t).isoWeekday(),i=n(t).subtract(1,`month`),a=r?r-1:6,o=n(t).subtract(a,`day`).date(),s=a===0?t:H({year:i.year(),month:i.month(),day:o,timezone:e.tz()}),c=e.daysInMonth(),l=H({year:e.year(),month:e.month(),day:c,timezone:e.tz()}).isoWeekday(),u=H({year:e.year(),month:e.month(),day:1,timezone:e.tz()}).add(1,`month`),d=l&&7-l;return{fromTimestamp:s,toTimestamp:H({year:u.year(),month:u.month(),day:d+1,timezone:e.tz()}),visibleNumberOfDaysFromNextMonth:d,visibleNumberOfDaysFromPreviousMonth:a,firstMondayDayOfRange:o,firstDayPreviousMonth:i,firstDayNextMonth:u}}function W(){return n.tz.guess()}var G=class extends Date{constructor(...e){let t=n(...e).startOf(`day`);if(!t.isValid()){super(`invalid`),this._moment=t;return}super(t.toDate()),this._moment=t}setHours(){return this}setMinutes(){return this}setSeconds(){return this}setMilliseconds(){return this}getHours(){return 0}getMinutes(){return 0}getSeconds(){return 0}getMilliseconds(){return 0}toString(){return this._moment.isValid()?this._moment.format(`YYYY-MM-DD`):`Invalid Date`}toJSON(){return this.toString()}};export{E as _,W as a,M as c,b as d,L as f,F as g,I as h,U as i,a as l,w as m,H as n,z as o,D as p,B as r,V as s,G as t,o as u,P as v};
2//# sourceMappingURL=BNhXlrA32.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.