@malloy-publisher/app 0.0.176 → 0.0.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-doc.yaml +7 -58
- package/dist/assets/{HomePage-_GXfGtrF.js → HomePage-CwUkFsA8.js} +1 -1
- package/dist/assets/{MainPage-UqGzQjP1.js → MainPage-JYvDXOkC.js} +1 -1
- package/dist/assets/{ModelPage-CnwgkZU6.js → ModelPage-TEQrhaqq.js} +1 -1
- package/dist/assets/{PackagePage-CqmgyERX.js → PackagePage-CgE-izLw.js} +1 -1
- package/dist/assets/{ProjectPage-5jrEp4pr.js → ProjectPage-PiMPpFX8.js} +1 -1
- package/dist/assets/{RouteError-CjrNNYGo.js → RouteError-DnSZEzkT.js} +1 -1
- package/dist/assets/{WorkbookPage-Cy2UHLkL.js → WorkbookPage-DjQ8u5DD.js} +1 -1
- package/dist/assets/{index-DfOHc8G8.js → index--80Q7qw1.js} +1 -1
- package/dist/assets/{index-ZpoRvcIi.js → index-BJUsHnGO.js} +40 -40
- package/dist/assets/{index-_xQHc-7Q.js → index-CZ4G_NMp.js} +1 -1
- package/dist/assets/{index.umd-Bq6CbCSn.js → index.umd-Cf-wqh-R.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{L as uO,r as D,j as w,N as gr,R as v4,Q as _4,U as oo}from"./index-ZpoRvcIi.js";import{r as S4,a as $2,b as A4,c as b4,d as R4,e as T4,f as w4,g as D4,h as L4,j as q2,k as j2,l as O0,m as Qh,n as O4,o as lO,p as N4,q as F4,s as I4,t as D3,u as L3,v as O3,w as At}from"./index-DfOHc8G8.js";import{a as S1}from"./index.umd-Bq6CbCSn.js";var Ca={},ry={},Hr={},ny={},lv;function st(){return lv||(lv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TD=e.ValueType=void 0,e.safeRecordGet=r,e.mkSafeRecord=s,e.exprHasKids=a,e.exprHasE=o,e.exprIsLeaf=c,e.isAsymmetricExpr=d,e.mkTemporal=f,e.isRawCast=u,e.isFilterExprType=p,e.isTimeLiteral=h,e.isParameterType=m,e.paramHasValue=x,e.expressionIsScalar=E,e.expressionIsAggregate=C,e.expressionIsUngroupedAggregate=g,e.expressionInvolvesAggregate=_,e.expressionIsCalculation=S,e.expressionIsAnalytic=R,e.isExpressionTypeLEQ=b,e.maxExpressionType=T,e.maxOfExpressionTypes=N,e.hasExpression=k,e.isTemporalType=L,e.isBasicAtomicType=F,e.isAtomicFieldType=M,e.canOrderBy=q,e.fieldIsIntrinsic=B,e.mkFieldDef=P,e.mkArrayDef=Y,e.mkArrayTypeDef=ee,e.isRepeatedRecordFunctionParam=oe,e.isRepeatedRecord=I,e.isRecordOrRepeatedRecord=X,e.isBasicArray=G,e.isMatrixOperation=te,e.isJoinable=V,e.isJoined=se,e.isJoinedSource=Ee,e.isDateUnit=Ce,e.isTimestampUnit=le,e.isExtractUnit=ae,e.refIsStructDef=ce,e.segmentHasErrors=ie,e.structHasErrors=xe,e.isReduceSegment=me,e.isPartialSegment=Te,e.isProjectSegment=ye,e.isQuerySegment=be,e.isSamplingRows=pe,e.isSamplingPercent=Pe,e.isSamplingEnable=qe,e.isRawSegment=Ue,e.isIndexSegment=pt,e.bareFieldUsage=gt,e.isSegmentSQL=St,e.isSegmentSource=Ot,e.isSourceRegistryReference=Qt,e.sourceBase=br,e.isSourceDef=rr,e.isPersistableSourceDef=Le,e.isBaseTable=We,e.isLiteral=wt,e.mergeEvalSpaces=He,e.isBasicAtomic=de,e.getIdentifier=he,e.isUserTypeDef=ke,e.isCompoundArrayData=Be,e.isTurtle=Ke,e.isAtomic=ot,e.isValueString=rt,e.isValueNumber=Nt,e.isValueBoolean=Rt,e.isValueTimestamp=Se,e.isValueDate=it,e.mergeUniqueKeyRequirement=Ge;const t=Object.prototype.hasOwnProperty;function r(re,we){return t.call(re,we)?re[we]:void 0}function s(){return Object.create(null)}function a(re){return"kids"in re}function o(re){return"e"in re}function c(re){return!(a(re)||o(re))}function d(re){return re.node==="aggregate"&&["sum","avg","count","distinct"].includes(re.function)}function l(re){return re.node!=="arrayLiteral"&&re.node!=="recordLiteral"}function f(re,we){if(!("typeDef"in re)){const Ye=typeof we=="string"?{type:we}:we;if(l(re))return{...re,typeDef:{...Ye}}}return re}function u(re){return"dstSQLType"in re}function p(re){return["string","number","boolean","date","timestamp","timestamptz"].includes(re)}function h(re){return re.node==="dateLiteral"||re.node==="timestampLiteral"||re.node==="timestamptzLiteral"}function m(re){return["string","number","boolean","date","timestamp","timestamptz","filter expression","error"].includes(re)}function x(re){return re.value!==null}function E(re){return re===void 0||re==="scalar"}function C(re){return re==="aggregate"||re==="ungrouped_aggregate"}function g(re){return re==="ungrouped_aggregate"}function _(re){return re==="aggregate"||re==="ungrouped_aggregate"||re==="aggregate_analytic"}function S(re){return re==="aggregate"||re==="scalar_analytic"||re==="aggregate_analytic"||re==="ungrouped_aggregate"}function R(re){return re==="aggregate_analytic"||re==="scalar_analytic"}function v(re){return{scalar:0,aggregate:1,ungrouped_aggregate:2,scalar_analytic:2,aggregate_analytic:3}[re]}function b(re,we){return re===we||v(re)<v(we)}function T(re,we){let Ye="scalar";return(re==="aggregate"||we==="aggregate")&&(Ye="aggregate"),(re==="ungrouped_aggregate"||we==="ungrouped_aggregate")&&(Ye="ungrouped_aggregate"),(re==="scalar_analytic"||we==="scalar_analytic")&&(Ye="scalar_analytic"),(re==="aggregate_analytic"||we==="aggregate_analytic")&&(Ye="aggregate_analytic"),(re==="scalar_analytic"&&we==="aggregate"||re==="aggregate"&&we==="scalar_analytic")&&(Ye="aggregate_analytic"),Ye}function N(re){return re.reduce(T,"scalar")}function k(re){return"e"in re&&re.e!==void 0}function L(re){return re==="date"||re==="timestamp"||re==="timestamptz"}function F(re){return["string","number","date","timestamp","timestamptz","boolean","json","sql native","error"].includes(re)}function M(re){return F(re)||re==="record"||re==="array"}function q(re){return["string","number","date","boolean","date","timestamp","timestamptz"].includes(re)}function B(re){return M(re.type)&&!k(re)}function P(re,we){if(G(re))return Y(re.elementTypeDef,we);if(I(re)){const{type:ze,fields:mt,elementTypeDef:Ct}=re;return{type:ze,fields:mt,elementTypeDef:Ct,join:"many",name:we}}if(re.type==="record"){const{type:ze,fields:mt}=re;return{type:ze,fields:mt,join:"one",name:we}}const Ye={name:we,type:re.type};switch(re.type){case"sql native":return{...Ye,rawType:re.rawType};case"number":{const ze=re.numberType;return ze?{...Ye,numberType:ze}:Ye}case"date":{const ze=re.timeframe;return ze?{name:we,type:"date",timeframe:ze}:Ye}case"timestamp":{const ze={name:we,type:"timestamp"};return re.timeframe&&(ze.timeframe=re.timeframe),ze}case"timestamptz":{const ze={name:we,type:"timestamptz"};return re.timeframe&&(ze.timeframe=re.timeframe),ze}}return Ye}function Y(re,we){if(re.type==="record")return{type:"array",join:"many",name:we,elementTypeDef:{type:"record_element"},fields:re.fields};const Ye=P(re,"value");return{type:"array",join:"many",name:we,elementTypeDef:re,fields:[Ye,{...Ye,name:"each",e:{node:"field",path:["value"]}}]}}function ee(re){return re.type==="record"?{type:"array",elementTypeDef:{type:"record_element"},fields:re.fields}:{type:"array",elementTypeDef:re}}function oe(re){return re.type==="array"&&re.elementTypeDef.type==="record_element"}function I(re){return re.type==="array"&&re.elementTypeDef.type==="record_element"}function X(re){return re.type==="record"||re.type==="array"&&"elementTypeDef"in re&&re.elementTypeDef.type==="record_element"}function G(re){return re.type==="array"&&re.elementTypeDef.type!=="record_element"}function te(re){return["left","right","full","inner"].includes(re)}function V(re){return["composite","table","sql_select","query_source","virtual","array","record"].includes(re.type)}function se(re){return"join"in re}function Ee(re){return rr(re)&&se(re)}function Ce(re){return["day","week","month","quarter","year"].includes(re)}function le(re){return Ce(re)||["hour","minute","second"].includes(re)}function ae(re){return le(re)||re==="day_of_week"||re==="day_of_year"}var Z;(function(re){re.Date="date",re.Timestamp="timestamp",re.Number="number",re.String="string"})(Z||(e.ValueType=Z={}));function ce(re){return typeof re!="string"}function ie(re){return!!((re.type==="reduce"||re.type==="project"||re.type==="partial")&&(re.extendSource&&re.extendSource.some(we=>we.type==="error")||re.queryFields.some(we=>we.type==="error")))}function xe(re){return re.fields.some(we=>we.type==="error")}function me(re){return re.type==="reduce"}function Te(re){return re.type==="partial"}function ye(re){return re.type==="project"}function be(re){return ye(re)||me(re)}function pe(re){return re.rows!==void 0}function Pe(re){return re.percent!==void 0}function qe(re){return re.enable!==void 0}function Ue(re){return re.type==="raw"}function pt(re){return re.type==="index"}function gt(re){return re.uniqueKeyRequirement===void 0&&re.analyticFunctionUse===void 0}function St(re){return"sql"in re}function Ot(re){return"type"in re&&(re.type==="sql_select"||re.type==="query_source")}function Qt(re){return re.type==="source_registry_reference"}function br(re){return{...re}}function rr(re){return re.type==="table"||re.type==="sql_select"||re.type==="query_source"||re.type==="query_result"||re.type==="finalize"||re.type==="nest_source"||re.type==="virtual"||re.type==="composite"}function Le(re){return re.type==="sql_select"||re.type==="query_source"}function We(re){return Ee(re)?!1:!!rr(re)}function wt(re){return re==="literal"}function He(...re){return re.length<=1&&re.every(we=>we==="literal")?"literal":re.every(we=>we==="constant"||we==="literal")?"constant":re.every(we=>we==="output"||we==="constant"||we==="literal")?"output":"input"}function de(re){return re.type==="string"||L(re.type)||re.type==="number"||re.type==="boolean"||re.type==="json"||re.type==="sql native"||re.type==="error"}function he(re){return re.as!==void 0?re.as:re.name}function ke(re){return re.type==="userType"}function Be(re){return Array.isArray(re)&&(re.length===0||typeof re[0]=="object"&&re[0]!==null&&!Array.isArray(re[0]))}function Ke(re){return re.type==="turtle"}function ot(re){return M(re.type)}function rt(re,we){return we.type==="string"}function Nt(re,we){return we.type==="number"}function Rt(re,we){return we.type==="boolean"}function Se(re,we){return we.type==="timestamp"}function it(re,we){return we.type==="date"}e.TD={isAtomic(re){return re!==void 0&&M(re.type)},isBasicAtomic(re){return re!==void 0&&de({type:re.type})},isString:re=>re?.type==="string",isNumber:re=>re?.type==="number",isBoolean:re=>re?.type==="boolean",isJSON:re=>re?.type==="json",isSQL:re=>re?.type==="sql native",isDate:re=>re?.type==="date",isTimestamp:re=>re?.type==="timestamp",isTimestamptz:re=>re?.type==="timestamptz",isAnyTimestamp(re){return re?.type==="timestamp"||re?.type==="timestamptz"},isTemporal(re){var we;const Ye=(we=re?.type)!==null&&we!==void 0?we:"";return L(Ye)},isError:re=>re?.type==="error",eq(re,we){if(re===void 0||we===void 0)return!1;function Ye(ze,mt){const Ct={},Tt=ze.fields||[],at=mt.fields||[];if(Tt.length!==at.length)return!1;for(const vt of Tt)if(vt.name)Ct[vt.name]=vt;else return!1;for(const vt of at)if(!e.TD.eq(Ct[vt.name],vt))return!1;return!0}return re.type==="array"&&we.type==="array"?re.elementTypeDef.type!==we.elementTypeDef.type?!1:re.elementTypeDef.type!=="record_element"&&we.elementTypeDef.type!=="record_element"?e.TD.eq(re.elementTypeDef,we.elementTypeDef):e.TD.isAtomic(re)&&e.TD.isAtomic(we)&&Ye(re,we):re.type==="record"&&we.type==="record"?e.TD.isAtomic(re)&&e.TD.isAtomic(we)&&Ye(re,we):re.type==="sql native"&&we.type==="sql native"?re.rawType!==void 0&&re.rawType===we.rawType:re.type===we.type}};function Ge(re,we){return re?we?{isCount:re.isCount||we.isCount}:re:we}})(ny)),ny}var cv;function ho(){if(cv)return Hr;cv=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.arg=t,Hr.spread=r,Hr.sql=s,Hr.constant=a,Hr.output=o,Hr.literal=c,Hr.variadicParam=d,Hr.param=l,Hr.makeParam=f,Hr.maxScalar=u,Hr.maxAggregate=p,Hr.anyExprType=h,Hr.maxUngroupedAggregate=m,Hr.maxAnalytic=x,Hr.minScalar=E,Hr.minAggregate=C,Hr.minAnalytic=g,Hr.overload=_,Hr.expandBlueprintMap=te,Hr.expandOverrideMapFromBase=Ee,Hr.def=le;const e=st();function t(ae){return{node:"function_parameter",name:ae}}function r(ae,Z=void 0,ce=void 0){return{node:"spread",e:ae,prefix:Z,suffix:ce}}function s(ae,...Z){const ce={node:"genericSQLExpr",kids:{args:[]},src:[]},ie=[...Z];let xe="";for(const me of ae){xe+=me;const Te=ie.shift();Te!==void 0&&(typeof Te=="string"?xe+=Te:(ce.src.push(xe),ce.kids.args.push(Te),xe=""))}return xe.length>0&&ce.src.push(xe),ce}function a(ae){return{...ae,evalSpace:"constant"}}function o(ae){return{...ae,evalSpace:"output"}}function c(ae){return{...ae,evalSpace:"literal"}}function d(ae,...Z){return{name:ae,isVariadic:!0,allowedTypes:Z}}function l(ae,...Z){return{name:ae,isVariadic:!1,allowedTypes:Z}}function f(ae,...Z){return{param:l(ae,...Z),arg:t(ae)}}function u(ae){return{...ae,expressionType:"scalar",evalSpace:"input"}}function p(ae){return{...ae,expressionType:"aggregate",evalSpace:"input"}}function h(ae){return{...ae,expressionType:void 0,evalSpace:"input"}}function m(ae){return{...ae,expressionType:"ungrouped_aggregate",evalSpace:"input"}}function x(ae){return{...ae,expressionType:"aggregate_analytic",evalSpace:"input"}}function E(ae){return{...ae,expressionType:"scalar",evalSpace:"input"}}function C(ae){return{...ae,expressionType:"aggregate",evalSpace:"input"}}function g(ae){return{...ae,expressionType:"scalar_analytic",evalSpace:"input"}}function _(ae,Z,ce,ie){return{returnType:ae,params:Z,e:ce,needsWindowOrderBy:ie?.needsWindowOrderBy,between:ie?.between,isSymmetric:ie?.isSymmetric,supportsOrderBy:ie?.supportsOrderBy,defaultOrderByArgIndex:ie?.defaultOrderByArgIndex,supportsLimit:ie?.supportsLimit}}function S(ae,Z=!0,ce=!0){if(!Z&&ae==="any")throw new Error("Return type cannot include any");if(typeof ae=="string")return{type:ae};if("array"in ae){const ie=Z?S(ae.array,!0):S(ae.array,!1);return ie.type==="record"?{type:"array",elementTypeDef:{type:"record_element"},fields:ie.fields}:{type:"array",elementTypeDef:ie}}else if("record"in ae){const ie=[];for(const[xe,me]of Object.entries(ae.record)){const Te=Z?S(me,!0):S(me,!1);e.TD.isAtomic(Te)&&ie.push((0,e.mkFieldDef)(Te,xe))}return{type:"record",fields:ie}}else if("generic"in ae){if(!ce)throw new Error("Cannot use generic");return{type:"generic",generic:ae.generic}}else if("sql_native"in ae)return{type:"sql native",rawType:ae.sql_native};throw new Error("Cannot figure out type")}function R(ae){if(ae==="any")throw new Error("Cannot return any type");if(typeof ae=="string")return E({type:ae});if("array"in ae)return h(S(ae,!1));if("record"in ae)return h(S(ae,!1));if("generic"in ae)return E(S(ae,!1));if("literal"in ae)return c(E(S(ae.literal,!1)));if("constant"in ae)return a(E(S(ae.constant,!1)));if("dimension"in ae)return E(S(ae.dimension,!1));if("measure"in ae)return C(S(ae.measure,!1));if("sql_native"in ae)return h({type:"sql native",rawType:ae.sql_native});if("calculation"in ae)return g(S(ae.calculation,!1));throw new Error("Invalid function blueprint")}function v(ae){return typeof ae=="string"||"array"in ae||"record"in ae||"generic"in ae||"literal"in ae||"constant"in ae||"dimension"in ae||"measure"in ae||"calculation"in ae||"sql_native"in ae}function b(ae){return v(ae)?[ae]:Array.isArray(ae)?ae:v(ae.variadic)?[ae.variadic]:ae.variadic}function T(ae){if(typeof ae=="string")return h({type:ae});if("generic"in ae)return h(S(ae));if("literal"in ae)return c(u(S(ae.literal)));if("constant"in ae)return a(u(S(ae.constant)));if("dimension"in ae)return u(S(ae.dimension));if("measure"in ae)return p(S(ae.measure));if("array"in ae)return h(S(ae,!1));if("record"in ae)return h(S(ae,!1));if("sql_native"in ae)return h({type:"sql native",rawType:ae.sql_native});if("calculation"in ae)return x(S(ae.calculation));throw new Error("Invalid function blueprint")}function N(ae){return ae.map(Z=>T(Z))}function k(ae){return typeof ae!="string"&&"variadic"in ae}function L(ae,Z){return{name:ae,allowedTypes:N(b(Z)),isVariadic:k(Z)}}function F(ae){return Object.entries(ae).map(ce=>L(ce[0],ce[1]))}function M(ae){const Z=[],ce=[];let ie=ae;for(;ie.length>0;){const me=ie.indexOf("${");if(me===-1){Z.push(ie);break}const Te=ie.slice(0,me);ie=ie.slice(me);const ye=ie.indexOf("}");if(ye===-1){Z.push(Te+ie);break}const be=ie.slice(2,ye);ie=ie.slice(ye+1);const pe=be.startsWith("..."),Pe=be.endsWith(":"),qe=pe?be.slice(3):Pe?be.slice(0,-1):be,Ue={node:"function_parameter",name:qe};Z.push(Te),pe?ce.push({node:"spread",e:Ue,prefix:"",suffix:""}):Pe&&qe==="order_by"?ce.push({node:"aggregate_order_by"}):Pe&&qe==="limit"?ce.push({node:"aggregate_limit"}):ce.push(Ue)}return{node:"genericSQLExpr",kids:{args:ce},src:Z}}function q(ae,Z){return k(Z)?{node:"spread",e:{node:"function_parameter",name:ae},prefix:"",suffix:""}:{node:"function_parameter",name:ae}}function B(ae,Z){const ce=Object.entries(Z.takes),ie=ce.length>0?ce.length-1:0;return{node:"genericSQLExpr",kids:{args:ce.map(xe=>q(xe[0],xe[1]))},src:[`${ae}(`,...Array(ie).fill(","),")"]}}function P(ae){return"sql"in ae.impl?M(ae.impl.sql):"expr"in ae.impl?ae.impl.expr:B(ae.impl.function,ae)}function Y(ae){return{e:P(ae),between:ae.impl.between,needsWindowOrderBy:ae.impl.needsWindowOrderBy,defaultOrderByArgIndex:ae.impl.defaultOrderByArgIndex}}function ee(ae){if(ae!==void 0)return Object.entries(ae).map(([Z,ce])=>({name:Z,acceptibleTypes:ce.map(ie=>S(ie,!0,!1))}))}function oe(ae){return{returnType:R(ae.returns),params:F(ae.takes),isSymmetric:ae.isSymmetric,supportsOrderBy:ae.supportsOrderBy,supportsLimit:ae.supportsLimit,genericTypes:ee(ae.generic),...Y(ae)}}function I(ae){return"takes"in ae&&"returns"in ae&&"impl"in ae}function X(ae){return"function"in ae||"sql"in ae||"expr"in ae}function G(ae){return I(ae)?[oe(ae)]:Object.values(ae).flatMap(Z=>oe(Z))}function te(ae){const Z={};for(const ce in ae)Z[ce]=G(ae[ce]);return Z}function V(ae,Z){return[oe({...ae,impl:Z})]}function se(ae,Z,ce){if(X(ce)){if(!I(Z))throw new Error(`Malformed function override: ${ae}. Attempt to override multiple overloads with a single overload (missing: ${Object.keys(Z)})`);return V(Z,ce)}else{if(I(Z))throw new Error(`Malformed function override: ${ae}. Attempt to override a single overload with multiple overloads (extraneous: ${Object.keys(ce)})`);return Object.entries(ce).flatMap(([ie,xe])=>{const me=Z[ie];if(me===void 0)throw new Error(`Malformed function override: ${ae}. No overload named ${ie}`);return V(me,xe)})}}function Ee(ae,Z){const ce={};for(const ie in Z){if(!(ie in ae))throw new Error(`Malformed function override: ${ie}. No such function in Malloy standard`);ce[ie]=se(ie,ae[ie],Z[ie])}return ce}function*Ce(ae){if(typeof ae!="string"){if("generic"in ae)yield ae;else if("record"in ae)for(const Z of Object.values(ae.record))yield*Ce(Z);else for(const Z of["array","literal","measure","dimension","measure","constant","cacluation"])if(Z in ae){yield*Ce(ae[Z]);return}}}function le(ae,Z,ce,ie={}){let xe=!1;const me={};for(const ye of Object.values(Z))for(const be of Ce(ye))me[be.generic]=["any"],xe=!0;xe&&ie.generic===void 0&&(ie.generic=me);const Te={takes:Z,returns:ce,impl:{function:ae.toUpperCase()},...ie};return{[ae]:Te}}return Hr}var iy={},dv;function za(){return dv||(dv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dialect=e.dayIndex=e.MAX_DECIMAL38=e.MIN_DECIMAL38=e.MAX_INT128=e.MIN_INT128=e.MAX_INT64=e.MIN_INT64=e.MAX_INT32=e.MIN_INT32=void 0,e.inDays=s,e.qtz=a;const t=st();e.MIN_INT32=-2147483648,e.MAX_INT32=2147483647,e.MIN_INT64=BigInt("-9223372036854775808"),e.MAX_INT64=BigInt("9223372036854775807"),e.MIN_INT128=BigInt("-170141183460469231731687303715884105728"),e.MAX_INT128=BigInt("170141183460469231731687303715884105727"),e.MIN_DECIMAL38=BigInt("-99999999999999999999999999999999999999"),e.MAX_DECIMAL38=BigInt("99999999999999999999999999999999999999");const r=["microsecond","millisecond","second","minute","hour","day","week","month","quarter","year"];e.dayIndex=r.indexOf("day");function s(c){return r.indexOf(c)>=e.dayIndex}function a(c){const d=c.queryTimezone;if(!(d===void 0||d===c.systemTimezone))return d}class o{constructor(){this.cantPartitionWindowFunctionsOnExpressions=!1,this.supportsPipelinesInViews=!0,this.supportsArraysInData=!0,this.hasTimestamptz=!1,this.readsNestedData=!0,this.orderByClause="ordinal",this.nullMatchesFunctionSignature=!0,this.supportsSelectReplace=!0,this.supportsBigIntPrecision=!0,this.supportsComplexFilteredSources=!0,this.supportsTempTables=!0,this.maxIdentifierLength=128,this.hasModOperator=!0,this.supportsLeftJoinUnnest=!0,this.requiresExplicitUnnestOrdering=!1,this.hasLateralColumnAliasInSelect=!1,this.supportsCountApprox=!1,this.supportsHyperLogLog=!1,this.supportsFullJoin=!0,this.nestedArrays=!0,this.compoundObjectInSchema=!0,this.booleanType="supported",this.likeEscape=!0,this.integerTypeMappings=[{min:BigInt(e.MIN_INT32),max:BigInt(e.MAX_INT32),numberType:"integer"},{min:e.MIN_INT64,max:e.MAX_INT64,numberType:"bigint"}]}sqlLateralJoinBag(d){throw this.cantPartitionWindowFunctionsOnExpressions?new Error(`Dialect '${this.name}' sets cantPartitionWindowFunctionsOnExpressions but does not implement sqlLateralJoinBag`):new Error("Internal error: sqlLateralJoinBag called but cantPartitionWindowFunctionsOnExpressions is false")}literalNumberType(d){if(!/^-?\d+$/.test(d))return{type:"number",numberType:"float"};const f=BigInt(d);for(const u of this.integerTypeMappings)if(f>=u.min&&f<=u.max)return{type:"number",numberType:u.numberType};return{type:"number",numberType:"bigint"}}static makeTimeLiteralNode(d,l,f,u,p){var h;const m=(h=d?.hasTimestamptz)!==null&&h!==void 0?h:!1;return p==="date"?{node:"dateLiteral",literal:l,typeDef:{type:"date",timeframe:u!==void 0&&(0,t.isDateUnit)(u)?u:void 0}}:f&&m?{node:"timestamptzLiteral",literal:l,typeDef:{type:"timestamptz",timeframe:u},timezone:f}:f?{node:"timestampLiteral",literal:l,typeDef:{type:"timestamp",timeframe:u},timezone:f}:{node:"timestampLiteral",literal:l,typeDef:{type:"timestamp",timeframe:u}}}sqlTurtleOrderByClause(d){const l=d.map(f=>` ${f.field} ${f.dir.toUpperCase()}`);return" "+this.sqlOrderBy(l,"turtle")}sqlFinalStage(d,l){throw new Error("Dialect has no final Stage but called Anyway")}sqlDateToString(d){return this.castToString(`DATE(${d})`)}sqlLiteralNumber(d){return d}ignoreInProject(d){return!1}needsCivilTimeComputation(d,l,f,u){const p=["day","week","month","quarter","year"],h=l!==void 0&&p.includes(l),m=f!==void 0&&p.includes(f),x=a(u);return{needed:t.TD.isAnyTimestamp(d)&&(h||m)&&x!==void 0,tz:x}}sqlTruncAndOffset(d,l,f,u){if(t.TD.isAnyTimestamp(d.typeDef)){const{needed:h,tz:m}=this.needsCivilTimeComputation(d.typeDef,f,u?.unit,l);if(h&&m){const x=this.sqlConvertToCivilTime(d.sql,m,d.typeDef);let E=x.sql;const C=x.typeDef;return f&&(E=this.sqlTruncate(E,f,C,!0,m)),u&&(E=this.sqlOffsetTime(E,u.op,u.magnitude,u.unit,C,!0,m)),this.sqlConvertFromCivilTime(E,m,d.typeDef)}}let p=d.sql;return f&&(p=this.sqlTruncate(p,f,d.typeDef,!1,a(l))),u&&(p=this.sqlOffsetTime(p,u.op,u.magnitude,u.unit,d.typeDef,!1,a(l))),p}exprToSQL(d,l){switch(l.node){case"now":return this.sqlNowExpr();case"timeDiff":return this.sqlMeasureTimeExpr(l);case"delta":{const f=l.kids.base;return f.node==="trunc"?this.sqlTruncAndOffset(f.e,d,f.units,{op:l.op,magnitude:l.kids.delta.sql,unit:l.units}):this.sqlTruncAndOffset(f,d,void 0,{op:l.op,magnitude:l.kids.delta.sql,unit:l.units})}case"trunc":return this.sqlTruncAndOffset(l.e,d,l.units);case"extract":return this.sqlTimeExtractExpr(d,l);case"cast":return this.sqlCast(d,l);case"regexpMatch":return this.sqlRegexpMatch(l);case"/":return this.divisionIsInteger?`${l.kids.left.sql}*1.0/${l.kids.right.sql}`:void 0;case"%":return this.hasModOperator?void 0:`MOD(${l.kids.left.sql},${l.kids.right.sql})`;case"dateLiteral":return this.sqlDateLiteral(d,l.literal);case"timestampLiteral":return this.sqlTimestampLiteral(d,l.literal,l.timezone);case"timestamptzLiteral":return this.sqlTimestamptzLiteral(d,l.literal,l.timezone);case"stringLiteral":return this.sqlLiteralString(l.literal);case"numberLiteral":return this.sqlLiteralNumber(l.literal);case"regexpLiteral":return this.sqlLiteralRegexp(l.literal);case"recordLiteral":return this.sqlLiteralRecord(l);case"arrayLiteral":return this.sqlLiteralArray(l)}}sqlSumDistinct(d,l,f){return"sqlSumDistinct called but not implemented"}sqlAggDistinct(d,l,f){return"sqlAggDistinct called but not implemented"}sqlSampleTable(d,l){if(l!==void 0)throw new Error(`Sampling is not supported on dialect ${this.name}.`);return d}sqlOrderBy(d,l){return`ORDER BY ${d.join(",")}`}sqlTzStr(d){return`"${d.queryTimezone}"`}sqlMakeUnnestKey(d,l){return this.concat(d,"'x'",l)}sqlStringAggDistinct(d,l,f){const u="__STRING_AGG_KS__",p="__STRING_AGG_KE__";return`REGEXP_REPLACE(
|
|
1
|
+
import{L as uO,r as D,j as w,N as gr,R as v4,Q as _4,U as oo}from"./index-BJUsHnGO.js";import{r as S4,a as $2,b as A4,c as b4,d as R4,e as T4,f as w4,g as D4,h as L4,j as q2,k as j2,l as O0,m as Qh,n as O4,o as lO,p as N4,q as F4,s as I4,t as D3,u as L3,v as O3,w as At}from"./index--80Q7qw1.js";import{a as S1}from"./index.umd-Cf-wqh-R.js";var Ca={},ry={},Hr={},ny={},lv;function st(){return lv||(lv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TD=e.ValueType=void 0,e.safeRecordGet=r,e.mkSafeRecord=s,e.exprHasKids=a,e.exprHasE=o,e.exprIsLeaf=c,e.isAsymmetricExpr=d,e.mkTemporal=f,e.isRawCast=u,e.isFilterExprType=p,e.isTimeLiteral=h,e.isParameterType=m,e.paramHasValue=x,e.expressionIsScalar=E,e.expressionIsAggregate=C,e.expressionIsUngroupedAggregate=g,e.expressionInvolvesAggregate=_,e.expressionIsCalculation=S,e.expressionIsAnalytic=R,e.isExpressionTypeLEQ=b,e.maxExpressionType=T,e.maxOfExpressionTypes=N,e.hasExpression=k,e.isTemporalType=L,e.isBasicAtomicType=F,e.isAtomicFieldType=M,e.canOrderBy=q,e.fieldIsIntrinsic=B,e.mkFieldDef=P,e.mkArrayDef=Y,e.mkArrayTypeDef=ee,e.isRepeatedRecordFunctionParam=oe,e.isRepeatedRecord=I,e.isRecordOrRepeatedRecord=X,e.isBasicArray=G,e.isMatrixOperation=te,e.isJoinable=V,e.isJoined=se,e.isJoinedSource=Ee,e.isDateUnit=Ce,e.isTimestampUnit=le,e.isExtractUnit=ae,e.refIsStructDef=ce,e.segmentHasErrors=ie,e.structHasErrors=xe,e.isReduceSegment=me,e.isPartialSegment=Te,e.isProjectSegment=ye,e.isQuerySegment=be,e.isSamplingRows=pe,e.isSamplingPercent=Pe,e.isSamplingEnable=qe,e.isRawSegment=Ue,e.isIndexSegment=pt,e.bareFieldUsage=gt,e.isSegmentSQL=St,e.isSegmentSource=Ot,e.isSourceRegistryReference=Qt,e.sourceBase=br,e.isSourceDef=rr,e.isPersistableSourceDef=Le,e.isBaseTable=We,e.isLiteral=wt,e.mergeEvalSpaces=He,e.isBasicAtomic=de,e.getIdentifier=he,e.isUserTypeDef=ke,e.isCompoundArrayData=Be,e.isTurtle=Ke,e.isAtomic=ot,e.isValueString=rt,e.isValueNumber=Nt,e.isValueBoolean=Rt,e.isValueTimestamp=Se,e.isValueDate=it,e.mergeUniqueKeyRequirement=Ge;const t=Object.prototype.hasOwnProperty;function r(re,we){return t.call(re,we)?re[we]:void 0}function s(){return Object.create(null)}function a(re){return"kids"in re}function o(re){return"e"in re}function c(re){return!(a(re)||o(re))}function d(re){return re.node==="aggregate"&&["sum","avg","count","distinct"].includes(re.function)}function l(re){return re.node!=="arrayLiteral"&&re.node!=="recordLiteral"}function f(re,we){if(!("typeDef"in re)){const Ye=typeof we=="string"?{type:we}:we;if(l(re))return{...re,typeDef:{...Ye}}}return re}function u(re){return"dstSQLType"in re}function p(re){return["string","number","boolean","date","timestamp","timestamptz"].includes(re)}function h(re){return re.node==="dateLiteral"||re.node==="timestampLiteral"||re.node==="timestamptzLiteral"}function m(re){return["string","number","boolean","date","timestamp","timestamptz","filter expression","error"].includes(re)}function x(re){return re.value!==null}function E(re){return re===void 0||re==="scalar"}function C(re){return re==="aggregate"||re==="ungrouped_aggregate"}function g(re){return re==="ungrouped_aggregate"}function _(re){return re==="aggregate"||re==="ungrouped_aggregate"||re==="aggregate_analytic"}function S(re){return re==="aggregate"||re==="scalar_analytic"||re==="aggregate_analytic"||re==="ungrouped_aggregate"}function R(re){return re==="aggregate_analytic"||re==="scalar_analytic"}function v(re){return{scalar:0,aggregate:1,ungrouped_aggregate:2,scalar_analytic:2,aggregate_analytic:3}[re]}function b(re,we){return re===we||v(re)<v(we)}function T(re,we){let Ye="scalar";return(re==="aggregate"||we==="aggregate")&&(Ye="aggregate"),(re==="ungrouped_aggregate"||we==="ungrouped_aggregate")&&(Ye="ungrouped_aggregate"),(re==="scalar_analytic"||we==="scalar_analytic")&&(Ye="scalar_analytic"),(re==="aggregate_analytic"||we==="aggregate_analytic")&&(Ye="aggregate_analytic"),(re==="scalar_analytic"&&we==="aggregate"||re==="aggregate"&&we==="scalar_analytic")&&(Ye="aggregate_analytic"),Ye}function N(re){return re.reduce(T,"scalar")}function k(re){return"e"in re&&re.e!==void 0}function L(re){return re==="date"||re==="timestamp"||re==="timestamptz"}function F(re){return["string","number","date","timestamp","timestamptz","boolean","json","sql native","error"].includes(re)}function M(re){return F(re)||re==="record"||re==="array"}function q(re){return["string","number","date","boolean","date","timestamp","timestamptz"].includes(re)}function B(re){return M(re.type)&&!k(re)}function P(re,we){if(G(re))return Y(re.elementTypeDef,we);if(I(re)){const{type:ze,fields:mt,elementTypeDef:Ct}=re;return{type:ze,fields:mt,elementTypeDef:Ct,join:"many",name:we}}if(re.type==="record"){const{type:ze,fields:mt}=re;return{type:ze,fields:mt,join:"one",name:we}}const Ye={name:we,type:re.type};switch(re.type){case"sql native":return{...Ye,rawType:re.rawType};case"number":{const ze=re.numberType;return ze?{...Ye,numberType:ze}:Ye}case"date":{const ze=re.timeframe;return ze?{name:we,type:"date",timeframe:ze}:Ye}case"timestamp":{const ze={name:we,type:"timestamp"};return re.timeframe&&(ze.timeframe=re.timeframe),ze}case"timestamptz":{const ze={name:we,type:"timestamptz"};return re.timeframe&&(ze.timeframe=re.timeframe),ze}}return Ye}function Y(re,we){if(re.type==="record")return{type:"array",join:"many",name:we,elementTypeDef:{type:"record_element"},fields:re.fields};const Ye=P(re,"value");return{type:"array",join:"many",name:we,elementTypeDef:re,fields:[Ye,{...Ye,name:"each",e:{node:"field",path:["value"]}}]}}function ee(re){return re.type==="record"?{type:"array",elementTypeDef:{type:"record_element"},fields:re.fields}:{type:"array",elementTypeDef:re}}function oe(re){return re.type==="array"&&re.elementTypeDef.type==="record_element"}function I(re){return re.type==="array"&&re.elementTypeDef.type==="record_element"}function X(re){return re.type==="record"||re.type==="array"&&"elementTypeDef"in re&&re.elementTypeDef.type==="record_element"}function G(re){return re.type==="array"&&re.elementTypeDef.type!=="record_element"}function te(re){return["left","right","full","inner"].includes(re)}function V(re){return["composite","table","sql_select","query_source","virtual","array","record"].includes(re.type)}function se(re){return"join"in re}function Ee(re){return rr(re)&&se(re)}function Ce(re){return["day","week","month","quarter","year"].includes(re)}function le(re){return Ce(re)||["hour","minute","second"].includes(re)}function ae(re){return le(re)||re==="day_of_week"||re==="day_of_year"}var Z;(function(re){re.Date="date",re.Timestamp="timestamp",re.Number="number",re.String="string"})(Z||(e.ValueType=Z={}));function ce(re){return typeof re!="string"}function ie(re){return!!((re.type==="reduce"||re.type==="project"||re.type==="partial")&&(re.extendSource&&re.extendSource.some(we=>we.type==="error")||re.queryFields.some(we=>we.type==="error")))}function xe(re){return re.fields.some(we=>we.type==="error")}function me(re){return re.type==="reduce"}function Te(re){return re.type==="partial"}function ye(re){return re.type==="project"}function be(re){return ye(re)||me(re)}function pe(re){return re.rows!==void 0}function Pe(re){return re.percent!==void 0}function qe(re){return re.enable!==void 0}function Ue(re){return re.type==="raw"}function pt(re){return re.type==="index"}function gt(re){return re.uniqueKeyRequirement===void 0&&re.analyticFunctionUse===void 0}function St(re){return"sql"in re}function Ot(re){return"type"in re&&(re.type==="sql_select"||re.type==="query_source")}function Qt(re){return re.type==="source_registry_reference"}function br(re){return{...re}}function rr(re){return re.type==="table"||re.type==="sql_select"||re.type==="query_source"||re.type==="query_result"||re.type==="finalize"||re.type==="nest_source"||re.type==="virtual"||re.type==="composite"}function Le(re){return re.type==="sql_select"||re.type==="query_source"}function We(re){return Ee(re)?!1:!!rr(re)}function wt(re){return re==="literal"}function He(...re){return re.length<=1&&re.every(we=>we==="literal")?"literal":re.every(we=>we==="constant"||we==="literal")?"constant":re.every(we=>we==="output"||we==="constant"||we==="literal")?"output":"input"}function de(re){return re.type==="string"||L(re.type)||re.type==="number"||re.type==="boolean"||re.type==="json"||re.type==="sql native"||re.type==="error"}function he(re){return re.as!==void 0?re.as:re.name}function ke(re){return re.type==="userType"}function Be(re){return Array.isArray(re)&&(re.length===0||typeof re[0]=="object"&&re[0]!==null&&!Array.isArray(re[0]))}function Ke(re){return re.type==="turtle"}function ot(re){return M(re.type)}function rt(re,we){return we.type==="string"}function Nt(re,we){return we.type==="number"}function Rt(re,we){return we.type==="boolean"}function Se(re,we){return we.type==="timestamp"}function it(re,we){return we.type==="date"}e.TD={isAtomic(re){return re!==void 0&&M(re.type)},isBasicAtomic(re){return re!==void 0&&de({type:re.type})},isString:re=>re?.type==="string",isNumber:re=>re?.type==="number",isBoolean:re=>re?.type==="boolean",isJSON:re=>re?.type==="json",isSQL:re=>re?.type==="sql native",isDate:re=>re?.type==="date",isTimestamp:re=>re?.type==="timestamp",isTimestamptz:re=>re?.type==="timestamptz",isAnyTimestamp(re){return re?.type==="timestamp"||re?.type==="timestamptz"},isTemporal(re){var we;const Ye=(we=re?.type)!==null&&we!==void 0?we:"";return L(Ye)},isError:re=>re?.type==="error",eq(re,we){if(re===void 0||we===void 0)return!1;function Ye(ze,mt){const Ct={},Tt=ze.fields||[],at=mt.fields||[];if(Tt.length!==at.length)return!1;for(const vt of Tt)if(vt.name)Ct[vt.name]=vt;else return!1;for(const vt of at)if(!e.TD.eq(Ct[vt.name],vt))return!1;return!0}return re.type==="array"&&we.type==="array"?re.elementTypeDef.type!==we.elementTypeDef.type?!1:re.elementTypeDef.type!=="record_element"&&we.elementTypeDef.type!=="record_element"?e.TD.eq(re.elementTypeDef,we.elementTypeDef):e.TD.isAtomic(re)&&e.TD.isAtomic(we)&&Ye(re,we):re.type==="record"&&we.type==="record"?e.TD.isAtomic(re)&&e.TD.isAtomic(we)&&Ye(re,we):re.type==="sql native"&&we.type==="sql native"?re.rawType!==void 0&&re.rawType===we.rawType:re.type===we.type}};function Ge(re,we){return re?we?{isCount:re.isCount||we.isCount}:re:we}})(ny)),ny}var cv;function ho(){if(cv)return Hr;cv=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.arg=t,Hr.spread=r,Hr.sql=s,Hr.constant=a,Hr.output=o,Hr.literal=c,Hr.variadicParam=d,Hr.param=l,Hr.makeParam=f,Hr.maxScalar=u,Hr.maxAggregate=p,Hr.anyExprType=h,Hr.maxUngroupedAggregate=m,Hr.maxAnalytic=x,Hr.minScalar=E,Hr.minAggregate=C,Hr.minAnalytic=g,Hr.overload=_,Hr.expandBlueprintMap=te,Hr.expandOverrideMapFromBase=Ee,Hr.def=le;const e=st();function t(ae){return{node:"function_parameter",name:ae}}function r(ae,Z=void 0,ce=void 0){return{node:"spread",e:ae,prefix:Z,suffix:ce}}function s(ae,...Z){const ce={node:"genericSQLExpr",kids:{args:[]},src:[]},ie=[...Z];let xe="";for(const me of ae){xe+=me;const Te=ie.shift();Te!==void 0&&(typeof Te=="string"?xe+=Te:(ce.src.push(xe),ce.kids.args.push(Te),xe=""))}return xe.length>0&&ce.src.push(xe),ce}function a(ae){return{...ae,evalSpace:"constant"}}function o(ae){return{...ae,evalSpace:"output"}}function c(ae){return{...ae,evalSpace:"literal"}}function d(ae,...Z){return{name:ae,isVariadic:!0,allowedTypes:Z}}function l(ae,...Z){return{name:ae,isVariadic:!1,allowedTypes:Z}}function f(ae,...Z){return{param:l(ae,...Z),arg:t(ae)}}function u(ae){return{...ae,expressionType:"scalar",evalSpace:"input"}}function p(ae){return{...ae,expressionType:"aggregate",evalSpace:"input"}}function h(ae){return{...ae,expressionType:void 0,evalSpace:"input"}}function m(ae){return{...ae,expressionType:"ungrouped_aggregate",evalSpace:"input"}}function x(ae){return{...ae,expressionType:"aggregate_analytic",evalSpace:"input"}}function E(ae){return{...ae,expressionType:"scalar",evalSpace:"input"}}function C(ae){return{...ae,expressionType:"aggregate",evalSpace:"input"}}function g(ae){return{...ae,expressionType:"scalar_analytic",evalSpace:"input"}}function _(ae,Z,ce,ie){return{returnType:ae,params:Z,e:ce,needsWindowOrderBy:ie?.needsWindowOrderBy,between:ie?.between,isSymmetric:ie?.isSymmetric,supportsOrderBy:ie?.supportsOrderBy,defaultOrderByArgIndex:ie?.defaultOrderByArgIndex,supportsLimit:ie?.supportsLimit}}function S(ae,Z=!0,ce=!0){if(!Z&&ae==="any")throw new Error("Return type cannot include any");if(typeof ae=="string")return{type:ae};if("array"in ae){const ie=Z?S(ae.array,!0):S(ae.array,!1);return ie.type==="record"?{type:"array",elementTypeDef:{type:"record_element"},fields:ie.fields}:{type:"array",elementTypeDef:ie}}else if("record"in ae){const ie=[];for(const[xe,me]of Object.entries(ae.record)){const Te=Z?S(me,!0):S(me,!1);e.TD.isAtomic(Te)&&ie.push((0,e.mkFieldDef)(Te,xe))}return{type:"record",fields:ie}}else if("generic"in ae){if(!ce)throw new Error("Cannot use generic");return{type:"generic",generic:ae.generic}}else if("sql_native"in ae)return{type:"sql native",rawType:ae.sql_native};throw new Error("Cannot figure out type")}function R(ae){if(ae==="any")throw new Error("Cannot return any type");if(typeof ae=="string")return E({type:ae});if("array"in ae)return h(S(ae,!1));if("record"in ae)return h(S(ae,!1));if("generic"in ae)return E(S(ae,!1));if("literal"in ae)return c(E(S(ae.literal,!1)));if("constant"in ae)return a(E(S(ae.constant,!1)));if("dimension"in ae)return E(S(ae.dimension,!1));if("measure"in ae)return C(S(ae.measure,!1));if("sql_native"in ae)return h({type:"sql native",rawType:ae.sql_native});if("calculation"in ae)return g(S(ae.calculation,!1));throw new Error("Invalid function blueprint")}function v(ae){return typeof ae=="string"||"array"in ae||"record"in ae||"generic"in ae||"literal"in ae||"constant"in ae||"dimension"in ae||"measure"in ae||"calculation"in ae||"sql_native"in ae}function b(ae){return v(ae)?[ae]:Array.isArray(ae)?ae:v(ae.variadic)?[ae.variadic]:ae.variadic}function T(ae){if(typeof ae=="string")return h({type:ae});if("generic"in ae)return h(S(ae));if("literal"in ae)return c(u(S(ae.literal)));if("constant"in ae)return a(u(S(ae.constant)));if("dimension"in ae)return u(S(ae.dimension));if("measure"in ae)return p(S(ae.measure));if("array"in ae)return h(S(ae,!1));if("record"in ae)return h(S(ae,!1));if("sql_native"in ae)return h({type:"sql native",rawType:ae.sql_native});if("calculation"in ae)return x(S(ae.calculation));throw new Error("Invalid function blueprint")}function N(ae){return ae.map(Z=>T(Z))}function k(ae){return typeof ae!="string"&&"variadic"in ae}function L(ae,Z){return{name:ae,allowedTypes:N(b(Z)),isVariadic:k(Z)}}function F(ae){return Object.entries(ae).map(ce=>L(ce[0],ce[1]))}function M(ae){const Z=[],ce=[];let ie=ae;for(;ie.length>0;){const me=ie.indexOf("${");if(me===-1){Z.push(ie);break}const Te=ie.slice(0,me);ie=ie.slice(me);const ye=ie.indexOf("}");if(ye===-1){Z.push(Te+ie);break}const be=ie.slice(2,ye);ie=ie.slice(ye+1);const pe=be.startsWith("..."),Pe=be.endsWith(":"),qe=pe?be.slice(3):Pe?be.slice(0,-1):be,Ue={node:"function_parameter",name:qe};Z.push(Te),pe?ce.push({node:"spread",e:Ue,prefix:"",suffix:""}):Pe&&qe==="order_by"?ce.push({node:"aggregate_order_by"}):Pe&&qe==="limit"?ce.push({node:"aggregate_limit"}):ce.push(Ue)}return{node:"genericSQLExpr",kids:{args:ce},src:Z}}function q(ae,Z){return k(Z)?{node:"spread",e:{node:"function_parameter",name:ae},prefix:"",suffix:""}:{node:"function_parameter",name:ae}}function B(ae,Z){const ce=Object.entries(Z.takes),ie=ce.length>0?ce.length-1:0;return{node:"genericSQLExpr",kids:{args:ce.map(xe=>q(xe[0],xe[1]))},src:[`${ae}(`,...Array(ie).fill(","),")"]}}function P(ae){return"sql"in ae.impl?M(ae.impl.sql):"expr"in ae.impl?ae.impl.expr:B(ae.impl.function,ae)}function Y(ae){return{e:P(ae),between:ae.impl.between,needsWindowOrderBy:ae.impl.needsWindowOrderBy,defaultOrderByArgIndex:ae.impl.defaultOrderByArgIndex}}function ee(ae){if(ae!==void 0)return Object.entries(ae).map(([Z,ce])=>({name:Z,acceptibleTypes:ce.map(ie=>S(ie,!0,!1))}))}function oe(ae){return{returnType:R(ae.returns),params:F(ae.takes),isSymmetric:ae.isSymmetric,supportsOrderBy:ae.supportsOrderBy,supportsLimit:ae.supportsLimit,genericTypes:ee(ae.generic),...Y(ae)}}function I(ae){return"takes"in ae&&"returns"in ae&&"impl"in ae}function X(ae){return"function"in ae||"sql"in ae||"expr"in ae}function G(ae){return I(ae)?[oe(ae)]:Object.values(ae).flatMap(Z=>oe(Z))}function te(ae){const Z={};for(const ce in ae)Z[ce]=G(ae[ce]);return Z}function V(ae,Z){return[oe({...ae,impl:Z})]}function se(ae,Z,ce){if(X(ce)){if(!I(Z))throw new Error(`Malformed function override: ${ae}. Attempt to override multiple overloads with a single overload (missing: ${Object.keys(Z)})`);return V(Z,ce)}else{if(I(Z))throw new Error(`Malformed function override: ${ae}. Attempt to override a single overload with multiple overloads (extraneous: ${Object.keys(ce)})`);return Object.entries(ce).flatMap(([ie,xe])=>{const me=Z[ie];if(me===void 0)throw new Error(`Malformed function override: ${ae}. No overload named ${ie}`);return V(me,xe)})}}function Ee(ae,Z){const ce={};for(const ie in Z){if(!(ie in ae))throw new Error(`Malformed function override: ${ie}. No such function in Malloy standard`);ce[ie]=se(ie,ae[ie],Z[ie])}return ce}function*Ce(ae){if(typeof ae!="string"){if("generic"in ae)yield ae;else if("record"in ae)for(const Z of Object.values(ae.record))yield*Ce(Z);else for(const Z of["array","literal","measure","dimension","measure","constant","cacluation"])if(Z in ae){yield*Ce(ae[Z]);return}}}function le(ae,Z,ce,ie={}){let xe=!1;const me={};for(const ye of Object.values(Z))for(const be of Ce(ye))me[be.generic]=["any"],xe=!0;xe&&ie.generic===void 0&&(ie.generic=me);const Te={takes:Z,returns:ce,impl:{function:ae.toUpperCase()},...ie};return{[ae]:Te}}return Hr}var iy={},dv;function za(){return dv||(dv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Dialect=e.dayIndex=e.MAX_DECIMAL38=e.MIN_DECIMAL38=e.MAX_INT128=e.MIN_INT128=e.MAX_INT64=e.MIN_INT64=e.MAX_INT32=e.MIN_INT32=void 0,e.inDays=s,e.qtz=a;const t=st();e.MIN_INT32=-2147483648,e.MAX_INT32=2147483647,e.MIN_INT64=BigInt("-9223372036854775808"),e.MAX_INT64=BigInt("9223372036854775807"),e.MIN_INT128=BigInt("-170141183460469231731687303715884105728"),e.MAX_INT128=BigInt("170141183460469231731687303715884105727"),e.MIN_DECIMAL38=BigInt("-99999999999999999999999999999999999999"),e.MAX_DECIMAL38=BigInt("99999999999999999999999999999999999999");const r=["microsecond","millisecond","second","minute","hour","day","week","month","quarter","year"];e.dayIndex=r.indexOf("day");function s(c){return r.indexOf(c)>=e.dayIndex}function a(c){const d=c.queryTimezone;if(!(d===void 0||d===c.systemTimezone))return d}class o{constructor(){this.cantPartitionWindowFunctionsOnExpressions=!1,this.supportsPipelinesInViews=!0,this.supportsArraysInData=!0,this.hasTimestamptz=!1,this.readsNestedData=!0,this.orderByClause="ordinal",this.nullMatchesFunctionSignature=!0,this.supportsSelectReplace=!0,this.supportsBigIntPrecision=!0,this.supportsComplexFilteredSources=!0,this.supportsTempTables=!0,this.maxIdentifierLength=128,this.hasModOperator=!0,this.supportsLeftJoinUnnest=!0,this.requiresExplicitUnnestOrdering=!1,this.hasLateralColumnAliasInSelect=!1,this.supportsCountApprox=!1,this.supportsHyperLogLog=!1,this.supportsFullJoin=!0,this.nestedArrays=!0,this.compoundObjectInSchema=!0,this.booleanType="supported",this.likeEscape=!0,this.integerTypeMappings=[{min:BigInt(e.MIN_INT32),max:BigInt(e.MAX_INT32),numberType:"integer"},{min:e.MIN_INT64,max:e.MAX_INT64,numberType:"bigint"}]}sqlLateralJoinBag(d){throw this.cantPartitionWindowFunctionsOnExpressions?new Error(`Dialect '${this.name}' sets cantPartitionWindowFunctionsOnExpressions but does not implement sqlLateralJoinBag`):new Error("Internal error: sqlLateralJoinBag called but cantPartitionWindowFunctionsOnExpressions is false")}literalNumberType(d){if(!/^-?\d+$/.test(d))return{type:"number",numberType:"float"};const f=BigInt(d);for(const u of this.integerTypeMappings)if(f>=u.min&&f<=u.max)return{type:"number",numberType:u.numberType};return{type:"number",numberType:"bigint"}}static makeTimeLiteralNode(d,l,f,u,p){var h;const m=(h=d?.hasTimestamptz)!==null&&h!==void 0?h:!1;return p==="date"?{node:"dateLiteral",literal:l,typeDef:{type:"date",timeframe:u!==void 0&&(0,t.isDateUnit)(u)?u:void 0}}:f&&m?{node:"timestamptzLiteral",literal:l,typeDef:{type:"timestamptz",timeframe:u},timezone:f}:f?{node:"timestampLiteral",literal:l,typeDef:{type:"timestamp",timeframe:u},timezone:f}:{node:"timestampLiteral",literal:l,typeDef:{type:"timestamp",timeframe:u}}}sqlTurtleOrderByClause(d){const l=d.map(f=>` ${f.field} ${f.dir.toUpperCase()}`);return" "+this.sqlOrderBy(l,"turtle")}sqlFinalStage(d,l){throw new Error("Dialect has no final Stage but called Anyway")}sqlDateToString(d){return this.castToString(`DATE(${d})`)}sqlLiteralNumber(d){return d}ignoreInProject(d){return!1}needsCivilTimeComputation(d,l,f,u){const p=["day","week","month","quarter","year"],h=l!==void 0&&p.includes(l),m=f!==void 0&&p.includes(f),x=a(u);return{needed:t.TD.isAnyTimestamp(d)&&(h||m)&&x!==void 0,tz:x}}sqlTruncAndOffset(d,l,f,u){if(t.TD.isAnyTimestamp(d.typeDef)){const{needed:h,tz:m}=this.needsCivilTimeComputation(d.typeDef,f,u?.unit,l);if(h&&m){const x=this.sqlConvertToCivilTime(d.sql,m,d.typeDef);let E=x.sql;const C=x.typeDef;return f&&(E=this.sqlTruncate(E,f,C,!0,m)),u&&(E=this.sqlOffsetTime(E,u.op,u.magnitude,u.unit,C,!0,m)),this.sqlConvertFromCivilTime(E,m,d.typeDef)}}let p=d.sql;return f&&(p=this.sqlTruncate(p,f,d.typeDef,!1,a(l))),u&&(p=this.sqlOffsetTime(p,u.op,u.magnitude,u.unit,d.typeDef,!1,a(l))),p}exprToSQL(d,l){switch(l.node){case"now":return this.sqlNowExpr();case"timeDiff":return this.sqlMeasureTimeExpr(l);case"delta":{const f=l.kids.base;return f.node==="trunc"?this.sqlTruncAndOffset(f.e,d,f.units,{op:l.op,magnitude:l.kids.delta.sql,unit:l.units}):this.sqlTruncAndOffset(f,d,void 0,{op:l.op,magnitude:l.kids.delta.sql,unit:l.units})}case"trunc":return this.sqlTruncAndOffset(l.e,d,l.units);case"extract":return this.sqlTimeExtractExpr(d,l);case"cast":return this.sqlCast(d,l);case"regexpMatch":return this.sqlRegexpMatch(l);case"/":return this.divisionIsInteger?`${l.kids.left.sql}*1.0/${l.kids.right.sql}`:void 0;case"%":return this.hasModOperator?void 0:`MOD(${l.kids.left.sql},${l.kids.right.sql})`;case"dateLiteral":return this.sqlDateLiteral(d,l.literal);case"timestampLiteral":return this.sqlTimestampLiteral(d,l.literal,l.timezone);case"timestamptzLiteral":return this.sqlTimestamptzLiteral(d,l.literal,l.timezone);case"stringLiteral":return this.sqlLiteralString(l.literal);case"numberLiteral":return this.sqlLiteralNumber(l.literal);case"regexpLiteral":return this.sqlLiteralRegexp(l.literal);case"recordLiteral":return this.sqlLiteralRecord(l);case"arrayLiteral":return this.sqlLiteralArray(l)}}sqlSumDistinct(d,l,f){return"sqlSumDistinct called but not implemented"}sqlAggDistinct(d,l,f){return"sqlAggDistinct called but not implemented"}sqlSampleTable(d,l){if(l!==void 0)throw new Error(`Sampling is not supported on dialect ${this.name}.`);return d}sqlOrderBy(d,l){return`ORDER BY ${d.join(",")}`}sqlTzStr(d){return`"${d.queryTimezone}"`}sqlMakeUnnestKey(d,l){return this.concat(d,"'x'",l)}sqlStringAggDistinct(d,l,f){const u="__STRING_AGG_KS__",p="__STRING_AGG_KE__";return`REGEXP_REPLACE(
|
|
2
2
|
STRING_AGG(DISTINCT ${`concat('${u}', ${d}, '${p}', ${l})`}${f.length>0?","+f:""}),
|
|
3
3
|
'${u}.*?${p}',
|
|
4
4
|
''
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as Eie}from"./index-ZpoRvcIi.js";function FJe(b2,x2){for(var sn=0;sn<x2.length;sn++){const ht=x2[sn];if(typeof ht!="string"&&!Array.isArray(ht)){for(const Ls in ht)if(Ls!=="default"&&!(Ls in b2)){const gd=Object.getOwnPropertyDescriptor(ht,Ls);gd&&Object.defineProperty(b2,Ls,gd.get?gd:{enumerable:!0,get:()=>ht[Ls]})}}}return Object.freeze(Object.defineProperty(b2,Symbol.toStringTag,{value:"Module"}))}var y2={exports:{}},TJe=y2.exports,Mie;function OJe(){return Mie||(Mie=1,(function(b2,x2){(function(sn,ht){ht(x2)})(TJe,function(sn){class ht{constructor(){this.tagOptionExtractors={}}addExtractor(t,...n){for(const r in n)this.tagOptionExtractors[n[r]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const n={};for(const r in this.tagOptionExtractors){const i=t.tag(r);i&&this.tagOptionExtractors[r](n,i)}return n}}function Ls(e){if(e.isArray())return e.values.map(t=>Ls(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const n of e.columns)t[n.field.name]=Ls(n);return t}return null}class gd{constructor(t){this.document=t}async render(t){const n=this.document.createElement("pre");return n.appendChild(this.document.createTextNode(JSON.stringify(Ls(t),void 0,2))),n}}const Gx=class extends ht{create(t,n,r,i,a){return new gd(t)}get rendererName(){return"json"}};Gx.instance=new Gx;let $ie=Gx;class Fie{constructor(t,n,r){this.document=t,this.options=n,this.tagged=r}}class w2 extends Fie{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,n,r,i,a){return new t(n,i,a)}}var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Eie<"u"?Eie:typeof self<"u"?self:{};function Tie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oie(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Nie=Oie;function zie(e){return function(t){return e?.[t]}}var Rie=zie,Pie=Rie,Bie={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lie=Pie(Bie),qie=Lie,Iie=typeof pr=="object"&&pr&&pr.Object===Object&&pr,jie=Iie,Uie=jie,Vie=typeof self=="object"&&self&&self.Object===Object&&self,Wie=Uie||Vie||Function("return this")(),Hie=Wie,Yie=Hie,Gie=Yie.Symbol,Zx=Gie;function Zie(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Xie=Zie,Jie=Array.isArray,Qie=Jie,tF=Zx,nF=Object.prototype,Kie=nF.hasOwnProperty,eae=nF.toString,V1=tF?tF.toStringTag:void 0;function tae(e){var t=Kie.call(e,V1),n=e[V1];try{e[V1]=void 0;var r=!0}catch{}var i=eae.call(e);return r&&(t?e[V1]=n:delete e[V1]),i}var nae=tae,rae=Object.prototype,iae=rae.toString;function aae(e){return iae.call(e)}var oae=aae,rF=Zx,sae=nae,lae=oae,uae="[object Null]",cae="[object Undefined]",iF=rF?rF.toStringTag:void 0;function fae(e){return e==null?e===void 0?cae:uae:iF&&iF in Object(e)?sae(e):lae(e)}var dae=fae;function hae(e){return e!=null&&typeof e=="object"}var pae=hae,mae=dae,gae=pae,yae="[object Symbol]";function vae(e){return typeof e=="symbol"||gae(e)&&mae(e)==yae}var bae=vae,aF=Zx,xae=Xie,wae=Qie,_ae=bae,oF=aF?aF.prototype:void 0,sF=oF?oF.toString:void 0;function lF(e){if(typeof e=="string")return e;if(wae(e))return xae(e,lF)+"";if(_ae(e))return sF?sF.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kae=lF,Cae=kae;function Sae(e){return e==null?"":Cae(e)}var Xx=Sae,Aae=qie,Eae=Xx,Mae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dae="\\u0300-\\u036f",$ae="\\ufe20-\\ufe2f",Fae="\\u20d0-\\u20ff",Tae=Dae+$ae+Fae,Oae="["+Tae+"]",Nae=RegExp(Oae,"g");function zae(e){return e=Eae(e),e&&e.replace(Mae,Aae).replace(Nae,"")}var Rae=zae,Pae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bae(e){return e.match(Pae)||[]}var Lae=Bae,qae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Iae(e){return qae.test(e)}var jae=Iae,uF="\\ud800-\\udfff",Uae="\\u0300-\\u036f",Vae="\\ufe20-\\ufe2f",Wae="\\u20d0-\\u20ff",Hae=Uae+Vae+Wae,cF="\\u2700-\\u27bf",fF="a-z\\xdf-\\xf6\\xf8-\\xff",Yae="\\xac\\xb1\\xd7\\xf7",Gae="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zae="\\u2000-\\u206f",Xae=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dF="A-Z\\xc0-\\xd6\\xd8-\\xde",Jae="\\ufe0e\\ufe0f",hF=Yae+Gae+Zae+Xae,pF="['’]",mF="["+hF+"]",Qae="["+Hae+"]",gF="\\d+",Kae="["+cF+"]",yF="["+fF+"]",vF="[^"+uF+hF+gF+cF+fF+dF+"]",eoe="\\ud83c[\\udffb-\\udfff]",toe="(?:"+Qae+"|"+eoe+")",noe="[^"+uF+"]",bF="(?:\\ud83c[\\udde6-\\uddff]){2}",xF="[\\ud800-\\udbff][\\udc00-\\udfff]",yd="["+dF+"]",roe="\\u200d",wF="(?:"+yF+"|"+vF+")",ioe="(?:"+yd+"|"+vF+")",_F="(?:"+pF+"(?:d|ll|m|re|s|t|ve))?",kF="(?:"+pF+"(?:D|LL|M|RE|S|T|VE))?",CF=toe+"?",SF="["+Jae+"]?",aoe="(?:"+roe+"(?:"+[noe,bF,xF].join("|")+")"+SF+CF+")*",ooe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",soe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",loe=SF+CF+aoe,uoe="(?:"+[Kae,bF,xF].join("|")+")"+loe,coe=RegExp([yd+"?"+yF+"+"+_F+"(?="+[mF,yd,"$"].join("|")+")",ioe+"+"+kF+"(?="+[mF,yd+wF,"$"].join("|")+")",yd+"?"+wF+"+"+_F,yd+"+"+kF,soe,ooe,gF,uoe].join("|"),"g");function foe(e){return e.match(coe)||[]}var doe=foe,hoe=Lae,poe=jae,moe=Xx,goe=doe;function yoe(e,t,n){return e=moe(e),t=n?void 0:t,t===void 0?poe(e)?goe(e):hoe(e):e.match(t)||[]}var voe=yoe,boe=Nie,xoe=Rae,woe=voe,_oe="['’]",koe=RegExp(_oe,"g");function Coe(e){return function(t){return boe(woe(xoe(t).replace(koe,"")),e,"")}}var Soe=Coe;function Aoe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Eoe=Aoe,Moe=Eoe;function Doe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Moe(e,t,n)}var $oe=Doe,Foe="\\ud800-\\udfff",Toe="\\u0300-\\u036f",Ooe="\\ufe20-\\ufe2f",Noe="\\u20d0-\\u20ff",zoe=Toe+Ooe+Noe,Roe="\\ufe0e\\ufe0f",Poe="\\u200d",Boe=RegExp("["+Poe+Foe+zoe+Roe+"]");function Loe(e){return Boe.test(e)}var AF=Loe;function qoe(e){return e.split("")}var Ioe=qoe,EF="\\ud800-\\udfff",joe="\\u0300-\\u036f",Uoe="\\ufe20-\\ufe2f",Voe="\\u20d0-\\u20ff",Woe=joe+Uoe+Voe,Hoe="\\ufe0e\\ufe0f",Yoe="["+EF+"]",Jx="["+Woe+"]",Qx="\\ud83c[\\udffb-\\udfff]",Goe="(?:"+Jx+"|"+Qx+")",MF="[^"+EF+"]",DF="(?:\\ud83c[\\udde6-\\uddff]){2}",$F="[\\ud800-\\udbff][\\udc00-\\udfff]",Zoe="\\u200d",FF=Goe+"?",TF="["+Hoe+"]?",Xoe="(?:"+Zoe+"(?:"+[MF,DF,$F].join("|")+")"+TF+FF+")*",Joe=TF+FF+Xoe,Qoe="(?:"+[MF+Jx+"?",Jx,DF,$F,Yoe].join("|")+")",Koe=RegExp(Qx+"(?="+Qx+")|"+Qoe+Joe,"g");function ese(e){return e.match(Koe)||[]}var tse=ese,nse=Ioe,rse=AF,ise=tse;function ase(e){return rse(e)?ise(e):nse(e)}var ose=ase,sse=$oe,lse=AF,use=ose,cse=Xx;function fse(e){return function(t){t=cse(t);var n=lse(t)?use(t):void 0,r=n?n[0]:t.charAt(0),i=n?sse(n,1).join(""):t.slice(1);return r[e]()+i}}var dse=fse,hse=dse,pse=hse("toUpperCase"),mse=pse,gse=Soe,yse=mse,vse=gse(function(e,t,n){return e+(n?" ":"")+yse(t)}),bse=vse;const xse=Tie(bse);class yc extends Error{}class wse extends yc{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class _se extends yc{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class kse extends yc{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class vd extends yc{}class OF extends yc{constructor(t){super(`Invalid unit ${t}`)}}class mr extends yc{}class Ql extends yc{constructor(){super("Zone is an abstract class")}}const ye="numeric",Ra="short",Ri="long",_2={year:ye,month:ye,day:ye},NF={year:ye,month:Ra,day:ye},Cse={year:ye,month:Ra,day:ye,weekday:Ra},zF={year:ye,month:Ri,day:ye},RF={year:ye,month:Ri,day:ye,weekday:Ri},PF={hour:ye,minute:ye},BF={hour:ye,minute:ye,second:ye},LF={hour:ye,minute:ye,second:ye,timeZoneName:Ra},qF={hour:ye,minute:ye,second:ye,timeZoneName:Ri},IF={hour:ye,minute:ye,hourCycle:"h23"},jF={hour:ye,minute:ye,second:ye,hourCycle:"h23"},UF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ra},VF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ri},WF={year:ye,month:ye,day:ye,hour:ye,minute:ye},HF={year:ye,month:ye,day:ye,hour:ye,minute:ye,second:ye},YF={year:ye,month:Ra,day:ye,hour:ye,minute:ye},GF={year:ye,month:Ra,day:ye,hour:ye,minute:ye,second:ye},Sse={year:ye,month:Ra,day:ye,weekday:Ra,hour:ye,minute:ye},ZF={year:ye,month:Ri,day:ye,hour:ye,minute:ye,timeZoneName:Ra},XF={year:ye,month:Ri,day:ye,hour:ye,minute:ye,second:ye,timeZoneName:Ra},JF={year:ye,month:Ri,day:ye,weekday:Ri,hour:ye,minute:ye,timeZoneName:Ri},QF={year:ye,month:Ri,day:ye,weekday:Ri,hour:ye,minute:ye,second:ye,timeZoneName:Ri};class W1{get type(){throw new Ql}get name(){throw new Ql}get ianaName(){return this.name}get isUniversal(){throw new Ql}offsetName(t,n){throw new Ql}formatOffset(t,n){throw new Ql}offset(t){throw new Ql}equals(t){throw new Ql}get isValid(){throw new Ql}}let Kx=null;class k2 extends W1{static get instance(){return Kx===null&&(Kx=new k2),Kx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return CT(t,n,r)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const e6=new Map;function Ase(e){let t=e6.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),e6.set(e,t)),t}const Ese={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Mse(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u,c]=r;return[o,i,a,s,l,u,c]}function Dse(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],s=Ese[a];a==="era"?r[s]=o:He(s)||(r[s]=parseInt(o,10))}return r}const t6=new Map;class qs extends W1{static create(t){let n=t6.get(t);return n===void 0&&t6.set(t,n=new qs(t)),n}static resetCache(){t6.clear(),e6.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=qs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return CT(t,n,r,this.name)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=Ase(this.name);let[i,a,o,s,l,u,c]=r.formatToParts?Dse(r,n):Mse(r,n);s==="BC"&&(i=-Math.abs(i)+1);const f=D2({year:i,month:a,day:o,hour:l===24?0:l,minute:u,second:c,millisecond:0});let d=+n;const h=d%1e3;return d-=h>=0?h:1e3+h,(f-d)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let KF={};function $se(e,t={}){const n=JSON.stringify([e,t]);let r=KF[n];return r||(r=new Intl.ListFormat(e,t),KF[n]=r),r}const n6=new Map;function r6(e,t={}){const n=JSON.stringify([e,t]);let r=n6.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),n6.set(n,r)),r}const i6=new Map;function Fse(e,t={}){const n=JSON.stringify([e,t]);let r=i6.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),i6.set(n,r)),r}const a6=new Map;function Tse(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=a6.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),a6.set(i,a)),a}let C2=null;function Ose(){return C2||(C2=new Intl.DateTimeFormat().resolvedOptions().locale,C2)}const o6=new Map;function eT(e){let t=o6.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),o6.set(e,t)),t}const s6=new Map;function Nse(e){let t=s6.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...tT,...t}),s6.set(e,t)}return t}function zse(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=r6(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=r6(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function Rse(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Pse(e){const t=[];for(let n=1;n<=12;n++){const r=Ye.utc(2009,n,1);t.push(e(r))}return t}function Bse(e){const t=[];for(let n=1;n<=7;n++){const r=Ye.utc(2016,11,13+n);t.push(e(r))}return t}function S2(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function Lse(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||eT(e.locale).numberingSystem==="latn"}class qse{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Fse(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):g6(t,3);return An(n,this.padTo)}}}class Ise{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&qs.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=r6(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class jse{constructor(t,n,r){this.opts={style:"long",...r},!n&&xT()&&(this.rtf=Tse(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):cle(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const tT={firstDay:1,minimalDays:4,weekend:[6,7]};class kt{static fromOpts(t){return kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){const o=t||pn.defaultLocale,s=o||(a?"en-US":Ose()),l=n||pn.defaultNumberingSystem,u=r||pn.defaultOutputCalendar,c=p6(i)||pn.defaultWeekSettings;return new kt(s,l,u,c,o)}static resetCache(){C2=null,n6.clear(),i6.clear(),a6.clear(),o6.clear(),s6.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return kt.create(t,n,r,i)}constructor(t,n,r,i,a){const[o,s,l]=zse(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Rse(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Lse(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,p6(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return S2(this,t,ET,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const o=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[a][t]=Pse(o)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return S2(this,t,$T,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Bse(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return S2(this,void 0,()=>FT,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ye.utc(2016,11,13,9),Ye.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return S2(this,t,TT,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ye.utc(-40,1,1),Ye.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new qse(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Ise(t,this.intl,n)}relFormatter(t={}){return new jse(this.intl,this.isEnglish(),t)}listFormatter(t={}){return $se(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||eT(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:wT()?Nse(this.locale):tT}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let l6=null;class Rr extends W1{static get utcInstance(){return l6===null&&(l6=new Rr(0)),l6}static instance(t){return t===0?Rr.utcInstance:new Rr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rr($2(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${G1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${G1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return G1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Use extends W1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Kl(e,t){if(He(e)||e===null)return t;if(e instanceof W1)return e;if(Zse(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?k2.instance:n==="utc"||n==="gmt"?Rr.utcInstance:Rr.parseSpecifier(n)||qs.create(e)}else return eu(e)?Rr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Use(e)}const u6={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nT={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Vse=u6.hanidec.replace(/[\[|\]]/g,"").split("");function Wse(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(u6.hanidec)!==-1)t+=Vse.indexOf(e[n]);else for(const i in nT){const[a,o]=nT[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}const c6=new Map;function Hse(){c6.clear()}function Pa({numberingSystem:e},t=""){const n=e||"latn";let r=c6.get(n);r===void 0&&(r=new Map,c6.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${u6[n]}${t}`),r.set(t,i)),i}let rT=()=>Date.now(),iT="system",aT=null,oT=null,sT=null,lT=60,uT,cT=null;class pn{static get now(){return rT}static set now(t){rT=t}static set defaultZone(t){iT=t}static get defaultZone(){return Kl(iT,k2.instance)}static get defaultLocale(){return aT}static set defaultLocale(t){aT=t}static get defaultNumberingSystem(){return oT}static set defaultNumberingSystem(t){oT=t}static get defaultOutputCalendar(){return sT}static set defaultOutputCalendar(t){sT=t}static get defaultWeekSettings(){return cT}static set defaultWeekSettings(t){cT=p6(t)}static get twoDigitCutoffYear(){return lT}static set twoDigitCutoffYear(t){lT=t%100}static get throwOnInvalid(){return uT}static set throwOnInvalid(t){uT=t}static resetCaches(){kt.resetCache(),qs.resetCache(),Ye.resetCache(),Hse()}}class Ba{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fT=[0,31,59,90,120,151,181,212,243,273,304,334],dT=[0,31,60,91,121,152,182,213,244,274,305,335];function ea(e,t){return new Ba("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function f6(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function hT(e,t,n){return n+(H1(e)?dT:fT)[t-1]}function pT(e,t){const n=H1(e)?dT:fT,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function d6(e,t){return(e-t+7)%7+1}function A2(e,t=4,n=1){const{year:r,month:i,day:a}=e,o=hT(r,i,a),s=d6(f6(r,i,a),n);let l=Math.floor((o-s+14-t)/7),u;return l<1?(u=r-1,l=Y1(u,t,n)):l>Y1(r,t,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:s,...T2(e)}}function mT(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:a}=e,o=d6(f6(r,1,t),n),s=xd(r);let l=i*7+a-o-7+t,u;l<1?(u=r-1,l+=xd(u)):l>s?(u=r+1,l-=xd(r)):u=r;const{month:c,day:f}=pT(u,l);return{year:u,month:c,day:f,...T2(e)}}function h6(e){const{year:t,month:n,day:r}=e,i=hT(t,n,r);return{year:t,ordinal:i,...T2(e)}}function gT(e){const{year:t,ordinal:n}=e,{month:r,day:i}=pT(t,n);return{year:t,month:r,day:i,...T2(e)}}function yT(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new vd("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Yse(e,t=4,n=1){const r=E2(e.weekYear),i=ta(e.weekNumber,1,Y1(e.weekYear,t,n)),a=ta(e.weekday,1,7);return r?i?a?!1:ea("weekday",e.weekday):ea("week",e.weekNumber):ea("weekYear",e.weekYear)}function Gse(e){const t=E2(e.year),n=ta(e.ordinal,1,xd(e.year));return t?n?!1:ea("ordinal",e.ordinal):ea("year",e.year)}function vT(e){const t=E2(e.year),n=ta(e.month,1,12),r=ta(e.day,1,M2(e.year,e.month));return t?n?r?!1:ea("day",e.day):ea("month",e.month):ea("year",e.year)}function bT(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=ta(t,0,23)||t===24&&n===0&&r===0&&i===0,o=ta(n,0,59),s=ta(r,0,59),l=ta(i,0,999);return a?o?s?l?!1:ea("millisecond",i):ea("second",r):ea("minute",n):ea("hour",t)}function He(e){return typeof e>"u"}function eu(e){return typeof e=="number"}function E2(e){return typeof e=="number"&&e%1===0}function Zse(e){return typeof e=="string"}function Xse(e){return Object.prototype.toString.call(e)==="[object Date]"}function xT(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function wT(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Jse(e){return Array.isArray(e)?e:[e]}function _T(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Qse(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function bd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p6(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!ta(e.firstDay,1,7)||!ta(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ta(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ta(e,t,n){return E2(e)&&e>=t&&e<=n}function Kse(e,t){return e-t*Math.floor(e/t)}function An(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function tu(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function vc(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function m6(e){if(!(He(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function g6(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function H1(e){return e%4===0&&(e%100!==0||e%400===0)}function xd(e){return H1(e)?366:365}function M2(e,t){const n=Kse(t-1,12)+1,r=e+(t-n)/12;return n===2?H1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function D2(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function kT(e,t,n){return-d6(f6(e,1,t),n)+t-1}function Y1(e,t=4,n=1){const r=kT(e,t,n),i=kT(e+1,t,n);return(xd(e)-r+i)/7}function y6(e){return e>99?e:e>pn.twoDigitCutoffYear?1900+e:2e3+e}function CT(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function $2(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function ST(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new mr(`Invalid unit value ${e}`);return t}function F2(e,t){const n={};for(const r in e)if(bd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=ST(i)}return n}function G1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${An(n,2)}:${An(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${An(n,2)}${An(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function T2(e){return Qse(e,["hour","minute","second","millisecond"])}const ele=["January","February","March","April","May","June","July","August","September","October","November","December"],AT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tle=["J","F","M","A","M","J","J","A","S","O","N","D"];function ET(e){switch(e){case"narrow":return[...tle];case"short":return[...AT];case"long":return[...ele];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const MT=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],DT=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nle=["M","T","W","T","F","S","S"];function $T(e){switch(e){case"narrow":return[...nle];case"short":return[...DT];case"long":return[...MT];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const FT=["AM","PM"],rle=["Before Christ","Anno Domini"],ile=["BC","AD"],ale=["B","A"];function TT(e){switch(e){case"narrow":return[...ale];case"short":return[...ile];case"long":return[...rle];default:return null}}function ole(e){return FT[e.hour<12?0:1]}function sle(e,t){return $T(t)[e.weekday-1]}function lle(e,t){return ET(t)[e.month-1]}function ule(e,t){return TT(t)[e.year<0?0:1]}function cle(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function OT(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const fle={D:_2,DD:NF,DDD:zF,DDDD:RF,t:PF,tt:BF,ttt:LF,tttt:qF,T:IF,TT:jF,TTT:UF,TTTT:VF,f:WF,ff:YF,fff:ZF,ffff:JF,F:HF,FF:GF,FFF:XF,FFFF:QF};class gr{static create(t,n={}){return new gr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?((r.length>0||i)&&a.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return fle[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return An(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>r?ole(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>r?lle(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),u=(h,p)=>r?sle(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),c=h=>{const p=gr.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?ule(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(h)}};return OT(gr.parseFormat(n),d)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=c=>{switch(c[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(c,f)=>d=>{const h=i(d);if(h){const p=f.isNegativeDuration&&h!==f.largestUnit?r:1;let m;return this.opts.signMode==="negativeLargestOnly"&&h!==f.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(h)*p,d.length,m)}else return d},o=gr.parseFormat(n),s=o.reduce((c,{literal:f,val:d})=>f?c:c.concat(d),[]),l=t.shiftTo(...s.map(i).filter(c=>c)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return OT(o,a(l,u))}}const NT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _d(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[{...n,...o},s||r,l]},[{},null,1]).slice(0,2)}function kd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function zT(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=tu(t[n+i]);return[r,null,n+i]}}const RT=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,dle=`(?:${RT.source}?(?:\\[(${NT.source})\\])?)?`,v6=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,PT=RegExp(`${v6.source}${dle}`),b6=RegExp(`(?:[Tt]${PT.source})?`),hle=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ple=/(\d{4})-?W(\d\d)(?:-?(\d))?/,mle=/(\d{4})-?(\d{3})/,gle=zT("weekYear","weekNumber","weekDay"),yle=zT("year","ordinal"),vle=/(\d{4})-(\d\d)-(\d\d)/,BT=RegExp(`${v6.source} ?(?:${RT.source}|(${NT.source}))?`),ble=RegExp(`(?: ${BT.source})?`);function Cd(e,t,n){const r=e[t];return He(r)?n:tu(r)}function xle(e,t){return[{year:Cd(e,t),month:Cd(e,t+1,1),day:Cd(e,t+2,1)},null,t+3]}function Sd(e,t){return[{hours:Cd(e,t,0),minutes:Cd(e,t+1,0),seconds:Cd(e,t+2,0),milliseconds:m6(e[t+3])},null,t+4]}function Z1(e,t){const n=!e[t]&&!e[t+1],r=$2(e[t+1],e[t+2]),i=n?null:Rr.instance(r);return[{},i,t+3]}function X1(e,t){const n=e[t]?qs.create(e[t]):null;return[{},n,t+1]}const wle=RegExp(`^T?${v6.source}$`),_le=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function kle(e){const[t,n,r,i,a,o,s,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&c)?-h:h;return[{years:d(vc(n)),months:d(vc(r)),weeks:d(vc(i)),days:d(vc(a)),hours:d(vc(o)),minutes:d(vc(s)),seconds:d(vc(l),l==="-0"),milliseconds:d(m6(u),f)}]}const Cle={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function x6(e,t,n,r,i,a,o){const s={year:t.length===2?y6(tu(t)):tu(t),month:AT.indexOf(n)+1,day:tu(r),hour:tu(i),minute:tu(a)};return o&&(s.second=tu(o)),e&&(s.weekday=e.length>3?MT.indexOf(e)+1:DT.indexOf(e)+1),s}const Sle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ale(e){const[,t,n,r,i,a,o,s,l,u,c,f]=e,d=x6(t,i,r,n,a,o,s);let h;return l?h=Cle[l]:u?h=0:h=$2(c,f),[d,new Rr(h)]}function Ele(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Mle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Dle=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$le=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function LT(e){const[,t,n,r,i,a,o,s]=e;return[x6(t,i,r,n,a,o,s),Rr.utcInstance]}function Fle(e){const[,t,n,r,i,a,o,s]=e;return[x6(t,s,n,r,i,a,o),Rr.utcInstance]}const Tle=wd(hle,b6),Ole=wd(ple,b6),Nle=wd(mle,b6),zle=wd(PT),qT=_d(xle,Sd,Z1,X1),Rle=_d(gle,Sd,Z1,X1),Ple=_d(yle,Sd,Z1,X1),Ble=_d(Sd,Z1,X1);function Lle(e){return kd(e,[Tle,qT],[Ole,Rle],[Nle,Ple],[zle,Ble])}function qle(e){return kd(Ele(e),[Sle,Ale])}function Ile(e){return kd(e,[Mle,LT],[Dle,LT],[$le,Fle])}function jle(e){return kd(e,[_le,kle])}const Ule=_d(Sd);function Vle(e){return kd(e,[wle,Ule])}const Wle=wd(vle,ble),Hle=wd(BT),Yle=_d(Sd,Z1,X1);function Gle(e){return kd(e,[Wle,qT],[Hle,Yle])}const IT="Invalid Duration",jT={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Zle={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...jT},na=146097/400,Ad=146097/4800,Xle={years:{quarters:4,months:12,weeks:na/7,days:na,hours:na*24,minutes:na*24*60,seconds:na*24*60*60,milliseconds:na*24*60*60*1e3},quarters:{months:3,weeks:na/28,days:na/4,hours:na*24/4,minutes:na*24*60/4,seconds:na*24*60*60/4,milliseconds:na*24*60*60*1e3/4},months:{weeks:Ad/7,days:Ad,hours:Ad*24,minutes:Ad*24*60,seconds:Ad*24*60*60,milliseconds:Ad*24*60*60*1e3},...jT},bc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Jle=bc.slice(0).reverse();function Is(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ft(r)}function UT(e,t){let n=t.milliseconds??0;for(const r of Jle.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function VT(e,t){const n=UT(e,t)<0?-1:1;bc.reduceRight((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),bc.reduce((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]%1;t[r]-=a,t[i]+=a*e[r][i]}return i},null)}function WT(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class ft{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Xle:Zle;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return ft.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ft({values:F2(t,ft.normalizeUnit),loc:kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(eu(t))return ft.fromMillis(t);if(ft.isDuration(t))return t;if(typeof t=="object")return ft.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=jle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Vle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new kse(r);return new ft({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new OF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?gr.create(this.loc,r).formatDurationFromString(this,t):IT}toHuman(t={}){if(!this.isValid)return IT;const n=t.showZeros!==!1,r=bc.map(i=>{const a=this.values[i];return He(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=g6(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ye.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?UT(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t),r={};for(const i of bc)(bd(n.values,i)||bd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Is(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=ST(t(this.values[r],r));return Is(this,{values:n},!0)}get(t){return this[ft.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...F2(t,ft.normalizeUnit)};return Is(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Is(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return VT(this.matrix,t),Is(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=WT(this.normalize().shiftToAll().toObject());return Is(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>ft.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of bc)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;eu(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=(s*1e3-l*1e3)/1e3}else eu(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return VT(this.matrix,n),Is(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Is(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=WT(this.values);return Is(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of bc)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Ed="Invalid Interval";function Qle(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new _se(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=K1(t),i=K1(n);return Qle(r,i)??new mn({start:r,end:i})}static after(t,n){const r=ft.fromDurationLike(n),i=K1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=ft.fromDurationLike(n),i=K1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=Ye.fromISO(r,n),o=a.isValid}catch{o=!1}let s,l;try{s=Ye.fromISO(i,n),l=s.isValid}catch{l=!1}if(o&&l)return mn.fromDateTimes(a,s);if(o){const u=ft.fromISO(i,n);if(u.isValid)return mn.after(a,u)}else if(l){const u=ft.fromISO(r,n);if(u.isValid)return mn.before(s,u)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(K1).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,s=+o>+this.e?this.e:o;r.push(mn.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=ft.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));a=+s>+this.e?this.e:s,o.push(mn.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(mn.fromDateTimes(n,l.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ed}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=_2,n={}){return this.isValid?gr.create(this.s.loc.clone(n),t).formatInterval(this):Ed}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ed}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ed}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ed}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Ed}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):ft.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}let O2=class{static hasDST(e=pn.defaultZone){const t=Ye.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return qs.isValidZone(e)}static normalizeZone(e){return Kl(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return kt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return kt.create(t,null,"gregory").eras(e)}static features(){return{relative:xT(),localeWeek:wT()}}};function HT(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(ft.fromMillis(r).as("days"))}function Kle(e,t,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=HT(l,u);return(c-c%7)/7}],["days",HT]],i={},a=e;let o,s;for(const[l,u]of r)n.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,e=a.plus(i),e>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}function eue(e,t,n,r){let[i,a,o,s]=Kle(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=ft.fromObject(a,r);return u.length>0?ft.fromMillis(l,r).shiftTo(...u).plus(c):c}const tue="missing Intl.DateTimeFormat.formatToParts support";function xt(e,t=n=>n){return{regex:e,deser:([n])=>t(Wse(n))}}const YT="[ ]",GT=new RegExp(YT,"g");function nue(e){return e.replace(/\./g,"\\.?").replace(GT,YT)}function ZT(e){return e.replace(/\./g,"").replace(GT," ").toLowerCase()}function La(e,t){return e===null?null:{regex:RegExp(e.map(nue).join("|")),deser:([n])=>e.findIndex(r=>ZT(n)===ZT(r))+t}}function XT(e,t){return{regex:e,deser:([,n,r])=>$2(n,r),groups:t}}function N2(e){return{regex:e,deser:([t])=>t}}function rue(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function iue(e,t){const n=Pa(t),r=Pa(t,"{2}"),i=Pa(t,"{3}"),a=Pa(t,"{4}"),o=Pa(t,"{6}"),s=Pa(t,"{1,2}"),l=Pa(t,"{1,3}"),u=Pa(t,"{1,6}"),c=Pa(t,"{1,9}"),f=Pa(t,"{2,4}"),d=Pa(t,"{4,6}"),h=m=>({regex:RegExp(rue(m.val)),deser:([g])=>g,literal:!0}),p=(m=>{if(e.literal)return h(m);switch(m.val){case"G":return La(t.eras("short"),0);case"GG":return La(t.eras("long"),0);case"y":return xt(u);case"yy":return xt(f,y6);case"yyyy":return xt(a);case"yyyyy":return xt(d);case"yyyyyy":return xt(o);case"M":return xt(s);case"MM":return xt(r);case"MMM":return La(t.months("short",!0),1);case"MMMM":return La(t.months("long",!0),1);case"L":return xt(s);case"LL":return xt(r);case"LLL":return La(t.months("short",!1),1);case"LLLL":return La(t.months("long",!1),1);case"d":return xt(s);case"dd":return xt(r);case"o":return xt(l);case"ooo":return xt(i);case"HH":return xt(r);case"H":return xt(s);case"hh":return xt(r);case"h":return xt(s);case"mm":return xt(r);case"m":return xt(s);case"q":return xt(s);case"qq":return xt(r);case"s":return xt(s);case"ss":return xt(r);case"S":return xt(l);case"SSS":return xt(i);case"u":return N2(c);case"uu":return N2(s);case"uuu":return xt(n);case"a":return La(t.meridiems(),0);case"kkkk":return xt(a);case"kk":return xt(f,y6);case"W":return xt(s);case"WW":return xt(r);case"E":case"c":return xt(n);case"EEE":return La(t.weekdays("short",!1),1);case"EEEE":return La(t.weekdays("long",!1),1);case"ccc":return La(t.weekdays("short",!0),1);case"cccc":return La(t.weekdays("long",!0),1);case"Z":case"ZZ":return XT(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return XT(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return N2(/[a-z_+-/]{1,256}?/i);case" ":return N2(/[^\S\n\r]/);default:return h(m)}})(e)||{invalidReason:tue};return p.token=e,p}const aue={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function oue(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let s=aue[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function sue(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function lue(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(bd(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function uue(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return He(e.z)||(n=qs.create(e.z)),He(e.Z)||(n||(n=new Rr(e.Z)),r=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=m6(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n,r]}let w6=null;function cue(){return w6||(w6=Ye.fromMillis(1555555555555)),w6}function fue(e,t){if(e.literal)return e;const n=gr.macroTokenToFormatOpts(e.val),r=eO(n,t);return r==null||r.includes(void 0)?e:r}function JT(e,t){return Array.prototype.concat(...e.map(n=>fue(n,t)))}class QT{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=JT(gr.parseFormat(n),t),this.units=this.tokens.map(r=>iue(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=sue(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=lue(t,this.regex,this.handlers),[i,a,o]=r?uue(r):[null,null,void 0];if(bd(r,"a")&&bd(r,"H"))throw new vd("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:a,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function KT(e,t,n){return new QT(e,n).explainFromTokens(t)}function due(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=KT(e,t,n);return[r,i,a,o]}function eO(e,t){if(!e)return null;const n=gr.create(t,e).dtFormatter(cue()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(a=>oue(a,e,i))}const _6="Invalid DateTime",tO=864e13;function J1(e){return new Ba("unsupported zone",`the zone "${e.name}" is not supported`)}function k6(e){return e.weekData===null&&(e.weekData=A2(e.c)),e.weekData}function C6(e){return e.localWeekData===null&&(e.localWeekData=A2(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ye({...n,...t,old:n})}function nO(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function z2(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function R2(e,t,n){return nO(D2(e),t,n)}function rO(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,M2(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=ft.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=D2(a);let[l,u]=nO(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Md(e,t,n,r,i,a){const{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,u=Ye.fromObject(e,{...n,zone:l,specificOffset:a});return o?u:u.setZone(s)}else return Ye.invalid(new Ba("unparsable",`the input "${i}" can't be parsed as ${r}`))}function P2(e,t,n=!0){return e.isValid?gr.create(kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function S6(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=An(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=An(e.c.month),n==="month")return i;i+="-"}else if(i+=An(e.c.month),n==="month")return i;return i+=An(e.c.day),i}function iO(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=An(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=An(e.c.minute),o==="minute")break;s&&(l+=":",l+=An(e.c.second))}else{if(l+=An(e.c.minute),o==="minute")break;s&&(l+=An(e.c.second))}if(o==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=An(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?l+="Z":e.o<0?(l+="-",l+=An(Math.trunc(-e.o/60)),l+=":",l+=An(Math.trunc(-e.o%60))):(l+="+",l+=An(Math.trunc(e.o/60)),l+=":",l+=An(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const aO={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},hue={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},pue={ordinal:1,hour:0,minute:0,second:0,millisecond:0},B2=["year","month","day","hour","minute","second","millisecond"],mue=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gue=["year","ordinal","hour","minute","second","millisecond"];function L2(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new OF(e);return t}function oO(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return L2(e)}}function yue(e){if(Q1===void 0&&(Q1=pn.now()),e.type!=="iana")return e.offset(Q1);const t=e.name;let n=A6.get(t);return n===void 0&&(n=e.offset(Q1),A6.set(t,n)),n}function sO(e,t){const n=Kl(t.zone,pn.defaultZone);if(!n.isValid)return Ye.invalid(J1(n));const r=kt.fromObject(t);let i,a;if(He(e.year))i=pn.now();else{for(const l of B2)He(e[l])&&(e[l]=aO[l]);const o=vT(e)||bT(e);if(o)return Ye.invalid(o);const s=yue(n);[i,a]=R2(e,s,n)}return new Ye({ts:i,zone:n,loc:r,o:a})}function lO(e,t,n){const r=He(n.round)?!0:n.round,i=He(n.rounding)?"trunc":n.rounding,a=(s,l)=>(s=g6(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return a(o(n.unit),n.unit);for(const s of n.units){const l=o(s);if(Math.abs(l)>=1)return a(l,s)}return a(e>t?-0:0,n.units[n.units.length-1])}function uO(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Q1;const A6=new Map;class Ye{constructor(t){const n=t.zone||pn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Ba("invalid input"):null)||(n.isValid?null:J1(n));this.ts=He(t.ts)?pn.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const o=eu(t.o)&&!t.old?t.o:n.offset(this.ts);i=z2(this.ts,o),r=Number.isNaN(i.year)?new Ba("invalid input"):null,i=r?null:i,a=r?null:o}this._zone=n,this.loc=t.loc||kt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Ye({})}static local(){const[t,n]=uO(arguments),[r,i,a,o,s,l,u]=n;return sO({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static utc(){const[t,n]=uO(arguments),[r,i,a,o,s,l,u]=n;return t.zone=Rr.utcInstance,sO({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=Xse(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ye.invalid("invalid input");const i=Kl(n.zone,pn.defaultZone);return i.isValid?new Ye({ts:r,zone:i,loc:kt.fromObject(n)}):Ye.invalid(J1(i))}static fromMillis(t,n={}){if(eu(t))return t<-tO||t>tO?Ye.invalid("Timestamp out of range"):new Ye({ts:t,zone:Kl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(eu(t))return new Ye({ts:t*1e3,zone:Kl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Kl(n.zone,pn.defaultZone);if(!r.isValid)return Ye.invalid(J1(r));const i=kt.fromObject(n),a=F2(t,oO),{minDaysInFirstWeek:o,startOfWeek:s}=yT(a,i),l=pn.now(),u=He(n.specificOffset)?r.offset(l):n.specificOffset,c=!He(a.ordinal),f=!He(a.year),d=!He(a.month)||!He(a.day),h=f||d,p=a.weekYear||a.weekNumber;if((h||c)&&p)throw new vd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new vd("Can't mix ordinal dates with month/day");const m=p||a.weekday&&!h;let g,y,v=z2(l,u);m?(g=mue,y=hue,v=A2(v,o,s)):c?(g=gue,y=pue,v=h6(v)):(g=B2,y=aO);let b=!1;for(const A of g){const E=a[A];He(E)?b?a[A]=y[A]:a[A]=v[A]:b=!0}const w=m?Yse(a,o,s):c?Gse(a):vT(a),_=w||bT(a);if(_)return Ye.invalid(_);const k=m?mT(a,o,s):c?gT(a):a,[x,C]=R2(k,u,r),S=new Ye({ts:x,zone:r,o:C,loc:i});return a.weekday&&h&&t.weekday!==S.weekday?Ye.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${S.toISO()}`):S.isValid?S:Ye.invalid(S.invalid)}static fromISO(t,n={}){const[r,i]=Lle(t);return Md(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=qle(t);return Md(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Ile(t);return Md(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u,c]=due(o,t,n);return c?Ye.invalid(c):Md(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ye.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=Gle(t);return Md(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new wse(r);return new Ye({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=eO(t,kt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return JT(gr.parseFormat(t),kt.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Q1=void 0,A6.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?k6(this).weekYear:NaN}get weekNumber(){return this.isValid?k6(this).weekNumber:NaN}get weekday(){return this.isValid?k6(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?C6(this).weekday:NaN}get localWeekNumber(){return this.isValid?C6(this).weekNumber:NaN}get localWeekYear(){return this.isValid?C6(this).weekYear:NaN}get ordinal(){return this.isValid?h6(this.c).ordinal:NaN}get monthShort(){return this.isValid?O2.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?O2.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?O2.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?O2.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=D2(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),s=this.zone.offset(r-a*n);if(o===s)return[this];const l=r-o*n,u=r-s*n,c=z2(l,o),f=z2(u,s);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[xc(this,{ts:l}),xc(this,{ts:u})]:[this]}get isInLeapYear(){return H1(this.year)}get daysInMonth(){return M2(this.year,this.month)}get daysInYear(){return this.isValid?xd(this.year):NaN}get weeksInWeekYear(){return this.isValid?Y1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Y1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=gr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Rr.instance(t),n)}toLocal(){return this.setZone(pn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Kl(t,pn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=R2(o,a,t)}return xc(this,{ts:i,zone:t})}else return Ye.invalid(J1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xc(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=F2(t,oO),{minDaysInFirstWeek:r,startOfWeek:i}=yT(n,this.loc),a=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),o=!He(n.ordinal),s=!He(n.year),l=!He(n.month)||!He(n.day),u=s||l,c=n.weekYear||n.weekNumber;if((u||o)&&c)throw new vd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new vd("Can't mix ordinal dates with month/day");let f;a?f=mT({...A2(this.c,r,i),...n},r,i):He(n.ordinal)?(f={...this.toObject(),...n},He(n.day)&&(f.day=Math.min(M2(f.year,f.month),f.day))):f=gT({...h6(this.c),...n});const[d,h]=R2(f,this.o,this.zone);return xc(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return xc(this,rO(this,n))}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t).negate();return xc(this,rO(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=ft.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:o}=this;o<a&&(r.weekNumber=this.weekNumber-1),r.weekday=a}else r.weekday=1;if(i==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?gr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):_6}toLocaleString(t=_2,n={}){return this.isValid?gr.create(this.loc.clone(n),t).formatDateTime(this):_6}toLocaleParts(t={}){return this.isValid?gr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=L2(o);const s=t==="extended";let l=S6(this,s,o);return B2.indexOf(o)>=3&&(l+="T"),l+=iO(this,s,n,r,i,a,o),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?S6(this,t==="extended",L2(n)):null}toISOWeekDate(){return P2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended",precision:s="milliseconds"}={}){return this.isValid?(s=L2(s),(i&&B2.indexOf(s)>=3?"T":"")+iO(this,o==="extended",n,t,r,a,s)):null}toRFC2822(){return P2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return P2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?S6(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),P2(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():_6}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return ft.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=Jse(n).map(ft.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=eue(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ye.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,r)<=i&&i<=a.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ye.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),lO(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?lO(t.base||Ye.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ye.isDateTime))throw new mr("min requires all arguments be DateTimes");return _T(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ye.isDateTime))throw new mr("max requires all arguments be DateTimes");return _T(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return KT(o,t,n)}static fromStringExplain(t,n,r={}){return Ye.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,a=kt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new QT(a,t)}static fromFormatParser(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);return c?Ye.invalid(c):Md(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return _2}static get DATE_MED(){return NF}static get DATE_MED_WITH_WEEKDAY(){return Cse}static get DATE_FULL(){return zF}static get DATE_HUGE(){return RF}static get TIME_SIMPLE(){return PF}static get TIME_WITH_SECONDS(){return BF}static get TIME_WITH_SHORT_OFFSET(){return LF}static get TIME_WITH_LONG_OFFSET(){return qF}static get TIME_24_SIMPLE(){return IF}static get TIME_24_WITH_SECONDS(){return jF}static get TIME_24_WITH_SHORT_OFFSET(){return UF}static get TIME_24_WITH_LONG_OFFSET(){return VF}static get DATETIME_SHORT(){return WF}static get DATETIME_SHORT_WITH_SECONDS(){return HF}static get DATETIME_MED(){return YF}static get DATETIME_MED_WITH_SECONDS(){return GF}static get DATETIME_MED_WITH_WEEKDAY(){return Sse}static get DATETIME_FULL(){return ZF}static get DATETIME_FULL_WITH_SECONDS(){return XF}static get DATETIME_HUGE(){return JF}static get DATETIME_HUGE_WITH_SECONDS(){return QF}}function K1(e){if(Ye.isDateTime(e))return e;if(e&&e.valueOf&&eu(e.valueOf()))return Ye.fromJSDate(e);if(e&&typeof e=="object")return Ye.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function qa(e,t,n=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?n?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return n?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function Xt(e,t){return e.toString().padStart(t,"0")}function q2(e,t,n){t||(t="second");const r=Ye.fromJSDate(e,{zone:n??"UTC"});switch(t){case"year":return`${Xt(r.year,4)}`;case"quarter":{const i=Xt(r.year,4),a=Math.floor(r.month/3)+1;return`${i}-Q${a}`}case"month":{const i=Xt(r.year,2),a=Xt(r.month,2);return`${i}-${a}`}case"week":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}-WK`}case"day":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}`}case"hour":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2);return`${i}-${a}-${o} ${s}`}case"minute":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2);return`${i}-${a}-${o} ${s}:${l}`}case"second":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2),u=Xt(r.second,2);return`${i}-${a}-${o} ${s}:${l}:${u}`}default:throw new Error("Unknown timeframe.")}}function cO(e,t){const n=Ye.fromJSDate(e,{zone:t??"UTC"});return new Date(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond)}let E6;const vue=100;async function I2(){const e=Date.now();if(!(E6&&e<E6+vue))return E6=e,new Promise(t=>{setTimeout(t,0)})}function ra(e,t){const n=e.createElement("span");return n.classList.add("error"),n.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),n}function ep(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function fO(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
|
|
1
|
+
import{V as Eie}from"./index-BJUsHnGO.js";function FJe(b2,x2){for(var sn=0;sn<x2.length;sn++){const ht=x2[sn];if(typeof ht!="string"&&!Array.isArray(ht)){for(const Ls in ht)if(Ls!=="default"&&!(Ls in b2)){const gd=Object.getOwnPropertyDescriptor(ht,Ls);gd&&Object.defineProperty(b2,Ls,gd.get?gd:{enumerable:!0,get:()=>ht[Ls]})}}}return Object.freeze(Object.defineProperty(b2,Symbol.toStringTag,{value:"Module"}))}var y2={exports:{}},TJe=y2.exports,Mie;function OJe(){return Mie||(Mie=1,(function(b2,x2){(function(sn,ht){ht(x2)})(TJe,function(sn){class ht{constructor(){this.tagOptionExtractors={}}addExtractor(t,...n){for(const r in n)this.tagOptionExtractors[n[r]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const n={};for(const r in this.tagOptionExtractors){const i=t.tag(r);i&&this.tagOptionExtractors[r](n,i)}return n}}function Ls(e){if(e.isArray())return e.values.map(t=>Ls(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const n of e.columns)t[n.field.name]=Ls(n);return t}return null}class gd{constructor(t){this.document=t}async render(t){const n=this.document.createElement("pre");return n.appendChild(this.document.createTextNode(JSON.stringify(Ls(t),void 0,2))),n}}const Gx=class extends ht{create(t,n,r,i,a){return new gd(t)}get rendererName(){return"json"}};Gx.instance=new Gx;let $ie=Gx;class Fie{constructor(t,n,r){this.document=t,this.options=n,this.tagged=r}}class w2 extends Fie{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,n,r,i,a){return new t(n,i,a)}}var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Eie<"u"?Eie:typeof self<"u"?self:{};function Tie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oie(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Nie=Oie;function zie(e){return function(t){return e?.[t]}}var Rie=zie,Pie=Rie,Bie={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lie=Pie(Bie),qie=Lie,Iie=typeof pr=="object"&&pr&&pr.Object===Object&&pr,jie=Iie,Uie=jie,Vie=typeof self=="object"&&self&&self.Object===Object&&self,Wie=Uie||Vie||Function("return this")(),Hie=Wie,Yie=Hie,Gie=Yie.Symbol,Zx=Gie;function Zie(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Xie=Zie,Jie=Array.isArray,Qie=Jie,tF=Zx,nF=Object.prototype,Kie=nF.hasOwnProperty,eae=nF.toString,V1=tF?tF.toStringTag:void 0;function tae(e){var t=Kie.call(e,V1),n=e[V1];try{e[V1]=void 0;var r=!0}catch{}var i=eae.call(e);return r&&(t?e[V1]=n:delete e[V1]),i}var nae=tae,rae=Object.prototype,iae=rae.toString;function aae(e){return iae.call(e)}var oae=aae,rF=Zx,sae=nae,lae=oae,uae="[object Null]",cae="[object Undefined]",iF=rF?rF.toStringTag:void 0;function fae(e){return e==null?e===void 0?cae:uae:iF&&iF in Object(e)?sae(e):lae(e)}var dae=fae;function hae(e){return e!=null&&typeof e=="object"}var pae=hae,mae=dae,gae=pae,yae="[object Symbol]";function vae(e){return typeof e=="symbol"||gae(e)&&mae(e)==yae}var bae=vae,aF=Zx,xae=Xie,wae=Qie,_ae=bae,oF=aF?aF.prototype:void 0,sF=oF?oF.toString:void 0;function lF(e){if(typeof e=="string")return e;if(wae(e))return xae(e,lF)+"";if(_ae(e))return sF?sF.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kae=lF,Cae=kae;function Sae(e){return e==null?"":Cae(e)}var Xx=Sae,Aae=qie,Eae=Xx,Mae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dae="\\u0300-\\u036f",$ae="\\ufe20-\\ufe2f",Fae="\\u20d0-\\u20ff",Tae=Dae+$ae+Fae,Oae="["+Tae+"]",Nae=RegExp(Oae,"g");function zae(e){return e=Eae(e),e&&e.replace(Mae,Aae).replace(Nae,"")}var Rae=zae,Pae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Bae(e){return e.match(Pae)||[]}var Lae=Bae,qae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Iae(e){return qae.test(e)}var jae=Iae,uF="\\ud800-\\udfff",Uae="\\u0300-\\u036f",Vae="\\ufe20-\\ufe2f",Wae="\\u20d0-\\u20ff",Hae=Uae+Vae+Wae,cF="\\u2700-\\u27bf",fF="a-z\\xdf-\\xf6\\xf8-\\xff",Yae="\\xac\\xb1\\xd7\\xf7",Gae="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zae="\\u2000-\\u206f",Xae=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dF="A-Z\\xc0-\\xd6\\xd8-\\xde",Jae="\\ufe0e\\ufe0f",hF=Yae+Gae+Zae+Xae,pF="['’]",mF="["+hF+"]",Qae="["+Hae+"]",gF="\\d+",Kae="["+cF+"]",yF="["+fF+"]",vF="[^"+uF+hF+gF+cF+fF+dF+"]",eoe="\\ud83c[\\udffb-\\udfff]",toe="(?:"+Qae+"|"+eoe+")",noe="[^"+uF+"]",bF="(?:\\ud83c[\\udde6-\\uddff]){2}",xF="[\\ud800-\\udbff][\\udc00-\\udfff]",yd="["+dF+"]",roe="\\u200d",wF="(?:"+yF+"|"+vF+")",ioe="(?:"+yd+"|"+vF+")",_F="(?:"+pF+"(?:d|ll|m|re|s|t|ve))?",kF="(?:"+pF+"(?:D|LL|M|RE|S|T|VE))?",CF=toe+"?",SF="["+Jae+"]?",aoe="(?:"+roe+"(?:"+[noe,bF,xF].join("|")+")"+SF+CF+")*",ooe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",soe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",loe=SF+CF+aoe,uoe="(?:"+[Kae,bF,xF].join("|")+")"+loe,coe=RegExp([yd+"?"+yF+"+"+_F+"(?="+[mF,yd,"$"].join("|")+")",ioe+"+"+kF+"(?="+[mF,yd+wF,"$"].join("|")+")",yd+"?"+wF+"+"+_F,yd+"+"+kF,soe,ooe,gF,uoe].join("|"),"g");function foe(e){return e.match(coe)||[]}var doe=foe,hoe=Lae,poe=jae,moe=Xx,goe=doe;function yoe(e,t,n){return e=moe(e),t=n?void 0:t,t===void 0?poe(e)?goe(e):hoe(e):e.match(t)||[]}var voe=yoe,boe=Nie,xoe=Rae,woe=voe,_oe="['’]",koe=RegExp(_oe,"g");function Coe(e){return function(t){return boe(woe(xoe(t).replace(koe,"")),e,"")}}var Soe=Coe;function Aoe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Eoe=Aoe,Moe=Eoe;function Doe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Moe(e,t,n)}var $oe=Doe,Foe="\\ud800-\\udfff",Toe="\\u0300-\\u036f",Ooe="\\ufe20-\\ufe2f",Noe="\\u20d0-\\u20ff",zoe=Toe+Ooe+Noe,Roe="\\ufe0e\\ufe0f",Poe="\\u200d",Boe=RegExp("["+Poe+Foe+zoe+Roe+"]");function Loe(e){return Boe.test(e)}var AF=Loe;function qoe(e){return e.split("")}var Ioe=qoe,EF="\\ud800-\\udfff",joe="\\u0300-\\u036f",Uoe="\\ufe20-\\ufe2f",Voe="\\u20d0-\\u20ff",Woe=joe+Uoe+Voe,Hoe="\\ufe0e\\ufe0f",Yoe="["+EF+"]",Jx="["+Woe+"]",Qx="\\ud83c[\\udffb-\\udfff]",Goe="(?:"+Jx+"|"+Qx+")",MF="[^"+EF+"]",DF="(?:\\ud83c[\\udde6-\\uddff]){2}",$F="[\\ud800-\\udbff][\\udc00-\\udfff]",Zoe="\\u200d",FF=Goe+"?",TF="["+Hoe+"]?",Xoe="(?:"+Zoe+"(?:"+[MF,DF,$F].join("|")+")"+TF+FF+")*",Joe=TF+FF+Xoe,Qoe="(?:"+[MF+Jx+"?",Jx,DF,$F,Yoe].join("|")+")",Koe=RegExp(Qx+"(?="+Qx+")|"+Qoe+Joe,"g");function ese(e){return e.match(Koe)||[]}var tse=ese,nse=Ioe,rse=AF,ise=tse;function ase(e){return rse(e)?ise(e):nse(e)}var ose=ase,sse=$oe,lse=AF,use=ose,cse=Xx;function fse(e){return function(t){t=cse(t);var n=lse(t)?use(t):void 0,r=n?n[0]:t.charAt(0),i=n?sse(n,1).join(""):t.slice(1);return r[e]()+i}}var dse=fse,hse=dse,pse=hse("toUpperCase"),mse=pse,gse=Soe,yse=mse,vse=gse(function(e,t,n){return e+(n?" ":"")+yse(t)}),bse=vse;const xse=Tie(bse);class yc extends Error{}class wse extends yc{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class _se extends yc{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class kse extends yc{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class vd extends yc{}class OF extends yc{constructor(t){super(`Invalid unit ${t}`)}}class mr extends yc{}class Ql extends yc{constructor(){super("Zone is an abstract class")}}const ye="numeric",Ra="short",Ri="long",_2={year:ye,month:ye,day:ye},NF={year:ye,month:Ra,day:ye},Cse={year:ye,month:Ra,day:ye,weekday:Ra},zF={year:ye,month:Ri,day:ye},RF={year:ye,month:Ri,day:ye,weekday:Ri},PF={hour:ye,minute:ye},BF={hour:ye,minute:ye,second:ye},LF={hour:ye,minute:ye,second:ye,timeZoneName:Ra},qF={hour:ye,minute:ye,second:ye,timeZoneName:Ri},IF={hour:ye,minute:ye,hourCycle:"h23"},jF={hour:ye,minute:ye,second:ye,hourCycle:"h23"},UF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ra},VF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ri},WF={year:ye,month:ye,day:ye,hour:ye,minute:ye},HF={year:ye,month:ye,day:ye,hour:ye,minute:ye,second:ye},YF={year:ye,month:Ra,day:ye,hour:ye,minute:ye},GF={year:ye,month:Ra,day:ye,hour:ye,minute:ye,second:ye},Sse={year:ye,month:Ra,day:ye,weekday:Ra,hour:ye,minute:ye},ZF={year:ye,month:Ri,day:ye,hour:ye,minute:ye,timeZoneName:Ra},XF={year:ye,month:Ri,day:ye,hour:ye,minute:ye,second:ye,timeZoneName:Ra},JF={year:ye,month:Ri,day:ye,weekday:Ri,hour:ye,minute:ye,timeZoneName:Ri},QF={year:ye,month:Ri,day:ye,weekday:Ri,hour:ye,minute:ye,second:ye,timeZoneName:Ri};class W1{get type(){throw new Ql}get name(){throw new Ql}get ianaName(){return this.name}get isUniversal(){throw new Ql}offsetName(t,n){throw new Ql}formatOffset(t,n){throw new Ql}offset(t){throw new Ql}equals(t){throw new Ql}get isValid(){throw new Ql}}let Kx=null;class k2 extends W1{static get instance(){return Kx===null&&(Kx=new k2),Kx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return CT(t,n,r)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const e6=new Map;function Ase(e){let t=e6.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),e6.set(e,t)),t}const Ese={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Mse(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u,c]=r;return[o,i,a,s,l,u,c]}function Dse(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],s=Ese[a];a==="era"?r[s]=o:He(s)||(r[s]=parseInt(o,10))}return r}const t6=new Map;class qs extends W1{static create(t){let n=t6.get(t);return n===void 0&&t6.set(t,n=new qs(t)),n}static resetCache(){t6.clear(),e6.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=qs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return CT(t,n,r,this.name)}formatOffset(t,n){return G1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=Ase(this.name);let[i,a,o,s,l,u,c]=r.formatToParts?Dse(r,n):Mse(r,n);s==="BC"&&(i=-Math.abs(i)+1);const f=D2({year:i,month:a,day:o,hour:l===24?0:l,minute:u,second:c,millisecond:0});let d=+n;const h=d%1e3;return d-=h>=0?h:1e3+h,(f-d)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let KF={};function $se(e,t={}){const n=JSON.stringify([e,t]);let r=KF[n];return r||(r=new Intl.ListFormat(e,t),KF[n]=r),r}const n6=new Map;function r6(e,t={}){const n=JSON.stringify([e,t]);let r=n6.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),n6.set(n,r)),r}const i6=new Map;function Fse(e,t={}){const n=JSON.stringify([e,t]);let r=i6.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),i6.set(n,r)),r}const a6=new Map;function Tse(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=a6.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),a6.set(i,a)),a}let C2=null;function Ose(){return C2||(C2=new Intl.DateTimeFormat().resolvedOptions().locale,C2)}const o6=new Map;function eT(e){let t=o6.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),o6.set(e,t)),t}const s6=new Map;function Nse(e){let t=s6.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...tT,...t}),s6.set(e,t)}return t}function zse(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=r6(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=r6(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function Rse(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Pse(e){const t=[];for(let n=1;n<=12;n++){const r=Ye.utc(2009,n,1);t.push(e(r))}return t}function Bse(e){const t=[];for(let n=1;n<=7;n++){const r=Ye.utc(2016,11,13+n);t.push(e(r))}return t}function S2(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function Lse(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||eT(e.locale).numberingSystem==="latn"}class qse{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=Fse(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):g6(t,3);return An(n,this.padTo)}}}class Ise{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&qs.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=r6(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class jse{constructor(t,n,r){this.opts={style:"long",...r},!n&&xT()&&(this.rtf=Tse(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):cle(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const tT={firstDay:1,minimalDays:4,weekend:[6,7]};class kt{static fromOpts(t){return kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){const o=t||pn.defaultLocale,s=o||(a?"en-US":Ose()),l=n||pn.defaultNumberingSystem,u=r||pn.defaultOutputCalendar,c=p6(i)||pn.defaultWeekSettings;return new kt(s,l,u,c,o)}static resetCache(){C2=null,n6.clear(),i6.clear(),a6.clear(),o6.clear(),s6.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return kt.create(t,n,r,i)}constructor(t,n,r,i,a){const[o,s,l]=zse(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Rse(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Lse(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,p6(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return S2(this,t,ET,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const o=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[a][t]=Pse(o)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return S2(this,t,$T,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Bse(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return S2(this,void 0,()=>FT,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ye.utc(2016,11,13,9),Ye.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return S2(this,t,TT,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ye.utc(-40,1,1),Ye.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new qse(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Ise(t,this.intl,n)}relFormatter(t={}){return new jse(this.intl,this.isEnglish(),t)}listFormatter(t={}){return $se(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||eT(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:wT()?Nse(this.locale):tT}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let l6=null;class Rr extends W1{static get utcInstance(){return l6===null&&(l6=new Rr(0)),l6}static instance(t){return t===0?Rr.utcInstance:new Rr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rr($2(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${G1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${G1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return G1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Use extends W1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Kl(e,t){if(He(e)||e===null)return t;if(e instanceof W1)return e;if(Zse(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?k2.instance:n==="utc"||n==="gmt"?Rr.utcInstance:Rr.parseSpecifier(n)||qs.create(e)}else return eu(e)?Rr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Use(e)}const u6={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},nT={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Vse=u6.hanidec.replace(/[\[|\]]/g,"").split("");function Wse(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(u6.hanidec)!==-1)t+=Vse.indexOf(e[n]);else for(const i in nT){const[a,o]=nT[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}const c6=new Map;function Hse(){c6.clear()}function Pa({numberingSystem:e},t=""){const n=e||"latn";let r=c6.get(n);r===void 0&&(r=new Map,c6.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${u6[n]}${t}`),r.set(t,i)),i}let rT=()=>Date.now(),iT="system",aT=null,oT=null,sT=null,lT=60,uT,cT=null;class pn{static get now(){return rT}static set now(t){rT=t}static set defaultZone(t){iT=t}static get defaultZone(){return Kl(iT,k2.instance)}static get defaultLocale(){return aT}static set defaultLocale(t){aT=t}static get defaultNumberingSystem(){return oT}static set defaultNumberingSystem(t){oT=t}static get defaultOutputCalendar(){return sT}static set defaultOutputCalendar(t){sT=t}static get defaultWeekSettings(){return cT}static set defaultWeekSettings(t){cT=p6(t)}static get twoDigitCutoffYear(){return lT}static set twoDigitCutoffYear(t){lT=t%100}static get throwOnInvalid(){return uT}static set throwOnInvalid(t){uT=t}static resetCaches(){kt.resetCache(),qs.resetCache(),Ye.resetCache(),Hse()}}class Ba{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fT=[0,31,59,90,120,151,181,212,243,273,304,334],dT=[0,31,60,91,121,152,182,213,244,274,305,335];function ea(e,t){return new Ba("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function f6(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function hT(e,t,n){return n+(H1(e)?dT:fT)[t-1]}function pT(e,t){const n=H1(e)?dT:fT,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function d6(e,t){return(e-t+7)%7+1}function A2(e,t=4,n=1){const{year:r,month:i,day:a}=e,o=hT(r,i,a),s=d6(f6(r,i,a),n);let l=Math.floor((o-s+14-t)/7),u;return l<1?(u=r-1,l=Y1(u,t,n)):l>Y1(r,t,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:s,...T2(e)}}function mT(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:a}=e,o=d6(f6(r,1,t),n),s=xd(r);let l=i*7+a-o-7+t,u;l<1?(u=r-1,l+=xd(u)):l>s?(u=r+1,l-=xd(r)):u=r;const{month:c,day:f}=pT(u,l);return{year:u,month:c,day:f,...T2(e)}}function h6(e){const{year:t,month:n,day:r}=e,i=hT(t,n,r);return{year:t,ordinal:i,...T2(e)}}function gT(e){const{year:t,ordinal:n}=e,{month:r,day:i}=pT(t,n);return{year:t,month:r,day:i,...T2(e)}}function yT(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new vd("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Yse(e,t=4,n=1){const r=E2(e.weekYear),i=ta(e.weekNumber,1,Y1(e.weekYear,t,n)),a=ta(e.weekday,1,7);return r?i?a?!1:ea("weekday",e.weekday):ea("week",e.weekNumber):ea("weekYear",e.weekYear)}function Gse(e){const t=E2(e.year),n=ta(e.ordinal,1,xd(e.year));return t?n?!1:ea("ordinal",e.ordinal):ea("year",e.year)}function vT(e){const t=E2(e.year),n=ta(e.month,1,12),r=ta(e.day,1,M2(e.year,e.month));return t?n?r?!1:ea("day",e.day):ea("month",e.month):ea("year",e.year)}function bT(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=ta(t,0,23)||t===24&&n===0&&r===0&&i===0,o=ta(n,0,59),s=ta(r,0,59),l=ta(i,0,999);return a?o?s?l?!1:ea("millisecond",i):ea("second",r):ea("minute",n):ea("hour",t)}function He(e){return typeof e>"u"}function eu(e){return typeof e=="number"}function E2(e){return typeof e=="number"&&e%1===0}function Zse(e){return typeof e=="string"}function Xse(e){return Object.prototype.toString.call(e)==="[object Date]"}function xT(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function wT(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Jse(e){return Array.isArray(e)?e:[e]}function _T(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Qse(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function bd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p6(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!ta(e.firstDay,1,7)||!ta(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ta(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ta(e,t,n){return E2(e)&&e>=t&&e<=n}function Kse(e,t){return e-t*Math.floor(e/t)}function An(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function tu(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function vc(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function m6(e){if(!(He(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function g6(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function H1(e){return e%4===0&&(e%100!==0||e%400===0)}function xd(e){return H1(e)?366:365}function M2(e,t){const n=Kse(t-1,12)+1,r=e+(t-n)/12;return n===2?H1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function D2(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function kT(e,t,n){return-d6(f6(e,1,t),n)+t-1}function Y1(e,t=4,n=1){const r=kT(e,t,n),i=kT(e+1,t,n);return(xd(e)-r+i)/7}function y6(e){return e>99?e:e>pn.twoDigitCutoffYear?1900+e:2e3+e}function CT(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function $2(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function ST(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new mr(`Invalid unit value ${e}`);return t}function F2(e,t){const n={};for(const r in e)if(bd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=ST(i)}return n}function G1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${An(n,2)}:${An(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${An(n,2)}${An(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function T2(e){return Qse(e,["hour","minute","second","millisecond"])}const ele=["January","February","March","April","May","June","July","August","September","October","November","December"],AT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tle=["J","F","M","A","M","J","J","A","S","O","N","D"];function ET(e){switch(e){case"narrow":return[...tle];case"short":return[...AT];case"long":return[...ele];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const MT=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],DT=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],nle=["M","T","W","T","F","S","S"];function $T(e){switch(e){case"narrow":return[...nle];case"short":return[...DT];case"long":return[...MT];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const FT=["AM","PM"],rle=["Before Christ","Anno Domini"],ile=["BC","AD"],ale=["B","A"];function TT(e){switch(e){case"narrow":return[...ale];case"short":return[...ile];case"long":return[...rle];default:return null}}function ole(e){return FT[e.hour<12?0:1]}function sle(e,t){return $T(t)[e.weekday-1]}function lle(e,t){return ET(t)[e.month-1]}function ule(e,t){return TT(t)[e.year<0?0:1]}function cle(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function OT(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const fle={D:_2,DD:NF,DDD:zF,DDDD:RF,t:PF,tt:BF,ttt:LF,tttt:qF,T:IF,TT:jF,TTT:UF,TTTT:VF,f:WF,ff:YF,fff:ZF,ffff:JF,F:HF,FF:GF,FFF:XF,FFFF:QF};class gr{static create(t,n={}){return new gr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?((r.length>0||i)&&a.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return fle[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return An(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>r?ole(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>r?lle(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),u=(h,p)=>r?sle(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),c=h=>{const p=gr.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?ule(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(h)}};return OT(gr.parseFormat(n),d)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=c=>{switch(c[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(c,f)=>d=>{const h=i(d);if(h){const p=f.isNegativeDuration&&h!==f.largestUnit?r:1;let m;return this.opts.signMode==="negativeLargestOnly"&&h!==f.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(h)*p,d.length,m)}else return d},o=gr.parseFormat(n),s=o.reduce((c,{literal:f,val:d})=>f?c:c.concat(d),[]),l=t.shiftTo(...s.map(i).filter(c=>c)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return OT(o,a(l,u))}}const NT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function _d(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[{...n,...o},s||r,l]},[{},null,1]).slice(0,2)}function kd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function zT(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=tu(t[n+i]);return[r,null,n+i]}}const RT=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,dle=`(?:${RT.source}?(?:\\[(${NT.source})\\])?)?`,v6=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,PT=RegExp(`${v6.source}${dle}`),b6=RegExp(`(?:[Tt]${PT.source})?`),hle=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ple=/(\d{4})-?W(\d\d)(?:-?(\d))?/,mle=/(\d{4})-?(\d{3})/,gle=zT("weekYear","weekNumber","weekDay"),yle=zT("year","ordinal"),vle=/(\d{4})-(\d\d)-(\d\d)/,BT=RegExp(`${v6.source} ?(?:${RT.source}|(${NT.source}))?`),ble=RegExp(`(?: ${BT.source})?`);function Cd(e,t,n){const r=e[t];return He(r)?n:tu(r)}function xle(e,t){return[{year:Cd(e,t),month:Cd(e,t+1,1),day:Cd(e,t+2,1)},null,t+3]}function Sd(e,t){return[{hours:Cd(e,t,0),minutes:Cd(e,t+1,0),seconds:Cd(e,t+2,0),milliseconds:m6(e[t+3])},null,t+4]}function Z1(e,t){const n=!e[t]&&!e[t+1],r=$2(e[t+1],e[t+2]),i=n?null:Rr.instance(r);return[{},i,t+3]}function X1(e,t){const n=e[t]?qs.create(e[t]):null;return[{},n,t+1]}const wle=RegExp(`^T?${v6.source}$`),_le=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function kle(e){const[t,n,r,i,a,o,s,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&c)?-h:h;return[{years:d(vc(n)),months:d(vc(r)),weeks:d(vc(i)),days:d(vc(a)),hours:d(vc(o)),minutes:d(vc(s)),seconds:d(vc(l),l==="-0"),milliseconds:d(m6(u),f)}]}const Cle={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function x6(e,t,n,r,i,a,o){const s={year:t.length===2?y6(tu(t)):tu(t),month:AT.indexOf(n)+1,day:tu(r),hour:tu(i),minute:tu(a)};return o&&(s.second=tu(o)),e&&(s.weekday=e.length>3?MT.indexOf(e)+1:DT.indexOf(e)+1),s}const Sle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ale(e){const[,t,n,r,i,a,o,s,l,u,c,f]=e,d=x6(t,i,r,n,a,o,s);let h;return l?h=Cle[l]:u?h=0:h=$2(c,f),[d,new Rr(h)]}function Ele(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Mle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Dle=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$le=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function LT(e){const[,t,n,r,i,a,o,s]=e;return[x6(t,i,r,n,a,o,s),Rr.utcInstance]}function Fle(e){const[,t,n,r,i,a,o,s]=e;return[x6(t,s,n,r,i,a,o),Rr.utcInstance]}const Tle=wd(hle,b6),Ole=wd(ple,b6),Nle=wd(mle,b6),zle=wd(PT),qT=_d(xle,Sd,Z1,X1),Rle=_d(gle,Sd,Z1,X1),Ple=_d(yle,Sd,Z1,X1),Ble=_d(Sd,Z1,X1);function Lle(e){return kd(e,[Tle,qT],[Ole,Rle],[Nle,Ple],[zle,Ble])}function qle(e){return kd(Ele(e),[Sle,Ale])}function Ile(e){return kd(e,[Mle,LT],[Dle,LT],[$le,Fle])}function jle(e){return kd(e,[_le,kle])}const Ule=_d(Sd);function Vle(e){return kd(e,[wle,Ule])}const Wle=wd(vle,ble),Hle=wd(BT),Yle=_d(Sd,Z1,X1);function Gle(e){return kd(e,[Wle,qT],[Hle,Yle])}const IT="Invalid Duration",jT={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Zle={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...jT},na=146097/400,Ad=146097/4800,Xle={years:{quarters:4,months:12,weeks:na/7,days:na,hours:na*24,minutes:na*24*60,seconds:na*24*60*60,milliseconds:na*24*60*60*1e3},quarters:{months:3,weeks:na/28,days:na/4,hours:na*24/4,minutes:na*24*60/4,seconds:na*24*60*60/4,milliseconds:na*24*60*60*1e3/4},months:{weeks:Ad/7,days:Ad,hours:Ad*24,minutes:Ad*24*60,seconds:Ad*24*60*60,milliseconds:Ad*24*60*60*1e3},...jT},bc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Jle=bc.slice(0).reverse();function Is(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ft(r)}function UT(e,t){let n=t.milliseconds??0;for(const r of Jle.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function VT(e,t){const n=UT(e,t)<0?-1:1;bc.reduceRight((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),bc.reduce((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]%1;t[r]-=a,t[i]+=a*e[r][i]}return i},null)}function WT(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class ft{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Xle:Zle;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return ft.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ft({values:F2(t,ft.normalizeUnit),loc:kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(eu(t))return ft.fromMillis(t);if(ft.isDuration(t))return t;if(typeof t=="object")return ft.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=jle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Vle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new kse(r);return new ft({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new OF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?gr.create(this.loc,r).formatDurationFromString(this,t):IT}toHuman(t={}){if(!this.isValid)return IT;const n=t.showZeros!==!1,r=bc.map(i=>{const a=this.values[i];return He(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=g6(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ye.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?UT(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t),r={};for(const i of bc)(bd(n.values,i)||bd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Is(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=ST(t(this.values[r],r));return Is(this,{values:n},!0)}get(t){return this[ft.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...F2(t,ft.normalizeUnit)};return Is(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Is(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return VT(this.matrix,t),Is(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=WT(this.normalize().shiftToAll().toObject());return Is(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>ft.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of bc)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;eu(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=(s*1e3-l*1e3)/1e3}else eu(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return VT(this.matrix,n),Is(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Is(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=WT(this.values);return Is(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of bc)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Ed="Invalid Interval";function Qle(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new _se(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=K1(t),i=K1(n);return Qle(r,i)??new mn({start:r,end:i})}static after(t,n){const r=ft.fromDurationLike(n),i=K1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=ft.fromDurationLike(n),i=K1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=Ye.fromISO(r,n),o=a.isValid}catch{o=!1}let s,l;try{s=Ye.fromISO(i,n),l=s.isValid}catch{l=!1}if(o&&l)return mn.fromDateTimes(a,s);if(o){const u=ft.fromISO(i,n);if(u.isValid)return mn.after(a,u)}else if(l){const u=ft.fromISO(r,n);if(u.isValid)return mn.before(s,u)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(K1).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,s=+o>+this.e?this.e:o;r.push(mn.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=ft.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));a=+s>+this.e?this.e:s,o.push(mn.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(mn.fromDateTimes(n,l.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ed}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=_2,n={}){return this.isValid?gr.create(this.s.loc.clone(n),t).formatInterval(this):Ed}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ed}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ed}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ed}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Ed}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):ft.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}let O2=class{static hasDST(e=pn.defaultZone){const t=Ye.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return qs.isValidZone(e)}static normalizeZone(e){return Kl(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return kt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return kt.create(t,null,"gregory").eras(e)}static features(){return{relative:xT(),localeWeek:wT()}}};function HT(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(ft.fromMillis(r).as("days"))}function Kle(e,t,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=HT(l,u);return(c-c%7)/7}],["days",HT]],i={},a=e;let o,s;for(const[l,u]of r)n.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,e=a.plus(i),e>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}function eue(e,t,n,r){let[i,a,o,s]=Kle(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=ft.fromObject(a,r);return u.length>0?ft.fromMillis(l,r).shiftTo(...u).plus(c):c}const tue="missing Intl.DateTimeFormat.formatToParts support";function xt(e,t=n=>n){return{regex:e,deser:([n])=>t(Wse(n))}}const YT="[ ]",GT=new RegExp(YT,"g");function nue(e){return e.replace(/\./g,"\\.?").replace(GT,YT)}function ZT(e){return e.replace(/\./g,"").replace(GT," ").toLowerCase()}function La(e,t){return e===null?null:{regex:RegExp(e.map(nue).join("|")),deser:([n])=>e.findIndex(r=>ZT(n)===ZT(r))+t}}function XT(e,t){return{regex:e,deser:([,n,r])=>$2(n,r),groups:t}}function N2(e){return{regex:e,deser:([t])=>t}}function rue(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function iue(e,t){const n=Pa(t),r=Pa(t,"{2}"),i=Pa(t,"{3}"),a=Pa(t,"{4}"),o=Pa(t,"{6}"),s=Pa(t,"{1,2}"),l=Pa(t,"{1,3}"),u=Pa(t,"{1,6}"),c=Pa(t,"{1,9}"),f=Pa(t,"{2,4}"),d=Pa(t,"{4,6}"),h=m=>({regex:RegExp(rue(m.val)),deser:([g])=>g,literal:!0}),p=(m=>{if(e.literal)return h(m);switch(m.val){case"G":return La(t.eras("short"),0);case"GG":return La(t.eras("long"),0);case"y":return xt(u);case"yy":return xt(f,y6);case"yyyy":return xt(a);case"yyyyy":return xt(d);case"yyyyyy":return xt(o);case"M":return xt(s);case"MM":return xt(r);case"MMM":return La(t.months("short",!0),1);case"MMMM":return La(t.months("long",!0),1);case"L":return xt(s);case"LL":return xt(r);case"LLL":return La(t.months("short",!1),1);case"LLLL":return La(t.months("long",!1),1);case"d":return xt(s);case"dd":return xt(r);case"o":return xt(l);case"ooo":return xt(i);case"HH":return xt(r);case"H":return xt(s);case"hh":return xt(r);case"h":return xt(s);case"mm":return xt(r);case"m":return xt(s);case"q":return xt(s);case"qq":return xt(r);case"s":return xt(s);case"ss":return xt(r);case"S":return xt(l);case"SSS":return xt(i);case"u":return N2(c);case"uu":return N2(s);case"uuu":return xt(n);case"a":return La(t.meridiems(),0);case"kkkk":return xt(a);case"kk":return xt(f,y6);case"W":return xt(s);case"WW":return xt(r);case"E":case"c":return xt(n);case"EEE":return La(t.weekdays("short",!1),1);case"EEEE":return La(t.weekdays("long",!1),1);case"ccc":return La(t.weekdays("short",!0),1);case"cccc":return La(t.weekdays("long",!0),1);case"Z":case"ZZ":return XT(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return XT(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return N2(/[a-z_+-/]{1,256}?/i);case" ":return N2(/[^\S\n\r]/);default:return h(m)}})(e)||{invalidReason:tue};return p.token=e,p}const aue={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function oue(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let s=aue[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function sue(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function lue(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(bd(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function uue(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return He(e.z)||(n=qs.create(e.z)),He(e.Z)||(n||(n=new Rr(e.Z)),r=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=m6(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n,r]}let w6=null;function cue(){return w6||(w6=Ye.fromMillis(1555555555555)),w6}function fue(e,t){if(e.literal)return e;const n=gr.macroTokenToFormatOpts(e.val),r=eO(n,t);return r==null||r.includes(void 0)?e:r}function JT(e,t){return Array.prototype.concat(...e.map(n=>fue(n,t)))}class QT{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=JT(gr.parseFormat(n),t),this.units=this.tokens.map(r=>iue(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=sue(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=lue(t,this.regex,this.handlers),[i,a,o]=r?uue(r):[null,null,void 0];if(bd(r,"a")&&bd(r,"H"))throw new vd("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:a,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function KT(e,t,n){return new QT(e,n).explainFromTokens(t)}function due(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=KT(e,t,n);return[r,i,a,o]}function eO(e,t){if(!e)return null;const n=gr.create(t,e).dtFormatter(cue()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(a=>oue(a,e,i))}const _6="Invalid DateTime",tO=864e13;function J1(e){return new Ba("unsupported zone",`the zone "${e.name}" is not supported`)}function k6(e){return e.weekData===null&&(e.weekData=A2(e.c)),e.weekData}function C6(e){return e.localWeekData===null&&(e.localWeekData=A2(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function xc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ye({...n,...t,old:n})}function nO(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function z2(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function R2(e,t,n){return nO(D2(e),t,n)}function rO(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,M2(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=ft.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=D2(a);let[l,u]=nO(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Md(e,t,n,r,i,a){const{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,u=Ye.fromObject(e,{...n,zone:l,specificOffset:a});return o?u:u.setZone(s)}else return Ye.invalid(new Ba("unparsable",`the input "${i}" can't be parsed as ${r}`))}function P2(e,t,n=!0){return e.isValid?gr.create(kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function S6(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=An(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=An(e.c.month),n==="month")return i;i+="-"}else if(i+=An(e.c.month),n==="month")return i;return i+=An(e.c.day),i}function iO(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=An(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=An(e.c.minute),o==="minute")break;s&&(l+=":",l+=An(e.c.second))}else{if(l+=An(e.c.minute),o==="minute")break;s&&(l+=An(e.c.second))}if(o==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=An(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?l+="Z":e.o<0?(l+="-",l+=An(Math.trunc(-e.o/60)),l+=":",l+=An(Math.trunc(-e.o%60))):(l+="+",l+=An(Math.trunc(e.o/60)),l+=":",l+=An(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const aO={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},hue={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},pue={ordinal:1,hour:0,minute:0,second:0,millisecond:0},B2=["year","month","day","hour","minute","second","millisecond"],mue=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gue=["year","ordinal","hour","minute","second","millisecond"];function L2(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new OF(e);return t}function oO(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return L2(e)}}function yue(e){if(Q1===void 0&&(Q1=pn.now()),e.type!=="iana")return e.offset(Q1);const t=e.name;let n=A6.get(t);return n===void 0&&(n=e.offset(Q1),A6.set(t,n)),n}function sO(e,t){const n=Kl(t.zone,pn.defaultZone);if(!n.isValid)return Ye.invalid(J1(n));const r=kt.fromObject(t);let i,a;if(He(e.year))i=pn.now();else{for(const l of B2)He(e[l])&&(e[l]=aO[l]);const o=vT(e)||bT(e);if(o)return Ye.invalid(o);const s=yue(n);[i,a]=R2(e,s,n)}return new Ye({ts:i,zone:n,loc:r,o:a})}function lO(e,t,n){const r=He(n.round)?!0:n.round,i=He(n.rounding)?"trunc":n.rounding,a=(s,l)=>(s=g6(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return a(o(n.unit),n.unit);for(const s of n.units){const l=o(s);if(Math.abs(l)>=1)return a(l,s)}return a(e>t?-0:0,n.units[n.units.length-1])}function uO(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let Q1;const A6=new Map;class Ye{constructor(t){const n=t.zone||pn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Ba("invalid input"):null)||(n.isValid?null:J1(n));this.ts=He(t.ts)?pn.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const o=eu(t.o)&&!t.old?t.o:n.offset(this.ts);i=z2(this.ts,o),r=Number.isNaN(i.year)?new Ba("invalid input"):null,i=r?null:i,a=r?null:o}this._zone=n,this.loc=t.loc||kt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Ye({})}static local(){const[t,n]=uO(arguments),[r,i,a,o,s,l,u]=n;return sO({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static utc(){const[t,n]=uO(arguments),[r,i,a,o,s,l,u]=n;return t.zone=Rr.utcInstance,sO({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=Xse(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ye.invalid("invalid input");const i=Kl(n.zone,pn.defaultZone);return i.isValid?new Ye({ts:r,zone:i,loc:kt.fromObject(n)}):Ye.invalid(J1(i))}static fromMillis(t,n={}){if(eu(t))return t<-tO||t>tO?Ye.invalid("Timestamp out of range"):new Ye({ts:t,zone:Kl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(eu(t))return new Ye({ts:t*1e3,zone:Kl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Kl(n.zone,pn.defaultZone);if(!r.isValid)return Ye.invalid(J1(r));const i=kt.fromObject(n),a=F2(t,oO),{minDaysInFirstWeek:o,startOfWeek:s}=yT(a,i),l=pn.now(),u=He(n.specificOffset)?r.offset(l):n.specificOffset,c=!He(a.ordinal),f=!He(a.year),d=!He(a.month)||!He(a.day),h=f||d,p=a.weekYear||a.weekNumber;if((h||c)&&p)throw new vd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new vd("Can't mix ordinal dates with month/day");const m=p||a.weekday&&!h;let g,y,v=z2(l,u);m?(g=mue,y=hue,v=A2(v,o,s)):c?(g=gue,y=pue,v=h6(v)):(g=B2,y=aO);let b=!1;for(const A of g){const E=a[A];He(E)?b?a[A]=y[A]:a[A]=v[A]:b=!0}const w=m?Yse(a,o,s):c?Gse(a):vT(a),_=w||bT(a);if(_)return Ye.invalid(_);const k=m?mT(a,o,s):c?gT(a):a,[x,C]=R2(k,u,r),S=new Ye({ts:x,zone:r,o:C,loc:i});return a.weekday&&h&&t.weekday!==S.weekday?Ye.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${S.toISO()}`):S.isValid?S:Ye.invalid(S.invalid)}static fromISO(t,n={}){const[r,i]=Lle(t);return Md(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=qle(t);return Md(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Ile(t);return Md(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u,c]=due(o,t,n);return c?Ye.invalid(c):Md(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ye.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=Gle(t);return Md(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof Ba?t:new Ba(t,n);if(pn.throwOnInvalid)throw new wse(r);return new Ye({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=eO(t,kt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return JT(gr.parseFormat(t),kt.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Q1=void 0,A6.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?k6(this).weekYear:NaN}get weekNumber(){return this.isValid?k6(this).weekNumber:NaN}get weekday(){return this.isValid?k6(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?C6(this).weekday:NaN}get localWeekNumber(){return this.isValid?C6(this).weekNumber:NaN}get localWeekYear(){return this.isValid?C6(this).weekYear:NaN}get ordinal(){return this.isValid?h6(this.c).ordinal:NaN}get monthShort(){return this.isValid?O2.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?O2.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?O2.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?O2.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=D2(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),s=this.zone.offset(r-a*n);if(o===s)return[this];const l=r-o*n,u=r-s*n,c=z2(l,o),f=z2(u,s);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[xc(this,{ts:l}),xc(this,{ts:u})]:[this]}get isInLeapYear(){return H1(this.year)}get daysInMonth(){return M2(this.year,this.month)}get daysInYear(){return this.isValid?xd(this.year):NaN}get weeksInWeekYear(){return this.isValid?Y1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Y1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=gr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Rr.instance(t),n)}toLocal(){return this.setZone(pn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Kl(t,pn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=R2(o,a,t)}return xc(this,{ts:i,zone:t})}else return Ye.invalid(J1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return xc(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=F2(t,oO),{minDaysInFirstWeek:r,startOfWeek:i}=yT(n,this.loc),a=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),o=!He(n.ordinal),s=!He(n.year),l=!He(n.month)||!He(n.day),u=s||l,c=n.weekYear||n.weekNumber;if((u||o)&&c)throw new vd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new vd("Can't mix ordinal dates with month/day");let f;a?f=mT({...A2(this.c,r,i),...n},r,i):He(n.ordinal)?(f={...this.toObject(),...n},He(n.day)&&(f.day=Math.min(M2(f.year,f.month),f.day))):f=gT({...h6(this.c),...n});const[d,h]=R2(f,this.o,this.zone);return xc(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return xc(this,rO(this,n))}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t).negate();return xc(this,rO(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=ft.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:o}=this;o<a&&(r.weekNumber=this.weekNumber-1),r.weekday=a}else r.weekday=1;if(i==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?gr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):_6}toLocaleString(t=_2,n={}){return this.isValid?gr.create(this.loc.clone(n),t).formatDateTime(this):_6}toLocaleParts(t={}){return this.isValid?gr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=L2(o);const s=t==="extended";let l=S6(this,s,o);return B2.indexOf(o)>=3&&(l+="T"),l+=iO(this,s,n,r,i,a,o),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?S6(this,t==="extended",L2(n)):null}toISOWeekDate(){return P2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended",precision:s="milliseconds"}={}){return this.isValid?(s=L2(s),(i&&B2.indexOf(s)>=3?"T":"")+iO(this,o==="extended",n,t,r,a,s)):null}toRFC2822(){return P2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return P2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?S6(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),P2(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():_6}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return ft.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=Jse(n).map(ft.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=eue(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ye.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,r)<=i&&i<=a.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ye.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),lO(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?lO(t.base||Ye.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ye.isDateTime))throw new mr("min requires all arguments be DateTimes");return _T(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ye.isDateTime))throw new mr("max requires all arguments be DateTimes");return _T(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return KT(o,t,n)}static fromStringExplain(t,n,r={}){return Ye.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,a=kt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new QT(a,t)}static fromFormatParser(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);return c?Ye.invalid(c):Md(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return _2}static get DATE_MED(){return NF}static get DATE_MED_WITH_WEEKDAY(){return Cse}static get DATE_FULL(){return zF}static get DATE_HUGE(){return RF}static get TIME_SIMPLE(){return PF}static get TIME_WITH_SECONDS(){return BF}static get TIME_WITH_SHORT_OFFSET(){return LF}static get TIME_WITH_LONG_OFFSET(){return qF}static get TIME_24_SIMPLE(){return IF}static get TIME_24_WITH_SECONDS(){return jF}static get TIME_24_WITH_SHORT_OFFSET(){return UF}static get TIME_24_WITH_LONG_OFFSET(){return VF}static get DATETIME_SHORT(){return WF}static get DATETIME_SHORT_WITH_SECONDS(){return HF}static get DATETIME_MED(){return YF}static get DATETIME_MED_WITH_SECONDS(){return GF}static get DATETIME_MED_WITH_WEEKDAY(){return Sse}static get DATETIME_FULL(){return ZF}static get DATETIME_FULL_WITH_SECONDS(){return XF}static get DATETIME_HUGE(){return JF}static get DATETIME_HUGE_WITH_SECONDS(){return QF}}function K1(e){if(Ye.isDateTime(e))return e;if(e&&e.valueOf&&eu(e.valueOf()))return Ye.fromJSDate(e);if(e&&typeof e=="object")return Ye.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function qa(e,t,n=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?n?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return n?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function Xt(e,t){return e.toString().padStart(t,"0")}function q2(e,t,n){t||(t="second");const r=Ye.fromJSDate(e,{zone:n??"UTC"});switch(t){case"year":return`${Xt(r.year,4)}`;case"quarter":{const i=Xt(r.year,4),a=Math.floor(r.month/3)+1;return`${i}-Q${a}`}case"month":{const i=Xt(r.year,2),a=Xt(r.month,2);return`${i}-${a}`}case"week":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}-WK`}case"day":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}`}case"hour":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2);return`${i}-${a}-${o} ${s}`}case"minute":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2);return`${i}-${a}-${o} ${s}:${l}`}case"second":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2),u=Xt(r.second,2);return`${i}-${a}-${o} ${s}:${l}:${u}`}default:throw new Error("Unknown timeframe.")}}function cO(e,t){const n=Ye.fromJSDate(e,{zone:t??"UTC"});return new Date(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond)}let E6;const vue=100;async function I2(){const e=Date.now();if(!(E6&&e<E6+vue))return E6=e,new Promise(t=>{setTimeout(t,0)})}function ra(e,t){const n=e.createElement("span");return n.classList.add("error"),n.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),n}function ep(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function fO(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
.drill-icon:hover .copy-circle {
|
|
4
4
|
fill: #eef7f9;
|