@oslokommune/punkt-react 12.3.12 → 12.3.14

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.
@@ -33,7 +33,7 @@
33
33
  return [];
34
34
  };
35
35
  }
36
- (function(Z,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],M):(Z=typeof globalThis<"u"?globalThis:Z||self,M(Z["punkt-react"]={},Z.React,Z.reactRouterDom))})(this,function(Z,M,wn){"use strict";var lC=Object.defineProperty;var uC=(Z,M,wn)=>M in Z?lC(Z,M,{enumerable:!0,configurable:!0,writable:!0,value:wn}):Z[M]=wn;var Sr=(Z,M,wn)=>uC(Z,typeof M!="symbol"?M+"":M,wn);function Jd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Xd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Qd=Jd(M);var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hi={exports:{}},Er={};/**
36
+ (function(Z,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],M):(Z=typeof globalThis<"u"?globalThis:Z||self,M(Z["punkt-react"]={},Z.React,Z.reactRouterDom))})(this,function(Z,M,wn){"use strict";var lC=Object.defineProperty;var uC=(Z,M,wn)=>M in Z?lC(Z,M,{enumerable:!0,configurable:!0,writable:!0,value:wn}):Z[M]=wn;var Er=(Z,M,wn)=>uC(Z,typeof M!="symbol"?M+"":M,wn);function Jd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function Xd(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Qd=Jd(M);var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qi={exports:{}},Fr={};/**
37
37
  * @license React
38
38
  * react-jsx-runtime.production.min.js
39
39
  *
@@ -41,7 +41,7 @@
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var tl;function Zd(){if(tl)return Er;tl=1;var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,h){var g,v={},D=null,b=null;h!==void 0&&(D=""+h),d.key!==void 0&&(D=""+d.key),d.ref!==void 0&&(b=d.ref);for(g in d)r.call(d,g)&&!o.hasOwnProperty(g)&&(v[g]=d[g]);if(c&&c.defaultProps)for(g in d=c.defaultProps,d)v[g]===void 0&&(v[g]=d[g]);return{$$typeof:t,type:c,key:D,ref:b,props:v,_owner:i.current}}return Er.Fragment=n,Er.jsx=u,Er.jsxs=u,Er}var Fr={};/**
44
+ */var el;function Zd(){if(el)return Fr;el=1;var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,h){var g,v={},D=null,b=null;h!==void 0&&(D=""+h),d.key!==void 0&&(D=""+d.key),d.ref!==void 0&&(b=d.ref);for(g in d)r.call(d,g)&&!o.hasOwnProperty(g)&&(v[g]=d[g]);if(c&&c.defaultProps)for(g in d=c.defaultProps,d)v[g]===void 0&&(v[g]=d[g]);return{$$typeof:t,type:c,key:D,ref:b,props:v,_owner:i.current}}return Fr.Fragment=n,Fr.jsx=u,Fr.jsxs=u,Fr}var Ar={};/**
45
45
  * @license React
46
46
  * react-jsx-runtime.development.js
47
47
  *
@@ -49,54 +49,54 @@
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var nl;function eh(){return nl||(nl=1,process.env.NODE_ENV!=="production"&&function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,x="@@iterator";function C(w){if(w===null||typeof w!="object")return null;var R=k&&w[k]||w[x];return typeof R=="function"?R:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(w){{for(var R=arguments.length,U=new Array(R>1?R-1:0),te=1;te<R;te++)U[te-1]=arguments[te];S("error",w,U)}}function S(w,R,U){{var te=T.ReactDebugCurrentFrame,ye=te.getStackAddendum();ye!==""&&(R+="%s",U=U.concat([ye]));var ve=U.map(function(he){return String(he)});ve.unshift("Warning: "+R),Function.prototype.apply.call(console[w],console,ve)}}var A=!1,_=!1,$=!1,P=!1,I=!1,j;j=Symbol.for("react.module.reference");function z(w){return!!(typeof w=="string"||typeof w=="function"||w===r||w===o||I||w===i||w===h||w===g||P||w===b||A||_||$||typeof w=="object"&&w!==null&&(w.$$typeof===D||w.$$typeof===v||w.$$typeof===u||w.$$typeof===c||w.$$typeof===d||w.$$typeof===j||w.getModuleId!==void 0))}function K(w,R,U){var te=w.displayName;if(te)return te;var ye=R.displayName||R.name||"";return ye!==""?U+"("+ye+")":U}function G(w){return w.displayName||"Context"}function L(w){if(w==null)return null;if(typeof w.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case c:var R=w;return G(R)+".Consumer";case u:var U=w;return G(U._context)+".Provider";case d:return K(w,w.render,"ForwardRef");case v:var te=w.displayName||null;return te!==null?te:L(w.type)||"Memo";case D:{var ye=w,ve=ye._payload,he=ye._init;try{return L(he(ve))}catch{return null}}}return null}var N=Object.assign,H=0,Q,fe,ee,ue,me,ie,De;function rt(){}rt.__reactDisabledLog=!0;function Ne(){{if(H===0){Q=console.log,fe=console.info,ee=console.warn,ue=console.error,me=console.group,ie=console.groupCollapsed,De=console.groupEnd;var w={configurable:!0,enumerable:!0,value:rt,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}H++}}function Ee(){{if(H--,H===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},w,{value:Q}),info:N({},w,{value:fe}),warn:N({},w,{value:ee}),error:N({},w,{value:ue}),group:N({},w,{value:me}),groupCollapsed:N({},w,{value:ie}),groupEnd:N({},w,{value:De})})}H<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=T.ReactCurrentDispatcher,de;function ft(w,R,U){{if(de===void 0)try{throw Error()}catch(ye){var te=ye.stack.trim().match(/\n( *(at )?)/);de=te&&te[1]||""}return`
52
+ */var tl;function eh(){return tl||(tl=1,process.env.NODE_ENV!=="production"&&function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k=Symbol.iterator,x="@@iterator";function C(w){if(w===null||typeof w!="object")return null;var R=k&&w[k]||w[x];return typeof R=="function"?R:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(w){{for(var R=arguments.length,U=new Array(R>1?R-1:0),te=1;te<R;te++)U[te-1]=arguments[te];S("error",w,U)}}function S(w,R,U){{var te=T.ReactDebugCurrentFrame,ye=te.getStackAddendum();ye!==""&&(R+="%s",U=U.concat([ye]));var ve=U.map(function(he){return String(he)});ve.unshift("Warning: "+R),Function.prototype.apply.call(console[w],console,ve)}}var A=!1,_=!1,$=!1,P=!1,I=!1,j;j=Symbol.for("react.module.reference");function z(w){return!!(typeof w=="string"||typeof w=="function"||w===r||w===o||I||w===i||w===h||w===g||P||w===b||A||_||$||typeof w=="object"&&w!==null&&(w.$$typeof===D||w.$$typeof===v||w.$$typeof===u||w.$$typeof===c||w.$$typeof===d||w.$$typeof===j||w.getModuleId!==void 0))}function K(w,R,U){var te=w.displayName;if(te)return te;var ye=R.displayName||R.name||"";return ye!==""?U+"("+ye+")":U}function G(w){return w.displayName||"Context"}function L(w){if(w==null)return null;if(typeof w.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case c:var R=w;return G(R)+".Consumer";case u:var U=w;return G(U._context)+".Provider";case d:return K(w,w.render,"ForwardRef");case v:var te=w.displayName||null;return te!==null?te:L(w.type)||"Memo";case D:{var ye=w,ve=ye._payload,he=ye._init;try{return L(he(ve))}catch{return null}}}return null}var N=Object.assign,H=0,Q,fe,ee,ue,me,ie,De;function rt(){}rt.__reactDisabledLog=!0;function Ne(){{if(H===0){Q=console.log,fe=console.info,ee=console.warn,ue=console.error,me=console.group,ie=console.groupCollapsed,De=console.groupEnd;var w={configurable:!0,enumerable:!0,value:rt,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}H++}}function Fe(){{if(H--,H===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},w,{value:Q}),info:N({},w,{value:fe}),warn:N({},w,{value:ee}),error:N({},w,{value:ue}),group:N({},w,{value:me}),groupCollapsed:N({},w,{value:ie}),groupEnd:N({},w,{value:De})})}H<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=T.ReactCurrentDispatcher,de;function ft(w,R,U){{if(de===void 0)try{throw Error()}catch(ye){var te=ye.stack.trim().match(/\n( *(at )?)/);de=te&&te[1]||""}return`
53
53
  `+de+w}}var Ht=!1,yt;{var bt=typeof WeakMap=="function"?WeakMap:Map;yt=new bt}function Dn(w,R){if(!w||Ht)return"";{var U=yt.get(w);if(U!==void 0)return U}var te;Ht=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=Oe.current,Oe.current=null,Ne();try{if(R){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(at){te=at}Reflect.construct(w,[],he)}else{try{he.call()}catch(at){te=at}w.call(he.prototype)}}else{try{throw Error()}catch(at){te=at}w()}}catch(at){if(at&&te&&typeof at.stack=="string"){for(var se=at.stack.split(`
54
54
  `),et=te.stack.split(`
55
55
  `),Be=se.length-1,Te=et.length-1;Be>=1&&Te>=0&&se[Be]!==et[Te];)Te--;for(;Be>=1&&Te>=0;Be--,Te--)if(se[Be]!==et[Te]){if(Be!==1||Te!==1)do if(Be--,Te--,Te<0||se[Be]!==et[Te]){var gt=`
56
- `+se[Be].replace(" at new "," at ");return w.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",w.displayName)),typeof w=="function"&&yt.set(w,gt),gt}while(Be>=1&&Te>=0);break}}}finally{Ht=!1,Oe.current=ve,Ee(),Error.prepareStackTrace=ye}var He=w?w.displayName||w.name:"",tt=He?ft(He):"";return typeof w=="function"&&yt.set(w,tt),tt}function kt(w,R,U){return Dn(w,!1)}function X(w){var R=w.prototype;return!!(R&&R.isReactComponent)}function Ut(w,R,U){if(w==null)return"";if(typeof w=="function")return Dn(w,X(w));if(typeof w=="string")return ft(w);switch(w){case h:return ft("Suspense");case g:return ft("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return kt(w.render);case v:return Ut(w.type,R,U);case D:{var te=w,ye=te._payload,ve=te._init;try{return Ut(ve(ye),R,U)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,Pe={},xe=T.ReactDebugCurrentFrame;function Dr(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);xe.setExtraStackFrame(U)}else xe.setExtraStackFrame(null)}function yn(w,R,U,te,ye){{var ve=Function.call.bind(_e);for(var he in w)if(ve(w,he)){var se=void 0;try{if(typeof w[he]!="function"){var et=Error((te||"React class")+": "+U+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}se=w[he](R,he,te,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){se=Be}se&&!(se instanceof Error)&&(Dr(ye),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",U,he,typeof se),Dr(null)),se instanceof Error&&!(se.message in Pe)&&(Pe[se.message]=!0,Dr(ye),F("Failed %s type: %s",U,se.message),Dr(null))}}}var vo=Array.isArray;function on(w){return vo(w)}function ia(w){{var R=typeof Symbol=="function"&&Symbol.toStringTag,U=R&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function Do(w){try{return hi(w),!1}catch{return!0}}function hi(w){return""+w}function mt(w){if(Do(w))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ia(w)),hi(w)}var Wt=T.ReactCurrentOwner,fi={key:!0,ref:!0,__self:!0,__source:!0},mi,gi,sa;sa={};function wt(w){if(_e.call(w,"ref")){var R=Object.getOwnPropertyDescriptor(w,"ref").get;if(R&&R.isReactWarning)return!1}return w.ref!==void 0}function yo(w){if(_e.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function bo(w,R){if(typeof w.ref=="string"&&Wt.current&&R&&Wt.current.stateNode!==R){var U=L(Wt.current.type);sa[U]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Wt.current.type),w.ref),sa[U]=!0)}}function ko(w,R){{var U=function(){mi||(mi=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function wo(w,R){{var U=function(){gi||(gi=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var At=function(w,R,U,te,ye,ve,he){var se={$$typeof:t,type:w,key:R,ref:U,props:he,_owner:ve};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function Co(w,R,U,te,ye){{var ve,he={},se=null,et=null;U!==void 0&&(mt(U),se=""+U),yo(R)&&(mt(R.key),se=""+R.key),wt(R)&&(et=R.ref,bo(R,ye));for(ve in R)_e.call(R,ve)&&!fi.hasOwnProperty(ve)&&(he[ve]=R[ve]);if(w&&w.defaultProps){var Be=w.defaultProps;for(ve in Be)he[ve]===void 0&&(he[ve]=Be[ve])}if(se||et){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;se&&ko(he,Te),et&&wo(he,Te)}return At(w,se,et,ye,te,Wt.current,he)}}var oa=T.ReactCurrentOwner,vi=T.ReactDebugCurrentFrame;function Bt(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);vi.setExtraStackFrame(U)}else vi.setExtraStackFrame(null)}var la;la=!1;function ua(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ca(){{if(oa.current){var w=L(oa.current.type);if(w)return`
56
+ `+se[Be].replace(" at new "," at ");return w.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",w.displayName)),typeof w=="function"&&yt.set(w,gt),gt}while(Be>=1&&Te>=0);break}}}finally{Ht=!1,Oe.current=ve,Fe(),Error.prepareStackTrace=ye}var He=w?w.displayName||w.name:"",tt=He?ft(He):"";return typeof w=="function"&&yt.set(w,tt),tt}function kt(w,R,U){return Dn(w,!1)}function X(w){var R=w.prototype;return!!(R&&R.isReactComponent)}function Ut(w,R,U){if(w==null)return"";if(typeof w=="function")return Dn(w,X(w));if(typeof w=="string")return ft(w);switch(w){case h:return ft("Suspense");case g:return ft("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return kt(w.render);case v:return Ut(w.type,R,U);case D:{var te=w,ye=te._payload,ve=te._init;try{return Ut(ve(ye),R,U)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,Pe={},Se=T.ReactDebugCurrentFrame;function yr(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);Se.setExtraStackFrame(U)}else Se.setExtraStackFrame(null)}function yn(w,R,U,te,ye){{var ve=Function.call.bind(_e);for(var he in w)if(ve(w,he)){var se=void 0;try{if(typeof w[he]!="function"){var et=Error((te||"React class")+": "+U+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw et.name="Invariant Violation",et}se=w[he](R,he,te,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){se=Be}se&&!(se instanceof Error)&&(yr(ye),F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",U,he,typeof se),yr(null)),se instanceof Error&&!(se.message in Pe)&&(Pe[se.message]=!0,yr(ye),F("Failed %s type: %s",U,se.message),yr(null))}}}var go=Array.isArray;function on(w){return go(w)}function ia(w){{var R=typeof Symbol=="function"&&Symbol.toStringTag,U=R&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function vo(w){try{return di(w),!1}catch{return!0}}function di(w){return""+w}function mt(w){if(vo(w))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ia(w)),di(w)}var Wt=T.ReactCurrentOwner,hi={key:!0,ref:!0,__self:!0,__source:!0},fi,mi,sa;sa={};function wt(w){if(_e.call(w,"ref")){var R=Object.getOwnPropertyDescriptor(w,"ref").get;if(R&&R.isReactWarning)return!1}return w.ref!==void 0}function Do(w){if(_e.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function yo(w,R){if(typeof w.ref=="string"&&Wt.current&&R&&Wt.current.stateNode!==R){var U=L(Wt.current.type);sa[U]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(Wt.current.type),w.ref),sa[U]=!0)}}function bo(w,R){{var U=function(){fi||(fi=!0,F("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function ko(w,R){{var U=function(){mi||(mi=!0,F("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var At=function(w,R,U,te,ye,ve,he){var se={$$typeof:t,type:w,key:R,ref:U,props:he,_owner:ve};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function wo(w,R,U,te,ye){{var ve,he={},se=null,et=null;U!==void 0&&(mt(U),se=""+U),Do(R)&&(mt(R.key),se=""+R.key),wt(R)&&(et=R.ref,yo(R,ye));for(ve in R)_e.call(R,ve)&&!hi.hasOwnProperty(ve)&&(he[ve]=R[ve]);if(w&&w.defaultProps){var Be=w.defaultProps;for(ve in Be)he[ve]===void 0&&(he[ve]=Be[ve])}if(se||et){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;se&&bo(he,Te),et&&ko(he,Te)}return At(w,se,et,ye,te,Wt.current,he)}}var oa=T.ReactCurrentOwner,gi=T.ReactDebugCurrentFrame;function Bt(w){if(w){var R=w._owner,U=Ut(w.type,w._source,R?R.type:null);gi.setExtraStackFrame(U)}else gi.setExtraStackFrame(null)}var la;la=!1;function ua(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ca(){{if(oa.current){var w=L(oa.current.type);if(w)return`
57
57
 
58
- Check the render method of \``+w+"`."}return""}}function _o(w){return""}var Di={};function xo(w){{var R=ca();if(!R){var U=typeof w=="string"?w:w.displayName||w.name;U&&(R=`
58
+ Check the render method of \``+w+"`."}return""}}function Co(w){return""}var vi={};function _o(w){{var R=ca();if(!R){var U=typeof w=="string"?w:w.displayName||w.name;U&&(R=`
59
59
 
60
- Check the top-level render call using <`+U+">.")}return R}}function zn(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=xo(R);if(Di[U])return;Di[U]=!0;var te="";w&&w._owner&&w._owner!==oa.current&&(te=" It was passed a child from "+L(w._owner.type)+"."),Bt(w),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),Bt(null)}}function ln(w,R){{if(typeof w!="object")return;if(on(w))for(var U=0;U<w.length;U++){var te=w[U];ua(te)&&zn(te,R)}else if(ua(w))w._store&&(w._store.validated=!0);else if(w){var ye=C(w);if(typeof ye=="function"&&ye!==w.entries)for(var ve=ye.call(w),he;!(he=ve.next()).done;)ua(he.value)&&zn(he.value,R)}}}function Ct(w){{var R=w.type;if(R==null||typeof R=="string")return;var U;if(typeof R=="function")U=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===v))U=R.propTypes;else return;if(U){var te=L(R);yn(U,w.props,"prop",te,w)}else if(R.PropTypes!==void 0&&!la){la=!0;var ye=L(R);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(w){{for(var R=Object.keys(w.props),U=0;U<R.length;U++){var te=R[U];if(te!=="children"&&te!=="key"){Bt(w),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Bt(null);break}}w.ref!==null&&(Bt(w),F("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var yi={};function bi(w,R,U,te,ye,ve){{var he=z(w);if(!he){var se="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var et=_o();et?se+=et:se+=ca();var Be;w===null?Be="null":on(w)?Be="array":w!==void 0&&w.$$typeof===t?(Be="<"+(L(w.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,se)}var Te=Co(w,R,U,ye,ve);if(Te==null)return Te;if(he){var gt=R.children;if(gt!==void 0)if(te)if(on(gt)){for(var He=0;He<gt.length;He++)ln(gt[He],w);Object.freeze&&Object.freeze(gt)}else F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ln(gt,w)}if(_e.call(R,"key")){var tt=L(w),at=Object.keys(R).filter(function(Ao){return Ao!=="key"}),pa=at.length>0?"{key: someKey, "+at.join(": ..., ")+": ...}":"{key: someKey}";if(!yi[tt+pa]){var wi=at.length>0?"{"+at.join(": ..., ")+": ...}":"{}";F(`A props object containing a "key" prop is being spread into JSX:
60
+ Check the top-level render call using <`+U+">.")}return R}}function zn(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=_o(R);if(vi[U])return;vi[U]=!0;var te="";w&&w._owner&&w._owner!==oa.current&&(te=" It was passed a child from "+L(w._owner.type)+"."),Bt(w),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),Bt(null)}}function ln(w,R){{if(typeof w!="object")return;if(on(w))for(var U=0;U<w.length;U++){var te=w[U];ua(te)&&zn(te,R)}else if(ua(w))w._store&&(w._store.validated=!0);else if(w){var ye=C(w);if(typeof ye=="function"&&ye!==w.entries)for(var ve=ye.call(w),he;!(he=ve.next()).done;)ua(he.value)&&zn(he.value,R)}}}function Ct(w){{var R=w.type;if(R==null||typeof R=="string")return;var U;if(typeof R=="function")U=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===d||R.$$typeof===v))U=R.propTypes;else return;if(U){var te=L(R);yn(U,w.props,"prop",te,w)}else if(R.PropTypes!==void 0&&!la){la=!0;var ye=L(R);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xo(w){{for(var R=Object.keys(w.props),U=0;U<R.length;U++){var te=R[U];if(te!=="children"&&te!=="key"){Bt(w),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Bt(null);break}}w.ref!==null&&(Bt(w),F("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var Di={};function yi(w,R,U,te,ye,ve){{var he=z(w);if(!he){var se="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var et=Co();et?se+=et:se+=ca();var Be;w===null?Be="null":on(w)?Be="array":w!==void 0&&w.$$typeof===t?(Be="<"+(L(w.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,se)}var Te=wo(w,R,U,ye,ve);if(Te==null)return Te;if(he){var gt=R.children;if(gt!==void 0)if(te)if(on(gt)){for(var He=0;He<gt.length;He++)ln(gt[He],w);Object.freeze&&Object.freeze(gt)}else F("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ln(gt,w)}if(_e.call(R,"key")){var tt=L(w),at=Object.keys(R).filter(function(Fo){return Fo!=="key"}),pa=at.length>0?"{key: someKey, "+at.join(": ..., ")+": ...}":"{key: someKey}";if(!Di[tt+pa]){var ki=at.length>0?"{"+at.join(": ..., ")+": ...}":"{}";F(`A props object containing a "key" prop is being spread into JSX:
61
61
  let props = %s;
62
62
  <%s {...props} />
63
63
  React keys must be passed directly to JSX without using spread:
64
64
  let props = %s;
65
- <%s key={someKey} {...props} />`,pa,tt,wi,tt),yi[tt+pa]=!0}}return w===r?So(Te):Ct(Te),Te}}function ki(w,R,U){return bi(w,R,U,!0)}function Eo(w,R,U){return bi(w,R,U,!1)}var Fo=Eo,yr=ki;Fr.Fragment=r,Fr.jsx=Fo,Fr.jsxs=yr}()),Fr}process.env.NODE_ENV==="production"?Hi.exports=Zd():Hi.exports=eh();var m=Hi.exports;const th=M.forwardRef(({compact:e=!1,skin:t="borderless",className:n,children:r},i)=>{const o=[n,"pkt-accordion",e&&"pkt-accordion--compact",t&&`pkt-accordion--${t}`].filter(Boolean).join(" ");return m.jsx("div",{"data-testid":"pkt-accordion",className:o,ref:i,children:r})}),Ui='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',nh="https://punkt-cdn.oslo.kommune.no/12.3/icons/";function rh(e){return new Promise(t=>setTimeout(t,e))}const Wi={},ah=async(e,t)=>{let n=0;for(;Wi[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await rh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.fetch=="function"?(Wi[t+e+".svg"]="fetching",Promise.resolve(fetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Ui)).then(r=>(r!==Ui&&localStorage.setItem(t+e+".svg",r),Wi[t+e+".svg"]="fetched",r)))):Promise.resolve(Ui)},ih={fetchIcon:async(e,t)=>ah(e,t||nh)},rl=M.createContext(ih),ne=({name:e,path:t,className:n="",...r})=>{const[i,o]=M.useState(null),u=M.useContext(rl);return M.useEffect(()=>{e?u.fetchIcon(e,t).then(o):o(null)},[e,t]),i?m.jsx("span",{className:`pkt-icon ${n}`,dangerouslySetInnerHTML:{__html:i},...r}):null};var al={exports:{}};/*!
65
+ <%s key={someKey} {...props} />`,pa,tt,ki,tt),Di[tt+pa]=!0}}return w===r?xo(Te):Ct(Te),Te}}function bi(w,R,U){return yi(w,R,U,!0)}function So(w,R,U){return yi(w,R,U,!1)}var Eo=So,br=bi;Ar.Fragment=r,Ar.jsx=Eo,Ar.jsxs=br}()),Ar}process.env.NODE_ENV==="production"?qi.exports=Zd():qi.exports=eh();var m=qi.exports;const th=M.forwardRef(({compact:e=!1,skin:t="borderless",className:n,children:r},i)=>{const o=[n,"pkt-accordion",e&&"pkt-accordion--compact",t&&`pkt-accordion--${t}`].filter(Boolean).join(" ");return m.jsx("div",{"data-testid":"pkt-accordion",className:o,ref:i,children:r})}),Hi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',nh="https://punkt-cdn.oslo.kommune.no/12.3/icons/";function rh(e){return new Promise(t=>setTimeout(t,e))}const Ui={},ah=async(e,t)=>{let n=0;for(;Ui[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await rh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.fetch=="function"?(Ui[t+e+".svg"]="fetching",Promise.resolve(fetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Hi)).then(r=>(r!==Hi&&localStorage.setItem(t+e+".svg",r),Ui[t+e+".svg"]="fetched",r)))):Promise.resolve(Hi)},ih={fetchIcon:async(e,t)=>ah(e,t||nh)},nl=M.createContext(ih),ne=({name:e,path:t,className:n="",...r})=>{const[i,o]=M.useState(null),u=M.useContext(nl);return M.useEffect(()=>{e?u.fetchIcon(e,t).then(o):o(null)},[e,t]),i?m.jsx("span",{className:`pkt-icon ${n}`,dangerouslySetInnerHTML:{__html:i},...r}):null};var rl={exports:{}};/*!
66
66
  Copyright (c) 2018 Jed Watson.
67
67
  Licensed under the MIT License (MIT), see
68
68
  http://jedwatson.github.io/classnames
69
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(o=i(o,r(c)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var c in o)t.call(o,c)&&o[c]&&(u=i(u,c));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(al);var sh=al.exports;const Je=_a(sh),oh=M.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=M.useState(i),h=r?r.isOpen:c,g=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},D=Je(t,"pkt-accordion-item");return m.jsxs("details",{className:D,ref:u,id:o,open:g(r?r.isOpen:c),children:[m.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,m.jsx(ne,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),m.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),zi=M.forwardRef(({children:e,className:t,skin:n="info",closeAlert:r=!1,onClose:i,title:o,date:u,ariaLive:c="polite",compact:d=!1,...h},g)=>{const v=[t,"pkt-alert",n&&`pkt-alert--${n}`,d&&"pkt-alert--compact"].filter(Boolean).join(" "),[D,b]=M.useState(!0),k=()=>{b(!1),i&&i()};return D?m.jsxs("div",{...h,className:v,"aria-live":c,ref:g,children:[m.jsx(ne,{className:"pkt-alert__icon",name:n==="info"?"alert-information":`alert-${n}`}),r&&m.jsx("div",{className:"pkt-alert__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:k,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-alert__title",children:o}),m.jsx("div",{className:"pkt-alert__text",children:e}),u&&m.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",u]})]}):null});zi.displayName="PktAlert";const il=M.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=d=>{n&&n(d)};return m.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:m.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),m.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});il.displayName="PktBackLink";const lh=M.forwardRef(({breadcrumbs:e,navigationType:t,className:n,...r},i)=>{const o=e.slice(0,4),u=o[o.length-2],c=[n,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[m.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>m.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?m.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?m.jsxs(wn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):m.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?m.jsxs(wn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):m.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),Cn=M.forwardRef(({children:e,className:t,iconName:n="user",secondIconName:r="user",size:i="medium",skin:o="primary",type:u="button",variant:c="label-only",state:d,color:h,isLoading:g=!1,...v},D)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,g&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return m.jsxs("button",{...v,className:b,type:u,ref:D,children:[g&&m.jsx(ne,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/"}),c!=="label-only"&&m.jsx(ne,{className:"pkt-btn__icon",name:n}),m.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&m.jsx(ne,{className:"pkt-btn__icon",name:r})]})});Cn.displayName="PktButton";/**
69
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(o=i(o,r(c)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var u="";for(var c in o)t.call(o,c)&&o[c]&&(u=i(u,c));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(rl);var sh=rl.exports;const Je=_a(sh),oh=M.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=M.useState(i),h=r?r.isOpen:c,g=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},D=Je(t,"pkt-accordion-item");return m.jsxs("details",{className:D,ref:u,id:o,open:g(r?r.isOpen:c),children:[m.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,m.jsx(ne,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),m.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Wi=M.forwardRef(({children:e,className:t,skin:n="info",closeAlert:r=!1,onClose:i,title:o,date:u,ariaLive:c="polite",compact:d=!1,...h},g)=>{const v=[t,"pkt-alert",n&&`pkt-alert--${n}`,d&&"pkt-alert--compact"].filter(Boolean).join(" "),[D,b]=M.useState(!0),k=()=>{b(!1),i&&i()};return D?m.jsxs("div",{...h,className:v,"aria-live":c,ref:g,children:[m.jsx(ne,{className:"pkt-alert__icon",name:n==="info"?"alert-information":`alert-${n}`}),r&&m.jsx("div",{className:"pkt-alert__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:k,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-alert__title",children:o}),m.jsx("div",{className:"pkt-alert__text",children:e}),u&&m.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",u]})]}):null});Wi.displayName="PktAlert";const al=M.forwardRef(({href:e,text:t,onClick:n,className:r,...i},o)=>{const u=[r,"pkt-back-link"].filter(Boolean).join(" "),c=d=>{n&&n(d)};return m.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:m.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),m.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});al.displayName="PktBackLink";const lh=M.forwardRef(({breadcrumbs:e,navigationType:t,className:n,...r},i)=>{const o=e.slice(0,4),u=o[o.length-2],c=[n,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[m.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>m.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?m.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?m.jsxs(wn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):m.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[m.jsx(ne,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?m.jsxs(wn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):m.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[m.jsx(ne,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),m.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),Cn=M.forwardRef(({children:e,className:t,iconName:n="user",secondIconName:r="user",size:i="medium",skin:o="primary",type:u="button",variant:c="label-only",state:d,color:h,isLoading:g=!1,...v},D)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,g&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return m.jsxs("button",{...v,className:b,type:u,ref:D,children:[g&&m.jsx(ne,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/"}),c!=="label-only"&&m.jsx(ne,{className:"pkt-btn__icon",name:n}),m.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&m.jsx(ne,{className:"pkt-btn__icon",name:r})]})});Cn.displayName="PktButton";/**
70
70
  * @license
71
71
  * Copyright 2018 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
73
- */const uh=new Set(["children","localName","ref","style","className"]),sl=new WeakMap,ol=(e,t,n,r,i)=>{const o=i==null?void 0:i[t];o===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((u,c,d)=>{let h=sl.get(u);h===void 0&&sl.set(u,h=new Map);let g=h.get(c);d!==void 0?g===void 0?(h.set(c,g={handleEvent:d}),u.addEventListener(c,g)):g.handleEvent=d:g!==void 0&&(h.delete(c),u.removeEventListener(c,g))})(e,o,n)},Vi=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const o=new Set(Object.keys(r??{})),u=e.forwardRef((c,d)=>{const h=e.useRef(new Map),g=e.useRef(null),v={},D={};for(const[b,k]of Object.entries(c))uh.has(b)?v[b==="className"?"class":b]=k:o.has(b)||b in n.prototype?D[b]=k:v[b]=k;return e.useLayoutEffect(()=>{if(g.current===null)return;const b=new Map;for(const k in D)ol(g.current,k,c[k],h.current.get(k),r),h.current.delete(k),b.set(k,c[k]);for(const[k,x]of h.current)ol(g.current,k,void 0,x,r);h.current=b}),e.useLayoutEffect(()=>{var b;(b=g.current)==null||b.removeAttribute("defer-hydration")},[]),v.suppressHydrationWarning=!0,e.createElement(t,{...v,ref:e.useCallback(b=>{g.current=b,typeof d=="function"?d(b):d!==null&&(d.current=b)},[d])})});return u.displayName=i??n.name,u};/**
73
+ */const uh=new Set(["children","localName","ref","style","className"]),il=new WeakMap,sl=(e,t,n,r,i)=>{const o=i==null?void 0:i[t];o===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((u,c,d)=>{let h=il.get(u);h===void 0&&il.set(u,h=new Map);let g=h.get(c);d!==void 0?g===void 0?(h.set(c,g={handleEvent:d}),u.addEventListener(c,g)):g.handleEvent=d:g!==void 0&&(h.delete(c),u.removeEventListener(c,g))})(e,o,n)},zi=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const o=new Set(Object.keys(r??{})),u=e.forwardRef((c,d)=>{const h=e.useRef(new Map),g=e.useRef(null),v={},D={};for(const[b,k]of Object.entries(c))uh.has(b)?v[b==="className"?"class":b]=k:o.has(b)||b in n.prototype?D[b]=k:v[b]=k;return e.useLayoutEffect(()=>{if(g.current===null)return;const b=new Map;for(const k in D)sl(g.current,k,c[k],h.current.get(k),r),h.current.delete(k),b.set(k,c[k]);for(const[k,x]of h.current)sl(g.current,k,void 0,x,r);h.current=b}),e.useLayoutEffect(()=>{var b;(b=g.current)==null||b.removeAttribute("defer-hydration")},[]),v.suppressHydrationWarning=!0,e.createElement(t,{...v,ref:e.useCallback(b=>{g.current=b,typeof d=="function"?d(b):d!==null&&(d.current=b)},[d])})});return u.displayName=i??n.name,u};/**
74
74
  * @license
75
75
  * Copyright 2019 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */const xa=globalThis,Gi=xa.ShadowRoot&&(xa.ShadyCSS===void 0||xa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ll=Symbol(),ul=new WeakMap;let ch=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==ll)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Gi&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=ul.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ul.set(n,t))}return t}toString(){return this.cssText}};const ph=e=>new ch(typeof e=="string"?e:e+"",void 0,ll),dh=(e,t)=>{if(Gi)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=xa.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},cl=Gi?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ph(n)})(e):e;/**
77
+ */const xa=globalThis,Vi=xa.ShadowRoot&&(xa.ShadyCSS===void 0||xa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ol=Symbol(),ll=new WeakMap;let ch=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==ol)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Vi&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=ll.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ll.set(n,t))}return t}toString(){return this.cssText}};const ph=e=>new ch(typeof e=="string"?e:e+"",void 0,ol),dh=(e,t)=>{if(Vi)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=xa.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},ul=Vi?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return ph(n)})(e):e;/**
78
78
  * @license
79
79
  * Copyright 2017 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
81
- */const{is:hh,defineProperty:fh,getOwnPropertyDescriptor:mh,getOwnPropertyNames:gh,getOwnPropertySymbols:vh,getPrototypeOf:Dh}=Object,Jn=globalThis,pl=Jn.trustedTypes,yh=pl?pl.emptyScript:"",dl=Jn.reactiveElementPolyfillSupport,Ar=(e,t)=>e,Sa={toAttribute(e,t){switch(t){case Boolean:e=e?yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Yi=(e,t)=>!hh(e,t),hl={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Yi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);let Xn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=hl){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&fh(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=mh(this.prototype,t)??{get(){return this[n]},set(u){this[n]=u}};return{get(){return i==null?void 0:i.call(this)},set(u){const c=i==null?void 0:i.call(this);o.call(this,u),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??hl}static _$Ei(){if(this.hasOwnProperty(Ar("elementProperties")))return;const t=Dh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ar("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ar("properties"))){const n=this.properties,r=[...gh(n),...vh(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(cl(i))}else t!==void 0&&n.push(cl(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dh(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const u=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Sa).toAttribute(n,i.type);this._$Em=t,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const u=i.getPropertyOptions(o),c=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:Sa;this._$Em=o,this[o]=c.fromAttribute(n,u.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??Yi)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,u]of this._$Ep)this[o]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,u]of i)u.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],u)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(r)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};Xn.elementStyles=[],Xn.shadowRootOptions={mode:"open"},Xn[Ar("elementProperties")]=new Map,Xn[Ar("finalized")]=new Map,dl==null||dl({ReactiveElement:Xn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.0.4");/**
81
+ */const{is:hh,defineProperty:fh,getOwnPropertyDescriptor:mh,getOwnPropertyNames:gh,getOwnPropertySymbols:vh,getPrototypeOf:Dh}=Object,Jn=globalThis,cl=Jn.trustedTypes,yh=cl?cl.emptyScript:"",pl=Jn.reactiveElementPolyfillSupport,$r=(e,t)=>e,Sa={toAttribute(e,t){switch(t){case Boolean:e=e?yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Gi=(e,t)=>!hh(e,t),dl={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Gi};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jn.litPropertyMetadata??(Jn.litPropertyMetadata=new WeakMap);let Xn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=dl){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&fh(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=mh(this.prototype,t)??{get(){return this[n]},set(u){this[n]=u}};return{get(){return i==null?void 0:i.call(this)},set(u){const c=i==null?void 0:i.call(this);o.call(this,u),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??dl}static _$Ei(){if(this.hasOwnProperty($r("elementProperties")))return;const t=Dh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty($r("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($r("properties"))){const n=this.properties,r=[...gh(n),...vh(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(ul(i))}else t!==void 0&&n.push(ul(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dh(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const u=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Sa).toAttribute(n,i.type);this._$Em=t,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const u=i.getPropertyOptions(o),c=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:Sa;this._$Em=o,this[o]=c.fromAttribute(n,u.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??Gi)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,u]of this._$Ep)this[o]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,u]of i)u.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],u)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(r)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};Xn.elementStyles=[],Xn.shadowRootOptions={mode:"open"},Xn[$r("elementProperties")]=new Map,Xn[$r("finalized")]=new Map,pl==null||pl({ReactiveElement:Xn}),(Jn.reactiveElementVersions??(Jn.reactiveElementVersions=[])).push("2.0.4");/**
82
82
  * @license
83
83
  * Copyright 2017 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const Ea=globalThis,Fa=Ea.trustedTypes,fl=Fa?Fa.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ki="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ji="?"+zt,bh=`<${Ji}>`,_n=document,$r=()=>_n.createComment(""),Tr=e=>e===null||typeof e!="object"&&typeof e!="function",Xi=Array.isArray,ml=e=>Xi(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Qi=`[
86
- \f\r]`,Br=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gl=/-->/g,vl=/>/g,xn=RegExp(`>|${Qi}(?:([^\\s"'>=/]+)(${Qi}*=${Qi}*(?:[^
87
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Dl=/'/g,yl=/"/g,bl=/^(?:script|style|textarea|title)$/i,kh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),J=kh(1),Vt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),kl=new WeakMap,Sn=_n.createTreeWalker(_n,129);function wl(e,t){if(!Xi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return fl!==void 0?fl.createHTML(t):t}const Cl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=Br;for(let c=0;c<n;c++){const d=e[c];let h,g,v=-1,D=0;for(;D<d.length&&(u.lastIndex=D,g=u.exec(d),g!==null);)D=u.lastIndex,u===Br?g[1]==="!--"?u=gl:g[1]!==void 0?u=vl:g[2]!==void 0?(bl.test(g[2])&&(i=RegExp("</"+g[2],"g")),u=xn):g[3]!==void 0&&(u=xn):u===xn?g[0]===">"?(u=i??Br,v=-1):g[1]===void 0?v=-2:(v=u.lastIndex-g[2].length,h=g[1],u=g[3]===void 0?xn:g[3]==='"'?yl:Dl):u===yl||u===Dl?u=xn:u===gl||u===vl?u=Br:(u=xn,i=void 0);const b=u===xn&&e[c+1].startsWith("/>")?" ":"";o+=u===Br?d+bh:v>=0?(r.push(h),d.slice(0,v)+Ki+d.slice(v)+zt+b):d+zt+(v===-2?c:b)}return[wl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Zi=class Wd{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,d=this.parts,[h,g]=Cl(t,n);if(this.el=Wd.createElement(h,r),Sn.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Sn.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(Ki)){const D=g[u++],b=i.getAttribute(v).split(zt),k=/([.?@])?(.*)/.exec(D);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?xl:k[1]==="?"?Sl:k[1]==="@"?El:Nr}),i.removeAttribute(v)}else v.startsWith(zt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(bl.test(i.tagName)){const v=i.textContent.split(zt),D=v.length-1;if(D>0){i.textContent=Fa?Fa.emptyScript:"";for(let b=0;b<D;b++)i.append(v[b],$r()),Sn.nextNode(),d.push({type:2,index:++o});i.append(v[D],$r())}}}else if(i.nodeType===8)if(i.data===Ji)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(zt,v+1))!==-1;)d.push({type:7,index:o}),v+=zt.length-1}o++}}static createElement(t,n){const r=_n.createElement("template");return r.innerHTML=t,r}};function En(e,t,n=e,r){var i,o;if(t===Vt)return t;let u=r!==void 0?(i=n.o)==null?void 0:i[r]:n.l;const c=Tr(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==c&&((o=u==null?void 0:u._$AO)==null||o.call(u,!1),c===void 0?u=void 0:(u=new c(e),u._$AT(e,n,r)),r!==void 0?(n.o??(n.o=[]))[r]=u:n.l=u),u!==void 0&&(t=En(e,u._$AS(e,t.values),u,r)),t}let _l=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??_n).importNode(n,!0);Sn.currentNode=i;let o=Sn.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Aa(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new Fl(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=Sn.nextNode(),u++)}return Sn.currentNode=_n,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}},Aa=class zd{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,n,r,i){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=En(this,t,n),Tr(t)?t===re||t==null||t===""?(this._$AH!==re&&this._$AR(),this._$AH=re):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ml(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==re&&Tr(this._$AH)?this._$AA.nextSibling.data=t:this.T(_n.createTextNode(t)),this._$AH=t}$(t){var n;const{values:r,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Zi.createElement(wl(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(r);else{const u=new _l(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=kl.get(t.strings);return n===void 0&&kl.set(t.strings,n=new Zi(t)),n}k(t){Xi(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new zd(this.O($r()),this.O($r()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this.v=t,(n=this._$AP)==null||n.call(this,t))}},Nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=En(this,t,n,0),u=!Tr(t)||t!==this._$AH&&t!==Vt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=En(this,c[r+d],n,d),h===Vt&&(h=this._$AH[d]),u||(u=!Tr(h)||h!==this._$AH[d]),h===re?t=re:t!==re&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xl=class extends Nr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===re?void 0:t}},Sl=class extends Nr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==re)}},El=class extends Nr{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=En(this,t,n,0)??re)===Vt)return;const r=this._$AH,i=t===re&&r!==re||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==re&&(r===re||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}},Fl=class{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){En(this,t)}};const wh={M:Ki,P:zt,A:Ji,C:1,L:Cl,R:_l,D:ml,V:En,I:Aa,H:Nr,N:Sl,U:El,B:xl,F:Fl},Al=Ea.litHtmlPolyfillSupport;Al==null||Al(Zi,Aa),(Ea.litHtmlVersions??(Ea.litHtmlVersions=[])).push("3.2.0");const Ch=(e,t,n)=>{const r=(n==null?void 0:n.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Aa(t.insertBefore($r(),o),o,void 0,n??{})}return i._$AI(e),i};/**
85
+ */const Ea=globalThis,Fa=Ea.trustedTypes,hl=Fa?Fa.createPolicy("lit-html",{createHTML:e=>e}):void 0,Yi="$lit$",zt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ki="?"+zt,bh=`<${Ki}>`,_n=document,Tr=()=>_n.createComment(""),Br=e=>e===null||typeof e!="object"&&typeof e!="function",Ji=Array.isArray,fl=e=>Ji(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Xi=`[
86
+ \f\r]`,Nr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ml=/-->/g,gl=/>/g,xn=RegExp(`>|${Xi}(?:([^\\s"'>=/]+)(${Xi}*=${Xi}*(?:[^
87
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),vl=/'/g,Dl=/"/g,yl=/^(?:script|style|textarea|title)$/i,kh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),J=kh(1),Vt=Symbol.for("lit-noChange"),re=Symbol.for("lit-nothing"),bl=new WeakMap,Sn=_n.createTreeWalker(_n,129);function kl(e,t){if(!Ji(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return hl!==void 0?hl.createHTML(t):t}const wl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=Nr;for(let c=0;c<n;c++){const d=e[c];let h,g,v=-1,D=0;for(;D<d.length&&(u.lastIndex=D,g=u.exec(d),g!==null);)D=u.lastIndex,u===Nr?g[1]==="!--"?u=ml:g[1]!==void 0?u=gl:g[2]!==void 0?(yl.test(g[2])&&(i=RegExp("</"+g[2],"g")),u=xn):g[3]!==void 0&&(u=xn):u===xn?g[0]===">"?(u=i??Nr,v=-1):g[1]===void 0?v=-2:(v=u.lastIndex-g[2].length,h=g[1],u=g[3]===void 0?xn:g[3]==='"'?Dl:vl):u===Dl||u===vl?u=xn:u===ml||u===gl?u=Nr:(u=xn,i=void 0);const b=u===xn&&e[c+1].startsWith("/>")?" ":"";o+=u===Nr?d+bh:v>=0?(r.push(h),d.slice(0,v)+Yi+d.slice(v)+zt+b):d+zt+(v===-2?c:b)}return[kl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let Qi=class Wd{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,d=this.parts,[h,g]=wl(t,n);if(this.el=Wd.createElement(h,r),Sn.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Sn.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(Yi)){const D=g[u++],b=i.getAttribute(v).split(zt),k=/([.?@])?(.*)/.exec(D);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?_l:k[1]==="?"?xl:k[1]==="@"?Sl:jr}),i.removeAttribute(v)}else v.startsWith(zt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(yl.test(i.tagName)){const v=i.textContent.split(zt),D=v.length-1;if(D>0){i.textContent=Fa?Fa.emptyScript:"";for(let b=0;b<D;b++)i.append(v[b],Tr()),Sn.nextNode(),d.push({type:2,index:++o});i.append(v[D],Tr())}}}else if(i.nodeType===8)if(i.data===Ki)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(zt,v+1))!==-1;)d.push({type:7,index:o}),v+=zt.length-1}o++}}static createElement(t,n){const r=_n.createElement("template");return r.innerHTML=t,r}};function En(e,t,n=e,r){var i,o;if(t===Vt)return t;let u=r!==void 0?(i=n.o)==null?void 0:i[r]:n.l;const c=Br(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==c&&((o=u==null?void 0:u._$AO)==null||o.call(u,!1),c===void 0?u=void 0:(u=new c(e),u._$AT(e,n,r)),r!==void 0?(n.o??(n.o=[]))[r]=u:n.l=u),u!==void 0&&(t=En(e,u._$AS(e,t.values),u,r)),t}let Cl=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??_n).importNode(n,!0);Sn.currentNode=i;let o=Sn.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Aa(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new El(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=Sn.nextNode(),u++)}return Sn.currentNode=_n,i}p(t){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,n),n+=r.strings.length-2):r._$AI(t[n])),n++}},Aa=class zd{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this.v}constructor(t,n,r,i){this.type=2,this._$AH=re,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this.v=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=En(this,t,n),Br(t)?t===re||t==null||t===""?(this._$AH!==re&&this._$AR(),this._$AH=re):t!==this._$AH&&t!==Vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==re&&Br(this._$AH)?this._$AA.nextSibling.data=t:this.T(_n.createTextNode(t)),this._$AH=t}$(t){var n;const{values:r,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qi.createElement(kl(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(r);else{const u=new Cl(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=bl.get(t.strings);return n===void 0&&bl.set(t.strings,n=new Qi(t)),n}k(t){Ji(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,i=0;for(const o of t)i===n.length?n.push(r=new zd(this.O(Tr()),this.O(Tr()),this,this.options)):r=n[i],r._$AI(o),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(t=this._$AA.nextSibling,n){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,n);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var n;this._$AM===void 0&&(this.v=t,(n=this._$AP)==null||n.call(this,t))}},jr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=re,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=re}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=En(this,t,n,0),u=!Br(t)||t!==this._$AH&&t!==Vt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=En(this,c[r+d],n,d),h===Vt&&(h=this._$AH[d]),u||(u=!Br(h)||h!==this._$AH[d]),h===re?t=re:t!==re&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},_l=class extends jr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===re?void 0:t}},xl=class extends jr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==re)}},Sl=class extends jr{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=En(this,t,n,0)??re)===Vt)return;const r=this._$AH,i=t===re&&r!==re||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==re&&(r===re||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}},El=class{constructor(t,n,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){En(this,t)}};const wh={M:Yi,P:zt,A:Ki,C:1,L:wl,R:Cl,D:fl,V:En,I:Aa,H:jr,N:xl,U:Sl,B:_l,F:El},Fl=Ea.litHtmlPolyfillSupport;Fl==null||Fl(Qi,Aa),(Ea.litHtmlVersions??(Ea.litHtmlVersions=[])).push("3.2.0");const Ch=(e,t,n)=>{const r=(n==null?void 0:n.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new Aa(t.insertBefore(Tr(),o),o,void 0,n??{})}return i._$AI(e),i};/**
88
88
  * @license
89
89
  * Copyright 2017 Google LLC
90
90
  * SPDX-License-Identifier: BSD-3-Clause
91
- */let jr=class extends Xn{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t;const n=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=n.firstChild),n}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ch(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Vt}};var $l;jr._$litElement$=!0,jr.finalized=!0,($l=globalThis.litElementHydrateSupport)==null||$l.call(globalThis,{LitElement:jr});const Tl=globalThis.litElementPolyfillSupport;Tl==null||Tl({LitElement:jr}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");/**
91
+ */let Pr=class extends Xn{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var t;const n=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=n.firstChild),n}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ch(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this.o)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.o)==null||t.setConnected(!1)}render(){return Vt}};var Al;Pr._$litElement$=!0,Pr.finalized=!0,(Al=globalThis.litElementHydrateSupport)==null||Al.call(globalThis,{LitElement:Pr});const $l=globalThis.litElementPolyfillSupport;$l==null||$l({LitElement:Pr}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0");/**
92
92
  * @license
93
93
  * Copyright 2017 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
- */const _h={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Yi},xh=(e=_h,t,n)=>{const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),r==="accessor"){const{name:u}=n;return{set(c){const d=t.get.call(this);t.set.call(this,c),this.requestUpdate(u,d,e)},init(c){return c!==void 0&&this.P(u,void 0,e),c}}}if(r==="setter"){const{name:u}=n;return function(c){const d=this[u];t.call(this,c),this.requestUpdate(u,d,e)}}throw Error("Unsupported decorator location: "+r)};function O(e){return(t,n)=>typeof n=="object"?xh(e,t,n):((r,i,o)=>{const u=i.hasOwnProperty(o);return i.constructor.createProperty(o,u?{...r,wrapped:!0}:r),u?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,n)}/**
95
+ */const _h={attribute:!0,type:String,converter:Sa,reflect:!1,hasChanged:Gi},xh=(e=_h,t,n)=>{const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),r==="accessor"){const{name:u}=n;return{set(c){const d=t.get.call(this);t.set.call(this,c),this.requestUpdate(u,d,e)},init(c){return c!==void 0&&this.P(u,void 0,e),c}}}if(r==="setter"){const{name:u}=n;return function(c){const d=this[u];t.call(this,c),this.requestUpdate(u,d,e)}}throw Error("Unsupported decorator location: "+r)};function O(e){return(t,n)=>typeof n=="object"?xh(e,t,n):((r,i,o)=>{const u=i.hasOwnProperty(o);return i.constructor.createProperty(o,u?{...r,wrapped:!0}:r),u?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,n)}/**
96
96
  * @license
97
97
  * Copyright 2017 Google LLC
98
98
  * SPDX-License-Identifier: BSD-3-Clause
99
- */function Pr(e){return O({...e,state:!0,attribute:!1})}for(var Xe=[],es=0;es<256;++es)Xe.push((es+256).toString(16).slice(1));function Sh(e,t=0){return(Xe[e[t+0]]+Xe[e[t+1]]+Xe[e[t+2]]+Xe[e[t+3]]+"-"+Xe[e[t+4]]+Xe[e[t+5]]+"-"+Xe[e[t+6]]+Xe[e[t+7]]+"-"+Xe[e[t+8]]+Xe[e[t+9]]+"-"+Xe[e[t+10]]+Xe[e[t+11]]+Xe[e[t+12]]+Xe[e[t+13]]+Xe[e[t+14]]+Xe[e[t+15]]).toLowerCase()}var $a,Eh=new Uint8Array(16);function Fh(){if(!$a&&($a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $a(Eh)}var Ah=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Bl={randomUUID:Ah};function Nl(e,t,n){if(Bl.randomUUID&&!t&&!e)return Bl.randomUUID();e=e||{};var r=e.random||(e.rng||Fh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sh(r)}const $h={hi:"Hei!"},Th={buttonAltText:"Åpne kalender"},Bh={days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},Nh={labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},$t={example:$h,calendar:Th,dates:Bh,forms:Nh};var jh=Object.defineProperty,ze=(e,t,n,r)=>{for(var i=void 0,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=u(t,n,i)||i);return i&&jh(t,n,i),i};let jt=class extends jr{constructor(){super(),this.strings=$t}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};ze([O({type:Object})],jt.prototype,"strings");class Ve extends jt{constructor(){super(),this.id=Nl(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=$t.forms.labels.optional,this.requiredTag=!1,this.requiredText=$t.forms.labels.required,this.hasError=!1,this.errorMessage="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},$t.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},$t.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},$t.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},$t.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},$t.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},$t.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},$t.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const n=new FormData;t.forEach(r=>{n.append(this.name,r)}),this.internals.setFormValue(n)}else this.internals.setFormValue(t)}valueChanged(t,n){typeof t=="string"?((this.multiple||this.range)&&t.includes(",")&&(t=t.split(",")),this.value=t,this._value=Array.isArray(t)?t:[t]):Array.isArray(t)?(this.value=t,this._value=t):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&n&&n.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(n==null?void 0:n.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate())}clearInputValue(){const t=this.multiple||this.range?[]:"";this.value=t,this.internals.setFormValue(t),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}}ze([O({type:String,reflect:!0})],Ve.prototype,"id"),ze([O({type:String,reflect:!0})],Ve.prototype,"name"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"required"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"disabled"),ze([O({type:String,reflect:!0})],Ve.prototype,"placeholder"),ze([O({type:Number,reflect:!0})],Ve.prototype,"min"),ze([O({type:Number,reflect:!0})],Ve.prototype,"max"),ze([O({type:Number,reflect:!0})],Ve.prototype,"minlength"),ze([O({type:Number,reflect:!0})],Ve.prototype,"maxlength"),ze([O({type:String,reflect:!0})],Ve.prototype,"pattern"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"optionalTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"optionalText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"requiredTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"requiredText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"hasError"),ze([O({type:String,reflect:!0})],Ve.prototype,"errorMessage"),ze([Pr()],Ve.prototype,"touched");const jl=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ph=e=>e?new Date(e):null,Lh=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},Qn={csvToArray:jl,stringToDate:Ph,stringsToDate:Lh};/**
99
+ */function Qn(e){return O({...e,state:!0,attribute:!1})}for(var Xe=[],Zi=0;Zi<256;++Zi)Xe.push((Zi+256).toString(16).slice(1));function Sh(e,t=0){return(Xe[e[t+0]]+Xe[e[t+1]]+Xe[e[t+2]]+Xe[e[t+3]]+"-"+Xe[e[t+4]]+Xe[e[t+5]]+"-"+Xe[e[t+6]]+Xe[e[t+7]]+"-"+Xe[e[t+8]]+Xe[e[t+9]]+"-"+Xe[e[t+10]]+Xe[e[t+11]]+Xe[e[t+12]]+Xe[e[t+13]]+Xe[e[t+14]]+Xe[e[t+15]]).toLowerCase()}var $a,Eh=new Uint8Array(16);function Fh(){if(!$a&&($a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $a(Eh)}var Ah=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Tl={randomUUID:Ah};function Bl(e,t,n){if(Tl.randomUUID&&!t&&!e)return Tl.randomUUID();e=e||{};var r=e.random||(e.rng||Fh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sh(r)}const $h={hi:"Hei!"},Th={buttonAltText:"Åpne kalender"},Bh={days:["Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag","Søndag"],daysShort:["Man","Tir","Ons","Tor","Fre","Lør","Søn"],months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthsShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],week:"Uke",prevMonth:"Forrige måned",nextMonth:"Neste måned"},Nh={labels:{optional:"Valgfritt",required:"Må fylles ut"},messages:{required:"Dette feltet er påkrevd",invalid:"Ugyldig verdi",invalidPattern:"Ugyldig format",tooShort:"For kort",tooLong:"For lang",rangeUnderflow:"For lav verdi",rangeOverflow:"For høy verdi",dateUnderflow:"For tidlig dato",dateOverflow:"For sen dato"},date:{multiple:"Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato."}},$t={example:$h,calendar:Th,dates:Bh,forms:Nh};var jh=Object.defineProperty,ze=(e,t,n,r)=>{for(var i=void 0,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=u(t,n,i)||i);return i&&jh(t,n,i),i};let jt=class extends Pr{constructor(){super(),this.strings=$t}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};ze([O({type:Object})],jt.prototype,"strings");class Ve extends jt{constructor(){super(),this.id=Bl(),this.name=this.id,this.required=!1,this.disabled=!1,this.placeholder="",this.min=null,this.max=null,this.minlength=0,this.maxlength=0,this.pattern="",this.optionalTag=!1,this.optionalText=$t.forms.labels.optional,this.requiredTag=!1,this.requiredText=$t.forms.labels.required,this.hasError=!1,this.errorMessage="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},$t.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},$t.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},$t.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},$t.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},$t.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},$t.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},$t.forms.messages.rangeOverflow,t):t.validity.customError?this.internals.setValidity({customError:!0},t.validationMessage,t):this.internals.setValidity({})}setFormValue(t){if(this.internals)if(Array.isArray(t)){const n=new FormData;t.forEach(r=>{n.append(this.name,r)}),this.internals.setFormValue(n)}else this.internals.setFormValue(t)}valueChanged(t,n){typeof t=="string"?((this.multiple||this.range)&&t.includes(",")&&(t=t.split(",")),this.value=t,this._value=Array.isArray(t)?t:[t]):Array.isArray(t)?(this.value=t,this._value=t):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&n&&n.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(n==null?void 0:n.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate())}clearInputValue(){const t=this.multiple||this.range?[]:"";this.value=t,this.internals.setFormValue(t),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(t){if(!this.touched){this.touched=!0,t&&this.setFormValue(t);return}typeof t!="string"&&!Array.isArray(t)||((this.range||this.multiple)&&!Array.isArray(t)&&t.includes(",")&&(t=t.split(",")),!this.multiple&&!this.range&&Array.isArray(t)&&(t=t[0]),this.setFormValue(t),this.manageValidity(this.inputRef.value),this.inputRef2&&this.manageValidity(this.inputRef2.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:t,bubbles:!0,composed:!0})),this.internals.reportValidity())}firstUpdated(t){super.firstUpdated(t),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.disabled=!0,this.internals.ariaDisabled=!0),this.internals.setFormValue(this.value),this.manageValidity(this.inputRef.value)}}ze([O({type:String,reflect:!0})],Ve.prototype,"id"),ze([O({type:String,reflect:!0})],Ve.prototype,"name"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"required"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"disabled"),ze([O({type:String,reflect:!0})],Ve.prototype,"placeholder"),ze([O({type:Number,reflect:!0})],Ve.prototype,"min"),ze([O({type:Number,reflect:!0})],Ve.prototype,"max"),ze([O({type:Number,reflect:!0})],Ve.prototype,"minlength"),ze([O({type:Number,reflect:!0})],Ve.prototype,"maxlength"),ze([O({type:String,reflect:!0})],Ve.prototype,"pattern"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"optionalTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"optionalText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"requiredTag"),ze([O({type:String,reflect:!0})],Ve.prototype,"requiredText"),ze([O({type:Boolean,reflect:!0})],Ve.prototype,"hasError"),ze([O({type:String,reflect:!0})],Ve.prototype,"errorMessage"),ze([Qn()],Ve.prototype,"touched");const Nl=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ph=e=>e?new Date(e):null,Lh=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},Zn={csvToArray:Nl,stringToDate:Ph,stringsToDate:Lh};/**
100
100
  * @license
101
101
  * Copyright 2017 Google LLC
102
102
  * SPDX-License-Identifier: BSD-3-Clause
@@ -112,11 +112,11 @@ React keys must be passed directly to JSX without using spread:
112
112
  * @license
113
113
  * Copyright 2017 Google LLC
114
114
  * SPDX-License-Identifier: BSD-3-Clause
115
- */class Na extends Ba{constructor(t){if(super(t),this.it=re,t.type!==Ta.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===re||t==null)return this._t=void 0,this.it=t;if(t===Vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}Na.directiveName="unsafeHTML",Na.resultType=1;const ja=Lr(Na);/**
115
+ */let Na=class extends Ba{constructor(t){if(super(t),this.it=re,t.type!==Ta.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===re||t==null)return this._t=void 0,this.it=t;if(t===Vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};Na.directiveName="unsafeHTML",Na.resultType=1;const ja=Lr(Na);/**
116
116
  * @license
117
117
  * Copyright 2017 Google LLC
118
118
  * SPDX-License-Identifier: BSD-3-Clause
119
- */let ts=class extends Na{};ts.directiveName="unsafeSVG",ts.resultType=2;const Pl=Lr(ts);var Oh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Or=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ih(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Oh(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.3/icons/";const Mh=e=>new Promise(t=>setTimeout(t,e)),Pa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ns={},Rh=async(e,t)=>{let n=0;for(;ns[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await Mh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ns[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Pa)).then(r=>(r!==Pa&&localStorage.setItem(t+e+".svg",r),ns[t+e+".svg"]="fetched",r)))):Promise.resolve(Pa)};let Zn=class extends jt{constructor(){super(),this.path=window.pktIconPath,this.name="",this.icon=Pl(Pa),this._updatedProps=[],this.classList.add("pkt-icon")}willUpdate(t){super.willUpdate(t),t.has("class")&&this.classList.add("my-element")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),this._updatedProps.length>0?(this.icon=Pl(await Rh(this.name||"",this.path).then(i=>i)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return J`${this.name&&this.icon}`}};Or([O({type:String,reflect:!1})],Zn.prototype,"path",2),Or([O({type:String,reflect:!0})],Zn.prototype,"name",2),Or([O({type:SVGElement})],Zn.prototype,"icon",2),Or([O({type:Array,noAccessor:!0})],Zn.prototype,"_updatedProps",2),Zn=Or([Gt("pkt-icon")],Zn);function st(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Fn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Ll=6048e5,qh=864e5;let Hh={};function La(){return Hh}function Ir(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??u.weekStartsOn??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,d=st(e),h=d.getDay(),g=(h<c?7:0)+h-c;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function rs(e,t){const n=st(e.start),r=st(e.end);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const d=[];for(;+u<=o;)d.push(st(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Ol(e,t){var n,r,i,o;const u=st(e),c=u.getFullYear(),d=La(),h=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((o=(i=d.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,g=Fn(e,0);g.setFullYear(c+1,0,h),g.setHours(0,0,0,0);const v=Ir(g,t),D=Fn(e,0);D.setFullYear(c,0,h),D.setHours(0,0,0,0);const b=Ir(D,t);return u.getTime()>=v.getTime()?c+1:u.getTime()>=b.getTime()?c:c-1}function Uh(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??u.firstWeekContainsDate??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,d=Ol(e,t),h=Fn(e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Ir(h,t)}function Oa(e,t){const n=st(e),r=+Ir(n,t)-+Uh(n,t);return Math.round(r/Ll)+1}function Wh(e){let t=st(e).getDay();return t===0&&(t=7),t}const zh="pkt-calendar",Vh={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},Gh={"date-selected":{description:"Returns ISO formatted date string"}},An={name:zh,"css-class":"pkt-calendar",props:Vh,events:Gh};var Yh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Ae=(e,t,n,r)=>{for(var i=r>1?void 0:r?Kh(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Yh(t,n,i),i};let Se=class extends jt{constructor(){super(),this.multiple=An.props.multiple.default,this.maxMultiple=An.props.maxMultiple.default,this.range=An.props.range.default,this.weeknumbers=An.props.weeknumbers.default,this.withcontrols=An.props.withcontrols.default,this.selected=[],this.earliest=An.props.earliest.default,this.latest=An.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=new Date,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[]}connectedCallback(){const t=this.currentmonth;this.year=t.getFullYear(),this.month=t.getMonth(),this.week=Oa(new Date(this.year,this.month,1,12)),this.selected&&this.selected.length&&this.selected.forEach(n=>{this._selected.push(new Date(n))}),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(t,n,r){t==="currentmonth"&&r&&(this.currentmonth=new Date(r),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth(),this.week=Oa(new Date(this.year,this.month,1,12))),t==="selected"&&r&&(this._selected=[],this.selected.forEach(i=>{this._selected.push(new Date(i))})),super.attributeChangedCallback(t,n,r)}updated(t){if(t.has("selected")&&this.selected.length===2){const n=rs({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(n)&&n.length){const r={};for(let i=0;i<n.length;i++)r[this.formatISODate(n[i])]=this.isInRange(n[i]);this.inRange=r}}super.updated(t)}firstUpdated(t){this.addEventListener("keydown",this.handleKeydown)}handleKeydown(t){switch(t.key){case"ArrowLeft":this.handleArrowKey(t,-1);break;case"ArrowRight":this.handleArrowKey(t,1);break;case"ArrowUp":this.handleArrowKey(t,-7);break;case"ArrowDown":this.handleArrowKey(t,7);break}}handleArrowKey(t,n){if(t.preventDefault(),!this.focusedDate)return;const r=new Date(this.focusedDate);let i=new Date(r.setDate(r.getDate()+n));if(i){let o=this.querySelector(`div[data-date="${this.formatISODate(i)}"]`);if(o instanceof HTMLDivElement){if(o.dataset.disabled){let u=new Date(r.setDate(r.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);for(;c&&c instanceof HTMLDivElement&&c.dataset.disabled;)u=new Date(u.setDate(u.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);o=c}o instanceof HTMLDivElement&&!o.dataset.disabled&&o.focus()}}}render(){return J`
119
+ */let es=class extends Na{};es.directiveName="unsafeSVG",es.resultType=2;const jl=Lr(es);var Oh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Or=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ih(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Oh(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.3/icons/";const Mh=e=>new Promise(t=>setTimeout(t,e)),Pa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ts={},Rh=async(e,t)=>{let n=0;for(;ts[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await Mh(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ts[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Pa)).then(r=>(r!==Pa&&localStorage.setItem(t+e+".svg",r),ts[t+e+".svg"]="fetched",r)))):Promise.resolve(Pa)};let er=class extends jt{constructor(){super(),this.path=window.pktIconPath,this.name="",this.icon=jl(Pa),this._updatedProps=[],this.classList.add("pkt-icon")}willUpdate(t){super.willUpdate(t),t.has("class")&&this.classList.add("my-element")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),this._updatedProps.length>0?(this.icon=jl(await Rh(this.name||"",this.path).then(i=>i)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return J`${this.name&&this.icon}`}};Or([O({type:String,reflect:!1})],er.prototype,"path",2),Or([O({type:String,reflect:!0})],er.prototype,"name",2),Or([O({type:SVGElement})],er.prototype,"icon",2),Or([O({type:Array,noAccessor:!0})],er.prototype,"_updatedProps",2),er=Or([Gt("pkt-icon")],er);function st(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Fn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Pl=6048e5,qh=864e5;let Hh={};function La(){return Hh}function Ir(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.weekStartsOn)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.weekStartsOn)??u.weekStartsOn??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.weekStartsOn)??0,d=st(e),h=d.getDay(),g=(h<c?7:0)+h-c;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}function ns(e,t){const n=st(e.start),r=st(e.end);let i=+n>+r;const o=i?+n:+r,u=i?r:n;u.setHours(0,0,0,0);let c=1;const d=[];for(;+u<=o;)d.push(st(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Ll(e,t){var n,r,i,o;const u=st(e),c=u.getFullYear(),d=La(),h=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((o=(i=d.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,g=Fn(e,0);g.setFullYear(c+1,0,h),g.setHours(0,0,0,0);const v=Ir(g,t),D=Fn(e,0);D.setFullYear(c,0,h),D.setHours(0,0,0,0);const b=Ir(D,t);return u.getTime()>=v.getTime()?c+1:u.getTime()>=b.getTime()?c:c-1}function Uh(e,t){var n,r,i,o;const u=La(),c=(t==null?void 0:t.firstWeekContainsDate)??((r=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:r.firstWeekContainsDate)??u.firstWeekContainsDate??((o=(i=u.locale)==null?void 0:i.options)==null?void 0:o.firstWeekContainsDate)??1,d=Ll(e,t),h=Fn(e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Ir(h,t)}function Ol(e,t){const n=st(e),r=+Ir(n,t)-+Uh(n,t);return Math.round(r/Pl)+1}function Wh(e){let t=st(e).getDay();return t===0&&(t=7),t}const zh="pkt-calendar",Vh={id:{type:"string",name:"ID",description:"Unique identifier for the calendar"},currentmonth:{type:"date",converter:"stringToDate",description:"The current month to display"},selected:{type:"array",converter:"csvToArray",reflect:!0,items:{type:"date"},description:"Array of selected dates"},excludeweekdays:{type:"array",converter:"csvToArray",items:{type:"string"},description:"Array of weekdays (1-7) to exclude"},excludedates:{type:"array",converter:"stringsToDate",items:{type:"date"},description:"Array of specific dates to exclude"},earliest:{type:"date",converter:"stringToDate",default:null,description:"Earliest selectable date"},latest:{type:"date",converter:"stringToDate",default:null,description:"Latest selectable date"},weeknumbers:{type:"boolean",reflect:!0,default:!1,description:"Show week numbers in calendar"},withcontrols:{type:"boolean",reflect:!0,default:!1,description:"Show month and year navigation controls"},multiple:{type:"boolean",reflect:!0,default:!1,description:"Allow multiple date selection"},maxMultiple:{type:"number",default:4,description:"Maximum number of dates that can be selected"},range:{type:"boolean",reflect:!0,default:!1,description:"Allow date range selection"}},Gh={"date-selected":{description:"Returns ISO formatted date string"}},An={name:zh,"css-class":"pkt-calendar",props:Vh,events:Gh};var Yh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Ee=(e,t,n,r)=>{for(var i=r>1?void 0:r?Kh(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Yh(t,n,i),i};let xe=class extends jt{constructor(){super(),this.multiple=An.props.multiple.default,this.maxMultiple=An.props.maxMultiple.default,this.range=An.props.range.default,this.weeknumbers=An.props.weeknumbers.default,this.withcontrols=An.props.withcontrols.default,this.selected=[],this.earliest=An.props.earliest.default,this.latest=An.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.dayStrings=this.strings.dates.daysShort,this.monthStrings=this.strings.dates.months,this.weekString=this.strings.dates.week,this.prevMonthString=this.strings.dates.prevMonth,this.nextMonthString=this.strings.dates.nextMonth,this._selected=[],this.year=0,this.month=0,this.week=0,this.rangeHovered=null,this.inRange={},this.focusedDate=null,this.selectableDates=[],this.currentmonthtouched=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(t,n,r){t==="selected"&&r&&this.convertSelected(),super.attributeChangedCallback(t,n,r)}updated(t){t.has("selected")&&this.convertSelected(),super.updated(t)}convertSelected(){if(typeof this.selected=="string"&&(this.selected=this.selected.split(",")),this.selected.length===1&&this.selected[0]===""&&(this.selected=[]),this._selected=this.selected.map(t=>new Date(t)),this.range&&this.selected.length===2){const t=ns({start:new Date(this.selected[0]),end:new Date(this.selected[1])});if(this.inRange={},Array.isArray(t)&&t.length){const n={};for(let r=0;r<t.length;r++)n[this.formatISODate(t[r])]=this.isInRange(t[r]);this.inRange=n}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=new Date(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=new Date),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(t){switch(t.key){case"ArrowLeft":this.handleArrowKey(t,-1);break;case"ArrowRight":this.handleArrowKey(t,1);break;case"ArrowUp":this.handleArrowKey(t,-7);break;case"ArrowDown":this.handleArrowKey(t,7);break}}handleArrowKey(t,n){if(t.preventDefault(),!this.focusedDate)return;const r=new Date(this.focusedDate);let i=new Date(r.setDate(r.getDate()+n));if(i){let o=this.querySelector(`div[data-date="${this.formatISODate(i)}"]`);if(o instanceof HTMLDivElement){if(o.dataset.disabled){let u=new Date(r.setDate(r.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);for(;c&&c instanceof HTMLDivElement&&c.dataset.disabled;)u=new Date(u.setDate(u.getDate()+n)),c=this.querySelector(`div[data-date="${this.formatISODate(u)}"]`);o=c}o instanceof HTMLDivElement&&!o.dataset.disabled&&o.focus()}}}render(){return J`
120
120
  <div
121
121
  class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":re}"
122
122
  @focusout=${this.closeEvent}
@@ -170,7 +170,7 @@ React keys must be passed directly to JSX without using spread:
170
170
  size="4"
171
171
  placeholder="0000"
172
172
  @change=${n=>{this.changeMonth(n.target.value,this.month)}}
173
- value="${this.year}"
173
+ .value=${this.year}
174
174
  />
175
175
  </div> `):t.push(J`<div class="pkt-txt-16-medium" aria-live="polite">
176
176
  ${this.monthStrings[this.month]} ${this.year}
@@ -189,7 +189,7 @@ React keys must be passed directly to JSX without using spread:
189
189
  >
190
190
  <span class="pkt-btn__text pkt-txt-14-light">${t}</span>
191
191
  </div>
192
- </td>`}renderCalendarBody(){const t=new Date,n=new Date(this.year,this.month,1,12),r=new Date(this.year,this.month+1,0,12),i=(n.getDay()+6)%7,o=r.getDate(),u=Math.ceil((o+i)/7),c=new Date(this.year,this.month,0,12).getDate();let d=1;this.week=Oa(new Date(this.year,this.month,1,12));const h=[];for(let g=0;g<u;g++){const v=[];this.weeknumbers&&v.push(J`<td class="pkt-cal-week">${this.week}</td>`),this.week++;for(let D=1;D<8;D++)if(g===0&&D<i+1){const b=c-(i-D-1);v.push(J`<td class="pkt-cal-other">
192
+ </td>`}renderCalendarBody(){const t=new Date,n=new Date(this.year,this.month,1,12),r=new Date(this.year,this.month+1,0,12),i=(n.getDay()+6)%7,o=r.getDate(),u=Math.ceil((o+i)/7),c=new Date(this.year,this.month,0,12).getDate();let d=1;this.week=Ol(new Date(this.year,this.month,1,12));const h=[];for(let g=0;g<u;g++){const v=[];this.weeknumbers&&v.push(J`<td class="pkt-cal-week">${this.week}</td>`),this.week++;for(let D=1;D<8;D++)if(g===0&&D<i+1){const b=c-(i-D);v.push(J`<td class="pkt-cal-other">
193
193
  <div
194
194
  class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
195
195
  data-disabled="disabled"
@@ -205,19 +205,19 @@ React keys must be passed directly to JSX without using spread:
205
205
  </div>
206
206
  </td>`),d++):(v.push(this.renderDayView(d,t,D)),d++);h.push(J`<tr class="pkt-cal-week-row" role="row">
207
207
  ${v}
208
- </tr>`)}return h}isExcluded(t,n){return this.excludeweekdays.includes(t.toString())||this.earliest&&n<new Date(this.earliest)||this.latest&&n>new Date(this.latest)?!0:this.excludedates.some(r=>typeof r=="string"?r===this.formatISODate(n):r.toDateString()===n.toDateString())}formatISODate(t){return t.toISOString().split("T")[0]}isPrevMonthAllowed(){const t=new Date(this.year,this.month,0,12);return!(this.earliest&&new Date(this.earliest)>t)}prevMonth(){const t=this.month===0?11:this.month-1,n=this.month===0?this.year-1:this.year;this.changeMonth(n,t)}isNextMonthAllowed(){const t=new Date(this.year,this.month===11?0:this.month+1,1,12);return!(this.latest&&new Date(this.latest)<t)}nextMonth(){const t=this.month===11?0:this.month+1,n=this.month===11?this.year+1:this.year;this.changeMonth(n,t)}changeMonth(t,n){this.year=t,this.month=n,this.selectableDates=[],this.requestUpdate("currentmonth")}isInRange(t){if(this.range&&this.selected.length===2){if(t>new Date(this.selected[0])&&t<new Date(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&t>new Date(this.selected[0])&&t<this.rangeHovered)return!0;return!1}isRangeAllowed(t){let n=!0;if(this._selected.length===1){const r=rs({start:this._selected[0],end:t});if(Array.isArray(r)&&r.length)for(let i=0;i<r.length;i++)this.excludedates.forEach(o=>{o>this._selected[0]&&o<t&&(n=!1)}),this.excludeweekdays.includes(Wh(r[i]).toString())&&(n=!1)}return n}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(t){this.selected.includes(this.formatISODate(t))||(this.selected=[...this.selected,this.formatISODate(t)],this._selected=[...this._selected,t],this.range&&this.selected.length===2&&this.close())}removeFromSelected(t){if(this.selected.length===1)this.emptySelected();else{const n=this.selected.indexOf(this.formatISODate(t)),r=[...this.selected],i=[...this._selected];r.splice(n,1),i.splice(n,1),this.selected=r,this._selected=i}}toggleSelected(t){const n=this.formatISODate(t);this.selected.includes(n)?this.removeFromSelected(t):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(t)}handleRangeSelect(t){const n=this.formatISODate(t);return this.selected.includes(n)?this.selected.indexOf(n)===0?this.emptySelected():this.removeFromSelected(t):this.selected.length>1?(this.emptySelected(),this.addToSelected(t)):(this.selected.length===1&&!this.isRangeAllowed(t)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>t&&this.emptySelected(),this.addToSelected(t)),Promise.resolve()}handleRangeHover(t){if(this.range&&this._selected.length===1&&this.isRangeAllowed(t)&&this._selected[0]<t){this.rangeHovered=t,this.inRange={};const n=rs({start:this._selected[0],end:t});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.inRange[this.formatISODate(n[r])]=this.isInRange(n[r])}else this.rangeHovered=null}handleDateSelect(t){if(t)return this.range?this.handleRangeSelect(t):this.multiple?this.toggleSelected(t):(this.selected.includes(this.formatISODate(t))?this.emptySelected():(this.emptySelected(),this.addToSelected(t)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const t=this.formatISODate(new Date),n=this.querySelector(`div[data-date="${t}"]`);if(n instanceof HTMLDivElement)n.focus();else{const r=this.selectableDates.find(i=>!i.isDisabled);if(r){const i=this.querySelector(`div[data-date="${r.currentDateISO}"]`);i instanceof HTMLDivElement&&i.focus()}}}closeEvent(t){this.contains(t.relatedTarget)||this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Ae([O({type:Boolean,reflect:!0})],Se.prototype,"multiple",2),Ae([O({type:Number})],Se.prototype,"maxMultiple",2),Ae([O({type:Boolean,reflect:!0})],Se.prototype,"range",2),Ae([O({type:Boolean,reflect:!0})],Se.prototype,"weeknumbers",2),Ae([O({type:Boolean,reflect:!0})],Se.prototype,"withcontrols",2),Ae([O({converter:Qn.csvToArray})],Se.prototype,"selected",2),Ae([O({type:String,reflect:!0})],Se.prototype,"earliest",2),Ae([O({type:String,reflect:!0})],Se.prototype,"latest",2),Ae([O({converter:Qn.stringsToDate})],Se.prototype,"excludedates",2),Ae([O({converter:Qn.csvToArray})],Se.prototype,"excludeweekdays",2),Ae([O({converter:Qn.stringToDate})],Se.prototype,"currentmonth",2),Ae([O({type:Array})],Se.prototype,"dayStrings",2),Ae([O({type:Array})],Se.prototype,"monthStrings",2),Ae([O({type:String})],Se.prototype,"weekString",2),Ae([O({type:String})],Se.prototype,"prevMonthString",2),Ae([O({type:String})],Se.prototype,"nextMonthString",2),Ae([O({type:Array})],Se.prototype,"_selected",2),Ae([O({type:Number})],Se.prototype,"year",2),Ae([O({type:Number})],Se.prototype,"month",2),Ae([O({type:Number})],Se.prototype,"week",2),Ae([O({type:Date})],Se.prototype,"rangeHovered",2),Ae([Pr()],Se.prototype,"inRange",2),Ae([Pr()],Se.prototype,"focusedDate",2),Ae([Pr()],Se.prototype,"selectableDates",2),Se=Ae([Gt("pkt-calendar")],Se);let er=class{constructor(t,...n){this.nodes=[],this.host=t,this.host.addController(this),this.slots=n,this.nodes=[]}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{var n;if(t.nodeName==="#text"){if((n=t.nodeValue)!=null&&n.trim()){const r=document==null?void 0:document.createElement("template");r.content.appendChild(t),this.nodes.push(r)}}else this.nodes.push(t)})}hostUpdated(){this.slots.forEach(t=>{if(!t.value)return;const n=t.value.getAttribute("name"),r=this.nodes.flatMap(i=>i.getAttribute&&i.getAttribute("slot")==n?this.nodeFromElement(i,t):[]);r.length&&t.value.replaceChildren(...r)})}nodeFromElement(t,n){var r;return t===((r=n.value)==null?void 0:r.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):t}};/**
208
+ </tr>`)}return h}isExcluded(t,n){return this.excludeweekdays.includes(t.toString())||this.earliest&&n<new Date(this.earliest)||this.latest&&n>new Date(this.latest)?!0:this.excludedates.some(r=>typeof r=="string"?r===this.formatISODate(n):r.toDateString()===n.toDateString())}formatISODate(t){return t.toISOString().split("T")[0]}isPrevMonthAllowed(){const t=new Date(this.year,this.month,0,12);return!(this.earliest&&new Date(this.earliest)>t)}prevMonth(){const t=this.month===0?11:this.month-1,n=this.month===0?this.year-1:this.year;this.changeMonth(n,t)}isNextMonthAllowed(){const t=new Date(this.year,this.month===11?0:this.month+1,1,12);return!(this.latest&&new Date(this.latest)<t)}nextMonth(){const t=this.month===11?0:this.month+1,n=this.month===11?this.year+1:this.year;this.changeMonth(n,t)}changeMonth(t,n){this.year=t,this.month=n,this.selectableDates=[],this.requestUpdate()}isInRange(t){if(this.range&&this.selected.length===2){if(t>new Date(this.selected[0])&&t<new Date(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&t>new Date(this.selected[0])&&t<this.rangeHovered)return!0;return!1}isRangeAllowed(t){let n=!0;if(this._selected.length===1){const r=ns({start:this._selected[0],end:t});if(Array.isArray(r)&&r.length)for(let i=0;i<r.length;i++)this.excludedates.forEach(o=>{o>this._selected[0]&&o<t&&(n=!1)}),this.excludeweekdays.includes(Wh(r[i]).toString())&&(n=!1)}return n}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(t){this.selected.includes(this.formatISODate(t))||(this.selected=[...this.selected,this.formatISODate(t)],this._selected=[...this._selected,t],this.range&&this.selected.length===2&&this.close())}removeFromSelected(t){if(this.selected.length===1)this.emptySelected();else{const n=this.selected.indexOf(this.formatISODate(t)),r=[...this.selected],i=[...this._selected];r.splice(n,1),i.splice(n,1),this.selected=r,this._selected=i}}toggleSelected(t){const n=this.formatISODate(t);this.selected.includes(n)?this.removeFromSelected(t):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(t)}handleRangeSelect(t){const n=this.formatISODate(t);return this.selected.includes(n)?this.selected.indexOf(n)===0?this.emptySelected():this.removeFromSelected(t):this.selected.length>1?(this.emptySelected(),this.addToSelected(t)):(this.selected.length===1&&!this.isRangeAllowed(t)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>t&&this.emptySelected(),this.addToSelected(t)),Promise.resolve()}handleRangeHover(t){if(this.range&&this._selected.length===1&&this.isRangeAllowed(t)&&this._selected[0]<t){this.rangeHovered=t,this.inRange={};const n=ns({start:this._selected[0],end:t});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.inRange[this.formatISODate(n[r])]=this.isInRange(n[r])}else this.rangeHovered=null}handleDateSelect(t){if(t)return this.range?this.handleRangeSelect(t):this.multiple?this.toggleSelected(t):(this.selected.includes(this.formatISODate(t))?this.emptySelected():(this.emptySelected(),this.addToSelected(t)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const t=this.formatISODate(new Date),n=this.querySelector(`div[data-date="${t}"]`);if(n instanceof HTMLDivElement)n.focus();else{const r=this.selectableDates.find(i=>!i.isDisabled);if(r){const i=this.querySelector(`div[data-date="${r.currentDateISO}"]`);i instanceof HTMLDivElement&&i.focus()}}}closeEvent(t){this.contains(t.relatedTarget)||this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Ee([O({type:Boolean})],xe.prototype,"multiple",2),Ee([O({type:Number})],xe.prototype,"maxMultiple",2),Ee([O({type:Boolean})],xe.prototype,"range",2),Ee([O({type:Boolean})],xe.prototype,"weeknumbers",2),Ee([O({type:Boolean})],xe.prototype,"withcontrols",2),Ee([O({converter:Zn.csvToArray})],xe.prototype,"selected",2),Ee([O({type:String})],xe.prototype,"earliest",2),Ee([O({type:String})],xe.prototype,"latest",2),Ee([O({converter:Zn.stringsToDate})],xe.prototype,"excludedates",2),Ee([O({converter:Zn.csvToArray})],xe.prototype,"excludeweekdays",2),Ee([O({converter:Zn.stringToDate})],xe.prototype,"currentmonth",2),Ee([O({type:Array})],xe.prototype,"dayStrings",2),Ee([O({type:Array})],xe.prototype,"monthStrings",2),Ee([O({type:String})],xe.prototype,"weekString",2),Ee([O({type:String})],xe.prototype,"prevMonthString",2),Ee([O({type:String})],xe.prototype,"nextMonthString",2),Ee([O({type:Array})],xe.prototype,"_selected",2),Ee([O({type:Number})],xe.prototype,"year",2),Ee([O({type:Number})],xe.prototype,"month",2),Ee([O({type:Number})],xe.prototype,"week",2),Ee([O({type:Date})],xe.prototype,"rangeHovered",2),Ee([Qn()],xe.prototype,"inRange",2),Ee([Qn()],xe.prototype,"focusedDate",2),Ee([Qn()],xe.prototype,"selectableDates",2),Ee([Qn()],xe.prototype,"currentmonthtouched",2),xe=Ee([Gt("pkt-calendar")],xe);let tr=class{constructor(t,...n){this.nodes=[],this.host=t,this.host.addController(this),this.slots=n,this.nodes=[]}hostConnected(){Array.from(this.host.childNodes).forEach(t=>{var n;if(t.nodeName==="#text"){if((n=t.nodeValue)!=null&&n.trim()){const r=document==null?void 0:document.createElement("template");r.content.appendChild(t),this.nodes.push(r)}}else this.nodes.push(t)})}hostUpdated(){this.slots.forEach(t=>{if(!t.value)return;const n=t.value.getAttribute("name"),r=this.nodes.flatMap(i=>i.getAttribute&&i.getAttribute("slot")==n?this.nodeFromElement(i,t):[]);r.length&&t.value.replaceChildren(...r)})}nodeFromElement(t,n){var r;return t===((r=n.value)==null?void 0:r.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):t}};/**
209
209
  * @license
210
210
  * Copyright 2020 Google LLC
211
211
  * SPDX-License-Identifier: BSD-3-Clause
212
- */const{I:Jh}=wh,Xh=e=>e.strings===void 0,Il=()=>document.createComment(""),Mr=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const u=i.insertBefore(Il(),o),c=i.insertBefore(Il(),o);n=new Jh(u,c,e,e.options)}else{const u=n._$AB.nextSibling,c=n._$AM,d=c!==e;if(d){let h;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(h=e._$AU)!==c._$AU&&n._$AP(h)}if(u!==o||d){let h=n._$AA;for(;h!==u;){const g=h.nextSibling;i.insertBefore(h,o),h=g}}}return n},$n=(e,t,n=e)=>(e._$AI(t,n),e),Qh={},Zh=(e,t=Qh)=>e._$AH=t,ef=e=>e._$AH,as=e=>{var t;(t=e._$AP)==null||t.call(e,!1,!0);let n=e._$AA;const r=e._$AB.nextSibling;for(;n!==r;){const i=n.nextSibling;n.remove(),n=i}};/**
212
+ */const{I:Jh}=wh,Xh=e=>e.strings===void 0,Il=()=>document.createComment(""),Mr=(e,t,n)=>{var r;const i=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(n===void 0){const u=i.insertBefore(Il(),o),c=i.insertBefore(Il(),o);n=new Jh(u,c,e,e.options)}else{const u=n._$AB.nextSibling,c=n._$AM,d=c!==e;if(d){let h;(r=n._$AQ)==null||r.call(n,e),n._$AM=e,n._$AP!==void 0&&(h=e._$AU)!==c._$AU&&n._$AP(h)}if(u!==o||d){let h=n._$AA;for(;h!==u;){const g=h.nextSibling;i.insertBefore(h,o),h=g}}}return n},$n=(e,t,n=e)=>(e._$AI(t,n),e),Qh={},Zh=(e,t=Qh)=>e._$AH=t,ef=e=>e._$AH,rs=e=>{var t;(t=e._$AP)==null||t.call(e,!1,!0);let n=e._$AA;const r=e._$AB.nextSibling;for(;n!==r;){const i=n.nextSibling;n.remove(),n=i}};/**
213
213
  * @license
214
214
  * Copyright 2017 Google LLC
215
215
  * SPDX-License-Identifier: BSD-3-Clause
216
- */const Rr=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const i of r)(n=i._$AO)==null||n.call(i,t,!1),Rr(i,t);return!0},Ia=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Ml=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rf(t)}};function tf(e){this._$AN!==void 0?(Ia(this),this._$AM=e,Ml(this)):this._$AM=e}function nf(e,t=!1,n=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let o=n;o<r.length;o++)Rr(r[o],!1),Ia(r[o]);else r!=null&&(Rr(r,!1),Ia(r));else Rr(this,e)}const rf=e=>{e.type==Ta.CHILD&&(e._$AP??(e._$AP=nf),e._$AQ??(e._$AQ=tf))};let af=class extends Ba{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Ml(this),this.isConnected=t._$AU}_$AO(t,n=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),n&&(Rr(this,t),Ia(this))}setValue(t){if(Xh(this.t))this.t._$AI(t,this);else{const n=[...this.t._$AH];n[this.i]=t,this.t._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
216
+ */const Rr=(e,t)=>{var n;const r=e._$AN;if(r===void 0)return!1;for(const i of r)(n=i._$AO)==null||n.call(i,t,!1),Rr(i,t);return!0},Oa=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},Ml=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rf(t)}};function tf(e){this._$AN!==void 0?(Oa(this),this._$AM=e,Ml(this)):this._$AM=e}function nf(e,t=!1,n=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(r))for(let o=n;o<r.length;o++)Rr(r[o],!1),Oa(r[o]);else r!=null&&(Rr(r,!1),Oa(r));else Rr(this,e)}const rf=e=>{e.type==Ta.CHILD&&(e._$AP??(e._$AP=nf),e._$AQ??(e._$AQ=tf))};let af=class extends Ba{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Ml(this),this.isConnected=t._$AU}_$AO(t,n=!0){var r,i;t!==this.isConnected&&(this.isConnected=t,t?(r=this.reconnected)==null||r.call(this):(i=this.disconnected)==null||i.call(this)),n&&(Rr(this,t),Oa(this))}setValue(t){if(Xh(this.t))this.t._$AI(t,this);else{const n=[...this.t._$AH];n[this.i]=t,this.t._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
217
217
  * @license
218
218
  * Copyright 2020 Google LLC
219
219
  * SPDX-License-Identifier: BSD-3-Clause
220
- */const _t=()=>new sf;let sf=class{};const is=new WeakMap,ot=Lr(class extends af{render(e){return re}update(e,[t]){var n;const r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=is.get(t);n===void 0&&(n=new WeakMap,is.set(t,n)),n.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),n.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=is.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),of="pkt-tag",lf={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"string",required:!1},skin:{required:!1,default:"blue",type:["blue","green","red","beige","yellow","gray","blue-light"]},textStyle:{required:!1,default:"normal-text",type:["thin-text","normal-text"]},type:{required:!1,default:"button",type:["button","submit","reset"]},ariaLabel:{type:"string",required:!1,default:"close"}},uf={default:{description:"Teksten til tag"}},tr={name:of,"css-class":"pkt-tag",props:lf,slots:uf};var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Yt=(e,t,n,r)=>{for(var i=r>1?void 0:r?pf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&cf(t,n,i),i};let Pt=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.closeTag=tr.props.closeTag.default,this.size=tr.props.size.default,this.skin=tr.props.skin.default,this.textStyle=tr.props.textStyle.default,this.iconName=void 0,this.type=tr.props.type.default,this.ariaLabel=tr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("onClose",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new er(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},n={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName};return this.closeTag?this._isClosed?re:J`
220
+ */const _t=()=>new sf;let sf=class{};const as=new WeakMap,ot=Lr(class extends af{render(e){return re}update(e,[t]){var n;const r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=(n=e.options)==null?void 0:n.host,this.rt(this.ct=e.element)),re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=as.get(t);n===void 0&&(n=new WeakMap,as.set(t,n)),n.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),n.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){var e,t;return typeof this.Y=="function"?(e=as.get(this.ht??globalThis))==null?void 0:e.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),of="pkt-tag",lf={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"string",required:!1},skin:{required:!1,default:"blue",type:["blue","green","red","beige","yellow","gray","blue-light"]},textStyle:{required:!1,default:"normal-text",type:["thin-text","normal-text"]},type:{required:!1,default:"button",type:["button","submit","reset"]},ariaLabel:{type:"string",required:!1,default:"close"}},uf={default:{description:"Teksten til tag"}},nr={name:of,"css-class":"pkt-tag",props:lf,slots:uf};var cf=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Yt=(e,t,n,r)=>{for(var i=r>1?void 0:r?pf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&cf(t,n,i),i};let Pt=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.closeTag=nr.props.closeTag.default,this.size=nr.props.size.default,this.skin=nr.props.skin.default,this.textStyle=nr.props.textStyle.default,this.iconName=void 0,this.type=nr.props.type.default,this.ariaLabel=nr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("onClose",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new tr(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},n={"pkt-tag":!0,"pkt-btn":!0,"pkt-btn--tertiary":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle,"pkt-btn--icons-right-and-left":this.closeTag&&!!this.iconName};return this.closeTag?this._isClosed?re:J`
221
221
  <button
222
222
  class=${Ge(n)}
223
223
  type=${this.type}
@@ -233,7 +233,7 @@ React keys must be passed directly to JSX without using spread:
233
233
  ${this.iconName&&J` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
234
234
  <span ${ot(this.defaultSlot)}> </span>
235
235
  </span>
236
- `}};Yt([O({type:Boolean,reflect:!0})],Pt.prototype,"closeTag",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"size",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"skin",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"textStyle",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"iconName",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"type",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"ariaLabel",2),Yt([Pr()],Pt.prototype,"_isClosed",2),Pt=Yt([Gt("pkt-tag")],Pt);const df="pkt-card",hf=!0,ff={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},mf={default:{description:"Innholdet i kortet"}},Rl={name:df,"css-class":"pkt-card",isElement:hf,props:ff,slots:mf};var gf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,Tn=(e,t,n,r)=>{for(var i=r>1?void 0:r?vf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&gf(t,n,i),i};let Kt=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.skin=Rl.props.skin.default,this.direction=Rl.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new er(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return J`
236
+ `}};Yt([O({type:Boolean,reflect:!0})],Pt.prototype,"closeTag",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"size",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"skin",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"textStyle",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"iconName",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"type",2),Yt([O({type:String,reflect:!0})],Pt.prototype,"ariaLabel",2),Yt([Qn()],Pt.prototype,"_isClosed",2),Pt=Yt([Gt("pkt-tag")],Pt);const df="pkt-card",hf=!0,ff={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"IPktTag[]",description:"Liste av tags på kortet. Tar inn en array med IPktTag-objekter med følgende stringproperties: skin, iconName, ariaLabel, text",name:"Tags",items:{type:"object",properties:{skin:{type:["blue","green","red","yellow"],description:"Farge på tag"},iconName:{type:"string",description:"Id på ikonet du ønsker å bruke til tag"},ariaLabel:{type:"string",description:"Tekst for aria-label"},text:{type:"string",description:"Tekst på tag"}},required:["text"]}},skin:{type:["outlined","gray","blue","beige","green"],name:"Skin",description:"Farge på kortet",default:"outlined"},direction:{type:["landscape","portrait"],name:"Direction",description:"Retningen innholdet skal ligge i forhold til kortet",default:"portrait"},Image:{type:"object",image:"Image",description:"Bilde på kortet. Tar inn et objekt av typen {src: string, alt: string}. src er stien til bildet, og alt er tekst for aria-label.",items:{type:"object",properties:{src:{type:"string",description:"Bilde på kortet"},alt:{type:"string",description:"Tekst for aria-label"}},required:["src","alt"]}}},mf={default:{description:"Innholdet i kortet"}},Rl={name:df,"css-class":"pkt-card",isElement:hf,props:ff,slots:mf};var gf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,Tn=(e,t,n,r)=>{for(var i=r>1?void 0:r?vf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&gf(t,n,i),i};let Kt=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.skin=Rl.props.skin.default,this.direction=Rl.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new tr(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const t={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return J`
237
237
  <div class=${Ge(t)}>
238
238
  ${this.image.src&&J`
239
239
  <div class="pkt-card__image">
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
255
255
  ${this.defaultSlot&&J`<div class="pkt-card__content" ${ot(this.defaultSlot)}></div>`}
256
256
  </div>
257
257
  </div>
258
- `}};Tn([O({type:String,reflect:!0})],Kt.prototype,"skin",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"direction",2),Tn([O({type:Object,reflect:!0})],Kt.prototype,"image",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"heading",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"subheading",2),Tn([O({type:Array,reflect:!0})],Kt.prototype,"tags",2),Kt=Tn([Gt("pkt-card")],Kt);var Df=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,qr=(e,t,n,r)=>{for(var i=r>1?void 0:r?yf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Df(t,n,i),i};let nr=class extends jt{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=_t(),this.namedSlot=_t(),this.slotController=new er(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return J`
258
+ `}};Tn([O({type:String,reflect:!0})],Kt.prototype,"skin",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"direction",2),Tn([O({type:Object,reflect:!0})],Kt.prototype,"image",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"heading",2),Tn([O({type:String,reflect:!0})],Kt.prototype,"subheading",2),Tn([O({type:Array,reflect:!0})],Kt.prototype,"tags",2),Kt=Tn([Gt("pkt-card")],Kt);var Df=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,qr=(e,t,n,r)=>{for(var i=r>1?void 0:r?yf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Df(t,n,i),i};let rr=class extends jt{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=_t(),this.namedSlot=_t(),this.slotController=new tr(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return J`
259
259
  <div class="${Ge(e)}">
260
260
  <h1 class="pkt-txt-28">${this.string}</h1>
261
261
 
@@ -283,12 +283,12 @@ React keys must be passed directly to JSX without using spread:
283
283
  <ul>
284
284
  ${e.map(t=>J`<li>${t}</li>`)}
285
285
  </ul>
286
- `}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};qr([O({type:String})],nr.prototype,"string",2),qr([O({converter:jl})],nr.prototype,"strings",2),qr([O({type:Boolean})],nr.prototype,"darkmode",2),qr([O({type:Array})],nr.prototype,"_list",2),nr=qr([Gt("pkt-component")],nr);/**
286
+ `}doStuff(e){return e.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};qr([O({type:String})],rr.prototype,"string",2),qr([O({converter:Nl})],rr.prototype,"strings",2),qr([O({type:Boolean})],rr.prototype,"darkmode",2),qr([O({type:Array})],rr.prototype,"_list",2),rr=qr([Gt("pkt-component")],rr);/**
287
287
  * @license
288
288
  * Copyright 2020 Google LLC
289
289
  * SPDX-License-Identifier: BSD-3-Clause
290
- */const bf=Symbol.for(""),ss=(e,...t)=>({_$litStatic$:t.reduce((n,r,i)=>n+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
291
- take care to ensure page security.`)})(r)+e[i+1],e[0]),r:bf}),kf="pkt-inputwrapper",wf={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},Cf={forId:{name:"For ID",description:"Id-en til inputfeltet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for inputfeltet",type:"boolean",required:!0,default:"input"},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for inputfeltet",type:"string"},helptextDropdown:{name:"Hjelpetekst i dropdown",description:"Hjelpetekst som vises i ekspanderende felt",type:"string"},helptextDropdownButton:{name:"Tekst i hjelpetekst-knapp",description:"Tekst som vises i knappen for å vise hjelpetekst i dropdown",default:"Les mer <span class='pkt-sr-only'>om inputfeltet</span>",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i inputfeltet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn",description:"Maks antall tegn som kan skrives i inputfeltet",type:"number"},optionalTag:{name:"Vise valgfritt-merking",description:"Viser en merking som indikerer at feltet er valgfritt",type:"boolean",default:!1},optionalText:{name:"Valgfritt-tekst",description:"Tekst som vises i valgfritt-merkingen",type:"string",default:"Valgfritt"},requiredTag:{name:"Vise påkrevd-merking",description:"Viser en merking som indikerer at feltet er påkrevd",type:"boolean",default:!1},requiredText:{name:"Påkrevd-tekst",description:"Tekst som vises i påkrevd-merkingen",type:"string",default:"Må fylles ut"},hasError:{name:"Feil",description:"Indikerer at inputfeltet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til inputfeltet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at inputfeltet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at inputfeltet skal flyte sammen med sidens innhold",type:"boolean",default:!1},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver inputfeltet",type:"string"},hasFieldset:{name:"Har fieldset",description:"Indikerer at inputfeltet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om inputfeltet skal bruke en wrapper",type:"boolean",default:!0}},xt={name:kf,"css-class":"pkt-inputwrapper",events:wf,props:Cf};var _f=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Le=(e,t,n,r)=>{for(var i=r>1?void 0:r?xf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&_f(t,n,i),i};let je=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.forId=Nl(),this.label=xt.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=xt.props.helptextDropdownButton.default,this.counter=xt.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=xt.props.optionalTag.default,this.optionalText=xt.props.optionalText.default,this.requiredTag=xt.props.requiredTag.default,this.requiredText=xt.props.requiredText.default,this.hasError=xt.props.hasError.default,this.errorMessage="",this.disabled=xt.props.disabled.default,this.inline=xt.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=xt.props.hasFieldset.default,this.useWrapper=xt.props.useWrapper.default,this.isHelpTextOpen=!1,this.wrapperType=this.useWrapper?ss`fieldset`:this.hasDropdown?ss`div`:ss`label`,this.slotController=new er(this,this.defaultSlot)}render(){const t={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},n={"pkt-tag":!0,"pkt-tag--small":!0,"pkt-tag--thin-text":!0,"pkt-tag--blue-light":this.optionalTag,"pkt-tag--beige":!this.optionalTag&&this.requiredTag},r=this.helptextDropdown!=="",i=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},o={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen},u={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},c=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:re,d=()=>this.optionalTag||this.requiredTag?J`<span class=${Ge(n)}
290
+ */const bf=Symbol.for(""),is=(e,...t)=>({_$litStatic$:t.reduce((n,r,i)=>n+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
291
+ take care to ensure page security.`)})(r)+e[i+1],e[0]),r:bf}),kf="pkt-inputwrapper",wf={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},Cf={forId:{name:"For ID",description:"Id-en til inputfeltet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for inputfeltet",type:"boolean",required:!0,default:"input"},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for inputfeltet",type:"string"},helptextDropdown:{name:"Hjelpetekst i dropdown",description:"Hjelpetekst som vises i ekspanderende felt",type:"string"},helptextDropdownButton:{name:"Tekst i hjelpetekst-knapp",description:"Tekst som vises i knappen for å vise hjelpetekst i dropdown",default:"Les mer <span class='pkt-sr-only'>om inputfeltet</span>",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i inputfeltet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn",description:"Maks antall tegn som kan skrives i inputfeltet",type:"number"},optionalTag:{name:"Vise valgfritt-merking",description:"Viser en merking som indikerer at feltet er valgfritt",type:"boolean",default:!1},optionalText:{name:"Valgfritt-tekst",description:"Tekst som vises i valgfritt-merkingen",type:"string",default:"Valgfritt"},requiredTag:{name:"Vise påkrevd-merking",description:"Viser en merking som indikerer at feltet er påkrevd",type:"boolean",default:!1},requiredText:{name:"Påkrevd-tekst",description:"Tekst som vises i påkrevd-merkingen",type:"string",default:"Må fylles ut"},hasError:{name:"Feil",description:"Indikerer at inputfeltet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til inputfeltet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at inputfeltet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at inputfeltet skal flyte sammen med sidens innhold",type:"boolean",default:!1},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver inputfeltet",type:"string"},hasFieldset:{name:"Har fieldset",description:"Indikerer at inputfeltet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om inputfeltet skal bruke en wrapper",type:"boolean",default:!0}},xt={name:kf,"css-class":"pkt-inputwrapper",events:wf,props:Cf};var _f=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Le=(e,t,n,r)=>{for(var i=r>1?void 0:r?xf(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&_f(t,n,i),i};let je=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.forId=Bl(),this.label=xt.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=xt.props.helptextDropdownButton.default,this.counter=xt.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=xt.props.optionalTag.default,this.optionalText=xt.props.optionalText.default,this.requiredTag=xt.props.requiredTag.default,this.requiredText=xt.props.requiredText.default,this.hasError=xt.props.hasError.default,this.errorMessage="",this.disabled=xt.props.disabled.default,this.inline=xt.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=xt.props.hasFieldset.default,this.useWrapper=xt.props.useWrapper.default,this.isHelpTextOpen=!1,this.wrapperType=this.useWrapper?is`fieldset`:this.hasDropdown?is`div`:is`label`,this.slotController=new tr(this,this.defaultSlot)}render(){const t={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},n={"pkt-tag":!0,"pkt-tag--small":!0,"pkt-tag--thin-text":!0,"pkt-tag--blue-light":this.optionalTag,"pkt-tag--beige":!this.optionalTag&&this.requiredTag},r=this.helptextDropdown!=="",i=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},o={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen},u={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},c=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:re,d=()=>this.optionalTag||this.requiredTag?J`<span class=${Ge(n)}
292
292
  >${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:re}</span
293
293
  >`:re,h=()=>this.useWrapper?this.hasFieldset?J`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
294
294
  ${this.label} ${d()}
@@ -341,11 +341,11 @@ React keys must be passed directly to JSX without using spread:
341
341
  aria-describedby="${c}"
342
342
  >
343
343
  ${b()}
344
- </label>`;return J`<div class=${Ge(t)}>${k()}</div> `}};Le([O({type:String,reflect:!0})],je.prototype,"forId",2),Le([O({type:String,reflect:!0})],je.prototype,"label",2),Le([O({type:String,reflect:!0})],je.prototype,"helptext",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdown",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdownButton",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"counter",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterCurrent",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterMaxLength",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"optionalTag",2),Le([O({type:String,reflect:!0})],je.prototype,"optionalText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"requiredTag",2),Le([O({type:String,reflect:!0})],je.prototype,"requiredText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasError",2),Le([O({type:String,reflect:!0})],je.prototype,"errorMessage",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"disabled",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"inline",2),Le([O({type:String,reflect:!0})],je.prototype,"ariaDescribedby",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasFieldset",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"useWrapper",2),Le([O({reflect:!1,type:Boolean})],je.prototype,"isHelpTextOpen",2),je=Le([Gt("pkt-input-wrapper")],je);function Ma(e){return Ir(e,{weekStartsOn:1})}function ql(e){const t=st(e),n=t.getFullYear(),r=Fn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ma(r),o=Fn(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=Ma(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function Hl(e){const t=st(e);return t.setHours(0,0,0,0),t}function Ul(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sf(e,t){const n=Hl(e),r=Hl(t),i=+n-Ul(n),o=+r-Ul(r);return Math.round((i-o)/qh)}function Ef(e){const t=ql(e),n=Fn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ma(n)}function Ff(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Af(e){if(!Ff(e)&&typeof e!="number")return!1;const t=st(e);return!isNaN(Number(t))}function $f(e){const t=st(e),n=Fn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Tf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bf=(e,t,n)=>{let r;const i=Tf[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function os(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lf={date:os({formats:Nf,defaultWidth:"full"}),time:os({formats:jf,defaultWidth:"full"}),dateTime:os({formats:Pf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},If=(e,t,n,r)=>Of[e];function Hr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;i=e.formattingValues[c]||e.formattingValues[u]}else{const u=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[u]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Mf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Uf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zf=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Vf={ordinalNumber:zf,era:Hr({values:Mf,defaultWidth:"wide"}),quarter:Hr({values:Rf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Hr({values:qf,defaultWidth:"wide"}),day:Hr({values:Hf,defaultWidth:"wide"}),dayPeriod:Hr({values:Uf,defaultWidth:"wide",formattingValues:Wf,defaultFormattingWidth:"wide"})};function Ur(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const u=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Yf(c,v=>v.test(u)):Gf(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(u.length);return{value:h,rest:g}}}function Gf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Yf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let u=e.valueCallback?e.valueCallback(o[0]):o[0];u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}const Jf=/^(\d+)(th|st|nd|rd)?/i,Xf=/\d+/i,Qf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zf={any:[/^b/i,/^(a|c)/i]},em={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tm={any:[/1/i,/2/i,/3/i,/4/i]},nm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},am={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},im={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},om={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lm={ordinalNumber:Kf({matchPattern:Jf,parsePattern:Xf,valueCallback:e=>parseInt(e,10)}),era:Ur({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),quarter:Ur({matchPatterns:em,defaultMatchWidth:"wide",parsePatterns:tm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ur({matchPatterns:nm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),day:Ur({matchPatterns:am,defaultMatchWidth:"wide",parsePatterns:im,defaultParseWidth:"any"}),dayPeriod:Ur({matchPatterns:sm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},um={code:"en-US",formatDistance:Bf,formatLong:Lf,formatRelative:If,localize:Vf,match:lm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cm(e){const t=st(e);return Sf(t,$f(t))+1}function pm(e){const t=st(e),n=+Ma(t)-+Ef(t);return Math.round(n/Ll)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const cn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ce(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ce(n+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ce(i,t.length)}},rr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wl={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cn.y(e,t)},Y:function(e,t,n,r){const i=Ol(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return Ce(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ce(o,t.length)},R:function(e,t){const n=ql(e);return Ce(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ce(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return cn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Oa(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=pm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ce(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,t)},D:function(e,t,n){const r=cm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ce(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ce(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ce(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ce(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=rr.noon:r===0?i=rr.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=rr.evening:r>=12?i=rr.afternoon:r>=4?i=rr.morning:i=rr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return cn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,t)},S:function(e,t){return cn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Vl(r);case"XXXX":case"XX":return Bn(r);case"XXXXX":case"XXX":default:return Bn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Vl(r);case"xxxx":case"xx":return Bn(r);case"xxxxx":case"xxx":default:return Bn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zl(r,":");case"OOOO":default:return"GMT"+Bn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zl(r,":");case"zzzz":default:return"GMT"+Bn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ce(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ce(r,t.length)}};function zl(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ce(o,2)}function Vl(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Bn(e,t)}function Bn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ce(Math.trunc(r/60),2),o=Ce(r%60,2);return n+i+t+o}const Gl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Yl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Gl(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Gl(r,t)).replace("{{time}}",Yl(i,t))},hm={p:Yl,P:dm},fm=/^D+$/,mm=/^Y+$/,gm=["D","DD","YY","YYYY"];function vm(e){return fm.test(e)}function Dm(e){return mm.test(e)}function ym(e,t,n){const r=bm(e,t,n);if(console.warn(r),gm.includes(e))throw new RangeError(r)}function bm(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const km=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cm=/^'([^]*?)'?$/,_m=/''/g,xm=/[a-zA-Z]/;function Sm(e,t,n){var r,i,o,u;const c=La(),d=c.locale??um,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,g=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=st(e);if(!Af(v))throw new RangeError("Invalid time value");let D=t.match(wm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=hm[x];return C(k,d.formatLong)}return k}).join("").match(km).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Em(k)};if(Wl[x])return{isToken:!0,value:k};if(x.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(D=d.localize.preprocessor(v,D));const b={firstWeekContainsDate:h,weekStartsOn:g,locale:d};return D.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Dm(x)||vm(x))&&ym(x,t,String(e));const C=Wl[x[0]];return C(v,x,d.localize,b)}).join("")}function Em(e){const t=e.match(Cm);return t?t[1].replace(_m,"'"):e}/**
344
+ </label>`;return J`<div class=${Ge(t)}>${k()}</div> `}};Le([O({type:String,reflect:!0})],je.prototype,"forId",2),Le([O({type:String,reflect:!0})],je.prototype,"label",2),Le([O({type:String,reflect:!0})],je.prototype,"helptext",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdown",2),Le([O({type:String,reflect:!0})],je.prototype,"helptextDropdownButton",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"counter",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterCurrent",2),Le([O({type:Number,reflect:!0})],je.prototype,"counterMaxLength",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"optionalTag",2),Le([O({type:String,reflect:!0})],je.prototype,"optionalText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"requiredTag",2),Le([O({type:String,reflect:!0})],je.prototype,"requiredText",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasError",2),Le([O({type:String,reflect:!0})],je.prototype,"errorMessage",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"disabled",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"inline",2),Le([O({type:String,reflect:!0})],je.prototype,"ariaDescribedby",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"hasFieldset",2),Le([O({type:Boolean,reflect:!0})],je.prototype,"useWrapper",2),Le([O({reflect:!1,type:Boolean})],je.prototype,"isHelpTextOpen",2),je=Le([Gt("pkt-input-wrapper")],je);function Ia(e){return Ir(e,{weekStartsOn:1})}function ql(e){const t=st(e),n=t.getFullYear(),r=Fn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ia(r),o=Fn(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=Ia(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function Hl(e){const t=st(e);return t.setHours(0,0,0,0),t}function Ul(e){const t=st(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sf(e,t){const n=Hl(e),r=Hl(t),i=+n-Ul(n),o=+r-Ul(r);return Math.round((i-o)/qh)}function Ef(e){const t=ql(e),n=Fn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ia(n)}function Ff(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Af(e){if(!Ff(e)&&typeof e!="number")return!1;const t=st(e);return!isNaN(Number(t))}function $f(e){const t=st(e),n=Fn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Tf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Bf=(e,t,n)=>{let r;const i=Tf[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ss(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Nf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lf={date:ss({formats:Nf,defaultWidth:"full"}),time:ss({formats:jf,defaultWidth:"full"}),dateTime:ss({formats:Pf,defaultWidth:"full"})},Of={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},If=(e,t,n,r)=>Of[e];function Hr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):u;i=e.formattingValues[c]||e.formattingValues[u]}else{const u=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[u]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Mf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hf={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Uf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wf={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zf=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Vf={ordinalNumber:zf,era:Hr({values:Mf,defaultWidth:"wide"}),quarter:Hr({values:Rf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Hr({values:qf,defaultWidth:"wide"}),day:Hr({values:Hf,defaultWidth:"wide"}),dayPeriod:Hr({values:Uf,defaultWidth:"wide",formattingValues:Wf,defaultFormattingWidth:"wide"})};function Ur(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const u=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?Yf(c,v=>v.test(u)):Gf(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const g=t.slice(u.length);return{value:h,rest:g}}}function Gf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Yf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Kf(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let u=e.valueCallback?e.valueCallback(o[0]):o[0];u=n.valueCallback?n.valueCallback(u):u;const c=t.slice(i.length);return{value:u,rest:c}}}const Jf=/^(\d+)(th|st|nd|rd)?/i,Xf=/\d+/i,Qf={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zf={any:[/^b/i,/^(a|c)/i]},em={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tm={any:[/1/i,/2/i,/3/i,/4/i]},nm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},am={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},im={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},om={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lm={ordinalNumber:Kf({matchPattern:Jf,parsePattern:Xf,valueCallback:e=>parseInt(e,10)}),era:Ur({matchPatterns:Qf,defaultMatchWidth:"wide",parsePatterns:Zf,defaultParseWidth:"any"}),quarter:Ur({matchPatterns:em,defaultMatchWidth:"wide",parsePatterns:tm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ur({matchPatterns:nm,defaultMatchWidth:"wide",parsePatterns:rm,defaultParseWidth:"any"}),day:Ur({matchPatterns:am,defaultMatchWidth:"wide",parsePatterns:im,defaultParseWidth:"any"}),dayPeriod:Ur({matchPatterns:sm,defaultMatchWidth:"any",parsePatterns:om,defaultParseWidth:"any"})},um={code:"en-US",formatDistance:Bf,formatLong:Lf,formatRelative:If,localize:Vf,match:lm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cm(e){const t=st(e);return Sf(t,$f(t))+1}function pm(e){const t=st(e),n=+Ia(t)-+Ef(t);return Math.round(n/Pl)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const cn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ce(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ce(n+1,2)},d(e,t){return Ce(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Ce(e.getHours()%12||12,t.length)},H(e,t){return Ce(e.getHours(),t.length)},m(e,t){return Ce(e.getMinutes(),t.length)},s(e,t){return Ce(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Ce(i,t.length)}},ar={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wl={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cn.y(e,t)},Y:function(e,t,n,r){const i=Ll(e,r),o=i>0?i:1-i;if(t==="YY"){const u=o%100;return Ce(u,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ce(o,t.length)},R:function(e,t){const n=ql(e);return Ce(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ce(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ce(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ce(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return cn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ce(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Ol(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=pm(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ce(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):cn.d(e,t)},D:function(e,t,n){const r=cm(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ce(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ce(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ce(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Ce(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ar.noon:r===0?i=ar.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ar.evening:r>=12?i=ar.afternoon:r>=4?i=ar.morning:i=ar.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return cn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):cn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ce(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):cn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):cn.s(e,t)},S:function(e,t){return cn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Vl(r);case"XXXX":case"XX":return Bn(r);case"XXXXX":case"XXX":default:return Bn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Vl(r);case"xxxx":case"xx":return Bn(r);case"xxxxx":case"xxx":default:return Bn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zl(r,":");case"OOOO":default:return"GMT"+Bn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zl(r,":");case"zzzz":default:return"GMT"+Bn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Ce(r,t.length)},T:function(e,t,n){const r=e.getTime();return Ce(r,t.length)}};function zl(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Ce(o,2)}function Vl(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Bn(e,t)}function Bn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Ce(Math.trunc(r/60),2),o=Ce(r%60,2);return n+i+t+o}const Gl=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Yl=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Gl(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Gl(r,t)).replace("{{time}}",Yl(i,t))},hm={p:Yl,P:dm},fm=/^D+$/,mm=/^Y+$/,gm=["D","DD","YY","YYYY"];function vm(e){return fm.test(e)}function Dm(e){return mm.test(e)}function ym(e,t,n){const r=bm(e,t,n);if(console.warn(r),gm.includes(e))throw new RangeError(r)}function bm(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const km=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Cm=/^'([^]*?)'?$/,_m=/''/g,xm=/[a-zA-Z]/;function Sm(e,t,n){var r,i,o,u;const c=La(),d=c.locale??um,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,g=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=st(e);if(!Af(v))throw new RangeError("Invalid time value");let D=t.match(wm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=hm[x];return C(k,d.formatLong)}return k}).join("").match(km).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Em(k)};if(Wl[x])return{isToken:!0,value:k};if(x.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(D=d.localize.preprocessor(v,D));const b={firstWeekContainsDate:h,weekStartsOn:g,locale:d};return D.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Dm(x)||vm(x))&&ym(x,t,String(e));const C=Wl[x[0]];return C(v,x,d.localize,b)}).join("")}function Em(e){const t=e.match(Cm);return t?t[1].replace(_m,"'"):e}/**
345
345
  * @license
346
346
  * Copyright 2017 Google LLC
347
347
  * SPDX-License-Identifier: BSD-3-Clause
348
- */const Kl=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Fm=Lr(class extends Ba{constructor(e){if(super(e),e.type!==Ta.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);const i=[],o=[];let u=0;for(const c of e)i[u]=r?r(c,u):u,o[u]=n(c,u),u++;return{values:o,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){const i=ef(e),{values:o,keys:u}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=u,o;const c=this.ut??(this.ut=[]),d=[];let h,g,v=0,D=i.length-1,b=0,k=o.length-1;for(;v<=D&&b<=k;)if(i[v]===null)v++;else if(i[D]===null)D--;else if(c[v]===u[b])d[b]=$n(i[v],o[b]),v++,b++;else if(c[D]===u[k])d[k]=$n(i[D],o[k]),D--,k--;else if(c[v]===u[k])d[k]=$n(i[v],o[k]),Mr(e,d[k+1],i[v]),v++,k--;else if(c[D]===u[b])d[b]=$n(i[D],o[b]),Mr(e,i[v],i[D]),D--,b++;else if(h===void 0&&(h=Kl(u,b,k),g=Kl(c,v,D)),h.has(c[v]))if(h.has(c[D])){const x=g.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const T=Mr(e,i[v]);$n(T,o[b]),d[b]=T}else d[b]=$n(C,o[b]),Mr(e,i[v],C),i[x]=null;b++}else as(i[D]),D--;else as(i[v]),v++;for(;b<=k;){const x=Mr(e,d[k+1]);$n(x,o[b]),d[b++]=x}for(;v<=D;){const x=i[v++];x!==null&&as(x)}return this.ut=u,Zh(e,d),Vt}}),Am="pkt-datepicker",$m=!0,Tm={name:{type:"string",name:"Navn",description:"Navn som sendes brukes i skjema ved innsending"},label:{type:"string",name:"Etikett",description:"Tekst som vises over datovelgeren"},helptext:{type:"string",name:"Hjelpetekst",description:"Hjelpetekst som vises over datovelgeren"},helptextDropdown:{type:"string",name:"Utvidet hjelpetekst",description:"Hjelpetekst som vises i en lukket boks man kan åpne"},helptextDropdownButton:{type:"string",name:"Knappetekst for hjelpetekst",description:"Tekst som vises på knappen for å åpne/lukke utvidet hjelpetekst",default:"Les mer"},dateformat:{name:"Datoformat",description:"Datoformat for valgte datoer i flervalgsmodus",type:"string",default:"dd.MM.yyyy"},currentmonth:{name:"Nåværende måned",type:"ISOdatestring",description:"Måneden som skal vises i datovelgeren"},value:{name:"Verdi",type:"ISOdatestring",variant:"multiple",reflect:!0,description:"Kommaseparert liste av valgte datoer"},excludeweekdays:{name:"Utelat ukedager",type:"string",description:"Kommaseparert liste over ukedager (1-7) som skal ekskluderes"},excludedates:{name:"Utelat datoer",type:"ISOdatestring",variant:"multiple",description:"Kommaseparert liste over datoer som skal ekskluderes"},min:{name:"Tidligst tillatt",type:"ISOdatestring",default:null,description:"Første tillate dato i datovelgeren"},max:{name:"Senest tillatt",type:"ISOdatestring",default:null,description:"Siste tillate dato i datovelgeren"},weeknumbers:{name:"Vis ukenummer",type:"boolean",reflect:!0,default:!1,description:"Vis ukedager i datovelgerens kalender"},withcontrols:{name:"Med kontroller",type:"boolean",reflect:!0,default:!1,description:"Vis avanserte velgere for måned og år"},multiple:{name:"Flervalg",type:"boolean",reflect:!0,default:!1,description:"Tillat valg av flere enn én dato i samme velger"},maxlength:{name:"Maks antall",description:"Maks valgte datoer i flervalgsmodus",type:"number",default:4},range:{name:"Datotidsrom",type:"boolean",reflect:!0,default:!1,description:"Tillat å velge et tidsrom mellom to datoer i samme velger"},hasError:{type:"boolean",name:"Feil",description:"Viser feiltilstand for datovelgeren"},errorMessage:{type:"string",name:"Feilmelding",description:"Tekst som vises under datovelgeren ved feiltilstand"},disabled:{type:"boolean",name:"Deaktivert",default:!1,reflect:!0,description:"Er datovelgeren deaktivert?"},fullwidth:{type:"boolean",name:"Full bredde",default:!1,reflect:!0,description:"Skal datovelgeren ta opp hele bredden?"},required:{type:"boolean",name:"Påkrevd",default:!1,reflect:!0,description:"Er datovelgeren påkrevd?"},requiredTag:{type:"boolean",name:"Vise påkrevd-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er påkrevd"},requiredText:{type:"string",name:"Påkrevd-tekst",default:"Må fylles ut",description:"Tekst som vises i påkrevd-merkingen"},optionalTag:{type:"boolean",name:"Vise valgfritt-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er valgfri"},optionalText:{type:"string",name:"Valgfritt-tekst",default:"Valgfritt",description:"Tekst som vises i valgfritt-merkingen"},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},Bm={change:{type:"Event",description:"Returnerer valgt dato som streng i ISO-format"},"value-change":{type:"CustomEvent",description:"Returnerer en <code>array</code> med valgte datoer i ISO-format"},toggleHelpText:{type:"CustomEvent",description:"Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"}},Jt={name:Am,"css-class":"pkt-datepicker",isElement:$m,props:Tm,events:Bm};var Nm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Ye=(e,t,n,r)=>{for(var i=r>1?void 0:r?jm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Nm(t,n,i),i};const ls=e=>new Promise(t=>setTimeout(t,e));let Ie=class extends Ve{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Jt.props.helptextDropdownButton.default,this.dateformat=Jt.props.dateformat.default,this.multiple=Jt.props.multiple.default,this.maxlength=Jt.props.maxlength.default,this.range=Jt.props.range.default,this.weeknumbers=Jt.props.weeknumbers.default,this.withcontrols=Jt.props.withcontrols.default,this.fullwidth=!1,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=this.formatISODate(new Date),this.calendarOpen=!1,this.inputRef=_t(),this.inputRefTo=_t(),this.btnRef=_t(),this.calRef=_t(),this.popupRef=_t(),this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},this.fromISOToDate=e=>{if(!e)return null;const t=new Date(e);return t.setHours(12,0,0,0),isNaN(t.getTime())?null:t},this.fromISOtoLocal=e=>{const t=new Date(e);return isNaN(t.getTime())?"":Sm(t,this.dateformat)},this.massageDates=e=>{const t=e.map(n=>n??void 0);return this.multiple?t:this.range?t.slice(0,2):[t[0]]},this.addToSelected=e=>{const t=e.target,n=this.min?new Date(this.min):null,r=this.max?new Date(this.max):null,i=new Date(t.value.split(",")[0]);i.setHours(12,0,0,0),i&&!isNaN(i.getTime())&&(!n||i>=n)&&(!r||i<=r)&&this.calRef.value&&this.calRef.value.handleDateSelect(i),t.value=""}}async connectedCallback(){super.connectedCallback(),this.isMobileSafari=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/),this.inputType=this.isMobileSafari?"text":"date",document&&document.body.addEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(e.target))&&!this.btnRef.value.contains(e.target)&&!e.target.closest(".pkt-calendar-popup")&&this.calendarOpen&&(this.onBlur(),this.hideCalendar())}),this.value.length&&this._value.length===0&&(this._value=Array.isArray(this.value)?this.value:this.value.split(",")),this.min=this.min||Jt.props.min.default,this.max=this.max||Jt.props.max.default,typeof this.excludedates=="string"&&(this.excludedates=this.excludedates.split(",")),typeof this.excludeweekdays=="string"&&(this.excludeweekdays=this.excludeweekdays.split(",")),(this.multiple||this.range)&&this.name&&!this.name.endsWith("[]")&&(this.name=this.name+"[]"),this.calendarOpen&&(await ls(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!this.btnRef.value.contains(e.target)&&this.hideCalendar()})}attributeChangedCallback(e,t,n){e==="value"&&this.valueChanged(this.value,t),e==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(n==null?void 0:n.split(","))??[]),e==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(n==null?void 0:n.split(","))??[]),super.attributeChangedCallback(e,t,n)}firstUpdated(e){super.firstUpdated(e)}updated(e){if(super.updated(e),e.has("value")){if(this.range&&this._value.length===1)return;this.valueChanged(this.value,e.get("value"))}}formatISODate(e){return e.toISOString().split("T")[0]}renderInput(){return J`
348
+ */const Kl=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Fm=Lr(class extends Ba{constructor(e){if(super(e),e.type!==Ta.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);const i=[],o=[];let u=0;for(const c of e)i[u]=r?r(c,u):u,o[u]=n(c,u),u++;return{values:o,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){const i=ef(e),{values:o,keys:u}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=u,o;const c=this.ut??(this.ut=[]),d=[];let h,g,v=0,D=i.length-1,b=0,k=o.length-1;for(;v<=D&&b<=k;)if(i[v]===null)v++;else if(i[D]===null)D--;else if(c[v]===u[b])d[b]=$n(i[v],o[b]),v++,b++;else if(c[D]===u[k])d[k]=$n(i[D],o[k]),D--,k--;else if(c[v]===u[k])d[k]=$n(i[v],o[k]),Mr(e,d[k+1],i[v]),v++,k--;else if(c[D]===u[b])d[b]=$n(i[D],o[b]),Mr(e,i[v],i[D]),D--,b++;else if(h===void 0&&(h=Kl(u,b,k),g=Kl(c,v,D)),h.has(c[v]))if(h.has(c[D])){const x=g.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const T=Mr(e,i[v]);$n(T,o[b]),d[b]=T}else d[b]=$n(C,o[b]),Mr(e,i[v],C),i[x]=null;b++}else rs(i[D]),D--;else rs(i[v]),v++;for(;b<=k;){const x=Mr(e,d[k+1]);$n(x,o[b]),d[b++]=x}for(;v<=D;){const x=i[v++];x!==null&&rs(x)}return this.ut=u,Zh(e,d),Vt}}),Am="pkt-datepicker",$m=!0,Tm={name:{type:"string",name:"Navn",description:"Navn som sendes brukes i skjema ved innsending"},label:{type:"string",name:"Etikett",description:"Tekst som vises over datovelgeren"},helptext:{type:"string",name:"Hjelpetekst",description:"Hjelpetekst som vises over datovelgeren"},helptextDropdown:{type:"string",name:"Utvidet hjelpetekst",description:"Hjelpetekst som vises i en lukket boks man kan åpne"},helptextDropdownButton:{type:"string",name:"Knappetekst for hjelpetekst",description:"Tekst som vises på knappen for å åpne/lukke utvidet hjelpetekst",default:"Les mer"},dateformat:{name:"Datoformat",description:"Datoformat for valgte datoer i flervalgsmodus",type:"string",default:"dd.MM.yyyy"},currentmonth:{name:"Nåværende måned",type:"ISOdatestring",description:"Måneden som skal vises i datovelgeren"},value:{name:"Verdi",type:"ISOdatestring",variant:"multiple",reflect:!0,description:"Kommaseparert liste av valgte datoer"},excludeweekdays:{name:"Utelat ukedager",type:"string",description:"Kommaseparert liste over ukedager (1-7) som skal ekskluderes"},excludedates:{name:"Utelat datoer",type:"ISOdatestring",variant:"multiple",description:"Kommaseparert liste over datoer som skal ekskluderes"},min:{name:"Tidligst tillatt",type:"ISOdatestring",default:null,description:"Første tillate dato i datovelgeren"},max:{name:"Senest tillatt",type:"ISOdatestring",default:null,description:"Siste tillate dato i datovelgeren"},weeknumbers:{name:"Vis ukenummer",type:"boolean",reflect:!0,default:!1,description:"Vis ukedager i datovelgerens kalender"},withcontrols:{name:"Med kontroller",type:"boolean",reflect:!0,default:!1,description:"Vis avanserte velgere for måned og år"},multiple:{name:"Flervalg",type:"boolean",reflect:!0,default:!1,description:"Tillat valg av flere enn én dato i samme velger"},maxlength:{name:"Maks antall",description:"Maks valgte datoer i flervalgsmodus",type:"number",default:4},range:{name:"Datotidsrom",type:"boolean",reflect:!0,default:!1,description:"Tillat å velge et tidsrom mellom to datoer i samme velger"},hasError:{type:"boolean",name:"Feil",description:"Viser feiltilstand for datovelgeren"},errorMessage:{type:"string",name:"Feilmelding",description:"Tekst som vises under datovelgeren ved feiltilstand"},disabled:{type:"boolean",name:"Deaktivert",default:!1,reflect:!0,description:"Er datovelgeren deaktivert?"},fullwidth:{type:"boolean",name:"Full bredde",default:!1,reflect:!0,description:"Skal datovelgeren ta opp hele bredden?"},required:{type:"boolean",name:"Påkrevd",default:!1,reflect:!0,description:"Er datovelgeren påkrevd?"},requiredTag:{type:"boolean",name:"Vise påkrevd-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er påkrevd"},requiredText:{type:"string",name:"Påkrevd-tekst",default:"Må fylles ut",description:"Tekst som vises i påkrevd-merkingen"},optionalTag:{type:"boolean",name:"Vise valgfritt-merking",default:!1,description:"Viser en merking som indikerer at datovelgeren er valgfri"},optionalText:{type:"string",name:"Valgfritt-tekst",default:"Valgfritt",description:"Tekst som vises i valgfritt-merkingen"},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},Bm={change:{type:"Event",description:"Returnerer valgt dato som streng i ISO-format"},"value-change":{type:"CustomEvent",description:"Returnerer en <code>array</code> med valgte datoer i ISO-format"},toggleHelpText:{type:"CustomEvent",description:"Returnerer <code>event.detail { isOpen: true }</code> eller <code>event.detail { isOpen: false }</code> når hjelpeteksten åpnes eller lukkes"}},Jt={name:Am,"css-class":"pkt-datepicker",isElement:$m,props:Tm,events:Bm};var Nm=Object.defineProperty,jm=Object.getOwnPropertyDescriptor,Ye=(e,t,n,r)=>{for(var i=r>1?void 0:r?jm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Nm(t,n,i),i};const os=e=>new Promise(t=>setTimeout(t,e));let Ie=class extends Ve{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=Jt.props.helptextDropdownButton.default,this.dateformat=Jt.props.dateformat.default,this.multiple=Jt.props.multiple.default,this.maxlength=Jt.props.maxlength.default,this.range=Jt.props.range.default,this.weeknumbers=Jt.props.weeknumbers.default,this.withcontrols=Jt.props.withcontrols.default,this.fullwidth=!1,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.calendarOpen=!1,this.inputRef=_t(),this.inputRefTo=_t(),this.btnRef=_t(),this.calRef=_t(),this.popupRef=_t(),this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},this.fromISOToDate=e=>{if(!e)return null;const t=new Date(e);return t.setHours(12,0,0,0),isNaN(t.getTime())?null:t},this.fromISOtoLocal=e=>{const t=new Date(e);return isNaN(t.getTime())?"":Sm(t,this.dateformat)},this.massageDates=e=>{const t=e.map(n=>n??void 0);return this.multiple?t:this.range?t.slice(0,2):[t[0]]},this.addToSelected=e=>{const t=e.target,n=this.min?new Date(this.min):null,r=this.max?new Date(this.max):null,i=new Date(t.value.split(",")[0]);i.setHours(12,0,0,0),i&&!isNaN(i.getTime())&&(!n||i>=n)&&(!r||i<=r)&&this.calRef.value&&this.calRef.value.handleDateSelect(i),t.value=""}}async connectedCallback(){super.connectedCallback(),this.isMobileSafari=/iP(ad|od|hone)/i.test(window.navigator.userAgent)&&!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/),this.inputType=this.isMobileSafari?"text":"date",document&&document.body.addEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(e.target))&&!this.btnRef.value.contains(e.target)&&!e.target.closest(".pkt-calendar-popup")&&this.calendarOpen&&(this.onBlur(),this.hideCalendar())}),this.value.length&&this._value.length===0&&(this._value=Array.isArray(this.value)?this.value:this.value.split(",")),this.min=this.min||Jt.props.min.default,this.max=this.max||Jt.props.max.default,typeof this.excludedates=="string"&&(this.excludedates=this.excludedates.split(",")),typeof this.excludeweekdays=="string"&&(this.excludeweekdays=this.excludeweekdays.split(",")),(this.multiple||this.range)&&this.name&&!this.name.endsWith("[]")&&(this.name=this.name+"[]"),this.calendarOpen&&(await os(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",e=>{var t,n;(t=this.inputRef)!=null&&t.value&&(n=this.btnRef)!=null&&n.value&&!this.inputRef.value.contains(e.target)&&!this.btnRef.value.contains(e.target)&&this.hideCalendar()})}attributeChangedCallback(e,t,n){e==="value"&&this.valueChanged(this.value,t),e==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(n==null?void 0:n.split(","))??[]),e==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(n==null?void 0:n.split(","))??[]),super.attributeChangedCallback(e,t,n)}firstUpdated(e){super.firstUpdated(e)}updated(e){if(super.updated(e),e.has("value")){if(this.range&&this._value.length===1)return;this.valueChanged(this.value,e.get("value"))}}formatISODate(e){return e.toISOString().split("T")[0]}renderInput(){return J`
349
349
  <input
350
350
  class="${Ge(this.inputClasses)}"
351
351
  .type=${this.inputType}
@@ -441,7 +441,7 @@ React keys must be passed directly to JSX without using spread:
441
441
  .latest=${this.max}
442
442
  .excludedates=${Array.isArray(this.excludedates)?this.excludedates:this.excludedates.split(",")}
443
443
  .excludeweekdays=${this.excludeweekdays}
444
- .currentmonth=${new Date(this.currentmonth)}
444
+ .currentmonth=${this.currentmonth?new Date(this.currentmonth):null}
445
445
  @date-selected=${e=>{this.value=!this.multiple&&!this.range?e.detail[0]:e.detail,this._value=e.detail,this.inputRef.value&&(this.range&&this.inputRefTo.value?(this.inputRef.value.value=this._value[0]??"",this.inputRefTo.value.value=this._value[1]??""):this.multiple||(this.inputRef.value.value=this._value.length?this._value[0]:""))}}
446
446
  @close=${()=>{this.onBlur(),this.hideCalendar()}}
447
447
  ${ot(this.calRef)}
@@ -484,14 +484,14 @@ React keys must be passed directly to JSX without using spread:
484
484
  </div>
485
485
  </pkt-input-wrapper>
486
486
  ${this.renderCalendar()}
487
- `}handleCalendarPosition(){var e;if(this.popupRef.value&&this.inputRef.value){const t=this.multiple&&!!this.maxlength,n=((e=this.inputRef.value.parentElement)==null?void 0:e.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),r=t?n.height+30:n.height,i=this.popupRef.value.getBoundingClientRect().height;let o=t?"calc(100% - 30px)":"100%";n&&n.top+i>window.innerHeight&&n.top-i>0&&(o=`calc(100% - ${r}px - ${i}px)`),this.popupRef.value.style.top=o}}handleFocusOut(e){this.contains(e.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var e;this.calendarOpen=!0,await ls(20),this.handleCalendarPosition(),this.isMobileSafari&&((e=this.calRef.value)==null||e.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(e){var t;e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar(),await ls(20),this.isMobileSafari&&((t=this.calRef.value)==null||t.focusOnCurrentDate())}};Ye([O({type:String,reflect:!0})],Ie.prototype,"value",2),Ye([O({type:Array,reflect:!1})],Ie.prototype,"_value",2),Ye([O({type:String})],Ie.prototype,"label",2),Ye([O({type:String})],Ie.prototype,"helptext",2),Ye([O({type:String})],Ie.prototype,"helptextDropdown",2),Ye([O({type:String})],Ie.prototype,"helptextDropdownButton",2),Ye([O({type:String})],Ie.prototype,"dateformat",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"multiple",2),Ye([O({type:Number})],Ie.prototype,"maxlength",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"range",2),Ye([O({type:Boolean})],Ie.prototype,"weeknumbers",2),Ye([O({type:Boolean})],Ie.prototype,"withcontrols",2),Ye([O({type:Boolean})],Ie.prototype,"fullwidth",2),Ye([O({converter:Qn.csvToArray})],Ie.prototype,"excludedates",2),Ye([O({converter:Qn.csvToArray})],Ie.prototype,"excludeweekdays",2),Ye([O({type:String})],Ie.prototype,"currentmonth",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"calendarOpen",2),Ie=Ye([Gt("pkt-datepicker")],Ie);const Pm="pkt-link",Lm=!0,Om={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},target:{name:"Mål",description:"Mål for lenken",type:["_blank","_self","_parent","_top"],default:"_self"},iconName:{name:"Ikon",description:"Ikon som skal vises ved siden av lenketeksten",type:"icon"},iconPosition:{name:"Ikonposisjon",description:"Posisjonen til ikonet i forhold til lenketeksten",type:["left","right"]},external:{name:"Ekstern lenke",description:"Vis ikon for ekstern lenke",type:"boolean",default:!1}},Im={default:{description:"Innholdet i lenken"}},us={name:Pm,"css-class":"pkt-link","dark-mode":!0,isElement:Lm,props:Om,slots:Im};var Mm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,ar=(e,t,n,r)=>{for(var i=r>1?void 0:r?Rm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Mm(t,n,i),i};let pn=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.href=us.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=us.props.external.default,this.target=us.props.target.default,this.slotController=new er(this,this.defaultSlot)}render(){const e={"pkt-link":!0,"pkt-link--icon-left":!!this.iconName&&this.iconPosition==="left"||!!(this.iconName&&!this.iconPosition),"pkt-link--icon-right":!!this.iconName&&this.iconPosition==="right","pkt-link--external":this.external};return J`<a
487
+ `}handleCalendarPosition(){var e;if(this.popupRef.value&&this.inputRef.value){const t=this.multiple&&!!this.maxlength,n=((e=this.inputRef.value.parentElement)==null?void 0:e.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),r=t?n.height+30:n.height,i=this.popupRef.value.getBoundingClientRect().height;let o=t?"calc(100% - 30px)":"100%";n&&n.top+i>window.innerHeight&&n.top-i>0&&(o=`calc(100% - ${r}px - ${i}px)`),this.popupRef.value.style.top=o}}handleFocusOut(e){this.contains(e.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var e;this.calendarOpen=!0,await os(20),this.handleCalendarPosition(),this.isMobileSafari&&((e=this.calRef.value)==null||e.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(e){var t;e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar(),await os(20),this.isMobileSafari&&((t=this.calRef.value)==null||t.focusOnCurrentDate())}};Ye([O({type:String,reflect:!0})],Ie.prototype,"value",2),Ye([O({type:Array,reflect:!1})],Ie.prototype,"_value",2),Ye([O({type:String})],Ie.prototype,"label",2),Ye([O({type:String})],Ie.prototype,"helptext",2),Ye([O({type:String})],Ie.prototype,"helptextDropdown",2),Ye([O({type:String})],Ie.prototype,"helptextDropdownButton",2),Ye([O({type:String})],Ie.prototype,"dateformat",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"multiple",2),Ye([O({type:Number})],Ie.prototype,"maxlength",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"range",2),Ye([O({type:Boolean})],Ie.prototype,"weeknumbers",2),Ye([O({type:Boolean})],Ie.prototype,"withcontrols",2),Ye([O({type:Boolean})],Ie.prototype,"fullwidth",2),Ye([O({converter:Zn.csvToArray})],Ie.prototype,"excludedates",2),Ye([O({converter:Zn.csvToArray})],Ie.prototype,"excludeweekdays",2),Ye([O({type:String})],Ie.prototype,"currentmonth",2),Ye([O({type:Boolean,reflect:!0})],Ie.prototype,"calendarOpen",2),Ie=Ye([Gt("pkt-datepicker")],Ie);const Pm="pkt-link",Lm=!0,Om={href:{name:"URL",description:"URL til lenken",type:"string",default:"#"},target:{name:"Mål",description:"Mål for lenken",type:["_blank","_self","_parent","_top"],default:"_self"},iconName:{name:"Ikon",description:"Ikon som skal vises ved siden av lenketeksten",type:"icon"},iconPosition:{name:"Ikonposisjon",description:"Posisjonen til ikonet i forhold til lenketeksten",type:["left","right"]},external:{name:"Ekstern lenke",description:"Vis ikon for ekstern lenke",type:"boolean",default:!1}},Im={default:{description:"Innholdet i lenken"}},ls={name:Pm,"css-class":"pkt-link","dark-mode":!0,isElement:Lm,props:Om,slots:Im};var Mm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,ir=(e,t,n,r)=>{for(var i=r>1?void 0:r?Rm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&Mm(t,n,i),i};let pn=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.href=ls.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=ls.props.external.default,this.target=ls.props.target.default,this.slotController=new tr(this,this.defaultSlot)}render(){const e={"pkt-link":!0,"pkt-link--icon-left":!!this.iconName&&this.iconPosition==="left"||!!(this.iconName&&!this.iconPosition),"pkt-link--icon-right":!!this.iconName&&this.iconPosition==="right","pkt-link--external":this.external};return J`<a
488
488
  class=${Ge(e)}
489
489
  href=${this.href}
490
490
  @click=${this.handleClick}
491
491
  .target=${this.target}
492
492
  .rel=${this.external?"noopener noreferrer":re}
493
493
  >${this.iconName?J`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${ot(this.defaultSlot)}>Link</span></a
494
- >`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};ar([O({type:String,reflect:!0})],pn.prototype,"href",2),ar([O({type:String,reflect:!0})],pn.prototype,"iconName",2),ar([O({type:String,reflect:!0})],pn.prototype,"iconPosition",2),ar([O({type:Boolean,reflect:!0})],pn.prototype,"external",2),ar([O({type:String,reflect:!0})],pn.prototype,"target",2),pn=ar([Gt("pkt-link")],pn);var qm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Nn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Hm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&qm(t,n,i),i};let dn=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.closable=!1,this.compact=!1,this.title="",this.skin="beige",this.isDisplayed=!0,this.slotController=new er(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable};return this.isDisplayed?J`<div class=${Ge(e)}>
494
+ >`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};ir([O({type:String,reflect:!0})],pn.prototype,"href",2),ir([O({type:String,reflect:!0})],pn.prototype,"iconName",2),ir([O({type:String,reflect:!0})],pn.prototype,"iconPosition",2),ir([O({type:Boolean,reflect:!0})],pn.prototype,"external",2),ir([O({type:String,reflect:!0})],pn.prototype,"target",2),pn=ir([Gt("pkt-link")],pn);var qm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Nn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Hm(t,n):t,o=e.length-1,u;o>=0;o--)(u=e[o])&&(i=(r?u(t,n,i):u(i))||i);return r&&i&&qm(t,n,i),i};let dn=class extends jt{constructor(){super(),this.defaultSlot=_t(),this.closable=!1,this.compact=!1,this.title="",this.skin="beige",this.isDisplayed=!0,this.slotController=new tr(this,this.defaultSlot)}handleClose(){this.isDisplayed=!1,this.onClose&&this.onClose()}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable};return this.isDisplayed?J`<div class=${Ge(e)}>
495
495
  ${this.closable?J`<div class="pkt-messagebox__close">
496
496
  <button
497
497
  @click=${this.handleClose}
@@ -502,16 +502,16 @@ React keys must be passed directly to JSX without using spread:
502
502
  </div>`:re}
503
503
  ${this.title?J`<div class="pkt-messagebox__title">${this.title}</div>`:re}
504
504
  <div class="pkt-messagebox__text" ${ot(this.defaultSlot)}></div>
505
- </div>`:re}};Nn([O({type:Boolean,reflect:!0})],dn.prototype,"closable",2),Nn([O({type:Boolean,reflect:!0})],dn.prototype,"compact",2),Nn([O({type:String,reflect:!0})],dn.prototype,"title",2),Nn([O({type:String,reflect:!0})],dn.prototype,"skin",2),Nn([O({type:Boolean,reflect:!0})],dn.prototype,"isDisplayed",2),Nn([O({type:Function,reflect:!0})],dn.prototype,"onClose",2),dn=Nn([Gt("pkt-messagebox")],dn);const Um=Vi({tagName:"pkt-card",elementClass:Kt,react:M,displayName:"PktCard",events:{}}),Jl=M.forwardRef(({children:e,...t},n)=>m.jsx(Um,{...t,ref:n,children:m.jsx("div",{className:"pkt-contents",children:e})}));Jl.displayName="PktCard";const Ra=M.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:d=!1,className:h,...g},v)=>{const D=[h,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:D,children:m.jsxs("div",{className:`pkt-input-check__input ${t?"pkt-input-check__input--tile":""} ${n&&t?"pkt-input-check__input--tile-disabled":""}`,children:[r&&i==="left"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),m.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:d?"switch":"checkbox",id:e,disabled:n,...g}),r&&i==="right"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Ra.displayName="PktCheckbox";const Xl=Vi({tagName:"pkt-datepicker",elementClass:Ie,react:M,displayName:"PktDatepicker",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Wm=({columnOne:e,columnTwo:t,socialLinks:n,className:r,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:o="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var c,d;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return m.jsx("footer",{className:u,"data-mode":"dark",children:m.jsxs("div",{className:"pkt-footer__container",children:[m.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:e.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&m.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:t.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&m.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m.jsxs("ul",{className:"pkt-footer__list",children:[m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:i,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:o,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&m.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[m.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,g)=>m.jsx("div",{className:"pkt-footer__social-language",children:m.jsx("a",{href:h.href,"aria-label":`til ${h.language} versjon av nettsiden`,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:h.language})},`sociallinks-language-${g}`))}),m.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,g)=>m.jsx(M.Fragment,{children:m.jsx("a",{href:h.href,"aria-label":`til ${h.iconName}`,className:"pkt-footer__social-icon-link",target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:m.jsx(ne,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${g}`))})]})]})})},zm=({links:e=[],personvernOgInfoLink:t="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:n="https://www.oslo.kommune.no/tilgjengelighet/",className:r})=>{const i=[r,"pkt-footer-simple"].filter(Boolean).join(" ");return m.jsx("footer",{className:i,"data-mode":"dark",children:m.jsx("div",{className:"pkt-footer-simple__container",children:m.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:`pkt-footer-simple__link ${o.external?" pkt-link--external":""}`,href:o.href,target:o.openInNewTab?"_blank":"_self",rel:o.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Vm=M.forwardRef(({className:e,logoLink:t="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:i=!0,user:o,userMenu:u,representing:c,userOptions:d,userMenuFooter:h,canChangeRepresentation:g=!0,showMenuButton:v=!1,showLogOutButton:D=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},F)=>{const S=M.useMemo(()=>typeof(o==null?void 0:o.lastLoggedIn)=="string"?o.lastLoggedIn:o!=null&&o.lastLoggedIn?new Date(o.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[o]),[A,_]=M.useState(!1),[$,P]=M.useState(0),[I,j]=M.useState(!1),z=M.useRef(null);M.useEffect(()=>(document&&(document.addEventListener("mouseup",G),window.addEventListener("scroll",L)),()=>{document&&(document.removeEventListener("mouseup",G),window.removeEventListener("scroll",L))}));const K=()=>{j(!I)},G=N=>{z.current&&!z.current.contains(N.target)&&j(!1)},L=()=>{if(i){const N=window.pageYOffset||document.documentElement.scrollTop;if(N<0||Math.abs(N-$)<60)return;_(N>$),P(N)}};return m.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:Je(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":A}),ref:F,children:[m.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?m.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}):m.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}),m.jsx("span",{className:"pkt-header__logo-service",children:n})]}),m.jsx("nav",{className:"pkt-header__actions",children:m.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&m.jsx("li",{children:m.jsx(Cn,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&m.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${I&&!A?"pkt-header--open-dropdown":""}`,ref:z,children:[m.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":I,onClick:K,children:[m.jsx(ne,{name:"user",className:"pkt-btn__icon"}),m.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),m.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),m.jsx(ne,{name:"chevron-thin-down",className:"pkt-btn--closed"}),m.jsx(ne,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&m.jsxs("li",{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),m.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&m.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",m.jsx("time",{children:S})]})]}),u&&m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:u.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userMenu-${H}`))})}),(c||g)&&m.jsxs("li",{children:[c&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),m.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&m.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),m.jsx("ul",{className:"pkt-list mt-size-16",children:g&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[m.jsx(ne,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:(d||!D)&&m.jsxs(m.Fragment,{children:[d==null?void 0:d.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userOptions-${H}`)),!D&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[m.jsx(ne,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&m.jsx("li",{className:"footer",children:m.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsx("a",{href:N.target,className:"pkt-link",children:N.title}):m.jsx("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:N.title})},`userMenuFooter-${H}`))})})]})]}),C&&m.jsx("li",{children:C}),D&&m.jsx("li",{children:m.jsx(Cn,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Ql=M.forwardRef(({label:e,id:t,children:n,...r},i)=>m.jsxs("div",{className:"pkt-form-group",children:[m.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),m.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Ql.displayName="PktInput";const ir=M.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:g=!1,requiredText:v="Må fylles ut",hasError:D,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:F,className:S,hasFieldset:A=!1},_)=>{const[$,P]=M.useState(!1),I=()=>{P(!$)},j=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":g?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",z=d?h:g?v:"",K=k?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",L=D?"pkt-inputwrapper--error":"",N=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Q=A?"fieldset":N?"div":"label",fe=A?"legend":N?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return m.jsxs("div",{className:["pkt-inputwrapper",S,K,G,L].join(" "),ref:_,children:[T?m.jsx(m.Fragment,{children:m.jsxs(Q,{htmlFor:A?void 0:e,"aria-describedby":N?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[m.jsxs(fe,{id:`${e}-label`,className:`${A?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&m.jsx("span",{className:j(),children:z})]}),n&&m.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),N&&r!==""&&m.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[m.jsx(Cn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:I,children:m.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),m.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!A&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,children:t})]}),m.jsx(m.Fragment,{children:F}),o&&m.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):m.jsxs(m.Fragment,{children:[!A&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,id:`${e}-label`,children:t}),F]}),D&&b&&m.jsx("div",{children:m.jsx(zi,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});ir.displayName="PktInputWrapper";const Gm=Vi({tagName:"pkt-link",elementClass:pn,react:M,displayName:"PktLink",events:{onClick:"click"}}),Zl=M.forwardRef(({children:e,...t},n)=>m.jsx(Gm,{...t,ref:n,children:m.jsx("span",{className:"pkt-contents",children:e})}));Zl.displayName="PktLink";const eu=M.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const g=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return m.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${g}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&m.jsx(ne,{className:"pkt-link__icon",name:n}),m.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),m.jsx("div",{className:"pkt-linkcard__text",children:e})]})});eu.displayName="PktLinkCard";const tu=M.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...d},h)=>{const g=`pkt-loader pkt-loader--${n}`,[v,D]=M.useState(!(u>0));u>0&&setTimeout(()=>{D(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return m.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?m.jsx(m.Fragment,{children:v?m.jsxs("div",{className:g,"data-testid":"pkt-loader",ref:h,...d,children:[m.jsx(ne,{name:b(o),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&m.jsx("p",{children:t})]}):null}):c})});tu.displayName="PktLoader";const nu=M.forwardRef(({children:e,className:t,compact:n=!1,closable:r=!1,skin:i="beige",title:o,onClose:u,...c},d)=>{const[h,g]=M.useState(!0),v=()=>{g(!1),u&&u()},D=[t,"pkt-messagebox",i&&`pkt-messagebox--${i}`,n&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return h?m.jsxs("div",{...c,className:D,ref:d,children:[r&&m.jsx("div",{className:"pkt-messagebox__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:v,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-messagebox__title",children:o}),m.jsx("div",{className:"pkt-messagebox__text",children:e})]}):null});nu.displayName="PktMessagebox";/*!
505
+ </div>`:re}};Nn([O({type:Boolean,reflect:!0})],dn.prototype,"closable",2),Nn([O({type:Boolean,reflect:!0})],dn.prototype,"compact",2),Nn([O({type:String,reflect:!0})],dn.prototype,"title",2),Nn([O({type:String,reflect:!0})],dn.prototype,"skin",2),Nn([O({type:Boolean,reflect:!0})],dn.prototype,"isDisplayed",2),Nn([O({type:Function,reflect:!0})],dn.prototype,"onClose",2),dn=Nn([Gt("pkt-messagebox")],dn);const Um=zi({tagName:"pkt-card",elementClass:Kt,react:M,displayName:"PktCard",events:{}}),Jl=M.forwardRef(({children:e,...t},n)=>m.jsx(Um,{...t,ref:n,children:m.jsx("div",{className:"pkt-contents",children:e})}));Jl.displayName="PktCard";const Ma=M.forwardRef(({id:e,hasTile:t=!1,disabled:n=!1,label:r,labelPosition:i="right",hideLabel:o=!1,checkHelptext:u,hasError:c=!1,isSwitch:d=!1,className:h,...g},v)=>{const D=[h,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:D,children:m.jsxs("div",{className:`pkt-input-check__input ${t?"pkt-input-check__input--tile":""} ${n&&t?"pkt-input-check__input--tile-disabled":""}`,children:[r&&i==="left"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),m.jsx("input",{ref:v,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:d?"switch":"checkbox",id:e,disabled:n,...g}),r&&i==="right"&&m.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Ma.displayName="PktCheckbox";const Xl=zi({tagName:"pkt-datepicker",elementClass:Ie,react:M,displayName:"PktDatepicker",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Wm=({columnOne:e,columnTwo:t,socialLinks:n,className:r,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:o="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var c,d;const u=[r,"pkt-footer"].filter(Boolean).join(" ");return m.jsx("footer",{className:u,"data-mode":"dark",children:m.jsxs("div",{className:"pkt-footer__container",children:[m.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:e.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&m.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:t.title}),m.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&m.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,g)=>m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:`pkt-footer__link ${h.external?"pkt-link--external":""}`,href:h.href,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${g}`))]})]}),m.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[m.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m.jsxs("ul",{className:"pkt-footer__list",children:[m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:i,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer__list-item",children:m.jsxs("a",{className:"pkt-footer__link",href:o,children:[m.jsx(ne,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&m.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[m.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,g)=>m.jsx("div",{className:"pkt-footer__social-language",children:m.jsx("a",{href:h.href,"aria-label":`til ${h.language} versjon av nettsiden`,target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:h.language})},`sociallinks-language-${g}`))}),m.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,g)=>m.jsx(M.Fragment,{children:m.jsx("a",{href:h.href,"aria-label":`til ${h.iconName}`,className:"pkt-footer__social-icon-link",target:h.openInNewTab?"_blank":"_self",rel:h.openInNewTab?"noopener noreferrer":void 0,children:m.jsx(ne,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${g}`))})]})]})})},zm=({links:e=[],personvernOgInfoLink:t="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:n="https://www.oslo.kommune.no/tilgjengelighet/",className:r})=>{const i=[r,"pkt-footer-simple"].filter(Boolean).join(" ");return m.jsx("footer",{className:i,"data-mode":"dark",children:m.jsx("div",{className:"pkt-footer-simple__container",children:m.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:`pkt-footer-simple__link ${o.external?" pkt-link--external":""}`,href:o.href,target:o.openInNewTab?"_blank":"_self",rel:o.openInNewTab?"noopener noreferrer":void 0,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),m.jsx("li",{className:"pkt-footer-simple__list-item",children:m.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[m.jsx(ne,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Vm=M.forwardRef(({className:e,logoLink:t="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:i=!0,user:o,userMenu:u,representing:c,userOptions:d,userMenuFooter:h,canChangeRepresentation:g=!0,showMenuButton:v=!1,showLogOutButton:D=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},F)=>{const S=M.useMemo(()=>typeof(o==null?void 0:o.lastLoggedIn)=="string"?o.lastLoggedIn:o!=null&&o.lastLoggedIn?new Date(o.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[o]),[A,_]=M.useState(!1),[$,P]=M.useState(0),[I,j]=M.useState(!1),z=M.useRef(null);M.useEffect(()=>(document&&(document.addEventListener("mouseup",G),window.addEventListener("scroll",L)),()=>{document&&(document.removeEventListener("mouseup",G),window.removeEventListener("scroll",L))}));const K=()=>{j(!I)},G=N=>{z.current&&!z.current.contains(N.target)&&j(!1)},L=()=>{if(i){const N=window.pageYOffset||document.documentElement.scrollTop;if(N<0||Math.abs(N-$)<60)return;_(N>$),P(N)}};return m.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:Je(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":A}),ref:F,children:[m.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?m.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}):m.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:m.jsx(ne,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.3/logos/"})}),m.jsx("span",{className:"pkt-header__logo-service",children:n})]}),m.jsx("nav",{className:"pkt-header__actions",children:m.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&m.jsx("li",{children:m.jsx(Cn,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&m.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${I&&!A?"pkt-header--open-dropdown":""}`,ref:z,children:[m.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":I,onClick:K,children:[m.jsx(ne,{name:"user",className:"pkt-btn__icon"}),m.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),m.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),m.jsx(ne,{name:"chevron-thin-down",className:"pkt-btn--closed"}),m.jsx(ne,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&m.jsxs("li",{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),m.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&m.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",m.jsx("time",{children:S})]})]}),u&&m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:u.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userMenu-${H}`))})}),(c||g)&&m.jsxs("li",{children:[c&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),m.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&m.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),m.jsx("ul",{className:"pkt-list mt-size-16",children:g&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[m.jsx(ne,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),m.jsx("li",{children:m.jsx("ul",{className:"pkt-list",children:(d||!D)&&m.jsxs(m.Fragment,{children:[d==null?void 0:d.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&m.jsx(ne,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userOptions-${H}`)),!D&&m.jsx("li",{children:m.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[m.jsx(ne,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&m.jsx("li",{className:"footer",children:m.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((N,H)=>m.jsx("li",{children:typeof N.target=="string"?m.jsx("a",{href:N.target,className:"pkt-link",children:N.title}):m.jsx("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:N.title})},`userMenuFooter-${H}`))})})]})]}),C&&m.jsx("li",{children:C}),D&&m.jsx("li",{children:m.jsx(Cn,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Ql=M.forwardRef(({label:e,id:t,children:n,...r},i)=>m.jsxs("div",{className:"pkt-form-group",children:[m.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),m.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));Ql.displayName="PktInput";const sr=M.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:g=!1,requiredText:v="Må fylles ut",hasError:D,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:F,className:S,hasFieldset:A=!1},_)=>{const[$,P]=M.useState(!1),I=()=>{P(!$)},j=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":g?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",z=d?h:g?v:"",K=k?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",L=D?"pkt-inputwrapper--error":"",N=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Q=A?"fieldset":N?"div":"label",fe=A?"legend":N?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return m.jsxs("div",{className:["pkt-inputwrapper",S,K,G,L].join(" "),ref:_,children:[T?m.jsx(m.Fragment,{children:m.jsxs(Q,{htmlFor:A?void 0:e,"aria-describedby":N?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[m.jsxs(fe,{id:`${e}-label`,className:`${A?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&m.jsx("span",{className:j(),children:z})]}),n&&m.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),N&&r!==""&&m.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[m.jsx(Cn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:I,children:m.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),m.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!A&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,children:t})]}),m.jsx(m.Fragment,{children:F}),o&&m.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):m.jsxs(m.Fragment,{children:[!A&&m.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,id:`${e}-label`,children:t}),F]}),D&&b&&m.jsx("div",{children:m.jsx(Wi,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});sr.displayName="PktInputWrapper";const Gm=zi({tagName:"pkt-link",elementClass:pn,react:M,displayName:"PktLink",events:{onClick:"click"}}),Zl=M.forwardRef(({children:e,...t},n)=>m.jsx(Gm,{...t,ref:n,children:m.jsx("span",{className:"pkt-contents",children:e})}));Zl.displayName="PktLink";const eu=M.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const g=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return m.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${g}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&m.jsx(ne,{className:"pkt-link__icon",name:n}),m.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),m.jsx("div",{className:"pkt-linkcard__text",children:e})]})});eu.displayName="PktLinkCard";const tu=M.forwardRef(({className:e,message:t,size:n="medium",inline:r=!1,isLoading:i=!0,variant:o="rainbow",delay:u=0,children:c,...d},h)=>{const g=`pkt-loader pkt-loader--${n}`,[v,D]=M.useState(!(u>0));u>0&&setTimeout(()=>{D(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return m.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?m.jsx(m.Fragment,{children:v?m.jsxs("div",{className:g,"data-testid":"pkt-loader",ref:h,...d,children:[m.jsx(ne,{name:b(o),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/12.3/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&m.jsx("p",{children:t})]}):null}):c})});tu.displayName="PktLoader";const nu=M.forwardRef(({children:e,className:t,compact:n=!1,closable:r=!1,skin:i="beige",title:o,onClose:u,...c},d)=>{const[h,g]=M.useState(!0),v=()=>{g(!1),u&&u()},D=[t,"pkt-messagebox",i&&`pkt-messagebox--${i}`,n&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return h?m.jsxs("div",{...c,className:D,ref:d,children:[r&&m.jsx("div",{className:"pkt-messagebox__close",children:m.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:v,children:m.jsx(ne,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),o&&m.jsx("div",{className:"pkt-messagebox__title",children:o}),m.jsx("div",{className:"pkt-messagebox__text",children:e})]}):null});nu.displayName="PktMessagebox";/*!
506
506
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
507
507
  *
508
508
  * Copyright (c) 2014-2017, Jon Schlinkert.
509
509
  * Released under the MIT License.
510
- */function ru(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ym(e){var t,n;return ru(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ru(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var au={},qa=un&&un.__assign||function(){return qa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qa.apply(this,arguments)},Km=un&&un.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,c=o.length;u<c;u++,i++)r[i]=o[u];return r};Object.defineProperty(au,"__esModule",{value:!0});var Wr=[];function Jm(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function Xm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Qm(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function Ha(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=qa(qa({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
510
+ */function ru(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ym(e){var t,n;return ru(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(ru(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var au={},Ra=un&&un.__assign||function(){return Ra=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ra.apply(this,arguments)},Km=un&&un.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,c=o.length;u<c;u++,i++)r[i]=o[u];return r};Object.defineProperty(au,"__esModule",{value:!0});var Wr=[];function Jm(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function Xm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Qm(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function qa(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=Ra(Ra({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
511
511
  `,newLineOrSpace:`
512
512
  `,pad:n,indent:n+i.indent}:o={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var u=function(h){if(i.inlineCharacterLimit===void 0)return h;var g=h.replace(new RegExp(o.newLine,"g"),"").replace(new RegExp(o.newLineOrSpace,"g")," ").replace(new RegExp(o.pad+"|"+o.indent,"g"),"");return g.length<=i.inlineCharacterLimit?g:h.replace(new RegExp(o.newLine+"|"+o.newLineOrSpace,"g"),`
513
- `).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(Wr.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||Xm(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";Wr.push(e);var c="["+o.newLine+e.map(function(h,g){var v=e.length-1===g?o.newLine:","+o.newLineOrSpace,D=Ha(h,i,n+i.indent);return i.transform&&(D=i.transform(e,g,D)),o.indent+D+v}).join("")+o.pad+"]";return Wr.pop(),u(c)}if(Jm(e)){var d=Km(Object.keys(e),Qm(e));if(i.filter&&(d=d.filter(function(g){return i.filter&&i.filter(e,g)})),d.length===0)return"{}";Wr.push(e);var c="{"+o.newLine+d.map(function(g,v){var D=d.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof g=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(g.toString()),x=b||k?g:Ha(g,i),C=Ha(e[g],i,n+i.indent);return i.transform&&(C=i.transform(e,g,C)),o.indent+String(x)+": "+C+D}).join("")+o.pad+"}";return Wr.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
514
- `?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var Zm=au.prettyPrint=Ha,cs={exports:{}},be={};/**
513
+ `).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(Wr.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||Xm(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";Wr.push(e);var c="["+o.newLine+e.map(function(h,g){var v=e.length-1===g?o.newLine:","+o.newLineOrSpace,D=qa(h,i,n+i.indent);return i.transform&&(D=i.transform(e,g,D)),o.indent+D+v}).join("")+o.pad+"]";return Wr.pop(),u(c)}if(Jm(e)){var d=Km(Object.keys(e),Qm(e));if(i.filter&&(d=d.filter(function(g){return i.filter&&i.filter(e,g)})),d.length===0)return"{}";Wr.push(e);var c="{"+o.newLine+d.map(function(g,v){var D=d.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof g=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(g.toString()),x=b||k?g:qa(g,i),C=qa(e[g],i,n+i.indent);return i.transform&&(C=i.transform(e,g,C)),o.indent+String(x)+": "+C+D}).join("")+o.pad+"}";return Wr.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
514
+ `?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var Zm=au.prettyPrint=qa,us={exports:{}},be={};/**
515
515
  * @license React
516
516
  * react-is.production.min.js
517
517
  *
@@ -527,85 +527,85 @@ React keys must be passed directly to JSX without using spread:
527
527
  *
528
528
  * This source code is licensed under the MIT license found in the
529
529
  * LICENSE file in the root directory of this source tree.
530
- */var su;function tg(){return su||(su=1,process.env.NODE_ENV!=="production"&&function(){var e=!1,t=!1,n=!1,r=!1,i=!1,o=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),D=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function A(X){return!!(typeof X=="string"||typeof X=="function"||X===c||X===h||i||X===d||X===k||X===x||r||X===F||e||t||n||typeof X=="object"&&X!==null&&(X.$$typeof===T||X.$$typeof===C||X.$$typeof===g||X.$$typeof===v||X.$$typeof===b||X.$$typeof===S||X.getModuleId!==void 0))}function _(X){if(typeof X=="object"&&X!==null){var Ut=X.$$typeof;switch(Ut){case o:var _e=X.type;switch(_e){case c:case h:case d:case k:case x:return _e;default:var Pe=_e&&_e.$$typeof;switch(Pe){case D:case v:case b:case T:case C:case g:return Pe;default:return Ut}}case u:return Ut}}}var $=v,P=g,I=o,j=b,z=c,K=T,G=C,L=u,N=h,H=d,Q=k,fe=x,ee=!1,ue=!1;function me(X){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(X){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(X){return _(X)===v}function rt(X){return _(X)===g}function Ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Ee(X){return _(X)===b}function Oe(X){return _(X)===c}function de(X){return _(X)===T}function ft(X){return _(X)===C}function Ht(X){return _(X)===u}function yt(X){return _(X)===h}function bt(X){return _(X)===d}function Dn(X){return _(X)===k}function kt(X){return _(X)===x}ke.ContextConsumer=$,ke.ContextProvider=P,ke.Element=I,ke.ForwardRef=j,ke.Fragment=z,ke.Lazy=K,ke.Memo=G,ke.Portal=L,ke.Profiler=N,ke.StrictMode=H,ke.Suspense=Q,ke.SuspenseList=fe,ke.isAsyncMode=me,ke.isConcurrentMode=ie,ke.isContextConsumer=De,ke.isContextProvider=rt,ke.isElement=Ne,ke.isForwardRef=Ee,ke.isFragment=Oe,ke.isLazy=de,ke.isMemo=ft,ke.isPortal=Ht,ke.isProfiler=yt,ke.isStrictMode=bt,ke.isSuspense=Dn,ke.isSuspenseList=kt,ke.isValidElementType=A,ke.typeOf=_}()),ke}process.env.NODE_ENV==="production"?cs.exports=eg():cs.exports=tg();var Lt=cs.exports,Xt=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function ou(e){return ng(e)||rg(e)||ag(e)||ig()}function ng(e){if(Array.isArray(e))return ps(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ps(e,t)}}function ps(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
531
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ds(e,t){return e===null||zr(e)!=="object"||e instanceof Date||e instanceof RegExp||Qd.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return ds(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=ds(e[r],t)),n},{}))}function sg(e){return ds(e,new WeakSet)}var lu=function(t){return{type:"string",value:t}},og=function(t){return{type:"number",value:t}},lg=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},ug=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},cg=!!M.Fragment,uu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},pg=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Lt.Memo:return e(t.type);case t.$$typeof===Lt.ForwardRef:return e(t.render);default:return uu(t)}},dg=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:uu(t.type);case Lt.isForwardRef(t):case Lt.isMemo(t):return pg(t.type);case Lt.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Lt.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Lt.isLazy(t):return"Lazy";case Lt.isProfiler(t):return"Profiler";case Lt.isStrictMode(t):return"StrictMode";case Lt.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},cu=function(t,n){return n!=="children"},hg=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},pu=function(t,n){var r={};return Object.keys(t).filter(function(i){return n(t[i],i)}).forEach(function(i){return r[i]=t[i]}),r},hs=function e(t,n){var r=n.displayName,i=r===void 0?dg:r;if(typeof t=="string")return lu(t);if(typeof t=="number")return og(t);if(!M.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(zr(t),"`"));var o=i(t),u=pu(t.props,cu);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=pu(t.type.defaultProps||{},cu),h=M.Children.toArray(t.props.children).filter(hg).map(function(g){return e(g,n)});return cg&&t.type===M.Fragment?ug(c,h):lg(o,u,d,h)};function fg(){}var mg=function(t){return t.toString().split(`
532
- `).map(function(n){return n.trim()}).join("")},du=mg,hu=function(e,t){var n=t.functionValue,r=n===void 0?du:n,i=t.showFunctions;return r(!i&&r===du?fg:e)},gg=function(e,t,n,r){var i=sg(e),o=Zm(i,{transform:function(c,d,h){var g=c[d];return g&&M.isValidElement(g)?Ua(hs(g,r),!0,n,r):typeof g=="function"?hu(g,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,Xt(1,r.tabStop)).replace(/\n([^$])/g,`
533
- `.concat(Xt(n+1,r.tabStop),"$1"))},vg=function(t){return t.replace(/"/g,"&quot;")},Dg=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(vg(t),'"');if(zr(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(hu(t,i),"}"):M.isValidElement(t)?"{".concat(Ua(hs(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Ym(t)||Array.isArray(t)?"{".concat(gg(t,n,r,i),"}"):"{".concat(String(t),"}")},yg=function(e,t,n,r,i,o,u,c){if(!t&&!r)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var d=t?n:i,h=c.useBooleanShorthandSyntax,g=c.tabStop,v=Dg(d,o,u,c),D=" ",b=`
530
+ */var su;function tg(){return su||(su=1,process.env.NODE_ENV!=="production"&&function(){var e=!1,t=!1,n=!1,r=!1,i=!1,o=Symbol.for("react.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),D=Symbol.for("react.server_context"),b=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),F=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function A(X){return!!(typeof X=="string"||typeof X=="function"||X===c||X===h||i||X===d||X===k||X===x||r||X===F||e||t||n||typeof X=="object"&&X!==null&&(X.$$typeof===T||X.$$typeof===C||X.$$typeof===g||X.$$typeof===v||X.$$typeof===b||X.$$typeof===S||X.getModuleId!==void 0))}function _(X){if(typeof X=="object"&&X!==null){var Ut=X.$$typeof;switch(Ut){case o:var _e=X.type;switch(_e){case c:case h:case d:case k:case x:return _e;default:var Pe=_e&&_e.$$typeof;switch(Pe){case D:case v:case b:case T:case C:case g:return Pe;default:return Ut}}case u:return Ut}}}var $=v,P=g,I=o,j=b,z=c,K=T,G=C,L=u,N=h,H=d,Q=k,fe=x,ee=!1,ue=!1;function me(X){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(X){return ue||(ue=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function De(X){return _(X)===v}function rt(X){return _(X)===g}function Ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Fe(X){return _(X)===b}function Oe(X){return _(X)===c}function de(X){return _(X)===T}function ft(X){return _(X)===C}function Ht(X){return _(X)===u}function yt(X){return _(X)===h}function bt(X){return _(X)===d}function Dn(X){return _(X)===k}function kt(X){return _(X)===x}ke.ContextConsumer=$,ke.ContextProvider=P,ke.Element=I,ke.ForwardRef=j,ke.Fragment=z,ke.Lazy=K,ke.Memo=G,ke.Portal=L,ke.Profiler=N,ke.StrictMode=H,ke.Suspense=Q,ke.SuspenseList=fe,ke.isAsyncMode=me,ke.isConcurrentMode=ie,ke.isContextConsumer=De,ke.isContextProvider=rt,ke.isElement=Ne,ke.isForwardRef=Fe,ke.isFragment=Oe,ke.isLazy=de,ke.isMemo=ft,ke.isPortal=Ht,ke.isProfiler=yt,ke.isStrictMode=bt,ke.isSuspense=Dn,ke.isSuspenseList=kt,ke.isValidElementType=A,ke.typeOf=_}()),ke}process.env.NODE_ENV==="production"?us.exports=eg():us.exports=tg();var Lt=us.exports,Xt=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function ou(e){return ng(e)||rg(e)||ag(e)||ig()}function ng(e){if(Array.isArray(e))return cs(e)}function rg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ag(e,t){if(e){if(typeof e=="string")return cs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cs(e,t)}}function cs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ig(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
531
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ps(e,t){return e===null||zr(e)!=="object"||e instanceof Date||e instanceof RegExp||Qd.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return ps(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=ps(e[r],t)),n},{}))}function sg(e){return ps(e,new WeakSet)}var lu=function(t){return{type:"string",value:t}},og=function(t){return{type:"number",value:t}},lg=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},ug=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},cg=!!M.Fragment,uu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},pg=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Lt.Memo:return e(t.type);case t.$$typeof===Lt.ForwardRef:return e(t.render);default:return uu(t)}},dg=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:uu(t.type);case Lt.isForwardRef(t):case Lt.isMemo(t):return pg(t.type);case Lt.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Lt.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Lt.isLazy(t):return"Lazy";case Lt.isProfiler(t):return"Profiler";case Lt.isStrictMode(t):return"StrictMode";case Lt.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},cu=function(t,n){return n!=="children"},hg=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},pu=function(t,n){var r={};return Object.keys(t).filter(function(i){return n(t[i],i)}).forEach(function(i){return r[i]=t[i]}),r},ds=function e(t,n){var r=n.displayName,i=r===void 0?dg:r;if(typeof t=="string")return lu(t);if(typeof t=="number")return og(t);if(!M.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(zr(t),"`"));var o=i(t),u=pu(t.props,cu);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=pu(t.type.defaultProps||{},cu),h=M.Children.toArray(t.props.children).filter(hg).map(function(g){return e(g,n)});return cg&&t.type===M.Fragment?ug(c,h):lg(o,u,d,h)};function fg(){}var mg=function(t){return t.toString().split(`
532
+ `).map(function(n){return n.trim()}).join("")},du=mg,hu=function(e,t){var n=t.functionValue,r=n===void 0?du:n,i=t.showFunctions;return r(!i&&r===du?fg:e)},gg=function(e,t,n,r){var i=sg(e),o=Zm(i,{transform:function(c,d,h){var g=c[d];return g&&M.isValidElement(g)?Ha(ds(g,r),!0,n,r):typeof g=="function"?hu(g,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,Xt(1,r.tabStop)).replace(/\n([^$])/g,`
533
+ `.concat(Xt(n+1,r.tabStop),"$1"))},vg=function(t){return t.replace(/"/g,"&quot;")},Dg=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(vg(t),'"');if(zr(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(hu(t,i),"}"):M.isValidElement(t)?"{".concat(Ha(ds(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Ym(t)||Array.isArray(t)?"{".concat(gg(t,n,r,i),"}"):"{".concat(String(t),"}")},yg=function(e,t,n,r,i,o,u,c){if(!t&&!r)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var d=t?n:i,h=c.useBooleanShorthandSyntax,g=c.tabStop,v=Dg(d,o,u,c),D=" ",b=`
534
534
  `.concat(Xt(u+1,g)),k=v.includes(`
535
535
  `);return h&&v==="{false}"&&!r?(D="",b=""):h&&v==="{true}"?(D+="".concat(e),b+="".concat(e)):(D+="".concat(e,"=").concat(v),b+="".concat(e,"=").concat(v)),{attributeFormattedInline:D,attributeFormattedMultiline:b,isMultilineAttribute:k}},bg=function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type==="string"||t.type==="number")&&(r.type==="string"||r.type==="number")?n.push(lu(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n},kg=function(t){return["key","ref"].includes(t)},wg=function(e){return function(t){var n=t.includes("key"),r=t.includes("ref"),i=t.filter(function(u){return!kg(u)}),o=ou(e?i.sort():i);return r&&o.unshift("ref"),n&&o.unshift("key"),o}};function Cg(e,t){return Array.isArray(t)?function(n){return t.indexOf(n)===-1}:function(n){return t(e[n],n)}}var _g=function(t,n,r,i,o){var u=o.tabStop;return t.type==="string"?n.split(`
536
536
  `).map(function(c,d){return d===0?c:"".concat(Xt(i,u)).concat(c)}).join(`
537
- `):n},xg=function(t,n,r){return function(i){return _g(i,Ua(i,t,n,r),t,n,r)}},Sg=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},fu=function(t,n,r,i,o){return o?Xt(r,i).length+n.length>o:t.length>1},Eg=function(t,n,r,i,o,u,c){return(fu(t,n,o,u,c)||r)&&!i},mu=function(e,t,n,r){var i=e.type,o=e.displayName,u=o===void 0?"":o,c=e.childrens,d=e.props,h=d===void 0?{}:d,g=e.defaultProps,v=g===void 0?{}:g;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var D=r.filterProps,b=r.maxInlineAttributesLineLength,k=r.showDefaultProps,x=r.sortProps,C=r.tabStop,T="<".concat(u),F=T,S=T,A=!1,_=[],$=Cg(h,D);Object.keys(h).filter($).filter(Sg(v,h)).forEach(function(j){return _.push(j)}),Object.keys(v).filter($).filter(function(){return k}).filter(function(j){return!_.includes(j)}).forEach(function(j){return _.push(j)});var P=wg(x)(_);if(P.forEach(function(j){var z=yg(j,Object.keys(h).includes(j),h[j],Object.keys(v).includes(j),v[j],t,n,r),K=z.attributeFormattedInline,G=z.attributeFormattedMultiline,L=z.isMultilineAttribute;L&&(A=!0),F+=K,S+=G}),S+=`
537
+ `):n},xg=function(t,n,r){return function(i){return _g(i,Ha(i,t,n,r),t,n,r)}},Sg=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},fu=function(t,n,r,i,o){return o?Xt(r,i).length+n.length>o:t.length>1},Eg=function(t,n,r,i,o,u,c){return(fu(t,n,o,u,c)||r)&&!i},mu=function(e,t,n,r){var i=e.type,o=e.displayName,u=o===void 0?"":o,c=e.childrens,d=e.props,h=d===void 0?{}:d,g=e.defaultProps,v=g===void 0?{}:g;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var D=r.filterProps,b=r.maxInlineAttributesLineLength,k=r.showDefaultProps,x=r.sortProps,C=r.tabStop,T="<".concat(u),F=T,S=T,A=!1,_=[],$=Cg(h,D);Object.keys(h).filter($).filter(Sg(v,h)).forEach(function(j){return _.push(j)}),Object.keys(v).filter($).filter(function(){return k}).filter(function(j){return!_.includes(j)}).forEach(function(j){return _.push(j)});var P=wg(x)(_);if(P.forEach(function(j){var z=yg(j,Object.keys(h).includes(j),h[j],Object.keys(v).includes(j),v[j],t,n,r),K=z.attributeFormattedInline,G=z.attributeFormattedMultiline,L=z.isMultilineAttribute;L&&(A=!0),F+=K,S+=G}),S+=`
538
538
  `.concat(Xt(n,C)),Eg(P,F,A,t,n,C,b)?T=S:T=F,c&&c.length>0){var I=n+1;T+=">",t||(T+=`
539
539
  `,T+=Xt(I,C)),T+=c.reduce(bg,[]).map(xg(t,I,r)).join(t?"":`
540
540
  `.concat(Xt(I,C))),t||(T+=`
541
- `,T+=Xt(I-1,C)),T+="</".concat(u,">")}else fu(P,F,n,C,b)||(T+=" "),T+="/>";return T},Fg="",gu="React.Fragment",Ag=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},$g=function(t){var n=t.key;return!!n},Tg=function(t){var n=t.childrens;return n.length===0},Bg=function(e,t,n,r){var i=e.type,o=e.key,u=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var c=r.useFragmentShortSyntax,d;return c?Tg(e)||$g(e)?d=gu:d=Fg:d=gu,mu(Ag(d,o,u),t,n,r)},Ng=["<",">","{","}"],jg=function(t){return Ng.some(function(n){return t.includes(n)})},Pg=function(t){return jg(t)?"{`".concat(t,"`}"):t},Lg=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},Ua=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Lg(Pg(String(e.value)))):"";if(e.type==="ReactElement")return mu(e,t,n,r);if(e.type==="ReactFragment")return Bg(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Og=function(e,t){return Ua(e,!1,0,t)},Ig=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.filterProps,i=r===void 0?[]:r,o=n.showDefaultProps,u=o===void 0?!0:o,c=n.showFunctions,d=c===void 0?!1:c,h=n.functionValue,g=n.tabStop,v=g===void 0?2:g,D=n.useBooleanShorthandSyntax,b=D===void 0?!0:D,k=n.useFragmentShortSyntax,x=k===void 0?!0:k,C=n.sortProps,T=C===void 0?!0:C,F=n.maxInlineAttributesLineLength,S=n.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var A={filterProps:i,showDefaultProps:u,showFunctions:d,functionValue:h,tabStop:v,useBooleanShorthandSyntax:b,useFragmentShortSyntax:x,sortProps:T,maxInlineAttributesLineLength:F,displayName:S};return Og(hs(t,A),A)},Mg=Object.create,Wa=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,qg=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty,vu=e=>{throw TypeError(e)},Wg=(e,t)=>()=>(e&&(t=e(e=0)),t),fs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),za=(e,t)=>{for(var n in t)Wa(e,n,{get:t[n],enumerable:!0})},Du=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qg(t))!Ug.call(e,i)&&i!==n&&Wa(e,i,{get:()=>t[i],enumerable:!(r=Rg(t,i))||r.enumerable});return e},Va=(e,t,n)=>(n=e!=null?Mg(Hg(e)):{},Du(Wa(n,"default",{value:e,enumerable:!0}),e)),zg=e=>Du(Wa({},"__esModule",{value:!0}),e),Vg=(e,t,n)=>t.has(e)||vu("Cannot "+n),Gg=(e,t,n)=>t.has(e)?vu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vr=(e,t,n)=>(Vg(e,t,"access private method"),n),ms=fs((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),yu={};za(yu,{default:()=>ku,shouldHighlight:()=>bu});var bu,ku,Yg=Wg(()=>{bu=()=>!1,ku=String}),Kg=fs((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),Jg=fs(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(Yg(),zg(yu)),n=i(Kg(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(r=function(F){return F?T:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var T=r(C);if(T&&T.has(x))return T.get(x);var F={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in x)if(A!=="default"&&{}.hasOwnProperty.call(x,A)){var _=S?Object.getOwnPropertyDescriptor(x,A):null;_&&(_.get||_.set)?Object.defineProperty(F,A,_):F[A]=x[A]}return F.default=x,T&&T.set(x,F),F}var o=n.default,u=(x,C)=>T=>x(C(T)),c;function d(x){return x?(c!=null||(c=(0,n.createColors)(!0)),c):o}var h=!1;function g(x){return{gutter:x.gray,marker:u(x.red,x.bold),message:u(x.red,x.bold)}}var v=/\r\n|[\n\r\u2028\u2029]/;function D(x,C,T){let F=Object.assign({column:0,line:-1},x.start),S=Object.assign({},F,x.end),{linesAbove:A=2,linesBelow:_=3}=T||{},$=F.line,P=F.column,I=S.line,j=S.column,z=Math.max($-(A+1),0),K=Math.min(C.length,I+_);$===-1&&(z=0),I===-1&&(K=C.length);let G=I-$,L={};if(G)for(let N=0;N<=G;N++){let H=N+$;if(!P)L[H]=!0;else if(N===0){let Q=C[H-1].length;L[H]=[P,Q-P+1]}else if(N===G)L[H]=[0,j];else{let Q=C[H-N].length;L[H]=[0,Q]}}else P===j?P?L[$]=[P,0]:L[$]=!0:L[$]=[P,j-P];return{start:z,end:K,markerLines:L}}function b(x,C,T={}){let F=(T.highlightCode||T.forceColor)&&(0,t.shouldHighlight)(T),S=d(T.forceColor),A=g(S),_=(L,N)=>F?L(N):N,$=x.split(v),{start:P,end:I,markerLines:j}=D(C,$,T),z=C.start&&typeof C.start.column=="number",K=String(I).length,G=(F?(0,t.default)(x,T):x).split(v,I).slice(P,I).map((L,N)=>{let H=P+1+N,Q=` ${` ${H}`.slice(-K)} |`,fe=j[H],ee=!j[H+1];if(fe){let ue="";if(Array.isArray(fe)){let me=L.slice(0,Math.max(fe[0]-1,0)).replace(/[^\t]/g," "),ie=fe[1]||1;ue=[`
541
+ `,T+=Xt(I-1,C)),T+="</".concat(u,">")}else fu(P,F,n,C,b)||(T+=" "),T+="/>";return T},Fg="",gu="React.Fragment",Ag=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},$g=function(t){var n=t.key;return!!n},Tg=function(t){var n=t.childrens;return n.length===0},Bg=function(e,t,n,r){var i=e.type,o=e.key,u=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var c=r.useFragmentShortSyntax,d;return c?Tg(e)||$g(e)?d=gu:d=Fg:d=gu,mu(Ag(d,o,u),t,n,r)},Ng=["<",">","{","}"],jg=function(t){return Ng.some(function(n){return t.includes(n)})},Pg=function(t){return jg(t)?"{`".concat(t,"`}"):t},Lg=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},Ha=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Lg(Pg(String(e.value)))):"";if(e.type==="ReactElement")return mu(e,t,n,r);if(e.type==="ReactFragment")return Bg(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Og=function(e,t){return Ha(e,!1,0,t)},Ig=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.filterProps,i=r===void 0?[]:r,o=n.showDefaultProps,u=o===void 0?!0:o,c=n.showFunctions,d=c===void 0?!1:c,h=n.functionValue,g=n.tabStop,v=g===void 0?2:g,D=n.useBooleanShorthandSyntax,b=D===void 0?!0:D,k=n.useFragmentShortSyntax,x=k===void 0?!0:k,C=n.sortProps,T=C===void 0?!0:C,F=n.maxInlineAttributesLineLength,S=n.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var A={filterProps:i,showDefaultProps:u,showFunctions:d,functionValue:h,tabStop:v,useBooleanShorthandSyntax:b,useFragmentShortSyntax:x,sortProps:T,maxInlineAttributesLineLength:F,displayName:S};return Og(ds(t,A),A)},Mg=Object.create,Ua=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,qg=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Ug=Object.prototype.hasOwnProperty,vu=e=>{throw TypeError(e)},Wg=(e,t)=>()=>(e&&(t=e(e=0)),t),hs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wa=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},Du=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qg(t))!Ug.call(e,i)&&i!==n&&Ua(e,i,{get:()=>t[i],enumerable:!(r=Rg(t,i))||r.enumerable});return e},za=(e,t,n)=>(n=e!=null?Mg(Hg(e)):{},Du(Ua(n,"default",{value:e,enumerable:!0}),e)),zg=e=>Du(Ua({},"__esModule",{value:!0}),e),Vg=(e,t,n)=>t.has(e)||vu("Cannot "+n),Gg=(e,t,n)=>t.has(e)?vu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vr=(e,t,n)=>(Vg(e,t,"access private method"),n),fs=hs((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),yu={};Wa(yu,{default:()=>ku,shouldHighlight:()=>bu});var bu,ku,Yg=Wg(()=>{bu=()=>!1,ku=String}),Kg=hs((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),Jg=hs(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(Yg(),zg(yu)),n=i(Kg(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,T=new WeakMap;return(r=function(F){return F?T:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var T=r(C);if(T&&T.has(x))return T.get(x);var F={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in x)if(A!=="default"&&{}.hasOwnProperty.call(x,A)){var _=S?Object.getOwnPropertyDescriptor(x,A):null;_&&(_.get||_.set)?Object.defineProperty(F,A,_):F[A]=x[A]}return F.default=x,T&&T.set(x,F),F}var o=n.default,u=(x,C)=>T=>x(C(T)),c;function d(x){return x?(c!=null||(c=(0,n.createColors)(!0)),c):o}var h=!1;function g(x){return{gutter:x.gray,marker:u(x.red,x.bold),message:u(x.red,x.bold)}}var v=/\r\n|[\n\r\u2028\u2029]/;function D(x,C,T){let F=Object.assign({column:0,line:-1},x.start),S=Object.assign({},F,x.end),{linesAbove:A=2,linesBelow:_=3}=T||{},$=F.line,P=F.column,I=S.line,j=S.column,z=Math.max($-(A+1),0),K=Math.min(C.length,I+_);$===-1&&(z=0),I===-1&&(K=C.length);let G=I-$,L={};if(G)for(let N=0;N<=G;N++){let H=N+$;if(!P)L[H]=!0;else if(N===0){let Q=C[H-1].length;L[H]=[P,Q-P+1]}else if(N===G)L[H]=[0,j];else{let Q=C[H-N].length;L[H]=[0,Q]}}else P===j?P?L[$]=[P,0]:L[$]=!0:L[$]=[P,j-P];return{start:z,end:K,markerLines:L}}function b(x,C,T={}){let F=(T.highlightCode||T.forceColor)&&(0,t.shouldHighlight)(T),S=d(T.forceColor),A=g(S),_=(L,N)=>F?L(N):N,$=x.split(v),{start:P,end:I,markerLines:j}=D(C,$,T),z=C.start&&typeof C.start.column=="number",K=String(I).length,G=(F?(0,t.default)(x,T):x).split(v,I).slice(P,I).map((L,N)=>{let H=P+1+N,Q=` ${` ${H}`.slice(-K)} |`,fe=j[H],ee=!j[H+1];if(fe){let ue="";if(Array.isArray(fe)){let me=L.slice(0,Math.max(fe[0]-1,0)).replace(/[^\t]/g," "),ie=fe[1]||1;ue=[`
542
542
  `,_(A.gutter,Q.replace(/\d/g," "))," ",me,_(A.marker,"^").repeat(ie)].join(""),ee&&T.message&&(ue+=" "+_(A.message,T.message))}return[_(A.marker,">"),_(A.gutter,Q),L.length>0?` ${L}`:"",ue].join("")}else return` ${_(A.gutter,Q)}${L.length>0?` ${L}`:""}`}).join(`
543
543
  `);return T.message&&!z&&(G=`${" ".repeat(K+1)}${T.message}
544
- ${G}`),F?S.reset(G):G}function k(x,C,T,F={}){if(!h){h=!0;let S="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let A=new Error(S);A.name="DeprecationWarning",console.warn(new Error(S))}}return T=Math.max(T,0),b(x,{start:{column:T,line:C}},F)}}),Xg={};za(Xg,{__debug:()=>ZD,check:()=>XD,doc:()=>jc,format:()=>Ws,formatWithCursor:()=>Lc,getSupportInfo:()=>QD,util:()=>Pc,version:()=>ED});var Qg=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Ga=Qg;function hn(){}hn.prototype={diff:function(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={}),this.options=r;var o=this;function u(S){return i?(setTimeout(function(){i(void 0,S)},0),!0):S}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var c=t.length,d=e.length,h=1,g=c+d;r.maxEditLength&&(g=Math.min(g,r.maxEditLength));var v=(n=r.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],k=this.extractCommon(b[0],t,e,0);if(b[0].oldPos+1>=d&&k+1>=c)return u([{value:this.join(t),count:t.length}]);var x=-1/0,C=1/0;function T(){for(var S=Math.max(x,-h);S<=Math.min(C,h);S+=2){var A=void 0,_=b[S-1],$=b[S+1];_&&(b[S-1]=void 0);var P=!1;if($){var I=$.oldPos-S;P=$&&0<=I&&I<c}var j=_&&_.oldPos+1<d;if(!P&&!j){b[S]=void 0;continue}if(!j||P&&_.oldPos+1<$.oldPos?A=o.addToPath($,!0,void 0,0):A=o.addToPath(_,void 0,!0,1),k=o.extractCommon(A,t,e,S),A.oldPos+1>=d&&k+1>=c)return u(Zg(o,A.lastComponent,t,e,o.useLongestToken));b[S]=A,A.oldPos+1>=d&&(C=Math.min(C,S-1)),k+1>=c&&(x=Math.max(x,S+1))}h++}if(i)(function S(){setTimeout(function(){if(h>g||Date.now()>D)return i();T()||S()},0)})();else for(;h<=g&&Date.now()<=D;){var F=T();if(F)return F}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,u=e.oldPos,c=u-r,d=0;c+1<i&&u+1<o&&this.equals(t[c+1],n[u+1]);)c++,u++,d++;return d&&(e.lastComponent={count:d,previousComponent:e.lastComponent}),e.oldPos=u,c},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function Zg(e,t,n,r,i){for(var o=[],u;t;)o.push(t),u=t.previousComponent,delete t.previousComponent,t=u;o.reverse();for(var c=0,d=o.length,h=0,g=0;c<d;c++){var v=o[c];if(v.removed){if(v.value=e.join(r.slice(g,g+v.count)),g+=v.count,c&&o[c-1].added){var D=o[c-1];o[c-1]=o[c],o[c]=D}}else{if(!v.added&&i){var b=n.slice(h,h+v.count);b=b.map(function(x,C){var T=r[g+C];return T.length>x.length?T:x}),v.value=e.join(b)}else v.value=e.join(n.slice(h,h+v.count));h+=v.count,v.added||(g+=v.count)}}var k=o[d-1];return d>1&&typeof k.value=="string"&&(k.added||k.removed)&&e.equals("",k.value)&&(o[d-2].value+=k.value,o.pop()),o}var wu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Cu=/\S/,_u=new hn;_u.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Cu.test(e)&&!Cu.test(t)},_u.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&wu.test(t[n])&&wu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var xu=new hn;xu.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
545
- `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ev=new hn;ev.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var tv=new hn;tv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ya(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ya=function(t){return typeof t}:Ya=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}var nv=Object.prototype.toString,Gr=new hn;Gr.useLongestToken=!0,Gr.tokenize=xu.tokenize,Gr.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,u){return typeof u>"u"?n:u}:r;return typeof e=="string"?e:JSON.stringify(gs(e,null,null,i),i," ")},Gr.equals=function(e,t){return hn.prototype.equals.call(Gr,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function gs(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(nv.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=gs(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ya(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],d;for(d in e)e.hasOwnProperty(d)&&c.push(d);for(c.sort(),o=0;o<c.length;o+=1)d=c[o],u[d]=gs(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var Ka=new hn;Ka.tokenize=function(e){return e.slice()},Ka.join=Ka.removeEmpty=function(e){return e};function rv(e,t,n){return Ka.diff(e,t,n)}function av(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
546
- `?"crlf":"cr":"lf"}function vs(e){switch(e){case"cr":return"\r";case"crlf":return`\r
544
+ ${G}`),F?S.reset(G):G}function k(x,C,T,F={}){if(!h){h=!0;let S="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let A=new Error(S);A.name="DeprecationWarning",console.warn(new Error(S))}}return T=Math.max(T,0),b(x,{start:{column:T,line:C}},F)}}),Xg={};Wa(Xg,{__debug:()=>ZD,check:()=>XD,doc:()=>jc,format:()=>Us,formatWithCursor:()=>Lc,getSupportInfo:()=>QD,util:()=>Pc,version:()=>ED});var Qg=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Va=Qg;function hn(){}hn.prototype={diff:function(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={}),this.options=r;var o=this;function u(S){return i?(setTimeout(function(){i(void 0,S)},0),!0):S}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var c=t.length,d=e.length,h=1,g=c+d;r.maxEditLength&&(g=Math.min(g,r.maxEditLength));var v=(n=r.timeout)!==null&&n!==void 0?n:1/0,D=Date.now()+v,b=[{oldPos:-1,lastComponent:void 0}],k=this.extractCommon(b[0],t,e,0);if(b[0].oldPos+1>=d&&k+1>=c)return u([{value:this.join(t),count:t.length}]);var x=-1/0,C=1/0;function T(){for(var S=Math.max(x,-h);S<=Math.min(C,h);S+=2){var A=void 0,_=b[S-1],$=b[S+1];_&&(b[S-1]=void 0);var P=!1;if($){var I=$.oldPos-S;P=$&&0<=I&&I<c}var j=_&&_.oldPos+1<d;if(!P&&!j){b[S]=void 0;continue}if(!j||P&&_.oldPos+1<$.oldPos?A=o.addToPath($,!0,void 0,0):A=o.addToPath(_,void 0,!0,1),k=o.extractCommon(A,t,e,S),A.oldPos+1>=d&&k+1>=c)return u(Zg(o,A.lastComponent,t,e,o.useLongestToken));b[S]=A,A.oldPos+1>=d&&(C=Math.min(C,S-1)),k+1>=c&&(x=Math.max(x,S+1))}h++}if(i)(function S(){setTimeout(function(){if(h>g||Date.now()>D)return i();T()||S()},0)})();else for(;h<=g&&Date.now()<=D;){var F=T();if(F)return F}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,u=e.oldPos,c=u-r,d=0;c+1<i&&u+1<o&&this.equals(t[c+1],n[u+1]);)c++,u++,d++;return d&&(e.lastComponent={count:d,previousComponent:e.lastComponent}),e.oldPos=u,c},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function Zg(e,t,n,r,i){for(var o=[],u;t;)o.push(t),u=t.previousComponent,delete t.previousComponent,t=u;o.reverse();for(var c=0,d=o.length,h=0,g=0;c<d;c++){var v=o[c];if(v.removed){if(v.value=e.join(r.slice(g,g+v.count)),g+=v.count,c&&o[c-1].added){var D=o[c-1];o[c-1]=o[c],o[c]=D}}else{if(!v.added&&i){var b=n.slice(h,h+v.count);b=b.map(function(x,C){var T=r[g+C];return T.length>x.length?T:x}),v.value=e.join(b)}else v.value=e.join(n.slice(h,h+v.count));h+=v.count,v.added||(g+=v.count)}}var k=o[d-1];return d>1&&typeof k.value=="string"&&(k.added||k.removed)&&e.equals("",k.value)&&(o[d-2].value+=k.value,o.pop()),o}var wu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Cu=/\S/,_u=new hn;_u.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Cu.test(e)&&!Cu.test(t)},_u.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&wu.test(t[n])&&wu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var xu=new hn;xu.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
545
+ `));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var ev=new hn;ev.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var tv=new hn;tv.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ga(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ga=function(t){return typeof t}:Ga=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}var nv=Object.prototype.toString,Gr=new hn;Gr.useLongestToken=!0,Gr.tokenize=xu.tokenize,Gr.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,u){return typeof u>"u"?n:u}:r;return typeof e=="string"?e:JSON.stringify(ms(e,null,null,i),i," ")},Gr.equals=function(e,t){return hn.prototype.equals.call(Gr,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function ms(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(nv.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=ms(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ga(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],d;for(d in e)e.hasOwnProperty(d)&&c.push(d);for(c.sort(),o=0;o<c.length;o+=1)d=c[o],u[d]=ms(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var Ya=new hn;Ya.tokenize=function(e){return e.slice()},Ya.join=Ya.removeEmpty=function(e){return e};function rv(e,t,n){return Ya.diff(e,t,n)}function av(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
546
+ `?"crlf":"cr":"lf"}function gs(e){switch(e){case"cr":return"\r";case"crlf":return`\r
547
547
  `;default:return`
548
548
  `}}function Su(e,t){let n;switch(t){case`
549
549
  `:n=/\n/gu;break;case"\r":n=/\r/gu;break;case`\r
550
- `:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function iv(e){return Ga(!1,e,/\r\n?/gu,`
550
+ `:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function iv(e){return Va(!1,e,/\r\n?/gu,`
551
551
  `)}var jn="string",Qt="array",Pn="cursor",Zt="indent",en="align",tn="trim",pt="group",Ot="fill",vt="if-break",nn="indent-if-break",rn="line-suffix",an="line-suffix-boundary",Qe="line",It="label",St="break-parent",Eu=new Set([Pn,Zt,en,tn,pt,Ot,vt,nn,rn,an,Qe,It,St]);function sv(e){if(typeof e=="string")return jn;if(Array.isArray(e))return Qt;if(!e)return;let{type:t}=e;if(Eu.has(t))return t}var Ln=sv,ov=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function lv(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
552
552
  Expected it to be 'string' or 'object'.`;if(Ln(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=ov([...Eu].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
553
- Expected it to be ${r}.`}var uv=class extends Error{constructor(t){super(lv(t));Sr(this,"name","InvalidDocError");this.doc=t}},sr=uv,Fu={};function cv(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===Fu){n(i.pop());continue}n&&i.push(o,Fu);let u=Ln(o);if(!u)throw new sr(o);if((t==null?void 0:t(o))!==!1)switch(u){case Qt:case Ot:{let c=u===Qt?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case vt:i.push(o.flatContents,o.breakContents);break;case pt:if(r&&o.expandedStates)for(let c=o.expandedStates.length,d=c-1;d>=0;--d)i.push(o.expandedStates[d]);else i.push(o.contents);break;case en:case Zt:case nn:case It:case rn:i.push(o.contents);break;case jn:case Pn:case tn:case an:case Qe:case St:break;default:throw new sr(o)}}}var Ds=cv,pv=()=>{},dv=pv;function Ja(e){return{type:Zt,contents:e}}function or(e,t){return{type:en,contents:t,n:e}}function Au(e,t={}){return dv(t.expandedStates),{type:pt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function hv(e){return or(Number.NEGATIVE_INFINITY,e)}function fv(e){return or({type:"root"},e)}function mv(e){return or(-1,e)}function gv(e,t){return Au(e[0],{...t,expandedStates:e})}function $u(e){return{type:Ot,parts:e}}function vv(e,t="",n={}){return{type:vt,breakContents:e,flatContents:t,groupId:n.groupId}}function Dv(e,t){return{type:nn,contents:e,groupId:t.groupId,negate:t.negate}}function ys(e){return{type:rn,contents:e}}var yv={type:an},Xa={type:St},bv={type:tn},bs={type:Qe,hard:!0},Tu={type:Qe,hard:!0,literal:!0},Bu={type:Qe},kv={type:Qe,soft:!0},On=[bs,Xa],Nu=[Tu,Xa],ks={type:Pn};function ju(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Pu(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=Ja(r);r=or(t%n,r),r=or(Number.NEGATIVE_INFINITY,r)}return r}function wv(e,t){return e?{type:It,label:e,contents:t}:t}function sn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...sn(r));else{let i=sn(r);i!==""&&n.push(i)}return n}return e.type===vt?{...e,breakContents:sn(e.breakContents),flatContents:sn(e.flatContents)}:e.type===pt?{...e,contents:sn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(sn)}:e.type===Ot?{type:"fill",parts:e.parts.map(sn)}:e.contents?{...e,contents:sn(e.contents)}:e}function Cv(e){let t=Object.create(null),n=new Set;return r(sn(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let g=o.map(r).filter(Boolean);return g.length===1?g[0]:`[${g.join(", ")}]`}if(o.type===Qe){let g=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===St;return o.literal?g?"literalline":"literallineWithoutBreakParent":o.hard?g?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===St)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===Qe&&c[u-1].hard?void 0:"breakParent";if(o.type===tn)return"trim";if(o.type===Zt)return"indent("+r(o.contents)+")";if(o.type===en)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(o.contents)+")":o.n<0?"dedent("+r(o.contents)+")":o.n.type==="root"?"markAsRoot("+r(o.contents)+")":"align("+JSON.stringify(o.n)+", "+r(o.contents)+")";if(o.type===vt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===nn){let g=[];o.negate&&g.push("negate: true"),o.groupId&&g.push(`groupId: ${i(o.groupId)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===pt){let g=[];o.break&&o.break!=="propagated"&&g.push("shouldBreak: true"),o.id&&g.push(`id: ${i(o.id)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(D=>r(D)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===Ot)return`fill([${o.parts.map(g=>r(g)).join(", ")}])`;if(o.type===rn)return"lineSuffix("+r(o.contents)+")";if(o.type===an)return"lineSuffixBoundary";if(o.type===It)return`label(${JSON.stringify(o.label)}, ${r(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function i(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let c=0;;c++){let d=u+(c>0?` #${c}`:"");if(!n.has(d))return n.add(d),t[o]=`Symbol.for(${JSON.stringify(d)})`}}}var _v=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ke=_v,xv=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Sv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ev(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Fv=e=>!(Sv(e)||Ev(e)),Av=/[^\x20-\x7F]/u;function $v(e){if(!e)return 0;if(!Av.test(e))return e.length;e=e.replace(xv()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Fv(r)?1:2)}return t}var ws=$v;function Qa(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(o){if(n.has(o))return n.get(o);let u=i(o);return n.set(o,u),u}function i(o){switch(Ln(o)){case Qt:return t(o.map(r));case Ot:return t({...o,parts:o.parts.map(r)});case vt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case pt:{let{expandedStates:u,contents:c}=o;return u?(u=u.map(r),c=u[0]):c=r(c),t({...o,contents:c,expandedStates:u})}case en:case Zt:case nn:case It:case rn:return t({...o,contents:r(o.contents)});case jn:case Pn:case tn:case an:case Qe:case St:return t(o);default:throw new sr(o)}}}function Cs(e,t,n){let r=n,i=!1;function o(u){if(i)return!1;let c=t(u);c!==void 0&&(i=!0,r=c)}return Ds(e,o),r}function Tv(e){if(e.type===pt&&e.break||e.type===Qe&&e.hard||e.type===St)return!0}function Bv(e){return Cs(e,Tv,!1)}function Lu(e){if(e.length>0){let t=Ke(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Nv(e){let t=new Set,n=[];function r(o){if(o.type===St&&Lu(n),o.type===pt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===pt&&n.pop().break&&Lu(n)}Ds(e,r,i,!0)}function jv(e){return e.type===Qe&&!e.hard?e.soft?"":" ":e.type===vt?e.flatContents:e}function Pv(e){return Qa(e,jv)}function Ou(e){for(e=[...e];e.length>=2&&Ke(!1,e,-2).type===Qe&&Ke(!1,e,-1).type===St;)e.length-=2;if(e.length>0){let t=Yr(Ke(!1,e,-1));e[e.length-1]=t}return e}function Yr(e){switch(Ln(e)){case Zt:case nn:case pt:case rn:case It:{let t=Yr(e.contents);return{...e,contents:t}}case vt:return{...e,breakContents:Yr(e.breakContents),flatContents:Yr(e.flatContents)};case Ot:return{...e,parts:Ou(e.parts)};case Qt:return Ou(e);case jn:return e.replace(/[\n\r]*$/u,"");case en:case Pn:case tn:case an:case Qe:case St:break;default:throw new sr(e)}return e}function Iu(e){return Yr(Ov(e))}function Lv(e){switch(Ln(e)){case Ot:if(e.parts.every(t=>t===""))return"";break;case pt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===pt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case en:case Zt:case nn:case rn:if(!e.contents)return"";break;case vt:if(!e.flatContents&&!e.breakContents)return"";break;case Qt:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ke(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case jn:case Pn:case tn:case an:case Qe:case It:case St:break;default:throw new sr(e)}return e}function Ov(e){return Qa(e,t=>Lv(t))}function Iv(e,t=Nu){return Qa(e,n=>typeof n=="string"?ju(t,n.split(`
554
- `)):n)}function Mv(e){if(e.type===Qe)return!0}function Rv(e){return Cs(e,Mv,!1)}function Mu(e,t){return e.type===It?{...e,contents:t(e.contents)}:t(e)}var dt=Symbol("MODE_BREAK"),Mt=Symbol("MODE_FLAT"),Kr=Symbol("cursor");function Ru(){return{value:"",length:0,queue:[]}}function qv(e,t){return _s(e,{type:"indent"},t)}function Hv(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Ru():t<0?_s(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:_s(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function _s(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,u=0,c=0;for(let k of r)switch(k.type){case"indent":g(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":g(),i+=k.n,o+=k.n.length;break;case"numberAlign":u+=1,c+=k.n;break;default:throw new Error(`Unexpected type '${k.type}'`)}return D(),{...e,value:i,length:o,queue:r};function d(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function g(){n.useTabs?v():D()}function v(){u>0&&d(u),b()}function D(){c>0&&h(c),b()}function b(){u=0,c=0}}function xs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Kr){n++;continue}for(let o=i.length-1;o>=0;o--){let u=i[o];if(u===" "||u===" ")t++;else{e[r]=i.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Kr);return t}function Za(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],d=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:g}=c.pop(),v=Ln(g);switch(v){case jn:d.push(g),n-=ws(g);break;case Qt:case Ot:{let D=v===Qt?g:g.parts;for(let b=D.length-1;b>=0;b--)c.push({mode:h,doc:D[b]});break}case Zt:case en:case nn:case It:c.push({mode:h,doc:g.contents});break;case tn:n+=xs(d);break;case pt:{if(o&&g.break)return!1;let D=g.break?dt:h,b=g.expandedStates&&D===dt?Ke(!1,g.expandedStates,-1):g.contents;c.push({mode:D,doc:b});break}case vt:{let D=(g.groupId?i[g.groupId]||Mt:h)===dt?g.breakContents:g.flatContents;D&&c.push({mode:h,doc:D});break}case Qe:if(h===dt||g.hard)return!0;g.soft||(d.push(" "),n--);break;case rn:r=!0;break;case an:if(r)return!1;break}}return!1}function ei(e,t){let n={},r=t.printWidth,i=vs(t.endOfLine),o=0,u=[{ind:Ru(),mode:dt,doc:e}],c=[],d=!1,h=[],g=0;for(Nv(e);u.length>0;){let{ind:D,mode:b,doc:k}=u.pop();switch(Ln(k)){case jn:{let x=i!==`
555
- `?Ga(!1,k,`
556
- `,i):k;c.push(x),u.length>0&&(o+=ws(x));break}case Qt:for(let x=k.length-1;x>=0;x--)u.push({ind:D,mode:b,doc:k[x]});break;case Pn:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(Kr),g++;break;case Zt:u.push({ind:qv(D,t),mode:b,doc:k.contents});break;case en:u.push({ind:Hv(D,k.n,t),mode:b,doc:k.contents});break;case tn:o-=xs(c);break;case pt:switch(b){case Mt:if(!d){u.push({ind:D,mode:k.break?dt:Mt,doc:k.contents});break}case dt:{d=!1;let x={ind:D,mode:Mt,doc:k.contents},C=r-o,T=h.length>0;if(!k.break&&Za(x,u,C,T,n))u.push(x);else if(k.expandedStates){let F=Ke(!1,k.expandedStates,-1);if(k.break){u.push({ind:D,mode:dt,doc:F});break}else for(let S=1;S<k.expandedStates.length+1;S++)if(S>=k.expandedStates.length){u.push({ind:D,mode:dt,doc:F});break}else{let A=k.expandedStates[S],_={ind:D,mode:Mt,doc:A};if(Za(_,u,C,T,n)){u.push(_);break}}}else u.push({ind:D,mode:dt,doc:k.contents});break}}k.id&&(n[k.id]=Ke(!1,u,-1).mode);break;case Ot:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[T,F]=C,S={ind:D,mode:Mt,doc:T},A={ind:D,mode:dt,doc:T},_=Za(S,[],x,h.length>0,n,!0);if(C.length===1){_?u.push(S):u.push(A);break}let $={ind:D,mode:Mt,doc:F},P={ind:D,mode:dt,doc:F};if(C.length===2){_?u.push($,S):u.push(P,A);break}C.splice(0,2);let I={ind:D,mode:b,doc:$u(C)},j=C[0];Za({ind:D,mode:Mt,doc:[T,F,j]},[],x,h.length>0,n,!0)?u.push(I,$,S):_?u.push(I,P,S):u.push(I,P,A);break}case vt:case nn:{let x=k.groupId?n[k.groupId]:b;if(x===dt){let C=k.type===vt?k.breakContents:k.negate?k.contents:Ja(k.contents);C&&u.push({ind:D,mode:b,doc:C})}if(x===Mt){let C=k.type===vt?k.flatContents:k.negate?Ja(k.contents):k.contents;C&&u.push({ind:D,mode:b,doc:C})}break}case rn:h.push({ind:D,mode:b,doc:k.contents});break;case an:h.length>0&&u.push({ind:D,mode:b,doc:bs});break;case Qe:switch(b){case Mt:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case dt:if(h.length>0){u.push({ind:D,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?D.root?(c.push(i,D.root.value),o=D.root.length):(c.push(i),o=0):(o-=xs(c),c.push(i+D.value),o=D.length);break}break;case It:u.push({ind:D,mode:b,doc:k.contents});break;case St:break;default:throw new sr(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(Kr);if(v!==-1){let D=c.indexOf(Kr,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,D).join(""),x=c.slice(D+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function Uv(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}var Ss=Uv,In,Es,ti,Wv=class{constructor(e){Gg(this,In),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ke(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ke(!1,this.stack,-2)}get node(){return Ke(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ke(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Vr(this,In,ti).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ke(!1,e,-2):null}getValue(){return Ke(!1,this.stack,-1)}getNode(e=0){let t=Vr(this,In,Es).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=Vr(this,In,Es).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{for(let o=0;o<i.length;++o)n.push(o,i[o]),e(this,o,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,o)=>{n[i]=e(r,i,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,o))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of Vr(this,In,ti).call(this))if(e(t))return t}hasAncestor(e){for(let t of Vr(this,In,ti).call(this))if(e(t))return!0;return!1}};In=new WeakSet,Es=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},ti=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var zv=Wv,qu=new Proxy(()=>{},{get:()=>qu}),Fs=qu;function Vv(e){return e!==null&&typeof e=="object"}var Gv=Vv;function*Hu(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>Gv(o)&&r(o);for(let o of n(e)){let u=e[o];if(Array.isArray(u))for(let c of u)i(c)&&(yield c);else i(u)&&(yield u)}}function*Yv(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of Hu(i,t))yield o,n.push(o)}}function Jr(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:o}=t,u=n;for(;u>=0&&u<o;){let c=t.charAt(u);if(e instanceof RegExp){if(!e.test(c))return u}else if(!e.includes(c))return u;i?u--:u++}return u===-1||u===o?u:!1}}var Kv=Jr(/\s/u),fn=Jr(" "),Uu=Jr(",; "),Wu=Jr(/[^\n\r]/u);function Jv(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
553
+ Expected it to be ${r}.`}var uv=class extends Error{constructor(t){super(lv(t));Er(this,"name","InvalidDocError");this.doc=t}},or=uv,Fu={};function cv(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===Fu){n(i.pop());continue}n&&i.push(o,Fu);let u=Ln(o);if(!u)throw new or(o);if((t==null?void 0:t(o))!==!1)switch(u){case Qt:case Ot:{let c=u===Qt?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case vt:i.push(o.flatContents,o.breakContents);break;case pt:if(r&&o.expandedStates)for(let c=o.expandedStates.length,d=c-1;d>=0;--d)i.push(o.expandedStates[d]);else i.push(o.contents);break;case en:case Zt:case nn:case It:case rn:i.push(o.contents);break;case jn:case Pn:case tn:case an:case Qe:case St:break;default:throw new or(o)}}}var vs=cv,pv=()=>{},dv=pv;function Ka(e){return{type:Zt,contents:e}}function lr(e,t){return{type:en,contents:t,n:e}}function Au(e,t={}){return dv(t.expandedStates),{type:pt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function hv(e){return lr(Number.NEGATIVE_INFINITY,e)}function fv(e){return lr({type:"root"},e)}function mv(e){return lr(-1,e)}function gv(e,t){return Au(e[0],{...t,expandedStates:e})}function $u(e){return{type:Ot,parts:e}}function vv(e,t="",n={}){return{type:vt,breakContents:e,flatContents:t,groupId:n.groupId}}function Dv(e,t){return{type:nn,contents:e,groupId:t.groupId,negate:t.negate}}function Ds(e){return{type:rn,contents:e}}var yv={type:an},Ja={type:St},bv={type:tn},ys={type:Qe,hard:!0},Tu={type:Qe,hard:!0,literal:!0},Bu={type:Qe},kv={type:Qe,soft:!0},On=[ys,Ja],Nu=[Tu,Ja],bs={type:Pn};function ju(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Pu(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=Ka(r);r=lr(t%n,r),r=lr(Number.NEGATIVE_INFINITY,r)}return r}function wv(e,t){return e?{type:It,label:e,contents:t}:t}function sn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...sn(r));else{let i=sn(r);i!==""&&n.push(i)}return n}return e.type===vt?{...e,breakContents:sn(e.breakContents),flatContents:sn(e.flatContents)}:e.type===pt?{...e,contents:sn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(sn)}:e.type===Ot?{type:"fill",parts:e.parts.map(sn)}:e.contents?{...e,contents:sn(e.contents)}:e}function Cv(e){let t=Object.create(null),n=new Set;return r(sn(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let g=o.map(r).filter(Boolean);return g.length===1?g[0]:`[${g.join(", ")}]`}if(o.type===Qe){let g=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===St;return o.literal?g?"literalline":"literallineWithoutBreakParent":o.hard?g?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===St)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===Qe&&c[u-1].hard?void 0:"breakParent";if(o.type===tn)return"trim";if(o.type===Zt)return"indent("+r(o.contents)+")";if(o.type===en)return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(o.contents)+")":o.n<0?"dedent("+r(o.contents)+")":o.n.type==="root"?"markAsRoot("+r(o.contents)+")":"align("+JSON.stringify(o.n)+", "+r(o.contents)+")";if(o.type===vt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===nn){let g=[];o.negate&&g.push("negate: true"),o.groupId&&g.push(`groupId: ${i(o.groupId)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===pt){let g=[];o.break&&o.break!=="propagated"&&g.push("shouldBreak: true"),o.id&&g.push(`id: ${i(o.id)}`);let v=g.length>0?`, { ${g.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(D=>r(D)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===Ot)return`fill([${o.parts.map(g=>r(g)).join(", ")}])`;if(o.type===rn)return"lineSuffix("+r(o.contents)+")";if(o.type===an)return"lineSuffixBoundary";if(o.type===It)return`label(${JSON.stringify(o.label)}, ${r(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function i(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let u=o.description||"symbol";for(let c=0;;c++){let d=u+(c>0?` #${c}`:"");if(!n.has(d))return n.add(d),t[o]=`Symbol.for(${JSON.stringify(d)})`}}}var _v=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ke=_v,xv=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Sv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Ev(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Fv=e=>!(Sv(e)||Ev(e)),Av=/[^\x20-\x7F]/u;function $v(e){if(!e)return 0;if(!Av.test(e))return e.length;e=e.replace(xv()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=Fv(r)?1:2)}return t}var ks=$v;function Xa(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(o){if(n.has(o))return n.get(o);let u=i(o);return n.set(o,u),u}function i(o){switch(Ln(o)){case Qt:return t(o.map(r));case Ot:return t({...o,parts:o.parts.map(r)});case vt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case pt:{let{expandedStates:u,contents:c}=o;return u?(u=u.map(r),c=u[0]):c=r(c),t({...o,contents:c,expandedStates:u})}case en:case Zt:case nn:case It:case rn:return t({...o,contents:r(o.contents)});case jn:case Pn:case tn:case an:case Qe:case St:return t(o);default:throw new or(o)}}}function ws(e,t,n){let r=n,i=!1;function o(u){if(i)return!1;let c=t(u);c!==void 0&&(i=!0,r=c)}return vs(e,o),r}function Tv(e){if(e.type===pt&&e.break||e.type===Qe&&e.hard||e.type===St)return!0}function Bv(e){return ws(e,Tv,!1)}function Lu(e){if(e.length>0){let t=Ke(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Nv(e){let t=new Set,n=[];function r(o){if(o.type===St&&Lu(n),o.type===pt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===pt&&n.pop().break&&Lu(n)}vs(e,r,i,!0)}function jv(e){return e.type===Qe&&!e.hard?e.soft?"":" ":e.type===vt?e.flatContents:e}function Pv(e){return Xa(e,jv)}function Ou(e){for(e=[...e];e.length>=2&&Ke(!1,e,-2).type===Qe&&Ke(!1,e,-1).type===St;)e.length-=2;if(e.length>0){let t=Yr(Ke(!1,e,-1));e[e.length-1]=t}return e}function Yr(e){switch(Ln(e)){case Zt:case nn:case pt:case rn:case It:{let t=Yr(e.contents);return{...e,contents:t}}case vt:return{...e,breakContents:Yr(e.breakContents),flatContents:Yr(e.flatContents)};case Ot:return{...e,parts:Ou(e.parts)};case Qt:return Ou(e);case jn:return e.replace(/[\n\r]*$/u,"");case en:case Pn:case tn:case an:case Qe:case St:break;default:throw new or(e)}return e}function Iu(e){return Yr(Ov(e))}function Lv(e){switch(Ln(e)){case Ot:if(e.parts.every(t=>t===""))return"";break;case pt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===pt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case en:case Zt:case nn:case rn:if(!e.contents)return"";break;case vt:if(!e.flatContents&&!e.breakContents)return"";break;case Qt:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ke(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...i)}return t.length===0?"":t.length===1?t[0]:t}case jn:case Pn:case tn:case an:case Qe:case It:case St:break;default:throw new or(e)}return e}function Ov(e){return Xa(e,t=>Lv(t))}function Iv(e,t=Nu){return Xa(e,n=>typeof n=="string"?ju(t,n.split(`
554
+ `)):n)}function Mv(e){if(e.type===Qe)return!0}function Rv(e){return ws(e,Mv,!1)}function Mu(e,t){return e.type===It?{...e,contents:t(e.contents)}:t(e)}var dt=Symbol("MODE_BREAK"),Mt=Symbol("MODE_FLAT"),Kr=Symbol("cursor");function Ru(){return{value:"",length:0,queue:[]}}function qv(e,t){return Cs(e,{type:"indent"},t)}function Hv(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||Ru():t<0?Cs(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Cs(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Cs(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],i="",o=0,u=0,c=0;for(let k of r)switch(k.type){case"indent":g(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":g(),i+=k.n,o+=k.n.length;break;case"numberAlign":u+=1,c+=k.n;break;default:throw new Error(`Unexpected type '${k.type}'`)}return D(),{...e,value:i,length:o,queue:r};function d(k){i+=" ".repeat(k),o+=n.tabWidth*k}function h(k){i+=" ".repeat(k),o+=k}function g(){n.useTabs?v():D()}function v(){u>0&&d(u),b()}function D(){c>0&&h(c),b()}function b(){u=0,c=0}}function _s(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Kr){n++;continue}for(let o=i.length-1;o>=0;o--){let u=i[o];if(u===" "||u===" ")t++;else{e[r]=i.slice(0,o+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Kr);return t}function Qa(e,t,n,r,i,o){if(n===Number.POSITIVE_INFINITY)return!0;let u=t.length,c=[e],d=[];for(;n>=0;){if(c.length===0){if(u===0)return!0;c.push(t[--u]);continue}let{mode:h,doc:g}=c.pop(),v=Ln(g);switch(v){case jn:d.push(g),n-=ks(g);break;case Qt:case Ot:{let D=v===Qt?g:g.parts;for(let b=D.length-1;b>=0;b--)c.push({mode:h,doc:D[b]});break}case Zt:case en:case nn:case It:c.push({mode:h,doc:g.contents});break;case tn:n+=_s(d);break;case pt:{if(o&&g.break)return!1;let D=g.break?dt:h,b=g.expandedStates&&D===dt?Ke(!1,g.expandedStates,-1):g.contents;c.push({mode:D,doc:b});break}case vt:{let D=(g.groupId?i[g.groupId]||Mt:h)===dt?g.breakContents:g.flatContents;D&&c.push({mode:h,doc:D});break}case Qe:if(h===dt||g.hard)return!0;g.soft||(d.push(" "),n--);break;case rn:r=!0;break;case an:if(r)return!1;break}}return!1}function Za(e,t){let n={},r=t.printWidth,i=gs(t.endOfLine),o=0,u=[{ind:Ru(),mode:dt,doc:e}],c=[],d=!1,h=[],g=0;for(Nv(e);u.length>0;){let{ind:D,mode:b,doc:k}=u.pop();switch(Ln(k)){case jn:{let x=i!==`
555
+ `?Va(!1,k,`
556
+ `,i):k;c.push(x),u.length>0&&(o+=ks(x));break}case Qt:for(let x=k.length-1;x>=0;x--)u.push({ind:D,mode:b,doc:k[x]});break;case Pn:if(g>=2)throw new Error("There are too many 'cursor' in doc.");c.push(Kr),g++;break;case Zt:u.push({ind:qv(D,t),mode:b,doc:k.contents});break;case en:u.push({ind:Hv(D,k.n,t),mode:b,doc:k.contents});break;case tn:o-=_s(c);break;case pt:switch(b){case Mt:if(!d){u.push({ind:D,mode:k.break?dt:Mt,doc:k.contents});break}case dt:{d=!1;let x={ind:D,mode:Mt,doc:k.contents},C=r-o,T=h.length>0;if(!k.break&&Qa(x,u,C,T,n))u.push(x);else if(k.expandedStates){let F=Ke(!1,k.expandedStates,-1);if(k.break){u.push({ind:D,mode:dt,doc:F});break}else for(let S=1;S<k.expandedStates.length+1;S++)if(S>=k.expandedStates.length){u.push({ind:D,mode:dt,doc:F});break}else{let A=k.expandedStates[S],_={ind:D,mode:Mt,doc:A};if(Qa(_,u,C,T,n)){u.push(_);break}}}else u.push({ind:D,mode:dt,doc:k.contents});break}}k.id&&(n[k.id]=Ke(!1,u,-1).mode);break;case Ot:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[T,F]=C,S={ind:D,mode:Mt,doc:T},A={ind:D,mode:dt,doc:T},_=Qa(S,[],x,h.length>0,n,!0);if(C.length===1){_?u.push(S):u.push(A);break}let $={ind:D,mode:Mt,doc:F},P={ind:D,mode:dt,doc:F};if(C.length===2){_?u.push($,S):u.push(P,A);break}C.splice(0,2);let I={ind:D,mode:b,doc:$u(C)},j=C[0];Qa({ind:D,mode:Mt,doc:[T,F,j]},[],x,h.length>0,n,!0)?u.push(I,$,S):_?u.push(I,P,S):u.push(I,P,A);break}case vt:case nn:{let x=k.groupId?n[k.groupId]:b;if(x===dt){let C=k.type===vt?k.breakContents:k.negate?k.contents:Ka(k.contents);C&&u.push({ind:D,mode:b,doc:C})}if(x===Mt){let C=k.type===vt?k.flatContents:k.negate?Ka(k.contents):k.contents;C&&u.push({ind:D,mode:b,doc:C})}break}case rn:h.push({ind:D,mode:b,doc:k.contents});break;case an:h.length>0&&u.push({ind:D,mode:b,doc:ys});break;case Qe:switch(b){case Mt:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case dt:if(h.length>0){u.push({ind:D,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?D.root?(c.push(i,D.root.value),o=D.root.length):(c.push(i),o=0):(o-=_s(c),c.push(i+D.value),o=D.length);break}break;case It:u.push({ind:D,mode:b,doc:k.contents});break;case St:break;default:throw new or(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(Kr);if(v!==-1){let D=c.indexOf(Kr,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,D).join(""),x=c.slice(D+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function Uv(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===" "?r=r+t-r%t:r++;return r}var xs=Uv,In,Ss,ei,Wv=class{constructor(e){Gg(this,In),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ke(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ke(!1,this.stack,-2)}get node(){return Ke(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=Ke(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Vr(this,In,ei).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ke(!1,e,-2):null}getValue(){return Ke(!1,this.stack,-1)}getNode(e=0){let t=Vr(this,In,Ss).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=Vr(this,In,Ss).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=Ke(!1,n,-1);for(let o of t)i=i[o],n.push(o,i);try{for(let o=0;o<i.length;++o)n.push(o,i[o]),e(this,o,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((r,i,o)=>{n[i]=e(r,i,o)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,o))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of Vr(this,In,ei).call(this))if(e(t))return t}hasAncestor(e){for(let t of Vr(this,In,ei).call(this))if(e(t))return!0;return!1}};In=new WeakSet,Ss=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},ei=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var zv=Wv,qu=new Proxy(()=>{},{get:()=>qu}),Es=qu;function Vv(e){return e!==null&&typeof e=="object"}var Gv=Vv;function*Hu(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>Gv(o)&&r(o);for(let o of n(e)){let u=e[o];if(Array.isArray(u))for(let c of u)i(c)&&(yield c);else i(u)&&(yield u)}}function*Yv(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of Hu(i,t))yield o,n.push(o)}}function Jr(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:o}=t,u=n;for(;u>=0&&u<o;){let c=t.charAt(u);if(e instanceof RegExp){if(!e.test(c))return u}else if(!e.includes(c))return u;i?u--:u++}return u===-1||u===o?u:!1}}var Kv=Jr(/\s/u),fn=Jr(" "),Uu=Jr(",; "),Wu=Jr(/[^\n\r]/u);function Jv(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&i===`
557
557
  `)return t-2;if(i===`
558
558
  `||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
559
559
  `)return t+2;if(i===`
560
- `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Mn=Jv;function Xv(e,t,n={}){let r=fn(e,n.backwards?t-1:t,n),i=Mn(e,r,n);return r!==i}var mn=Xv;function Qv(e){return Array.isArray(e)&&e.length>0}var Zv=Qv,zu=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),e2=e=>Object.keys(e).filter(t=>!zu.has(t));function t2(e){return e?t=>e(t,zu):e2}var ni=t2;function n2(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function As(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=n2(e)}function lr(e,t){t.leading=!0,t.trailing=!1,As(e,t)}function Rn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),As(e,t)}function ur(e,t){t.leading=!1,t.trailing=!0,As(e,t)}var $s=new WeakMap;function Ts(e,t){if($s.has(e))return $s.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:o,locEnd:u}=t;if(!r)return[];let c=((n==null?void 0:n(e,t))??[...Hu(e,{getVisitorKeys:ni(i)})]).flatMap(d=>r(d)?[d]:Ts(d,t));return c.sort((d,h)=>o(d)-o(h)||u(d)-u(h)),$s.set(e,c),c}function Vu(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),d=Ts(e,n),h,g,v=0,D=d.length;for(;v<D;){let b=v+D>>1,k=d[b],x=i(k),C=o(k);if(x<=u&&c<=C)return Vu(k,t,n,k);if(C<=u){h=k,v=b+1;continue}if(c<=x){g=k,D=b;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:b}=r,k=Ns(b,t,n);h&&Ns(b,h,n)!==k&&(h=null),g&&Ns(b,g,n)!==k&&(g=null)}return{enclosingNode:r,precedingNode:h,followingNode:g}}var Bs=()=>!1;function r2(e,t){let{comments:n}=e;if(delete e.comments,!Zv(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:c={}},originalText:d}=t,{ownLine:h=Bs,endOfLine:g=Bs,remaining:v=Bs}=c,D=n.map((b,k)=>({...Vu(e,b,t),comment:b,text:d,options:t,ast:e,isLastComment:n.length-1===k}));for(let[b,k]of D.entries()){let{comment:x,precedingNode:C,enclosingNode:T,followingNode:F,text:S,options:A,ast:_,isLastComment:$}=k;if(A.parser==="json"||A.parser==="json5"||A.parser==="jsonc"||A.parser==="__js_expression"||A.parser==="__ts_expression"||A.parser==="__vue_expression"||A.parser==="__vue_ts_expression"){if(i(x)-i(_)<=0){lr(_,x);continue}if(o(x)-o(_)>=0){ur(_,x);continue}}let P;if(u?P=[k]:(x.enclosingNode=T,x.precedingNode=C,x.followingNode=F,P=[x,S,A,_,$]),a2(S,A,D,b))x.placement="ownLine",h(...P)||(F?lr(F,x):C?ur(C,x):Rn(T||_,x));else if(i2(S,A,D,b))x.placement="endOfLine",g(...P)||(C?ur(C,x):F?lr(F,x):Rn(T||_,x));else if(x.placement="remaining",!v(...P))if(C&&F){let I=r.length;I>0&&r[I-1].followingNode!==F&&Yu(r,A),r.push(k)}else C?ur(C,x):F?lr(F,x):Rn(T||_,x)}if(Yu(r,t),!u)for(let b of n)delete b.precedingNode,delete b.enclosingNode,delete b.followingNode}var Gu=e=>!/[\S\n\u2028\u2029]/u.test(e);function a2(e,t,n,r){let{comment:i,precedingNode:o}=n[r],{locStart:u,locEnd:c}=t,d=u(i);if(o)for(let h=r-1;h>=0;h--){let{comment:g,precedingNode:v}=n[h];if(v!==o||!Gu(e.slice(c(g),d)))break;d=u(g)}return mn(e,d,{backwards:!0})}function i2(e,t,n,r){let{comment:i,followingNode:o}=n[r],{locStart:u,locEnd:c}=t,d=c(i);if(o)for(let h=r+1;h<n.length;h++){let{comment:g,followingNode:v}=n[h];if(v!==o||!Gu(e.slice(d,u(g))))break;d=c(g)}return mn(e,d)}function Yu(e,t){var n,r;let i=e.length;if(i===0)return;let{precedingNode:o,followingNode:u}=e[0],c=t.locStart(u),d;for(d=i;d>0;--d){let{comment:h,precedingNode:g,followingNode:v}=e[d-1];Fs.strictEqual(g,o),Fs.strictEqual(v,u);let D=t.originalText.slice(t.locEnd(h),c);if(((r=(n=t.printer).isGap)==null?void 0:r.call(n,D,t))??/^[\s(]*$/u.test(D))c=t.locStart(h);else break}for(let[h,{comment:g}]of e.entries())h<d?ur(o,g):lr(u,g);for(let h of[o,u])h.comments&&h.comments.length>1&&h.comments.sort((g,v)=>t.locStart(g)-t.locStart(v));e.length=0}function Ns(e,t,n){let r=n.locStart(t)-1;for(let i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function s2(e,t){let n=t-1;n=fn(e,n,{backwards:!0}),n=Mn(e,n,{backwards:!0}),n=fn(e,n,{backwards:!0});let r=Mn(e,n,{backwards:!0});return n!==r}var js=s2;function Ku(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function o2(e,t){var n;let r=e.node,i=[Ku(e,t)],{printer:o,originalText:u,locStart:c,locEnd:d}=t;if((n=o.isBlockComment)!=null&&n.call(o,r)){let g=mn(u,d(r))?mn(u,c(r),{backwards:!0})?On:Bu:" ";i.push(g)}else i.push(On);let h=Mn(u,fn(u,d(r)));return h!==!1&&mn(u,h)&&i.push(On),i}function l2(e,t,n){var r;let i=e.node,o=Ku(e,t),{printer:u,originalText:c,locStart:d}=t,h=(r=u.isBlockComment)==null?void 0:r.call(u,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||mn(c,d(i),{backwards:!0})){let g=js(c,d(i));return{doc:ys([On,g?On:"",o]),isBlock:h,hasLineSuffix:!0}}return!h||n!=null&&n.hasLineSuffix?{doc:[ys([" ",o]),Xa],isBlock:h,hasLineSuffix:!0}:{doc:[" ",o],isBlock:h,hasLineSuffix:!1}}function u2(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(c=>!r.has(c)).length===0)return{leading:"",trailing:""};let i=[],o=[],u;return e.each(()=>{let c=e.node;if(r!=null&&r.has(c))return;let{leading:d,trailing:h}=c;d?i.push(o2(e,t)):h&&(u=l2(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function c2(e,t,n){let{leading:r,trailing:i}=u2(e,n);return!r&&!i?t:Mu(t,o=>[r,o,i])}function p2(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let r of t){if(!r.printed&&!n.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var Ju=class extends Error{constructor(){super(...arguments);Sr(this,"name","ConfigError")}},Xu=class extends Error{constructor(){super(...arguments);Sr(this,"name","UndefinedParserError")}},d2={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
560
+ `||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Mn=Jv;function Xv(e,t,n={}){let r=fn(e,n.backwards?t-1:t,n),i=Mn(e,r,n);return r!==i}var mn=Xv;function Qv(e){return Array.isArray(e)&&e.length>0}var Zv=Qv,zu=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),e2=e=>Object.keys(e).filter(t=>!zu.has(t));function t2(e){return e?t=>e(t,zu):e2}var ti=t2;function n2(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function Fs(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=n2(e)}function ur(e,t){t.leading=!0,t.trailing=!1,Fs(e,t)}function Rn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Fs(e,t)}function cr(e,t){t.leading=!1,t.trailing=!0,Fs(e,t)}var As=new WeakMap;function $s(e,t){if(As.has(e))return As.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:o,locEnd:u}=t;if(!r)return[];let c=((n==null?void 0:n(e,t))??[...Hu(e,{getVisitorKeys:ti(i)})]).flatMap(d=>r(d)?[d]:$s(d,t));return c.sort((d,h)=>o(d)-o(h)||u(d)-u(h)),As.set(e,c),c}function Vu(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),d=$s(e,n),h,g,v=0,D=d.length;for(;v<D;){let b=v+D>>1,k=d[b],x=i(k),C=o(k);if(x<=u&&c<=C)return Vu(k,t,n,k);if(C<=u){h=k,v=b+1;continue}if(c<=x){g=k,D=b;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:b}=r,k=Bs(b,t,n);h&&Bs(b,h,n)!==k&&(h=null),g&&Bs(b,g,n)!==k&&(g=null)}return{enclosingNode:r,precedingNode:h,followingNode:g}}var Ts=()=>!1;function r2(e,t){let{comments:n}=e;if(delete e.comments,!Zv(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:c={}},originalText:d}=t,{ownLine:h=Ts,endOfLine:g=Ts,remaining:v=Ts}=c,D=n.map((b,k)=>({...Vu(e,b,t),comment:b,text:d,options:t,ast:e,isLastComment:n.length-1===k}));for(let[b,k]of D.entries()){let{comment:x,precedingNode:C,enclosingNode:T,followingNode:F,text:S,options:A,ast:_,isLastComment:$}=k;if(A.parser==="json"||A.parser==="json5"||A.parser==="jsonc"||A.parser==="__js_expression"||A.parser==="__ts_expression"||A.parser==="__vue_expression"||A.parser==="__vue_ts_expression"){if(i(x)-i(_)<=0){ur(_,x);continue}if(o(x)-o(_)>=0){cr(_,x);continue}}let P;if(u?P=[k]:(x.enclosingNode=T,x.precedingNode=C,x.followingNode=F,P=[x,S,A,_,$]),a2(S,A,D,b))x.placement="ownLine",h(...P)||(F?ur(F,x):C?cr(C,x):Rn(T||_,x));else if(i2(S,A,D,b))x.placement="endOfLine",g(...P)||(C?cr(C,x):F?ur(F,x):Rn(T||_,x));else if(x.placement="remaining",!v(...P))if(C&&F){let I=r.length;I>0&&r[I-1].followingNode!==F&&Yu(r,A),r.push(k)}else C?cr(C,x):F?ur(F,x):Rn(T||_,x)}if(Yu(r,t),!u)for(let b of n)delete b.precedingNode,delete b.enclosingNode,delete b.followingNode}var Gu=e=>!/[\S\n\u2028\u2029]/u.test(e);function a2(e,t,n,r){let{comment:i,precedingNode:o}=n[r],{locStart:u,locEnd:c}=t,d=u(i);if(o)for(let h=r-1;h>=0;h--){let{comment:g,precedingNode:v}=n[h];if(v!==o||!Gu(e.slice(c(g),d)))break;d=u(g)}return mn(e,d,{backwards:!0})}function i2(e,t,n,r){let{comment:i,followingNode:o}=n[r],{locStart:u,locEnd:c}=t,d=c(i);if(o)for(let h=r+1;h<n.length;h++){let{comment:g,followingNode:v}=n[h];if(v!==o||!Gu(e.slice(d,u(g))))break;d=c(g)}return mn(e,d)}function Yu(e,t){var n,r;let i=e.length;if(i===0)return;let{precedingNode:o,followingNode:u}=e[0],c=t.locStart(u),d;for(d=i;d>0;--d){let{comment:h,precedingNode:g,followingNode:v}=e[d-1];Es.strictEqual(g,o),Es.strictEqual(v,u);let D=t.originalText.slice(t.locEnd(h),c);if(((r=(n=t.printer).isGap)==null?void 0:r.call(n,D,t))??/^[\s(]*$/u.test(D))c=t.locStart(h);else break}for(let[h,{comment:g}]of e.entries())h<d?cr(o,g):ur(u,g);for(let h of[o,u])h.comments&&h.comments.length>1&&h.comments.sort((g,v)=>t.locStart(g)-t.locStart(v));e.length=0}function Bs(e,t,n){let r=n.locStart(t)-1;for(let i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function s2(e,t){let n=t-1;n=fn(e,n,{backwards:!0}),n=Mn(e,n,{backwards:!0}),n=fn(e,n,{backwards:!0});let r=Mn(e,n,{backwards:!0});return n!==r}var Ns=s2;function Ku(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function o2(e,t){var n;let r=e.node,i=[Ku(e,t)],{printer:o,originalText:u,locStart:c,locEnd:d}=t;if((n=o.isBlockComment)!=null&&n.call(o,r)){let g=mn(u,d(r))?mn(u,c(r),{backwards:!0})?On:Bu:" ";i.push(g)}else i.push(On);let h=Mn(u,fn(u,d(r)));return h!==!1&&mn(u,h)&&i.push(On),i}function l2(e,t,n){var r;let i=e.node,o=Ku(e,t),{printer:u,originalText:c,locStart:d}=t,h=(r=u.isBlockComment)==null?void 0:r.call(u,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||mn(c,d(i),{backwards:!0})){let g=Ns(c,d(i));return{doc:Ds([On,g?On:"",o]),isBlock:h,hasLineSuffix:!0}}return!h||n!=null&&n.hasLineSuffix?{doc:[Ds([" ",o]),Ja],isBlock:h,hasLineSuffix:!0}:{doc:[" ",o],isBlock:h,hasLineSuffix:!1}}function u2(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(c=>!r.has(c)).length===0)return{leading:"",trailing:""};let i=[],o=[],u;return e.each(()=>{let c=e.node;if(r!=null&&r.has(c))return;let{leading:d,trailing:h}=c;d?i.push(o2(e,t)):h&&(u=l2(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function c2(e,t,n){let{leading:r,trailing:i}=u2(e,n);return!r&&!i?t:Mu(t,o=>[r,o,i])}function p2(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let r of t){if(!r.printed&&!n.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}var Ju=class extends Error{constructor(){super(...arguments);Er(this,"name","ConfigError")}},Xu=class extends Error{constructor(){super(...arguments);Er(this,"name","UndefinedParserError")}},d2={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
561
561
  (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
562
562
  The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
563
563
  The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
564
- in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Qu({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of f2(Object.assign({},...e.map(({options:o})=>o),d2)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...h2(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[i.name])!==void 0}).map(o=>[o.name,o.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*h2(e,t,n){let r=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let o of i.parsers)if(!r.has(o)){r.add(o);let u=n.find(d=>d.parsers&&Object.prototype.hasOwnProperty.call(d.parsers,o)),c=i.name;u!=null&&u.name&&(c+=` (plugin: ${u.name})`),yield{value:o,description:c}}}}function f2(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Ke(!1,i.default,-1).value),t.push(i)}return t}var m2=e=>String(e).split(/[/\\]/u).pop();function Zu(e,t){if(!t)return;let n=m2(t).toLowerCase();return e.find(({filenames:r})=>r==null?void 0:r.some(i=>i.toLowerCase()===n))??e.find(({extensions:r})=>r==null?void 0:r.some(i=>n.endsWith(i)))}function g2(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n==null?void 0:n.includes(t))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${t}`))}function v2(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=g2(n,t.language)??Zu(n,t.physicalFile)??Zu(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var D2=v2,cr={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>cr.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${cr.key(n)}: ${cr.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>cr.value({[e]:t})},ec=Va(ms()),y2=(e,t,{descriptor:n})=>{let r=[`${ec.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${ec.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},pr=Va(ms()),tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),ri=Symbol.for("vnopts.VALUE_UNCHANGED"),nc=" ".repeat(2),b2=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(rc(e,t,r,n.descriptor)),i&&o.push([rc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>ac(u,n.loggerPrintWidth))).join(`
565
- `)),ic(o,n.loggerPrintWidth)};function rc(e,t,n,r){return[`Invalid ${pr.default.red(r.key(e))} value.`,`Expected ${pr.default.blue(n)},`,`but received ${t===tc?pr.default.gray("nothing"):pr.default.red(r.value(t))}.`].join(" ")}function ac({text:e,list:t},n){let r=[];return e&&r.push(`- ${pr.default.blue(e)}`),t&&r.push([`- ${pr.default.blue(t.title)}:`].concat(t.values.map(i=>ac(i,n-nc.length).replace(/^|\n/g,`$&${nc}`))).join(`
564
+ in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function Qu({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of f2(Object.assign({},...e.map(({options:o})=>o),d2)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...h2(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(o=>{var u;return((u=o.defaultOptions)==null?void 0:u[i.name])!==void 0}).map(o=>[o.name,o.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*h2(e,t,n){let r=new Set(e.map(i=>i.value));for(let i of t)if(i.parsers){for(let o of i.parsers)if(!r.has(o)){r.add(o);let u=n.find(d=>d.parsers&&Object.prototype.hasOwnProperty.call(d.parsers,o)),c=i.name;u!=null&&u.name&&(c+=` (plugin: ${u.name})`),yield{value:o,description:c}}}}function f2(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Ke(!1,i.default,-1).value),t.push(i)}return t}var m2=e=>String(e).split(/[/\\]/u).pop();function Zu(e,t){if(!t)return;let n=m2(t).toLowerCase();return e.find(({filenames:r})=>r==null?void 0:r.some(i=>i.toLowerCase()===n))??e.find(({extensions:r})=>r==null?void 0:r.some(i=>n.endsWith(i)))}function g2(e,t){if(t)return e.find(({name:n})=>n.toLowerCase()===t)??e.find(({aliases:n})=>n==null?void 0:n.includes(t))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${t}`))}function v2(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=g2(n,t.language)??Zu(n,t.physicalFile)??Zu(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var D2=v2,pr={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>pr.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${pr.key(n)}: ${pr.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>pr.value({[e]:t})},ec=za(fs()),y2=(e,t,{descriptor:n})=>{let r=[`${ec.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${ec.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},dr=za(fs()),tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),ni=Symbol.for("vnopts.VALUE_UNCHANGED"),nc=" ".repeat(2),b2=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(rc(e,t,r,n.descriptor)),i&&o.push([rc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>ac(u,n.loggerPrintWidth))).join(`
565
+ `)),ic(o,n.loggerPrintWidth)};function rc(e,t,n,r){return[`Invalid ${dr.default.red(r.key(e))} value.`,`Expected ${dr.default.blue(n)},`,`but received ${t===tc?dr.default.gray("nothing"):dr.default.red(r.value(t))}.`].join(" ")}function ac({text:e,list:t},n){let r=[];return e&&r.push(`- ${dr.default.blue(e)}`),t&&r.push([`- ${dr.default.blue(t.title)}:`].concat(t.values.map(i=>ac(i,n-nc.length).replace(/^|\n/g,`$&${nc}`))).join(`
566
566
  `)),ic(r,n)}function ic(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,o]=e.map(u=>u.split(`
567
- `,1)[0].length);return i>t&&i>o?r:n}var sc=Va(ms()),Ps=[],oc=[];function k2(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o=0;for(;o<r&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(r-=o,i-=o,r===0)return i;let u,c,d,h,g=0,v=0;for(;g<r;)oc[g]=e.charCodeAt(o+g),Ps[g]=++g;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,g=0;g<r;g++)h=u===oc[g]?d:d+1,d=Ps[g],c=Ps[g]=d>c?h>c?c+1:h:h>d?d+1:h;return c}var lc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${sc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>k2(e,c)<3);u&&o.push(`Did you mean ${sc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},w2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function C2(e,t){let n=new e(t),r=Object.create(n);for(let i of w2)i in t&&(r[i]=_2(t[i],n,gn.prototype[i].length));return r}var gn=class{static create(e){return C2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return ri}};function _2(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var x2=class extends gn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},S2=class extends gn{expected(){return"anything"}validate(){return!0}},E2=class extends gn{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(uc))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in o&&n.push(o.remain),r.push(...o.redirect.map(uc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function uc({from:e,to:t}){return{from:[e],to:t}}var F2=class extends gn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function A2(e,t){let n=Object.create(null);for(let r of e){let i=r[t];if(n[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n[i]=r}return n}function $2(e,t){let n=new Map;for(let r of e){let i=r[t];if(n.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n.set(i,r)}return n}function T2(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function B2(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function N2(e){return e===Math.floor(e)}function j2(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function P2(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function cc(e){return e===void 0?{}:e}function pc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return L2((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(pc)}}:{text:t}}function dc(e,t){return e===!0?!0:e===!1?{value:t}:e}function hc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fc(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ls(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>fc(n,t)):[fc(e,t)]}function mc(e,t){let n=Ls(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function L2(e,t){if(!e)throw new Error(t)}var O2=class extends gn{constructor(e){super(e),this._choices=$2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(j2).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},I2=class extends gn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},M2=class extends I2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&N2(e)}},gc=class extends gn{expected(){return"a string"}validate(e){return typeof e=="string"}},R2=cr,q2=lc,H2=b2,U2=y2,W2=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=R2,unknown:o=q2,invalid:u=H2,deprecated:c=U2,missing:d=()=>!1,required:h=()=>!1,preprocess:g=D=>D,postprocess:v=()=>ri}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:A2(e,"name"),normalizeDefaultResult:cc,normalizeExpectedResult:pc,normalizeDeprecatedResult:hc,normalizeForwardResult:Ls,normalizeRedirectResult:mc,normalizeValidateResult:dc},this._unknownHandler=o,this._invalidHandler=P2(u),this._deprecatedHandler=c,this._identifyMissing=(D,b)=>!(D in b)||d(D,b),this._identifyRequired=h,this._preprocess=g,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=T2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),o=this._applyNormalization(i,t);n.push(...o)}};r();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in t)){let u=cc(o.default(this._utils));"value"in u&&n.push({[i]:u.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let o=this._utils.schemas[i],u=t[i],c=o.postprocess(u,this._utils);c!==ri&&(this._applyValidation(c,i,o),t[i]=c)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of r){let u=this._utils.schemas[o],c=u.preprocess(e[o],this._utils);this._applyValidation(c,o,u);let d=({from:v,to:D})=>{n.push(typeof D=="string"?{[D]:v}:{[D.key]:D.value})},h=({value:v,redirectTo:D})=>{let b=hc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,D,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof D=="string"?{key:D,value:k}:D;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};Ls(u.forward(c,this._utils),c).forEach(d);let g=mc(u.redirect(c,this._utils),c);if(g.redirect.forEach(d),"remain"in g){let v=g.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:D}of g.redirect)h({value:v,redirectTo:D})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,d)=>{n.push({[c]:d})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tc,this._utils)}_partitionOptionKeys(e){let[t,n]=B2(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=dc(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let u=i[o];o in this._utils.schemas?r(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ri){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let o=t.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of r){let o=t.override[i];this._applyUnknownHandler(i,o,e,(u,c)=>{let d=this._utils.schemas[u];this._applyValidation(c,u,d),e[u]=c})}}}}},Os;function z2(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:o,descriptor:u}={}){if(r){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=cr;let c=i?Array.isArray(i)?(D,b)=>i.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,k)=>{let{_:x,...C}=k.schemas;return lc(D,b,{...k,schemas:C})},d=V2(t,{isCLI:r,FlagSchema:o}),h=new W2(d,{logger:n,unknown:c,descriptor:u}),g=n!==!1;g&&Os&&(h._hasDeprecationWarned=Os);let v=h.normalize(e);return g&&(Os=h._hasDeprecationWarned),v}function V2(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(S2.create({name:"_"}));for(let i of e)r.push(G2(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(x2.create({name:i.alias,sourceName:i.name}));return r}function G2(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=M2,t&&(o.preprocess=Number);break;case"string":u=gc;break;case"choice":u=O2,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=F2;break;case"flag":u=r,o.flags=n.flatMap(d=>[d.alias,d.description&&d.name,d.oppositeDescription&&`no-${d.name}`].filter(Boolean));break;case"path":u=gc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,g)=>e.exception(d)||h.validate(d,g):o.validate=(d,h,g)=>d===void 0||h.validate(d,g),e.redirect&&(c.redirect=d=>d?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(c.deprecated=!0),t&&!e.array){let d=o.preprocess||(h=>h);o.preprocess=(h,g,v)=>g.preprocess(d(Array.isArray(h)?Ke(!1,h,-1):h),v)}return e.array?E2.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Y2=z2,K2=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},vc=K2;function Dc(e,t){if(!t)throw new Error("parserName is required.");let n=vc(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function J2(e,t){if(!t)throw new Error("astFormat is required.");let n=vc(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function yc({plugins:e,parser:t}){let n=Dc(e,t);return bc(n,t)}function bc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function X2(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var kc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Q2(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=D2(r,{physicalFile:r.filepath}),!r.parser)throw new Xu(`No parser could be inferred for file "${r.filepath}".`)}else throw new Xu("No parser and no file path given, couldn't infer a parser.");let i=Qu({plugins:e.plugins,showDeprecated:!0}).options,o={...kc,...Object.fromEntries(i.filter(D=>D.default!==void 0).map(D=>[D.name,D.default]))},u=Dc(r.plugins,r.parser),c=await bc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let d=(n=u.printers)!=null&&n[c.astFormat]?u:J2(r.plugins,c.astFormat),h=await X2(d,c.astFormat);r.printer=h;let g=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,D])=>D!==void 0)):{},v={...o,...g};for(let[D,b]of Object.entries(v))(r[D]===null||r[D]===void 0)&&(r[D]=b);return r.parser==="json"&&(r.trailingComma="none"),Y2(r,i,{passThrough:Object.keys(kc),...t})}var dr=Q2,Z2=Va(Jg());async function eD(e,t){let n=await yc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){tD(o,e)}return{text:r,ast:i}}function tD(e,t){let{loc:n}=e;if(n){let r=(0,Z2.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
568
- `+r,e.codeFrame=r,e}throw e}var Xr=eD;async function nD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:d}}=n;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let h=ni(u.getVisitorKeys??d),g=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of g)try{e.stack=C;let T=await k(D,t,e,n);T&&i.set(x,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=v;function D(k,x){return rD(k,x,n,r)}function b(){let{node:k}=e;if(k===null||typeof k!="object"||c(e))return;for(let C of h(k))Array.isArray(k[C])?e.each(b,C):e.call(b,C);let x=u(e,n);if(x){if(typeof x=="function"){g.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function rD(e,t,n,r){let i=await dr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await Xr(e,i),u=await r(o,i);return Iu(u)}function aD(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,d=i(c),h=o(c);for(let g of r)i(g)>=d&&o(g)<=h&&u.add(g);return n.slice(d,h)}var iD=aD;async function ai(e,t){({ast:e}=await Cc(e,t));let n=new Map,r=new zv(e),i=new Map;await nD(r,u,t,ai,i);let o=await wc(r,t,u,void 0,i);return p2(t),o;function u(d,h){return d===void 0||d===r?c(h):Array.isArray(d)?r.call(()=>c(h),...d):r.call(()=>c(h),d)}function c(d){let h=r.node;if(h==null)return"";let g=h&&typeof h=="object"&&d===void 0;if(g&&n.has(h))return n.get(h);let v=wc(r,t,u,d,i);return g&&n.set(h,v),v}}function wc(e,t,n,r,i){var o;let{node:u}=e,{printer:c}=t,d;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?d=iD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=Mu(d,h=>[ks,h,ks])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=c2(e,d,t)),d}async function Cc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,r2(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function sD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=ni(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of Yv(e,{getVisitorKeys:o,filter:u}))c=d;return c}var oD=sD;function lD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=ni(r),o=n.ignoredProperties??new Set;return u(e);function u(c,d){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(D=>u(D,d)).filter(Boolean);let h={},g=new Set(i(c));for(let D in c)!Object.prototype.hasOwnProperty.call(c,D)||o.has(D)||(g.has(D)?h[D]=u(c[D],c):h[D]=c[D]);let v=n(c,h,d);if(v!==null)return v??h}}var uD=lD,cD=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},pD=cD,dD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function hD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>xc.has(i.type)&&r.has(i))}function _c(e){let t=pD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function fD(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};let u=n(e.node);for(let d of _c(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of _c(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function Is(e,t,n,r,i=[],o){let{locStart:u,locEnd:c}=n,d=u(e),h=c(e);if(!(t>h||t<d||o==="rangeEnd"&&t===d||o==="rangeStart"&&t===h)){for(let g of Ts(e,n)){let v=Is(g,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function mD(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var xc=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),gD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Sc(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return mD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return xc.has(t.type);case"graphql":return gD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function vD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Fs.ok(i>r);let c=e.slice(r,i).search(/\S/u),d=c===-1;if(!d)for(r+=c;i>r&&!/\S/u.test(e[i-1]);--i);let h=Is(n,r,t,(b,k)=>Sc(t,b,k),[],"rangeStart"),g=d?h:Is(n,i,t,b=>Sc(t,b),[],"rangeEnd");if(!h||!g)return{rangeStart:0,rangeEnd:0};let v,D;if(dD(t)){let b=hD(h,g);v=b,D=b}else({startNode:v,endNode:D}=fD(h,g,t));return{rangeStart:Math.min(o(v),o(D)),rangeEnd:Math.max(u(v),u(D))}}var Ec="\uFEFF",Fc=Symbol("cursor");async function Ac(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Xr(e,t);t.cursorOffset>=0&&(t.cursorNode=oD(r,t));let o=await ai(r,t);n>0&&(o=Pu([On,o],n,t.tabWidth));let u=ei(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+vs(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let d,h,g,v,D;if(t.cursorNode&&u.cursorNodeText?(d=t.locStart(t.cursorNode),h=i.slice(d,t.locEnd(t.cursorNode)),g=t.cursorOffset-d,v=u.cursorNodeStart,D=u.cursorNodeText):(d=0,h=i,g=t.cursorOffset,v=0,D=u.formatted),h===D)return{formatted:u.formatted,cursorOffset:v+g,comments:c};let b=h.split("");b.splice(g,0,Fc);let k=D.split(""),x=rv(b,k),C=v;for(let T of x)if(T.removed){if(T.value.includes(Fc))break}else C+=T.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function DD(e,t){let{ast:n,text:r}=await Xr(e,t),{rangeStart:i,rangeEnd:o}=vD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
569
- `,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=Ss(d,t.tabWidth),g=await Ac(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},h),v=g.formatted.trimEnd(),{cursorOffset:D}=t;D>o?D+=v.length-u.length:g.cursorOffset>=0&&(D=g.cursorOffset+i);let b=r.slice(0,i)+v+r.slice(o);if(t.endOfLine!=="lf"){let k=vs(t.endOfLine);D>=0&&k===`\r
567
+ `,1)[0].length);return i>t&&i>o?r:n}var sc=za(fs()),js=[],oc=[];function k2(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o=0;for(;o<r&&e.charCodeAt(o)===t.charCodeAt(o);)o++;if(r-=o,i-=o,r===0)return i;let u,c,d,h,g=0,v=0;for(;g<r;)oc[g]=e.charCodeAt(o+g),js[g]=++g;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,g=0;g<r;g++)h=u===oc[g]?d:d+1,d=js[g],c=js[g]=d>c?h>c?c+1:h:h>d?d+1:h;return c}var lc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${sc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>k2(e,c)<3);u&&o.push(`Did you mean ${sc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},w2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function C2(e,t){let n=new e(t),r=Object.create(n);for(let i of w2)i in t&&(r[i]=_2(t[i],n,gn.prototype[i].length));return r}var gn=class{static create(e){return C2(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return ni}};function _2(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var x2=class extends gn{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},S2=class extends gn{expected(){return"anything"}validate(){return!0}},E2=class extends gn{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let i=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let i=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(e,t){let n=[];for(let r of e){let i=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...i.map(uc))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in o&&n.push(o.remain),r.push(...o.redirect.map(uc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function uc({from:e,to:t}){return{from:[e],to:t}}var F2=class extends gn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function A2(e,t){let n=Object.create(null);for(let r of e){let i=r[t];if(n[i])throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n[i]=r}return n}function $2(e,t){let n=new Map;for(let r of e){let i=r[t];if(n.has(i))throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);n.set(i,r)}return n}function T2(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function B2(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function N2(e){return e===Math.floor(e)}function j2(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(e)-Number(t):e.localeCompare(t)}function P2(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function cc(e){return e===void 0?{}:e}function pc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return L2((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(pc)}}:{text:t}}function dc(e,t){return e===!0?!0:e===!1?{value:t}:e}function hc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function fc(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Ps(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>fc(n,t)):[fc(e,t)]}function mc(e,t){let n=Ps(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}function L2(e,t){if(!e)throw new Error(t)}var O2=class extends gn{constructor(e){super(e),this._choices=$2(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(j2).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},I2=class extends gn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},M2=class extends I2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&N2(e)}},gc=class extends gn{expected(){return"a string"}validate(e){return typeof e=="string"}},R2=pr,q2=lc,H2=b2,U2=y2,W2=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=R2,unknown:o=q2,invalid:u=H2,deprecated:c=U2,missing:d=()=>!1,required:h=()=>!1,preprocess:g=D=>D,postprocess:v=()=>ni}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:A2(e,"name"),normalizeDefaultResult:cc,normalizeExpectedResult:pc,normalizeDeprecatedResult:hc,normalizeForwardResult:Ps,normalizeRedirectResult:mc,normalizeValidateResult:dc},this._unknownHandler=o,this._invalidHandler=P2(u),this._deprecatedHandler=c,this._identifyMissing=(D,b)=>!(D in b)||d(D,b),this._identifyRequired=h,this._preprocess=g,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=T2()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let i=n.shift(),o=this._applyNormalization(i,t);n.push(...o)}};r();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in t)){let u=cc(o.default(this._utils));"value"in u&&n.push({[i]:u.value})}}r();for(let i of Object.keys(this._utils.schemas)){if(!(i in t))continue;let o=this._utils.schemas[i],u=t[i],c=o.postprocess(u,this._utils);c!==ni&&(this._applyValidation(c,i,o),t[i]=c)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let o of r){let u=this._utils.schemas[o],c=u.preprocess(e[o],this._utils);this._applyValidation(c,o,u);let d=({from:v,to:D})=>{n.push(typeof D=="string"?{[D]:v}:{[D.key]:D.value})},h=({value:v,redirectTo:D})=>{let b=hc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,D,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof D=="string"?{key:D,value:k}:D;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};Ps(u.forward(c,this._utils),c).forEach(d);let g=mc(u.redirect(c,this._utils),c);if(g.redirect.forEach(d),"remain"in g){let v=g.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:D}of g.redirect)h({value:v,redirectTo:D})}for(let o of i){let u=e[o];this._applyUnknownHandler(o,u,t,(c,d)=>{n.push({[c]:d})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tc,this._utils)}_partitionOptionKeys(e){let[t,n]=B2(Object.keys(e).filter(r=>!this._identifyMissing(r,e)),r=>r in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=dc(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let u=i[o];o in this._utils.schemas?r(o,u):n[o]=u}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ni){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let i of n){let o=t.override[i];this._applyValidation(o,i,this._utils.schemas[i]),e[i]=o}for(let i of r){let o=t.override[i];this._applyUnknownHandler(i,o,e,(u,c)=>{let d=this._utils.schemas[u];this._applyValidation(c,u,d),e[u]=c})}}}}},Ls;function z2(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:o,descriptor:u}={}){if(r){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=pr;let c=i?Array.isArray(i)?(D,b)=>i.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,k)=>{let{_:x,...C}=k.schemas;return lc(D,b,{...k,schemas:C})},d=V2(t,{isCLI:r,FlagSchema:o}),h=new W2(d,{logger:n,unknown:c,descriptor:u}),g=n!==!1;g&&Ls&&(h._hasDeprecationWarned=Ls);let v=h.normalize(e);return g&&(Ls=h._hasDeprecationWarned),v}function V2(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(S2.create({name:"_"}));for(let i of e)r.push(G2(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(x2.create({name:i.alias,sourceName:i.name}));return r}function G2(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=M2,t&&(o.preprocess=Number);break;case"string":u=gc;break;case"choice":u=O2,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=F2;break;case"flag":u=r,o.flags=n.flatMap(d=>[d.alias,d.description&&d.name,d.oppositeDescription&&`no-${d.name}`].filter(Boolean));break;case"path":u=gc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,g)=>e.exception(d)||h.validate(d,g):o.validate=(d,h,g)=>d===void 0||h.validate(d,g),e.redirect&&(c.redirect=d=>d?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(c.deprecated=!0),t&&!e.array){let d=o.preprocess||(h=>h);o.preprocess=(h,g,v)=>g.preprocess(d(Array.isArray(h)?Ke(!1,h,-1):h),v)}return e.array?E2.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Y2=z2,K2=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return i}}},vc=K2;function Dc(e,t){if(!t)throw new Error("parserName is required.");let n=vc(!1,e,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function J2(e,t){if(!t)throw new Error("astFormat is required.");let n=vc(!1,e,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Ju(r)}function yc({plugins:e,parser:t}){let n=Dc(e,t);return bc(n,t)}function bc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function X2(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var kc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function Q2(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=D2(r,{physicalFile:r.filepath}),!r.parser)throw new Xu(`No parser could be inferred for file "${r.filepath}".`)}else throw new Xu("No parser and no file path given, couldn't infer a parser.");let i=Qu({plugins:e.plugins,showDeprecated:!0}).options,o={...kc,...Object.fromEntries(i.filter(D=>D.default!==void 0).map(D=>[D.name,D.default]))},u=Dc(r.plugins,r.parser),c=await bc(u,r.parser);r.astFormat=c.astFormat,r.locEnd=c.locEnd,r.locStart=c.locStart;let d=(n=u.printers)!=null&&n[c.astFormat]?u:J2(r.plugins,c.astFormat),h=await X2(d,c.astFormat);r.printer=h;let g=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,D])=>D!==void 0)):{},v={...o,...g};for(let[D,b]of Object.entries(v))(r[D]===null||r[D]===void 0)&&(r[D]=b);return r.parser==="json"&&(r.trailingComma="none"),Y2(r,i,{passThrough:Object.keys(kc),...t})}var hr=Q2,Z2=za(Jg());async function eD(e,t){let n=await yc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){tD(o,e)}return{text:r,ast:i}}function tD(e,t){let{loc:n}=e;if(n){let r=(0,Z2.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
568
+ `+r,e.codeFrame=r,e}throw e}var Xr=eD;async function nD(e,t,n,r,i){let{embeddedLanguageFormatting:o,printer:{embed:u,hasPrettierIgnore:c=()=>!1,getVisitorKeys:d}}=n;if(!u||o!=="auto")return;if(u.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let h=ti(u.getVisitorKeys??d),g=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of g)try{e.stack=C;let T=await k(D,t,e,n);T&&i.set(x,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=v;function D(k,x){return rD(k,x,n,r)}function b(){let{node:k}=e;if(k===null||typeof k!="object"||c(e))return;for(let C of h(k))Array.isArray(k[C])?e.each(b,C):e.call(b,C);let x=u(e,n);if(x){if(typeof x=="function"){g.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function rD(e,t,n,r){let i=await hr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await Xr(e,i),u=await r(o,i);return Iu(u)}function aD(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o,[Symbol.for("printedComments")]:u}=t,{node:c}=e,d=i(c),h=o(c);for(let g of r)i(g)>=d&&o(g)<=h&&u.add(g);return n.slice(d,h)}var iD=aD;async function ri(e,t){({ast:e}=await Cc(e,t));let n=new Map,r=new zv(e),i=new Map;await nD(r,u,t,ri,i);let o=await wc(r,t,u,void 0,i);return p2(t),o;function u(d,h){return d===void 0||d===r?c(h):Array.isArray(d)?r.call(()=>c(h),...d):r.call(()=>c(h),d)}function c(d){let h=r.node;if(h==null)return"";let g=h&&typeof h=="object"&&d===void 0;if(g&&n.has(h))return n.get(h);let v=wc(r,t,u,d,i);return g&&n.set(h,v),v}}function wc(e,t,n,r,i){var o;let{node:u}=e,{printer:c}=t,d;return(o=c.hasPrettierIgnore)!=null&&o.call(c,e)?d=iD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=Mu(d,h=>[bs,h,bs])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=c2(e,d,t)),d}async function Cc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,r2(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function sD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=ti(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of Yv(e,{getVisitorKeys:o,filter:u}))c=d;return c}var oD=sD;function lD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=ti(r),o=n.ignoredProperties??new Set;return u(e);function u(c,d){if(!(c!==null&&typeof c=="object"))return c;if(Array.isArray(c))return c.map(D=>u(D,d)).filter(Boolean);let h={},g=new Set(i(c));for(let D in c)!Object.prototype.hasOwnProperty.call(c,D)||o.has(D)||(g.has(D)?h[D]=u(c[D],c):h[D]=c[D]);let v=n(c,h,d);if(v!==null)return v??h}}var uD=lD,cD=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let r=t.length-1;r>=0;r--){let i=t[r];if(n(i,r,t))return r}return-1}},pD=cD,dD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function hD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>xc.has(i.type)&&r.has(i))}function _c(e){let t=pD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function fD(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};let u=n(e.node);for(let d of _c(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of _c(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function Os(e,t,n,r,i=[],o){let{locStart:u,locEnd:c}=n,d=u(e),h=c(e);if(!(t>h||t<d||o==="rangeEnd"&&t===d||o==="rangeStart"&&t===h)){for(let g of $s(e,n)){let v=Os(g,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function mD(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var xc=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),gD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Sc(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return mD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return xc.has(t.type);case"graphql":return gD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function vD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Es.ok(i>r);let c=e.slice(r,i).search(/\S/u),d=c===-1;if(!d)for(r+=c;i>r&&!/\S/u.test(e[i-1]);--i);let h=Os(n,r,t,(b,k)=>Sc(t,b,k),[],"rangeStart"),g=d?h:Os(n,i,t,b=>Sc(t,b),[],"rangeEnd");if(!h||!g)return{rangeStart:0,rangeEnd:0};let v,D;if(dD(t)){let b=hD(h,g);v=b,D=b}else({startNode:v,endNode:D}=fD(h,g,t));return{rangeStart:Math.min(o(v),o(D)),rangeEnd:Math.max(u(v),u(D))}}var Ec="\uFEFF",Fc=Symbol("cursor");async function Ac(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Xr(e,t);t.cursorOffset>=0&&(t.cursorNode=oD(r,t));let o=await ri(r,t);n>0&&(o=Pu([On,o],n,t.tabWidth));let u=Za(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+gs(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let d,h,g,v,D;if(t.cursorNode&&u.cursorNodeText?(d=t.locStart(t.cursorNode),h=i.slice(d,t.locEnd(t.cursorNode)),g=t.cursorOffset-d,v=u.cursorNodeStart,D=u.cursorNodeText):(d=0,h=i,g=t.cursorOffset,v=0,D=u.formatted),h===D)return{formatted:u.formatted,cursorOffset:v+g,comments:c};let b=h.split("");b.splice(g,0,Fc);let k=D.split(""),x=rv(b,k),C=v;for(let T of x)if(T.removed){if(T.value.includes(Fc))break}else C+=T.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function DD(e,t){let{ast:n,text:r}=await Xr(e,t),{rangeStart:i,rangeEnd:o}=vD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
569
+ `,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=xs(d,t.tabWidth),g=await Ac(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},h),v=g.formatted.trimEnd(),{cursorOffset:D}=t;D>o?D+=v.length-u.length:g.cursorOffset>=0&&(D=g.cursorOffset+i);let b=r.slice(0,i)+v+r.slice(o);if(t.endOfLine!=="lf"){let k=gs(t.endOfLine);D>=0&&k===`\r
570
570
  `&&(D+=Su(b.slice(0,D),`
571
- `)),b=Ga(!1,b,`
572
- `,k)}return{formatted:b,cursorOffset:D,comments:g.comments}}function Ms(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function $c(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Ms(e,n,-1),r=Ms(e,r,0),i=Ms(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function Tc(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=$c(e,t),u=e.charAt(0)===Ec;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=av(e)),e.includes("\r")){let c=d=>Su(e.slice(0,Math.max(d,0)),`\r
573
- `);n-=c(n),r-=c(r),i-=c(i),e=iv(e)}return{hasBOM:u,text:e,options:$c(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function Bc(e,t){let n=await yc(t);return!n.hasPragma||n.hasPragma(e)}async function Nc(e,t){let{hasBOM:n,text:r,options:i}=Tc(e,await dr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await Bc(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await DD(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Bc(r,i)&&(r=i.printer.insertPragma(r)),o=await Ac(r,i)),n&&(o.formatted=Ec+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function yD(e,t,n){let{text:r,options:i}=Tc(e,await dr(t)),o=await Xr(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Cc(o.ast,i)),n.massage&&(o.ast=uD(o.ast,i))),o}async function bD(e,t){t=await dr(t);let n=await ai(e,t);return ei(n,t)}async function kD(e,t){let n=Cv(e),{formatted:r}=await Nc(n,{...t,parser:"__js_expression"});return r}async function wD(e,t){t=await dr(t);let{ast:n}=await Xr(e,t);return ai(n,t)}async function CD(e,t){return ei(e,await dr(t))}var jc={};za(jc,{builders:()=>_D,printer:()=>xD,utils:()=>SD});var _D={join:ju,line:Bu,softline:kv,hardline:On,literalline:Nu,group:Au,conditionalGroup:gv,fill:$u,lineSuffix:ys,lineSuffixBoundary:yv,cursor:ks,breakParent:Xa,ifBreak:vv,trim:bv,indent:Ja,indentIfBreak:Dv,align:or,addAlignmentToDoc:Pu,markAsRoot:fv,dedentToRoot:hv,dedent:mv,hardlineWithoutBreakParent:bs,literallineWithoutBreakParent:Tu,label:wv,concat:e=>e},xD={printDocToString:ei},SD={willBreak:Bv,traverseDoc:Ds,findInDoc:Cs,mapDoc:Qa,removeLines:Pv,stripTrailingHardline:Iu,replaceEndOfLine:Iv,canBreak:Rv},ED="3.3.3",Pc={};za(Pc,{addDanglingComment:()=>Rn,addLeadingComment:()=>lr,addTrailingComment:()=>ur,getAlignmentSize:()=>Ss,getIndentSize:()=>ND,getMaxContinuousCount:()=>LD,getNextNonSpaceNonCommentCharacter:()=>ID,getNextNonSpaceNonCommentCharacterIndex:()=>VD,getStringWidth:()=>ws,hasNewline:()=>mn,hasNewlineInRange:()=>RD,hasSpaces:()=>HD,isNextLineEmpty:()=>JD,isNextLineEmptyAfterIndex:()=>Us,isPreviousLineEmpty:()=>YD,makeString:()=>WD,skip:()=>Jr,skipEverythingButNewLine:()=>Wu,skipInlineComment:()=>Rs,skipNewline:()=>Mn,skipSpaces:()=>fn,skipToLineEnd:()=>Uu,skipTrailingComment:()=>qs,skipWhitespace:()=>Kv});function FD(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Rs=FD;function AD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Wu(e,t):t}var qs=AD;function $D(e,t){let n=null,r=t;for(;r!==n;)n=r,r=fn(e,r),r=Rs(e,r),r=qs(e,r),r=Mn(e,r);return r}var Hs=$D;function TD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Uu(e,r),r=Rs(e,r),r=fn(e,r);return r=qs(e,r),r=Mn(e,r),r!==!1&&mn(e,r)}var Us=TD;function BD(e,t){let n=e.lastIndexOf(`
574
- `);return n===-1?0:Ss(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var ND=BD;function jD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PD(e,t){let n=e.match(new RegExp(`(${jD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var LD=PD;function OD(e,t){let n=Hs(e,t);return n===!1?"":e.charAt(n)}var ID=OD;function MD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
575
- `)return!0;return!1}var RD=MD;function qD(e,t,n={}){return fn(e,n.backwards?t-1:t,n)!==t}var HD=qD;function UD(e,t,n){let r=t==='"'?"'":'"',i=Ga(!1,e,/\\(.)|(["'])/gsu,(o,u,c)=>u===r?u:c===t?"\\"+c:c||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+i+t}var WD=UD;function zD(e,t,n){return Hs(e,n(t))}function VD(e,t){return arguments.length===2||typeof t=="number"?Hs(e,t):zD(...arguments)}function GD(e,t,n){return js(e,n(t))}function YD(e,t){return arguments.length===2||typeof t=="number"?js(e,t):GD(...arguments)}function KD(e,t,n){return Us(e,n(t))}function JD(e,t){return arguments.length===2||typeof t=="number"?Us(e,t):KD(...arguments)}function qn(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var Lc=qn(Nc);async function Ws(e,t){let{formatted:n}=await Lc(e,{...t,cursorOffset:-1});return n}async function XD(e,t){return await Ws(e,t)===e}var QD=qn(Qu,0),ZD={parse:qn(yD),formatAST:qn(bD),formatDoc:qn(kD),printToDoc:qn(wD),printDocToString:qn(CD)},Oc={exports:{}};(function(e,t){(function(n){function r(){var i=n();return i.default||i}e.exports=r()})(function(){var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=a=>{throw TypeError(a)},c=(a,s)=>{for(var l in s)n(a,l,{get:s[l],enumerable:!0})},d=(a,s,l,p)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of i(s))!o.call(a,f)&&f!==l&&n(a,f,{get:()=>s[f],enumerable:!(p=r(s,f))||p.enumerable});return a},h=a=>d(n({},"__esModule",{value:!0}),a),g=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(g(a,s,"read from private field"),s.get(a)),D=(a,s,l)=>s.has(a)?u("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,l),b=(a,s,l,p)=>(g(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>Q1,options:()=>ew,parsers:()=>dd,printers:()=>sC});var x=(a,s,l,p)=>{if(!(a&&s==null))return s.replaceAll?s.replaceAll(l,p):l.global?s.replace(l,p):s.split(l).join(p)},C=x,T="string",F="array",S="cursor",A="indent",_="align",$="trim",P="group",I="fill",j="if-break",z="indent-if-break",K="line-suffix",G="line-suffix-boundary",L="line",N="label",H="break-parent",Q=new Set([S,A,_,$,P,I,j,z,K,G,L,N,H]);function fe(a){if(typeof a=="string")return T;if(Array.isArray(a))return F;if(!a)return;let{type:s}=a;if(Q.has(s))return s}var ee=fe,ue=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function me(a){let s=a===null?"null":typeof a;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
571
+ `)),b=Va(!1,b,`
572
+ `,k)}return{formatted:b,cursorOffset:D,comments:g.comments}}function Is(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function $c(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Is(e,n,-1),r=Is(e,r,0),i=Is(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function Tc(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=$c(e,t),u=e.charAt(0)===Ec;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=av(e)),e.includes("\r")){let c=d=>Su(e.slice(0,Math.max(d,0)),`\r
573
+ `);n-=c(n),r-=c(r),i-=c(i),e=iv(e)}return{hasBOM:u,text:e,options:$c(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function Bc(e,t){let n=await yc(t);return!n.hasPragma||n.hasPragma(e)}async function Nc(e,t){let{hasBOM:n,text:r,options:i}=Tc(e,await hr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await Bc(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await DD(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await Bc(r,i)&&(r=i.printer.insertPragma(r)),o=await Ac(r,i)),n&&(o.formatted=Ec+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function yD(e,t,n){let{text:r,options:i}=Tc(e,await hr(t)),o=await Xr(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Cc(o.ast,i)),n.massage&&(o.ast=uD(o.ast,i))),o}async function bD(e,t){t=await hr(t);let n=await ri(e,t);return Za(n,t)}async function kD(e,t){let n=Cv(e),{formatted:r}=await Nc(n,{...t,parser:"__js_expression"});return r}async function wD(e,t){t=await hr(t);let{ast:n}=await Xr(e,t);return ri(n,t)}async function CD(e,t){return Za(e,await hr(t))}var jc={};Wa(jc,{builders:()=>_D,printer:()=>xD,utils:()=>SD});var _D={join:ju,line:Bu,softline:kv,hardline:On,literalline:Nu,group:Au,conditionalGroup:gv,fill:$u,lineSuffix:Ds,lineSuffixBoundary:yv,cursor:bs,breakParent:Ja,ifBreak:vv,trim:bv,indent:Ka,indentIfBreak:Dv,align:lr,addAlignmentToDoc:Pu,markAsRoot:fv,dedentToRoot:hv,dedent:mv,hardlineWithoutBreakParent:ys,literallineWithoutBreakParent:Tu,label:wv,concat:e=>e},xD={printDocToString:Za},SD={willBreak:Bv,traverseDoc:vs,findInDoc:ws,mapDoc:Xa,removeLines:Pv,stripTrailingHardline:Iu,replaceEndOfLine:Iv,canBreak:Rv},ED="3.3.3",Pc={};Wa(Pc,{addDanglingComment:()=>Rn,addLeadingComment:()=>ur,addTrailingComment:()=>cr,getAlignmentSize:()=>xs,getIndentSize:()=>ND,getMaxContinuousCount:()=>LD,getNextNonSpaceNonCommentCharacter:()=>ID,getNextNonSpaceNonCommentCharacterIndex:()=>VD,getStringWidth:()=>ks,hasNewline:()=>mn,hasNewlineInRange:()=>RD,hasSpaces:()=>HD,isNextLineEmpty:()=>JD,isNextLineEmptyAfterIndex:()=>Hs,isPreviousLineEmpty:()=>YD,makeString:()=>WD,skip:()=>Jr,skipEverythingButNewLine:()=>Wu,skipInlineComment:()=>Ms,skipNewline:()=>Mn,skipSpaces:()=>fn,skipToLineEnd:()=>Uu,skipTrailingComment:()=>Rs,skipWhitespace:()=>Kv});function FD(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Ms=FD;function AD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Wu(e,t):t}var Rs=AD;function $D(e,t){let n=null,r=t;for(;r!==n;)n=r,r=fn(e,r),r=Ms(e,r),r=Rs(e,r),r=Mn(e,r);return r}var qs=$D;function TD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Uu(e,r),r=Ms(e,r),r=fn(e,r);return r=Rs(e,r),r=Mn(e,r),r!==!1&&mn(e,r)}var Hs=TD;function BD(e,t){let n=e.lastIndexOf(`
574
+ `);return n===-1?0:xs(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var ND=BD;function jD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PD(e,t){let n=e.match(new RegExp(`(${jD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var LD=PD;function OD(e,t){let n=qs(e,t);return n===!1?"":e.charAt(n)}var ID=OD;function MD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
575
+ `)return!0;return!1}var RD=MD;function qD(e,t,n={}){return fn(e,n.backwards?t-1:t,n)!==t}var HD=qD;function UD(e,t,n){let r=t==='"'?"'":'"',i=Va(!1,e,/\\(.)|(["'])/gsu,(o,u,c)=>u===r?u:c===t?"\\"+c:c||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+i+t}var WD=UD;function zD(e,t,n){return qs(e,n(t))}function VD(e,t){return arguments.length===2||typeof t=="number"?qs(e,t):zD(...arguments)}function GD(e,t,n){return Ns(e,n(t))}function YD(e,t){return arguments.length===2||typeof t=="number"?Ns(e,t):GD(...arguments)}function KD(e,t,n){return Hs(e,n(t))}function JD(e,t){return arguments.length===2||typeof t=="number"?Hs(e,t):KD(...arguments)}function qn(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var Lc=qn(Nc);async function Us(e,t){let{formatted:n}=await Lc(e,{...t,cursorOffset:-1});return n}async function XD(e,t){return await Us(e,t)===e}var QD=qn(Qu,0),ZD={parse:qn(yD),formatAST:qn(bD),formatDoc:qn(kD),printToDoc:qn(wD),printDocToString:qn(CD)},Oc={exports:{}};(function(e,t){(function(n){function r(){var i=n();return i.default||i}e.exports=r()})(function(){var n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=a=>{throw TypeError(a)},c=(a,s)=>{for(var l in s)n(a,l,{get:s[l],enumerable:!0})},d=(a,s,l,p)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of i(s))!o.call(a,f)&&f!==l&&n(a,f,{get:()=>s[f],enumerable:!(p=r(s,f))||p.enumerable});return a},h=a=>d(n({},"__esModule",{value:!0}),a),g=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(g(a,s,"read from private field"),s.get(a)),D=(a,s,l)=>s.has(a)?u("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,l),b=(a,s,l,p)=>(g(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>Q1,options:()=>ew,parsers:()=>dd,printers:()=>sC});var x=(a,s,l,p)=>{if(!(a&&s==null))return s.replaceAll?s.replaceAll(l,p):l.global?s.replace(l,p):s.split(l).join(p)},C=x,T="string",F="array",S="cursor",A="indent",_="align",$="trim",P="group",I="fill",j="if-break",z="indent-if-break",K="line-suffix",G="line-suffix-boundary",L="line",N="label",H="break-parent",Q=new Set([S,A,_,$,P,I,j,z,K,G,L,N,H]);function fe(a){if(typeof a=="string")return T;if(Array.isArray(a))return F;if(!a)return;let{type:s}=a;if(Q.has(s))return s}var ee=fe,ue=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function me(a){let s=a===null?"null":typeof a;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
576
576
  Expected it to be 'string' or 'object'.`;if(ee(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let p=ue([...Q].map(f=>`'${f}'`));return`Unexpected doc.type '${a.type}'.
577
- Expected it to be ${p}.`}var ie=class extends Error{constructor(s){super(me(s));Sr(this,"name","InvalidDocError");this.doc=s}},De=ie,rt=()=>{},Ne=rt;function Ee(a){return{type:A,contents:a}}function Oe(a,s){return{type:_,contents:s,n:a}}function de(a,s={}){return Ne(s.expandedStates),{type:P,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function ft(a){return Oe(Number.NEGATIVE_INFINITY,a)}function Ht(a){return Oe({type:"root"},a)}function yt(a){return{type:I,parts:a}}function bt(a,s="",l={}){return{type:j,breakContents:a,flatContents:s,groupId:l.groupId}}function Dn(a,s){return{type:z,contents:a,groupId:s.groupId,negate:s.negate}}var kt={type:H},X={type:L,hard:!0},Ut={type:L,hard:!0,literal:!0},_e={type:L},Pe={type:L,soft:!0},xe=[X,kt],Dr=[Ut,kt];function yn(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var vo=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},on=vo;function ia(a,s){if(typeof a=="string")return s(a);let l=new Map;return p(a);function p(y){if(l.has(y))return l.get(y);let E=f(y);return l.set(y,E),E}function f(y){switch(ee(y)){case F:return s(y.map(p));case I:return s({...y,parts:y.parts.map(p)});case j:return s({...y,breakContents:p(y.breakContents),flatContents:p(y.flatContents)});case P:{let{expandedStates:E,contents:B}=y;return E?(E=E.map(p),B=E[0]):B=p(B),s({...y,contents:B,expandedStates:E})}case _:case A:case z:case N:case K:return s({...y,contents:p(y.contents)});case T:case S:case $:case G:case L:case H:return s(y);default:throw new De(y)}}}function Do(a){switch(ee(a)){case I:if(a.parts.every(s=>s===""))return"";break;case P:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===P&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case _:case A:case z:case K:if(!a.contents)return"";break;case j:if(!a.flatContents&&!a.breakContents)return"";break;case F:{let s=[];for(let l of a){if(!l)continue;let[p,...f]=Array.isArray(l)?l:[l];typeof p=="string"&&typeof on(!1,s,-1)=="string"?s[s.length-1]+=p:s.push(p),s.push(...f)}return s.length===0?"":s.length===1?s[0]:s}case T:case S:case $:case G:case L:case N:case H:break;default:throw new De(a)}return a}function hi(a){return ia(a,s=>Do(s))}function mt(a,s=Dr){return ia(a,l=>typeof l=="string"?yn(s,l.split(`
578
- `)):l)}var Wt="'",fi='"';function mi(a,s){let l=s===!0||s===Wt?Wt:fi,p=l===Wt?fi:Wt,f=0,y=0;for(let E of a)E===l?f++:E===p&&y++;return f>y?p:l}var gi=mi;function sa(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var wt,yo=class{constructor(a){D(this,wt),b(this,wt,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,wt),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,wt),l=0;for(let p=a.length-1;p>=0&&s.has(a.charAt(p));p--)l++;return l}getLeadingWhitespace(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(0,s)}getTrailingWhitespace(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(a.length-s)}hasLeadingWhitespace(a){return v(this,wt).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,wt).has(on(!1,a,-1))}trimStart(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(s)}trimEnd(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(0,a.length-s)}trim(a){return this.trimEnd(this.trimStart(a))}split(a,s=!1){let l=`[${sa([...v(this,wt)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,wt);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,wt);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,wt);return Array.prototype.every.call(a,l=>s.has(l))}};wt=new WeakMap;var bo=yo,ko=[" ",`
579
- `,"\f","\r"," "],wo=new bo(ko),At=wo,Co=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);Sr(this,"name","UnexpectedNodeError");this.node=s}},oa=Co;function vi(a){return(a==null?void 0:a.type)==="front-matter"}var Bt=vi,la=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ua=new Set(["if","else if","for","switch","case"]);function ca(a,s){var l;if(a.type==="text"||a.type==="comment"||Bt(a)||a.type==="yaml"||a.type==="toml")return null;if(a.type==="attribute"&&delete s.value,a.type==="docType"&&delete s.value,a.type==="angularControlFlowBlock"&&(l=a.parameters)!=null&&l.children)for(let p of s.parameters.children)ua.has(a.name)?delete p.expression:p.expression=p.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}ca.ignoredProperties=la;var _o=ca;async function Di(a,s){if(a.language==="yaml"){let l=a.value.trim(),p=l?await s(l,{parser:"yaml"}):"";return Ht([a.startDelimiter,a.explicitLanguage,xe,p,p?xe:"",a.endDelimiter])}}var xo=Di;function zn(a,s=!0){return[Ee([Pe,a]),s?Pe:""]}function ln(a,s){let l=a.type==="NGRoot"?a.node.type==="NGMicrosyntax"&&a.node.body.length===1&&a.node.body[0].type==="NGMicrosyntaxExpression"?a.node.body[0].expression:a.node:a.type==="JsExpressionRoot"?a.node:a;return l&&(l.type==="ObjectExpression"||l.type==="ArrayExpression"||(s.parser==="__vue_expression"||s.parser==="__vue_ts_expression")&&(l.type==="TemplateLiteral"||l.type==="StringLiteral"))}async function Ct(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(E,B)=>{f=p(E,B)});let y=await s(a,l,s);return f?de(y):zn(y)}function So(a,s,l,p){let{node:f}=l,y=p.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(y)?"":Ct(y,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},ln)}var yi=So,bi=a=>String(a).split(/[/\\]/u).pop();function ki(a,s){if(!s)return;let l=bi(s).toLowerCase();return a.find(({filenames:p})=>p==null?void 0:p.some(f=>f.toLowerCase()===l))??a.find(({extensions:p})=>p==null?void 0:p.some(f=>l.endsWith(f)))}function Eo(a,s){if(s)return a.find(({name:l})=>l.toLowerCase()===s)??a.find(({aliases:l})=>l==null?void 0:l.includes(s))??a.find(({extensions:l})=>l==null?void 0:l.includes(`.${s}`))}function Fo(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=Eo(l,s.language)??ki(l,s.physicalFile)??ki(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var yr=Fo,w="inline",R={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},U="normal",te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ye(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var ve=ye,he=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),se=a=>he(At.trimEnd(a)),et=a=>{let s=a,l=At.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let p=At.getTrailingWhitespace(s);return p&&(s=s.slice(0,-p.length)),{leadingWhitespace:l,trailingWhitespace:p,text:s}};function Be(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||br(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||Bo(a,s)&&!tt(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:gt(a.prev)}function gt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function He(a){return a.type==="text"||a.type==="comment"}function tt(a){return a.type==="element"&&(a.fullName==="script"||a.fullName==="style"||a.fullName==="svg:style"||a.fullName==="svg:script"||ve(a)&&(a.name==="script"||a.name==="style"))}function at(a){return a.children&&!tt(a)}function pa(a){return tt(a)||a.type==="interpolation"||wi(a)}function wi(a){return zp(a).startsWith("pre")}function Ao(a,s){var l,p;let f=y();if(f&&!a.prev&&(p=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&p.ignoreFirstLf)return a.type==="interpolation";return f;function y(){return Bt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.prev&&(a.prev.type==="text"||a.prev.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:br(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||br(a)&&a.parent||tt(a.parent)||_i(a.parent,s)||!mk(a.parent.cssDisplay))||a.prev&&!Dk(a.prev.cssDisplay))}}function ok(a,s){return Bt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.next&&(a.next.type==="text"||a.next.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:br(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||br(a)&&a.parent||tt(a.parent)||_i(a.parent,s)||!gk(a.parent.cssDisplay))||a.next&&!vk(a.next.cssDisplay))}function lk(a){return yk(a.cssDisplay)&&!tt(a)}function Ci(a){return Bt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function uk(a){return Ip(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>pk(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&Rp(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||qp(a.lastChild))}function Ip(a){return a.type==="element"&&a.children.length>0&&(["html","head","ul","ol","select"].includes(a.name)||a.cssDisplay.startsWith("table")&&a.cssDisplay!=="table-cell")}function $o(a){return Hp(a)||a.prev&&ck(a.prev)||Mp(a)}function ck(a){return Hp(a)||a.type==="element"&&a.fullName==="br"||Mp(a)}function Mp(a){return Rp(a)&&qp(a)}function Rp(a){return a.hasLeadingSpaces&&(a.prev?a.prev.sourceSpan.end.line<a.sourceSpan.start.line:a.parent.type==="root"||a.parent.startSourceSpan.end.line<a.sourceSpan.start.line)}function qp(a){return a.hasTrailingSpaces&&(a.next?a.next.sourceSpan.start.line>a.sourceSpan.end.line:a.parent.type==="root"||a.parent.endSourceSpan&&a.parent.endSourceSpan.start.line>a.sourceSpan.end.line)}function Hp(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function To(a){return a.lastChild?To(a.lastChild):a}function pk(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function Up(a){if(a)switch(a){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(a.endsWith("json")||a.endsWith("importmap")||a==="speculationrules")return"json"}}function dk(a,s){let{name:l,attrMap:p}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(p,"src"))return;let{type:f,lang:y}=a.attrMap;return!y&&!f?"babel":yr(s,{language:y})??Up(f)}function hk(a,s){if(!Bo(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return yr(s,{language:f})??Up(p)}function fk(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?yr(s,{language:l}):"css"}function Wp(a,s){return dk(a,s)??fk(a,s)??hk(a,s)}function da(a){return a==="block"||a==="list-item"||a.startsWith("table")}function mk(a){return!da(a)&&a!=="inline-block"}function gk(a){return!da(a)&&a!=="inline-block"}function vk(a){return!da(a)}function Dk(a){return!da(a)}function yk(a){return!da(a)&&a!=="inline-block"}function br(a){return zp(a).startsWith("pre")}function bk(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function kk(a,s){var l;if(kr(a,s))return"block";if(((l=a.prev)==null?void 0:l.type)==="comment"){let f=a.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(f)return f[1]}let p=!1;if(a.type==="element"&&a.namespace==="svg")if(bk(a,f=>f.fullName==="svg:foreignObject"))p=!0;else return a.name==="svg"?"inline-block":"block";switch(s.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return a.type==="element"&&(!a.namespace||p||ve(a))&&R[a.name]||w}}function zp(a){return a.type==="element"&&(!a.namespace||ve(a))&&te[a.name]||U}function wk(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
577
+ Expected it to be ${p}.`}var ie=class extends Error{constructor(s){super(me(s));Er(this,"name","InvalidDocError");this.doc=s}},De=ie,rt=()=>{},Ne=rt;function Fe(a){return{type:A,contents:a}}function Oe(a,s){return{type:_,contents:s,n:a}}function de(a,s={}){return Ne(s.expandedStates),{type:P,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function ft(a){return Oe(Number.NEGATIVE_INFINITY,a)}function Ht(a){return Oe({type:"root"},a)}function yt(a){return{type:I,parts:a}}function bt(a,s="",l={}){return{type:j,breakContents:a,flatContents:s,groupId:l.groupId}}function Dn(a,s){return{type:z,contents:a,groupId:s.groupId,negate:s.negate}}var kt={type:H},X={type:L,hard:!0},Ut={type:L,hard:!0,literal:!0},_e={type:L},Pe={type:L,soft:!0},Se=[X,kt],yr=[Ut,kt];function yn(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var go=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},on=go;function ia(a,s){if(typeof a=="string")return s(a);let l=new Map;return p(a);function p(y){if(l.has(y))return l.get(y);let E=f(y);return l.set(y,E),E}function f(y){switch(ee(y)){case F:return s(y.map(p));case I:return s({...y,parts:y.parts.map(p)});case j:return s({...y,breakContents:p(y.breakContents),flatContents:p(y.flatContents)});case P:{let{expandedStates:E,contents:B}=y;return E?(E=E.map(p),B=E[0]):B=p(B),s({...y,contents:B,expandedStates:E})}case _:case A:case z:case N:case K:return s({...y,contents:p(y.contents)});case T:case S:case $:case G:case L:case H:return s(y);default:throw new De(y)}}}function vo(a){switch(ee(a)){case I:if(a.parts.every(s=>s===""))return"";break;case P:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===P&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case _:case A:case z:case K:if(!a.contents)return"";break;case j:if(!a.flatContents&&!a.breakContents)return"";break;case F:{let s=[];for(let l of a){if(!l)continue;let[p,...f]=Array.isArray(l)?l:[l];typeof p=="string"&&typeof on(!1,s,-1)=="string"?s[s.length-1]+=p:s.push(p),s.push(...f)}return s.length===0?"":s.length===1?s[0]:s}case T:case S:case $:case G:case L:case N:case H:break;default:throw new De(a)}return a}function di(a){return ia(a,s=>vo(s))}function mt(a,s=yr){return ia(a,l=>typeof l=="string"?yn(s,l.split(`
578
+ `)):l)}var Wt="'",hi='"';function fi(a,s){let l=s===!0||s===Wt?Wt:hi,p=l===Wt?hi:Wt,f=0,y=0;for(let E of a)E===l?f++:E===p&&y++;return f>y?p:l}var mi=fi;function sa(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var wt,Do=class{constructor(a){D(this,wt),b(this,wt,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,wt),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,wt),l=0;for(let p=a.length-1;p>=0&&s.has(a.charAt(p));p--)l++;return l}getLeadingWhitespace(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(0,s)}getTrailingWhitespace(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(a.length-s)}hasLeadingWhitespace(a){return v(this,wt).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,wt).has(on(!1,a,-1))}trimStart(a){let s=this.getLeadingWhitespaceCount(a);return a.slice(s)}trimEnd(a){let s=this.getTrailingWhitespaceCount(a);return a.slice(0,a.length-s)}trim(a){return this.trimEnd(this.trimStart(a))}split(a,s=!1){let l=`[${sa([...v(this,wt)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,wt);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,wt);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,wt);return Array.prototype.every.call(a,l=>s.has(l))}};wt=new WeakMap;var yo=Do,bo=[" ",`
579
+ `,"\f","\r"," "],ko=new yo(bo),At=ko,wo=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);Er(this,"name","UnexpectedNodeError");this.node=s}},oa=wo;function gi(a){return(a==null?void 0:a.type)==="front-matter"}var Bt=gi,la=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),ua=new Set(["if","else if","for","switch","case"]);function ca(a,s){var l;if(a.type==="text"||a.type==="comment"||Bt(a)||a.type==="yaml"||a.type==="toml")return null;if(a.type==="attribute"&&delete s.value,a.type==="docType"&&delete s.value,a.type==="angularControlFlowBlock"&&(l=a.parameters)!=null&&l.children)for(let p of s.parameters.children)ua.has(a.name)?delete p.expression:p.expression=p.expression.trim();a.type==="angularIcuExpression"&&(s.switchValue=a.switchValue.trim()),a.type==="angularLetDeclarationInitializer"&&delete s.value}ca.ignoredProperties=la;var Co=ca;async function vi(a,s){if(a.language==="yaml"){let l=a.value.trim(),p=l?await s(l,{parser:"yaml"}):"";return Ht([a.startDelimiter,a.explicitLanguage,Se,p,p?Se:"",a.endDelimiter])}}var _o=vi;function zn(a,s=!0){return[Fe([Pe,a]),s?Pe:""]}function ln(a,s){let l=a.type==="NGRoot"?a.node.type==="NGMicrosyntax"&&a.node.body.length===1&&a.node.body[0].type==="NGMicrosyntaxExpression"?a.node.body[0].expression:a.node:a.type==="JsExpressionRoot"?a.node:a;return l&&(l.type==="ObjectExpression"||l.type==="ArrayExpression"||(s.parser==="__vue_expression"||s.parser==="__vue_ts_expression")&&(l.type==="TemplateLiteral"||l.type==="StringLiteral"))}async function Ct(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(E,B)=>{f=p(E,B)});let y=await s(a,l,s);return f?de(y):zn(y)}function xo(a,s,l,p){let{node:f}=l,y=p.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(y)?"":Ct(y,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},ln)}var Di=xo,yi=a=>String(a).split(/[/\\]/u).pop();function bi(a,s){if(!s)return;let l=yi(s).toLowerCase();return a.find(({filenames:p})=>p==null?void 0:p.some(f=>f.toLowerCase()===l))??a.find(({extensions:p})=>p==null?void 0:p.some(f=>l.endsWith(f)))}function So(a,s){if(s)return a.find(({name:l})=>l.toLowerCase()===s)??a.find(({aliases:l})=>l==null?void 0:l.includes(s))??a.find(({extensions:l})=>l==null?void 0:l.includes(`.${s}`))}function Eo(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=So(l,s.language)??bi(l,s.physicalFile)??bi(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var br=Eo,w="inline",R={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},U="normal",te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ye(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var ve=ye,he=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),se=a=>he(At.trimEnd(a)),et=a=>{let s=a,l=At.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let p=At.getTrailingWhitespace(s);return p&&(s=s.slice(0,-p.length)),{leadingWhitespace:l,trailingWhitespace:p,text:s}};function Be(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||kr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||To(a,s)&&!tt(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:gt(a.prev)}function gt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function He(a){return a.type==="text"||a.type==="comment"}function tt(a){return a.type==="element"&&(a.fullName==="script"||a.fullName==="style"||a.fullName==="svg:style"||a.fullName==="svg:script"||ve(a)&&(a.name==="script"||a.name==="style"))}function at(a){return a.children&&!tt(a)}function pa(a){return tt(a)||a.type==="interpolation"||ki(a)}function ki(a){return zp(a).startsWith("pre")}function Fo(a,s){var l,p;let f=y();if(f&&!a.prev&&(p=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&p.ignoreFirstLf)return a.type==="interpolation";return f;function y(){return Bt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.prev&&(a.prev.type==="text"||a.prev.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:kr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||kr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!mk(a.parent.cssDisplay))||a.prev&&!Dk(a.prev.cssDisplay))}}function ok(a,s){return Bt(a)||a.type==="angularControlFlowBlock"?!1:(a.type==="text"||a.type==="interpolation")&&a.next&&(a.next.type==="text"||a.next.type==="interpolation")?!0:!a.parent||a.parent.cssDisplay==="none"?!1:kr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||kr(a)&&a.parent||tt(a.parent)||Ci(a.parent,s)||!gk(a.parent.cssDisplay))||a.next&&!vk(a.next.cssDisplay))}function lk(a){return yk(a.cssDisplay)&&!tt(a)}function wi(a){return Bt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function uk(a){return Ip(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>pk(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&Rp(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||qp(a.lastChild))}function Ip(a){return a.type==="element"&&a.children.length>0&&(["html","head","ul","ol","select"].includes(a.name)||a.cssDisplay.startsWith("table")&&a.cssDisplay!=="table-cell")}function Ao(a){return Hp(a)||a.prev&&ck(a.prev)||Mp(a)}function ck(a){return Hp(a)||a.type==="element"&&a.fullName==="br"||Mp(a)}function Mp(a){return Rp(a)&&qp(a)}function Rp(a){return a.hasLeadingSpaces&&(a.prev?a.prev.sourceSpan.end.line<a.sourceSpan.start.line:a.parent.type==="root"||a.parent.startSourceSpan.end.line<a.sourceSpan.start.line)}function qp(a){return a.hasTrailingSpaces&&(a.next?a.next.sourceSpan.start.line>a.sourceSpan.end.line:a.parent.type==="root"||a.parent.endSourceSpan&&a.parent.endSourceSpan.start.line>a.sourceSpan.end.line)}function Hp(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function $o(a){return a.lastChild?$o(a.lastChild):a}function pk(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function Up(a){if(a)switch(a){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(a.endsWith("json")||a.endsWith("importmap")||a==="speculationrules")return"json"}}function dk(a,s){let{name:l,attrMap:p}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(p,"src"))return;let{type:f,lang:y}=a.attrMap;return!y&&!f?"babel":br(s,{language:y})??Up(f)}function hk(a,s){if(!To(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return br(s,{language:f})??Up(p)}function fk(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?br(s,{language:l}):"css"}function Wp(a,s){return dk(a,s)??fk(a,s)??hk(a,s)}function da(a){return a==="block"||a==="list-item"||a.startsWith("table")}function mk(a){return!da(a)&&a!=="inline-block"}function gk(a){return!da(a)&&a!=="inline-block"}function vk(a){return!da(a)}function Dk(a){return!da(a)}function yk(a){return!da(a)&&a!=="inline-block"}function kr(a){return zp(a).startsWith("pre")}function bk(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function kk(a,s){var l;if(wr(a,s))return"block";if(((l=a.prev)==null?void 0:l.type)==="comment"){let f=a.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(f)return f[1]}let p=!1;if(a.type==="element"&&a.namespace==="svg")if(bk(a,f=>f.fullName==="svg:foreignObject"))p=!0;else return a.name==="svg"?"inline-block":"block";switch(s.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return a.type==="element"&&(!a.namespace||p||ve(a))&&R[a.name]||w}}function zp(a){return a.type==="element"&&(!a.namespace||ve(a))&&te[a.name]||U}function wk(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
580
580
  `)){if(l.length===0)continue;let p=At.getLeadingWhitespaceCount(l);if(p===0)return 0;l.length!==p&&p<s&&(s=p)}return s===Number.POSITIVE_INFINITY?0:s}function Vp(a,s=wk(a)){return s===0?a:a.split(`
581
581
  `).map(l=>l.slice(s)).join(`
582
- `)}function Gp(a){return C(!1,C(!1,a,"&apos;","'"),"&quot;",'"')}function bn(a){return Gp(a.value)}var Ck=new Set(["template","style","script"]);function _i(a,s){return kr(a,s)&&!Ck.has(a.fullName)}function kr(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function Bo(a,s){return kr(a,s)&&(_i(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function _k(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function xk(a,s){let l=a.parent;if(!kr(l,s))return!1;let p=l.fullName,f=a.fullName;return p==="script"&&f==="setup"||p==="style"&&f==="vars"}function Yp(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?mt(s):mt(Vp(se(s)),xe):yn(_e,At.split(s))}function Kp(a,s){return kr(a,s)&&a.name==="script"}var Jp=/\{\{(.+?)\}\}/su;async function Sk(a,s){let l=[];for(let[p,f]of a.split(Jp).entries())if(p%2===0)l.push(mt(f));else try{l.push(de(["{{",Ee([_e,await Ct(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_e,"}}"]))}catch{l.push("{{",mt(f),"}}")}return l}function No({parser:a}){return(s,l,p)=>Ct(bn(p.node),s,{parser:a},ln)}var Ek=No({parser:"__ng_action"}),Fk=No({parser:"__ng_binding"}),Ak=No({parser:"__ng_directive"});function $k(a,s){if(s.parser!=="angular")return;let{node:l}=a,p=l.fullName;if(p.startsWith("(")&&p.endsWith(")")||p.startsWith("on-"))return Ek;if(p.startsWith("[")&&p.endsWith("]")||/^bind(?:on)?-/u.test(p)||/^ng-(?:if|show|hide|class|style)$/u.test(p))return Fk;if(p.startsWith("*"))return Ak;let f=bn(l);if(/^i18n(?:-.+)?$/u.test(p))return()=>zn(yt(Yp(l,f.trim())),!f.includes("@@"));if(Jp.test(f))return y=>Sk(f,y)}var Tk=$k;function Bk(a,s){let{node:l}=a,p=bn(l);if(l.fullName==="class"&&!s.parentParser&&!p.includes("{{"))return()=>p.trim().split(/\s+/u).join(" ")}var Nk=Bk;function Xp(a){return a===" "||a===`
583
- `||a==="\f"||a==="\r"||a===" "}var jk=/^[ \t\n\r\u000c]+/,Pk=/^[, \t\n\r\u000c]+/,Lk=/^[^ \t\n\r\u000c]+/,Ok=/[,]+$/,Qp=/^\d+$/,Ik=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Mk(a){let s=a.length,l,p,f,y,E,B=0,q;function Y(ce){let Fe,Ue=ce.exec(a.substring(B));if(Ue)return[Fe]=Ue,B+=Fe.length,Fe}let W=[];for(;;){if(Y(Pk),B>=s){if(W.length===0)throw new Error("Must contain one or more image candidate strings.");return W}q=B,l=Y(Lk),p=[],l.slice(-1)===","?(l=l.replace(Ok,""),ge()):we()}function we(){for(Y(jk),f="",y="in descriptor";;){if(E=a.charAt(B),y==="in descriptor")if(Xp(E))f&&(p.push(f),f="",y="after descriptor");else if(E===","){B+=1,f&&p.push(f),ge();return}else if(E==="(")f+=E,y="in parens";else if(E===""){f&&p.push(f),ge();return}else f+=E;else if(y==="in parens")if(E===")")f+=E,y="in descriptor";else if(E===""){p.push(f),ge();return}else f+=E;else if(y==="after descriptor"&&!Xp(E))if(E===""){ge();return}else y="in descriptor",B-=1;B+=1}}function ge(){let ce=!1,Fe,Ue,nt,it,V={},pe,We,qe,ct,xr;for(it=0;it<p.length;it++)pe=p[it],We=pe[pe.length-1],qe=pe.substring(0,pe.length-1),ct=parseInt(qe,10),xr=parseFloat(qe),Qp.test(qe)&&We==="w"?((Fe||Ue)&&(ce=!0),ct===0?ce=!0:Fe=ct):Ik.test(qe)&&We==="x"?((Fe||Ue||nt)&&(ce=!0),xr<0?ce=!0:Ue=xr):Qp.test(qe)&&We==="h"?((nt||Ue)&&(ce=!0),ct===0?ce=!0:nt=ct):ce=!0;if(!ce)V.source={value:l,startOffset:q},Fe&&(V.width={value:Fe}),Ue&&(V.density={value:Ue}),nt&&(V.height={value:nt}),W.push(V);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${pe}".`)}}var Rk=Mk;function qk(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>Uk(bn(a.node))}var Zp={width:"w",height:"h",density:"x"},Hk=Object.keys(Zp);function Uk(a){let s=Rk(a),l=Hk.filter(W=>s.some(we=>Object.prototype.hasOwnProperty.call(we,W)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Zp[p],y=s.map(W=>W.source.value),E=Math.max(...y.map(W=>W.length)),B=s.map(W=>W[p]?String(W[p].value):""),q=B.map(W=>{let we=W.indexOf(".");return we===-1?W.length:we}),Y=Math.max(...q);return zn(yn([",",_e],y.map((W,we)=>{let ge=[W],ce=B[we];if(ce){let Fe=E-W.length+1,Ue=Y-q[we],nt=" ".repeat(Fe+Ue);ge.push(bt(nt," "),ce+f)}return ge})))}var Wk=qk;function zk(a,s){let{node:l}=a,p=bn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>zn(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var jo=new WeakMap;function Vk(a,s){let{root:l}=a;return jo.has(l)||jo.set(l,l.children.some(p=>Kp(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),jo.get(l)}var Po=Vk;function Gk(a,s,l){let{node:p}=l,f=bn(p);return Ct(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ln)}function Yk(a,s,{parseWithTs:l}){return Ct(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Kk(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,p=a.trim();return s.test(p)||l.test(p)}async function Jk(a,s,l,p){let f=bn(l.node),{left:y,operator:E,right:B}=Xk(f),q=Po(l,p);return[de(await Ct(`function _(${y}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await Ct(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function Xk(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let y={};if(y.for=f[3].trim(),!y.for)return;let E=C(!1,f[1].trim(),p,""),B=E.match(l);B?(y.alias=E.replace(l,""),y.iterator1=B[1].trim(),B[2]&&(y.iterator2=B[2].trim())):y.alias=E;let q=[y.alias,y.iterator1,y.iterator2];if(!q.some((Y,W)=>!Y&&(W===0||q.slice(W+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:y.for}}function Qk(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Jk;if(p==="generic"&&Kp(l.parent,s))return Gk;let f=bn(l),y=Po(a,s);if(_k(l)||xk(l,s))return E=>Yk(f,E,{parseWithTs:y});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>Zk(f,E,{parseWithTs:y});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>e1(f,E,{parseWithTs:y});if(p.startsWith("v-"))return E=>ed(f,E,{parseWithTs:y})}function Zk(a,s,{parseWithTs:l}){return Kk(a)?ed(a,s,{parseWithTs:l}):Ct(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},ln)}function e1(a,s,{parseWithTs:l}){return Ct(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},ln)}function ed(a,s,{parseWithTs:l}){return Ct(a,s,{parser:l?"__ts_expression":"__js_expression"},ln)}var t1=Qk;function n1(a,s){let{node:l}=a;if(l.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(s.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset))||s.parser==="lwc"&&l.value.startsWith("{")&&l.value.endsWith("}"))return[l.rawName,"=",l.value];for(let p of[Wk,zk,Nk,t1,Tk]){let f=p(a,s);if(f)return r1(f)}}}function r1(a){return async(s,l,p,f)=>{let y=await a(s,l,p,f);if(y)return y=ia(y,E=>typeof E=="string"?C(!1,E,'"',"&quot;"):E),[p.node.rawName,'="',de(y),'"']}}var a1=n1,td=new Proxy(()=>{},{get:()=>td}),nd=td;function i1(a){return Array.isArray(a)&&a.length>0}var Lo=i1;function xi(a){return a.sourceSpan.start.offset}function Si(a){return a.sourceSpan.end.offset}function Oo(a,s){return[a.isSelfClosing?"":s1(a,s),ha(a,s)]}function s1(a,s){return a.lastChild&&ga(a.lastChild)?"":[o1(a,s),Io(a,s)]}function ha(a,s){return(a.next?Gn(a.next):ma(a.parent))?"":[fa(a,s),Vn(a,s)]}function o1(a,s){return ma(a)?fa(a.lastChild,s):""}function Vn(a,s){return ga(a)?Io(a.parent,s):Ei(a)?Ro(a.next):""}function Io(a,s){if(nd(!a.isSelfClosing),rd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function fa(a,s){if(rd(a,s))return"";switch(a.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(a.isSelfClosing)return"/>";default:return">"}}function rd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function Gn(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!He(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function ma(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!He(To(a.lastChild))&&!br(a)}function ga(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&He(To(a))}function Ei(a){return a.next&&!He(a.next)&&He(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function l1(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Fi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function u1(a,s,l){var p;let{node:f}=a;if(!Lo(f.attrs))return f.isSelfClosing?" ":"";let y=((p=f.prev)==null?void 0:p.type)==="comment"&&l1(f.prev.value),E=typeof y=="boolean"?()=>y:Array.isArray(y)?we=>y.includes(we.rawName):()=>!1,B=a.map(({node:we})=>E(we)?mt(s.originalText.slice(xi(we),Si(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!kr(f,s)?xe:_e,W=[Ee([q?" ":_e,yn(Y,B)])];return f.firstChild&&Fi(f.firstChild)||f.isSelfClosing&&ma(f.parent)||q?W.push(f.isSelfClosing?" ":""):W.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?_e:Pe),W}function c1(a){return a.firstChild&&Fi(a.firstChild)?"":qo(a)}function Mo(a,s,l){let{node:p}=a;return[va(p,s),u1(a,s,l),p.isSelfClosing?"":c1(p)]}function va(a,s){return a.prev&&Ei(a.prev)?"":[Yn(a,s),Ro(a)]}function Yn(a,s){return Fi(a)?qo(a.parent):Gn(a)?fa(a.prev,s):""}function Ro(a){switch(a.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${a.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return a.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(a.condition)return`<!--[if ${a.condition}]><!--><${a.rawName}`;default:return`<${a.rawName}`}}function qo(a){switch(nd(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function p1(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Fi(a.firstChild)&&(l-=qo(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&ga(a.lastChild)?p+=Io(a,s).length:ma(a)&&(p-=fa(a.lastChild,s).length),s.originalText.slice(l,p)}var ad=p1,d1=new Set(["if","else if","for","switch","case"]);function h1(a,s){let{node:l}=a;switch(l.type){case"element":if(tt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&Bo(l,s)){let p=Wp(l,s);return p?async(f,y)=>{let E=ad(l,s),B=/^\s*$/u.test(E),q="";return B||(q=await f(se(E),{parser:p,__embeddedInHtml:!0}),B=q===""),[Yn(l,s),de(Mo(a,s,y)),B?"":xe,q,B?"":xe,Oo(l,s),Vn(l,s)]}:void 0}break;case"text":if(tt(l.parent)){let p=Wp(l.parent,s);if(p)return async f=>{let y=p==="markdown"?Vp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,E={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let B="script",{attrMap:q}=l.parent;q&&(q.type==="module"||q.type==="text/babel"&&q["data-type"]==="module")&&(B="module"),E.__babelSourceType=B}return[kt,Yn(l,s),await f(y,E),Vn(l,s)]}}else if(l.parent.type==="interpolation")return async p=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=Po(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Ee([_e,await p(l.value,f)]),l.parent.next&&Gn(l.parent.next)?" ":_e]};break;case"attribute":return a1(a,s);case"front-matter":return p=>xo(l,p);case"angularControlFlowBlockParameters":return d1.has(a.parent.name)?yi:void 0;case"angularLetDeclarationInitializer":return p=>Ct(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var f1=h1,Da=null;function ya(a){if(Da!==null&&typeof Da.property){let s=Da;return Da=ya.prototype=null,s}return Da=ya.prototype=a??Object.create(null),new ya}var m1=10;for(let a=0;a<=m1;a++)ya();function g1(a){return ya(a)}function v1(a,s="type"){g1(a);function l(p){let f=p[s],y=a[f];if(!Array.isArray(y))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return y}return l}var D1=v1,y1={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},b1=y1,k1=D1(b1),w1=k1;function C1(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function _1(a){return`<!-- @format -->
582
+ `)}function Gp(a){return C(!1,C(!1,a,"&apos;","'"),"&quot;",'"')}function bn(a){return Gp(a.value)}var Ck=new Set(["template","style","script"]);function Ci(a,s){return wr(a,s)&&!Ck.has(a.fullName)}function wr(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function To(a,s){return wr(a,s)&&(Ci(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function _k(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function xk(a,s){let l=a.parent;if(!wr(l,s))return!1;let p=l.fullName,f=a.fullName;return p==="script"&&f==="setup"||p==="style"&&f==="vars"}function Yp(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?mt(s):mt(Vp(se(s)),Se):yn(_e,At.split(s))}function Kp(a,s){return wr(a,s)&&a.name==="script"}var Jp=/\{\{(.+?)\}\}/su;async function Sk(a,s){let l=[];for(let[p,f]of a.split(Jp).entries())if(p%2===0)l.push(mt(f));else try{l.push(de(["{{",Fe([_e,await Ct(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_e,"}}"]))}catch{l.push("{{",mt(f),"}}")}return l}function Bo({parser:a}){return(s,l,p)=>Ct(bn(p.node),s,{parser:a},ln)}var Ek=Bo({parser:"__ng_action"}),Fk=Bo({parser:"__ng_binding"}),Ak=Bo({parser:"__ng_directive"});function $k(a,s){if(s.parser!=="angular")return;let{node:l}=a,p=l.fullName;if(p.startsWith("(")&&p.endsWith(")")||p.startsWith("on-"))return Ek;if(p.startsWith("[")&&p.endsWith("]")||/^bind(?:on)?-/u.test(p)||/^ng-(?:if|show|hide|class|style)$/u.test(p))return Fk;if(p.startsWith("*"))return Ak;let f=bn(l);if(/^i18n(?:-.+)?$/u.test(p))return()=>zn(yt(Yp(l,f.trim())),!f.includes("@@"));if(Jp.test(f))return y=>Sk(f,y)}var Tk=$k;function Bk(a,s){let{node:l}=a,p=bn(l);if(l.fullName==="class"&&!s.parentParser&&!p.includes("{{"))return()=>p.trim().split(/\s+/u).join(" ")}var Nk=Bk;function Xp(a){return a===" "||a===`
583
+ `||a==="\f"||a==="\r"||a===" "}var jk=/^[ \t\n\r\u000c]+/,Pk=/^[, \t\n\r\u000c]+/,Lk=/^[^ \t\n\r\u000c]+/,Ok=/[,]+$/,Qp=/^\d+$/,Ik=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Mk(a){let s=a.length,l,p,f,y,E,B=0,q;function Y(ce){let Ae,Ue=ce.exec(a.substring(B));if(Ue)return[Ae]=Ue,B+=Ae.length,Ae}let W=[];for(;;){if(Y(Pk),B>=s){if(W.length===0)throw new Error("Must contain one or more image candidate strings.");return W}q=B,l=Y(Lk),p=[],l.slice(-1)===","?(l=l.replace(Ok,""),ge()):we()}function we(){for(Y(jk),f="",y="in descriptor";;){if(E=a.charAt(B),y==="in descriptor")if(Xp(E))f&&(p.push(f),f="",y="after descriptor");else if(E===","){B+=1,f&&p.push(f),ge();return}else if(E==="(")f+=E,y="in parens";else if(E===""){f&&p.push(f),ge();return}else f+=E;else if(y==="in parens")if(E===")")f+=E,y="in descriptor";else if(E===""){p.push(f),ge();return}else f+=E;else if(y==="after descriptor"&&!Xp(E))if(E===""){ge();return}else y="in descriptor",B-=1;B+=1}}function ge(){let ce=!1,Ae,Ue,nt,it,V={},pe,We,qe,ct,Sr;for(it=0;it<p.length;it++)pe=p[it],We=pe[pe.length-1],qe=pe.substring(0,pe.length-1),ct=parseInt(qe,10),Sr=parseFloat(qe),Qp.test(qe)&&We==="w"?((Ae||Ue)&&(ce=!0),ct===0?ce=!0:Ae=ct):Ik.test(qe)&&We==="x"?((Ae||Ue||nt)&&(ce=!0),Sr<0?ce=!0:Ue=Sr):Qp.test(qe)&&We==="h"?((nt||Ue)&&(ce=!0),ct===0?ce=!0:nt=ct):ce=!0;if(!ce)V.source={value:l,startOffset:q},Ae&&(V.width={value:Ae}),Ue&&(V.density={value:Ue}),nt&&(V.height={value:nt}),W.push(V);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${pe}".`)}}var Rk=Mk;function qk(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>Uk(bn(a.node))}var Zp={width:"w",height:"h",density:"x"},Hk=Object.keys(Zp);function Uk(a){let s=Rk(a),l=Hk.filter(W=>s.some(we=>Object.prototype.hasOwnProperty.call(we,W)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Zp[p],y=s.map(W=>W.source.value),E=Math.max(...y.map(W=>W.length)),B=s.map(W=>W[p]?String(W[p].value):""),q=B.map(W=>{let we=W.indexOf(".");return we===-1?W.length:we}),Y=Math.max(...q);return zn(yn([",",_e],y.map((W,we)=>{let ge=[W],ce=B[we];if(ce){let Ae=E-W.length+1,Ue=Y-q[we],nt=" ".repeat(Ae+Ue);ge.push(bt(nt," "),ce+f)}return ge})))}var Wk=qk;function zk(a,s){let{node:l}=a,p=bn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>zn(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var No=new WeakMap;function Vk(a,s){let{root:l}=a;return No.has(l)||No.set(l,l.children.some(p=>Kp(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),No.get(l)}var jo=Vk;function Gk(a,s,l){let{node:p}=l,f=bn(p);return Ct(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ln)}function Yk(a,s,{parseWithTs:l}){return Ct(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Kk(a){let s=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,l=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,p=a.trim();return s.test(p)||l.test(p)}async function Jk(a,s,l,p){let f=bn(l.node),{left:y,operator:E,right:B}=Xk(f),q=jo(l,p);return[de(await Ct(`function _(${y}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await Ct(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function Xk(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let y={};if(y.for=f[3].trim(),!y.for)return;let E=C(!1,f[1].trim(),p,""),B=E.match(l);B?(y.alias=E.replace(l,""),y.iterator1=B[1].trim(),B[2]&&(y.iterator2=B[2].trim())):y.alias=E;let q=[y.alias,y.iterator1,y.iterator2];if(!q.some((Y,W)=>!Y&&(W===0||q.slice(W+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:y.for}}function Qk(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Jk;if(p==="generic"&&Kp(l.parent,s))return Gk;let f=bn(l),y=jo(a,s);if(_k(l)||xk(l,s))return E=>Yk(f,E,{parseWithTs:y});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>Zk(f,E,{parseWithTs:y});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>e1(f,E,{parseWithTs:y});if(p.startsWith("v-"))return E=>ed(f,E,{parseWithTs:y})}function Zk(a,s,{parseWithTs:l}){return Kk(a)?ed(a,s,{parseWithTs:l}):Ct(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},ln)}function e1(a,s,{parseWithTs:l}){return Ct(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},ln)}function ed(a,s,{parseWithTs:l}){return Ct(a,s,{parser:l?"__ts_expression":"__js_expression"},ln)}var t1=Qk;function n1(a,s){let{node:l}=a;if(l.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(s.originalText.slice(l.valueSpan.start.offset,l.valueSpan.end.offset))||s.parser==="lwc"&&l.value.startsWith("{")&&l.value.endsWith("}"))return[l.rawName,"=",l.value];for(let p of[Wk,zk,Nk,t1,Tk]){let f=p(a,s);if(f)return r1(f)}}}function r1(a){return async(s,l,p,f)=>{let y=await a(s,l,p,f);if(y)return y=ia(y,E=>typeof E=="string"?C(!1,E,'"',"&quot;"):E),[p.node.rawName,'="',de(y),'"']}}var a1=n1,td=new Proxy(()=>{},{get:()=>td}),nd=td;function i1(a){return Array.isArray(a)&&a.length>0}var Po=i1;function _i(a){return a.sourceSpan.start.offset}function xi(a){return a.sourceSpan.end.offset}function Lo(a,s){return[a.isSelfClosing?"":s1(a,s),ha(a,s)]}function s1(a,s){return a.lastChild&&ga(a.lastChild)?"":[o1(a,s),Oo(a,s)]}function ha(a,s){return(a.next?Gn(a.next):ma(a.parent))?"":[fa(a,s),Vn(a,s)]}function o1(a,s){return ma(a)?fa(a.lastChild,s):""}function Vn(a,s){return ga(a)?Oo(a.parent,s):Si(a)?Mo(a.next):""}function Oo(a,s){if(nd(!a.isSelfClosing),rd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function fa(a,s){if(rd(a,s))return"";switch(a.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(a.isSelfClosing)return"/>";default:return">"}}function rd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function Gn(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!He(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function ma(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!He($o(a.lastChild))&&!kr(a)}function ga(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&He($o(a))}function Si(a){return a.next&&!He(a.next)&&He(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function l1(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Ei(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function u1(a,s,l){var p;let{node:f}=a;if(!Po(f.attrs))return f.isSelfClosing?" ":"";let y=((p=f.prev)==null?void 0:p.type)==="comment"&&l1(f.prev.value),E=typeof y=="boolean"?()=>y:Array.isArray(y)?we=>y.includes(we.rawName):()=>!1,B=a.map(({node:we})=>E(we)?mt(s.originalText.slice(_i(we),xi(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!wr(f,s)?Se:_e,W=[Fe([q?" ":_e,yn(Y,B)])];return f.firstChild&&Ei(f.firstChild)||f.isSelfClosing&&ma(f.parent)||q?W.push(f.isSelfClosing?" ":""):W.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?_e:Pe),W}function c1(a){return a.firstChild&&Ei(a.firstChild)?"":Ro(a)}function Io(a,s,l){let{node:p}=a;return[va(p,s),u1(a,s,l),p.isSelfClosing?"":c1(p)]}function va(a,s){return a.prev&&Si(a.prev)?"":[Yn(a,s),Mo(a)]}function Yn(a,s){return Ei(a)?Ro(a.parent):Gn(a)?fa(a.prev,s):""}function Mo(a){switch(a.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${a.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return a.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(a.condition)return`<!--[if ${a.condition}]><!--><${a.rawName}`;default:return`<${a.rawName}`}}function Ro(a){switch(nd(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function p1(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Ei(a.firstChild)&&(l-=Ro(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&ga(a.lastChild)?p+=Oo(a,s).length:ma(a)&&(p-=fa(a.lastChild,s).length),s.originalText.slice(l,p)}var ad=p1,d1=new Set(["if","else if","for","switch","case"]);function h1(a,s){let{node:l}=a;switch(l.type){case"element":if(tt(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&To(l,s)){let p=Wp(l,s);return p?async(f,y)=>{let E=ad(l,s),B=/^\s*$/u.test(E),q="";return B||(q=await f(se(E),{parser:p,__embeddedInHtml:!0}),B=q===""),[Yn(l,s),de(Io(a,s,y)),B?"":Se,q,B?"":Se,Lo(l,s),Vn(l,s)]}:void 0}break;case"text":if(tt(l.parent)){let p=Wp(l.parent,s);if(p)return async f=>{let y=p==="markdown"?Vp(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,E={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let B="script",{attrMap:q}=l.parent;q&&(q.type==="module"||q.type==="text/babel"&&q["data-type"]==="module")&&(B="module"),E.__babelSourceType=B}return[kt,Yn(l,s),await f(y,E),Vn(l,s)]}}else if(l.parent.type==="interpolation")return async p=>{let f={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return s.parser==="angular"?f.parser="__ng_interpolation":s.parser==="vue"?f.parser=jo(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([_e,await p(l.value,f)]),l.parent.next&&Gn(l.parent.next)?" ":_e]};break;case"attribute":return a1(a,s);case"front-matter":return p=>_o(l,p);case"angularControlFlowBlockParameters":return d1.has(a.parent.name)?Di:void 0;case"angularLetDeclarationInitializer":return p=>Ct(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var f1=h1,Da=null;function ya(a){if(Da!==null&&typeof Da.property){let s=Da;return Da=ya.prototype=null,s}return Da=ya.prototype=a??Object.create(null),new ya}var m1=10;for(let a=0;a<=m1;a++)ya();function g1(a){return ya(a)}function v1(a,s="type"){g1(a);function l(p){let f=p[s],y=a[f];if(!Array.isArray(y))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return y}return l}var D1=v1,y1={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},b1=y1,k1=D1(b1),w1=k1;function C1(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function _1(a){return`<!-- @format -->
584
584
 
585
- `+a}var x1=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function id(a){let s=Si(a);return a.type==="element"&&!a.endSourceSpan&&Lo(a.children)?Math.max(s,id(on(!1,a.children,-1))):s}function ba(a,s,l){let p=a.node;if(Te(p)){let f=id(p);return[Yn(p,s),mt(At.trimEnd(s.originalText.slice(xi(p)+(p.prev&&Ei(p.prev)?Ro(p).length:0),f-(p.next&&Gn(p.next)?fa(p,s).length:0)))),Vn(p,s)]}return l()}function Ai(a,s){return He(a)&&He(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?$o(s)?xe:_e:"":$o(s)?xe:Pe:Ei(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&Gn(s)?"":!s.isLeadingSpaceSensitive||$o(s)||Gn(s)&&a.lastChild&&ga(a.lastChild)&&a.lastChild.lastChild&&ga(a.lastChild.lastChild)?xe:s.hasLeadingSpaces?_e:Pe}function Ho(a,s,l){let{node:p}=a;if(Ip(p))return[kt,...a.map(y=>{let E=y.node,B=E.prev?Ai(E.prev,E):"";return[B?[B,Ci(E.prev)?xe:""]:"",ba(y,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((y,E)=>{let B=y.node;if(He(B)){if(B.prev&&He(B.prev)){let Fe=Ai(B.prev,B);if(Fe)return Ci(B.prev)?[xe,xe,ba(y,s,l)]:[Fe,ba(y,s,l)]}return ba(y,s,l)}let q=[],Y=[],W=[],we=[],ge=B.prev?Ai(B.prev,B):"",ce=B.next?Ai(B,B.next):"";return ge&&(Ci(B.prev)?q.push(xe,xe):ge===xe?q.push(xe):He(B.prev)?Y.push(ge):Y.push(bt("",Pe,{groupId:f[E-1]}))),ce&&(Ci(B)?He(B.next)&&we.push(xe,xe):ce===xe?He(B.next)&&we.push(xe):W.push(ce)),[...q,de([...Y,de([ba(y,s,l),...W],{id:f[E]})]),...we]},"children")}function S1(a,s,l){let{node:p}=a,f=[];E1(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",de(l("parameters")),")"),f.push(" {");let y=sd(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Ee([xe,Ho(a,s,l)])),y&&f.push(xe,"}")):y&&f.push("}"),de(f,{shouldBreak:!0})}function sd(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=x1.get(a.name))!=null&&l.has(a.next.name))}function E1(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!sd(s)}function F1(a,s,l){return[Ee([Pe,yn([";",_e],a.map(l,"children"))]),Pe]}function A1(a,s,l){let{node:p}=a;return[va(p,s),de([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Ee([_e,yn(_e,a.map(l,"cases"))])]:"",Pe]),ha(p,s)]}function $1(a,s,l){let{node:p}=a;return[p.value," {",de([Ee([Pe,a.map(({node:f})=>f.type==="text"&&!At.trim(f.value)?"":l(),"expression")]),Pe]),"}"]}function T1(a,s,l){let{node:p}=a;if(Be(p,s))return[Yn(p,s),de(Mo(a,s,l)),mt(ad(p,s)),...Oo(p,s),Vn(p,s)];let f=p.children.length===1&&(p.firstChild.type==="interpolation"||p.firstChild.type==="angularIcuExpression")&&p.firstChild.isLeadingSpaceSensitive&&!p.firstChild.hasLeadingSpaces&&p.lastChild.isTrailingSpaceSensitive&&!p.lastChild.hasTrailingSpaces,y=Symbol("element-attr-group-id"),E=W=>de([de(Mo(a,s,l),{id:y}),W,Oo(p,s)]),B=W=>f?Dn(W,{groupId:y}):(tt(p)||_i(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?W:Ee(W),q=()=>f?bt(Pe,"",{groupId:y}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?_e:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?ft(Pe):Pe,Y=()=>(p.next?Gn(p.next):ma(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?bt(Pe,"",{groupId:y}):p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?_e:(p.lastChild.type==="comment"||p.lastChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${s.tabWidth*(a.ancestors.length-1)}}$`,"u").test(p.lastChild.value)?"":Pe;return p.children.length===0?E(p.hasDanglingSpaces&&p.isDanglingSpaceSensitive?_e:""):E([uk(p)?kt:"",B([q(),Ho(a,s,l)]),Y()])}function $i(a){return a>=9&&a<=32||a==160}function Uo(a){return 48<=a&&a<=57}function Ti(a){return a>=97&&a<=122||a>=65&&a<=90}function B1(a){return a>=97&&a<=102||a>=65&&a<=70||Uo(a)}function Wo(a){return a===10||a===13}function od(a){return 48<=a&&a<=55}function zo(a){return a===39||a===34||a===96}var N1=/-+([a-z0-9])/g;function j1(a){return a.replace(N1,(...s)=>s[1].toUpperCase())}var Vo=class Vd{constructor(s,l,p,f){this.file=s,this.offset=l,this.line=p,this.col=f}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(s){let l=this.file.content,p=l.length,f=this.offset,y=this.line,E=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){y--;let B=l.substring(0,f-1).lastIndexOf(`
585
+ `+a}var x1=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function id(a){let s=xi(a);return a.type==="element"&&!a.endSourceSpan&&Po(a.children)?Math.max(s,id(on(!1,a.children,-1))):s}function ba(a,s,l){let p=a.node;if(Te(p)){let f=id(p);return[Yn(p,s),mt(At.trimEnd(s.originalText.slice(_i(p)+(p.prev&&Si(p.prev)?Mo(p).length:0),f-(p.next&&Gn(p.next)?fa(p,s).length:0)))),Vn(p,s)]}return l()}function Fi(a,s){return He(a)&&He(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Ao(s)?Se:_e:"":Ao(s)?Se:Pe:Si(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&Gn(s)?"":!s.isLeadingSpaceSensitive||Ao(s)||Gn(s)&&a.lastChild&&ga(a.lastChild)&&a.lastChild.lastChild&&ga(a.lastChild.lastChild)?Se:s.hasLeadingSpaces?_e:Pe}function qo(a,s,l){let{node:p}=a;if(Ip(p))return[kt,...a.map(y=>{let E=y.node,B=E.prev?Fi(E.prev,E):"";return[B?[B,wi(E.prev)?Se:""]:"",ba(y,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((y,E)=>{let B=y.node;if(He(B)){if(B.prev&&He(B.prev)){let Ae=Fi(B.prev,B);if(Ae)return wi(B.prev)?[Se,Se,ba(y,s,l)]:[Ae,ba(y,s,l)]}return ba(y,s,l)}let q=[],Y=[],W=[],we=[],ge=B.prev?Fi(B.prev,B):"",ce=B.next?Fi(B,B.next):"";return ge&&(wi(B.prev)?q.push(Se,Se):ge===Se?q.push(Se):He(B.prev)?Y.push(ge):Y.push(bt("",Pe,{groupId:f[E-1]}))),ce&&(wi(B)?He(B.next)&&we.push(Se,Se):ce===Se?He(B.next)&&we.push(Se):W.push(ce)),[...q,de([...Y,de([ba(y,s,l),...W],{id:f[E]})]),...we]},"children")}function S1(a,s,l){let{node:p}=a,f=[];E1(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",de(l("parameters")),")"),f.push(" {");let y=sd(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Fe([Se,qo(a,s,l)])),y&&f.push(Se,"}")):y&&f.push("}"),de(f,{shouldBreak:!0})}function sd(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=x1.get(a.name))!=null&&l.has(a.next.name))}function E1(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!sd(s)}function F1(a,s,l){return[Fe([Pe,yn([";",_e],a.map(l,"children"))]),Pe]}function A1(a,s,l){let{node:p}=a;return[va(p,s),de([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Fe([_e,yn(_e,a.map(l,"cases"))])]:"",Pe]),ha(p,s)]}function $1(a,s,l){let{node:p}=a;return[p.value," {",de([Fe([Pe,a.map(({node:f})=>f.type==="text"&&!At.trim(f.value)?"":l(),"expression")]),Pe]),"}"]}function T1(a,s,l){let{node:p}=a;if(Be(p,s))return[Yn(p,s),de(Io(a,s,l)),mt(ad(p,s)),...Lo(p,s),Vn(p,s)];let f=p.children.length===1&&(p.firstChild.type==="interpolation"||p.firstChild.type==="angularIcuExpression")&&p.firstChild.isLeadingSpaceSensitive&&!p.firstChild.hasLeadingSpaces&&p.lastChild.isTrailingSpaceSensitive&&!p.lastChild.hasTrailingSpaces,y=Symbol("element-attr-group-id"),E=W=>de([de(Io(a,s,l),{id:y}),W,Lo(p,s)]),B=W=>f?Dn(W,{groupId:y}):(tt(p)||Ci(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?W:Fe(W),q=()=>f?bt(Pe,"",{groupId:y}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?_e:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?ft(Pe):Pe,Y=()=>(p.next?Gn(p.next):ma(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?bt(Pe,"",{groupId:y}):p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?_e:(p.lastChild.type==="comment"||p.lastChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${s.tabWidth*(a.ancestors.length-1)}}$`,"u").test(p.lastChild.value)?"":Pe;return p.children.length===0?E(p.hasDanglingSpaces&&p.isDanglingSpaceSensitive?_e:""):E([uk(p)?kt:"",B([q(),qo(a,s,l)]),Y()])}function Ai(a){return a>=9&&a<=32||a==160}function Ho(a){return 48<=a&&a<=57}function $i(a){return a>=97&&a<=122||a>=65&&a<=90}function B1(a){return a>=97&&a<=102||a>=65&&a<=70||Ho(a)}function Uo(a){return a===10||a===13}function od(a){return 48<=a&&a<=55}function Wo(a){return a===39||a===34||a===96}var N1=/-+([a-z0-9])/g;function j1(a){return a.replace(N1,(...s)=>s[1].toUpperCase())}var zo=class Vd{constructor(s,l,p,f){this.file=s,this.offset=l,this.line=p,this.col=f}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(s){let l=this.file.content,p=l.length,f=this.offset,y=this.line,E=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){y--;let B=l.substring(0,f-1).lastIndexOf(`
586
586
  `);E=B>0?f-B:f}else E--;for(;f<p&&s>0;){let B=l.charCodeAt(f);f++,s--,B==10?(y++,E=0):E++}return new Vd(this.file,f,y,E)}getContext(s,l){let p=this.file.content,f=this.offset;if(f!=null){f>p.length-1&&(f=p.length-1);let y=f,E=0,B=0;for(;E<s&&f>0&&(f--,E++,!(p[f]==`
587
587
  `&&++B==l)););for(E=0,B=0;E<s&&y<p.length-1&&(y++,E++,!(p[y]==`
588
- `&&++B==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,y+1)}}return null}},ld=class{constructor(a,s){this.content=a,this.url=s}},oe=class{constructor(a,s,l=a,p=null){this.start=a,this.end=s,this.fullStart=l,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Bi;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Bi||(Bi={}));var ud=class{constructor(a,s,l=Bi.ERROR){this.span=a,this.msg=s,this.level=l}contextualMessage(){let a=this.span.start.getContext(100,3);return a?`${this.msg} ("${a.before}[${Bi[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},P1=[O1,I1,R1,H1,U1,V1,W1,z1,G1,q1];function L1(a,s){for(let l of P1)l(a,s);return a}function O1(a){a.walk(s=>{if(s.type==="element"&&s.tagDefinition.ignoreFirstLf&&s.children.length>0&&s.children[0].type==="text"&&s.children[0].value[0]===`
589
- `){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function I1(a){let s=l=>{var p,f;return l.type==="element"&&((p=l.prev)==null?void 0:p.type)==="ieConditionalStartComment"&&l.prev.sourceSpan.end.offset===l.startSourceSpan.start.offset&&((f=l.firstChild)==null?void 0:f.type)==="ieConditionalEndComment"&&l.firstChild.sourceSpan.start.offset===l.startSourceSpan.end.offset};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,E=f.firstChild;l.removeChild(y),p--;let B=new oe(y.sourceSpan.start,E.sourceSpan.end),q=new oe(B.start,f.sourceSpan.end);f.condition=y.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(E)}})}function M1(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let y=p.children[f];if(y.type!=="text"&&!s(y))continue;y.type!=="text"&&(y.type="text",y.value=l(y));let E=y.prev;!E||E.type!=="text"||(E.value+=y.value,E.sourceSpan=new oe(E.sourceSpan.start,y.sourceSpan.end),p.removeChild(y),f--)}})}function R1(a){return M1(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function q1(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!At.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((p=l.prev)==null?void 0:p.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,E=f.next;y.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+E.value,y.sourceSpan=new oe(y.sourceSpan.start,E.sourceSpan.end),y.isTrailingSpaceSensitive=E.isTrailingSpaceSensitive,y.hasTrailingSpaces=E.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(E)}})}function H1(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(at(p))for(let f of p.children){if(f.type!=="text")continue;let y=f.sourceSpan.start,E=null,B=f.value.split(l);for(let q=0;q<B.length;q++,y=E){let Y=B[q];if(q%2===0){E=y.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new oe(y,E)});continue}E=y.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new oe(y,E),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new oe(y.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function U1(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&At.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=pa(s),p=wi(s);if(!l)for(let f=0;f<s.children.length;f++){let y=s.children[f];if(y.type!=="text")continue;let{leadingWhitespace:E,text:B,trailingWhitespace:q}=et(y.value),Y=y.prev,W=y.next;B?(y.value=B,y.sourceSpan=new oe(y.sourceSpan.start.moveBy(E.length),y.sourceSpan.end.moveBy(-q.length)),E&&(Y&&(Y.hasTrailingSpaces=!0),y.hasLeadingSpaces=!0),q&&(y.hasTrailingSpaces=!0,W&&(W.hasLeadingSpaces=!0))):(s.removeChild(y),f--,(E||q)&&(Y&&(Y.hasTrailingSpaces=!0),W&&(W.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function W1(a){a.walk(s=>{s.isSelfClosing=!s.children||s.type==="element"&&(s.tagDefinition.isVoid||s.endSourceSpan&&s.startSourceSpan.start===s.endSourceSpan.start&&s.startSourceSpan.end===s.endSourceSpan.end)})}function z1(a,s){a.walk(l=>{l.type==="element"&&(l.hasHtmComponentClosingTag=l.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(s.originalText.slice(l.endSourceSpan.start.offset,l.endSourceSpan.end.offset)))})}function V1(a,s){a.walk(l=>{l.cssDisplay=kk(l,s)})}function G1(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=lk(l);return}for(let f of p)f.isLeadingSpaceSensitive=Ao(f,s),f.isTrailingSpaceSensitive=ok(f,s);for(let f=0;f<p.length;f++){let y=p[f];y.isLeadingSpaceSensitive=(f===0||y.prev.isTrailingSpaceSensitive)&&y.isLeadingSpaceSensitive,y.isTrailingSpaceSensitive=(f===p.length-1||y.next.isLeadingSpaceSensitive)&&y.isTrailingSpaceSensitive}}})}var Y1=L1;function K1(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return mt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[de(Ho(a,s,l)),xe];case"element":case"ieConditionalComment":return T1(a,s,l);case"angularControlFlowBlock":return S1(a,s,l);case"angularControlFlowBlockParameters":return F1(a,s,l);case"angularControlFlowBlockParameter":return At.trim(p.expression);case"angularLetDeclaration":return de(["@let ",de([p.id," =",de(Ee([_e,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return A1(a,s,l);case"angularIcuCase":return $1(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[va(p),ha(p)];case"interpolation":return[va(p,s),...a.map(l,"children"),ha(p,s)];case"text":{if(p.parent.type==="interpolation"){let y=/\n[^\S\n]*$/u,E=y.test(p.value),B=E?p.value.replace(y,""):p.value;return[mt(B),E?xe:""]}let f=hi([Yn(p,s),...Yp(p),Vn(p,s)]);return Array.isArray(f)?yt(f):f}case"docType":return[de([va(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ha(p,s)];case"comment":return[Yn(p,s),mt(s.originalText.slice(xi(p),Si(p))),Vn(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=Gp(p.value),y=gi(f,'"');return[p.rawName,"=",y,mt(y==='"'?C(!1,f,'"',"&quot;"):C(!1,f,"'","&apos;")),y]}case"cdata":default:throw new oa(p,"HTML")}}var J1={preprocess:Y1,print:K1,insertPragma:_1,massageAstNode:_o,embed:f1,getVisitorKeys:w1},X1=J1,Q1=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cd={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pd="HTML",Z1={bracketSameLine:cd.bracketSameLine,htmlWhitespaceSensitivity:{category:pd,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:cd.singleAttributePerLine,vueIndentScriptAndStyle:{category:pd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ew=Z1,dd={};c(dd,{angular:()=>rC,html:()=>nC,lwc:()=>iC,vue:()=>aC});var hd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(hd||(hd={}));var fd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(fd||(fd={}));var md;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(md||(md={}));var gd={name:"custom-elements"},vd={name:"no-errors-schema"},Kn;(function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"})(Kn||(Kn={}));var Dd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Dd||(Dd={}));var Nt;(function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"})(Nt||(Nt={}));function Ni(a,s=!0){if(a[0]!=":")return[null,a];let l=a.indexOf(":",1);if(l===-1){if(s)throw new Error(`Unsupported format "${a}" expecting ":namespace:name"`);return[null,a]}return[a.slice(1,l),a.slice(l+1)]}function yd(a){return Ni(a)[1]==="ng-container"}function bd(a){return Ni(a)[1]==="ng-content"}function ji(a){return a===null?null:Ni(a)[0]}function Pi(a,s){return a?`:${a}:${s}`:s}var Li;function kd(){return Li||(Li={},Oi(Kn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Oi(Kn.STYLE,["*|style"]),Oi(Kn.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Oi(Kn.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Li}function Oi(a,s){for(let l of s)Li[l.toLowerCase()]=a}var tw=class{},nw="boolean",rw="number",aw="string",iw="object",sw=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],wd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ow=Array.from(wd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),lw=class extends tw{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,sw.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),y=f.split(","),[E,B]=p.split("^");E.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[Y,W]of q)s.set(Y,W);for(let Y of this._eventSchema.get(B.toLowerCase()))l.add(Y)}y.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),nw);break;case"#":s.set(Y.substring(1),rw);break;case"%":s.set(Y.substring(1),iw);break;default:s.set(Y,aw)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===vd.name))return!0;if(a.indexOf("-")>-1){if(yd(a)||bd(a))return!1;if(l.some(p=>p.name===gd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===vd.name)||a.indexOf("-")>-1&&(yd(a)||bd(a)||s.some(l=>l.name===gd.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let p=kd()[a+"|"+s];return p||(p=kd()["*|"+s],p||Kn.NONE)}getMappedPropName(a){return wd.get(a)??a}getDefaultComponentElementName(){return"ng-component"}validateProperty(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...
590
- If '${a}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(a){let s=this._schema.get(a.toLowerCase())||this._schema.get("unknown");return Array.from(s.keys()).map(l=>ow.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return j1(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),y=null;if(uw(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let E=l.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&E[1].length==0&&(y=`Please provide a CSS unit value for ${s}:${l}`)}return{error:y,value:f+p}}};function uw(a){switch(a){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ae=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=Nt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:y=!1,preventNamespaceInheritance:E=!1,canSelfClose:B=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(q=>this.closedByChildren[q]=!0),this.isVoid=f,this.closedByParent=p||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=y,this.preventNamespaceInheritance=E,this.canSelfClose=B??f}isClosedByChild(a){return this.isVoid||a.toLowerCase()in this.closedByChildren}getContentType(a){return typeof this.contentType=="object"?(a===void 0?void 0:this.contentType[a])??this.contentType.default:this.contentType}},Cd,ka;function Go(a){return ka||(Cd=new ae({canSelfClose:!0}),ka=Object.assign(Object.create(null),{base:new ae({isVoid:!0}),meta:new ae({isVoid:!0}),area:new ae({isVoid:!0}),embed:new ae({isVoid:!0}),link:new ae({isVoid:!0}),img:new ae({isVoid:!0}),input:new ae({isVoid:!0}),param:new ae({isVoid:!0}),hr:new ae({isVoid:!0}),br:new ae({isVoid:!0}),source:new ae({isVoid:!0}),track:new ae({isVoid:!0}),wbr:new ae({isVoid:!0}),p:new ae({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ae({closedByChildren:["tbody","tfoot"]}),tbody:new ae({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ae({closedByChildren:["tbody"],closedByParent:!0}),tr:new ae({closedByChildren:["tr"],closedByParent:!0}),td:new ae({closedByChildren:["td","th"],closedByParent:!0}),th:new ae({closedByChildren:["td","th"],closedByParent:!0}),col:new ae({isVoid:!0}),svg:new ae({implicitNamespacePrefix:"svg"}),foreignObject:new ae({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ae({implicitNamespacePrefix:"math"}),li:new ae({closedByChildren:["li"],closedByParent:!0}),dt:new ae({closedByChildren:["dt","dd"]}),dd:new ae({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ae({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ae({closedByChildren:["optgroup"],closedByParent:!0}),option:new ae({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ae({ignoreFirstLf:!0}),listing:new ae({ignoreFirstLf:!0}),style:new ae({contentType:Nt.RAW_TEXT}),script:new ae({contentType:Nt.RAW_TEXT}),title:new ae({contentType:{default:Nt.ESCAPABLE_RAW_TEXT,svg:Nt.PARSABLE_DATA}}),textarea:new ae({contentType:Nt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new lw().allKnownElementNames().forEach(s=>{!ka[s]&&ji(s)===null&&(ka[s]=new ae({canSelfClose:!1}))})),ka[a]??Cd}var wr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},cw=class extends wr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},pw=class extends wr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},dw=class extends wr{constructor(a,s,l,p,f,y){super(p,y),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},hw=class{constructor(a,s,l,p,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=p,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},fw=class extends wr{constructor(a,s,l,p,f,y,E){super(l,E),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=y,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},kn=class extends wr{constructor(a,s,l,p,f,y=null,E=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=y,this.nameSpan=E,this.type="element"}visit(a,s){return a.visitElement(this,s)}},mw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},gw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},Cr=class extends wr{constructor(a,s,l,p,f,y,E=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=y,this.endSourceSpan=E,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},_d=class{constructor(a,s){this.expression=a,this.sourceSpan=s,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitBlockParameter(this,s)}},xd=class{constructor(a,s,l,p,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=p,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function Sd(a,s,l=null){let p=[],f=a.visit?y=>a.visit(y,l)||y.visit(a,l):y=>y.visit(a,l);return s.forEach(y=>{let E=f(y);E&&p.push(E)}),p}var vw=class{constructor(){}visitElement(a,s){this.visitChildren(s,l=>{l(a.attrs),l(a.children)})}visitAttribute(a,s){}visitText(a,s){}visitCdata(a,s){}visitComment(a,s){}visitDocType(a,s){}visitExpansion(a,s){return this.visitChildren(s,l=>{l(a.cases)})}visitExpansionCase(a,s){}visitBlock(a,s){this.visitChildren(s,l=>{l(a.parameters),l(a.children)})}visitBlockParameter(a,s){}visitLetDeclaration(a,s){}visitChildren(a,s){let l=[],p=this;function f(y){y&&l.push(Sd(p,y,a))}return s(f),Array.prototype.concat.apply([],l)}},Ii={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
591
- `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Dw="";Ii.ngsp=Dw;var yw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function bw(a,s){if(s!=null&&!(Array.isArray(s)&&s.length==2))throw new Error(`Expected '${a}' to be an array, [start, end].`);if(s!=null){let l=s[0],p=s[1];yw.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var kw=class Gd{static fromArray(s){return s?(bw("interpolation",s),new Gd(s[0],s[1])):Ed}constructor(s,l){this.start=s,this.end=l}},Ed=new kw("{{","}}"),Yo=class extends ud{constructor(a,s,l){super(l,a),this.tokenType=s}},ww=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function Cw(a,s,l,p={}){let f=new Sw(new ld(a,s),l,p);return f.tokenize(),new ww(Bw(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var _w=/\r\n?/g;function _r(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function Fd(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function xw(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var Mi;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(Mi||(Mi={}));var Ko=class{constructor(a){this.error=a}},Sw=class{constructor(a,s,l){this._getTagContentType=s,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=l.tokenizeExpansionForms||!1,this._interpolationConfig=l.interpolationConfig||Ed,this._leadingTriviaCodePoints=l.leadingTriviaChars&&l.leadingTriviaChars.map(f=>f.codePointAt(0)||0),this._canSelfClose=l.canSelfClose||!1,this._allowHtmComponentClosingTags=l.allowHtmComponentClosingTags||!1;let p=l.range||{endPos:a.content.length,startPos:0,startLine:0,startCol:0};this._cursor=l.escapedString?new Nw(a,p):new Nd(a,p),this._preserveLineEndings=l.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=l.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=l.tokenizeBlocks??!0,this._tokenizeLet=l.tokenizeLet??!0;try{this._cursor.init()}catch(f){this.handleError(f)}}_processCarriageReturns(a){return this._preserveLineEndings?a:a.replace(_w,`
592
- `)}tokenize(){for(;this._cursor.peek()!==0;){let a=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(a):this._attemptStr("--")?this._consumeComment(a):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(a):this._consumeBogusComment(a);else if(this._attemptCharCode(47))this._consumeTagClose(a);else{let s=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=s,this._consumeBogusComment(a)):this._consumeTagOpen(a)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(a):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(a):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(a):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(s){this.handleError(s)}}this._beginToken(34),this._endToken([])}_getBlockName(){let a=!1,s=this._cursor.clone();return this._attemptCharCodeUntilFn(l=>$i(l)?!a:Td(l)?(a=!0,!1):!0),this._cursor.getChars(s).trim()}_consumeBlockStart(a){this._beginToken(25,a);let s=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Re),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Re);else{s.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):s.type=29}_consumeBlockEnd(a){this._beginToken(27,a),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Bd);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let a=this._cursor.clone(),s=null,l=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||s!==null;){let p=this._cursor.peek();if(p===92)this._cursor.advance();else if(p===s)s=null;else if(s===null&&zo(p))s=p;else if(p===40&&s===null)l++;else if(p===41&&s===null){if(l===0)break;l>0&&l--}this._cursor.advance()}this._endToken([this._cursor.getChars(a)]),this._attemptCharCodeUntilFn(Bd)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),$i(this._cursor.peek()))this._attemptCharCodeUntilFn(Re);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Re),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>Re(l)&&!Wo(l)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(s.type=33,s.sourceSpan=this._cursor.getSpan(a))}_getLetDeclarationName(){let a=this._cursor.clone(),s=!1;return this._attemptCharCodeUntilFn(l=>Ti(l)||l==36||l===95||s&&Uo(l)?(s=!0,!1):!0),this._cursor.getChars(a).trim()}_consumeLetDeclarationValue(){let a=this._cursor.clone();for(this._beginToken(31,a);this._cursor.peek()!==0;){let s=this._cursor.peek();if(s===59)break;zo(s)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(l=>l===92?(this._cursor.advance(),!1):l===s)),this._cursor.advance()}this._endToken([this._cursor.getChars(a)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if($w(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(a,s=this._cursor.clone()){this._currentTokenStart=s,this._currentTokenType=a}_endToken(a,s){if(this._currentTokenStart===null)throw new Yo("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(s));if(this._currentTokenType===null)throw new Yo("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let l={type:this._currentTokenType,parts:a,sourceSpan:(s??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(l),this._currentTokenStart=null,this._currentTokenType=null,l}_createError(a,s){this._isInExpansionForm()&&(a+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let l=new Yo(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new Ko(l)}handleError(a){if(a instanceof Jo&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof Ko)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return Tw(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(_r(this._cursor.peek()),this._cursor.getSpan(s))}_attemptStr(a){let s=a.length;if(this._cursor.charsLeft()<s)return!1;let l=this._cursor.clone();for(let p=0;p<s;p++)if(!this._attemptCharCode(a.charCodeAt(p)))return this._cursor=l,!1;return!0}_attemptStrCaseInsensitive(a){for(let s=0;s<a.length;s++)if(!this._attemptCharCodeCaseInsensitive(a.charCodeAt(s)))return!1;return!0}_requireStr(a){let s=this._cursor.clone();if(!this._attemptStr(a))throw this._createError(_r(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(_r(this._cursor.peek()),this._cursor.getSpan(s))}_attemptCharCodeUntilFn(a){for(;!a(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(a,s){let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(a),this._cursor.diff(l)<s)throw this._createError(_r(this._cursor.peek()),this._cursor.getSpan(l))}_attemptUntilChar(a){for(;this._cursor.peek()!==a;)this._cursor.advance()}_readChar(){let a=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),a}_consumeEntity(a){this._beginToken(9);let s=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let l=this._attemptCharCode(120)||this._attemptCharCode(88),p=this._cursor.clone();if(this._attemptCharCodeUntilFn(Fw),this._cursor.peek()!=59){this._cursor.advance();let y=l?Mi.HEX:Mi.DEC;throw this._createError(xw(y,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(p);this._cursor.advance();try{let y=parseInt(f,l?16:10);this._endToken([String.fromCharCode(y),this._cursor.getChars(s)])}catch{throw this._createError(Fd(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(Aw),this._cursor.peek()!=59)this._beginToken(a,s),this._cursor=l,this._endToken(["&"]);else{let p=this._cursor.getChars(l);this._cursor.advance();let f=Ii[p];if(!f)throw this._createError(Fd(p),this._cursor.getSpan(s));this._endToken([f,`&${p};`])}}}_consumeRawText(a,s){this._beginToken(a?6:7);let l=[];for(;;){let p=this._cursor.clone(),f=s();if(this._cursor=p,f)break;a&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(l.join(""))]),l.length=0,this._consumeEntity(6),this._beginToken(6)):l.push(this._readChar())}this._endToken([this._processCarriageReturns(l.join(""))])}_consumeComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(a){this._beginToken(12,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(a){this._beginToken(18,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let a=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!Ew(this._cursor.peek());)this._cursor.advance();let l;this._cursor.peek()===58?(s=this._cursor.getChars(a),this._cursor.advance(),l=this._cursor.clone()):l=a,this._requireCharCodeUntilFn(Ad,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!Ti(this._cursor.peek()))throw this._createError(_r(this._cursor.peek()),this._cursor.getSpan(a));for(p=this._consumeTagOpenStart(a),l=p.parts[0],s=p.parts[1],this._attemptCharCodeUntilFn(Re);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[E,B]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Re);let q=this._consumeAttributeValue();f.push({prefix:E,name:B,value:q})}else f.push({prefix:E,name:B});this._attemptCharCodeUntilFn(Re)}this._consumeTagOpenEnd()}catch(E){if(E instanceof Ko){p?p.type=4:(this._beginToken(5,a),this._endToken(["<"]));return}throw E}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let y=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),y===Nt.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):y===Nt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Re),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(p=>p===62,3),this._cursor.advance(),this._endToken([a,s]),this._handleFullNameStackForTagClose(a,s)}_consumeTagOpenStart(a){this._beginToken(0,a);let s=this._consumePrefixAndName();return this._endToken(s)}_consumeAttributeName(){let a=this._cursor.peek();if(a===39||a===34)throw this._createError(_r(a),this._cursor.getSpan());this._beginToken(14);let s=this._consumePrefixAndName();return this._endToken(s),s}_consumeAttributeValue(){let a;if(this._cursor.peek()===39||this._cursor.peek()===34){let s=this._cursor.peek();this._consumeQuote(s);let l=()=>this._cursor.peek()===s;a=this._consumeWithInterpolation(16,17,l,l),this._consumeQuote(s)}else{let s=()=>Ad(this._cursor.peek());a=this._consumeWithInterpolation(16,17,s,s)}return a}_consumeQuote(a){this._beginToken(15),this._requireCharCode(a),this._endToken([String.fromCodePoint(a)])}_consumeTagOpenEnd(){let a=this._attemptCharCode(47)?2:1;this._beginToken(a),this._requireCharCode(62),this._endToken([])}_consumeTagClose(a){if(this._beginToken(3,a),this._attemptCharCodeUntilFn(Re),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([s,l]),this._handleFullNameStackForTagClose(s,l)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let a=this._readUntil(44),s=this._processCarriageReturns(a);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([s]);else{let p=this._endToken([a]);s!==a&&this.nonNormalizedIcuExpressions.push(p)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Re),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Re)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(Re),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(a,s,l,p){this._beginToken(a);let f=[];for(;!l();){let E=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(f.join(""))],E),f.length=0,this._consumeInterpolation(s,E,p),this._beginToken(a)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(f.join(""))]),f.length=0,this._consumeEntity(a),this._beginToken(a)):f.push(this._readChar())}this._inInterpolation=!1;let y=this._processCarriageReturns(f.join(""));return this._endToken([y]),y}_consumeInterpolation(a,s,l){let p=[];this._beginToken(a,s),p.push(this._interpolationConfig.start);let f=this._cursor.clone(),y=null,E=!1;for(;this._cursor.peek()!==0&&(l===null||!l());){let B=this._cursor.clone();if(this._isTagStart()){this._cursor=B,p.push(this._getProcessedChars(f,B)),this._endToken(p);return}if(y===null)if(this._attemptStr(this._interpolationConfig.end)){p.push(this._getProcessedChars(f,B)),p.push(this._interpolationConfig.end),this._endToken(p);return}else this._attemptStr("//")&&(E=!0);let q=this._cursor.peek();this._cursor.advance(),q===92?this._cursor.advance():q===y?y=null:!E&&y===null&&zo(q)&&(y=q)}p.push(this._getProcessedChars(f,this._cursor)),this._endToken(p)}_getProcessedChars(a,s){return this._processCarriageReturns(s.getChars(a))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let a=this._cursor.clone();a.advance();let s=a.peek();if(97<=s&&s<=122||65<=s&&s<=90||s===47||s===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let a=this._cursor.clone();if(a.advance(),Td(a.peek()))return!0}return!1}_readUntil(a){let s=this._cursor.clone();return this._attemptUntilChar(a),this._cursor.getChars(s)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let a=this._cursor.clone(),s=this._attemptStr(this._interpolationConfig.start);return this._cursor=a,!s}return!0}_handleFullNameStackForTagOpen(a,s){let l=Pi(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=Pi(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function Re(a){return!$i(a)||a===0}function Ad(a){return $i(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function Ew(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function Fw(a){return a===59||a===0||!B1(a)}function Aw(a){return a===59||a===0||!Ti(a)}function $w(a){return a!==125}function Tw(a,s){return $d(a)===$d(s)}function $d(a){return a>=97&&a<=122?a-97+65:a}function Td(a){return Ti(a)||Uo(a)||a===95}function Bd(a){return a!==59&&Re(a)}function Bw(a){let s=[],l;for(let p=0;p<a.length;p++){let f=a[p];l&&l.type===5&&f.type===5||l&&l.type===16&&f.type===16?(l.parts[0]+=f.parts[0],l.sourceSpan.end=f.sourceSpan.end):(l=f,s.push(l))}return s}var Nd=class Zo{constructor(s,l){if(s instanceof Zo){this.file=s.file,this.input=s.input,this.end=s.end;let p=s.state;this.state={peek:p.peek,offset:p.offset,line:p.line,column:p.column}}else{if(!l)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=s,this.input=s.content,this.end=l.endPos,this.state={peek:-1,offset:l.startPos,line:l.startLine,column:l.startCol}}}clone(){return new Zo(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(s){return this.state.offset-s.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(s,l){s=s||this;let p=s;if(l)for(;this.diff(s)>0&&l.indexOf(s.peek())!==-1;)p===s&&(s=s.clone()),s.advance();let f=this.locationFromCursor(s),y=this.locationFromCursor(this),E=p!==s?this.locationFromCursor(p):f;return new oe(f,y,E)}getChars(s){return this.input.substring(s.state.offset,this.state.offset)}charAt(s){return this.input.charCodeAt(s)}advanceState(s){if(s.offset>=this.end)throw this.state=s,new Jo('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):Wo(l)||s.column++,s.offset++,this.updatePeek(s)}updatePeek(s){s.peek=s.offset>=this.end?0:this.charAt(s.offset)}locationFromCursor(s){return new Vo(s.file,s.state.offset,s.state.line,s.state.column)}},Nw=class el extends Nd{constructor(s,l){s instanceof el?(super(s),this.internalState={...s.internalState}):(super(s,l),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new el(this)}getChars(s){let l=s.clone(),p="";for(;l.internalState.offset<this.internalState.offset;)p+=String.fromCodePoint(l.peek()),l.advance();return p}processEscapeSequence(){let s=()=>this.internalState.peek;if(s()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),s()===110)this.state.peek=10;else if(s()===114)this.state.peek=13;else if(s()===118)this.state.peek=11;else if(s()===116)this.state.peek=9;else if(s()===98)this.state.peek=8;else if(s()===102)this.state.peek=12;else if(s()===117)if(this.advanceState(this.internalState),s()===123){this.advanceState(this.internalState);let l=this.clone(),p=0;for(;s()!==125;)this.advanceState(this.internalState),p++;this.state.peek=this.decodeHexDigits(l,p)}else{let l=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,4)}else if(s()===120){this.advanceState(this.internalState);let l=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,2)}else if(od(s())){let l="",p=0,f=this.clone();for(;od(s())&&p<3;)f=this.clone(),l+=String.fromCodePoint(s()),this.advanceState(this.internalState),p++;this.state.peek=parseInt(l,8),this.internalState=f.internalState}else Wo(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(s,l){let p=this.input.slice(s.internalState.offset,s.internalState.offset+l),f=parseInt(p,16);if(isNaN(f))throw s.state=s.internalState,new Jo("Invalid hexadecimal escape sequence",s);return f}},Jo=class{constructor(a,s){this.msg=a,this.cursor=s}},ut=class Yd extends ud{static create(s,l,p){return new Yd(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},jw=class{constructor(a,s){this.rootNodes=a,this.errors=s}},Pw=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let y=ce=>(Fe,...Ue)=>ce(Fe.toLowerCase(),...Ue),E=p?this.getTagDefinition:y(this.getTagDefinition),B=ce=>E(ce).getContentType(),q=p?f:y(f),Y=Cw(a,s,f?(ce,Fe,Ue,nt)=>{let it=q(ce,Fe,Ue,nt);return it!==void 0?it:B(ce)}:B,l),W=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,ge=new Lw(Y.tokens,E,W,we,p);return ge.build(),new jw(ge.rootNodes,Y.errors.concat(ge.errors))}},Lw=class Kd{constructor(s,l,p,f,y){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=p,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=y,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let s of this._containerStack)s instanceof Cr&&this.errors.push(ut.create(s.name,s.sourceSpan,`Unclosed block "${s.name}"`))}_advance(){let s=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],s}_advanceIf(s){return this._peek.type===s?this._advance():null}_consumeCdata(s){let l=this._advance(),p=this._getText(l),f=this._advanceIf(13);this._addToParent(new pw(p,new oe(s.sourceSpan.start,(f||l).sourceSpan.end),[l]))}_consumeComment(s){let l=this._advanceIf(7),p=this._advanceIf(11),f=l!=null?l.parts[0].trim():null,y=p==null?s.sourceSpan:new oe(s.sourceSpan.start,p.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new mw(f,y))}_consumeDocType(s){let l=this._advanceIf(7),p=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,y=new oe(s.sourceSpan.start,(p||l||s).sourceSpan.end);this._addToParent(new gw(f,y))}_consumeExpansion(s){let l=this._advance(),p=this._advance(),f=[];for(;this._peek.type===21;){let E=this._parseExpansionCase();if(!E)return;f.push(E)}if(this._peek.type!==24){this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let y=new oe(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new dw(l.parts[0],p.parts[0],f,y,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let l=this._advance(),p=this._collectExpansionExpTokens(l);if(!p)return null;let f=this._advance();p.push({type:34,parts:[],sourceSpan:f.sourceSpan});let y=new Kd(p,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(y.build(),y.errors.length>0)return this.errors=this.errors.concat(y.errors),null;let E=new oe(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),B=new oe(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new hw(s.parts[0],y.rootNodes,E,s.sourceSpan,B)}_collectExpansionExpTokens(s){let l=[],p=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&p.push(this._peek.type),this._peek.type===23)if(jd(p,22)){if(p.pop(),p.length===0)return l}else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(jd(p,20))p.pop();else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;l.push(this._advance())}}_getText(s){let l=s.parts[0];if(l.length>0&&l[0]==`
588
+ `&&++B==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,y+1)}}return null}},ld=class{constructor(a,s){this.content=a,this.url=s}},oe=class{constructor(a,s,l=a,p=null){this.start=a,this.end=s,this.fullStart=l,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ti;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Ti||(Ti={}));var ud=class{constructor(a,s,l=Ti.ERROR){this.span=a,this.msg=s,this.level=l}contextualMessage(){let a=this.span.start.getContext(100,3);return a?`${this.msg} ("${a.before}[${Ti[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},P1=[O1,I1,R1,H1,U1,V1,W1,z1,G1,q1];function L1(a,s){for(let l of P1)l(a,s);return a}function O1(a){a.walk(s=>{if(s.type==="element"&&s.tagDefinition.ignoreFirstLf&&s.children.length>0&&s.children[0].type==="text"&&s.children[0].value[0]===`
589
+ `){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function I1(a){let s=l=>{var p,f;return l.type==="element"&&((p=l.prev)==null?void 0:p.type)==="ieConditionalStartComment"&&l.prev.sourceSpan.end.offset===l.startSourceSpan.start.offset&&((f=l.firstChild)==null?void 0:f.type)==="ieConditionalEndComment"&&l.firstChild.sourceSpan.start.offset===l.startSourceSpan.end.offset};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,E=f.firstChild;l.removeChild(y),p--;let B=new oe(y.sourceSpan.start,E.sourceSpan.end),q=new oe(B.start,f.sourceSpan.end);f.condition=y.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(E)}})}function M1(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let y=p.children[f];if(y.type!=="text"&&!s(y))continue;y.type!=="text"&&(y.type="text",y.value=l(y));let E=y.prev;!E||E.type!=="text"||(E.value+=y.value,E.sourceSpan=new oe(E.sourceSpan.start,y.sourceSpan.end),p.removeChild(y),f--)}})}function R1(a){return M1(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function q1(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!At.hasWhitespaceCharacter(l.children[0].value)&&!l.firstChild.hasLeadingSpaces&&!l.firstChild.hasTrailingSpaces&&l.isLeadingSpaceSensitive&&!l.hasLeadingSpaces&&l.isTrailingSpaceSensitive&&!l.hasTrailingSpaces&&((p=l.prev)==null?void 0:p.type)==="text"&&((f=l.next)==null?void 0:f.type)==="text"};a.walk(l=>{if(l.children)for(let p=0;p<l.children.length;p++){let f=l.children[p];if(!s(f))continue;let y=f.prev,E=f.next;y.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+E.value,y.sourceSpan=new oe(y.sourceSpan.start,E.sourceSpan.end),y.isTrailingSpaceSensitive=E.isTrailingSpaceSensitive,y.hasTrailingSpaces=E.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(E)}})}function H1(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(at(p))for(let f of p.children){if(f.type!=="text")continue;let y=f.sourceSpan.start,E=null,B=f.value.split(l);for(let q=0;q<B.length;q++,y=E){let Y=B[q];if(q%2===0){E=y.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new oe(y,E)});continue}E=y.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new oe(y,E),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new oe(y.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function U1(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&At.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=pa(s),p=ki(s);if(!l)for(let f=0;f<s.children.length;f++){let y=s.children[f];if(y.type!=="text")continue;let{leadingWhitespace:E,text:B,trailingWhitespace:q}=et(y.value),Y=y.prev,W=y.next;B?(y.value=B,y.sourceSpan=new oe(y.sourceSpan.start.moveBy(E.length),y.sourceSpan.end.moveBy(-q.length)),E&&(Y&&(Y.hasTrailingSpaces=!0),y.hasLeadingSpaces=!0),q&&(y.hasTrailingSpaces=!0,W&&(W.hasLeadingSpaces=!0))):(s.removeChild(y),f--,(E||q)&&(Y&&(Y.hasTrailingSpaces=!0),W&&(W.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function W1(a){a.walk(s=>{s.isSelfClosing=!s.children||s.type==="element"&&(s.tagDefinition.isVoid||s.endSourceSpan&&s.startSourceSpan.start===s.endSourceSpan.start&&s.startSourceSpan.end===s.endSourceSpan.end)})}function z1(a,s){a.walk(l=>{l.type==="element"&&(l.hasHtmComponentClosingTag=l.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(s.originalText.slice(l.endSourceSpan.start.offset,l.endSourceSpan.end.offset)))})}function V1(a,s){a.walk(l=>{l.cssDisplay=kk(l,s)})}function G1(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=lk(l);return}for(let f of p)f.isLeadingSpaceSensitive=Fo(f,s),f.isTrailingSpaceSensitive=ok(f,s);for(let f=0;f<p.length;f++){let y=p[f];y.isLeadingSpaceSensitive=(f===0||y.prev.isTrailingSpaceSensitive)&&y.isLeadingSpaceSensitive,y.isTrailingSpaceSensitive=(f===p.length-1||y.next.isLeadingSpaceSensitive)&&y.isTrailingSpaceSensitive}}})}var Y1=L1;function K1(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return mt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[de(qo(a,s,l)),Se];case"element":case"ieConditionalComment":return T1(a,s,l);case"angularControlFlowBlock":return S1(a,s,l);case"angularControlFlowBlockParameters":return F1(a,s,l);case"angularControlFlowBlockParameter":return At.trim(p.expression);case"angularLetDeclaration":return de(["@let ",de([p.id," =",de(Fe([_e,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return A1(a,s,l);case"angularIcuCase":return $1(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[va(p),ha(p)];case"interpolation":return[va(p,s),...a.map(l,"children"),ha(p,s)];case"text":{if(p.parent.type==="interpolation"){let y=/\n[^\S\n]*$/u,E=y.test(p.value),B=E?p.value.replace(y,""):p.value;return[mt(B),E?Se:""]}let f=di([Yn(p,s),...Yp(p),Vn(p,s)]);return Array.isArray(f)?yt(f):f}case"docType":return[de([va(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ha(p,s)];case"comment":return[Yn(p,s),mt(s.originalText.slice(_i(p),xi(p))),Vn(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=Gp(p.value),y=mi(f,'"');return[p.rawName,"=",y,mt(y==='"'?C(!1,f,'"',"&quot;"):C(!1,f,"'","&apos;")),y]}case"cdata":default:throw new oa(p,"HTML")}}var J1={preprocess:Y1,print:K1,insertPragma:_1,massageAstNode:Co,embed:f1,getVisitorKeys:w1},X1=J1,Q1=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cd={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},pd="HTML",Z1={bracketSameLine:cd.bracketSameLine,htmlWhitespaceSensitivity:{category:pd,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:cd.singleAttributePerLine,vueIndentScriptAndStyle:{category:pd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},ew=Z1,dd={};c(dd,{angular:()=>rC,html:()=>nC,lwc:()=>iC,vue:()=>aC});var hd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(hd||(hd={}));var fd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(fd||(fd={}));var md;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(md||(md={}));var gd={name:"custom-elements"},vd={name:"no-errors-schema"},Kn;(function(a){a[a.NONE=0]="NONE",a[a.HTML=1]="HTML",a[a.STYLE=2]="STYLE",a[a.SCRIPT=3]="SCRIPT",a[a.URL=4]="URL",a[a.RESOURCE_URL=5]="RESOURCE_URL"})(Kn||(Kn={}));var Dd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Dd||(Dd={}));var Nt;(function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"})(Nt||(Nt={}));function Bi(a,s=!0){if(a[0]!=":")return[null,a];let l=a.indexOf(":",1);if(l===-1){if(s)throw new Error(`Unsupported format "${a}" expecting ":namespace:name"`);return[null,a]}return[a.slice(1,l),a.slice(l+1)]}function yd(a){return Bi(a)[1]==="ng-container"}function bd(a){return Bi(a)[1]==="ng-content"}function Ni(a){return a===null?null:Bi(a)[0]}function ji(a,s){return a?`:${a}:${s}`:s}var Pi;function kd(){return Pi||(Pi={},Li(Kn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Li(Kn.STYLE,["*|style"]),Li(Kn.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Li(Kn.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Pi}function Li(a,s){for(let l of s)Pi[l.toLowerCase()]=a}var tw=class{},nw="boolean",rw="number",aw="string",iw="object",sw=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],wd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ow=Array.from(wd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),lw=class extends tw{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,sw.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),y=f.split(","),[E,B]=p.split("^");E.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[Y,W]of q)s.set(Y,W);for(let Y of this._eventSchema.get(B.toLowerCase()))l.add(Y)}y.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),nw);break;case"#":s.set(Y.substring(1),rw);break;case"%":s.set(Y.substring(1),iw);break;default:s.set(Y,aw)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===vd.name))return!0;if(a.indexOf("-")>-1){if(yd(a)||bd(a))return!1;if(l.some(p=>p.name===gd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===vd.name)||a.indexOf("-")>-1&&(yd(a)||bd(a)||s.some(l=>l.name===gd.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let p=kd()[a+"|"+s];return p||(p=kd()["*|"+s],p||Kn.NONE)}getMappedPropName(a){return wd.get(a)??a}getDefaultComponentElementName(){return"ng-component"}validateProperty(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...
590
+ If '${a}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(a){return a.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${a}' is disallowed for security reasons, please use (${a.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(a){let s=this._schema.get(a.toLowerCase())||this._schema.get("unknown");return Array.from(s.keys()).map(l=>ow.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return j1(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),y=null;if(uw(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let E=l.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&E[1].length==0&&(y=`Please provide a CSS unit value for ${s}:${l}`)}return{error:y,value:f+p}}};function uw(a){switch(a){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ae=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=Nt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:y=!1,preventNamespaceInheritance:E=!1,canSelfClose:B=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(q=>this.closedByChildren[q]=!0),this.isVoid=f,this.closedByParent=p||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=y,this.preventNamespaceInheritance=E,this.canSelfClose=B??f}isClosedByChild(a){return this.isVoid||a.toLowerCase()in this.closedByChildren}getContentType(a){return typeof this.contentType=="object"?(a===void 0?void 0:this.contentType[a])??this.contentType.default:this.contentType}},Cd,ka;function Vo(a){return ka||(Cd=new ae({canSelfClose:!0}),ka=Object.assign(Object.create(null),{base:new ae({isVoid:!0}),meta:new ae({isVoid:!0}),area:new ae({isVoid:!0}),embed:new ae({isVoid:!0}),link:new ae({isVoid:!0}),img:new ae({isVoid:!0}),input:new ae({isVoid:!0}),param:new ae({isVoid:!0}),hr:new ae({isVoid:!0}),br:new ae({isVoid:!0}),source:new ae({isVoid:!0}),track:new ae({isVoid:!0}),wbr:new ae({isVoid:!0}),p:new ae({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ae({closedByChildren:["tbody","tfoot"]}),tbody:new ae({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ae({closedByChildren:["tbody"],closedByParent:!0}),tr:new ae({closedByChildren:["tr"],closedByParent:!0}),td:new ae({closedByChildren:["td","th"],closedByParent:!0}),th:new ae({closedByChildren:["td","th"],closedByParent:!0}),col:new ae({isVoid:!0}),svg:new ae({implicitNamespacePrefix:"svg"}),foreignObject:new ae({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ae({implicitNamespacePrefix:"math"}),li:new ae({closedByChildren:["li"],closedByParent:!0}),dt:new ae({closedByChildren:["dt","dd"]}),dd:new ae({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ae({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ae({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ae({closedByChildren:["optgroup"],closedByParent:!0}),option:new ae({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ae({ignoreFirstLf:!0}),listing:new ae({ignoreFirstLf:!0}),style:new ae({contentType:Nt.RAW_TEXT}),script:new ae({contentType:Nt.RAW_TEXT}),title:new ae({contentType:{default:Nt.ESCAPABLE_RAW_TEXT,svg:Nt.PARSABLE_DATA}}),textarea:new ae({contentType:Nt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new lw().allKnownElementNames().forEach(s=>{!ka[s]&&Ni(s)===null&&(ka[s]=new ae({canSelfClose:!1}))})),ka[a]??Cd}var Cr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},cw=class extends Cr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="text"}visit(a,s){return a.visitText(this,s)}},pw=class extends Cr{constructor(a,s,l,p){super(s,p),this.value=a,this.tokens=l,this.type="cdata"}visit(a,s){return a.visitCdata(this,s)}},dw=class extends Cr{constructor(a,s,l,p,f,y){super(p,y),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},hw=class{constructor(a,s,l,p,f){this.value=a,this.expression=s,this.sourceSpan=l,this.valueSourceSpan=p,this.expSourceSpan=f,this.type="expansionCase"}visit(a,s){return a.visitExpansionCase(this,s)}},fw=class extends Cr{constructor(a,s,l,p,f,y,E){super(l,E),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=y,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},kn=class extends Cr{constructor(a,s,l,p,f,y=null,E=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=y,this.nameSpan=E,this.type="element"}visit(a,s){return a.visitElement(this,s)}},mw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},gw=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},_r=class extends Cr{constructor(a,s,l,p,f,y,E=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=y,this.endSourceSpan=E,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},_d=class{constructor(a,s){this.expression=a,this.sourceSpan=s,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitBlockParameter(this,s)}},xd=class{constructor(a,s,l,p,f){this.name=a,this.value=s,this.sourceSpan=l,this.nameSpan=p,this.valueSpan=f,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(a,s){return a.visitLetDeclaration(this,s)}};function Sd(a,s,l=null){let p=[],f=a.visit?y=>a.visit(y,l)||y.visit(a,l):y=>y.visit(a,l);return s.forEach(y=>{let E=f(y);E&&p.push(E)}),p}var vw=class{constructor(){}visitElement(a,s){this.visitChildren(s,l=>{l(a.attrs),l(a.children)})}visitAttribute(a,s){}visitText(a,s){}visitCdata(a,s){}visitComment(a,s){}visitDocType(a,s){}visitExpansion(a,s){return this.visitChildren(s,l=>{l(a.cases)})}visitExpansionCase(a,s){}visitBlock(a,s){this.visitChildren(s,l=>{l(a.parameters),l(a.children)})}visitBlockParameter(a,s){}visitLetDeclaration(a,s){}visitChildren(a,s){let l=[],p=this;function f(y){y&&l.push(Sd(p,y,a))}return s(f),Array.prototype.concat.apply([],l)}},Oi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
591
+ `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Dw="";Oi.ngsp=Dw;var yw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function bw(a,s){if(s!=null&&!(Array.isArray(s)&&s.length==2))throw new Error(`Expected '${a}' to be an array, [start, end].`);if(s!=null){let l=s[0],p=s[1];yw.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var kw=class Gd{static fromArray(s){return s?(bw("interpolation",s),new Gd(s[0],s[1])):Ed}constructor(s,l){this.start=s,this.end=l}},Ed=new kw("{{","}}"),Go=class extends ud{constructor(a,s,l){super(l,a),this.tokenType=s}},ww=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function Cw(a,s,l,p={}){let f=new Sw(new ld(a,s),l,p);return f.tokenize(),new ww(Bw(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var _w=/\r\n?/g;function xr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function Fd(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function xw(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var Ii;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(Ii||(Ii={}));var Yo=class{constructor(a){this.error=a}},Sw=class{constructor(a,s,l){this._getTagContentType=s,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=l.tokenizeExpansionForms||!1,this._interpolationConfig=l.interpolationConfig||Ed,this._leadingTriviaCodePoints=l.leadingTriviaChars&&l.leadingTriviaChars.map(f=>f.codePointAt(0)||0),this._canSelfClose=l.canSelfClose||!1,this._allowHtmComponentClosingTags=l.allowHtmComponentClosingTags||!1;let p=l.range||{endPos:a.content.length,startPos:0,startLine:0,startCol:0};this._cursor=l.escapedString?new Nw(a,p):new Nd(a,p),this._preserveLineEndings=l.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=l.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=l.tokenizeBlocks??!0,this._tokenizeLet=l.tokenizeLet??!0;try{this._cursor.init()}catch(f){this.handleError(f)}}_processCarriageReturns(a){return this._preserveLineEndings?a:a.replace(_w,`
592
+ `)}tokenize(){for(;this._cursor.peek()!==0;){let a=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(a):this._attemptStr("--")?this._consumeComment(a):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(a):this._consumeBogusComment(a);else if(this._attemptCharCode(47))this._consumeTagClose(a);else{let s=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=s,this._consumeBogusComment(a)):this._consumeTagOpen(a)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(a):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(a):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(a):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(s){this.handleError(s)}}this._beginToken(34),this._endToken([])}_getBlockName(){let a=!1,s=this._cursor.clone();return this._attemptCharCodeUntilFn(l=>Ai(l)?!a:Td(l)?(a=!0,!1):!0),this._cursor.getChars(s).trim()}_consumeBlockStart(a){this._beginToken(25,a);let s=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Re),this._attemptCharCode(41))this._attemptCharCodeUntilFn(Re);else{s.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):s.type=29}_consumeBlockEnd(a){this._beginToken(27,a),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Bd);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let a=this._cursor.clone(),s=null,l=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||s!==null;){let p=this._cursor.peek();if(p===92)this._cursor.advance();else if(p===s)s=null;else if(s===null&&Wo(p))s=p;else if(p===40&&s===null)l++;else if(p===41&&s===null){if(l===0)break;l>0&&l--}this._cursor.advance()}this._endToken([this._cursor.getChars(a)]),this._attemptCharCodeUntilFn(Bd)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Ai(this._cursor.peek()))this._attemptCharCodeUntilFn(Re);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Re),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>Re(l)&&!Uo(l)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(s.type=33,s.sourceSpan=this._cursor.getSpan(a))}_getLetDeclarationName(){let a=this._cursor.clone(),s=!1;return this._attemptCharCodeUntilFn(l=>$i(l)||l==36||l===95||s&&Ho(l)?(s=!0,!1):!0),this._cursor.getChars(a).trim()}_consumeLetDeclarationValue(){let a=this._cursor.clone();for(this._beginToken(31,a);this._cursor.peek()!==0;){let s=this._cursor.peek();if(s===59)break;Wo(s)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(l=>l===92?(this._cursor.advance(),!1):l===s)),this._cursor.advance()}this._endToken([this._cursor.getChars(a)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if($w(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(a,s=this._cursor.clone()){this._currentTokenStart=s,this._currentTokenType=a}_endToken(a,s){if(this._currentTokenStart===null)throw new Go("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(s));if(this._currentTokenType===null)throw new Go("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let l={type:this._currentTokenType,parts:a,sourceSpan:(s??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(l),this._currentTokenStart=null,this._currentTokenType=null,l}_createError(a,s){this._isInExpansionForm()&&(a+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let l=new Go(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new Yo(l)}handleError(a){if(a instanceof Ko&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof Yo)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return Tw(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(xr(this._cursor.peek()),this._cursor.getSpan(s))}_attemptStr(a){let s=a.length;if(this._cursor.charsLeft()<s)return!1;let l=this._cursor.clone();for(let p=0;p<s;p++)if(!this._attemptCharCode(a.charCodeAt(p)))return this._cursor=l,!1;return!0}_attemptStrCaseInsensitive(a){for(let s=0;s<a.length;s++)if(!this._attemptCharCodeCaseInsensitive(a.charCodeAt(s)))return!1;return!0}_requireStr(a){let s=this._cursor.clone();if(!this._attemptStr(a))throw this._createError(xr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(xr(this._cursor.peek()),this._cursor.getSpan(s))}_attemptCharCodeUntilFn(a){for(;!a(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(a,s){let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(a),this._cursor.diff(l)<s)throw this._createError(xr(this._cursor.peek()),this._cursor.getSpan(l))}_attemptUntilChar(a){for(;this._cursor.peek()!==a;)this._cursor.advance()}_readChar(){let a=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),a}_consumeEntity(a){this._beginToken(9);let s=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let l=this._attemptCharCode(120)||this._attemptCharCode(88),p=this._cursor.clone();if(this._attemptCharCodeUntilFn(Fw),this._cursor.peek()!=59){this._cursor.advance();let y=l?Ii.HEX:Ii.DEC;throw this._createError(xw(y,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(p);this._cursor.advance();try{let y=parseInt(f,l?16:10);this._endToken([String.fromCharCode(y),this._cursor.getChars(s)])}catch{throw this._createError(Fd(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(Aw),this._cursor.peek()!=59)this._beginToken(a,s),this._cursor=l,this._endToken(["&"]);else{let p=this._cursor.getChars(l);this._cursor.advance();let f=Oi[p];if(!f)throw this._createError(Fd(p),this._cursor.getSpan(s));this._endToken([f,`&${p};`])}}}_consumeRawText(a,s){this._beginToken(a?6:7);let l=[];for(;;){let p=this._cursor.clone(),f=s();if(this._cursor=p,f)break;a&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(l.join(""))]),l.length=0,this._consumeEntity(6),this._beginToken(6)):l.push(this._readChar())}this._endToken([this._processCarriageReturns(l.join(""))])}_consumeComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(a){this._beginToken(10,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(a){this._beginToken(12,a),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(a){this._beginToken(18,a),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let a=this._cursor.clone(),s="";for(;this._cursor.peek()!==58&&!Ew(this._cursor.peek());)this._cursor.advance();let l;this._cursor.peek()===58?(s=this._cursor.getChars(a),this._cursor.advance(),l=this._cursor.clone()):l=a,this._requireCharCodeUntilFn(Ad,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!$i(this._cursor.peek()))throw this._createError(xr(this._cursor.peek()),this._cursor.getSpan(a));for(p=this._consumeTagOpenStart(a),l=p.parts[0],s=p.parts[1],this._attemptCharCodeUntilFn(Re);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[E,B]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(Re);let q=this._consumeAttributeValue();f.push({prefix:E,name:B,value:q})}else f.push({prefix:E,name:B});this._attemptCharCodeUntilFn(Re)}this._consumeTagOpenEnd()}catch(E){if(E instanceof Yo){p?p.type=4:(this._beginToken(5,a),this._endToken(["<"]));return}throw E}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let y=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),y===Nt.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):y===Nt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(Re),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(Re),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(p=>p===62,3),this._cursor.advance(),this._endToken([a,s]),this._handleFullNameStackForTagClose(a,s)}_consumeTagOpenStart(a){this._beginToken(0,a);let s=this._consumePrefixAndName();return this._endToken(s)}_consumeAttributeName(){let a=this._cursor.peek();if(a===39||a===34)throw this._createError(xr(a),this._cursor.getSpan());this._beginToken(14);let s=this._consumePrefixAndName();return this._endToken(s),s}_consumeAttributeValue(){let a;if(this._cursor.peek()===39||this._cursor.peek()===34){let s=this._cursor.peek();this._consumeQuote(s);let l=()=>this._cursor.peek()===s;a=this._consumeWithInterpolation(16,17,l,l),this._consumeQuote(s)}else{let s=()=>Ad(this._cursor.peek());a=this._consumeWithInterpolation(16,17,s,s)}return a}_consumeQuote(a){this._beginToken(15),this._requireCharCode(a),this._endToken([String.fromCodePoint(a)])}_consumeTagOpenEnd(){let a=this._attemptCharCode(47)?2:1;this._beginToken(a),this._requireCharCode(62),this._endToken([])}_consumeTagClose(a){if(this._beginToken(3,a),this._attemptCharCodeUntilFn(Re),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Re),this._requireCharCode(62),this._endToken([s,l]),this._handleFullNameStackForTagClose(s,l)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let a=this._readUntil(44),s=this._processCarriageReturns(a);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([s]);else{let p=this._endToken([a]);s!==a&&this.nonNormalizedIcuExpressions.push(p)}this._requireCharCode(44),this._attemptCharCodeUntilFn(Re),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Re)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(Re),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Re),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(a,s,l,p){this._beginToken(a);let f=[];for(;!l();){let E=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(f.join(""))],E),f.length=0,this._consumeInterpolation(s,E,p),this._beginToken(a)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(f.join(""))]),f.length=0,this._consumeEntity(a),this._beginToken(a)):f.push(this._readChar())}this._inInterpolation=!1;let y=this._processCarriageReturns(f.join(""));return this._endToken([y]),y}_consumeInterpolation(a,s,l){let p=[];this._beginToken(a,s),p.push(this._interpolationConfig.start);let f=this._cursor.clone(),y=null,E=!1;for(;this._cursor.peek()!==0&&(l===null||!l());){let B=this._cursor.clone();if(this._isTagStart()){this._cursor=B,p.push(this._getProcessedChars(f,B)),this._endToken(p);return}if(y===null)if(this._attemptStr(this._interpolationConfig.end)){p.push(this._getProcessedChars(f,B)),p.push(this._interpolationConfig.end),this._endToken(p);return}else this._attemptStr("//")&&(E=!0);let q=this._cursor.peek();this._cursor.advance(),q===92?this._cursor.advance():q===y?y=null:!E&&y===null&&Wo(q)&&(y=q)}p.push(this._getProcessedChars(f,this._cursor)),this._endToken(p)}_getProcessedChars(a,s){return this._processCarriageReturns(s.getChars(a))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let a=this._cursor.clone();a.advance();let s=a.peek();if(97<=s&&s<=122||65<=s&&s<=90||s===47||s===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let a=this._cursor.clone();if(a.advance(),Td(a.peek()))return!0}return!1}_readUntil(a){let s=this._cursor.clone();return this._attemptUntilChar(a),this._cursor.getChars(s)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let a=this._cursor.clone(),s=this._attemptStr(this._interpolationConfig.start);return this._cursor=a,!s}return!0}_handleFullNameStackForTagOpen(a,s){let l=ji(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=ji(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function Re(a){return!Ai(a)||a===0}function Ad(a){return Ai(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function Ew(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function Fw(a){return a===59||a===0||!B1(a)}function Aw(a){return a===59||a===0||!$i(a)}function $w(a){return a!==125}function Tw(a,s){return $d(a)===$d(s)}function $d(a){return a>=97&&a<=122?a-97+65:a}function Td(a){return $i(a)||Ho(a)||a===95}function Bd(a){return a!==59&&Re(a)}function Bw(a){let s=[],l;for(let p=0;p<a.length;p++){let f=a[p];l&&l.type===5&&f.type===5||l&&l.type===16&&f.type===16?(l.parts[0]+=f.parts[0],l.sourceSpan.end=f.sourceSpan.end):(l=f,s.push(l))}return s}var Nd=class Qo{constructor(s,l){if(s instanceof Qo){this.file=s.file,this.input=s.input,this.end=s.end;let p=s.state;this.state={peek:p.peek,offset:p.offset,line:p.line,column:p.column}}else{if(!l)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=s,this.input=s.content,this.end=l.endPos,this.state={peek:-1,offset:l.startPos,line:l.startLine,column:l.startCol}}}clone(){return new Qo(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(s){return this.state.offset-s.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(s,l){s=s||this;let p=s;if(l)for(;this.diff(s)>0&&l.indexOf(s.peek())!==-1;)p===s&&(s=s.clone()),s.advance();let f=this.locationFromCursor(s),y=this.locationFromCursor(this),E=p!==s?this.locationFromCursor(p):f;return new oe(f,y,E)}getChars(s){return this.input.substring(s.state.offset,this.state.offset)}charAt(s){return this.input.charCodeAt(s)}advanceState(s){if(s.offset>=this.end)throw this.state=s,new Ko('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):Uo(l)||s.column++,s.offset++,this.updatePeek(s)}updatePeek(s){s.peek=s.offset>=this.end?0:this.charAt(s.offset)}locationFromCursor(s){return new zo(s.file,s.state.offset,s.state.line,s.state.column)}},Nw=class Zo extends Nd{constructor(s,l){s instanceof Zo?(super(s),this.internalState={...s.internalState}):(super(s,l),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Zo(this)}getChars(s){let l=s.clone(),p="";for(;l.internalState.offset<this.internalState.offset;)p+=String.fromCodePoint(l.peek()),l.advance();return p}processEscapeSequence(){let s=()=>this.internalState.peek;if(s()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),s()===110)this.state.peek=10;else if(s()===114)this.state.peek=13;else if(s()===118)this.state.peek=11;else if(s()===116)this.state.peek=9;else if(s()===98)this.state.peek=8;else if(s()===102)this.state.peek=12;else if(s()===117)if(this.advanceState(this.internalState),s()===123){this.advanceState(this.internalState);let l=this.clone(),p=0;for(;s()!==125;)this.advanceState(this.internalState),p++;this.state.peek=this.decodeHexDigits(l,p)}else{let l=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,4)}else if(s()===120){this.advanceState(this.internalState);let l=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(l,2)}else if(od(s())){let l="",p=0,f=this.clone();for(;od(s())&&p<3;)f=this.clone(),l+=String.fromCodePoint(s()),this.advanceState(this.internalState),p++;this.state.peek=parseInt(l,8),this.internalState=f.internalState}else Uo(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(s,l){let p=this.input.slice(s.internalState.offset,s.internalState.offset+l),f=parseInt(p,16);if(isNaN(f))throw s.state=s.internalState,new Ko("Invalid hexadecimal escape sequence",s);return f}},Ko=class{constructor(a,s){this.msg=a,this.cursor=s}},ut=class Yd extends ud{static create(s,l,p){return new Yd(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},jw=class{constructor(a,s){this.rootNodes=a,this.errors=s}},Pw=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let y=ce=>(Ae,...Ue)=>ce(Ae.toLowerCase(),...Ue),E=p?this.getTagDefinition:y(this.getTagDefinition),B=ce=>E(ce).getContentType(),q=p?f:y(f),Y=Cw(a,s,f?(ce,Ae,Ue,nt)=>{let it=q(ce,Ae,Ue,nt);return it!==void 0?it:B(ce)}:B,l),W=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,ge=new Lw(Y.tokens,E,W,we,p);return ge.build(),new jw(ge.rootNodes,Y.errors.concat(ge.errors))}},Lw=class Kd{constructor(s,l,p,f,y){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=p,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=y,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let s of this._containerStack)s instanceof _r&&this.errors.push(ut.create(s.name,s.sourceSpan,`Unclosed block "${s.name}"`))}_advance(){let s=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],s}_advanceIf(s){return this._peek.type===s?this._advance():null}_consumeCdata(s){let l=this._advance(),p=this._getText(l),f=this._advanceIf(13);this._addToParent(new pw(p,new oe(s.sourceSpan.start,(f||l).sourceSpan.end),[l]))}_consumeComment(s){let l=this._advanceIf(7),p=this._advanceIf(11),f=l!=null?l.parts[0].trim():null,y=p==null?s.sourceSpan:new oe(s.sourceSpan.start,p.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new mw(f,y))}_consumeDocType(s){let l=this._advanceIf(7),p=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,y=new oe(s.sourceSpan.start,(p||l||s).sourceSpan.end);this._addToParent(new gw(f,y))}_consumeExpansion(s){let l=this._advance(),p=this._advance(),f=[];for(;this._peek.type===21;){let E=this._parseExpansionCase();if(!E)return;f.push(E)}if(this._peek.type!==24){this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let y=new oe(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new dw(l.parts[0],p.parts[0],f,y,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(ut.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let l=this._advance(),p=this._collectExpansionExpTokens(l);if(!p)return null;let f=this._advance();p.push({type:34,parts:[],sourceSpan:f.sourceSpan});let y=new Kd(p,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(y.build(),y.errors.length>0)return this.errors=this.errors.concat(y.errors),null;let E=new oe(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),B=new oe(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new hw(s.parts[0],y.rootNodes,E,s.sourceSpan,B)}_collectExpansionExpTokens(s){let l=[],p=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&p.push(this._peek.type),this._peek.type===23)if(jd(p,22)){if(p.pop(),p.length===0)return l}else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(jd(p,20))p.pop();else return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(ut.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;l.push(this._advance())}}_getText(s){let l=s.parts[0];if(l.length>0&&l[0]==`
593
593
  `){let p=this._getClosestParentElement();p!=null&&p.children.length==0&&this.getTagDefinition(p.name).ignoreFirstLf&&(l=l.substring(1))}return l}_consumeText(s){let l=[s],p=s.sourceSpan,f=s.parts[0];if(f.length>0&&f[0]===`
594
- `){let y=this._getContainer();y!=null&&y.children.length===0&&this.getTagDefinition(y.name).ignoreFirstLf&&(f=f.substring(1),l[0]={type:s.type,sourceSpan:s.sourceSpan,parts:[f]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)s=this._advance(),l.push(s),s.type===8?f+=s.parts.join("").replace(/&([^;]+);/g,Pd):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let y=s.sourceSpan;this._addToParent(new cw(f,new oe(p.start,y.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof kn&&this.getTagDefinition(s.name).isVoid&&this._containerStack.pop()}_consumeStartTag(s){let[l,p]=s.parts,f=[];for(;this._peek.type===14;)f.push(this._consumeAttr(this._advance()));let y=this._getElementFullName(l,p,this._getClosestParentElement()),E=!1;if(this._peek.type===2){this._advance(),E=!0;let ce=this.getTagDefinition(y);this.canSelfClose||ce.canSelfClose||ji(y)!==null||ce.isVoid||this.errors.push(ut.create(y,s.sourceSpan,`Only void, custom and foreign elements can be self closed "${s.parts[1]}"`))}else this._peek.type===1&&(this._advance(),E=!1);let B=this._peek.sourceSpan.fullStart,q=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),Y=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),W=new oe(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new kn(y,f,[],q,Y,void 0,W),ge=this._getContainer();this._pushContainer(we,ge instanceof kn&&this.getTagDefinition(ge.name).isClosedByChild(we.name)),E?this._popContainer(y,kn,q):s.type===4&&(this._popContainer(y,kn,null),this.errors.push(ut.create(y,q,`Opening tag "${y}" not terminated.`)))}_pushContainer(s,l){l&&this._containerStack.pop(),this._addToParent(s),this._containerStack.push(s)}_consumeEndTag(s){let l=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getClosestParentElement());if(l&&this.getTagDefinition(l).isVoid)this.errors.push(ut.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,kn,s.sourceSpan)){let p=`Unexpected closing tag "${l}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ut.create(l,s.sourceSpan,p))}}_popContainer(s,l,p){let f=!1;for(let y=this._containerStack.length-1;y>=0;y--){let E=this._containerStack[y];if(ji(E.name)?E.name===s:(s==null||E.name.toLowerCase()===s.toLowerCase())&&E instanceof l)return E.endSourceSpan=p,E.sourceSpan.end=p!==null?p.end:E.sourceSpan.end,this._containerStack.splice(y,this._containerStack.length-y),!f;(E instanceof Cr||E instanceof kn&&!this.getTagDefinition(E.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=Pi(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let y="",E=[],B,q;if(this._peek.type===16)for(B=this._peek.sourceSpan,q=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let W=this._advance();E.push(W),W.type===17?y+=W.parts.join("").replace(/&([^;]+);/g,Pd):W.type===9?y+=W.parts[0]:y+=W.parts.join(""),q=p=W.sourceSpan.end}this._peek.type===15&&(q=p=this._advance().sourceSpan.end);let Y=B&&q&&new oe((f==null?void 0:f.sourceSpan.start)??B.start,q,(f==null?void 0:f.sourceSpan.fullStart)??B.fullStart);return new fw(l,y,new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,Y,E.length>0?E:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new _d(B.parts[0],B.sourceSpan))}this._peek.type===26&&this._advance();let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new Cr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(E,!1)}_consumeBlockClose(s){this._popContainer(null,Cr,s.sourceSpan)||this.errors.push(ut.create(null,s.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new _d(B.parts[0],B.sourceSpan))}let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new Cr(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(E,!1),this._popContainer(null,Cr,null),this.errors.push(ut.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],p,f;if(this._peek.type!==31){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Invalid @let declaration "${l}". Declaration must have a value.`));return}else p=this._advance();if(this._peek.type!==32){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let y=f.sourceSpan.fullStart,E=new oe(s.sourceSpan.start,y,s.sourceSpan.fullStart),B=s.sourceSpan.toString().lastIndexOf(l),q=s.sourceSpan.start.moveBy(B),Y=new oe(q,s.sourceSpan.end),W=new xd(l,p.parts[0],E,Y,p.sourceSpan);this._addToParent(W)}_consumeIncompleteLet(s){let l=s.parts[0]??"",p=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),y=s.sourceSpan.start.moveBy(f),E=new oe(y,s.sourceSpan.end),B=new oe(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),q=new xd(l,"",s.sourceSpan,E,B);this._addToParent(q)}this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Incomplete @let declaration${p}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let s=this._containerStack.length-1;s>-1;s--)if(this._containerStack[s]instanceof kn)return this._containerStack[s];return null}_addToParent(s){let l=this._getContainer();l===null?this.rootNodes.push(s):l.children.push(s)}_getElementFullName(s,l,p){if(s===""&&(s=this.getTagDefinition(l).implicitNamespacePrefix||"",s===""&&p!=null)){let f=Ni(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=ji(p.name))}return Pi(s,l)}};function jd(a,s){return a.length>0&&a[a.length-1]===s}function Pd(a,s){return Ii[s]!==void 0?Ii[s]||a:/^#x[a-f0-9]+$/i.test(s)?String.fromCodePoint(parseInt(s.slice(2),16)):/^#\d+$/.test(s)?String.fromCodePoint(parseInt(s.slice(1),10)):a}var Ow=class extends Pw{constructor(){super(Go)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},Xo=null,Iw=()=>(Xo||(Xo=new Ow),Xo);function Ld(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:y,tokenizeAngularBlocks:E=!1,tokenizeAngularLetDeclaration:B=!1}=s;return Iw().parse(a,"angular-html-parser",{tokenizeExpansionForms:E,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:E,tokenizeLet:B},f,y)}function Mw(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var Rw=Mw,wa=3;function qw(a){let s=a.slice(0,wa);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
594
+ `){let y=this._getContainer();y!=null&&y.children.length===0&&this.getTagDefinition(y.name).ignoreFirstLf&&(f=f.substring(1),l[0]={type:s.type,sourceSpan:s.sourceSpan,parts:[f]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)s=this._advance(),l.push(s),s.type===8?f+=s.parts.join("").replace(/&([^;]+);/g,Pd):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let y=s.sourceSpan;this._addToParent(new cw(f,new oe(p.start,y.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof kn&&this.getTagDefinition(s.name).isVoid&&this._containerStack.pop()}_consumeStartTag(s){let[l,p]=s.parts,f=[];for(;this._peek.type===14;)f.push(this._consumeAttr(this._advance()));let y=this._getElementFullName(l,p,this._getClosestParentElement()),E=!1;if(this._peek.type===2){this._advance(),E=!0;let ce=this.getTagDefinition(y);this.canSelfClose||ce.canSelfClose||Ni(y)!==null||ce.isVoid||this.errors.push(ut.create(y,s.sourceSpan,`Only void, custom and foreign elements can be self closed "${s.parts[1]}"`))}else this._peek.type===1&&(this._advance(),E=!1);let B=this._peek.sourceSpan.fullStart,q=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),Y=new oe(s.sourceSpan.start,B,s.sourceSpan.fullStart),W=new oe(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new kn(y,f,[],q,Y,void 0,W),ge=this._getContainer();this._pushContainer(we,ge instanceof kn&&this.getTagDefinition(ge.name).isClosedByChild(we.name)),E?this._popContainer(y,kn,q):s.type===4&&(this._popContainer(y,kn,null),this.errors.push(ut.create(y,q,`Opening tag "${y}" not terminated.`)))}_pushContainer(s,l){l&&this._containerStack.pop(),this._addToParent(s),this._containerStack.push(s)}_consumeEndTag(s){let l=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getClosestParentElement());if(l&&this.getTagDefinition(l).isVoid)this.errors.push(ut.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,kn,s.sourceSpan)){let p=`Unexpected closing tag "${l}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ut.create(l,s.sourceSpan,p))}}_popContainer(s,l,p){let f=!1;for(let y=this._containerStack.length-1;y>=0;y--){let E=this._containerStack[y];if(Ni(E.name)?E.name===s:(s==null||E.name.toLowerCase()===s.toLowerCase())&&E instanceof l)return E.endSourceSpan=p,E.sourceSpan.end=p!==null?p.end:E.sourceSpan.end,this._containerStack.splice(y,this._containerStack.length-y),!f;(E instanceof _r||E instanceof kn&&!this.getTagDefinition(E.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=ji(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let y="",E=[],B,q;if(this._peek.type===16)for(B=this._peek.sourceSpan,q=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let W=this._advance();E.push(W),W.type===17?y+=W.parts.join("").replace(/&([^;]+);/g,Pd):W.type===9?y+=W.parts[0]:y+=W.parts.join(""),q=p=W.sourceSpan.end}this._peek.type===15&&(q=p=this._advance().sourceSpan.end);let Y=B&&q&&new oe((f==null?void 0:f.sourceSpan.start)??B.start,q,(f==null?void 0:f.sourceSpan.fullStart)??B.fullStart);return new fw(l,y,new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,Y,E.length>0?E:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new _d(B.parts[0],B.sourceSpan))}this._peek.type===26&&this._advance();let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new _r(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(E,!1)}_consumeBlockClose(s){this._popContainer(null,_r,s.sourceSpan)||this.errors.push(ut.create(null,s.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new _d(B.parts[0],B.sourceSpan))}let p=this._peek.sourceSpan.fullStart,f=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),y=new oe(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new _r(s.parts[0],l,[],f,s.sourceSpan,y);this._pushContainer(E,!1),this._popContainer(null,_r,null),this.errors.push(ut.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],p,f;if(this._peek.type!==31){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Invalid @let declaration "${l}". Declaration must have a value.`));return}else p=this._advance();if(this._peek.type!==32){this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let y=f.sourceSpan.fullStart,E=new oe(s.sourceSpan.start,y,s.sourceSpan.fullStart),B=s.sourceSpan.toString().lastIndexOf(l),q=s.sourceSpan.start.moveBy(B),Y=new oe(q,s.sourceSpan.end),W=new xd(l,p.parts[0],E,Y,p.sourceSpan);this._addToParent(W)}_consumeIncompleteLet(s){let l=s.parts[0]??"",p=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),y=s.sourceSpan.start.moveBy(f),E=new oe(y,s.sourceSpan.end),B=new oe(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),q=new xd(l,"",s.sourceSpan,E,B);this._addToParent(q)}this.errors.push(ut.create(s.parts[0],s.sourceSpan,`Incomplete @let declaration${p}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let s=this._containerStack.length-1;s>-1;s--)if(this._containerStack[s]instanceof kn)return this._containerStack[s];return null}_addToParent(s){let l=this._getContainer();l===null?this.rootNodes.push(s):l.children.push(s)}_getElementFullName(s,l,p){if(s===""&&(s=this.getTagDefinition(l).implicitNamespacePrefix||"",s===""&&p!=null)){let f=Bi(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=Ni(p.name))}return ji(s,l)}};function jd(a,s){return a.length>0&&a[a.length-1]===s}function Pd(a,s){return Oi[s]!==void 0?Oi[s]||a:/^#x[a-f0-9]+$/i.test(s)?String.fromCodePoint(parseInt(s.slice(2),16)):/^#\d+$/.test(s)?String.fromCodePoint(parseInt(s.slice(1),10)):a}var Ow=class extends Pw{constructor(){super(Vo)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},Jo=null,Iw=()=>(Jo||(Jo=new Ow),Jo);function Ld(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:y,tokenizeAngularBlocks:E=!1,tokenizeAngularLetDeclaration:B=!1}=s;return Iw().parse(a,"angular-html-parser",{tokenizeExpansionForms:E,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:E,tokenizeLet:B},f,y)}function Mw(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var Rw=Mw,wa=3;function qw(a){let s=a.slice(0,wa);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
595
595
  `,wa);if(l===-1)return;let p=a.slice(wa,l).trim(),f=a.indexOf(`
596
596
  ${s}`,l),y=p;if(y||(y=s==="+++"?"toml":"yaml"),f===-1&&s==="---"&&y==="yaml"&&(f=a.indexOf(`
597
- ...`,l)),f===-1)return;let E=f+1+wa,B=a.charAt(E+1);if(!/\s?/u.test(B))return;let q=a.slice(0,E);return{type:"front-matter",language:y,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-wa),raw:q}}function Hw(a){let s=qw(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var Uw=Hw,Ri={attrs:!0,children:!0,cases:!0,expression:!0},Od=new Set(["parent"]),Ww=class Ca{constructor(s={}){for(let l of new Set([...Od,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in Ri&&(l=l.map(p=>this.createChild(p))),!Od.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in Ri){let f=this[p];if(f){let y=zw(f,E=>E.map(s));l!==f&&(l||(l=new Ca({parent:this.parent})),l.setProperty(p,y))}}if(l)for(let p in this)p in Ri||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in Ri){let p=this[l];if(p)for(let f=0;f<p.length;f++)p[f].walk(s)}s(this)}createChild(s){let l=s instanceof Ca?s.clone():new Ca(s);return l.setProperty("parent",this),l}insertChildBefore(s,l){this.children.splice(this.children.indexOf(s),0,this.createChild(l))}removeChild(s){this.children.splice(this.children.indexOf(s),1)}replaceChild(s,l){this.children[this.children.indexOf(s)]=this.createChild(l)}clone(){return new Ca(this)}get firstChild(){var s;return(s=this.children)==null?void 0:s[0]}get lastChild(){var s;return(s=this.children)==null?void 0:s[this.children.length-1]}get prev(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)-1]}get next(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(s=>[s.fullName,s.value]))}};function zw(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var Vw=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Yw},{regex:/^\[if([^\]]*)\]><!$/u,parse:Kw},{regex:/^<!\s*\[endif\]$/u,parse:Jw}];function Gw(a,s){if(a.value)for(let{regex:l,parse:p}of Vw){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function Yw(a,s,l){let[,p,f,y]=l,E=4+p.length,B=a.sourceSpan.start.moveBy(E),q=B.moveBy(y.length),[Y,W]=(()=>{try{return[!0,s(y,B).children]}catch{return[!1,[{type:"text",value:y,sourceSpan:new oe(B,q)}]]}})();return{type:"ieConditionalComment",complete:Y,children:W,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new oe(a.sourceSpan.start,B),endSourceSpan:new oe(q,a.sourceSpan.end)}}function Kw(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function Jw(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var Qo=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Xw=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Qw(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!Lo(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new oe(a.parameters[0].sourceSpan.start,on(!1,a.parameters,-1).sourceSpan.end)}}}function Zw(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new oe(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function eC(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function Id(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:y=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:Y}=s,{rootNodes:W,errors:we}=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:Y?(...V)=>Y(...V)?Nt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(W.some(qe=>qe.type==="docType"&&qe.value==="html"||qe.type==="element"&&qe.name.toLowerCase()==="html"))return Id(a,qd,l);let V,pe=()=>V??(V=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),We=qe=>pe().rootNodes.find(({startSourceSpan:ct})=>ct&&ct.start.offset===qe.startSourceSpan.start.offset)??qe;for(let[qe,ct]of W.entries()){let{endSourceSpan:xr,startSourceSpan:oC}=ct;if(xr===null)we=pe().errors,W[qe]=We(ct);else if(tC(ct,l)){let Hd=pe().errors.find(Ud=>Ud.span.start.offset>oC.start.offset&&Ud.span.start.offset<xr.end.offset);Hd&&Md(Hd),W[qe]=We(ct)}}}we.length>0&&Md(we[0]);let ge=V=>{let pe=V.name.startsWith(":")?V.name.slice(1).split(":")[0]:null,We=V.nameSpan.toString(),qe=pe!==null&&We.startsWith(`${pe}:`),ct=qe?We.slice(pe.length+1):We;V.name=ct,V.namespace=pe,V.hasExplicitNamespace=qe},ce=V=>{switch(V.type){case"element":ge(V);for(let pe of V.attrs)ge(pe),pe.valueSpan?(pe.value=pe.valueSpan.toString(),/["']/u.test(pe.value[0])&&(pe.value=pe.value.slice(1,-1))):pe.value=null;break;case"comment":V.value=V.sourceSpan.toString().slice(4,-3);break;case"text":V.value=V.sourceSpan.toString();break}},Fe=(V,pe)=>{let We=V.toLowerCase();return pe(We)?We:V},Ue=V=>{if(V.type==="element"&&(y&&(!V.namespace||V.namespace===V.tagDefinition.implicitNamespacePrefix||ve(V))&&(V.name=Fe(V.name,pe=>Xw.has(pe))),E))for(let pe of V.attrs)pe.namespace||(pe.name=Fe(pe.name,We=>Qo.has(V.name)&&(Qo.get("*").has(We)||Qo.get(V.name).has(We))))},nt=V=>{V.sourceSpan&&V.endSourceSpan&&(V.sourceSpan=new oe(V.sourceSpan.start,V.endSourceSpan.end))},it=V=>{if(V.type==="element"){let pe=Go(q?V.name:V.name.toLowerCase());!V.namespace||V.namespace===pe.implicitNamespacePrefix||ve(V)?V.tagDefinition=pe:V.tagDefinition=Go("")}};return Sd(new class extends vw{visitExpansionCase(V,pe){p==="angular"&&this.visitChildren(pe,We=>{We(V.expression)})}visit(V){ce(V),it(V),Ue(V),nt(V)}},W),W}function tC(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let p=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!p||yr(s,{language:p})==="html"}function Md(a){let{msg:s,span:{start:l,end:p}}=a;throw Rw(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function Rd(a,s,l={},p=!0){let{frontMatter:f,content:y}=p?Uw(a):{frontMatter:null,content:a},E=new ld(a,l.filepath),B=new Vo(E,0,0,0),q=B.moveBy(a.length),Y={type:"root",sourceSpan:new oe(B,q),children:Id(y,s,l)};if(f){let ge=new Vo(E,0,0,0),ce=ge.moveBy(f.raw.length);f.sourceSpan=new oe(ge,ce),Y.children.unshift(f)}let W=new Ww(Y),we=(ge,ce)=>{let{offset:Fe}=ce,Ue=C(!1,a.slice(0,Fe),/[^\n\r]/gu," "),nt=Rd(Ue+ge,s,l,!1);nt.sourceSpan=new oe(ce,on(!1,nt.children,-1).sourceSpan.end);let it=nt.children[0];return it.length===Fe?nt.children.shift():(it.sourceSpan=new oe(it.sourceSpan.start.moveBy(Fe),it.sourceSpan.end),it.value=it.value.slice(Fe)),nt};return W.walk(ge=>{if(ge.type==="comment"){let ce=Gw(ge,we);ce&&ge.parent.replaceChild(ge,ce)}Qw(ge),Zw(ge),eC(ge)}),W}function qi(a){return{parse:(s,l)=>Rd(s,a,l),hasPragma:C1,astFormat:"html",locStart:xi,locEnd:Si}}var qd={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},nC=qi(qd),rC=qi({name:"angular"}),aC=qi({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:y})=>f==="lang"&&y!=="html"&&y!==""&&y!==void 0))}}),iC=qi({name:"lwc",canSelfClose:!1}),sC={html:X1};return h(k)})})(Oc);var Ic=Oc.exports;const ey=Xd({__proto__:null,default:_a(Ic)},[Ic]);function ty(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ny(e,t){if(e==null)return{};var n,r,i=ty(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ry(e){if(Array.isArray(e))return zs(e)}function ay(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iy(e,t){if(e){if(typeof e=="string")return zs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zs(e,t):void 0}}function sy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
598
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oy(e){return ry(e)||ay(e)||iy(e)||sy()}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function ly(e,t){if(Qr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uy(e){var t=ly(e,"string");return Qr(t)=="symbol"?t:t+""}function Mc(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vs.apply(null,arguments)}function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Gs={};function py(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Gs[t]||(Gs[t]=cy(e)),Gs[t]}function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),i=py(r);return i.reduce(function(o,u){return hr(hr({},o),n[u])},t)}function qc(e){return e.join(" ")}function hy(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return Hc({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Hc(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,u=e.key,c=t.properties,d=t.type,h=t.tagName,g=t.value;if(d==="text")return g;if(h){var v=hy(n,o),D;if(!o)D=hr(hr({},c),{},{className:qc(c.className)});else{var b=Object.keys(n).reduce(function(T,F){return F.split(".").forEach(function(S){T.includes(S)||T.push(S)}),T},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(T){return!b.includes(T)}));D=hr(hr({},c),{},{className:qc(x)||void 0,style:dy(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return M.createElement(h,Vs({key:u},D),C)}}const fy=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var my=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gy=/\n/g;function vy(e){return e.match(gy)}function Dy(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return M.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
597
+ ...`,l)),f===-1)return;let E=f+1+wa,B=a.charAt(E+1);if(!/\s?/u.test(B))return;let q=a.slice(0,E);return{type:"front-matter",language:y,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-wa),raw:q}}function Hw(a){let s=qw(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var Uw=Hw,Mi={attrs:!0,children:!0,cases:!0,expression:!0},Od=new Set(["parent"]),Ww=class Ca{constructor(s={}){for(let l of new Set([...Od,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in Mi&&(l=l.map(p=>this.createChild(p))),!Od.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in Mi){let f=this[p];if(f){let y=zw(f,E=>E.map(s));l!==f&&(l||(l=new Ca({parent:this.parent})),l.setProperty(p,y))}}if(l)for(let p in this)p in Mi||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in Mi){let p=this[l];if(p)for(let f=0;f<p.length;f++)p[f].walk(s)}s(this)}createChild(s){let l=s instanceof Ca?s.clone():new Ca(s);return l.setProperty("parent",this),l}insertChildBefore(s,l){this.children.splice(this.children.indexOf(s),0,this.createChild(l))}removeChild(s){this.children.splice(this.children.indexOf(s),1)}replaceChild(s,l){this.children[this.children.indexOf(s)]=this.createChild(l)}clone(){return new Ca(this)}get firstChild(){var s;return(s=this.children)==null?void 0:s[0]}get lastChild(){var s;return(s=this.children)==null?void 0:s[this.children.length-1]}get prev(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)-1]}get next(){var s,l;return(l=(s=this.parent)==null?void 0:s.children)==null?void 0:l[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(s=>[s.fullName,s.value]))}};function zw(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var Vw=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Yw},{regex:/^\[if([^\]]*)\]><!$/u,parse:Kw},{regex:/^<!\s*\[endif\]$/u,parse:Jw}];function Gw(a,s){if(a.value)for(let{regex:l,parse:p}of Vw){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function Yw(a,s,l){let[,p,f,y]=l,E=4+p.length,B=a.sourceSpan.start.moveBy(E),q=B.moveBy(y.length),[Y,W]=(()=>{try{return[!0,s(y,B).children]}catch{return[!1,[{type:"text",value:y,sourceSpan:new oe(B,q)}]]}})();return{type:"ieConditionalComment",complete:Y,children:W,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new oe(a.sourceSpan.start,B),endSourceSpan:new oe(q,a.sourceSpan.end)}}function Kw(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function Jw(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var Xo=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),Xw=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function Qw(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!Po(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new oe(a.parameters[0].sourceSpan.start,on(!1,a.parameters,-1).sourceSpan.end)}}}function Zw(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new oe(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function eC(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function Id(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:y=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:Y}=s,{rootNodes:W,errors:we}=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:Y?(...V)=>Y(...V)?Nt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(W.some(qe=>qe.type==="docType"&&qe.value==="html"||qe.type==="element"&&qe.name.toLowerCase()==="html"))return Id(a,qd,l);let V,pe=()=>V??(V=Ld(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),We=qe=>pe().rootNodes.find(({startSourceSpan:ct})=>ct&&ct.start.offset===qe.startSourceSpan.start.offset)??qe;for(let[qe,ct]of W.entries()){let{endSourceSpan:Sr,startSourceSpan:oC}=ct;if(Sr===null)we=pe().errors,W[qe]=We(ct);else if(tC(ct,l)){let Hd=pe().errors.find(Ud=>Ud.span.start.offset>oC.start.offset&&Ud.span.start.offset<Sr.end.offset);Hd&&Md(Hd),W[qe]=We(ct)}}}we.length>0&&Md(we[0]);let ge=V=>{let pe=V.name.startsWith(":")?V.name.slice(1).split(":")[0]:null,We=V.nameSpan.toString(),qe=pe!==null&&We.startsWith(`${pe}:`),ct=qe?We.slice(pe.length+1):We;V.name=ct,V.namespace=pe,V.hasExplicitNamespace=qe},ce=V=>{switch(V.type){case"element":ge(V);for(let pe of V.attrs)ge(pe),pe.valueSpan?(pe.value=pe.valueSpan.toString(),/["']/u.test(pe.value[0])&&(pe.value=pe.value.slice(1,-1))):pe.value=null;break;case"comment":V.value=V.sourceSpan.toString().slice(4,-3);break;case"text":V.value=V.sourceSpan.toString();break}},Ae=(V,pe)=>{let We=V.toLowerCase();return pe(We)?We:V},Ue=V=>{if(V.type==="element"&&(y&&(!V.namespace||V.namespace===V.tagDefinition.implicitNamespacePrefix||ve(V))&&(V.name=Ae(V.name,pe=>Xw.has(pe))),E))for(let pe of V.attrs)pe.namespace||(pe.name=Ae(pe.name,We=>Xo.has(V.name)&&(Xo.get("*").has(We)||Xo.get(V.name).has(We))))},nt=V=>{V.sourceSpan&&V.endSourceSpan&&(V.sourceSpan=new oe(V.sourceSpan.start,V.endSourceSpan.end))},it=V=>{if(V.type==="element"){let pe=Vo(q?V.name:V.name.toLowerCase());!V.namespace||V.namespace===pe.implicitNamespacePrefix||ve(V)?V.tagDefinition=pe:V.tagDefinition=Vo("")}};return Sd(new class extends vw{visitExpansionCase(V,pe){p==="angular"&&this.visitChildren(pe,We=>{We(V.expression)})}visit(V){ce(V),it(V),Ue(V),nt(V)}},W),W}function tC(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let p=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!p||br(s,{language:p})==="html"}function Md(a){let{msg:s,span:{start:l,end:p}}=a;throw Rw(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function Rd(a,s,l={},p=!0){let{frontMatter:f,content:y}=p?Uw(a):{frontMatter:null,content:a},E=new ld(a,l.filepath),B=new zo(E,0,0,0),q=B.moveBy(a.length),Y={type:"root",sourceSpan:new oe(B,q),children:Id(y,s,l)};if(f){let ge=new zo(E,0,0,0),ce=ge.moveBy(f.raw.length);f.sourceSpan=new oe(ge,ce),Y.children.unshift(f)}let W=new Ww(Y),we=(ge,ce)=>{let{offset:Ae}=ce,Ue=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),nt=Rd(Ue+ge,s,l,!1);nt.sourceSpan=new oe(ce,on(!1,nt.children,-1).sourceSpan.end);let it=nt.children[0];return it.length===Ae?nt.children.shift():(it.sourceSpan=new oe(it.sourceSpan.start.moveBy(Ae),it.sourceSpan.end),it.value=it.value.slice(Ae)),nt};return W.walk(ge=>{if(ge.type==="comment"){let ce=Gw(ge,we);ce&&ge.parent.replaceChild(ge,ce)}Qw(ge),Zw(ge),eC(ge)}),W}function Ri(a){return{parse:(s,l)=>Rd(s,a,l),hasPragma:C1,astFormat:"html",locStart:_i,locEnd:xi}}var qd={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},nC=Ri(qd),rC=Ri({name:"angular"}),aC=Ri({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:y})=>f==="lang"&&y!=="html"&&y!==""&&y!==void 0))}}),iC=Ri({name:"lwc",canSelfClose:!1}),sC={html:X1};return h(k)})})(Oc);var Ic=Oc.exports;const ey=Xd({__proto__:null,default:_a(Ic)},[Ic]);function ty(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ny(e,t){if(e==null)return{};var n,r,i=ty(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ry(e){if(Array.isArray(e))return Ws(e)}function ay(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iy(e,t){if(e){if(typeof e=="string")return Ws(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ws(e,t):void 0}}function sy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
598
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oy(e){return ry(e)||ay(e)||iy(e)||sy()}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function ly(e,t){if(Qr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uy(e){var t=ly(e,"string");return Qr(t)=="symbol"?t:t+""}function Mc(e,t,n){return(t=uy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zs.apply(null,arguments)}function Rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cy(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Vs={};function py(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Vs[t]||(Vs[t]=cy(e)),Vs[t]}function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),i=py(r);return i.reduce(function(o,u){return fr(fr({},o),n[u])},t)}function qc(e){return e.join(" ")}function hy(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return Hc({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function Hc(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,u=e.key,c=t.properties,d=t.type,h=t.tagName,g=t.value;if(d==="text")return g;if(h){var v=hy(n,o),D;if(!o)D=fr(fr({},c),{},{className:qc(c.className)});else{var b=Object.keys(n).reduce(function(T,F){return F.split(".").forEach(function(S){T.includes(S)||T.push(S)}),T},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(T){return!b.includes(T)}));D=fr(fr({},c),{},{className:qc(x)||void 0,style:dy(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return M.createElement(h,zs({key:u},D),C)}}const fy=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var my=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(r){Mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gy=/\n/g;function vy(e){return e.match(gy)}function Dy(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return M.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
599
599
  `))})}function yy(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,u=o===void 0?{}:o,c=e.startingLineNumber;return M.createElement("code",{style:Object.assign({},n,i)},Dy({lines:t.replace(/\n$/,"").split(`
600
- `),style:u,startingLineNumber:c}))}function by(e){return"".concat(e.toString().length,".25em")}function Wc(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function zc(e,t,n){var r={display:"inline-block",minWidth:by(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Rt(Rt({},r),i);return o}function ii(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,d=e.className,h=d===void 0?[]:d,g=e.showLineNumbers,v=e.wrapLongLines,D=typeof c=="function"?c(n):c;if(D.className=h,n&&o){var b=zc(r,n,i);t.unshift(Wc(n,b))}return v&g&&(D.style=Rt(Rt({},D.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:D,children:t}}function Vc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(ii({children:[i],className:oy(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);Vc(i.children,o).forEach(function(u){return n.push(u)})}}return n}function ky(e,t,n,r,i,o,u,c,d){var h,g=Vc(e.value),v=[],D=-1,b=0;function k(_,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ii({children:_,lineNumber:$,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:P,showLineNumbers:r,wrapLongLines:d})}function x(_,$){if(r&&$&&i){var P=zc(c,$,u);_.unshift(Wc($,P))}return _}function C(_,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?k(_,$,P):x(_,$)}for(var T=function(){var $=g[b],P=$.children[0].value,I=vy(P);if(I){var j=P.split(`
600
+ `),style:u,startingLineNumber:c}))}function by(e){return"".concat(e.toString().length,".25em")}function Wc(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function zc(e,t,n){var r={display:"inline-block",minWidth:by(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Rt(Rt({},r),i);return o}function ai(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,c=u===void 0?{}:u,d=e.className,h=d===void 0?[]:d,g=e.showLineNumbers,v=e.wrapLongLines,D=typeof c=="function"?c(n):c;if(D.className=h,n&&o){var b=zc(r,n,i);t.unshift(Wc(n,b))}return v&g&&(D.style=Rt(Rt({},D.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:D,children:t}}function Vc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(ai({children:[i],className:oy(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);Vc(i.children,o).forEach(function(u){return n.push(u)})}}return n}function ky(e,t,n,r,i,o,u,c,d){var h,g=Vc(e.value),v=[],D=-1,b=0;function k(_,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ai({children:_,lineNumber:$,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:P,showLineNumbers:r,wrapLongLines:d})}function x(_,$){if(r&&$&&i){var P=zc(c,$,u);_.unshift(Wc($,P))}return _}function C(_,$){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?k(_,$,P):x(_,$)}for(var T=function(){var $=g[b],P=$.children[0].value,I=vy(P);if(I){var j=P.split(`
601
601
  `);j.forEach(function(z,K){var G=r&&v.length+o,L={type:"text",value:"".concat(z,`
602
- `)};if(K===0){var N=g.slice(D+1,b).concat(ii({children:[L],className:$.properties.className})),H=C(N,G);v.push(H)}else if(K===j.length-1){var Q=g[b+1]&&g[b+1].children&&g[b+1].children[0],fe={type:"text",value:"".concat(z)};if(Q){var ee=ii({children:[fe],className:$.properties.className});g.splice(b+1,0,ee)}else{var ue=[fe],me=C(ue,G,$.properties.className);v.push(me)}}else{var ie=[L],De=C(ie,G,$.properties.className);v.push(De)}}),D=b}b++};b<g.length;)T();if(D!==g.length-1){var F=g.slice(D+1,g.length);if(F&&F.length){var S=r&&v.length+o,A=C(F,S);v.push(A)}}return t?v:(h=[]).concat.apply(h,v)}function wy(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Hc({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Gc(e){return e&&typeof e.highlightAuto<"u"}function Cy(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Gc(t)){var o=fy(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function _y(e,t){return function(r){var i=r.language,o=r.children,u=r.style,c=u===void 0?t:u,d=r.customStyle,h=d===void 0?{}:d,g=r.codeTagProps,v=g===void 0?{className:i?"language-".concat(i):void 0,style:Rt(Rt({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:g,D=r.useInlineStyles,b=D===void 0?!0:D,k=r.showLineNumbers,x=k===void 0?!1:k,C=r.showInlineLineNumbers,T=C===void 0?!0:C,F=r.startingLineNumber,S=F===void 0?1:F,A=r.lineNumberContainerStyle,_=r.lineNumberStyle,$=_===void 0?{}:_,P=r.wrapLines,I=r.wrapLongLines,j=I===void 0?!1:I,z=r.lineProps,K=z===void 0?{}:z,G=r.renderer,L=r.PreTag,N=L===void 0?"pre":L,H=r.CodeTag,Q=H===void 0?"code":H,fe=r.code,ee=fe===void 0?(Array.isArray(o)?o[0]:o)||"":fe,ue=r.astGenerator,me=ny(r,my);ue=ue||e;var ie=x?M.createElement(yy,{containerStyle:A,codeStyle:v.style||{},numberStyle:$,startingLineNumber:S,codeString:ee}):null,De=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},rt=Gc(ue)?"hljs":"prismjs",Ne=b?Object.assign({},me,{style:Object.assign({},De,h)}):Object.assign({},me,{className:me.className?"".concat(rt," ").concat(me.className):rt,style:Object.assign({},h)});if(j?v.style=Rt(Rt({},v.style),{},{whiteSpace:"pre-wrap"}):v.style=Rt(Rt({},v.style),{},{whiteSpace:"pre"}),!ue)return M.createElement(N,Ne,ie,M.createElement(Q,v,ee));(P===void 0&&G||j)&&(P=!0),G=G||wy;var Ee=[{type:"text",value:ee}],Oe=Cy({astGenerator:ue,language:i,code:ee,defaultCodeValue:Ee});Oe.language===null&&(Oe.value=Ee);var de=Oe.value.length+S,ft=ky(Oe,P,K,x,T,S,de,$,j);return M.createElement(N,Ne,M.createElement(Q,v,!T&&ie,G({rows:ft,stylesheet:c,useInlineStyles:b})))}}var xy=Ey,Sy=Object.prototype.hasOwnProperty;function Ey(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Sy.call(n,r)&&(e[r]=n[r])}return e}var Yc=Kc,Ys=Kc.prototype;Ys.space=null,Ys.normal={},Ys.property={};function Kc(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var Jc=xy,Fy=Yc,Ay=$y;function $y(e){for(var t=e.length,n=[],r=[],i=-1,o,u;++i<t;)o=e[i],n.push(o.property),r.push(o.normal),u=o.space;return new Fy(Jc.apply(null,n),Jc.apply(null,r),u)}var Ks=Ty;function Ty(e){return e.toLowerCase()}var Xc=Qc,Et=Qc.prototype;Et.space=null,Et.attribute=null,Et.property=null,Et.boolean=!1,Et.booleanish=!1,Et.overloadedBoolean=!1,Et.number=!1,Et.commaSeparated=!1,Et.spaceSeparated=!1,Et.commaOrSpaceSeparated=!1,Et.mustUseProperty=!1,Et.defined=!1;function Qc(e,t){this.property=e,this.attribute=t}var qt={},By=0;qt.boolean=Hn(),qt.booleanish=Hn(),qt.overloadedBoolean=Hn(),qt.number=Hn(),qt.spaceSeparated=Hn(),qt.commaSeparated=Hn(),qt.commaOrSpaceSeparated=Hn();function Hn(){return Math.pow(2,++By)}var Zc=Xc,ep=qt,tp=Js;Js.prototype=new Zc,Js.prototype.defined=!0;var np=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ny=np.length;function Js(e,t,n,r){var i=-1,o;for(rp(this,"space",r),Zc.call(this,e,t);++i<Ny;)o=np[i],rp(this,o,(n&ep[o])===ep[o])}function rp(e,t,n){n&&(e[t]=n)}var ap=Ks,jy=Yc,Py=tp,Zr=Ly;function Ly(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},d,h;for(d in i)h=new Py(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[ap(d)]=d,c[ap(h.attribute)]=d;return new jy(u,c,t)}var Oy=Zr,Iy=Oy({space:"xlink",transform:My,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function My(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Ry=Zr,qy=Ry({space:"xml",transform:Hy,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hy(e,t){return"xml:"+t.slice(3).toLowerCase()}var Uy=Wy;function Wy(e,t){return t in e?e[t]:t}var zy=Uy,ip=Vy;function Vy(e,t){return zy(e,t.toLowerCase())}var Gy=Zr,Yy=ip,Ky=Gy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yy,properties:{xmlns:null,xmlnsXLink:null}}),Xs=qt,Jy=Zr,ht=Xs.booleanish,Ft=Xs.number,Un=Xs.spaceSeparated,Xy=Jy({transform:Qy,properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:Ft,ariaColIndex:Ft,ariaColSpan:Ft,ariaControls:Un,ariaCurrent:null,ariaDescribedBy:Un,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Un,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Un,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Un,ariaLevel:Ft,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Un,ariaPlaceholder:null,ariaPosInSet:Ft,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Un,ariaRowCount:Ft,ariaRowIndex:Ft,ariaRowSpan:Ft,ariaSelected:ht,ariaSetSize:Ft,ariaSort:null,ariaValueMax:Ft,ariaValueMin:Ft,ariaValueNow:Ft,ariaValueText:null,role:null}});function Qy(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var fr=qt,Zy=Zr,e0=ip,le=fr.boolean,t0=fr.overloadedBoolean,ea=fr.booleanish,$e=fr.number,lt=fr.spaceSeparated,si=fr.commaSeparated,n0=Zy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:si,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:lt,autoFocus:le,autoPlay:le,capture:le,charSet:null,checked:le,cite:null,className:lt,cols:$e,colSpan:null,content:null,contentEditable:ea,controls:le,controlsList:lt,coords:$e|si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:t0,draggable:ea,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:lt,height:$e,hidden:le,high:$e,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:si,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:lt,itemRef:lt,itemScope:le,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:$e,pattern:null,ping:lt,placeholder:null,playsInline:le,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:lt,required:le,reversed:le,rows:$e,rowSpan:$e,sandbox:lt,scope:null,scoped:le,seamless:le,selected:le,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ea,src:null,srcDoc:null,srcLang:null,srcSet:si,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:ea,width:$e,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ea,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:$e,security:null,unselectable:null}}),r0=Ay,a0=Iy,i0=qy,s0=Ky,o0=Xy,l0=n0,u0=r0([i0,a0,s0,o0,l0]),c0=Ks,p0=tp,d0=Xc,Qs="data",h0=g0,f0=/^data[-\w.:]+$/i,sp=/-[a-z]/g,m0=/[A-Z]/g;function g0(e,t){var n=c0(t),r=t,i=d0;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Qs&&f0.test(t)&&(t.charAt(4)==="-"?r=v0(t):t=D0(t),i=p0),new i(r,t))}function v0(e){var t=e.slice(5).replace(sp,b0);return Qs+t.charAt(0).toUpperCase()+t.slice(1)}function D0(e){var t=e.slice(4);return sp.test(t)?e:(t=t.replace(m0,y0),t.charAt(0)!=="-"&&(t="-"+t),Qs+t)}function y0(e){return"-"+e.toLowerCase()}function b0(e){return e.charAt(1).toUpperCase()}var k0=w0,op=/[#.]/g;function w0(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)op.lastIndex=o,d=op.exec(n),u=n.slice(o,d?d.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),d&&(c=d[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Zs={};Zs.parse=x0,Zs.stringify=S0;var lp="",C0=" ",_0=/[ \t\n\r\f]+/g;function x0(e){var t=String(e||lp).trim();return t===lp?[]:t.split(_0)}function S0(e){return e.join(C0).trim()}var eo={};eo.parse=E0,eo.stringify=F0;var to=",",up=" ",ta="";function E0(e){for(var t=[],n=String(e||ta),r=n.indexOf(to),i=0,o=!1,u;!o;)r===-1&&(r=n.length,o=!0),u=n.slice(i,r).trim(),(u||!o)&&t.push(u),i=r+1,r=n.indexOf(to,i);return t}function F0(e,t){var n=t||{},r=n.padLeft===!1?ta:up,i=n.padRight?up:ta;return e[e.length-1]===ta&&(e=e.concat(ta)),e.join(i+to+r).trim()}var A0=h0,cp=Ks,$0=k0,pp=Zs.parse,dp=eo.parse,T0=N0,B0={}.hasOwnProperty;function N0(e,t,n){var r=n?I0(n):null;return i;function i(u,c){var d=$0(u,t),h=Array.prototype.slice.call(arguments,2),g=d.tagName.toLowerCase(),v;if(d.tagName=r&&B0.call(r,g)?r[g]:g,c&&j0(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return hp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,g,v;d==null||d!==d||(h=A0(e,c),g=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=pp(v):h.commaSeparated?v=dp(v):h.commaOrSpaceSeparated&&(v=pp(dp(v).join(" ")))),g==="style"&&typeof d!="string"&&(v=O0(v)),g==="className"&&u.className&&(v=u.className.concat(v)),u[g]=L0(h,g,v))}}function j0(e,t){return typeof e=="string"||"length"in e||P0(t.tagName,e)}function P0(e,t){var n=t.type;return e==="input"||!n||typeof n!="string"?!1:typeof t.children=="object"&&"length"in t.children?!0:(n=n.toLowerCase(),e==="button"?n!=="menu"&&n!=="submit"&&n!=="reset"&&n!=="button":"value"in t)}function hp(e,t){var n,r;if(typeof t=="string"||typeof t=="number"){e.push({type:"text",value:String(t)});return}if(typeof t=="object"&&"length"in t){for(n=-1,r=t.length;++n<r;)hp(e,t[n]);return}if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}function L0(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return fp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=fp(e,t,n[r]);return o}function fp(e,t,n){var r=n;return e.number||e.positiveNumber?!isNaN(r)&&r!==""&&(r=Number(r)):(e.boolean||e.overloadedBoolean)&&typeof r=="string"&&(r===""||cp(n)===cp(t))&&(r=!0),r}function O0(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function I0(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var M0=u0,R0=T0,mp=R0(M0,"div");mp.displayName="html";var q0=mp,H0=q0;const U0={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},W0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var gp=z0;function z0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var V0=G0;function G0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Y0=K0;function K0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var J0=Y0,X0=gp,Q0=Z0;function Z0(e){return J0(e)||X0(e)}var oi,eb=59,tb=nb;function nb(e){var t="&"+e+";",n;return oi=oi||document.createElement("i"),oi.innerHTML=t,n=oi.textContent,n.charCodeAt(n.length-1)===eb&&e!=="semi"||n===t?!1:n}var vp=U0,Dp=W0,rb=gp,ab=V0,yp=Q0,ib=tb,sb=yb,ob={}.hasOwnProperty,mr=String.fromCharCode,lb=Function.prototype,bp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ub=9,kp=10,cb=12,pb=32,wp=38,db=59,hb=60,fb=61,mb=35,gb=88,vb=120,Db=65533,gr="named",no="hexadecimal",ro="decimal",ao={};ao[no]=16,ao[ro]=10;var li={};li[gr]=yp,li[ro]=rb,li[no]=ab;var Cp=1,_p=2,xp=3,Sp=4,Ep=5,io=6,Fp=7,vn={};vn[Cp]="Named character references must be terminated by a semicolon",vn[_p]="Numeric character references must be terminated by a semicolon",vn[xp]="Named character references cannot be empty",vn[Sp]="Numeric character references cannot be empty",vn[Ep]="Named character references must be known",vn[io]="Numeric character references cannot be disallowed",vn[Fp]="Numeric character references cannot be outside the permissible Unicode range";function yb(e,t){var n={},r,i;t||(t={});for(i in bp)r=t[i],n[i]=r??bp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),bb(e,n)}function bb(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,d=t.referenceContext,h=t.warningContext,g=t.position,v=t.indent||[],D=e.length,b=0,k=-1,x=g.column||1,C=g.line||1,T="",F=[],S,A,_,$,P,I,j,z,K,G,L,N,H,Q,fe,ee,ue,me,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=De(),z=u?rt:lb,b--,D++;++b<D;)if(P===kp&&(x=v[k]||1),P=e.charCodeAt(b),P===wp){if(j=e.charCodeAt(b+1),j===ub||j===kp||j===cb||j===pb||j===wp||j===hb||j!==j||n&&j===n){T+=mr(P),x++;continue}for(H=b+1,N=H,ie=H,j===mb?(ie=++N,j=e.charCodeAt(ie),j===gb||j===vb?(Q=no,ie=++N):Q=ro):Q=gr,S="",L="",$="",fe=li[Q],ie--;++ie<D&&(j=e.charCodeAt(ie),!!fe(j));)$+=mr(j),Q===gr&&ob.call(vp,$)&&(S=$,L=vp[$]);_=e.charCodeAt(ie)===db,_&&(ie++,A=Q===gr?ib($):!1,A&&(S=$,L=A)),me=1+ie-H,!_&&!r||($?Q===gr?(_&&!L?z(Ep,1):(S!==$&&(ie=N+S.length,me=1+ie-N,_=!1),_||(K=S?Cp:xp,t.attribute?(j=e.charCodeAt(ie),j===fb?(z(K,me),L=null):yp(j)?L=null:z(K,me)):z(K,me))),I=L):(_||z(_p,me),I=parseInt($,ao[Q]),kb(I)?(z(Fp,me),I=mr(Db)):I in Dp?(z(io,me),I=Dp[I]):(G="",wb(I)&&z(io,me),I>65535&&(I-=65536,G+=mr(I>>>10|55296),I=56320|I&1023),I=G+mr(I))):Q!==gr&&z(Sp,me)),I?(Ne(),ee=De(),b=ie-1,x+=ie-H+1,F.push(I),ue=De(),ue.offset++,o&&o.call(d,I,{start:ee,end:ue},e.slice(H-1,ie)),ee=ue):($=e.slice(H-1,ie),T+=$,x+=$.length,b=ie-1)}else P===10&&(C++,k++,x=0),P===P?(T+=mr(P),x++):Ne();return F.join("");function De(){return{line:C,column:x,offset:b+(g.offset||0)}}function rt(Ee,Oe){var de=De();de.column+=Oe,de.offset+=Oe,u.call(h,vn[Ee],de,Ee)}function Ne(){T&&(F.push(T),i&&i.call(c,T,{start:ee,end:De()}),T="")}}function kb(e){return e>=55296&&e<=57343||e>1114111}function wb(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Ap={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
602
+ `)};if(K===0){var N=g.slice(D+1,b).concat(ai({children:[L],className:$.properties.className})),H=C(N,G);v.push(H)}else if(K===j.length-1){var Q=g[b+1]&&g[b+1].children&&g[b+1].children[0],fe={type:"text",value:"".concat(z)};if(Q){var ee=ai({children:[fe],className:$.properties.className});g.splice(b+1,0,ee)}else{var ue=[fe],me=C(ue,G,$.properties.className);v.push(me)}}else{var ie=[L],De=C(ie,G,$.properties.className);v.push(De)}}),D=b}b++};b<g.length;)T();if(D!==g.length-1){var F=g.slice(D+1,g.length);if(F&&F.length){var S=r&&v.length+o,A=C(F,S);v.push(A)}}return t?v:(h=[]).concat.apply(h,v)}function wy(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return Hc({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Gc(e){return e&&typeof e.highlightAuto<"u"}function Cy(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Gc(t)){var o=fy(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function _y(e,t){return function(r){var i=r.language,o=r.children,u=r.style,c=u===void 0?t:u,d=r.customStyle,h=d===void 0?{}:d,g=r.codeTagProps,v=g===void 0?{className:i?"language-".concat(i):void 0,style:Rt(Rt({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:g,D=r.useInlineStyles,b=D===void 0?!0:D,k=r.showLineNumbers,x=k===void 0?!1:k,C=r.showInlineLineNumbers,T=C===void 0?!0:C,F=r.startingLineNumber,S=F===void 0?1:F,A=r.lineNumberContainerStyle,_=r.lineNumberStyle,$=_===void 0?{}:_,P=r.wrapLines,I=r.wrapLongLines,j=I===void 0?!1:I,z=r.lineProps,K=z===void 0?{}:z,G=r.renderer,L=r.PreTag,N=L===void 0?"pre":L,H=r.CodeTag,Q=H===void 0?"code":H,fe=r.code,ee=fe===void 0?(Array.isArray(o)?o[0]:o)||"":fe,ue=r.astGenerator,me=ny(r,my);ue=ue||e;var ie=x?M.createElement(yy,{containerStyle:A,codeStyle:v.style||{},numberStyle:$,startingLineNumber:S,codeString:ee}):null,De=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},rt=Gc(ue)?"hljs":"prismjs",Ne=b?Object.assign({},me,{style:Object.assign({},De,h)}):Object.assign({},me,{className:me.className?"".concat(rt," ").concat(me.className):rt,style:Object.assign({},h)});if(j?v.style=Rt(Rt({},v.style),{},{whiteSpace:"pre-wrap"}):v.style=Rt(Rt({},v.style),{},{whiteSpace:"pre"}),!ue)return M.createElement(N,Ne,ie,M.createElement(Q,v,ee));(P===void 0&&G||j)&&(P=!0),G=G||wy;var Fe=[{type:"text",value:ee}],Oe=Cy({astGenerator:ue,language:i,code:ee,defaultCodeValue:Fe});Oe.language===null&&(Oe.value=Fe);var de=Oe.value.length+S,ft=ky(Oe,P,K,x,T,S,de,$,j);return M.createElement(N,Ne,M.createElement(Q,v,!T&&ie,G({rows:ft,stylesheet:c,useInlineStyles:b})))}}var xy=Ey,Sy=Object.prototype.hasOwnProperty;function Ey(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)Sy.call(n,r)&&(e[r]=n[r])}return e}var Yc=Kc,Gs=Kc.prototype;Gs.space=null,Gs.normal={},Gs.property={};function Kc(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var Jc=xy,Fy=Yc,Ay=$y;function $y(e){for(var t=e.length,n=[],r=[],i=-1,o,u;++i<t;)o=e[i],n.push(o.property),r.push(o.normal),u=o.space;return new Fy(Jc.apply(null,n),Jc.apply(null,r),u)}var Ys=Ty;function Ty(e){return e.toLowerCase()}var Xc=Qc,Et=Qc.prototype;Et.space=null,Et.attribute=null,Et.property=null,Et.boolean=!1,Et.booleanish=!1,Et.overloadedBoolean=!1,Et.number=!1,Et.commaSeparated=!1,Et.spaceSeparated=!1,Et.commaOrSpaceSeparated=!1,Et.mustUseProperty=!1,Et.defined=!1;function Qc(e,t){this.property=e,this.attribute=t}var qt={},By=0;qt.boolean=Hn(),qt.booleanish=Hn(),qt.overloadedBoolean=Hn(),qt.number=Hn(),qt.spaceSeparated=Hn(),qt.commaSeparated=Hn(),qt.commaOrSpaceSeparated=Hn();function Hn(){return Math.pow(2,++By)}var Zc=Xc,ep=qt,tp=Ks;Ks.prototype=new Zc,Ks.prototype.defined=!0;var np=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Ny=np.length;function Ks(e,t,n,r){var i=-1,o;for(rp(this,"space",r),Zc.call(this,e,t);++i<Ny;)o=np[i],rp(this,o,(n&ep[o])===ep[o])}function rp(e,t,n){n&&(e[t]=n)}var ap=Ys,jy=Yc,Py=tp,Zr=Ly;function Ly(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},i=e.properties,o=e.transform,u={},c={},d,h;for(d in i)h=new Py(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[ap(d)]=d,c[ap(h.attribute)]=d;return new jy(u,c,t)}var Oy=Zr,Iy=Oy({space:"xlink",transform:My,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function My(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Ry=Zr,qy=Ry({space:"xml",transform:Hy,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Hy(e,t){return"xml:"+t.slice(3).toLowerCase()}var Uy=Wy;function Wy(e,t){return t in e?e[t]:t}var zy=Uy,ip=Vy;function Vy(e,t){return zy(e,t.toLowerCase())}var Gy=Zr,Yy=ip,Ky=Gy({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yy,properties:{xmlns:null,xmlnsXLink:null}}),Js=qt,Jy=Zr,ht=Js.booleanish,Ft=Js.number,Un=Js.spaceSeparated,Xy=Jy({transform:Qy,properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:Ft,ariaColIndex:Ft,ariaColSpan:Ft,ariaControls:Un,ariaCurrent:null,ariaDescribedBy:Un,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Un,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Un,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Un,ariaLevel:Ft,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Un,ariaPlaceholder:null,ariaPosInSet:Ft,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Un,ariaRowCount:Ft,ariaRowIndex:Ft,ariaRowSpan:Ft,ariaSelected:ht,ariaSetSize:Ft,ariaSort:null,ariaValueMax:Ft,ariaValueMin:Ft,ariaValueNow:Ft,ariaValueText:null,role:null}});function Qy(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var mr=qt,Zy=Zr,e0=ip,le=mr.boolean,t0=mr.overloadedBoolean,ea=mr.booleanish,$e=mr.number,lt=mr.spaceSeparated,ii=mr.commaSeparated,n0=Zy({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ii,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:lt,autoFocus:le,autoPlay:le,capture:le,charSet:null,checked:le,cite:null,className:lt,cols:$e,colSpan:null,content:null,contentEditable:ea,controls:le,controlsList:lt,coords:$e|ii,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:t0,draggable:ea,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:lt,height:$e,hidden:le,high:$e,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:ii,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:lt,itemRef:lt,itemScope:le,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:$e,pattern:null,ping:lt,placeholder:null,playsInline:le,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:lt,required:le,reversed:le,rows:$e,rowSpan:$e,sandbox:lt,scope:null,scoped:le,seamless:le,selected:le,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:ea,src:null,srcDoc:null,srcLang:null,srcSet:ii,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:ea,width:$e,wrap:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:$e,borderColor:null,bottomMargin:$e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:ea,standby:null,summary:null,text:null,topMargin:$e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:$e,security:null,unselectable:null}}),r0=Ay,a0=Iy,i0=qy,s0=Ky,o0=Xy,l0=n0,u0=r0([i0,a0,s0,o0,l0]),c0=Ys,p0=tp,d0=Xc,Xs="data",h0=g0,f0=/^data[-\w.:]+$/i,sp=/-[a-z]/g,m0=/[A-Z]/g;function g0(e,t){var n=c0(t),r=t,i=d0;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Xs&&f0.test(t)&&(t.charAt(4)==="-"?r=v0(t):t=D0(t),i=p0),new i(r,t))}function v0(e){var t=e.slice(5).replace(sp,b0);return Xs+t.charAt(0).toUpperCase()+t.slice(1)}function D0(e){var t=e.slice(4);return sp.test(t)?e:(t=t.replace(m0,y0),t.charAt(0)!=="-"&&(t="-"+t),Xs+t)}function y0(e){return"-"+e.toLowerCase()}function b0(e){return e.charAt(1).toUpperCase()}var k0=w0,op=/[#.]/g;function w0(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)op.lastIndex=o,d=op.exec(n),u=n.slice(o,d?d.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),d&&(c=d[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Qs={};Qs.parse=x0,Qs.stringify=S0;var lp="",C0=" ",_0=/[ \t\n\r\f]+/g;function x0(e){var t=String(e||lp).trim();return t===lp?[]:t.split(_0)}function S0(e){return e.join(C0).trim()}var Zs={};Zs.parse=E0,Zs.stringify=F0;var eo=",",up=" ",ta="";function E0(e){for(var t=[],n=String(e||ta),r=n.indexOf(eo),i=0,o=!1,u;!o;)r===-1&&(r=n.length,o=!0),u=n.slice(i,r).trim(),(u||!o)&&t.push(u),i=r+1,r=n.indexOf(eo,i);return t}function F0(e,t){var n=t||{},r=n.padLeft===!1?ta:up,i=n.padRight?up:ta;return e[e.length-1]===ta&&(e=e.concat(ta)),e.join(i+eo+r).trim()}var A0=h0,cp=Ys,$0=k0,pp=Qs.parse,dp=Zs.parse,T0=N0,B0={}.hasOwnProperty;function N0(e,t,n){var r=n?I0(n):null;return i;function i(u,c){var d=$0(u,t),h=Array.prototype.slice.call(arguments,2),g=d.tagName.toLowerCase(),v;if(d.tagName=r&&B0.call(r,g)?r[g]:g,c&&j0(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return hp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,g,v;d==null||d!==d||(h=A0(e,c),g=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=pp(v):h.commaSeparated?v=dp(v):h.commaOrSpaceSeparated&&(v=pp(dp(v).join(" ")))),g==="style"&&typeof d!="string"&&(v=O0(v)),g==="className"&&u.className&&(v=u.className.concat(v)),u[g]=L0(h,g,v))}}function j0(e,t){return typeof e=="string"||"length"in e||P0(t.tagName,e)}function P0(e,t){var n=t.type;return e==="input"||!n||typeof n!="string"?!1:typeof t.children=="object"&&"length"in t.children?!0:(n=n.toLowerCase(),e==="button"?n!=="menu"&&n!=="submit"&&n!=="reset"&&n!=="button":"value"in t)}function hp(e,t){var n,r;if(typeof t=="string"||typeof t=="number"){e.push({type:"text",value:String(t)});return}if(typeof t=="object"&&"length"in t){for(n=-1,r=t.length;++n<r;)hp(e,t[n]);return}if(typeof t!="object"||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}function L0(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return fp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=fp(e,t,n[r]);return o}function fp(e,t,n){var r=n;return e.number||e.positiveNumber?!isNaN(r)&&r!==""&&(r=Number(r)):(e.boolean||e.overloadedBoolean)&&typeof r=="string"&&(r===""||cp(n)===cp(t))&&(r=!0),r}function O0(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function I0(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var M0=u0,R0=T0,mp=R0(M0,"div");mp.displayName="html";var q0=mp,H0=q0;const U0={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},W0={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var gp=z0;function z0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var V0=G0;function G0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Y0=K0;function K0(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var J0=Y0,X0=gp,Q0=Z0;function Z0(e){return J0(e)||X0(e)}var si,eb=59,tb=nb;function nb(e){var t="&"+e+";",n;return si=si||document.createElement("i"),si.innerHTML=t,n=si.textContent,n.charCodeAt(n.length-1)===eb&&e!=="semi"||n===t?!1:n}var vp=U0,Dp=W0,rb=gp,ab=V0,yp=Q0,ib=tb,sb=yb,ob={}.hasOwnProperty,gr=String.fromCharCode,lb=Function.prototype,bp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ub=9,kp=10,cb=12,pb=32,wp=38,db=59,hb=60,fb=61,mb=35,gb=88,vb=120,Db=65533,vr="named",to="hexadecimal",no="decimal",ro={};ro[to]=16,ro[no]=10;var oi={};oi[vr]=yp,oi[no]=rb,oi[to]=ab;var Cp=1,_p=2,xp=3,Sp=4,Ep=5,ao=6,Fp=7,vn={};vn[Cp]="Named character references must be terminated by a semicolon",vn[_p]="Numeric character references must be terminated by a semicolon",vn[xp]="Named character references cannot be empty",vn[Sp]="Numeric character references cannot be empty",vn[Ep]="Named character references must be known",vn[ao]="Numeric character references cannot be disallowed",vn[Fp]="Numeric character references cannot be outside the permissible Unicode range";function yb(e,t){var n={},r,i;t||(t={});for(i in bp)r=t[i],n[i]=r??bp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),bb(e,n)}function bb(e,t){var n=t.additional,r=t.nonTerminated,i=t.text,o=t.reference,u=t.warning,c=t.textContext,d=t.referenceContext,h=t.warningContext,g=t.position,v=t.indent||[],D=e.length,b=0,k=-1,x=g.column||1,C=g.line||1,T="",F=[],S,A,_,$,P,I,j,z,K,G,L,N,H,Q,fe,ee,ue,me,ie;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=De(),z=u?rt:lb,b--,D++;++b<D;)if(P===kp&&(x=v[k]||1),P=e.charCodeAt(b),P===wp){if(j=e.charCodeAt(b+1),j===ub||j===kp||j===cb||j===pb||j===wp||j===hb||j!==j||n&&j===n){T+=gr(P),x++;continue}for(H=b+1,N=H,ie=H,j===mb?(ie=++N,j=e.charCodeAt(ie),j===gb||j===vb?(Q=to,ie=++N):Q=no):Q=vr,S="",L="",$="",fe=oi[Q],ie--;++ie<D&&(j=e.charCodeAt(ie),!!fe(j));)$+=gr(j),Q===vr&&ob.call(vp,$)&&(S=$,L=vp[$]);_=e.charCodeAt(ie)===db,_&&(ie++,A=Q===vr?ib($):!1,A&&(S=$,L=A)),me=1+ie-H,!_&&!r||($?Q===vr?(_&&!L?z(Ep,1):(S!==$&&(ie=N+S.length,me=1+ie-N,_=!1),_||(K=S?Cp:xp,t.attribute?(j=e.charCodeAt(ie),j===fb?(z(K,me),L=null):yp(j)?L=null:z(K,me)):z(K,me))),I=L):(_||z(_p,me),I=parseInt($,ro[Q]),kb(I)?(z(Fp,me),I=gr(Db)):I in Dp?(z(ao,me),I=Dp[I]):(G="",wb(I)&&z(ao,me),I>65535&&(I-=65536,G+=gr(I>>>10|55296),I=56320|I&1023),I=G+gr(I))):Q!==vr&&z(Sp,me)),I?(Ne(),ee=De(),b=ie-1,x+=ie-H+1,F.push(I),ue=De(),ue.offset++,o&&o.call(d,I,{start:ee,end:ue},e.slice(H-1,ie)),ee=ue):($=e.slice(H-1,ie),T+=$,x+=$.length,b=ie-1)}else P===10&&(C++,k++,x=0),P===P?(T+=gr(P),x++):Ne();return F.join("");function De(){return{line:C,column:x,offset:b+(g.offset||0)}}function rt(Fe,Oe){var de=De();de.column+=Oe,de.offset+=Oe,u.call(h,vn[Fe],de,Fe)}function Ne(){T&&(F.push(T),i&&i.call(c,T,{start:ee,end:De()}),T="")}}function kb(e){return e>=55296&&e<=57343||e>1114111}function wb(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var Ap={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
603
603
  * Prism: Lightweight, robust, elegant syntax highlighting
604
604
  *
605
605
  * @license MIT <https://opensource.org/licenses/MIT>
606
606
  * @author Lea Verou <https://lea.verou.me>
607
607
  * @namespace
608
608
  * @public
609
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function F(S){return S instanceof d?new d(S.type,F(S.content),S.alias):Array.isArray(S)?S.map(F):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(F){return Object.prototype.toString.call(F).slice(8,-1)},objId:function(F){return F.__id||Object.defineProperty(F,"__id",{value:++o}),F.__id},clone:function F(S,A){A=A||{};var _,$;switch(c.util.type(S)){case"Object":if($=c.util.objId(S),A[$])return A[$];_={},A[$]=_;for(var P in S)S.hasOwnProperty(P)&&(_[P]=F(S[P],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(I,j){_[j]=F(I,A)}),_);default:return S}},getLanguage:function(F){for(;F;){var S=i.exec(F.className);if(S)return S[1].toLowerCase();F=F.parentElement}return"none"},setLanguage:function(F,S){F.className=F.className.replace(RegExp(i,"gi"),""),F.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(_){var F=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(F){var S=document.getElementsByTagName("script");for(var A in S)if(S[A].src==F)return S[A]}return null}},isActive:function(F,S,A){for(var _="no-"+S;F;){var $=F.classList;if($.contains(S))return!0;if($.contains(_))return!1;F=F.parentElement}return!!A}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(F,S){var A=c.util.clone(c.languages[F]);for(var _ in S)A[_]=S[_];return A},insertBefore:function(F,S,A,_){_=_||c.languages;var $=_[F],P={};for(var I in $)if($.hasOwnProperty(I)){if(I==S)for(var j in A)A.hasOwnProperty(j)&&(P[j]=A[j]);A.hasOwnProperty(I)||(P[I]=$[I])}var z=_[F];return _[F]=P,c.languages.DFS(c.languages,function(K,G){G===z&&K!=F&&(this[K]=P)}),P},DFS:function F(S,A,_,$){$=$||{};var P=c.util.objId;for(var I in S)if(S.hasOwnProperty(I)){A.call(S,I,S[I],_||I);var j=S[I],z=c.util.type(j);z==="Object"&&!$[P(j)]?($[P(j)]=!0,F(j,A,null,$)):z==="Array"&&!$[P(j)]&&($[P(j)]=!0,F(j,A,I,$))}}},plugins:{},highlightAll:function(F,S){c.highlightAllUnder(document,F,S)},highlightAllUnder:function(F,S,A){var _={callback:A,container:F,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),c.hooks.run("before-all-elements-highlight",_);for(var $=0,P;P=_.elements[$++];)c.highlightElement(P,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var P=F.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(P,_);var I=F.textContent,j={element:F,language:_,grammar:$,code:I};function z(G){j.highlightedCode=G,c.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,c.hooks.run("after-highlight",j),c.hooks.run("complete",j),A&&A.call(j.element)}if(c.hooks.run("before-sanity-check",j),P=j.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!j.code){c.hooks.run("complete",j),A&&A.call(j.element);return}if(c.hooks.run("before-highlight",j),!j.grammar){z(c.util.encode(j.code));return}if(S&&r.Worker){var K=new Worker(c.filename);K.onmessage=function(G){z(G.data)},K.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(c.highlight(j.code,j.grammar,j.language))},highlight:function(F,S,A){var _={code:F,grammar:S,language:A};if(c.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=c.tokenize(_.code,_.grammar),c.hooks.run("after-tokenize",_),d.stringify(c.util.encode(_.tokens),_.language)},tokenize:function(F,S){var A=S.rest;if(A){for(var _ in A)S[_]=A[_];delete S.rest}var $=new v;return D($,$.head,F),g(F,$,S,$.head,0),k($)},hooks:{all:{},add:function(F,S){var A=c.hooks.all;A[F]=A[F]||[],A[F].push(S)},run:function(F,S){var A=c.hooks.all[F];if(!(!A||!A.length))for(var _=0,$;$=A[_++];)$(S)}},Token:d};r.Prism=c;function d(F,S,A,_){this.type=F,this.content=S,this.alias=A,this.length=(_||"").length|0}d.stringify=function F(S,A){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(z){_+=F(z,A)}),_}var $={type:S.type,content:F(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},P=S.alias;P&&(Array.isArray(P)?Array.prototype.push.apply($.classes,P):$.classes.push(P)),c.hooks.run("wrap",$);var I="";for(var j in $.attributes)I+=" "+j+'="'+($.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+I+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var P=$[1].length;$.index+=P,$[0]=$[0].slice(P)}return $}function g(F,S,A,_,$,P){for(var I in A)if(!(!A.hasOwnProperty(I)||!A[I])){var j=A[I];j=Array.isArray(j)?j:[j];for(var z=0;z<j.length;++z){if(P&&P.cause==I+","+z)return;var K=j[z],G=K.inside,L=!!K.lookbehind,N=!!K.greedy,H=K.alias;if(N&&!K.pattern.global){var Q=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,Q+"g")}for(var fe=K.pattern||K,ee=_.next,ue=$;ee!==S.tail&&!(P&&ue>=P.reach);ue+=ee.value.length,ee=ee.next){var me=ee.value;if(S.length>F.length)return;if(!(me instanceof d)){var ie=1,De;if(N){if(De=h(fe,ue,F,L),!De||De.index>=F.length)break;var Oe=De.index,rt=De.index+De[0].length,Ne=ue;for(Ne+=ee.value.length;Oe>=Ne;)ee=ee.next,Ne+=ee.value.length;if(Ne-=ee.value.length,ue=Ne,ee.value instanceof d)continue;for(var Ee=ee;Ee!==S.tail&&(Ne<rt||typeof Ee.value=="string");Ee=Ee.next)ie++,Ne+=Ee.value.length;ie--,me=F.slice(ue,Ne),De.index-=ue}else if(De=h(fe,0,me,L),!De)continue;var Oe=De.index,de=De[0],ft=me.slice(0,Oe),Ht=me.slice(Oe+de.length),yt=ue+me.length;P&&yt>P.reach&&(P.reach=yt);var bt=ee.prev;ft&&(bt=D(S,bt,ft),ue+=ft.length),b(S,bt,ie);var Dn=new d(I,G?c.tokenize(de,G):de,H,de);if(ee=D(S,bt,Dn),Ht&&D(S,ee,Ht),ie>1){var kt={cause:I+","+z,reach:yt};g(F,S,A,ee.prev,ue,kt),P&&kt.reach>P.reach&&(P.reach=kt.reach)}}}}}}function v(){var F={value:null,prev:null,next:null},S={value:null,prev:F,next:null};F.next=S,this.head=F,this.tail=S,this.length=0}function D(F,S,A){var _=S.next,$={value:A,prev:S,next:_};return S.next=$,_.prev=$,F.length++,$}function b(F,S,A){for(var _=S.next,$=0;$<A&&_!==F.tail;$++)_=_.next;S.next=_,_.prev=S,F.length-=$}function k(F){for(var S=[],A=F.head.next;A!==F.tail;)S.push(A.value),A=A.next;return S}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(F){var S=JSON.parse(F.data),A=S.language,_=S.code,$=S.immediateClose;r.postMessage(c.highlight(_,c.languages[A],A)),$&&r.close()},!1)),c;var x=c.util.currentScript();x&&(c.filename=x.src,x.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var T=document.readyState;T==="loading"||T==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c}(t);e.exports&&(e.exports=n),typeof un<"u"&&(un.Prism=n)})(Ap);var Cb=Ap.exports,_b=so;so.displayName="markup",so.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function so(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var u={};u[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var xb=oo;oo.displayName="css",oo.aliases=[];function oo(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Sb=lo;lo.displayName="clike",lo.aliases=[];function lo(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Eb=uo;uo.displayName="javascript",uo.aliases=["js"];function uo(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var na=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof un=="object"?un:{},Fb=Wb();na.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ab=H0,$b=sb,$p=Cb,Tb=_b,Bb=xb,Nb=Sb,jb=Eb;Fb();var co={}.hasOwnProperty;function Tp(){}Tp.prototype=$p;var Me=new Tp,Pb=Me;Me.highlight=Ob,Me.register=ra,Me.alias=Lb,Me.registered=Ib,Me.listLanguages=Mb,ra(Tb),ra(Bb),ra(Nb),ra(jb),Me.util.encode=Hb,Me.Token.stringify=Rb;function ra(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Me.languages[e.displayName]===void 0&&e(Me)}function Lb(e,t){var n=Me.languages,r=e,i,o,u,c;t&&(r={},r[e]=t);for(i in r)for(o=r[i],o=typeof o=="string"?[o]:o,u=o.length,c=-1;++c<u;)n[o[c]]=n[i]}function Ob(e,t){var n=$p.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Me.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(co.call(Me.languages,t))r=Me.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Ib(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return co.call(Me.languages,e)}function Mb(){var e=Me.languages,t=[],n;for(n in e)co.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Rb(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Me.util.type(e)==="Array"?qb(e,t):(r={type:e.type,content:Me.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),Me.hooks.run("wrap",r),Ab(r.tag+"."+r.classes.join("."),Ub(r.attributes),r.content))}function qb(e,t){for(var n=[],r=e.length,i=-1,o;++i<r;)o=e[i],o!==""&&o!==null&&o!==void 0&&n.push(o);for(i=-1,r=n.length;++i<r;)o=n[i],n[i]=Me.Token.stringify(o,t,n);return n}function Hb(e){return e}function Ub(e){var t;for(t in e)e[t]=$b(e[t]);return e}function Wb(){var e="Prism"in na,t=e?na.Prism:void 0;return n;function n(){e?na.Prism=t:delete na.Prism,e=void 0,t=void 0}}const po=_a(Pb);var aa=_y(po,{});aa.registerLanguage=function(e,t){return po.register(t)},aa.alias=function(e,t){return po.alias(e,t)};const Bp={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zb=ho;ho.displayName="jsx",ho.aliases=[];function ho(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,g){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,g)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(c).join(""):""},d=function(h){for(var g=[],v=0;v<h.length;v++){var D=h[v],b=!1;if(typeof D!="string"&&(D.type==="tag"&&D.content[0]&&D.content[0].type==="tag"?D.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===c(D.content[0].content[1])&&g.pop():D.content[D.content.length-1].content==="/>"||g.push({tagName:c(D.content[0].content[1]),openedBraces:0}):g.length>0&&D.type==="punctuation"&&D.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&D.type==="punctuation"&&D.content==="}"?g[g.length-1].openedBraces--:b=!0),(b||typeof D=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var k=c(D);v<h.length-1&&(typeof h[v+1]=="string"||h[v+1].type==="plain-text")&&(k+=c(h[v+1]),h.splice(v+1,1)),v>0&&(typeof h[v-1]=="string"||h[v-1].type==="plain-text")&&(k=c(h[v-1])+k,h.splice(v-1,1),v--),h[v]=new t.Token("plain-text",k,null,k)}D.content&&typeof D.content!="string"&&d(D.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Vb=_a(zb),fo=M.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:g,inline:v=!1,fullwidth:D=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:F,...S},A)=>{const _=[r,"pkt-select"].join(" ");return m.jsx(ir,{className:_,forId:g,label:b,helptext:c,helptextDropdown:d,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:T,requiredText:F,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:m.jsx("select",{ref:A,className:`pkt-input ${D?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${g}-error`,"aria-labelledby":t||`${g}-label`,disabled:i,id:g,name:k||g,...S,children:n})})}),vr=M.forwardRef(({children:e,className:t,skin:n="blue",textStyle:r="normal-text",size:i="medium",closeTag:o=!1,iconName:u="",type:c="button",ariaLabel:d="close",onClick:h=()=>{}},g)=>{const[v,D]=M.useState(!1),b=T=>{D(!0),h(T)},k=["pkt-tag",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,t].filter(Boolean).join(" "),x=["pkt-tag","pkt-btn","pkt-btn--tertiary",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,u&&o?"pkt-btn--icons-right-and-left":null,o&&!u?"pkt-btn--icon-right":null,t].filter(Boolean).join(" "),C=!v;return o&&u?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e,m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"})]})}):o?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"}),e]})}):u?m.jsxs("span",{className:k,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e]}):m.jsx("span",{className:k,children:e})});vr.displayName="PktTag";const Np=M.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=M.useRef([]);M.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,d)=>{d.action&&d.action(c),n&&n(c)},u=(c,d)=>{var h,g;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((g=i.current[c+1])==null||g.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return m.jsx("div",{className:"pkt-tabs",ref:r,children:m.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>m.jsx(M.Fragment,{children:c.href?m.jsxs("a",{"aria-selected":!!c.active,role:e?"tab":void 0,href:c.href,"aria-controls":c.controls,className:`pkt-tabs__link ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(vr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):m.jsxs("button",{"aria-selected":!!c.active,role:e?"tab":void 0,type:"button","aria-controls":c.controls,className:`pkt-tabs__button pkt-link-button ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(vr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),mo=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:d,hasError:h=!1,helptext:g,helptextDropdown:v,helptextDropdownButton:D,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:F=!1,optionalText:S,requiredTag:A=!1,requiredText:_,placeholder:$,prefix:P,suffix:I,type:j="text",useWrapper:z=!0,omitSearchIcon:K=!1,value:G,onChange:L,...N},H)=>{const Q=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,ee=j==="search"&&!b&&!K;M.useRef(null);const[ue,me]=M.useState(0),ie=De=>{var rt,Ne;if(i&&me(((Ne=(rt=De.currentTarget)==null?void 0:rt.value)==null?void 0:Ne.length)||0),L)return L(De)};return m.jsx(ir,{ariaDescribedby:t,className:Q,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:g,helptextDropdown:v,helptextDropdownButton:D,inline:k,label:C,optionalTag:F,optionalText:S,requiredTag:A,requiredText:_,useWrapper:z,counter:i,counterCurrent:ue,counterMaxLength:o,children:m.jsxs("div",{className:"pkt-input__container",children:[P&&m.jsx("div",{className:"pkt-input-prefix",children:P}),m.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&ue>o?"pkt-input--counter-error":""}`,type:j,name:T||e,id:e,placeholder:$,autoComplete:r,value:G,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...N,onChange:ie}),I&&m.jsxs("p",{className:"pkt-input-suffix",children:[I,b&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:b}),ee&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!I&&b&&m.jsx(ne,{className:"pkt-input-icon",name:b}),!I&&ee&&m.jsx(ne,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Gb=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"}],ui=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>m.jsx("table",{"data-testid":"pkt-table",className:Je(e,"pkt-table",{"pkt-table--responsive":r,"pkt-table--compact":t,"pkt-table--basic":n==="basic","pkt-table--zebra-blue":n==="zebra-blue"}),role:"table",children:i}),ci=({className:e,children:t})=>m.jsx("thead",{className:Je(e,"pkt-table__header",{}),role:"rowgroup",children:t}),pi=({children:e,className:t})=>m.jsx("tbody",{className:Je(t,"pkt-table__body",{}),role:"rowgroup",children:e}),Wn=({className:e,children:t})=>m.jsx("tr",{className:Je(e,"pkt-table__row",{}),role:"row",children:t}),Tt=({className:e,children:t})=>m.jsx("th",{className:Je(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),Dt=({children:e,className:t,dataLabel:n})=>m.jsx("td",{className:Je(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Yb=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
610
- `):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Egenskaper"}),m.jsxs(ui,{compact:!0,children:[m.jsx(ci,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Navn"}),m.jsx(Tt,{children:"Prop"}),m.jsx(Tt,{children:"Beskrivelse"}),m.jsx(Tt,{children:"Type"}),m.jsx(Tt,{children:"Standardverdi"})]})}),m.jsx(pi,{children:Object.entries(e.props||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Prop",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?m.jsxs(m.Fragment,{children:[m.jsx(Dt,{dataLabel:"Beskrivelse"}),m.jsx(Dt,{dataLabel:"Type",children:m.jsx("pre",{children:i.join(`
611
- `)})})]}):m.jsxs(m.Fragment,{children:[m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Dt,{dataLabel:"Type",children:m.jsx("pre",{children:i.type&&t(i.type)})}),m.jsx(Dt,{dataLabel:"Standardverdi",children:m.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Hendelser / handlinger"}),m.jsxs(ui,{compact:!0,children:[m.jsx(ci,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Event"}),m.jsx(Tt,{children:"Beskrivelse"}),m.jsx(Tt,{children:"Type"})]})}),m.jsx(pi,{children:Object.entries(e.events||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Event",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Dt,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Innhold"}),m.jsxs(ui,{compact:!0,children:[m.jsx(ci,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Slot"}),m.jsx(Tt,{children:"Beskrivelse"})]})}),m.jsx(pi,{children:Object.entries(e.slots||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Slot",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})};aa.registerLanguage("jsx",Vb);const jp=({specs:e,children:t,fullWidth:n})=>{var K,G;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((L,[N,H])=>(typeof H=="object"&&!Array.isArray(H)&&H.default!==void 0&&H.default!==null&&(H.default==="false"&&(H.default=!1),H.default==="true"&&(H.default=!0),L[N]=H.default),L),{}):{},[i,o]=M.useState(r),[u,c]=M.useState("light"),[d,h]=M.useState(""),[g,v]=M.useState(""),[D,b]=M.useState(""),[k,x]=M.useState("Rediger innhold"),[C,T]=M.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${e.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),F=L=>{L===1&&_(),L===2&&(_(),A()),b(""),T(N=>N.map((H,Q)=>({...H,active:Q===L})))},S=M.useRef(null),A=async()=>{if(e.isElement&&M.isValidElement(I))_().then(()=>{const L=M.isValidElement(I)?I.type.displayName||I.type.name:e.name;h(g.replaceAll(L,e.name||"").replaceAll("{",'"').replaceAll("}",'"'))});else{const L=await Ws(S.current.innerHTML,{parser:"html",plugins:[ey]});h(L.replace(/<\!--.*?-->/g,""))}},_=async()=>{const L=Ig(I);return v(L),Promise.resolve()},$=(L,N)=>{navigator.clipboard.writeText(N).then(()=>{b(L),console.log("Copied to clipboard",L)})},P=(L,N)=>m.jsxs("div",{className:"pkt-preview__copy",children:[D===L&&m.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),m.jsx(Cn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(L,N),children:"Kopier kode"})]}),I=M.isValidElement(t)&&M.cloneElement(t,{...i},t.props.children?t.props.children:(K=e.slots)!=null&&K.default?k:null),j=(L,N,H=!1)=>{if(!H&&(!N||N=="false")){const{[L]:Q,...fe}=i;o(fe)}else o(Q=>({...Q,[L]:N}))},z=(L,N)=>{if(N.type==="boolean")return m.jsx(ir,{label:N.name||L,forId:L,helptext:N.description||null,hasFieldset:!0,requiredTag:N.required,children:m.jsx(Ra,{id:L,label:L,type:"checkbox",checked:i[L],onChange:H=>j(L,H.target.checked,N.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(N.type==="icon")return m.jsxs(fo,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:H=>j(L,H.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),Gb.map(H=>m.jsx("option",{value:H.id,children:H.id},H.id))]});if(Array.isArray(N)||Array.isArray(N.type)||Array.isArray(N.values)){const H=Array.isArray(N)?N:N.values||N.type;return m.jsxs(fo,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:Q=>j(L,Q.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),H.map(Q=>m.jsx("option",{value:Q,children:Q},Q))]})}else return N.type==="ISOdatestring"?m.jsx(Xl,{id:L,label:N.name||L,helptext:N.description||null,value:i[L],multiple:N.variant==="multiple",maxlength:999,onChange:H=>j(L,H.target.value),requiredTag:N.required}):m.jsx(mo,{id:L,label:N.name||L,helptext:N.description||null,type:"text",value:i[L],onChange:H=>j(L,N.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:N.required})};return m.jsxs("div",{className:"pkt-preview",children:[m.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&m.jsx("div",{className:"pkt-preview__mode",children:m.jsx(Ra,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:L=>c(L.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),m.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:S,children:m.jsx("div",{children:I})})]}),m.jsx(Np,{tabs:C,onTabSelected:F}),m.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((G=e.slots)==null?void 0:G.default)&&!t.props.children&&m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(vr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),m.jsx(mo,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:L=>x(L.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([L,N])=>m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(vr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:L}),z(L,N)]},L)):m.jsx("p",{children:"OBS! Specs mangler props!"})]}),m.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"jsx",style:Bp,children:g}),P("jsx",g)]}),m.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"html",style:Bp,children:d}),P("html",d)]}),m.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:m.jsx(Yb,{specs:e})})]})};jp.displayName="PktPreview";for(var Ze=[],go=0;go<256;++go)Ze.push((go+256).toString(16).slice(1));function Kb(e,t=0){return(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase()}var di,Jb=new Uint8Array(16);function Xb(){if(!di&&(di=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!di))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return di(Jb)}var Qb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pp={randomUUID:Qb};function Zb(e,t,n){if(Pp.randomUUID&&!t&&!e)return Pp.randomUUID();e=e||{};var r=e.random||(e.rng||Xb)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kb(r)}const Lp=M.forwardRef(({valueCurrent:e,valueMin:t=0,valueMax:n=100,skin:r="dark-blue",title:i,titlePosition:o="left",statusType:u="none",statusPlacement:c="following",id:d,ariaLabel:h,ariaLabelledby:g,role:v="progressbar",className:D,ariaValueText:b,...k},x)=>{const C=M.useRef(null),[T,F]=M.useState(0),[S,A]=M.useState(d);M.useEffect(()=>{d||A(Zb())},[d]),M.useEffect(()=>{if(C.current){const N=C.current;F(N.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,P=n!==100||t!==0?Math.round($):e,I=`${e} av ${n}`,j=u!=="none",z=Je("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),K=Je("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),G=Je("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),L=Je({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return m.jsxs("div",{...k,ref:x,className:Je("pkt-progressbar__container",D),id:S,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${P}%`},children:[i&&m.jsx("p",{id:`${S}-title`,className:K,children:i}),m.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":g||i&&`${S}-title`,"aria-label":h,"aria-valuetext":b,children:m.jsx("div",{className:z})}),j&&m.jsx("div",{className:G,children:m.jsx("span",{className:L,ref:C,children:u==="percentage"?`${P}%`:I})})]})});Lp.displayName="PktProgressbar";const Op=M.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const g=[r,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:g,children:m.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[m.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:o,name:t,...d}),m.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Op.displayName="PktRadioButton";const ek=M.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:d="",action:h,method:g,onChange:v,onSearch:D,onSuggestionClick:b,...k},x)=>{const C=(_,$)=>{_?_():b&&b($)},T=_=>{d=_.target.value},F=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,S=i?"label":"div";let A;return h?A=_=>m.jsx("form",{role:"search",className:F,action:h,method:g,children:_}):A=_=>m.jsx("div",{role:"search",className:F,children:_}),A(m.jsxs(m.Fragment,{children:[m.jsxs(S,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&m.jsx(m.Fragment,{children:i}),m.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[m.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:x,"aria-controls":`${r}-suggestions`,onChange:v||T,...k}),m.jsx(Cn,{className:`pkt-searchinput__button ${e==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:e==="local"?"tertiary":"primary",color:e==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:D&&(_=>{_.preventDefault(),D(d)}),onKeyUp:D&&(_=>{_.key==="Enter"&&(_.preventDefault(),D(d))}),children:i||u})]})]}),c&&m.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((_,$)=>m.jsx("li",{children:M.createElement(_.href?"a":_.onClick?"button":"div",{href:_.href,className:`pkt-searchinput__suggestion ${_.onClick?"pkt-link-button":""} ${_.href||_.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:_.onClick?"button":void 0,onClick:()=>C(_.onClick,$),onKeyUp:()=>C(_.onClick,$)},m.jsxs(m.Fragment,{children:[_.title&&m.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:_.title}),_.text&&m.jsx("p",{className:"pkt-searchinput__suggestion-text",children:_.text})]}))},`search-suggestion-${$}`))})]}))}),tk=M.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveStepsContent:r=!0,orientation:i="vertical",...o},u)=>{const c=Je(t,"pkt-stepper",i==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),d=M.Children.map(n,(h,g)=>M.isValidElement(h)?M.cloneElement(h,{className:Je(h.props.className,{"pkt-step--hidden":r&&g!==e})}):h);return m.jsx("ol",{"data-testid":"pkt-stepper",className:c,ref:u,...o,children:d})}),nk=m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:m.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),rk=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),m.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),ak=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),m.jsx("path",{d:"m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z",fill:"#F1FDFF"})]}),ik=({children:e,className:t,status:n="incomplete",title:r})=>m.jsxs("li",{className:Je("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[m.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),m.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),m.jsx("span",{className:Je("pkt-step__indicator"),children:n==="current"?rk:n==="completed"?ak:nk}),m.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),m.jsxs("div",{className:"pkt-step__wrapper",children:[m.jsx("div",{className:"pkt-step__title",children:r}),m.jsx("div",{className:"pkt-step__content",children:e})]})]}),sk=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:F=!1,requiredText:S,placeholder:A,rows:_,useWrapper:$=!0,onChange:P,...I},j)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),K=n||`${e}-label`,G=M.useRef(null),[L,N]=M.useState(0),H=Q=>{var fe,ee;if(r&&N(((ee=(fe=Q.currentTarget)==null?void 0:fe.value)==null?void 0:ee.length)||0),P)return P(Q)};return M.useEffect(()=>{var Q,fe;typeof j=="function"&&j(G.current),r&&N(((fe=(Q=G==null?void 0:G.current)==null?void 0:Q.value)==null?void 0:fe.length)||0)},[j]),m.jsx(ir,{ariaDescribedby:t,className:z,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,label:k,optionalTag:C,optionalText:T,requiredTag:F,requiredText:S,useWrapper:$,counter:r,counterCurrent:L,counterMaxLength:i,children:m.jsx("textarea",{ref:G,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&L>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:A,disabled:u,rows:_,"aria-labelledby":K,"aria-invalid":d,"aria-errormessage":`${e}-error`,...I,onChange:H})})});Z.PktAccordion=th,Z.PktAccordionItem=oh,Z.PktAlert=zi,Z.PktBackLink=il,Z.PktBreadcrumbs=lh,Z.PktButton=Cn,Z.PktCard=Jl,Z.PktCheckbox=Ra,Z.PktDatepicker=Xl,Z.PktFooter=Wm,Z.PktFooterSimple=zm,Z.PktHeader=Vm,Z.PktIcon=ne,Z.PktIconContext=rl,Z.PktInput=Ql,Z.PktInputWrapper=ir,Z.PktLink=Zl,Z.PktLinkCard=eu,Z.PktLoader=tu,Z.PktMessagebox=nu,Z.PktPreview=jp,Z.PktProgressbar=Lp,Z.PktRadioButton=Op,Z.PktSearchInput=ek,Z.PktSelect=fo,Z.PktStep=ik,Z.PktStepper=tk,Z.PktTable=ui,Z.PktTableBody=pi,Z.PktTableDataCell=Dt,Z.PktTableHeader=ci,Z.PktTableHeaderCell=Tt,Z.PktTableRow=Wn,Z.PktTabs=Np,Z.PktTag=vr,Z.PktTextarea=sk,Z.PktTextinput=mo,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});
609
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,u={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function F(S){return S instanceof d?new d(S.type,F(S.content),S.alias):Array.isArray(S)?S.map(F):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(F){return Object.prototype.toString.call(F).slice(8,-1)},objId:function(F){return F.__id||Object.defineProperty(F,"__id",{value:++o}),F.__id},clone:function F(S,A){A=A||{};var _,$;switch(c.util.type(S)){case"Object":if($=c.util.objId(S),A[$])return A[$];_={},A[$]=_;for(var P in S)S.hasOwnProperty(P)&&(_[P]=F(S[P],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(I,j){_[j]=F(I,A)}),_);default:return S}},getLanguage:function(F){for(;F;){var S=i.exec(F.className);if(S)return S[1].toLowerCase();F=F.parentElement}return"none"},setLanguage:function(F,S){F.className=F.className.replace(RegExp(i,"gi"),""),F.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(_){var F=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(F){var S=document.getElementsByTagName("script");for(var A in S)if(S[A].src==F)return S[A]}return null}},isActive:function(F,S,A){for(var _="no-"+S;F;){var $=F.classList;if($.contains(S))return!0;if($.contains(_))return!1;F=F.parentElement}return!!A}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(F,S){var A=c.util.clone(c.languages[F]);for(var _ in S)A[_]=S[_];return A},insertBefore:function(F,S,A,_){_=_||c.languages;var $=_[F],P={};for(var I in $)if($.hasOwnProperty(I)){if(I==S)for(var j in A)A.hasOwnProperty(j)&&(P[j]=A[j]);A.hasOwnProperty(I)||(P[I]=$[I])}var z=_[F];return _[F]=P,c.languages.DFS(c.languages,function(K,G){G===z&&K!=F&&(this[K]=P)}),P},DFS:function F(S,A,_,$){$=$||{};var P=c.util.objId;for(var I in S)if(S.hasOwnProperty(I)){A.call(S,I,S[I],_||I);var j=S[I],z=c.util.type(j);z==="Object"&&!$[P(j)]?($[P(j)]=!0,F(j,A,null,$)):z==="Array"&&!$[P(j)]&&($[P(j)]=!0,F(j,A,I,$))}}},plugins:{},highlightAll:function(F,S){c.highlightAllUnder(document,F,S)},highlightAllUnder:function(F,S,A){var _={callback:A,container:F,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),c.hooks.run("before-all-elements-highlight",_);for(var $=0,P;P=_.elements[$++];)c.highlightElement(P,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var P=F.parentElement;P&&P.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(P,_);var I=F.textContent,j={element:F,language:_,grammar:$,code:I};function z(G){j.highlightedCode=G,c.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,c.hooks.run("after-highlight",j),c.hooks.run("complete",j),A&&A.call(j.element)}if(c.hooks.run("before-sanity-check",j),P=j.element.parentElement,P&&P.nodeName.toLowerCase()==="pre"&&!P.hasAttribute("tabindex")&&P.setAttribute("tabindex","0"),!j.code){c.hooks.run("complete",j),A&&A.call(j.element);return}if(c.hooks.run("before-highlight",j),!j.grammar){z(c.util.encode(j.code));return}if(S&&r.Worker){var K=new Worker(c.filename);K.onmessage=function(G){z(G.data)},K.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(c.highlight(j.code,j.grammar,j.language))},highlight:function(F,S,A){var _={code:F,grammar:S,language:A};if(c.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=c.tokenize(_.code,_.grammar),c.hooks.run("after-tokenize",_),d.stringify(c.util.encode(_.tokens),_.language)},tokenize:function(F,S){var A=S.rest;if(A){for(var _ in A)S[_]=A[_];delete S.rest}var $=new v;return D($,$.head,F),g(F,$,S,$.head,0),k($)},hooks:{all:{},add:function(F,S){var A=c.hooks.all;A[F]=A[F]||[],A[F].push(S)},run:function(F,S){var A=c.hooks.all[F];if(!(!A||!A.length))for(var _=0,$;$=A[_++];)$(S)}},Token:d};r.Prism=c;function d(F,S,A,_){this.type=F,this.content=S,this.alias=A,this.length=(_||"").length|0}d.stringify=function F(S,A){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(z){_+=F(z,A)}),_}var $={type:S.type,content:F(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},P=S.alias;P&&(Array.isArray(P)?Array.prototype.push.apply($.classes,P):$.classes.push(P)),c.hooks.run("wrap",$);var I="";for(var j in $.attributes)I+=" "+j+'="'+($.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+I+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var P=$[1].length;$.index+=P,$[0]=$[0].slice(P)}return $}function g(F,S,A,_,$,P){for(var I in A)if(!(!A.hasOwnProperty(I)||!A[I])){var j=A[I];j=Array.isArray(j)?j:[j];for(var z=0;z<j.length;++z){if(P&&P.cause==I+","+z)return;var K=j[z],G=K.inside,L=!!K.lookbehind,N=!!K.greedy,H=K.alias;if(N&&!K.pattern.global){var Q=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,Q+"g")}for(var fe=K.pattern||K,ee=_.next,ue=$;ee!==S.tail&&!(P&&ue>=P.reach);ue+=ee.value.length,ee=ee.next){var me=ee.value;if(S.length>F.length)return;if(!(me instanceof d)){var ie=1,De;if(N){if(De=h(fe,ue,F,L),!De||De.index>=F.length)break;var Oe=De.index,rt=De.index+De[0].length,Ne=ue;for(Ne+=ee.value.length;Oe>=Ne;)ee=ee.next,Ne+=ee.value.length;if(Ne-=ee.value.length,ue=Ne,ee.value instanceof d)continue;for(var Fe=ee;Fe!==S.tail&&(Ne<rt||typeof Fe.value=="string");Fe=Fe.next)ie++,Ne+=Fe.value.length;ie--,me=F.slice(ue,Ne),De.index-=ue}else if(De=h(fe,0,me,L),!De)continue;var Oe=De.index,de=De[0],ft=me.slice(0,Oe),Ht=me.slice(Oe+de.length),yt=ue+me.length;P&&yt>P.reach&&(P.reach=yt);var bt=ee.prev;ft&&(bt=D(S,bt,ft),ue+=ft.length),b(S,bt,ie);var Dn=new d(I,G?c.tokenize(de,G):de,H,de);if(ee=D(S,bt,Dn),Ht&&D(S,ee,Ht),ie>1){var kt={cause:I+","+z,reach:yt};g(F,S,A,ee.prev,ue,kt),P&&kt.reach>P.reach&&(P.reach=kt.reach)}}}}}}function v(){var F={value:null,prev:null,next:null},S={value:null,prev:F,next:null};F.next=S,this.head=F,this.tail=S,this.length=0}function D(F,S,A){var _=S.next,$={value:A,prev:S,next:_};return S.next=$,_.prev=$,F.length++,$}function b(F,S,A){for(var _=S.next,$=0;$<A&&_!==F.tail;$++)_=_.next;S.next=_,_.prev=S,F.length-=$}function k(F){for(var S=[],A=F.head.next;A!==F.tail;)S.push(A.value),A=A.next;return S}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(F){var S=JSON.parse(F.data),A=S.language,_=S.code,$=S.immediateClose;r.postMessage(c.highlight(_,c.languages[A],A)),$&&r.close()},!1)),c;var x=c.util.currentScript();x&&(c.filename=x.src,x.hasAttribute("data-manual")&&(c.manual=!0));function C(){c.manual||c.highlightAll()}if(!c.manual){var T=document.readyState;T==="loading"||T==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return c}(t);e.exports&&(e.exports=n),typeof un<"u"&&(un.Prism=n)})(Ap);var Cb=Ap.exports,_b=io;io.displayName="markup",io.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function io(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var u={};u[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var xb=so;so.displayName="css",so.aliases=[];function so(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var Sb=oo;oo.displayName="clike",oo.aliases=[];function oo(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Eb=lo;lo.displayName="javascript",lo.aliases=["js"];function lo(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var na=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof un=="object"?un:{},Fb=Wb();na.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ab=H0,$b=sb,$p=Cb,Tb=_b,Bb=xb,Nb=Sb,jb=Eb;Fb();var uo={}.hasOwnProperty;function Tp(){}Tp.prototype=$p;var Me=new Tp,Pb=Me;Me.highlight=Ob,Me.register=ra,Me.alias=Lb,Me.registered=Ib,Me.listLanguages=Mb,ra(Tb),ra(Bb),ra(Nb),ra(jb),Me.util.encode=Hb,Me.Token.stringify=Rb;function ra(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Me.languages[e.displayName]===void 0&&e(Me)}function Lb(e,t){var n=Me.languages,r=e,i,o,u,c;t&&(r={},r[e]=t);for(i in r)for(o=r[i],o=typeof o=="string"?[o]:o,u=o.length,c=-1;++c<u;)n[o[c]]=n[i]}function Ob(e,t){var n=$p.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Me.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(uo.call(Me.languages,t))r=Me.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Ib(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return uo.call(Me.languages,e)}function Mb(){var e=Me.languages,t=[],n;for(n in e)uo.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Rb(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Me.util.type(e)==="Array"?qb(e,t):(r={type:e.type,content:Me.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),Me.hooks.run("wrap",r),Ab(r.tag+"."+r.classes.join("."),Ub(r.attributes),r.content))}function qb(e,t){for(var n=[],r=e.length,i=-1,o;++i<r;)o=e[i],o!==""&&o!==null&&o!==void 0&&n.push(o);for(i=-1,r=n.length;++i<r;)o=n[i],n[i]=Me.Token.stringify(o,t,n);return n}function Hb(e){return e}function Ub(e){var t;for(t in e)e[t]=$b(e[t]);return e}function Wb(){var e="Prism"in na,t=e?na.Prism:void 0;return n;function n(){e?na.Prism=t:delete na.Prism,e=void 0,t=void 0}}const co=_a(Pb);var aa=_y(co,{});aa.registerLanguage=function(e,t){return co.register(t)},aa.alias=function(e,t){return co.alias(e,t)};const Bp={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var zb=po;po.displayName="jsx",po.aliases=[];function po(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,g){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,g)}o=u(o).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(c).join(""):""},d=function(h){for(var g=[],v=0;v<h.length;v++){var D=h[v],b=!1;if(typeof D!="string"&&(D.type==="tag"&&D.content[0]&&D.content[0].type==="tag"?D.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===c(D.content[0].content[1])&&g.pop():D.content[D.content.length-1].content==="/>"||g.push({tagName:c(D.content[0].content[1]),openedBraces:0}):g.length>0&&D.type==="punctuation"&&D.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&D.type==="punctuation"&&D.content==="}"?g[g.length-1].openedBraces--:b=!0),(b||typeof D=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var k=c(D);v<h.length-1&&(typeof h[v+1]=="string"||h[v+1].type==="plain-text")&&(k+=c(h[v+1]),h.splice(v+1,1)),v>0&&(typeof h[v-1]=="string"||h[v-1].type==="plain-text")&&(k=c(h[v-1])+k,h.splice(v-1,1),v--),h[v]=new t.Token("plain-text",k,null,k)}D.content&&typeof D.content!="string"&&d(D.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Vb=_a(zb),ho=M.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:g,inline:v=!1,fullwidth:D=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:F,...S},A)=>{const _=[r,"pkt-select"].join(" ");return m.jsx(sr,{className:_,forId:g,label:b,helptext:c,helptextDropdown:d,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:T,requiredText:F,hasError:u,errorMessage:o,disabled:i,inline:v,ariaDescribedby:e,children:m.jsx("select",{ref:A,className:`pkt-input ${D?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${g}-error`,"aria-labelledby":t||`${g}-label`,disabled:i,id:g,name:k||g,...S,children:n})})}),Dr=M.forwardRef(({children:e,className:t,skin:n="blue",textStyle:r="normal-text",size:i="medium",closeTag:o=!1,iconName:u="",type:c="button",ariaLabel:d="close",onClick:h=()=>{}},g)=>{const[v,D]=M.useState(!1),b=T=>{D(!0),h(T)},k=["pkt-tag",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,t].filter(Boolean).join(" "),x=["pkt-tag","pkt-btn","pkt-btn--tertiary",i&&`pkt-tag--${i}`,n&&`pkt-tag--${n}`,r&&`pkt-tag--${r}`,u&&o?"pkt-btn--icons-right-and-left":null,o&&!u?"pkt-btn--icon-right":null,t].filter(Boolean).join(" "),C=!v;return o&&u?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e,m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"})]})}):o?m.jsx(m.Fragment,{children:C&&m.jsxs("button",{className:x,type:c,"aria-label":d,onClick:b,ref:g,children:[m.jsx(ne,{className:"pkt-tag__close-btn",name:"close"}),e]})}):u?m.jsxs("span",{className:k,children:[m.jsx(ne,{className:"pkt-tag__icon",name:u}),e]}):m.jsx("span",{className:k,children:e})});Dr.displayName="PktTag";const Np=M.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=M.useRef([]);M.useEffect(()=>{i.current=i.current.slice(0,t.length)},[t]);const o=(c,d)=>{d.action&&d.action(c),n&&n(c)},u=(c,d)=>{var h,g;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((g=i.current[c+1])==null||g.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return m.jsx("div",{className:"pkt-tabs",ref:r,children:m.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>m.jsx(M.Fragment,{children:c.href?m.jsxs("a",{"aria-selected":!!c.active,role:e?"tab":void 0,href:c.href,"aria-controls":c.controls,className:`pkt-tabs__link ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(Dr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):m.jsxs("button",{"aria-selected":!!c.active,role:e?"tab":void 0,type:"button","aria-controls":c.controls,className:`pkt-tabs__button pkt-link-button ${c.active?"active":""}`,onKeyUp:h=>u(d,h),onClick:()=>o(d,c),tabIndex:c.active||!e?void 0:-1,ref:h=>{i.current[d]=h},children:[c.icon&&m.jsx(ne,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&m.jsx(Dr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),fo=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,autocomplete:r="off",counter:i,counterMaxLength:o,className:u,disabled:c=!1,errorMessage:d,hasError:h=!1,helptext:g,helptextDropdown:v,helptextDropdownButton:D,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:F=!1,optionalText:S,requiredTag:A=!1,requiredText:_,placeholder:$,prefix:P,suffix:I,type:j="text",useWrapper:z=!0,omitSearchIcon:K=!1,value:G,onChange:L,...N},H)=>{const Q=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,ee=j==="search"&&!b&&!K;M.useRef(null);const[ue,me]=M.useState(0),ie=De=>{var rt,Ne;if(i&&me(((Ne=(rt=De.currentTarget)==null?void 0:rt.value)==null?void 0:Ne.length)||0),L)return L(De)};return m.jsx(sr,{ariaDescribedby:t,className:Q,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:g,helptextDropdown:v,helptextDropdownButton:D,inline:k,label:C,optionalTag:F,optionalText:S,requiredTag:A,requiredText:_,useWrapper:z,counter:i,counterCurrent:ue,counterMaxLength:o,children:m.jsxs("div",{className:"pkt-input__container",children:[P&&m.jsx("div",{className:"pkt-input-prefix",children:P}),m.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&ue>o?"pkt-input--counter-error":""}`,type:j,name:T||e,id:e,placeholder:$,autoComplete:r,value:G,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...N,onChange:ie}),I&&m.jsxs("p",{className:"pkt-input-suffix",children:[I,b&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:b}),ee&&m.jsx(ne,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!I&&b&&m.jsx(ne,{className:"pkt-input-icon",name:b}),!I&&ee&&m.jsx(ne,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Gb=[{id:"24h",fn:"24h.svg",cat:"services"},{id:"active-person",fn:"active-person.svg",cat:"people-and-health"},{id:"adjust",fn:"adjust.svg",cat:"ui"},{id:"alert-circle",fn:"alert-circle.svg",cat:"ui"},{id:"alert-error",fn:"alert-error.svg",cat:"ui"},{id:"alert-information",fn:"alert-information.svg",cat:"ui"},{id:"alert-success",fn:"alert-success.svg",cat:"ui"},{id:"alert-warning",fn:"alert-warning.svg",cat:"ui"},{id:"apple",fn:"apple.svg",cat:"ui"},{id:"archive",fn:"archive.svg",cat:"ui"},{id:"arrow-circle",fn:"arrow-circle.svg",cat:"ui"},{id:"arrow",fn:"arrow.svg",cat:"arrows"},{id:"attachment",fn:"attachment.svg",cat:"ui"},{id:"backpack",fn:"backpack.svg",cat:"services"},{id:"balloons",fn:"balloons.svg",cat:"ui"},{id:"books",fn:"books.svg",cat:"services"},{id:"wardrobe-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"brain-heart",fn:"brain-heart.svg",cat:"people-and-health"},{id:"brain-signal",fn:"brain-signal.svg",cat:"people-and-health"},{id:"briefcase",fn:"briefcase.svg",cat:"sign"},{id:"bullseye",fn:"bullseye.svg",cat:"ui"},{id:"bus",fn:"bus.svg",cat:"services"},{id:"cafe",fn:"cafe.svg",cat:"sign"},{id:"calendar",fn:"calendar.svg",cat:"ui"},{id:"camera",fn:"camera.svg",cat:"ui"},{id:"car",fn:"car.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{id:"care-room",fn:"care-room.svg",cat:"sign"},{id:"check-big",fn:"check-big.svg",cat:"ui"},{id:"check-circle",fn:"check-circle.svg",cat:"ui"},{id:"check-medium",fn:"check-medium.svg",cat:"ui"},{id:"check",fn:"check.svg",cat:"ui"},{id:"chevron-down",fn:"chevron-down.svg",cat:"arrows"},{id:"chevron-left",fn:"chevron-left.svg",cat:"arrows"},{id:"chevron-right",fn:"chevron-right.svg",cat:"arrows"},{id:"chevron-thin-down",fn:"chevron-thin-down.svg",cat:"arrows"},{id:"chevron-thin-left",fn:"chevron-thin-left.svg",cat:"arrows"},{id:"chevron-thin-right",fn:"chevron-thin-right.svg",cat:"arrows"},{id:"chevron-thin-up",fn:"chevron-thin-up.svg",cat:"arrows"},{id:"chevron-up-and-down",fn:"chevron-up-and-down.svg",cat:"ui"},{id:"chevron-up",fn:"chevron-up.svg",cat:"arrows"},{id:"clock",fn:"clock.svg",cat:"ui"},{id:"close",fn:"close.svg",cat:"ui"},{id:"cloud",fn:"cloud.svg",cat:"ui"},{id:"code",fn:"code.svg",cat:"ui"},{id:"coffee",fn:"coffee.svg",cat:"sign"},{id:"cogwheel",fn:"cogwheel.svg",cat:"ui"},{id:"coin-stacks",fn:"coin-stacks.svg",cat:"services"},{id:"computer",fn:"computer.svg",cat:"ui"},{id:"copy",fn:"copy.svg",cat:"ui"},{id:"crane",fn:"crane.svg",cat:"services"},{id:"cross-circle-big",fn:"cross-circle-big.svg",cat:"ui"},{id:"cross-circle-fill",fn:"cross-circle-fill.svg",cat:"ui"},{id:"cross-circle",fn:"cross-circle.svg",cat:"ui"},{id:"cross",fn:"cross.svg",cat:"ui"},{id:"data",fn:"data.svg",cat:"ui"},{id:"defibrillators",fn:"defibrillators.svg",cat:"sign"},{id:"district",fn:"district.svg",cat:"ui"},{id:"document-code",fn:"document-code.svg",cat:"ui"},{id:"document-pdf",fn:"document-pdf.svg",cat:"ui"},{id:"document-plain",fn:"document-plain.svg",cat:"ui"},{id:"document-table",fn:"document-table.svg",cat:"ui"},{id:"document-text",fn:"document-text.svg",cat:"ui"},{id:"download",fn:"download.svg",cat:"ui"},{id:"drag",fn:"drag.svg",cat:"ui"},{id:"drinking-area-refreshments",fn:"drinking-area-refreshments.svg",cat:"sign"},{id:"ecg-heart",fn:"ecg-heart.svg",cat:"people-and-health"},{id:"edit",fn:"edit.svg",cat:"ui"},{id:"email",fn:"email.svg",cat:"ui"},{id:"exclamation-mark-circle",fn:"exclamation-mark-circle.svg",cat:"ui"},{id:"exclamation-mark-square",fn:"exclamation-mark-square.svg",cat:"ui"},{id:"exit",fn:"exit.svg",cat:"ui"},{id:"expand",fn:"expand.svg",cat:"ui"},{id:"eye",fn:"eye.svg",cat:"ui"},{id:"face-almost-happy",fn:"face-almost-happy.svg",cat:"feedback"},{id:"face-almost-sad",fn:"face-almost-sad.svg",cat:"feedback"},{id:"face-happy",fn:"face-happy.svg",cat:"feedback"},{id:"face-neutral",fn:"face-neutral.svg",cat:"feedback"},{id:"face-sad",fn:"face-sad.svg",cat:"feedback"},{id:"facebook",fn:"facebook.svg",cat:"social"},{id:"factory-fill",fn:"factory-fill.svg",cat:"ui"},{id:"feedback",fn:"feedback.svg",cat:"ui"},{id:"figma",fn:"figma.svg",cat:"social"},{id:"filter",fn:"filter.svg",cat:"ui"},{id:"fire-emblem",fn:"fire-emblem.svg",cat:"services"},{id:"fire-safety",fn:"fire-safety.svg",cat:"people-and-health"},{id:"folder",fn:"folder.svg",cat:"ui"},{id:"game-console",fn:"game-console.svg",cat:"ui"},{id:"github",fn:"github.svg",cat:"social"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"heart-hand",fn:"heart-hand.svg",cat:"people-and-health"},{id:"heart-plus",fn:"heart-plus.svg",cat:"services"},{id:"heart",fn:"heart.svg",cat:"ui"},{id:"holding-hands",fn:"holding-hands.svg",cat:"people-and-health"},{id:"home",fn:"home.svg",cat:"ui"},{id:"horizontal-menu",fn:"horizontal-menu.svg",cat:"ui"},{id:"house-heart",fn:"house-heart.svg",cat:"services"},{id:"information",fn:"information.svg",cat:"ui"},{id:"instagram",fn:"instagram.svg",cat:"social"},{id:"invoice",fn:"invoice.svg",cat:"ui"},{id:"key",fn:"key.svg",cat:"ui"},{id:"language",fn:"language.svg",cat:"ui"},{id:"law-paragraph",fn:"law-paragraph.svg",cat:"ui"},{id:"lecture-workplace",fn:"lecture-workplace.svg",cat:"people-and-health"},{id:"link",fn:"link.svg",cat:"ui"},{id:"linkedin",fn:"linkedin.svg",cat:"social"},{id:"list",fn:"list.svg",cat:"ui"},{id:"location-pin-filled",fn:"location-pin-filled.svg",cat:"ui"},{id:"location-pin",fn:"location-pin.svg",cat:"ui"},{id:"lock-locked",fn:"lock-locked.svg",cat:"ui"},{id:"lock-unlocked",fn:"lock-unlocked.svg",cat:"ui"},{id:"magnifying-glass-big",fn:"magnifying-glass-big.svg",cat:"ui"},{id:"magnifying-glass-small",fn:"magnifying-glass-small.svg",cat:"ui"},{id:"map",fn:"map.svg",cat:"ui"},{id:"menu",fn:"menu.svg",cat:"ui"},{id:"message",fn:"message.svg",cat:"ui"},{id:"minimize",fn:"minimize.svg",cat:"ui"},{id:"minus-circle-fill",fn:"minus-circle-fill.svg",cat:"plusminus"},{id:"minus-circle",fn:"minus-circle.svg",cat:"plusminus"},{id:"minus-sign",fn:"minus-sign.svg",cat:"plusminus"},{id:"mobile-phone",fn:"mobile-phone.svg",cat:"ui"},{id:"music-notes",fn:"music-notes.svg",cat:"ui"},{id:"new-window-small",fn:"new-window-small.svg",cat:"ui"},{id:"new-window",fn:"new-window.svg",cat:"ui"},{id:"nodejs",fn:"nodejs.svg",cat:"social"},{id:"obstacle",fn:"obstacle.svg",cat:"ui"},{id:"organization",fn:"organization.svg",cat:"ui"},{id:"paint-bucket",fn:"paint-bucket.svg",cat:"ui"},{id:"palette",fn:"palette.svg",cat:"ui"},{id:"paste",fn:"paste.svg",cat:"ui"},{id:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"picture",fn:"picture.svg",cat:"ui"},{id:"placeholder-icon",fn:"placeholder-icon.svg",cat:"ui"},{id:"plus-circle-fill",fn:"plus-circle-fill.svg",cat:"plusminus"},{id:"plus-circle",fn:"plus-circle.svg",cat:"plusminus"},{id:"plus-sign",fn:"plus-sign.svg",cat:"plusminus"},{id:"pride-heart",fn:"pride-heart.svg",cat:"people-and-health"},{id:"print",fn:"print.svg",cat:"ui"},{id:"privacy",fn:"privacy.svg",cat:"ui"},{id:"punkt-circle-blue",fn:"punkt-circle-blue.svg",cat:"social"},{id:"qr-code",fn:"qr-code.svg",cat:"ui"},{id:"question",fn:"question.svg",cat:"ui"},{id:"react",fn:"react.svg",cat:"social"},{id:"receipt",fn:"receipt.svg",cat:"ui"},{id:"recycling",fn:"recycling.svg",cat:"services"},{id:"restaurant",fn:"restaurant.svg",cat:"sign"},{id:"ruler",fn:"ruler.svg",cat:"ui"},{id:"sass",fn:"sass.svg",cat:"social"},{id:"save",fn:"save.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"tickets",fn:"tickets.svg",cat:"sign"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"twitter",fn:"twitter.svg",cat:"social"},{id:"two-people-dancing",fn:"two-people-dancing.svg",cat:"people-and-health"},{id:"two-people-talking",fn:"two-people-talking.svg",cat:"people-and-health"},{id:"user",fn:"user.svg",cat:"ui"},{id:"vertical-menu",fn:"vertical-menu.svg",cat:"ui"},{id:"vue",fn:"vue.svg",cat:"social"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"workplace",fn:"workplace.svg",cat:"social"}],li=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>m.jsx("table",{"data-testid":"pkt-table",className:Je(e,"pkt-table",{"pkt-table--responsive":r,"pkt-table--compact":t,"pkt-table--basic":n==="basic","pkt-table--zebra-blue":n==="zebra-blue"}),role:"table",children:i}),ui=({className:e,children:t})=>m.jsx("thead",{className:Je(e,"pkt-table__header",{}),role:"rowgroup",children:t}),ci=({children:e,className:t})=>m.jsx("tbody",{className:Je(t,"pkt-table__body",{}),role:"rowgroup",children:e}),Wn=({className:e,children:t})=>m.jsx("tr",{className:Je(e,"pkt-table__row",{}),role:"row",children:t}),Tt=({className:e,children:t})=>m.jsx("th",{className:Je(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),Dt=({children:e,className:t,dataLabel:n})=>m.jsx("td",{className:Je(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Yb=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
610
+ `):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Egenskaper"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Navn"}),m.jsx(Tt,{children:"Prop"}),m.jsx(Tt,{children:"Beskrivelse"}),m.jsx(Tt,{children:"Type"}),m.jsx(Tt,{children:"Standardverdi"})]})}),m.jsx(ci,{children:Object.entries(e.props||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Prop",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?m.jsxs(m.Fragment,{children:[m.jsx(Dt,{dataLabel:"Beskrivelse"}),m.jsx(Dt,{dataLabel:"Type",children:m.jsx("pre",{children:i.join(`
611
+ `)})})]}):m.jsxs(m.Fragment,{children:[m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Dt,{dataLabel:"Type",children:m.jsx("pre",{children:i.type&&t(i.type)})}),m.jsx(Dt,{dataLabel:"Standardverdi",children:m.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Hendelser / handlinger"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Event"}),m.jsx(Tt,{children:"Beskrivelse"}),m.jsx(Tt,{children:"Type"})]})}),m.jsx(ci,{children:Object.entries(e.events||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Event",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),m.jsx(Dt,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"Innhold"}),m.jsxs(li,{compact:!0,children:[m.jsx(ui,{children:m.jsxs(Wn,{children:[m.jsx(Tt,{children:"Slot"}),m.jsx(Tt,{children:"Beskrivelse"})]})}),m.jsx(ci,{children:Object.entries(e.slots||{}).map(([r,i])=>m.jsxs(Wn,{children:[m.jsx(Dt,{dataLabel:"Slot",children:m.jsx("pre",{children:r})}),m.jsx(Dt,{dataLabel:"Beskrivelse",children:m.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})};aa.registerLanguage("jsx",Vb);const jp=({specs:e,children:t,fullWidth:n})=>{var K,G;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((L,[N,H])=>(typeof H=="object"&&!Array.isArray(H)&&H.default!==void 0&&H.default!==null&&(H.default==="false"&&(H.default=!1),H.default==="true"&&(H.default=!0),L[N]=H.default),L),{}):{},[i,o]=M.useState(r),[u,c]=M.useState("light"),[d,h]=M.useState(""),[g,v]=M.useState(""),[D,b]=M.useState(""),[k,x]=M.useState("Rediger innhold"),[C,T]=M.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${e.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),F=L=>{L===1&&_(),L===2&&(_(),A()),b(""),T(N=>N.map((H,Q)=>({...H,active:Q===L})))},S=M.useRef(null),A=async()=>{if(e.isElement&&M.isValidElement(I))_().then(()=>{const L=M.isValidElement(I)?I.type.displayName||I.type.name:e.name;h(g.replaceAll(L,e.name||"").replaceAll("{",'"').replaceAll("}",'"'))});else{const L=await Us(S.current.innerHTML,{parser:"html",plugins:[ey]});h(L.replace(/<\!--.*?-->/g,""))}},_=async()=>{const L=Ig(I);return v(L),Promise.resolve()},$=(L,N)=>{navigator.clipboard.writeText(N).then(()=>{b(L),console.log("Copied to clipboard",L)})},P=(L,N)=>m.jsxs("div",{className:"pkt-preview__copy",children:[D===L&&m.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),m.jsx(Cn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(L,N),children:"Kopier kode"})]}),I=M.isValidElement(t)&&M.cloneElement(t,{...i},t.props.children?t.props.children:(K=e.slots)!=null&&K.default?k:null),j=(L,N,H=!1)=>{if(!H&&(!N||N=="false")){const{[L]:Q,...fe}=i;o(fe)}else o(Q=>({...Q,[L]:N}))},z=(L,N)=>{if(N.type==="boolean")return m.jsx(sr,{label:N.name||L,forId:L,helptext:N.description||null,hasFieldset:!0,requiredTag:N.required,children:m.jsx(Ma,{id:L,label:L,type:"checkbox",checked:i[L],onChange:H=>j(L,H.target.checked,N.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(N.type==="icon")return m.jsxs(ho,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:H=>j(L,H.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),Gb.map(H=>m.jsx("option",{value:H.id,children:H.id},H.id))]});if(Array.isArray(N)||Array.isArray(N.type)||Array.isArray(N.values)){const H=Array.isArray(N)?N:N.values||N.type;return m.jsxs(ho,{label:N.name||L,helptext:N.description||null,id:L,value:i[L],onChange:Q=>j(L,Q.target.value),requiredTag:N.required,children:[m.jsx("option",{value:""}),H.map(Q=>m.jsx("option",{value:Q,children:Q},Q))]})}else return N.type==="ISOdatestring"?m.jsx(Xl,{id:L,label:N.name||L,helptext:N.description||null,value:i[L],multiple:N.variant==="multiple",maxlength:999,onChange:H=>j(L,H.target.value),requiredTag:N.required}):m.jsx(fo,{id:L,label:N.name||L,helptext:N.description||null,type:"text",value:i[L],onChange:H=>j(L,N.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:N.required})};return m.jsxs("div",{className:"pkt-preview",children:[m.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&m.jsx("div",{className:"pkt-preview__mode",children:m.jsx(Ma,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:L=>c(L.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),m.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:S,children:m.jsx("div",{children:I})})]}),m.jsx(Np,{tabs:C,onTabSelected:F}),m.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((G=e.slots)==null?void 0:G.default)&&!t.props.children&&m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(Dr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),m.jsx(fo,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:L=>x(L.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([L,N])=>m.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[m.jsx(Dr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:L}),z(L,N)]},L)):m.jsx("p",{children:"OBS! Specs mangler props!"})]}),m.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"jsx",style:Bp,children:g}),P("jsx",g)]}),m.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[m.jsx(aa,{language:"html",style:Bp,children:d}),P("html",d)]}),m.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:m.jsx(Yb,{specs:e})})]})};jp.displayName="PktPreview";for(var Ze=[],mo=0;mo<256;++mo)Ze.push((mo+256).toString(16).slice(1));function Kb(e,t=0){return(Ze[e[t+0]]+Ze[e[t+1]]+Ze[e[t+2]]+Ze[e[t+3]]+"-"+Ze[e[t+4]]+Ze[e[t+5]]+"-"+Ze[e[t+6]]+Ze[e[t+7]]+"-"+Ze[e[t+8]]+Ze[e[t+9]]+"-"+Ze[e[t+10]]+Ze[e[t+11]]+Ze[e[t+12]]+Ze[e[t+13]]+Ze[e[t+14]]+Ze[e[t+15]]).toLowerCase()}var pi,Jb=new Uint8Array(16);function Xb(){if(!pi&&(pi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pi(Jb)}var Qb=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Pp={randomUUID:Qb};function Zb(e,t,n){if(Pp.randomUUID&&!t&&!e)return Pp.randomUUID();e=e||{};var r=e.random||(e.rng||Xb)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kb(r)}const Lp=M.forwardRef(({valueCurrent:e,valueMin:t=0,valueMax:n=100,skin:r="dark-blue",title:i,titlePosition:o="left",statusType:u="none",statusPlacement:c="following",id:d,ariaLabel:h,ariaLabelledby:g,role:v="progressbar",className:D,ariaValueText:b,...k},x)=>{const C=M.useRef(null),[T,F]=M.useState(0),[S,A]=M.useState(d);M.useEffect(()=>{d||A(Zb())},[d]),M.useEffect(()=>{if(C.current){const N=C.current;F(N.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,P=n!==100||t!==0?Math.round($):e,I=`${e} av ${n}`,j=u!=="none",z=Je("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),K=Je("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),G=Je("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),L=Je({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return m.jsxs("div",{...k,ref:x,className:Je("pkt-progressbar__container",D),id:S,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${P}%`},children:[i&&m.jsx("p",{id:`${S}-title`,className:K,children:i}),m.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":g||i&&`${S}-title`,"aria-label":h,"aria-valuetext":b,children:m.jsx("div",{className:z})}),j&&m.jsx("div",{className:G,children:m.jsx("span",{className:L,ref:C,children:u==="percentage"?`${P}%`:I})})]})});Lp.displayName="PktProgressbar";const Op=M.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const g=[r,"pkt-input-check"].filter(Boolean).join(" ");return m.jsx("div",{className:g,children:m.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[m.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:o,name:t,...d}),m.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&m.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});Op.displayName="PktRadioButton";const ek=M.forwardRef(({appearance:e="local",disabled:t=!1,fullwidth:n=!1,id:r,label:i,name:o,placeholder:u="Søk…",suggestions:c,value:d="",action:h,method:g,onChange:v,onSearch:D,onSuggestionClick:b,...k},x)=>{const C=(_,$)=>{_?_():b&&b($)},T=_=>{d=_.target.value},F=`pkt-searchinput pkt-searchinput--${e} ${n?"pkt-searchinput--fullwidth":""}`,S=i?"label":"div";let A;return h?A=_=>m.jsx("form",{role:"search",className:F,action:h,method:g,children:_}):A=_=>m.jsx("div",{role:"search",className:F,children:_}),A(m.jsxs(m.Fragment,{children:[m.jsxs(S,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&m.jsx(m.Fragment,{children:i}),m.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[m.jsx("input",{className:`pkt-input ${n?"pkt-input--fullwidth":""}`,type:"search",name:o||r,id:r,placeholder:u,defaultValue:d,disabled:t,autoComplete:"off","aria-autocomplete":"list",ref:x,"aria-controls":`${r}-suggestions`,onChange:v||T,...k}),m.jsx(Cn,{className:`pkt-searchinput__button ${e==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:e==="local"?"tertiary":"primary",color:e==="global"?"yellow":void 0,type:"submit",disabled:t,onClick:D&&(_=>{_.preventDefault(),D(d)}),onKeyUp:D&&(_=>{_.key==="Enter"&&(_.preventDefault(),D(d))}),children:i||u})]})]}),c&&m.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((_,$)=>m.jsx("li",{children:M.createElement(_.href?"a":_.onClick?"button":"div",{href:_.href,className:`pkt-searchinput__suggestion ${_.onClick?"pkt-link-button":""} ${_.href||_.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:_.onClick?"button":void 0,onClick:()=>C(_.onClick,$),onKeyUp:()=>C(_.onClick,$)},m.jsxs(m.Fragment,{children:[_.title&&m.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:_.title}),_.text&&m.jsx("p",{className:"pkt-searchinput__suggestion-text",children:_.text})]}))},`search-suggestion-${$}`))})]}))}),tk=M.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveStepsContent:r=!0,orientation:i="vertical",...o},u)=>{const c=Je(t,"pkt-stepper",i==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),d=M.Children.map(n,(h,g)=>M.isValidElement(h)?M.cloneElement(h,{className:Je(h.props.className,{"pkt-step--hidden":r&&g!==e})}):h);return m.jsx("ol",{"data-testid":"pkt-stepper",className:c,ref:u,...o,children:d})}),nk=m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:m.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),rk=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),m.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),ak=m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[m.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),m.jsx("path",{d:"m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z",fill:"#F1FDFF"})]}),ik=({children:e,className:t,status:n="incomplete",title:r})=>m.jsxs("li",{className:Je("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[m.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),m.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),m.jsx("span",{className:Je("pkt-step__indicator"),children:n==="current"?rk:n==="completed"?ak:nk}),m.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),m.jsxs("div",{className:"pkt-step__wrapper",children:[m.jsx("div",{className:"pkt-step__title",children:r}),m.jsx("div",{className:"pkt-step__content",children:e})]})]}),sk=M.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:F=!1,requiredText:S,placeholder:A,rows:_,useWrapper:$=!0,onChange:P,...I},j)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),K=n||`${e}-label`,G=M.useRef(null),[L,N]=M.useState(0),H=Q=>{var fe,ee;if(r&&N(((ee=(fe=Q.currentTarget)==null?void 0:fe.value)==null?void 0:ee.length)||0),P)return P(Q)};return M.useEffect(()=>{var Q,fe;typeof j=="function"&&j(G.current),r&&N(((fe=(Q=G==null?void 0:G.current)==null?void 0:Q.value)==null?void 0:fe.length)||0)},[j]),m.jsx(sr,{ariaDescribedby:t,className:z,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:g,helptextDropdownButton:v,inline:D,label:k,optionalTag:C,optionalText:T,requiredTag:F,requiredText:S,useWrapper:$,counter:r,counterCurrent:L,counterMaxLength:i,children:m.jsx("textarea",{ref:G,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&L>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:A,disabled:u,rows:_,"aria-labelledby":K,"aria-invalid":d,"aria-errormessage":`${e}-error`,...I,onChange:H})})});Z.PktAccordion=th,Z.PktAccordionItem=oh,Z.PktAlert=Wi,Z.PktBackLink=al,Z.PktBreadcrumbs=lh,Z.PktButton=Cn,Z.PktCard=Jl,Z.PktCheckbox=Ma,Z.PktDatepicker=Xl,Z.PktFooter=Wm,Z.PktFooterSimple=zm,Z.PktHeader=Vm,Z.PktIcon=ne,Z.PktIconContext=nl,Z.PktInput=Ql,Z.PktInputWrapper=sr,Z.PktLink=Zl,Z.PktLinkCard=eu,Z.PktLoader=tu,Z.PktMessagebox=nu,Z.PktPreview=jp,Z.PktProgressbar=Lp,Z.PktRadioButton=Op,Z.PktSearchInput=ek,Z.PktSelect=ho,Z.PktStep=ik,Z.PktStepper=tk,Z.PktTable=li,Z.PktTableBody=ci,Z.PktTableDataCell=Dt,Z.PktTableHeader=ui,Z.PktTableHeaderCell=Tt,Z.PktTableRow=Wn,Z.PktTabs=Np,Z.PktTag=Dr,Z.PktTextarea=sk,Z.PktTextinput=fo,Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"})});