@oslokommune/punkt-react 12.11.2 → 12.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/punkt-react.es.js +1732 -1707
- package/dist/punkt-react.umd.js +169 -164
- package/package.json +4 -4
package/dist/punkt-react.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
return [];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
(function(
|
|
36
|
+
(function(ee,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],I):(ee=typeof globalThis<"u"?globalThis:ee||self,I(ee["punkt-react"]={},ee.React,ee.reactRouterDom))})(this,function(ee,I,Bn){"use strict";var p_=Object.defineProperty;var d_=(ee,I,Bn)=>I in ee?p_(ee,I,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):ee[I]=Bn;var Or=(ee,I,Bn)=>d_(ee,typeof I!="symbol"?I+"":I,Bn);function _h(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 xh(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 Sh=_h(I);var dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={exports:{}},Mr={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.min.js
|
|
39
39
|
*
|
|
@@ -49,20 +49,20 @@
|
|
|
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 wl;function Fh(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&function(){var e=I,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"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=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),ne=1;ne<R;ne++)U[ne-1]=arguments[ne];S("error",w,U)}}function S(w,R,U){{var ne=T.ReactDebugCurrentFrame,De=ne.getStackAddendum();De!==""&&(R+="%s",U=U.concat([De]));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,L=!1,M=!1,P;P=Symbol.for("react.module.reference");function
|
|
53
|
-
`+ue+w}}var
|
|
52
|
+
*/var wl;function Fh(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&function(){var e=I,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"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=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),ne=1;ne<R;ne++)U[ne-1]=arguments[ne];S("error",w,U)}}function S(w,R,U){{var ne=T.ReactDebugCurrentFrame,De=ne.getStackAddendum();De!==""&&(R+="%s",U=U.concat([De]));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,L=!1,M=!1,P;P=Symbol.for("react.module.reference");function V(w){return!!(typeof w=="string"||typeof w=="function"||w===r||w===o||M||w===i||w===h||w===m||L||w===b||A||_||$||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===v||w.$$typeof===u||w.$$typeof===c||w.$$typeof===d||w.$$typeof===P||w.getModuleId!==void 0))}function J(w,R,U){var ne=w.displayName;if(ne)return ne;var De=R.displayName||R.name||"";return De!==""?U+"("+De+")":U}function Y(w){return w.displayName||"Context"}function O(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 m:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case c:var R=w;return Y(R)+".Consumer";case u:var U=w;return Y(U._context)+".Provider";case d:return J(w,w.render,"ForwardRef");case v:var ne=w.displayName||null;return ne!==null?ne:O(w.type)||"Memo";case y:{var De=w,ve=De._payload,he=De._init;try{return O(he(ve))}catch{return null}}}return null}var j=Object.assign,H=0,Z,fe,te,le,me,ae,ye;function st(){}st.__reactDisabledLog=!0;function Le(){{if(H===0){Z=console.log,fe=console.info,te=console.warn,le=console.error,me=console.group,ae=console.groupCollapsed,ye=console.groupEnd;var w={configurable:!0,enumerable:!0,value:st,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:j({},w,{value:Z}),info:j({},w,{value:fe}),warn:j({},w,{value:te}),error:j({},w,{value:le}),group:j({},w,{value:me}),groupCollapsed:j({},w,{value:ae}),groupEnd:j({},w,{value:ye})})}H<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=T.ReactCurrentDispatcher,ue;function yt(w,R,U){{if(ue===void 0)try{throw Error()}catch(De){var ne=De.stack.trim().match(/\n( *(at )?)/);ue=ne&&ne[1]||""}return`
|
|
53
|
+
`+ue+w}}var jt=!1,xt;{var St=typeof WeakMap=="function"?WeakMap:Map;xt=new St}function Fn(w,R){if(!w||jt)return"";{var U=xt.get(w);if(U!==void 0)return U}var ne;jt=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=Oe.current,Oe.current=null,Le();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(ot){ne=ot}Reflect.construct(w,[],he)}else{try{he.call()}catch(ot){ne=ot}w.call(he.prototype)}}else{try{throw Error()}catch(ot){ne=ot}w()}}catch(ot){if(ot&&ne&&typeof ot.stack=="string"){for(var ie=ot.stack.split(`
|
|
54
54
|
`),rt=ne.stack.split(`
|
|
55
|
-
`),
|
|
56
|
-
`+ie[
|
|
55
|
+
`),Ne=ie.length-1,Te=rt.length-1;Ne>=1&&Te>=0&&ie[Ne]!==rt[Te];)Te--;for(;Ne>=1&&Te>=0;Ne--,Te--)if(ie[Ne]!==rt[Te]){if(Ne!==1||Te!==1)do if(Ne--,Te--,Te<0||ie[Ne]!==rt[Te]){var bt=`
|
|
56
|
+
`+ie[Ne].replace(" at new "," at ");return w.displayName&&bt.includes("<anonymous>")&&(bt=bt.replace("<anonymous>",w.displayName)),typeof w=="function"&&xt.set(w,bt),bt}while(Ne>=1&&Te>=0);break}}}finally{jt=!1,Oe.current=ve,Fe(),Error.prepareStackTrace=De}var Ge=w?w.displayName||w.name:"",at=Ge?yt(Ge):"";return typeof w=="function"&&xt.set(w,at),at}function Et(w,R,U){return Fn(w,!1)}function X(w){var R=w.prototype;return!!(R&&R.isReactComponent)}function Yt(w,R,U){if(w==null)return"";if(typeof w=="function")return Fn(w,X(w));if(typeof w=="string")return yt(w);switch(w){case h:return yt("Suspense");case m:return yt("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return Et(w.render);case v:return Yt(w.type,R,U);case y:{var ne=w,De=ne._payload,ve=ne._init;try{return Yt(ve(De),R,U)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Ie={},Ee=T.ReactDebugCurrentFrame;function Ar(w){if(w){var R=w._owner,U=Yt(w.type,w._source,R?R.type:null);Ee.setExtraStackFrame(U)}else Ee.setExtraStackFrame(null)}function An(w,R,U,ne,De){{var ve=Function.call.bind(xe);for(var he in w)if(ve(w,he)){var ie=void 0;try{if(typeof w[he]!="function"){var rt=Error((ne||"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 rt.name="Invariant Violation",rt}ie=w[he](R,he,ne,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ne){ie=Ne}ie&&!(ie instanceof Error)&&(Ar(De),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).",ne||"React class",U,he,typeof ie),Ar(null)),ie instanceof Error&&!(ie.message in Ie)&&(Ie[ie.message]=!0,Ar(De),F("Failed %s type: %s",U,ie.message),Ar(null))}}}var Oo=Array.isArray;function cn(w){return Oo(w)}function Da(w){{var R=typeof Symbol=="function"&&Symbol.toStringTag,U=R&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function Mo(w){try{return $i(w),!1}catch{return!0}}function $i(w){return""+w}function Dt(w){if(Mo(w))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Da(w)),$i(w)}var Kt=T.ReactCurrentOwner,Ti={key:!0,ref:!0,__self:!0,__source:!0},Bi,Ni,ba;ba={};function Ft(w){if(xe.call(w,"ref")){var R=Object.getOwnPropertyDescriptor(w,"ref").get;if(R&&R.isReactWarning)return!1}return w.ref!==void 0}function Io(w){if(xe.call(w,"key")){var R=Object.getOwnPropertyDescriptor(w,"key").get;if(R&&R.isReactWarning)return!1}return w.key!==void 0}function Ro(w,R){if(typeof w.ref=="string"&&Kt.current&&R&&Kt.current.stateNode!==R){var U=O(Kt.current.type);ba[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',O(Kt.current.type),w.ref),ba[U]=!0)}}function qo(w,R){{var U=function(){Bi||(Bi=!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 Ho(w,R){{var U=function(){Ni||(Ni=!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 Pt=function(w,R,U,ne,De,ve,he){var ie={$$typeof:t,type:w,key:R,ref:U,props:he,_owner:ve};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Uo(w,R,U,ne,De){{var ve,he={},ie=null,rt=null;U!==void 0&&(Dt(U),ie=""+U),Io(R)&&(Dt(R.key),ie=""+R.key),Ft(R)&&(rt=R.ref,Ro(R,De));for(ve in R)xe.call(R,ve)&&!Ti.hasOwnProperty(ve)&&(he[ve]=R[ve]);if(w&&w.defaultProps){var Ne=w.defaultProps;for(ve in Ne)he[ve]===void 0&&(he[ve]=Ne[ve])}if(ie||rt){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;ie&&qo(he,Te),rt&&Ho(he,Te)}return Pt(w,ie,rt,De,ne,Kt.current,he)}}var ka=T.ReactCurrentOwner,ji=T.ReactDebugCurrentFrame;function Rt(w){if(w){var R=w._owner,U=Yt(w.type,w._source,R?R.type:null);ji.setExtraStackFrame(U)}else ji.setExtraStackFrame(null)}var wa;wa=!1;function Ca(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function _a(){{if(ka.current){var w=O(ka.current.type);if(w)return`
|
|
57
57
|
|
|
58
58
|
Check the render method of \``+w+"`."}return""}}function zo(w){return""}var Pi={};function Wo(w){{var R=_a();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 tr(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Wo(R);if(Pi[U])return;Pi[U]=!0;var ne="";w&&w._owner&&w._owner!==ka.current&&(ne=" It was passed a child from "+O(w._owner.type)+"."),Rt(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,ne),Rt(null)}}function pn(w,R){{if(typeof w!="object")return;if(cn(w))for(var U=0;U<w.length;U++){var ne=w[U];Ca(ne)&&tr(ne,R)}else if(Ca(w))w._store&&(w._store.validated=!0);else if(w){var De=C(w);if(typeof De=="function"&&De!==w.entries)for(var ve=De.call(w),he;!(he=ve.next()).done;)Ca(he.value)&&tr(he.value,R)}}}function
|
|
60
|
+
Check the top-level render call using <`+U+">.")}return R}}function tr(w,R){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Wo(R);if(Pi[U])return;Pi[U]=!0;var ne="";w&&w._owner&&w._owner!==ka.current&&(ne=" It was passed a child from "+O(w._owner.type)+"."),Rt(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,ne),Rt(null)}}function pn(w,R){{if(typeof w!="object")return;if(cn(w))for(var U=0;U<w.length;U++){var ne=w[U];Ca(ne)&&tr(ne,R)}else if(Ca(w))w._store&&(w._store.validated=!0);else if(w){var De=C(w);if(typeof De=="function"&&De!==w.entries)for(var ve=De.call(w),he;!(he=ve.next()).done;)Ca(he.value)&&tr(he.value,R)}}}function At(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 ne=O(R);An(U,w.props,"prop",ne,w)}else if(R.PropTypes!==void 0&&!wa){wa=!0;var De=O(R);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"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 Vo(w){{for(var R=Object.keys(w.props),U=0;U<R.length;U++){var ne=R[U];if(ne!=="children"&&ne!=="key"){Rt(w),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),Rt(null);break}}w.ref!==null&&(Rt(w),F("Invalid attribute `ref` supplied to `React.Fragment`."),Rt(null))}}var Li={};function Oi(w,R,U,ne,De,ve){{var he=V(w);if(!he){var ie="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(ie+=" 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 rt=zo();rt?ie+=rt:ie+=_a();var Ne;w===null?Ne="null":cn(w)?Ne="array":w!==void 0&&w.$$typeof===t?(Ne="<"+(O(w.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Ne=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",Ne,ie)}var Te=Uo(w,R,U,De,ve);if(Te==null)return Te;if(he){var bt=R.children;if(bt!==void 0)if(ne)if(cn(bt)){for(var Ge=0;Ge<bt.length;Ge++)pn(bt[Ge],w);Object.freeze&&Object.freeze(bt)}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 pn(bt,w)}if(xe.call(R,"key")){var at=O(w),ot=Object.keys(R).filter(function(Ko){return Ko!=="key"}),xa=ot.length>0?"{key: someKey, "+ot.join(": ..., ")+": ...}":"{key: someKey}";if(!Li[at+xa]){var Ii=ot.length>0?"{"+ot.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} />`,xa,at,Ii,at),Li[at+xa]=!0}}return w===r?Vo(Te):
|
|
65
|
+
<%s key={someKey} {...props} />`,xa,at,Ii,at),Li[at+xa]=!0}}return w===r?Vo(Te):At(Te),Te}}function Mi(w,R,U){return Oi(w,R,U,!0)}function Go(w,R,U){return Oi(w,R,U,!1)}var Yo=Go,$r=Mi;Ir.Fragment=r,Ir.jsx=Yo,Ir.jsxs=$r}()),Ir}process.env.NODE_ENV==="production"?is.exports=Eh():is.exports=Fh();var g=is.exports;const Ah=I.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 g.jsx("div",{"data-testid":"pkt-accordion",className:o,ref:i,children:r})});/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2018 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -72,7 +72,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/const qa=globalThis,Ha=qa.trustedTypes,xl=Ha?Ha.createPolicy("lit-html",{createHTML:e=>e}):void 0,ss="$lit$",Jt=`lit$${Math.random().toFixed(9).slice(2)}$`,os="?"+Jt,Th=`<${os}>`,Nn=document,Rr=()=>Nn.createComment(""),qr=e=>e===null||typeof e!="object"&&typeof e!="function",ls=Array.isArray,Sl=e=>ls(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",us=`[
|
|
74
74
|
\f\r]`,Hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,Fl=/>/g,jn=RegExp(`>|${us}(?:([^\\s"'>=/]+)(${us}*=${us}*(?:[^
|
|
75
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,$l=/"/g,Tl=/^(?:script|style|textarea|title)$/i,Bh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),
|
|
75
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,$l=/"/g,Tl=/^(?:script|style|textarea|title)$/i,Bh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),W=Bh(1),Xt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Bl=new WeakMap,Pn=Nn.createTreeWalker(Nn,129);function Nl(e,t){if(!ls(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return xl!==void 0?xl.createHTML(t):t}const jl=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=Hr;for(let c=0;c<n;c++){const d=e[c];let h,m,v=-1,y=0;for(;y<d.length&&(u.lastIndex=y,m=u.exec(d),m!==null);)y=u.lastIndex,u===Hr?m[1]==="!--"?u=El:m[1]!==void 0?u=Fl:m[2]!==void 0?(Tl.test(m[2])&&(i=RegExp("</"+m[2],"g")),u=jn):m[3]!==void 0&&(u=jn):u===jn?m[0]===">"?(u=i??Hr,v=-1):m[1]===void 0?v=-2:(v=u.lastIndex-m[2].length,h=m[1],u=m[3]===void 0?jn:m[3]==='"'?$l:Al):u===$l||u===Al?u=jn:u===El||u===Fl?u=Hr:(u=jn,i=void 0);const b=u===jn&&e[c+1].startsWith("/>")?" ":"";o+=u===Hr?d+Th:v>=0?(r.push(h),d.slice(0,v)+ss+d.slice(v)+Jt+b):d+Jt+(v===-2?c:b)}return[Nl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let cs=class yh{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,u=0;const c=t.length-1,d=this.parts,[h,m]=jl(t,n);if(this.el=yh.createElement(h,r),Pn.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Pn.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(ss)){const y=m[u++],b=i.getAttribute(v).split(Jt),k=/([.?@])?(.*)/.exec(y);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?Ll:k[1]==="?"?Ol:k[1]==="@"?Ml:Ur}),i.removeAttribute(v)}else v.startsWith(Jt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(Tl.test(i.tagName)){const v=i.textContent.split(Jt),y=v.length-1;if(y>0){i.textContent=Ha?Ha.emptyScript:"";for(let b=0;b<y;b++)i.append(v[b],Rr()),Pn.nextNode(),d.push({type:2,index:++o});i.append(v[y],Rr())}}}else if(i.nodeType===8)if(i.data===os)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(Jt,v+1))!==-1;)d.push({type:7,index:o}),v+=Jt.length-1}o++}}static createElement(t,n){const r=Nn.createElement("template");return r.innerHTML=t,r}};function Ln(e,t,n=e,r){var i,o;if(t===Xt)return t;let u=r!==void 0?(i=n._$Co)==null?void 0:i[r]:n._$Cl;const c=qr(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._$Co??(n._$Co=[]))[r]=u:n._$Cl=u),u!==void 0&&(t=Ln(e,u._$AS(e,t.values),u,r)),t}let Pl=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)??Nn).importNode(n,!0);Pn.currentNode=i;let o=Pn.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Ua(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new Il(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=Pn.nextNode(),u++)}return Pn.currentNode=Nn,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++}},Ua=class Dh{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,r,i){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cv=(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=Ln(this,t,n),qr(t)?t===Q||t==null||t===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Xt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Sl(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!==Q&&qr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Nn.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=cs.createElement(Nl(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 Pl(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 cs(t)),n}k(t){ls(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 Dh(this.O(Rr()),this.O(Rr()),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._$Cv=t,(n=this._$AP)==null||n.call(this,t))}},Ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=Q,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=Q}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=Ln(this,t,n,0),u=!qr(t)||t!==this._$AH&&t!==Xt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=Ln(this,c[r+d],n,d),h===Xt&&(h=this._$AH[d]),u||(u=!qr(h)||h!==this._$AH[d]),h===Q?t=Q:t!==Q&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ll=class extends Ur{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}},Ol=class extends Ur{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}},Ml=class extends Ur{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=Ln(this,t,n,0)??Q)===Xt)return;const r=this._$AH,i=t===Q&&r!==Q||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==Q&&(r===Q||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)}},Il=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){Ln(this,t)}};const Nh={M:ss,P:Jt,A:os,C:1,L:jl,R:Pl,D:Sl,V:Ln,I:Ua,H:Ur,N:Ol,U:Ml,B:Ll,F:Il},Rl=qa.litHtmlPolyfillSupport;Rl==null||Rl(cs,Ua),(qa.litHtmlVersions??(qa.litHtmlVersions=[])).push("3.2.1");const jh=(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 Ua(t.insertBefore(Rr(),o),o,void 0,n??{})}return i._$AI(e),i};/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2019 Google LLC
|
|
78
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -84,15 +84,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
84
84
|
* @license
|
|
85
85
|
* Copyright 2017 Google LLC
|
|
86
86
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
87
|
-
*/const Wh={attribute:!0,type:String,converter:Wa,reflect:!1,hasChanged:ds},Vh=(e=Wh,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
|
|
87
|
+
*/const Wh={attribute:!0,type:String,converter:Wa,reflect:!1,hasChanged:ds},Vh=(e=Wh,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 N(e){return(t,n)=>typeof n=="object"?Vh(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)}/**
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright 2017 Google LLC
|
|
90
90
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
|
-
*/function
|
|
91
|
+
*/function kt(e){return N({...e,state:!0,attribute:!1})}/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2017 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/let Wr=class extends or{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=jh(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Xt}};var Gl;Wr._$litElement$=!0,Wr.finalized=!0,(Gl=globalThis.litElementHydrateSupport)==null||Gl.call(globalThis,{LitElement:Wr});const Yl=globalThis.litElementPolyfillSupport;Yl==null||Yl({LitElement:Wr}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");for(var Qe=[],hs=0;hs<256;++hs)Qe.push((hs+256).toString(16).slice(1));function Gh(e,t=0){return(Qe[e[t+0]]+Qe[e[t+1]]+Qe[e[t+2]]+Qe[e[t+3]]+"-"+Qe[e[t+4]]+Qe[e[t+5]]+"-"+Qe[e[t+6]]+Qe[e[t+7]]+"-"+Qe[e[t+8]]+Qe[e[t+9]]+"-"+Qe[e[t+10]]+Qe[e[t+11]]+Qe[e[t+12]]+Qe[e[t+13]]+Qe[e[t+14]]+Qe[e[t+15]]).toLowerCase()}var Va,Yh=new Uint8Array(16);function Kh(){if(!Va&&(Va=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Va))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Va(Yh)}var Jh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Kl={randomUUID:Jh};function fs(e,t,n){if(Kl.randomUUID&&!t&&!e)return Kl.randomUUID();e=e||{};var r=e.random||(e.rng||Kh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Gh(r)}const Xh={hi:"Hei!"},Zh={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},
|
|
95
|
+
*/let Wr=class extends or{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=jh(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Xt}};var Gl;Wr._$litElement$=!0,Wr.finalized=!0,(Gl=globalThis.litElementHydrateSupport)==null||Gl.call(globalThis,{LitElement:Wr});const Yl=globalThis.litElementPolyfillSupport;Yl==null||Yl({LitElement:Wr}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");for(var Qe=[],hs=0;hs<256;++hs)Qe.push((hs+256).toString(16).slice(1));function Gh(e,t=0){return(Qe[e[t+0]]+Qe[e[t+1]]+Qe[e[t+2]]+Qe[e[t+3]]+"-"+Qe[e[t+4]]+Qe[e[t+5]]+"-"+Qe[e[t+6]]+Qe[e[t+7]]+"-"+Qe[e[t+8]]+Qe[e[t+9]]+"-"+Qe[e[t+10]]+Qe[e[t+11]]+Qe[e[t+12]]+Qe[e[t+13]]+Qe[e[t+14]]+Qe[e[t+15]]).toLowerCase()}var Va,Yh=new Uint8Array(16);function Kh(){if(!Va&&(Va=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Va))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Va(Yh)}var Jh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Kl={randomUUID:Jh};function fs(e,t,n){if(Kl.randomUUID&&!t&&!e)return Kl.randomUUID();e=e||{};var r=e.random||(e.rng||Kh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Gh(r)}const Xh={hi:"Hei!"},Zh={from:"Fra",to:"Til"},Qh={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},ef={month:"Måned",year:"År",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"},tf={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."}},Lt={example:Xh,generic:Zh,calendar:Qh,dates:ef,forms:tf},nf="pkt-inputwrapper",rf={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},af={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 feltet</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}},ht={name:nf,"css-class":"pkt-inputwrapper",events:rf,props:af};var sf=Object.defineProperty,je=(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&&sf(t,n,i),i};let wt=class extends Wr{constructor(){super(),this.strings=Lt}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};je([N({type:Object})],wt.prototype,"strings");let Pe=class extends wt{constructor(){super(),this.id=fs(),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.label=null,this.optionalTag=!1,this.optionalText=Lt.forms.labels.optional,this.requiredTag=!1,this.requiredText=Lt.forms.labels.required,this.hasError=!1,this.errorMessage="",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=ht.props.helptextDropdownButton.default,this.fullwidth=!1,this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(t){this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Lt.forms.messages.required,t):t.validity.typeMismatch||t.validity.badInput?this.internals.setValidity({typeMismatch:!0},Lt.forms.messages.invalid,t):t.validity.patternMismatch?this.internals.setValidity({patternMismatch:!0},Lt.forms.messages.invalidPattern,t):t.validity.tooShort||this.minLength>0&&this.value.length<this.minLength?this.internals.setValidity({tooShort:!0},Lt.forms.messages.tooShort,t):t.validity.tooLong||this.maxLength>0&&this.value.length>this.maxLength?this.internals.setValidity({tooLong:!0},Lt.forms.messages.tooLong,t):t.validity.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},Lt.forms.messages.rangeUnderflow,t):t.validity.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},Lt.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.ariaDisabled=!0),this.internals.setFormValue(this.value),this.inputRef.value&&this.manageValidity(this.inputRef.value)}};je([N({type:String})],Pe.prototype,"id"),je([N({type:String})],Pe.prototype,"name"),je([N({type:Boolean})],Pe.prototype,"required"),je([N({type:Boolean})],Pe.prototype,"disabled"),je([N({type:String})],Pe.prototype,"placeholder"),je([N({type:Number})],Pe.prototype,"min"),je([N({type:Number})],Pe.prototype,"max"),je([N({type:Number})],Pe.prototype,"minlength"),je([N({type:Number})],Pe.prototype,"maxlength"),je([N({type:String})],Pe.prototype,"pattern"),je([N({type:String})],Pe.prototype,"label"),je([N({type:Boolean})],Pe.prototype,"optionalTag"),je([N({type:String})],Pe.prototype,"optionalText"),je([N({type:Boolean})],Pe.prototype,"requiredTag"),je([N({type:String})],Pe.prototype,"requiredText"),je([N({type:Boolean})],Pe.prototype,"hasError"),je([N({type:String})],Pe.prototype,"errorMessage"),je([N({type:String})],Pe.prototype,"helptext"),je([N({type:String})],Pe.prototype,"helptextDropdown"),je([N({type:String})],Pe.prototype,"helptextDropdownButton"),je([N({type:Boolean})],Pe.prototype,"fullwidth"),je([kt()],Pe.prototype,"touched");/**
|
|
96
96
|
* @license
|
|
97
97
|
* Copyright 2017 Google LLC
|
|
98
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -100,7 +100,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright 2017 Google LLC
|
|
102
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
-
*/const
|
|
103
|
+
*/const $t=e=>(t,n)=>{n!==void 0?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright 2018 Google LLC
|
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -108,30 +108,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2020 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/const{I:
|
|
111
|
+
*/const{I:of}=Nh,lf=e=>e.strings===void 0,Jl=()=>document.createComment(""),Gr=(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(Jl(),o),c=i.insertBefore(Jl(),o);n=new of(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 m=h.nextSibling;i.insertBefore(h,o),h=m}}}return n},On=(e,t,n=e)=>(e._$AI(t,n),e),uf={},cf=(e,t=uf)=>e._$AH=t,pf=e=>e._$AH,ms=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}};/**
|
|
112
112
|
* @license
|
|
113
113
|
* Copyright 2017 Google LLC
|
|
114
114
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/const Yr=(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),Yr(i,t);return!0},Ka=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)},Xl=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),
|
|
115
|
+
*/const Yr=(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),Yr(i,t);return!0},Ka=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)},Xl=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),ff(t)}};function df(e){this._$AN!==void 0?(Ka(this),this._$AM=e,Xl(this)):this._$AM=e}function hf(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++)Yr(r[o],!1),Ka(r[o]);else r!=null&&(Yr(r,!1),Ka(r));else Yr(this,e)}const ff=e=>{e.type==Ga.CHILD&&(e._$AP??(e._$AP=hf),e._$AQ??(e._$AQ=df))};let mf=class extends Ya{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Xl(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&&(Yr(this,t),Ka(this))}setValue(t){if(lf(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}};/**
|
|
116
116
|
* @license
|
|
117
117
|
* Copyright 2020 Google LLC
|
|
118
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
-
*/const ut=()=>new
|
|
119
|
+
*/const ut=()=>new gf;let gf=class{};const gs=new WeakMap,Je=Vr(class extends mf{render(e){return Q}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)),Q}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=gs.get(t);n===void 0&&(n=new WeakMap,gs.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=gs.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)}});/**
|
|
120
120
|
* @license
|
|
121
121
|
* Copyright 2017 Google LLC
|
|
122
122
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
-
*/let Ja=class extends Ya{constructor(t){if(super(t),this.it=
|
|
123
|
+
*/let Ja=class extends Ya{constructor(t){if(super(t),this.it=Q,t.type!==Ga.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||t==null)return this._t=void 0,this.it=t;if(t===Xt)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:[]}}};Ja.directiveName="unsafeHTML",Ja.resultType=1;const Xa=Vr(Ja);/**
|
|
124
124
|
* @license
|
|
125
125
|
* Copyright 2017 Google LLC
|
|
126
126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/
|
|
127
|
+
*/class vs extends Ja{}vs.directiveName="unsafeSVG",vs.resultType=2;const Zl=Vr(vs);var vf=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,Kr=(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&&vf(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.11/icons/";const Df=e=>new Promise(t=>setTimeout(t,e)),Za='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ys={},bf=async(e,t)=>{let n=0;for(;ys[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await Df(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ys[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),Za)).then(r=>(r!==Za&&localStorage.setItem(t+e+".svg",r),ys[t+e+".svg"]="fetched",r)))):Promise.resolve(Za)};let Mn=class extends wt{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=Zl(Za),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(t,n,r){super.attributeChangedCallback(t,n,r),(t==="name"||t==="path")&&this.getIcon(this.name)}async updated(t){super.updated(t),(t.has("name")||t.has("path"))&&this.getIcon(this.name)}async getIcon(t=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=Zl(await bf(this.name||"",this.path).then(n=>n)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return W`${this.name&&this.icon}`}};Kr([N({type:String,reflect:!1})],Mn.prototype,"path",2),Kr([N({type:String,reflect:!0})],Mn.prototype,"name",2),Kr([N({type:SVGElement})],Mn.prototype,"icon",2),Kr([N({type:Array,noAccessor:!0})],Mn.prototype,"_updatedProps",2),Mn=Kr([$t("pkt-icon")],Mn);const kf="pkt-alert",wf=!0,Cf={onClose:{description:"React: Klikk-event for 'Lukk'-knappen"},close:{description:"Vue: Klikk-event for 'Lukk'-knappen"}},_f={title:{name:"Tittel",description:"Tittelen som vises øverst i på meldingen",type:"string"},skin:{name:"Utseende",description:"Hvordan type melding er dette?",type:["info","success","warning","error"],default:"info"},date:{name:"Sist oppdatert",description:"Dato som vises nederst i på meldingen",type:"string"},ariaLive:{name:"aria-live",description:"Hvordan skal skjermleseren lese opp meldingen?",type:["off","polite","assertive"],default:"polite"},compact:{name:"Kompakt",description:"Gjør meldingen mindre",type:"boolean",default:!1},closeAlert:{name:"Vis 'Lukk'-knapp",description:"Viser 'Lukk'-knappen",type:"boolean",default:!1}},xf={default:{description:"Innholdet i meldingen"}},Qa={name:kf,"css-class":"pkt-alert","dark-mode":!0,isElement:wf,events:Cf,props:_f,slots:xf};var Sf=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,mn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ef(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&&Sf(t,n,i),i};let Ht=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.compact=Qa.props.compact.default,this.title="",this.skin=Qa.props.skin.default,this.ariaLive=Qa.props.ariaLive.default,this.closeAlert=Qa.props.closeAlert.default,this.date=null,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new fn(this,this.defaultSlot),this._isClosed=!1}render(){const t={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed};return W`
|
|
128
128
|
<div class=${Re(t)} aria-live=${this.ariaLive}>
|
|
129
129
|
<pkt-icon
|
|
130
130
|
class="pkt-alert__icon"
|
|
131
131
|
name=${this.skin==="info"?"alert-information":`alert-${this.skin}`}
|
|
132
132
|
></pkt-icon>
|
|
133
133
|
|
|
134
|
-
${this.closeAlert?
|
|
134
|
+
${this.closeAlert?W`
|
|
135
135
|
<div class="pkt-alert__close">
|
|
136
136
|
<button
|
|
137
137
|
type="button"
|
|
@@ -143,16 +143,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
143
143
|
<pkt-icon name="close" class="pkt-btn__icon" aria-hidden="true"></pkt-icon>
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
|
-
`:
|
|
147
|
-
${this.title?
|
|
146
|
+
`:Q}
|
|
147
|
+
${this.title?W`<div class="pkt-alert__title">${this.title}</div>`:Q}
|
|
148
148
|
|
|
149
149
|
<div class="pkt-alert__text" ${Je(this.defaultSlot)}></div>
|
|
150
150
|
|
|
151
|
-
${this.date?
|
|
151
|
+
${this.date?W`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:Q}
|
|
152
152
|
</div>
|
|
153
|
-
`}};mn([j({type:Boolean,reflect:!1})],Ht.prototype,"compact",2),mn([j({type:String,reflect:!0})],Ht.prototype,"title",2),mn([j({type:String,reflect:!0})],Ht.prototype,"skin",2),mn([j({type:String,reflect:!0})],Ht.prototype,"ariaLive",2),mn([j({type:Boolean,reflect:!0})],Ht.prototype,"closeAlert",2),mn([j({type:String,reflect:!0})],Ht.prototype,"date",2),mn([Pt()],Ht.prototype,"_isClosed",2),Ht=mn([At("pkt-alert")],Ht);const Ql=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ef=e=>e?new Date(e):null,Ff=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},lr={csvToArray:Ql,stringToDate:Ef,stringsToDate:Ff},eu=6048e5,Af=864e5,$f=36e5,tu=Symbol.for("constructDateFrom");function Ot(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&tu in e?e[tu](t):e instanceof Date?new e.constructor(t):new Date(t)}function ft(e,t){return Ot(t||e,e)}function Ds(e,t,n){const r=ft(e,void 0);return isNaN(t)?Ot(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Tf(e,t,n){return Ot(e,+ft(e)+t)}function Jr(e,t,n){return Tf(e,t*$f)}let Bf={};function ei(){return Bf}function Xr(e,t){var n,r,i,o;const u=ei(),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=ft(e,t==null?void 0:t.in),h=d.getDay(),m=(h<c?7:0)+h-c;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function ti(e,t){return Xr(e,{...t,weekStartsOn:1})}function nu(e,t){const n=ft(e,void 0),r=n.getFullYear(),i=Ot(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ti(i),u=Ot(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=ti(u);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ru(e){const t=ft(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 au(e,...t){const n=Ot.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function iu(e,t){const n=ft(e,void 0);return n.setHours(0,0,0,0),n}function Nf(e,t,n){const[r,i]=au(void 0,e,t),o=iu(r),u=iu(i),c=+o-ru(o),d=+u-ru(u);return Math.round((c-d)/Af)}function jf(e,t){const n=nu(e),r=Ot(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ti(r)}function Pf(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lf(e){return!(!Pf(e)&&typeof e!="number"||isNaN(+ft(e)))}function Of(e,t){const[n,r]=au(e,t.start,t.end);return{start:n,end:r}}function bs(e,t){const{start:n,end:r}=Of(void 0,e);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(Ot(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Mf(e,t){const n=ft(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const If={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"}},Rf=(e,t,n)=>{let r;const i=If[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 ks(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const qf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Uf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zf={date:ks({formats:qf,defaultWidth:"full"}),time:ks({formats:Hf,defaultWidth:"full"}),dateTime:ks({formats:Uf,defaultWidth:"full"})},Wf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vf=(e,t,n,r)=>Wf[e];function Zr(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 Gf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Kf={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"]},Jf={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"]},Xf={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"}},Zf={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"}},Qf=(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"},em={ordinalNumber:Qf,era:Zr({values:Gf,defaultWidth:"wide"}),quarter:Zr({values:Yf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Zr({values:Kf,defaultWidth:"wide"}),day:Zr({values:Jf,defaultWidth:"wide"}),dayPeriod:Zr({values:Xf,defaultWidth:"wide",formattingValues:Zf,defaultFormattingWidth:"wide"})};function Qr(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)?nm(c,v=>v.test(u)):tm(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(u.length);return{value:h,rest:m}}}function tm(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function rm(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 am=/^(\d+)(th|st|nd|rd)?/i,im=/\d+/i,sm={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},om={any:[/^b/i,/^(a|c)/i]},lm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},um={any:[/1/i,/2/i,/3/i,/4/i]},cm={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},pm={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]},dm={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},hm={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]},fm={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},mm={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}},gm={ordinalNumber:rm({matchPattern:am,parsePattern:im,valueCallback:e=>parseInt(e,10)}),era:Qr({matchPatterns:sm,defaultMatchWidth:"wide",parsePatterns:om,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:lm,defaultMatchWidth:"wide",parsePatterns:um,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qr({matchPatterns:cm,defaultMatchWidth:"wide",parsePatterns:pm,defaultParseWidth:"any"}),day:Qr({matchPatterns:dm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:fm,defaultMatchWidth:"any",parsePatterns:mm,defaultParseWidth:"any"})},vm={code:"en-US",formatDistance:Rf,formatLong:zf,formatRelative:Vf,localize:em,match:gm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ym(e,t){const n=ft(e,void 0);return Nf(n,Mf(n))+1}function Dm(e,t){const n=ft(e,void 0),r=+ti(n)-+jf(n);return Math.round(r/eu)+1}function su(e,t){var n,r,i,o;const u=ft(e,t==null?void 0:t.in),c=u.getFullYear(),d=ei(),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,m=Ot((t==null?void 0:t.in)||e,0);m.setFullYear(c+1,0,h),m.setHours(0,0,0,0);const v=Xr(m,t),y=Ot((t==null?void 0:t.in)||e,0);y.setFullYear(c,0,h),y.setHours(0,0,0,0);const b=Xr(y,t);return+u>=+v?c+1:+u>=+b?c:c-1}function bm(e,t){var n,r,i,o;const u=ei(),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=su(e,t),h=Ot((t==null?void 0:t.in)||e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Xr(h,t)}function ou(e,t){const n=ft(e,t==null?void 0:t.in),r=+Xr(n,t)-+bm(n,t);return Math.round(r/eu)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const gn={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)}},ur={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lu={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 gn.y(e,t)},Y:function(e,t,n,r){const i=su(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=nu(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 gn.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=ou(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=Dm(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"}):gn.d(e,t)},D:function(e,t,n){const r=ym(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=ur.noon:r===0?i=ur.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=ur.evening:r>=12?i=ur.afternoon:r>=4?i=ur.morning:i=ur.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 gn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):gn.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"}):gn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):gn.s(e,t)},S:function(e,t){return gn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return cu(r);case"XXXX":case"XX":return In(r);case"XXXXX":case"XXX":default:return In(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cu(r);case"xxxx":case"xx":return In(r);case"xxxxx":case"xxx":default:return In(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uu(r,":");case"OOOO":default:return"GMT"+In(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uu(r,":");case"zzzz":default:return"GMT"+In(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ce(r,t.length)},T:function(e,t,n){return Ce(+e,t.length)}};function uu(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 cu(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):In(e,t)}function In(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 pu=(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"})}},du=(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"})}},km=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pu(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}}",pu(r,t)).replace("{{time}}",du(i,t))},wm={p:du,P:km},Cm=/^D+$/,_m=/^Y+$/,xm=["D","DD","YY","YYYY"];function Sm(e){return Cm.test(e)}function Em(e){return _m.test(e)}function Fm(e,t,n){const r=Am(e,t,n);if(console.warn(r),xm.includes(e))throw new RangeError(r)}function Am(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 $m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bm=/^'([^]*?)'?$/,Nm=/''/g,jm=/[a-zA-Z]/;function Pm(e,t,n){var r,i,o,u;const c=ei(),d=c.locale??vm,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,m=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=ft(e,void 0);if(!Lf(v))throw new RangeError("Invalid time value");let y=t.match(Tm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=wm[x];return C(k,d.formatLong)}return k}).join("").match($m).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Lm(k)};if(lu[x])return{isToken:!0,value:k};if(x.match(jm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(y=d.localize.preprocessor(v,y));const b={firstWeekContainsDate:h,weekStartsOn:m,locale:d};return y.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Em(x)||Sm(x))&&Fm(x,t,String(e));const C=lu[x[0]];return C(v,x,d.localize,b)}).join("")}function Lm(e){const t=e.match(Bm);return t?t[1].replace(Nm,"'"):e}function Om(e,t){const n=ft(e,void 0).getDay();return n===0?7:n}const hu={},ea={};function ta(e,t){try{const n=(hu[e]||(hu[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in ea?ea[n]:fu(n,n.split(":"))}catch{if(e in ea)return ea[e];const n=e==null?void 0:e.match(Mm);return n?fu(e,n.slice(1)):NaN}}const Mm=/([+-]\d\d):?(\d\d)?/;function fu(e,t){const n=+t[0],r=+(t[1]||0);return ea[e]=n>0?n*60+r:n*60-r}let na=class Oa extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ta(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),gu(this),ws(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Oa(...n,t):new Oa(Date.now(),t)}withTimeZone(t){return new Oa(+this,t)}getTimezoneOffset(){return-ta(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ws(this),+this}[Symbol.for("constructDateFrom")](t){return new Oa(+new Date(t),this.timeZone)}};const mu=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!mu.test(e))return;const t=e.replace(mu,"$1UTC");na.prototype[t]&&(e.startsWith("get")?na.prototype[e]=function(){return this.internal[t]()}:(na.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Im(this),+this},na.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ws(this),+this}))});function ws(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Im(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),gu(e)}function gu(e){const t=ta(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),o=r-i,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const c=r-t;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=ta(e.timeZone,e),h=-new Date(+e).getTimezoneOffset()-d,m=d!==t,v=h-c;if(m&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const y=ta(e.timeZone,e),b=d-y;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}let ni=class Ma extends na{static tz(t,...n){return n.length?new Ma(...n,t):new Ma(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),i=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,i]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${Rm(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,r,i]}withTimeZone(t){return new Ma(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ma(+new Date(t),this.timeZone)}};function Rm(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const Xe=e=>e.toISOString().split("T")[0],Cs=e=>{if(!e)return null;const t=Jr(new ni(e,window.pktTz),12);return isNaN(t.getTime())?null:t},vu=(e,t)=>{const n=qe(e);return isNaN(n.getTime())?"":Pm(n,t)},qe=(e="")=>Jr(e===""||!e?new ni(new Date,window.pktTz):new ni(e,window.pktTz),12),vn=(e,t,n=1)=>Jr(new ni(e,t,n,window.pktTz),12),qm=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),Hm="pkt-calendar",Um={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"}},zm={"date-selected":{description:"Returns ISO formatted date string"}},Rn={name:Hm,"css-class":"pkt-calendar",props:Um,events:zm};var Wm=Object.defineProperty,Vm=Object.getOwnPropertyDescriptor,Se=(e,t,n,r)=>{for(var i=r>1?void 0:r?Vm(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&&Wm(t,n,i),i};let _e=class extends kt{constructor(){super(...arguments),this.multiple=Rn.props.multiple.default,this.maxMultiple=Rn.props.maxMultiple.default,this.range=Rn.props.range.default,this.weeknumbers=Rn.props.weeknumbers.default,this.withcontrols=Rn.props.withcontrols.default,this.selected=[],this.earliest=Rn.props.earliest.default,this.latest=Rn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.dayStrings=this.strings.dates.daysShort,this.dayStringsLong=this.strings.dates.days,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,this.tabIndexSet=0}connectedCallback(){super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,n){e==="selected"&&n&&this.convertSelected(),super.attributeChangedCallback(e,t,n)}updated(e){e.has("selected")&&this.convertSelected(),super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}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(e=>qe(e)),this.range&&this.selected.length===2){const e=bs({start:qe(this.selected[0]),end:qe(this.selected[1])});if(this.inRange={},Array.isArray(e)&&e.length){const t={};for(let n=0;n<e.length;n++)t[Xe(e[n])]=this.isInRange(e[n]);this.inRange=t}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=qe(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=qe()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){var n,r,i;if(((n=e.target)==null?void 0:n.nodeName)==="INPUT"||((r=e.target)==null?void 0:r.nodeName)==="SELECT"||((i=e.target)==null?void 0:i.nodeName)==="BUTTON")return;e.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const o=this.focusedDate?qe(this.focusedDate):vn(this.year,this.month,1);let u=Ds(o,t);if(u){let c=this.querySelector(`div[data-date="${Xe(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=Ds(u,t);let d=this.querySelector(`div[data-date="${Xe(u)}"]`);for(;d&&d instanceof HTMLDivElement&&d.dataset.disabled;)u=Ds(u,t),d=this.querySelector(`div[data-date="${Xe(u)}"]`);c=d}c instanceof HTMLDivElement&&!c.dataset.disabled&&(this.focusedDate=Xe(u),c.focus())}}}render(){return V`
|
|
153
|
+
`}};mn([N({type:Boolean,reflect:!1})],Ht.prototype,"compact",2),mn([N({type:String,reflect:!0})],Ht.prototype,"title",2),mn([N({type:String,reflect:!0})],Ht.prototype,"skin",2),mn([N({type:String,reflect:!0})],Ht.prototype,"ariaLive",2),mn([N({type:Boolean,reflect:!0})],Ht.prototype,"closeAlert",2),mn([N({type:String,reflect:!0})],Ht.prototype,"date",2),mn([kt()],Ht.prototype,"_isClosed",2),Ht=mn([$t("pkt-alert")],Ht);const Ql=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Ff=e=>e?new Date(e):null,Af=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},lr={csvToArray:Ql,stringToDate:Ff,stringsToDate:Af},eu=6048e5,$f=864e5,Tf=36e5,tu=Symbol.for("constructDateFrom");function Ot(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&tu in e?e[tu](t):e instanceof Date?new e.constructor(t):new Date(t)}function ft(e,t){return Ot(t||e,e)}function Ds(e,t,n){const r=ft(e,void 0);return isNaN(t)?Ot(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Bf(e,t,n){return Ot(e,+ft(e)+t)}function Jr(e,t,n){return Bf(e,t*Tf)}let Nf={};function ei(){return Nf}function Xr(e,t){var n,r,i,o;const u=ei(),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=ft(e,t==null?void 0:t.in),h=d.getDay(),m=(h<c?7:0)+h-c;return d.setDate(d.getDate()-m),d.setHours(0,0,0,0),d}function ti(e,t){return Xr(e,{...t,weekStartsOn:1})}function nu(e,t){const n=ft(e,void 0),r=n.getFullYear(),i=Ot(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ti(i),u=Ot(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=ti(u);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ru(e){const t=ft(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 au(e,...t){const n=Ot.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function iu(e,t){const n=ft(e,void 0);return n.setHours(0,0,0,0),n}function jf(e,t,n){const[r,i]=au(void 0,e,t),o=iu(r),u=iu(i),c=+o-ru(o),d=+u-ru(u);return Math.round((c-d)/$f)}function Pf(e,t){const n=nu(e),r=Ot(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ti(r)}function Lf(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Of(e){return!(!Lf(e)&&typeof e!="number"||isNaN(+ft(e)))}function Mf(e,t){const[n,r]=au(e,t.start,t.end);return{start:n,end:r}}function bs(e,t){const{start:n,end:r}=Mf(void 0,e);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(Ot(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function If(e,t){const n=ft(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Rf={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"}},qf=(e,t,n)=>{let r;const i=Rf[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 ks(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Hf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Uf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wf={date:ks({formats:Hf,defaultWidth:"full"}),time:ks({formats:Uf,defaultWidth:"full"}),dateTime:ks({formats:zf,defaultWidth:"full"})},Vf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gf=(e,t,n,r)=>Vf[e];function Zr(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 Yf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Kf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jf={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"]},Xf={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"]},Zf={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"}},Qf={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"}},em=(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"},tm={ordinalNumber:em,era:Zr({values:Yf,defaultWidth:"wide"}),quarter:Zr({values:Kf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Zr({values:Jf,defaultWidth:"wide"}),day:Zr({values:Xf,defaultWidth:"wide"}),dayPeriod:Zr({values:Zf,defaultWidth:"wide",formattingValues:Qf,defaultFormattingWidth:"wide"})};function Qr(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)?rm(c,v=>v.test(u)):nm(c,v=>v.test(u));let h;h=e.valueCallback?e.valueCallback(d):d,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(u.length);return{value:h,rest:m}}}function nm(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function am(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 im=/^(\d+)(th|st|nd|rd)?/i,sm=/\d+/i,om={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},lm={any:[/^b/i,/^(a|c)/i]},um={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cm={any:[/1/i,/2/i,/3/i,/4/i]},pm={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},dm={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]},hm={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},fm={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]},mm={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},gm={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}},vm={ordinalNumber:am({matchPattern:im,parsePattern:sm,valueCallback:e=>parseInt(e,10)}),era:Qr({matchPatterns:om,defaultMatchWidth:"wide",parsePatterns:lm,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:um,defaultMatchWidth:"wide",parsePatterns:cm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qr({matchPatterns:pm,defaultMatchWidth:"wide",parsePatterns:dm,defaultParseWidth:"any"}),day:Qr({matchPatterns:hm,defaultMatchWidth:"wide",parsePatterns:fm,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:mm,defaultMatchWidth:"any",parsePatterns:gm,defaultParseWidth:"any"})},ym={code:"en-US",formatDistance:qf,formatLong:Wf,formatRelative:Gf,localize:tm,match:vm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Dm(e,t){const n=ft(e,void 0);return jf(n,If(n))+1}function bm(e,t){const n=ft(e,void 0),r=+ti(n)-+Pf(n);return Math.round(r/eu)+1}function su(e,t){var n,r,i,o;const u=ft(e,t==null?void 0:t.in),c=u.getFullYear(),d=ei(),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,m=Ot((t==null?void 0:t.in)||e,0);m.setFullYear(c+1,0,h),m.setHours(0,0,0,0);const v=Xr(m,t),y=Ot((t==null?void 0:t.in)||e,0);y.setFullYear(c,0,h),y.setHours(0,0,0,0);const b=Xr(y,t);return+u>=+v?c+1:+u>=+b?c:c-1}function km(e,t){var n,r,i,o;const u=ei(),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=su(e,t),h=Ot((t==null?void 0:t.in)||e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Xr(h,t)}function ou(e,t){const n=ft(e,t==null?void 0:t.in),r=+Xr(n,t)-+km(n,t);return Math.round(r/eu)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const gn={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)}},ur={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lu={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 gn.y(e,t)},Y:function(e,t,n,r){const i=su(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=nu(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 gn.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=ou(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=bm(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"}):gn.d(e,t)},D:function(e,t,n){const r=Dm(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=ur.noon:r===0?i=ur.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=ur.evening:r>=12?i=ur.afternoon:r>=4?i=ur.morning:i=ur.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 gn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):gn.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"}):gn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):gn.s(e,t)},S:function(e,t){return gn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return cu(r);case"XXXX":case"XX":return In(r);case"XXXXX":case"XXX":default:return In(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return cu(r);case"xxxx":case"xx":return In(r);case"xxxxx":case"xxx":default:return In(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uu(r,":");case"OOOO":default:return"GMT"+In(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uu(r,":");case"zzzz":default:return"GMT"+In(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ce(r,t.length)},T:function(e,t,n){return Ce(+e,t.length)}};function uu(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 cu(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):In(e,t)}function In(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 pu=(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"})}},du=(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"})}},wm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pu(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}}",pu(r,t)).replace("{{time}}",du(i,t))},Cm={p:du,P:wm},_m=/^D+$/,xm=/^Y+$/,Sm=["D","DD","YY","YYYY"];function Em(e){return _m.test(e)}function Fm(e){return xm.test(e)}function Am(e,t,n){const r=$m(e,t,n);if(console.warn(r),Sm.includes(e))throw new RangeError(r)}function $m(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 Tm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nm=/^'([^]*?)'?$/,jm=/''/g,Pm=/[a-zA-Z]/;function Lm(e,t,n){var r,i,o,u;const c=ei(),d=c.locale??ym,h=c.firstWeekContainsDate??((i=(r=c.locale)==null?void 0:r.options)==null?void 0:i.firstWeekContainsDate)??1,m=c.weekStartsOn??((u=(o=c.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??0,v=ft(e,void 0);if(!Of(v))throw new RangeError("Invalid time value");let y=t.match(Bm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=Cm[x];return C(k,d.formatLong)}return k}).join("").match(Tm).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Om(k)};if(lu[x])return{isToken:!0,value:k};if(x.match(Pm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:k}});d.localize.preprocessor&&(y=d.localize.preprocessor(v,y));const b={firstWeekContainsDate:h,weekStartsOn:m,locale:d};return y.map(k=>{if(!k.isToken)return k.value;const x=k.value;(Fm(x)||Em(x))&&Am(x,t,String(e));const C=lu[x[0]];return C(v,x,d.localize,b)}).join("")}function Om(e){const t=e.match(Nm);return t?t[1].replace(jm,"'"):e}function Mm(e,t){const n=ft(e,void 0).getDay();return n===0?7:n}const hu={},ea={};function ta(e,t){try{const n=(hu[e]||(hu[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in ea?ea[n]:fu(n,n.split(":"))}catch{if(e in ea)return ea[e];const n=e==null?void 0:e.match(Im);return n?fu(e,n.slice(1)):NaN}}const Im=/([+-]\d\d):?(\d\d)?/;function fu(e,t){const n=+t[0],r=+(t[1]||0);return ea[e]=n>0?n*60+r:n*60-r}let na=class Oa extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ta(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),gu(this),ws(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Oa(...n,t):new Oa(Date.now(),t)}withTimeZone(t){return new Oa(+this,t)}getTimezoneOffset(){return-ta(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ws(this),+this}[Symbol.for("constructDateFrom")](t){return new Oa(+new Date(t),this.timeZone)}};const mu=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!mu.test(e))return;const t=e.replace(mu,"$1UTC");na.prototype[t]&&(e.startsWith("get")?na.prototype[e]=function(){return this.internal[t]()}:(na.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Rm(this),+this},na.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ws(this),+this}))});function ws(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Rm(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),gu(e)}function gu(e){const t=ta(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),o=r-i,u=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&u&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const c=r-t;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=ta(e.timeZone,e),h=-new Date(+e).getTimezoneOffset()-d,m=d!==t,v=h-c;if(m&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const y=ta(e.timeZone,e),b=d-y;b&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+b),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+b))}}let ni=class Ma extends na{static tz(t,...n){return n.length?new Ma(...n,t):new Ma(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),i=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,i]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${t} GMT${n}${r}${i} (${qm(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,r,i]}withTimeZone(t){return new Ma(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ma(+new Date(t),this.timeZone)}};function qm(e,t){return new Intl.DateTimeFormat("en-GB",{timeZone:e,timeZoneName:"long"}).format(t).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const Xe=e=>e.toISOString().split("T")[0],Cs=e=>{if(!e)return null;const t=Jr(new ni(e,window.pktTz),12);return isNaN(t.getTime())?null:t},vu=(e,t)=>{const n=He(e);return isNaN(n.getTime())?"":Lm(n,t)},He=(e="")=>Jr(e===""||!e?new ni(new Date,window.pktTz):new ni(e,window.pktTz),12),vn=(e,t,n=1)=>Jr(new ni(e,t,n,window.pktTz),12),Hm=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),Um="pkt-calendar",zm={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"}},Wm={"date-selected":{description:"Returns ISO formatted date string"}},Rn={name:Um,"css-class":"pkt-calendar",props:zm,events:Wm};var Vm=Object.defineProperty,Gm=Object.getOwnPropertyDescriptor,Se=(e,t,n,r)=>{for(var i=r>1?void 0:r?Gm(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&&Vm(t,n,i),i};let _e=class extends wt{constructor(){super(...arguments),this.multiple=Rn.props.multiple.default,this.maxMultiple=Rn.props.maxMultiple.default,this.range=Rn.props.range.default,this.weeknumbers=Rn.props.weeknumbers.default,this.withcontrols=Rn.props.withcontrols.default,this.selected=[],this.earliest=Rn.props.earliest.default,this.latest=Rn.props.latest.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.dayStrings=this.strings.dates.daysShort,this.dayStringsLong=this.strings.dates.days,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,this.tabIndexSet=0}connectedCallback(){super.connectedCallback()}disconnectedCallback(){this.removeEventListener("keydown",this.handleKeydown),super.disconnectedCallback()}attributeChangedCallback(e,t,n){e==="selected"&&n&&this.convertSelected(),super.attributeChangedCallback(e,t,n)}updated(e){e.has("selected")&&this.convertSelected(),super.updated(e)}firstUpdated(e){this.addEventListener("keydown",this.handleKeydown)}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(e=>He(e)),this.range&&this.selected.length===2){const e=bs({start:He(this.selected[0]),end:He(this.selected[1])});if(this.inRange={},Array.isArray(e)&&e.length){const t={};for(let n=0;n<e.length;n++)t[Xe(e[n])]=this.isInRange(e[n]);this.inRange=t}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=He(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=He()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(e){switch(e.key){case"ArrowLeft":this.handleArrowKey(e,-1);break;case"ArrowRight":this.handleArrowKey(e,1);break;case"ArrowUp":this.handleArrowKey(e,-7);break;case"ArrowDown":this.handleArrowKey(e,7);break}}handleArrowKey(e,t){var n,r,i;if(((n=e.target)==null?void 0:n.nodeName)==="INPUT"||((r=e.target)==null?void 0:r.nodeName)==="SELECT"||((i=e.target)==null?void 0:i.nodeName)==="BUTTON")return;e.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const o=this.focusedDate?He(this.focusedDate):vn(this.year,this.month,1);let u=Ds(o,t);if(u){let c=this.querySelector(`div[data-date="${Xe(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=Ds(u,t);let d=this.querySelector(`div[data-date="${Xe(u)}"]`);for(;d&&d instanceof HTMLDivElement&&d.dataset.disabled;)u=Ds(u,t),d=this.querySelector(`div[data-date="${Xe(u)}"]`);c=d}c instanceof HTMLDivElement&&!c.dataset.disabled&&(this.focusedDate=Xe(u),c.focus())}}}render(){return W`
|
|
154
154
|
<div
|
|
155
|
-
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":
|
|
155
|
+
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":Q}"
|
|
156
156
|
@focusout=${this.closeEvent}
|
|
157
157
|
@keydown=${e=>{e.key==="Escape"&&(e.preventDefault(),this.close())}}
|
|
158
158
|
>
|
|
@@ -163,7 +163,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
163
163
|
@click=${this.isPrevMonthAllowed()&&this.prevMonth}
|
|
164
164
|
@keydown=${e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.isNextMonthAllowed()&&this.prevMonth())}}
|
|
165
165
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isPrevMonthAllowed()?"":"pkt-hide"}"
|
|
166
|
-
.data-disabled=${this.isPrevMonthAllowed()?
|
|
166
|
+
.data-disabled=${this.isPrevMonthAllowed()?Q:"disabled"}
|
|
167
167
|
?aria-disabled=${!this.isPrevMonthAllowed()}
|
|
168
168
|
tabindex=${this.isPrevMonthAllowed()?"0":"-1"}
|
|
169
169
|
>
|
|
@@ -178,7 +178,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
178
178
|
@click=${this.isNextMonthAllowed()&&this.nextMonth}
|
|
179
179
|
@keydown=${e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.isNextMonthAllowed()&&this.nextMonth())}}
|
|
180
180
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only ${this.isNextMonthAllowed()?"":"pkt-hide"}"
|
|
181
|
-
.data-disabled=${this.isNextMonthAllowed()?
|
|
181
|
+
.data-disabled=${this.isNextMonthAllowed()?Q:"disabled"}
|
|
182
182
|
?aria-disabled=${!this.isNextMonthAllowed()}
|
|
183
183
|
tabindex=${this.isNextMonthAllowed()?"0":"-1"}
|
|
184
184
|
>
|
|
@@ -200,9 +200,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
200
200
|
</tbody>
|
|
201
201
|
</table>
|
|
202
202
|
</div>
|
|
203
|
-
`}renderDayNames(){const e=[];this.weeknumbers&&e.push(
|
|
203
|
+
`}renderDayNames(){const e=[];this.weeknumbers&&e.push(W`<th><div>${this.weekString}</div></th>`);for(let t=0;t<this.dayStrings.length;t++)e.push(W`<th><div aria-label="${this.dayStringsLong[t]}">${this.dayStrings[t]}</div></th>`);return W`<tr class="pkt-cal-week-row">
|
|
204
204
|
${e}
|
|
205
|
-
</tr>`}renderMonthNav(){let e=[];return this.withcontrols?e.push(
|
|
205
|
+
</tr>`}renderMonthNav(){let e=[];return this.withcontrols?e.push(W`<div class="pkt-cal-month-picker">
|
|
206
206
|
<label for="${this.id}-monthnav" class="pkt-hide">${this.strings.dates.month}</label>
|
|
207
207
|
<select
|
|
208
208
|
aria-label="${this.strings.dates.month}"
|
|
@@ -210,7 +210,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
id="${this.id}-monthnav"
|
|
211
211
|
@change=${t=>{this.changeMonth(this.year,t.target.value)}}
|
|
212
212
|
>
|
|
213
|
-
${this.monthStrings.map((t,n)=>
|
|
213
|
+
${this.monthStrings.map((t,n)=>W`<option value=${n} ?selected=${this.month===n}>${t}</option>`)}
|
|
214
214
|
</select>
|
|
215
215
|
<label for="${this.id}-yearnav" class="pkt-hide">${this.strings.dates.year}</label>
|
|
216
216
|
<input
|
|
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
@change=${t=>{this.changeMonth(t.target.value,this.month)}}
|
|
224
224
|
.value=${this.year}
|
|
225
225
|
/>
|
|
226
|
-
</div> `):e.push(
|
|
226
|
+
</div> `):e.push(W`<div class="pkt-txt-16-medium" aria-live="polite">
|
|
227
227
|
${this.monthStrings[this.month]} ${this.year}
|
|
228
|
-
</div>`),e}renderDayView(e,t,n){var r;const i=vn(this.year,this.month,e),o=Xe(i),u=o===Xe(t),c=this.selected.includes(o),d=
|
|
228
|
+
</div>`),e}renderDayView(e,t,n){var r;const i=vn(this.year,this.month,e),o=Xe(i),u=o===Xe(t),c=this.selected.includes(o),d=Hm(i),h=this.isExcluded(n,i)||!c&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,m=this.focusedDate?this.focusedDate===o&&!h?"0":"-1":!h&&this.tabIndexSet===0||this.tabIndexSet===e?"0":"-1";m==="0"&&(this.tabIndexSet=e),this.selectableDates.push({currentDateISO:o,isDisabled:h,tabindex:m});const v={"pkt-cal-today":u,"pkt-cal-selected":c,"pkt-cal-in-range":this.inRange[o],"pkt-cal-excluded":this.isExcluded(n,i),"pkt-cal-in-range-first":this.range&&(this.selected.length===2||this.rangeHovered!==null)&&o===this.selected[0],"pkt-cal-in-range-last":this.range&&this.selected.length===2&&o===this.selected[1],"pkt-cal-range-hover":this.rangeHovered!==null&&o===Xe(this.rangeHovered)};return W`<td class=${Re(v)}>
|
|
229
229
|
<div
|
|
230
230
|
?aria-selected=${c}
|
|
231
231
|
role="gridcell"
|
|
@@ -234,68 +234,68 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
@focus=${()=>{this.range&&!this.isExcluded(n,i)&&this.handleRangeHover(i),this.focusedDate=o}}
|
|
235
235
|
aria-label="${d}"
|
|
236
236
|
tabindex=${(r=this.selectableDates.find(y=>y.currentDateISO===o))==null?void 0:r.tabindex}
|
|
237
|
-
data-disabled=${h?"disabled":
|
|
237
|
+
data-disabled=${h?"disabled":Q}
|
|
238
238
|
data-date=${o}
|
|
239
239
|
@keydown=${y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),this.handleDateSelect(i))}}
|
|
240
240
|
@click=${y=>{h||(y.preventDefault(),this.handleDateSelect(i))}}
|
|
241
241
|
>
|
|
242
242
|
<span class="pkt-btn__text pkt-txt-14-light">${e}</span>
|
|
243
243
|
</div>
|
|
244
|
-
</td>`}renderCalendarBody(){const e=
|
|
244
|
+
</td>`}renderCalendarBody(){const e=He(),t=vn(this.year,this.month,1),n=vn(this.year,this.month+1,0),r=(t.getDay()+6)%7,i=n.getDate(),o=Math.ceil((i+r)/7),u=vn(this.year,this.month,0).getDate();let c=1;this.week=ou(vn(this.year,this.month,1));const d=[];for(let h=0;h<o;h++){const m=[];this.weeknumbers&&m.push(W`<td class="pkt-cal-week">${this.week}</td>`),this.week++;for(let v=1;v<8;v++)if(h===0&&v<r+1){const y=u-(r-v);m.push(W`<td class="pkt-cal-other">
|
|
245
245
|
<div
|
|
246
246
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
247
247
|
data-disabled="disabled"
|
|
248
248
|
>
|
|
249
249
|
<span class="pkt-btn__text pkt-txt-14-light">${y}</span>
|
|
250
250
|
</div>
|
|
251
|
-
</td>`)}else c>i?(m.push(
|
|
251
|
+
</td>`)}else c>i?(m.push(W`<td class="pkt-cal-other">
|
|
252
252
|
<div
|
|
253
253
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
254
254
|
data-disabled="disabled"
|
|
255
255
|
>
|
|
256
256
|
<span class="pkt-btn__text pkt-txt-14-light">${c-i}</span>
|
|
257
257
|
</div>
|
|
258
|
-
</td>`),c++):(m.push(this.renderDayView(c,e,v)),c++);d.push(
|
|
258
|
+
</td>`),c++):(m.push(this.renderDayView(c,e,v)),c++);d.push(W`<tr class="pkt-cal-week-row" role="row">
|
|
259
259
|
${m}
|
|
260
|
-
</tr>`)}return d}isExcluded(e,t){return this.excludeweekdays.includes(e.toString())||this.earliest&&Jr(t,1)<
|
|
260
|
+
</tr>`)}return d}isExcluded(e,t){return this.excludeweekdays.includes(e.toString())||this.earliest&&Jr(t,1)<He(this.earliest)||this.latest&&Jr(t,-1)>He(this.latest)?!0:this.excludedates.some(n=>typeof n=="string"?n===Xe(t):n.toDateString()===t.toDateString())}isPrevMonthAllowed(){const e=vn(this.year,this.month,0);return!(this.earliest&&He(this.earliest)>e)}prevMonth(){const e=this.month===0?11:this.month-1,t=this.month===0?this.year-1:this.year;this.changeMonth(t,e)}isNextMonthAllowed(){const e=vn(this.month===11?this.year+1:this.year,this.month===11?0:this.month+1,1);return!(this.latest&&He(this.latest)<e)}nextMonth(){const e=this.month===11?0:this.month+1,t=this.month===11?this.year+1:this.year;this.changeMonth(t,e)}changeMonth(e,t){this.year=e,this.month=t,this.tabIndexSet=0,this.focusedDate=null,this.selectableDates=[],this.requestUpdate()}isInRange(e){if(this.range&&this.selected.length===2){if(e>He(this.selected[0])&&e<He(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&e>He(this.selected[0])&&e<this.rangeHovered)return!0;return!1}isRangeAllowed(e){let t=!0;if(this._selected.length===1){const n=bs({start:this._selected[0],end:e});if(Array.isArray(n)&&n.length)for(let r=0;r<n.length;r++)this.excludedates.forEach(i=>{i>this._selected[0]&&i<e&&(t=!1)}),this.excludeweekdays.includes(Mm(n[r]).toString())&&(t=!1)}return t}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(e){this.selected.includes(Xe(e))||(this.selected=[...this.selected,Xe(e)],this._selected=[...this._selected,e],this.range&&this.selected.length===2&&this.close())}removeFromSelected(e){if(this.selected.length===1)this.emptySelected();else{const t=this.selected.indexOf(Xe(e)),n=[...this.selected],r=[...this._selected];n.splice(t,1),r.splice(t,1),this.selected=n,this._selected=r}}toggleSelected(e){const t=Xe(e);this.selected.includes(t)?this.removeFromSelected(e):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(e)}handleRangeSelect(e){const t=Xe(e);return this.selected.includes(t)?this.selected.indexOf(t)===0?this.emptySelected():this.removeFromSelected(e):this.selected.length>1?(this.emptySelected(),this.addToSelected(e)):(this.selected.length===1&&!this.isRangeAllowed(e)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>e&&this.emptySelected(),this.addToSelected(e)),Promise.resolve()}handleRangeHover(e){if(this.range&&this._selected.length===1&&this.isRangeAllowed(e)&&this._selected[0]<e){this.rangeHovered=e,this.inRange={};const t=bs({start:this._selected[0],end:e});if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n++)this.inRange[Xe(t[n])]=this.isInRange(t[n])}else this.rangeHovered=null}handleDateSelect(e){if(e)return this.range?this.handleRangeSelect(e):this.multiple?this.toggleSelected(e):(this.selected.includes(Xe(e))?this.emptySelected():(this.emptySelected(),this.addToSelected(e)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const e=Xe(He()),t=this.querySelector(`div[data-date="${e}"]`);if(t instanceof HTMLDivElement)this.focusedDate=e,t.focus();else{const n=this.selectableDates.find(r=>!r.isDisabled);if(n){const r=this.querySelector(`div[data-date="${n.currentDateISO}"]`);r instanceof HTMLDivElement&&(this.focusedDate=n.currentDateISO,r.focus())}}}closeEvent(e){!this.contains(e.relatedTarget)&&!e.target.classList.contains("pkt-hide")&&this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};Se([N({type:Boolean})],_e.prototype,"multiple",2),Se([N({type:Number})],_e.prototype,"maxMultiple",2),Se([N({type:Boolean})],_e.prototype,"range",2),Se([N({type:Boolean})],_e.prototype,"weeknumbers",2),Se([N({type:Boolean})],_e.prototype,"withcontrols",2),Se([N({converter:lr.csvToArray})],_e.prototype,"selected",2),Se([N({type:String})],_e.prototype,"earliest",2),Se([N({type:String})],_e.prototype,"latest",2),Se([N({converter:lr.stringsToDate})],_e.prototype,"excludedates",2),Se([N({converter:lr.csvToArray})],_e.prototype,"excludeweekdays",2),Se([N({converter:lr.stringToDate})],_e.prototype,"currentmonth",2),Se([N({type:Array})],_e.prototype,"dayStrings",2),Se([N({type:Array})],_e.prototype,"dayStringsLong",2),Se([N({type:Array})],_e.prototype,"monthStrings",2),Se([N({type:String})],_e.prototype,"weekString",2),Se([N({type:String})],_e.prototype,"prevMonthString",2),Se([N({type:String})],_e.prototype,"nextMonthString",2),Se([N({type:Array})],_e.prototype,"_selected",2),Se([N({type:Number})],_e.prototype,"year",2),Se([N({type:Number})],_e.prototype,"month",2),Se([N({type:Number})],_e.prototype,"week",2),Se([N({type:Date})],_e.prototype,"rangeHovered",2),Se([kt()],_e.prototype,"inRange",2),Se([kt()],_e.prototype,"focusedDate",2),Se([kt()],_e.prototype,"selectableDates",2),Se([kt()],_e.prototype,"currentmonthtouched",2),Se([kt()],_e.prototype,"tabIndexSet",2),_e=Se([$t("pkt-calendar")],_e);const Ym="pkt-tag",Km=!0,Jm={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:"Lukk"}},Xm={default:{description:"Teksten til tag"}},cr={name:Ym,"css-class":"pkt-tag",isElement:Km,props:Jm,slots:Xm};var Zm=Object.defineProperty,Qm=Object.getOwnPropertyDescriptor,Zt=(e,t,n,r)=>{for(var i=r>1?void 0:r?Qm(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&&Zm(t,n,i),i};let Mt=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.closeTag=cr.props.closeTag.default,this.size=cr.props.size.default,this.skin=cr.props.skin.default,this.textStyle=cr.props.textStyle.default,this.iconName=void 0,this.type=cr.props.type.default,this.ariaLabel=cr.props.ariaLabel.default,this._isClosed=!1,this.close=t=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:t},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:t},bubbles:!0,composed:!0}))},this.slotController=new fn(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,"pkt-hide":this._isClosed};return this.closeTag?W`
|
|
261
261
|
<button
|
|
262
262
|
class=${Re(n)}
|
|
263
263
|
type=${this.type}
|
|
264
264
|
aria-label=${this.ariaLabel}
|
|
265
265
|
@click=${this.close}
|
|
266
266
|
>
|
|
267
|
-
${this.iconName&&
|
|
267
|
+
${this.iconName&&W`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
268
268
|
<span ${Je(this.defaultSlot)}></span>
|
|
269
269
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
270
270
|
</button>
|
|
271
|
-
`:
|
|
271
|
+
`:W`
|
|
272
272
|
<span class=${Re(t)}>
|
|
273
|
-
${this.iconName&&
|
|
273
|
+
${this.iconName&&W` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
274
274
|
<span ${Je(this.defaultSlot)}></span>
|
|
275
275
|
</span>
|
|
276
|
-
`}};Zt([
|
|
276
|
+
`}};Zt([N({type:Boolean,reflect:!0})],Mt.prototype,"closeTag",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"size",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"skin",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"textStyle",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"iconName",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"type",2),Zt([N({type:String,reflect:!0})],Mt.prototype,"ariaLabel",2),Zt([kt()],Mt.prototype,"_isClosed",2),Mt=Zt([$t("pkt-tag")],Mt);const eg="pkt-card",tg=!0,ng={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"]}}},rg={default:{description:"Innholdet i kortet"}},yu={name:eg,"css-class":"pkt-card",isElement:tg,props:ng,slots:rg};var ag=Object.defineProperty,ig=Object.getOwnPropertyDescriptor,qn=(e,t,n,r)=>{for(var i=r>1?void 0:r?ig(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&&ag(t,n,i),i};let Qt=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.skin=yu.props.skin.default,this.direction=yu.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new fn(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 W`
|
|
277
277
|
<div class=${Re(t)}>
|
|
278
|
-
${this.image.src&&
|
|
278
|
+
${this.image.src&&W`
|
|
279
279
|
<div class="pkt-card__image">
|
|
280
280
|
<img src=${this.image.src} alt=${this.image.alt||""} />
|
|
281
281
|
</div>
|
|
282
282
|
`}
|
|
283
283
|
<div class="pkt-card__wrapper">
|
|
284
|
-
${this.tags.length>0?
|
|
284
|
+
${this.tags.length>0?W`
|
|
285
285
|
<div class="pkt-card__tags">
|
|
286
|
-
${this.tags.map(n=>
|
|
286
|
+
${this.tags.map(n=>W`
|
|
287
287
|
<pkt-tag textStyle="normal-text" size="medium" skin=${n.skin}>
|
|
288
288
|
${n.text}
|
|
289
289
|
</pkt-tag>
|
|
290
290
|
`)}
|
|
291
291
|
</div>
|
|
292
|
-
`:
|
|
293
|
-
${this.heading&&
|
|
294
|
-
${this.subheading&&
|
|
295
|
-
${this.defaultSlot&&
|
|
292
|
+
`:Q}
|
|
293
|
+
${this.heading&&W`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
|
|
294
|
+
${this.subheading&&W`<p class="pkt-txt-20-light">${this.subheading}</p>`}
|
|
295
|
+
${this.defaultSlot&&W`<div class="pkt-card__content" ${Je(this.defaultSlot)}></div>`}
|
|
296
296
|
</div>
|
|
297
297
|
</div>
|
|
298
|
-
`}};qn([
|
|
298
|
+
`}};qn([N({type:String,reflect:!0})],Qt.prototype,"skin",2),qn([N({type:String,reflect:!0})],Qt.prototype,"direction",2),qn([N({type:Object,reflect:!0})],Qt.prototype,"image",2),qn([N({type:String,reflect:!0})],Qt.prototype,"heading",2),qn([N({type:String,reflect:!0})],Qt.prototype,"subheading",2),qn([N({type:Array,reflect:!0})],Qt.prototype,"tags",2),Qt=qn([$t("pkt-card")],Qt);var sg=Object.defineProperty,og=Object.getOwnPropertyDescriptor,ra=(e,t,n,r)=>{for(var i=r>1?void 0:r?og(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&&sg(t,n,i),i};let pr=class extends wt{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=ut(),this.namedSlot=ut(),this.slotController=new fn(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(t=>{this._list.push(t.toUpperCase())}),super.connectedCallback()}render(){const t={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return W`
|
|
299
299
|
<div class="${Re(t)}">
|
|
300
300
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
301
301
|
|
|
@@ -319,15 +319,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
319
319
|
Si ${Lt.example.hi}
|
|
320
320
|
</button>
|
|
321
321
|
</div>
|
|
322
|
-
`}renderList(t){return
|
|
322
|
+
`}renderList(t){return W`
|
|
323
323
|
<ul>
|
|
324
|
-
${t.map(n=>
|
|
324
|
+
${t.map(n=>W`<li>${n}</li>`)}
|
|
325
325
|
</ul>
|
|
326
|
-
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};ra([
|
|
327
|
-
${this.helptext?
|
|
326
|
+
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};ra([N({type:String})],pr.prototype,"string",2),ra([N({converter:Ql})],pr.prototype,"strings",2),ra([N({type:Boolean})],pr.prototype,"darkmode",2),ra([N({type:Array})],pr.prototype,"_list",2),pr=ra([$t("pkt-component")],pr);var lg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,dr=(e,t,n,r)=>{for(var i=r>1?void 0:r?ug(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&&lg(t,n,i),i};let Hn=class extends wt{constructor(){super(),this.forId=fs(),this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=ht.props.helptextDropdownButton.default,this.isHelpTextOpen=!1}render(){const t=()=>{this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:!this.isHelpTextOpen}})),this.isHelpTextOpen=!this.isHelpTextOpen},n={"pkt-inputwrapper__helptext":!0,"pkt-inputwrapper__helptext-expandable-open":this.isHelpTextOpen,"pkt-inputwrapper__helptext-expandable-closed":!this.isHelpTextOpen};return W`${this.helptext||this.helptextDropdown?W`<div>
|
|
327
|
+
${this.helptext?W`<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
328
328
|
${Xa(this.helptext)}
|
|
329
|
-
</div>`:
|
|
330
|
-
${this.helptextDropdown?
|
|
329
|
+
</div>`:Q}
|
|
330
|
+
${this.helptextDropdown?W`<div class="pkt-inputwrapper__helptext-expandable">
|
|
331
331
|
<button
|
|
332
332
|
class="pkt-link pkt-link--icon-right pkt-btn pkt-btn--small pkt-btn--tertiary pkt-btn--icon-right"
|
|
333
333
|
type="button"
|
|
@@ -342,54 +342,54 @@ React keys must be passed directly to JSX without using spread:
|
|
|
342
342
|
<div class="${Re(n)}">
|
|
343
343
|
${Xa(this.helptextDropdown)}
|
|
344
344
|
</div>
|
|
345
|
-
</div>`:
|
|
346
|
-
</div>`:
|
|
345
|
+
</div>`:Q}
|
|
346
|
+
</div>`:Q}`}};dr([N({type:String,reflect:!0})],Hn.prototype,"forId",2),dr([N({type:String,reflect:!0})],Hn.prototype,"helptext",2),dr([N({type:String,reflect:!0})],Hn.prototype,"helptextDropdown",2),dr([N({type:String,reflect:!0})],Hn.prototype,"helptextDropdownButton",2),dr([kt()],Hn.prototype,"isHelpTextOpen",2),Hn=dr([$t("pkt-helptext")],Hn);/**
|
|
347
347
|
* @license
|
|
348
348
|
* Copyright 2020 Google LLC
|
|
349
349
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
350
|
-
*/const
|
|
351
|
-
take care to ensure page security.`)})(r)+e[i+1],e[0]),r:
|
|
352
|
-
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:
|
|
353
|
-
>`:
|
|
350
|
+
*/const cg=Symbol.for(""),_s=(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
|
|
351
|
+
take care to ensure page security.`)})(r)+e[i+1],e[0]),r:cg});var pg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,Ue=(e,t,n,r)=>{for(var i=r>1?void 0:r?dg(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&&pg(t,n,i),i};let qe=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.forId=fs(),this.label=ht.props.label.default,this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=ht.props.helptextDropdownButton.default,this.counter=ht.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=ht.props.optionalTag.default,this.optionalText=ht.props.optionalText.default,this.requiredTag=ht.props.requiredTag.default,this.requiredText=ht.props.requiredText.default,this.hasError=ht.props.hasError.default,this.errorMessage="",this.disabled=ht.props.disabled.default,this.inline=ht.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=ht.props.hasFieldset.default,this.useWrapper=ht.props.useWrapper.default,this.wrapperType=this.useWrapper?_s`fieldset`:this.hasDropdown?_s`div`:_s`label`,this.slotController=new fn(this,this.defaultSlot)}render(){const e={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},t={"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},n=this.helptextDropdown!=="",r={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},i=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:Q,o=()=>this.optionalTag||this.requiredTag?W`<span class=${Re(t)}
|
|
352
|
+
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:Q}</span
|
|
353
|
+
>`:Q,u=()=>this.useWrapper?this.hasFieldset?W`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
354
354
|
${this.label} ${o()}
|
|
355
|
-
</legend>`:n?
|
|
355
|
+
</legend>`:n?W`<h2>${this.label} ${o()}</h2>`:W`<span>${this.label} ${o()}</span>`:W`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${i}"
|
|
356
356
|
>${this.label}</label
|
|
357
|
-
>`,c=()=>this.useWrapper&&(this.helptext||this.helptextDropdown)?
|
|
357
|
+
>`,c=()=>this.useWrapper&&(this.helptext||this.helptextDropdown)?W`
|
|
358
358
|
<pkt-helptext
|
|
359
359
|
.forId=${this.forId}
|
|
360
360
|
.helptext=${this.helptext}
|
|
361
361
|
.helptextDropdown=${this.helptextDropdown}
|
|
362
362
|
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
363
363
|
></pkt-helptext>
|
|
364
|
-
`:
|
|
364
|
+
`:Q,d=()=>this.counter?W`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
365
365
|
${this.counterCurrent||0}
|
|
366
|
-
${this.counterMaxLength?`/${this.counterMaxLength}`:
|
|
367
|
-
</div>`:
|
|
366
|
+
${this.counterMaxLength?`/${this.counterMaxLength}`:Q}
|
|
367
|
+
</div>`:Q,h=()=>this.hasError&&this.errorMessage?W`<div
|
|
368
368
|
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
369
369
|
aria-live="assertive"
|
|
370
370
|
>
|
|
371
371
|
<pkt-icon name="alert-error" class="pkt-alert__icon"></pkt-icon>
|
|
372
372
|
<div class="pkt-alert__text">${Xa(this.errorMessage)}</div>
|
|
373
|
-
</div>`:
|
|
373
|
+
</div>`:Q,m=()=>W`
|
|
374
374
|
${u()} ${c()}
|
|
375
|
-
${n?
|
|
375
|
+
${n?W`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${i}"
|
|
376
376
|
>${this.label}</label
|
|
377
|
-
>`:
|
|
377
|
+
>`:Q}
|
|
378
378
|
<div class="pkt-contents" ${Je(this.defaultSlot)}></div>
|
|
379
379
|
${d()} ${h()}
|
|
380
|
-
`,v=()=>this.hasFieldset?
|
|
380
|
+
`,v=()=>this.hasFieldset?W`<fieldset class=${Re(r)} aria-describedby="${i}">
|
|
381
381
|
${m()}
|
|
382
|
-
</fieldset>`:n?
|
|
382
|
+
</fieldset>`:n?W`<div class=${Re(r)}>${m()}</div>`:W`<label
|
|
383
383
|
class=${Re(r)}
|
|
384
384
|
for="${this.forId}"
|
|
385
385
|
aria-describedby="${i}"
|
|
386
386
|
>
|
|
387
387
|
${m()}
|
|
388
|
-
</label>`;return
|
|
388
|
+
</label>`;return W`<div class=${Re(e)}>${v()}</div> `}};Ue([N({type:String,reflect:!0})],qe.prototype,"forId",2),Ue([N({type:String,reflect:!0})],qe.prototype,"label",2),Ue([N({type:String,reflect:!0})],qe.prototype,"helptext",2),Ue([N({type:String,reflect:!0})],qe.prototype,"helptextDropdown",2),Ue([N({type:String,reflect:!0})],qe.prototype,"helptextDropdownButton",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"counter",2),Ue([N({type:Number,reflect:!0})],qe.prototype,"counterCurrent",2),Ue([N({type:Number,reflect:!0})],qe.prototype,"counterMaxLength",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"optionalTag",2),Ue([N({type:String,reflect:!0})],qe.prototype,"optionalText",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"requiredTag",2),Ue([N({type:String,reflect:!0})],qe.prototype,"requiredText",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"hasError",2),Ue([N({type:String,reflect:!0})],qe.prototype,"errorMessage",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"inline",2),Ue([N({type:String,reflect:!0})],qe.prototype,"ariaDescribedby",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"hasFieldset",2),Ue([N({type:Boolean,reflect:!0})],qe.prototype,"useWrapper",2),qe=Ue([$t("pkt-input-wrapper")],qe);/**
|
|
389
389
|
* @license
|
|
390
390
|
* Copyright 2017 Google LLC
|
|
391
391
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
392
|
-
*/const Du=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},
|
|
392
|
+
*/const Du=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},hg=Vr(class extends Ya{constructor(e){if(super(e),e.type!==Ga.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=pf(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,m,v=0,y=i.length-1,b=0,k=o.length-1;for(;v<=y&&b<=k;)if(i[v]===null)v++;else if(i[y]===null)y--;else if(c[v]===u[b])d[b]=On(i[v],o[b]),v++,b++;else if(c[y]===u[k])d[k]=On(i[y],o[k]),y--,k--;else if(c[v]===u[k])d[k]=On(i[v],o[k]),Gr(e,d[k+1],i[v]),v++,k--;else if(c[y]===u[b])d[b]=On(i[y],o[b]),Gr(e,i[v],i[y]),y--,b++;else if(h===void 0&&(h=Du(u,b,k),m=Du(c,v,y)),h.has(c[v]))if(h.has(c[y])){const x=m.get(u[b]),C=x!==void 0?i[x]:null;if(C===null){const T=Gr(e,i[v]);On(T,o[b]),d[b]=T}else d[b]=On(C,o[b]),Gr(e,i[v],C),i[x]=null;b++}else ms(i[y]),y--;else ms(i[v]),v++;for(;b<=k;){const x=Gr(e,d[k+1]);On(x,o[b]),d[b++]=x}for(;v<=y;){const x=i[v++];x!==null&&ms(x)}return this.ut=u,cf(e,d),Xt}}),fg="pkt-datepicker",mg=!0,gg={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"},useWrapper:{type:"boolean",name:"Bruk wrapper",description:"Indikerer at feltet skal ha synlig label og hjelpetekst",default:!0},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},vg={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"}},yn={name:fg,"css-class":"pkt-datepicker",isElement:mg,props:gg,events:vg};var yg=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Me=(e,t,n,r)=>{for(var i=r>1?void 0:r?Dg(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&&yg(t,n,i),i};const bu=e=>new Promise(t=>setTimeout(t,e));let Be=class extends Pe{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.dateformat=yn.props.dateformat.default,this.multiple=yn.props.multiple.default,this.maxlength=yn.props.maxlength.default,this.range=yn.props.range.default,this.showRangeLabels=!1,this.min=null,this.max=null,this.weeknumbers=yn.props.weeknumbers.default,this.withcontrols=yn.props.withcontrols.default,this.fullwidth=!1,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.useWrapper=!0,this.calendarOpen=!1,this.timezone="Europe/Oslo",this.inputClasses={},this.buttonClasses={},this.inputRef=ut(),this.inputRefTo=ut(),this.btnRef=ut(),this.calRef=ut(),this.popupRef=ut(),this.addToSelected=e=>{const t=e.target;if(!t.value)return;const n=this.min?He(this.min):null,r=this.max?He(this.max):null,i=He(t.value.split(",")[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||yn.props.min.default,this.max=this.max||yn.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 bu(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"))}}renderInput(){return W`
|
|
393
393
|
<input
|
|
394
394
|
class="${Re(this.inputClasses)}"
|
|
395
395
|
.type=${this.inputType}
|
|
@@ -406,8 +406,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
406
406
|
@change=${e=>{e.stopImmediatePropagation()}}
|
|
407
407
|
${Je(this.inputRef)}
|
|
408
408
|
/>
|
|
409
|
-
`}renderRangeInput(){return
|
|
410
|
-
<div class="pkt-input-prefix"
|
|
409
|
+
`}renderRangeInput(){const e={"pkt-input-prefix":this.showRangeLabels,"pkt-hide":!this.showRangeLabels};return W`
|
|
410
|
+
${this.showRangeLabels?W` <div class="pkt-input-prefix">${this.strings.generic.from}</div> `:Q}
|
|
411
411
|
<input
|
|
412
412
|
class=${Re(this.inputClasses)}
|
|
413
413
|
.type=${this.inputType}
|
|
@@ -415,16 +415,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
415
415
|
.value=${this._value[0]??""}
|
|
416
416
|
min=${this.min}
|
|
417
417
|
max=${this.max}
|
|
418
|
-
@click=${
|
|
418
|
+
@click=${t=>{t.preventDefault(),this.showCalendar()}}
|
|
419
419
|
?disabled=${this.disabled}
|
|
420
|
-
@keydown=${
|
|
421
|
-
@input=${
|
|
420
|
+
@keydown=${t=>{var n;(t.key===","||t.key==="Enter")&&((n=this.inputRef.value)==null||n.blur()),(t.key==="Space"||t.key===" ")&&(t.preventDefault(),this.toggleCalendar(t))}}
|
|
421
|
+
@input=${t=>{this.onInput(),t.stopImmediatePropagation()}}
|
|
422
422
|
@focus=${()=>{this.onFocus(),this.isMobileSafari&&this.showCalendar()}}
|
|
423
|
-
@blur=${
|
|
424
|
-
@change=${
|
|
423
|
+
@blur=${t=>{var n,r;if(t.target.value){this.manageValidity(t.target);const i=Cs(t.target.value);i&&this._value[0]!==t.target.value&&this._value[1]&&(this.clearInputValue(),(r=(n=this.calRef)==null?void 0:n.value)==null||r.handleDateSelect(i))}else this._value[0]&&this.clearInputValue()}}
|
|
424
|
+
@change=${t=>{t.stopImmediatePropagation()}}
|
|
425
425
|
${Je(this.inputRef)}
|
|
426
426
|
/>
|
|
427
|
-
<div class="
|
|
427
|
+
<div class="${Re(e)}" id="${this.id}-to-label">
|
|
428
|
+
${this.strings.generic.to}
|
|
429
|
+
</div>
|
|
430
|
+
${this.showRangeLabels?Q:W` <div class="pkt-input-separator">–</div> `}
|
|
428
431
|
<input
|
|
429
432
|
class=${Re(this.inputClasses)}
|
|
430
433
|
.type=${this.inputType}
|
|
@@ -433,22 +436,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
433
436
|
.value=${this._value[1]??""}
|
|
434
437
|
min=${this.min}
|
|
435
438
|
max=${this.max}
|
|
436
|
-
@click=${
|
|
439
|
+
@click=${t=>{t.preventDefault(),this.showCalendar()}}
|
|
437
440
|
?disabled=${this.disabled}
|
|
438
|
-
@keydown=${
|
|
439
|
-
@input=${
|
|
441
|
+
@keydown=${t=>{var n;(t.key===","||t.key==="Enter")&&((n=this.inputRefTo.value)==null||n.blur()),(t.key==="Space"||t.key===" ")&&(t.preventDefault(),this.toggleCalendar(t))}}
|
|
442
|
+
@input=${t=>{this.onInput(),t.stopImmediatePropagation()}}
|
|
440
443
|
@focus=${()=>{this.onFocus(),this.isMobileSafari&&this.showCalendar()}}
|
|
441
|
-
@blur=${
|
|
442
|
-
@change=${
|
|
444
|
+
@blur=${t=>{var n,r,i;if((n=this.calRef.value)!=null&&n.contains(t.relatedTarget)||this.onBlur(),t.target.value){this.manageValidity(t.target);const o=t.target.value;this.min&&this.min>o?this.internals.setValidity({rangeUnderflow:!0},this.strings.forms.messages.rangeUnderflow,t.target):this.max&&this.max<o&&this.internals.setValidity({rangeOverflow:!0},this.strings.forms.messages.rangeOverflow,t.target);const u=Cs(t.target.value);u&&this._value[1]!==Xe(u)&&((i=(r=this.calRef)==null?void 0:r.value)==null||i.handleDateSelect(u))}}}
|
|
445
|
+
@change=${t=>{t.stopImmediatePropagation()}}
|
|
443
446
|
${Je(this.inputRefTo)}
|
|
444
447
|
/>
|
|
445
|
-
`}renderMultipleInput(){return
|
|
448
|
+
`}renderMultipleInput(){return console.log("renderMultipleInput",this.inputClasses,this.multiple),W`
|
|
446
449
|
<input
|
|
447
450
|
class=${Re(this.inputClasses)}
|
|
448
451
|
.type=${this.inputType}
|
|
449
452
|
id="${this.id}-input"
|
|
450
|
-
min=${this.min}
|
|
451
|
-
max=${this.max}
|
|
453
|
+
.min=${this.min||Q}
|
|
454
|
+
.max=${this.max||Q}
|
|
452
455
|
@click=${e=>{e.preventDefault(),this.showCalendar()}}
|
|
453
456
|
@blur=${e=>{var t;(t=this.calRef.value)!=null&&t.contains(e.relatedTarget)||this.onBlur(),this.addToSelected(e)}}
|
|
454
457
|
@input=${e=>{this.onInput(),e.stopImmediatePropagation()}}
|
|
@@ -458,9 +461,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
458
461
|
@change=${e=>{e.stopImmediatePropagation()}}
|
|
459
462
|
${Je(this.inputRef)}
|
|
460
463
|
/>
|
|
461
|
-
`}renderTags(){return
|
|
464
|
+
`}renderTags(){return W`
|
|
462
465
|
<div class="pkt-datepicker__tags" aria-live="polite">
|
|
463
|
-
${this._value[0]?
|
|
466
|
+
${this._value[0]?hg(this._value??[],e=>e,e=>W`
|
|
464
467
|
<pkt-tag
|
|
465
468
|
.id="${this.id+e+"-tag"}"
|
|
466
469
|
closeTag
|
|
@@ -468,9 +471,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
468
471
|
@close=${()=>{var t;return(t=this.calRef.value)==null?void 0:t.handleDateSelect(Cs(e))}}
|
|
469
472
|
>${vu(e,this.dateformat)}</pkt-tag
|
|
470
473
|
>
|
|
471
|
-
`):
|
|
474
|
+
`):Q}
|
|
472
475
|
</div>
|
|
473
|
-
`}renderCalendar(){return
|
|
476
|
+
`}renderCalendar(){return W`<div
|
|
474
477
|
class="pkt-calendar-popup pkt-${this.calendarOpen?"show":"hide"}"
|
|
475
478
|
@focusout=${e=>{this.calendarOpen&&this.handleFocusOut(e)}}
|
|
476
479
|
id="${this.id}-popup"
|
|
@@ -488,12 +491,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
488
491
|
.latest=${this.max}
|
|
489
492
|
.excludedates=${Array.isArray(this.excludedates)?this.excludedates:this.excludedates.split(",")}
|
|
490
493
|
.excludeweekdays=${this.excludeweekdays}
|
|
491
|
-
.currentmonth=${this.currentmonth?
|
|
494
|
+
.currentmonth=${this.currentmonth?He(this.currentmonth):null}
|
|
492
495
|
@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]:""))}}
|
|
493
496
|
@close=${()=>{this.onBlur(),this.hideCalendar()}}
|
|
494
497
|
${Je(this.calRef)}
|
|
495
498
|
></pkt-calendar>
|
|
496
|
-
</div>`}render(){return
|
|
499
|
+
</div>`}render(){return this.inputClasses={"pkt-input":!0,"pkt-datepicker__input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-datepicker--hasrangelabels":this.showRangeLabels,"pkt-datepicker--multiple":this.multiple,"pkt-datepicker--range":this.range},this.buttonClasses={"pkt-input-icon":!0,"pkt-btn":!0,"pkt-btn--icon-only":!0,"pkt-btn--tertiary":!0},W`
|
|
497
500
|
<pkt-input-wrapper
|
|
498
501
|
label="${this.label}"
|
|
499
502
|
forId="${this.id}-input"
|
|
@@ -514,8 +517,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
514
517
|
.helptextDropdownButton=${this.helptextDropdownButton}
|
|
515
518
|
class="pkt-datepicker"
|
|
516
519
|
>
|
|
517
|
-
${this.multiple?this.renderTags():
|
|
518
|
-
<div
|
|
520
|
+
${this.multiple?this.renderTags():Q}
|
|
521
|
+
<div
|
|
522
|
+
class="pkt-datepicker__inputs ${this.range&&this.showRangeLabels?"pkt-input__range-inputs":""}"
|
|
523
|
+
>
|
|
519
524
|
<div class="pkt-input__container">
|
|
520
525
|
${this.range?this.renderRangeInput():this.multiple?this.renderMultipleInput():this.renderInput()}
|
|
521
526
|
<button
|
|
@@ -532,25 +537,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
532
537
|
</div>
|
|
533
538
|
</pkt-input-wrapper>
|
|
534
539
|
${this.renderCalendar()}
|
|
535
|
-
`}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 bu(20),this.handleCalendarPosition(),this.isMobileSafari&&((e=this.calRef.value)==null||e.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(e){e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};
|
|
540
|
+
`}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 bu(20),this.handleCalendarPosition(),this.isMobileSafari&&((e=this.calRef.value)==null||e.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(e){e.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};Me([N({type:String,reflect:!0})],Be.prototype,"value",2),Me([N({type:Array})],Be.prototype,"_value",2),Me([N({type:String})],Be.prototype,"label",2),Me([N({type:String})],Be.prototype,"dateformat",2),Me([N({type:Boolean,reflect:!0})],Be.prototype,"multiple",2),Me([N({type:Number})],Be.prototype,"maxlength",2),Me([N({type:Boolean,reflect:!0})],Be.prototype,"range",2),Me([N({type:Boolean})],Be.prototype,"showRangeLabels",2),Me([N({type:String})],Be.prototype,"min",2),Me([N({type:String})],Be.prototype,"max",2),Me([N({type:Boolean})],Be.prototype,"weeknumbers",2),Me([N({type:Boolean})],Be.prototype,"withcontrols",2),Me([N({type:Boolean})],Be.prototype,"fullwidth",2),Me([N({converter:lr.csvToArray})],Be.prototype,"excludedates",2),Me([N({converter:lr.csvToArray})],Be.prototype,"excludeweekdays",2),Me([N({type:String})],Be.prototype,"currentmonth",2),Me([N({type:Boolean})],Be.prototype,"useWrapper",2),Me([N({type:Boolean,reflect:!0})],Be.prototype,"calendarOpen",2),Me([N({type:String})],Be.prototype,"timezone",2),Me([kt()],Be.prototype,"inputClasses",2),Me([kt()],Be.prototype,"buttonClasses",2),Be=Me([$t("pkt-datepicker")],Be);const bg="pkt-link",kg=!0,wg={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}},Cg={default:{description:"Innholdet i lenken"}},xs={name:bg,"css-class":"pkt-link","dark-mode":!0,isElement:kg,props:wg,slots:Cg};var _g=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,hr=(e,t,n,r)=>{for(var i=r>1?void 0:r?xg(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&&_g(t,n,i),i};let Dn=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.href=xs.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=xs.props.external.default,this.target=xs.props.target.default,this.slotController=new fn(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 W`<a
|
|
536
541
|
class=${Re(e)}
|
|
537
542
|
href=${this.href}
|
|
538
543
|
@click=${this.handleClick}
|
|
539
544
|
.target=${this.target}
|
|
540
|
-
.rel=${this.external?"noopener noreferrer":
|
|
541
|
-
>${this.iconName?
|
|
542
|
-
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};hr([
|
|
543
|
-
${this.closable?
|
|
545
|
+
.rel=${this.external?"noopener noreferrer":Q}
|
|
546
|
+
>${this.iconName?W`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${Je(this.defaultSlot)}>Link</span></a
|
|
547
|
+
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};hr([N({type:String,reflect:!0})],Dn.prototype,"href",2),hr([N({type:String,reflect:!0})],Dn.prototype,"iconName",2),hr([N({type:String,reflect:!0})],Dn.prototype,"iconPosition",2),hr([N({type:Boolean,reflect:!0})],Dn.prototype,"external",2),hr([N({type:String,reflect:!0})],Dn.prototype,"target",2),Dn=hr([$t("pkt-link")],Dn);const Sg="pkt-messagebox",Eg=!0,Fg={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},Ag={title:{name:"Tittel",description:"Tittelen på meldingsboksen",type:"string"},skin:{name:"Utseende",description:"Velg farge på meldingsboksen",type:["beige","blue","red","green"],default:"beige"},compact:{name:"Kompakt",description:"Gjør meldingsboksen mindre",type:"boolean",default:!1},closable:{name:"Kan lukkes",description:"Viser lukkeknapp",type:"boolean",default:!1}},$g={default:{description:"Innholdet i meldingsboksen"}},Ss={name:Sg,"css-class":"pkt-messagebox",isElement:Eg,events:Fg,props:Ag,slots:$g};var Tg=Object.defineProperty,Bg=Object.getOwnPropertyDescriptor,fr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Bg(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&&Tg(t,n,i),i};let bn=class extends wt{constructor(){super(),this.defaultSlot=ut(),this.closable=Ss.props.closable.default,this.compact=Ss.props.compact.default,this.title="",this.skin=Ss.props.skin.default,this._isClosed=!1,this.close=e=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:e},bubbles:!0}))},this.slotController=new fn(this,this.defaultSlot),this._isClosed=!1}render(){const e={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return W`<div class=${Re(e)}>
|
|
548
|
+
${this.closable?W`<div class="pkt-messagebox__close">
|
|
544
549
|
<button
|
|
545
550
|
@click=${this.close}
|
|
546
551
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
547
552
|
>
|
|
548
553
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
549
554
|
</button>
|
|
550
|
-
</div>`:
|
|
551
|
-
${this.title?
|
|
555
|
+
</div>`:Q}
|
|
556
|
+
${this.title?W`<div class="pkt-messagebox__title">${this.title}</div>`:Q}
|
|
552
557
|
<div class="pkt-messagebox__text" ${Je(this.defaultSlot)}></div>
|
|
553
|
-
</div>`}};fr([
|
|
558
|
+
</div>`}};fr([N({type:Boolean,reflect:!0})],bn.prototype,"closable",2),fr([N({type:Boolean,reflect:!0})],bn.prototype,"compact",2),fr([N({type:String,reflect:!0})],bn.prototype,"title",2),fr([N({type:String,reflect:!0})],bn.prototype,"skin",2),fr([kt()],bn.prototype,"_isClosed",2),bn=fr([$t("pkt-messagebox")],bn);const Ng="pkt-modal",jg=!0,Pg={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},Lg={headingText:{name:"Heading text",description:"Heading tekst på modalen",type:"string"},hideCloseButton:{name:"Gjem 'Lukk'-knapp",description:"Gjemmer lukkeknappen. Dersom denne er satt til true, vil ikke lukkeknappen vises, og dermed er det viktig at man tilbyr en annen måte som f.eks. en knapp for å lukke modalen på.",type:"boolean",default:!1},closeOnBackdropClick:{name:"Lukk modalen når bakgrunnen trykkes på",description:"Lukk modalen når bakgrunnen trykkes på",type:"boolean",default:!1},size:{name:"Størrelse",description:"Størrelsen på modalen",type:["small","medium","large"],default:"medium"}},Og={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},Es={name:Ng,"css-class":"pkt-modal",isElements:jg,events:Pg,props:Lg,slots:Og};var Mg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,mr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ig(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&&Mg(t,n,i),i};let kn=class extends wt{constructor(){super(),this.headingText="",this.hideCloseButton=Es.props.hideCloseButton.default,this.closeOnBackdropClick=Es.props.closeOnBackdropClick.default,this.size=Es.props.size.default,this.defaultSlot=ut(),this.dialogRef=ut(),this._isOpen=!1,this.close=(e,t=!1)=>{var n;this._isOpen=!1,t||(n=this.dialogRef.value)==null||n.close();const r=document.activeElement;r&&!this.isElementInViewport(r)&&r.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:e},bubbles:!0,composed:!0})),document.querySelector(".pkt-modal")&&document.body.classList.remove("pkt-modal--open"),this.requestUpdate()},this.showModal=e=>{var t;this._isOpen=!0,(t=this.dialogRef.value)==null||t.showModal(),document.querySelector(".pkt-modal")&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:e},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new fn(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){var e;super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.addEventListener("submit",t=>this.close(t,!0))}disconnectedCallback(){var e;super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown.bind(this)),document.removeEventListener("click",this.handleBackdropClick.bind(this)),(e=this.dialogRef.value)==null||e.removeEventListener("submit",t=>this.close(t,!0))}handleKeyDown(e){e.key==="Escape"&&this.close(e)}handleBackdropClick(e){var t;this.closeOnBackdropClick&&e.target===((t=this.dialogRef)==null?void 0:t.value)&&this.close(e)}isElementInViewport(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const e={"pkt-modal":!0,[`pkt-modal--${this.size}`]:this.size!==void 0};return W`
|
|
554
559
|
<dialog
|
|
555
560
|
class=${Re(e)}
|
|
556
561
|
aria-modal=${this._isOpen}
|
|
@@ -560,10 +565,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
560
565
|
autofocus
|
|
561
566
|
>
|
|
562
567
|
<div class="pkt-modal__header">
|
|
563
|
-
${this.headingText?
|
|
568
|
+
${this.headingText?W`<h1 id="pkt-modal__headingText" class="pkt-modal__headingText pkt-txt-24">
|
|
564
569
|
${this.headingText}
|
|
565
|
-
</h1>`:
|
|
566
|
-
${this.hideCloseButton?
|
|
570
|
+
</h1>`:Q}
|
|
571
|
+
${this.hideCloseButton?Q:W`<div class="pkt-modal__closeButton">
|
|
567
572
|
<button
|
|
568
573
|
@click=${t=>this.close(t)}
|
|
569
574
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
@@ -579,20 +584,20 @@ React keys must be passed directly to JSX without using spread:
|
|
|
579
584
|
${Je(this.defaultSlot)}
|
|
580
585
|
></div>
|
|
581
586
|
</dialog>
|
|
582
|
-
`}};mr([
|
|
587
|
+
`}};mr([N({type:String,reflect:!0})],kn.prototype,"headingText",2),mr([N({type:Boolean,reflect:!0})],kn.prototype,"hideCloseButton",2),mr([N({type:Boolean,reflect:!0})],kn.prototype,"closeOnBackdropClick",2),mr([N({type:String,reflect:!0})],kn.prototype,"size",2),mr([kt()],kn.prototype,"_isOpen",2),kn=mr([$t("pkt-modal")],kn);const ce=hn({tagName:"pkt-icon",elementClass:Mn,react:I,displayName:"PktIcon",events:{}});var ku={exports:{}};/*!
|
|
583
588
|
Copyright (c) 2018 Jed Watson.
|
|
584
589
|
Licensed under the MIT License (MIT), see
|
|
585
590
|
http://jedwatson.github.io/classnames
|
|
586
|
-
*/(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})()})(ku);var Ig=ku.exports;const et=Ra(Ig),Rg=I.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=I.useState(i),h=r?r.isOpen:c,m=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},y=et(t,"pkt-accordion-item");return g.jsxs("details",{className:y,ref:u,id:o,open:m(r?r.isOpen:c),children:[g.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,g.jsx(ce,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),g.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),qg=hn({tagName:"pkt-alert",elementClass:Ht,react:I,displayName:"PktAlert",events:{onClose:"close"}}),Fs=I.forwardRef(({children:e,...t},n)=>g.jsx(qg,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Fs.displayName="PktAlert";const wu=I.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 g.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:g.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),g.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});wu.displayName="PktBackLink";const Hg=I.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 g.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[g.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>g.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?g.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?g.jsxs(Bn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ce,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):g.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ce,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?g.jsxs(Bn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):g.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),Un=I.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:m=!1,...v},y)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,m&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return g.jsxs("button",{...v,className:b,type:u,ref:y,children:[m&&g.jsx(ce,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.11/animations/"}),c!=="label-only"&&g.jsx(ce,{className:"pkt-btn__icon",name:n}),g.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&g.jsx(ce,{className:"pkt-btn__icon",name:r})]})});Un.displayName="PktButton";const Ug=hn({tagName:"pkt-card",elementClass:Qt,react:I,displayName:"PktCard",events:{}}),Cu=I.forwardRef(({children:e,...t},n)=>g.jsx(Ug,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Cu.displayName="PktCard";const ri=I.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,...m},v)=>{const y=[h,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:y,children:g.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"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),g.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,...m}),r&&i==="right"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});ri.displayName="PktCheckbox";const _u=hn({tagName:"pkt-datepicker",elementClass:Ie,react:I,displayName:"PktDatepicker",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),zg=({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 g.jsx("footer",{className:u,"data-mode":"dark",children:g.jsxs("div",{className:"pkt-footer__container",children:[g.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:e.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&g.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:t.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&g.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),g.jsxs("ul",{className:"pkt-footer__list",children:[g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:i,children:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:o,children:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&g.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[g.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,m)=>g.jsx("div",{className:"pkt-footer__social-language",children:g.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-${m}`))}),g.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,m)=>g.jsx(I.Fragment,{children:g.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:g.jsx(ce,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${m}`))})]})]})})},Wg=({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 g.jsx("footer",{className:i,"data-mode":"dark",children:g.jsx("div",{className:"pkt-footer-simple__container",children:g.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Vg=I.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:m=!0,showMenuButton:v=!1,showLogOutButton:y=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},F)=>{const S=I.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,_]=I.useState(!1),[$,L]=I.useState(0),[M,P]=I.useState(!1),W=I.useRef(null);I.useEffect(()=>(document&&(document.addEventListener("mouseup",Y),window.addEventListener("scroll",O)),()=>{document&&(document.removeEventListener("mouseup",Y),window.removeEventListener("scroll",O))}));const J=()=>{P(!M)},Y=N=>{W.current&&!W.current.contains(N.target)&&P(!1)},O=()=>{if(i){const N=window.pageYOffset||document.documentElement.scrollTop;if(N<0||Math.abs(N-$)<60)return;_(N>$),L(N)}};return g.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:et(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":A}),ref:F,children:[g.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?g.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:g.jsx(ce,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.11/logos/"})}):g.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:g.jsx(ce,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.11/logos/"})}),g.jsx("span",{className:"pkt-header__logo-service",children:n})]}),g.jsx("nav",{className:"pkt-header__actions",children:g.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&g.jsx("li",{children:g.jsx(Un,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&g.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${M&&!A?"pkt-header--open-dropdown":""}`,ref:W,children:[g.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":M,onClick:J,children:[g.jsx(ce,{name:"user",className:"pkt-btn__icon"}),g.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),g.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),g.jsx(ce,{name:"chevron-thin-down",className:"pkt-btn--closed"}),g.jsx(ce,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),g.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&g.jsxs("li",{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),g.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&g.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",g.jsx("time",{children:S})]})]}),u&&g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:u.map((N,H)=>g.jsx("li",{children:typeof N.target=="string"?g.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&g.jsx(ce,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&g.jsx(ce,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userMenu-${H}`))})}),(c||m)&&g.jsxs("li",{children:[c&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),g.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&g.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),g.jsx("ul",{className:"pkt-list mt-size-16",children:m&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[g.jsx(ce,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:(d||!y)&&g.jsxs(g.Fragment,{children:[d==null?void 0:d.map((N,H)=>g.jsx("li",{children:typeof N.target=="string"?g.jsxs("a",{href:N.target,className:"pkt-link",children:[N.iconName&&g.jsx(ce,{name:N.iconName,className:"pkt-link__icon"}),N.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:[N.iconName&&g.jsx(ce,{name:N.iconName,className:"pkt-link__icon"}),N.title]})},`userOptions-${H}`)),!y&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[g.jsx(ce,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&g.jsx("li",{className:"footer",children:g.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((N,H)=>g.jsx("li",{children:typeof N.target=="string"?g.jsx("a",{href:N.target,className:"pkt-link",children:N.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:N.target,children:N.title})},`userMenuFooter-${H}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(Un,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),xu=I.forwardRef(({label:e,id:t,children:n,...r},i)=>g.jsxs("div",{className:"pkt-form-group",children:[g.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),g.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));xu.displayName="PktInput";const gr=I.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:m=!1,requiredText:v="Må fylles ut",hasError:y,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:F,className:S,hasFieldset:A=!1},_)=>{const[$,L]=I.useState(!1),M=()=>{L(!$)},P=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":m?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",W=d?h:m?v:"",J=k?"pkt-inputwrapper--disabled":"",Y=x?"pkt-inputwrapper--inline":"",O=y?"pkt-inputwrapper--error":"",N=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Z=A?"fieldset":N?"div":"label",fe=A?"legend":N?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",S,J,Y,O].join(" "),ref:_,children:[T?g.jsx(g.Fragment,{children:g.jsxs(Z,{htmlFor:A?void 0:e,"aria-describedby":N?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(fe,{id:`${e}-label`,className:`${A?" pkt-inputwrapper__legend":""}`,children:[t,W!==""&&g.jsx("span",{className:P(),children:W})]}),n&&g.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),N&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(Un,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:M,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),g.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!A&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,children:t})]}),g.jsx(g.Fragment,{children:F}),o&&g.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):g.jsxs(g.Fragment,{children:[!A&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":ee,id:`${e}-label`,children:t}),F]}),y&&b&&g.jsx("div",{children:g.jsx(Fs,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});gr.displayName="PktInputWrapper";const Gg=hn({tagName:"pkt-link",elementClass:Dn,react:I,displayName:"PktLink",events:{onClick:"click"}}),Su=I.forwardRef(({children:e,...t},n)=>g.jsx(Gg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Su.displayName="PktLink";const Eu=I.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const m=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return g.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${m}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&g.jsx(ce,{className:"pkt-link__icon",name:n}),g.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),g.jsx("div",{className:"pkt-linkcard__text",children:e})]})});Eu.displayName="PktLinkCard";const Fu=I.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 m=`pkt-loader pkt-loader--${n}`,[v,y]=I.useState(!(u>0));u>0&&setTimeout(()=>{y(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return g.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?g.jsx(g.Fragment,{children:v?g.jsxs("div",{className:m,"data-testid":"pkt-loader",ref:h,...d,children:[g.jsx(ce,{name:b(o),path:"https://punkt-cdn.oslo.kommune.no/12.11/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});Fu.displayName="PktLoader";const Yg=hn({tagName:"pkt-messagebox",elementClass:bn,react:I,displayName:"PktMessagebox",events:{onClose:"close"}}),Au=I.forwardRef(({children:e,...t},n)=>g.jsx(Yg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktMessagebox";const Kg=hn({tagName:"pkt-modal",elementClass:kn,react:I,displayName:"PktModal",events:{}}),$u=I.forwardRef(({children:e,...t},n)=>g.jsx(Kg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));$u.displayName="PktModal";/*!
|
|
591
|
+
*/(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})()})(ku);var Rg=ku.exports;const et=Ra(Rg),qg=I.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=I.useState(i),h=r?r.isOpen:c,m=b=>b??void 0,v=(b,k)=>{b.preventDefault(),r!==void 0&&r.onToggleClick(b,k),d(!h)},y=et(t,"pkt-accordion-item");return g.jsxs("details",{className:y,ref:u,id:o,open:m(r?r.isOpen:c),children:[g.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${o}`,onClick:b=>v(b,o),children:[e,g.jsx(ce,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),g.jsx("div",{id:`pkt-accordion-item-content-${o}`,role:"region",className:"pkt-accordion-item__content",children:n})]})}),Hg=hn({tagName:"pkt-alert",elementClass:Ht,react:I,displayName:"PktAlert",events:{onClose:"close"}}),Fs=I.forwardRef(({children:e,...t},n)=>g.jsx(Hg,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Fs.displayName="PktAlert";const wu=I.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 g.jsx("nav",{ref:o,className:u,"aria-label":"Gå tilbake et steg",children:g.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:c,...i,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),g.jsx("span",{className:"pkt-back-link__text",children:t||"Forsiden"})]})})});wu.displayName="PktBackLink";const Ug=I.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 g.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:c,children:[g.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:o.map((d,h)=>g.jsx("li",{className:"pkt-breadcrumbs__item",children:h===o.length-1?g.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})}):t==="router"?g.jsxs(Bn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ce,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]}):g.jsxs("a",{href:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(ce,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:d.text})]})},`breadcrumb-${h}`))}),t==="router"?g.jsxs(Bn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]}):g.jsxs("a",{href:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(ce,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),Un=I.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:m=!1,...v},y)=>{const b=[t,"pkt-btn",i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,c&&`pkt-btn--${c}`,h&&`pkt-btn--${h}`,m&&"pkt-btn--active",d&&`pkt-btn--${d}`].filter(Boolean).join(" ");return g.jsxs("button",{...v,className:b,type:u,ref:y,children:[m&&g.jsx(ce,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.11/animations/"}),c!=="label-only"&&g.jsx(ce,{className:"pkt-btn__icon",name:n}),g.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&g.jsx(ce,{className:"pkt-btn__icon",name:r})]})});Un.displayName="PktButton";const zg=hn({tagName:"pkt-card",elementClass:Qt,react:I,displayName:"PktCard",events:{}}),Cu=I.forwardRef(({children:e,...t},n)=>g.jsx(zg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Cu.displayName="PktCard";const ri=I.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,...m},v)=>{const y=[h,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:y,children:g.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"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]}),g.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,...m}),r&&i==="right"&&g.jsxs("label",{className:`pkt-input-check__input-label ${o?"pkt-sr-only":""}`,htmlFor:e,children:[r,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});ri.displayName="PktCheckbox";const _u=hn({tagName:"pkt-datepicker",elementClass:Be,react:I,displayName:"PktDatepicker",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Wg=({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 g.jsx("footer",{className:u,"data-mode":"dark",children:g.jsxs("div",{className:"pkt-footer__container",children:[g.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:e.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&g.jsx("li",{className:"pkt-footer__text",children:e.text}),(c=e.links)==null?void 0:c.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:t.title}),g.jsxs("ul",{className:"pkt-footer__list",children:[t.text&&g.jsx("li",{className:"pkt-footer__text",children:t.text}),(d=t.links)==null?void 0:d.map((h,m)=>g.jsx("li",{className:"pkt-footer__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),h.text]})},`links-${m}`))]})]}),g.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[g.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),g.jsxs("ul",{className:"pkt-footer__list",children:[g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:i,children:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer__list-item",children:g.jsxs("a",{className:"pkt-footer__link",href:o,children:[g.jsx(ce,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),n&&g.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[g.jsx("div",{className:"pkt-footer__social-languages",children:n.filter(h=>h.language).map((h,m)=>g.jsx("div",{className:"pkt-footer__social-language",children:g.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-${m}`))}),g.jsx("div",{className:"pkt-footer__social-icons",children:n.filter(h=>h.iconName).map((h,m)=>g.jsx(I.Fragment,{children:g.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:g.jsx(ce,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${m}`))})]})]})})},Vg=({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 g.jsx("footer",{className:i,"data-mode":"dark",children:g.jsx("div",{className:"pkt-footer-simple__container",children:g.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((o,u)=>g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.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:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},u)),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:t,children:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),g.jsx("li",{className:"pkt-footer-simple__list-item",children:g.jsxs("a",{className:"pkt-footer-simple__link",href:n,children:[g.jsx(ce,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Gg=I.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:m=!0,showMenuButton:v=!1,showLogOutButton:y=!1,openMenu:b,logOut:k,changeRepresentation:x,children:C,...T},F)=>{const S=I.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,_]=I.useState(!1),[$,L]=I.useState(0),[M,P]=I.useState(!1),V=I.useRef(null);I.useEffect(()=>(document&&(document.addEventListener("mouseup",Y),window.addEventListener("scroll",O)),()=>{document&&(document.removeEventListener("mouseup",Y),window.removeEventListener("scroll",O))}));const J=()=>{P(!M)},Y=j=>{V.current&&!V.current.contains(j.target)&&P(!1)},O=()=>{if(i){const j=window.pageYOffset||document.documentElement.scrollTop;if(j<0||Math.abs(j-$)<60)return;_(j>$),L(j)}};return g.jsxs("header",{...T,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:et(e,"pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":A}),ref:F,children:[g.jsxs("div",{className:"pkt-header__logo",children:[typeof t=="string"?g.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:t,children:g.jsx(ce,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.11/logos/"})}):g.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:g.jsx(ce,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.11/logos/"})}),g.jsx("span",{className:"pkt-header__logo-service",children:n})]}),g.jsx("nav",{className:"pkt-header__actions",children:g.jsxs("ul",{className:"pkt-header__actions-row",children:[v&&g.jsx("li",{children:g.jsx(Un,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:b,children:"Meny"})}),(o||c)&&g.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${M&&!A?"pkt-header--open-dropdown":""}`,ref:V,children:[g.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":M,onClick:J,children:[g.jsx(ce,{name:"user",className:"pkt-btn__icon"}),g.jsx("span",{className:"pkt-header__user-fullname",children:(c==null?void 0:c.name)||(o==null?void 0:o.name)}),g.jsx("span",{className:"pkt-header__user-shortname",children:(c==null?void 0:c.shortname)||(o==null?void 0:o.shortname)}),g.jsx(ce,{name:"chevron-thin-down",className:"pkt-btn--closed"}),g.jsx(ce,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),g.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[o&&g.jsxs("li",{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),g.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.lastLoggedIn&&g.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",g.jsx("time",{children:S})]})]}),u&&g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:u.map((j,H)=>g.jsx("li",{children:typeof j.target=="string"?g.jsxs("a",{href:j.target,className:"pkt-link",children:[j.iconName&&g.jsx(ce,{name:j.iconName,className:"pkt-link__icon"}),j.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:j.target,children:[j.iconName&&g.jsx(ce,{name:j.iconName,className:"pkt-link__icon"}),j.title]})},`userMenu-${H}`))})}),(c||m)&&g.jsxs("li",{children:[c&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),g.jsx("div",{className:"pkt-user-menu__name",children:c.name}),c.orgNumber&&g.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",c.orgNumber]})]}),g.jsx("ul",{className:"pkt-list mt-size-16",children:m&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:x,children:[g.jsx(ce,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),g.jsx("li",{children:g.jsx("ul",{className:"pkt-list",children:(d||!y)&&g.jsxs(g.Fragment,{children:[d==null?void 0:d.map((j,H)=>g.jsx("li",{children:typeof j.target=="string"?g.jsxs("a",{href:j.target,className:"pkt-link",children:[j.iconName&&g.jsx(ce,{name:j.iconName,className:"pkt-link__icon"}),j.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:j.target,children:[j.iconName&&g.jsx(ce,{name:j.iconName,className:"pkt-link__icon"}),j.title]})},`userOptions-${H}`)),!y&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[g.jsx(ce,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),h&&g.jsx("li",{className:"footer",children:g.jsx("ul",{className:"pkt-list-horizontal bordered",children:h.map((j,H)=>g.jsx("li",{children:typeof j.target=="string"?g.jsx("a",{href:j.target,className:"pkt-link",children:j.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:j.target,children:j.title})},`userMenuFooter-${H}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(Un,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),xu=I.forwardRef(({label:e,id:t,children:n,...r},i)=>g.jsxs("div",{className:"pkt-form-group",children:[g.jsx("label",{htmlFor:t,className:"pkt-form-label",children:e}),g.jsx("input",{className:"pkt-form-input",id:t,...r,ref:i}),n]}));xu.displayName="PktInput";const gr=I.forwardRef(({forId:e,label:t,helptext:n,helptextDropdown:r,helptextDropdownButton:i,counter:o,counterCurrent:u,counterMaxLength:c,optionalTag:d=!1,optionalText:h="Valgfritt",requiredTag:m=!1,requiredText:v="Må fylles ut",hasError:y,errorMessage:b,disabled:k,inline:x,ariaDescribedby:C,useWrapper:T=!0,children:F,className:S,hasFieldset:A=!1},_)=>{const[$,L]=I.useState(!1),M=()=>{L(!$)},P=()=>d?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":m?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",V=d?h:m?v:"",J=k?"pkt-inputwrapper--disabled":"",Y=x?"pkt-inputwrapper--inline":"",O=y?"pkt-inputwrapper--error":"",j=!!r&&r!=="",H=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',Z=A?"fieldset":j?"div":"label",fe=A?"legend":j?"h2":"span",te=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",S,J,Y,O].join(" "),ref:_,children:[T?g.jsx(g.Fragment,{children:g.jsxs(Z,{htmlFor:A?void 0:e,"aria-describedby":j?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(fe,{id:`${e}-label`,className:`${A?" pkt-inputwrapper__legend":""}`,children:[t,V!==""&&g.jsx("span",{className:P(),children:V})]}),n&&g.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),j&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(Un,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:M,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:H}})}),g.jsx("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:r}),!A&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":te,children:t})]}),g.jsx(g.Fragment,{children:F}),o&&g.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[u||0,c&&`/${c}`]})]})}):g.jsxs(g.Fragment,{children:[!A&&g.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":te,id:`${e}-label`,children:t}),F]}),y&&b&&g.jsx("div",{children:g.jsx(Fs,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});gr.displayName="PktInputWrapper";const Yg=hn({tagName:"pkt-link",elementClass:Dn,react:I,displayName:"PktLink",events:{onClick:"click"}}),Su=I.forwardRef(({children:e,...t},n)=>g.jsx(Yg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Su.displayName="PktLink";const Eu=I.forwardRef(({children:e,className:t,iconName:n,openInNewTab:r=!1,skin:i="normal",href:o="#",external:u=!1,title:c,...d},h)=>{const m=[t,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return g.jsxs("a",{...d,href:o,className:`pkt-linkcard pkt-link ${m}`,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,ref:h,children:[n&&g.jsx(ce,{className:"pkt-link__icon",name:n}),g.jsx("div",{className:`pkt-linkcard__title ${u?"pkt-link pkt-link--external":""}`,children:c}),g.jsx("div",{className:"pkt-linkcard__text",children:e})]})});Eu.displayName="PktLinkCard";const Fu=I.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 m=`pkt-loader pkt-loader--${n}`,[v,y]=I.useState(!(u>0));u>0&&setTimeout(()=>{y(!0)},u);const b=k=>k==="shapes"?"loader":k==="blue"?"spinner-blue":"spinner";return g.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${r?"inline":"box"} ${e||""}`,children:i?g.jsx(g.Fragment,{children:v?g.jsxs("div",{className:m,"data-testid":"pkt-loader",ref:h,...d,children:[g.jsx(ce,{name:b(o),path:"https://punkt-cdn.oslo.kommune.no/12.11/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});Fu.displayName="PktLoader";const Kg=hn({tagName:"pkt-messagebox",elementClass:bn,react:I,displayName:"PktMessagebox",events:{onClose:"close"}}),Au=I.forwardRef(({children:e,...t},n)=>g.jsx(Kg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktMessagebox";const Jg=hn({tagName:"pkt-modal",elementClass:kn,react:I,displayName:"PktModal",events:{}}),$u=I.forwardRef(({children:e,...t},n)=>g.jsx(Jg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));$u.displayName="PktModal";/*!
|
|
587
592
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
588
593
|
*
|
|
589
594
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
590
595
|
* Released under the MIT License.
|
|
591
|
-
*/function Tu(e){return Object.prototype.toString.call(e)==="[object Object]"}function
|
|
596
|
+
*/function Tu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xg(e){var t,n;return Tu(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Tu(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Bu={},ai=dn&&dn.__assign||function(){return ai=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},ai.apply(this,arguments)},Zg=dn&&dn.__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(Bu,"__esModule",{value:!0});var aa=[];function Qg(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function ev(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function tv(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function ii(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=ai(ai({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
|
|
592
597
|
`,newLineOrSpace:`
|
|
593
598
|
`,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 m=h.replace(new RegExp(o.newLine,"g"),"").replace(new RegExp(o.newLineOrSpace,"g")," ").replace(new RegExp(o.pad+"|"+o.indent,"g"),"");return m.length<=i.inlineCharacterLimit?m:h.replace(new RegExp(o.newLine+"|"+o.newLineOrSpace,"g"),`
|
|
594
|
-
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(aa.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||
|
|
595
|
-
`?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var
|
|
599
|
+
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(aa.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||ev(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";aa.push(e);var c="["+o.newLine+e.map(function(h,m){var v=e.length-1===m?o.newLine:","+o.newLineOrSpace,y=ii(h,i,n+i.indent);return i.transform&&(y=i.transform(e,m,y)),o.indent+y+v}).join("")+o.pad+"]";return aa.pop(),u(c)}if(Qg(e)){var d=Zg(Object.keys(e),tv(e));if(i.filter&&(d=d.filter(function(m){return i.filter&&i.filter(e,m)})),d.length===0)return"{}";aa.push(e);var c="{"+o.newLine+d.map(function(m,v){var y=d.length-1===v?o.newLine:","+o.newLineOrSpace,b=typeof m=="symbol",k=!b&&/^[a-z$_][a-z$_0-9]*$/i.test(m.toString()),x=b||k?m:ii(m,i),C=ii(e[m],i,n+i.indent);return i.transform&&(C=i.transform(e,m,C)),o.indent+String(x)+": "+C+y}).join("")+o.pad+"}";return aa.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
|
|
600
|
+
`?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var nv=Bu.prettyPrint=ii,As={exports:{}},be={};/**
|
|
596
601
|
* @license React
|
|
597
602
|
* react-is.production.min.js
|
|
598
603
|
*
|
|
@@ -600,7 +605,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
600
605
|
*
|
|
601
606
|
* This source code is licensed under the MIT license found in the
|
|
602
607
|
* LICENSE file in the root directory of this source tree.
|
|
603
|
-
*/var Nu;function
|
|
608
|
+
*/var Nu;function rv(){if(Nu)return be;Nu=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),k;k=Symbol.for("react.module.reference");function x(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case e:switch(C=C.type,C){case n:case i:case r:case h:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case u:case d:case y:case v:case o:return C;default:return T}}case t:return T}}}return be.ContextConsumer=u,be.ContextProvider=o,be.Element=e,be.ForwardRef=d,be.Fragment=n,be.Lazy=y,be.Memo=v,be.Portal=t,be.Profiler=i,be.StrictMode=r,be.Suspense=h,be.SuspenseList=m,be.isAsyncMode=function(){return!1},be.isConcurrentMode=function(){return!1},be.isContextConsumer=function(C){return x(C)===u},be.isContextProvider=function(C){return x(C)===o},be.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},be.isForwardRef=function(C){return x(C)===d},be.isFragment=function(C){return x(C)===n},be.isLazy=function(C){return x(C)===y},be.isMemo=function(C){return x(C)===v},be.isPortal=function(C){return x(C)===t},be.isProfiler=function(C){return x(C)===i},be.isStrictMode=function(C){return x(C)===r},be.isSuspense=function(C){return x(C)===h},be.isSuspenseList=function(C){return x(C)===m},be.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===r||C===h||C===m||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===o||C.$$typeof===u||C.$$typeof===d||C.$$typeof===k||C.getModuleId!==void 0)},be.typeOf=x,be}var ke={};/**
|
|
604
609
|
* @license React
|
|
605
610
|
* react-is.development.js
|
|
606
611
|
*
|
|
@@ -608,89 +613,89 @@ React keys must be passed directly to JSX without using spread:
|
|
|
608
613
|
*
|
|
609
614
|
* This source code is licensed under the MIT license found in the
|
|
610
615
|
* LICENSE file in the root directory of this source tree.
|
|
611
|
-
*/var ju;function
|
|
612
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ts(e,t){return e===null||ia(e)!=="object"||e instanceof Date||e instanceof RegExp||Sh.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return Ts(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=Ts(e[r],t)),n},{}))}function
|
|
613
|
-
`).map(function(n){return n.trim()}).join("")},Ru=
|
|
614
|
-
`.concat(en(n+1,r.tabStop),"$1"))},
|
|
616
|
+
*/var ju;function av(){return ju||(ju=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"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),y=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===m||X.$$typeof===v||X.$$typeof===b||X.$$typeof===S||X.getModuleId!==void 0))}function _(X){if(typeof X=="object"&&X!==null){var Yt=X.$$typeof;switch(Yt){case o:var xe=X.type;switch(xe){case c:case h:case d:case k:case x:return xe;default:var Ie=xe&&xe.$$typeof;switch(Ie){case y:case v:case b:case T:case C:case m:return Ie;default:return Yt}}case u:return Yt}}}var $=v,L=m,M=o,P=b,V=c,J=T,Y=C,O=u,j=h,H=d,Z=k,fe=x,te=!1,le=!1;function me(X){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(X){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ye(X){return _(X)===v}function st(X){return _(X)===m}function Le(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Fe(X){return _(X)===b}function Oe(X){return _(X)===c}function ue(X){return _(X)===T}function yt(X){return _(X)===C}function jt(X){return _(X)===u}function xt(X){return _(X)===h}function St(X){return _(X)===d}function Fn(X){return _(X)===k}function Et(X){return _(X)===x}ke.ContextConsumer=$,ke.ContextProvider=L,ke.Element=M,ke.ForwardRef=P,ke.Fragment=V,ke.Lazy=J,ke.Memo=Y,ke.Portal=O,ke.Profiler=j,ke.StrictMode=H,ke.Suspense=Z,ke.SuspenseList=fe,ke.isAsyncMode=me,ke.isConcurrentMode=ae,ke.isContextConsumer=ye,ke.isContextProvider=st,ke.isElement=Le,ke.isForwardRef=Fe,ke.isFragment=Oe,ke.isLazy=ue,ke.isMemo=yt,ke.isPortal=jt,ke.isProfiler=xt,ke.isStrictMode=St,ke.isSuspense=Fn,ke.isSuspenseList=Et,ke.isValidElementType=A,ke.typeOf=_}()),ke}process.env.NODE_ENV==="production"?As.exports=rv():As.exports=av();var Ut=As.exports,en=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function Pu(e){return iv(e)||sv(e)||ov(e)||lv()}function iv(e){if(Array.isArray(e))return $s(e)}function sv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ov(e,t){if(e){if(typeof e=="string")return $s(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 $s(e,t)}}function $s(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 lv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
617
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ts(e,t){return e===null||ia(e)!=="object"||e instanceof Date||e instanceof RegExp||Sh.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return Ts(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=Ts(e[r],t)),n},{}))}function uv(e){return Ts(e,new WeakSet)}var Lu=function(t){return{type:"string",value:t}},cv=function(t){return{type:"number",value:t}},pv=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},dv=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},hv=!!I.Fragment,Ou=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},fv=function e(t){switch(!0){case!!t.displayName:return t.displayName;case t.$$typeof===Ut.Memo:return e(t.type);case t.$$typeof===Ut.ForwardRef:return e(t.render);default:return Ou(t)}},mv=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:Ou(t.type);case Ut.isForwardRef(t):case Ut.isMemo(t):return fv(t.type);case Ut.isContextConsumer(t):return"".concat(t.type._context.displayName||"Context",".Consumer");case Ut.isContextProvider(t):return"".concat(t.type._context.displayName||"Context",".Provider");case Ut.isLazy(t):return"Lazy";case Ut.isProfiler(t):return"Profiler";case Ut.isStrictMode(t):return"StrictMode";case Ut.isSuspense(t):return"Suspense";default:return"UnknownElementType"}},Mu=function(t,n){return n!=="children"},gv=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},Iu=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},Bs=function e(t,n){var r=n.displayName,i=r===void 0?mv:r;if(typeof t=="string")return Lu(t);if(typeof t=="number")return cv(t);if(!I.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(ia(t),"`"));var o=i(t),u=Iu(t.props,Mu);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=Iu(t.type.defaultProps||{},Mu),h=I.Children.toArray(t.props.children).filter(gv).map(function(m){return e(m,n)});return hv&&t.type===I.Fragment?dv(c,h):pv(o,u,d,h)};function vv(){}var yv=function(t){return t.toString().split(`
|
|
618
|
+
`).map(function(n){return n.trim()}).join("")},Ru=yv,qu=function(e,t){var n=t.functionValue,r=n===void 0?Ru:n,i=t.showFunctions;return r(!i&&r===Ru?vv:e)},Dv=function(e,t,n,r){var i=uv(e),o=nv(i,{transform:function(c,d,h){var m=c[d];return m&&I.isValidElement(m)?si(Bs(m,r),!0,n,r):typeof m=="function"?qu(m,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,en(1,r.tabStop)).replace(/\n([^$])/g,`
|
|
619
|
+
`.concat(en(n+1,r.tabStop),"$1"))},bv=function(t){return t.replace(/"/g,""")},kv=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(bv(t),'"');if(ia(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(qu(t,i),"}"):I.isValidElement(t)?"{".concat(si(Bs(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):Xg(t)||Array.isArray(t)?"{".concat(Dv(t,n,r,i),"}"):"{".concat(String(t),"}")},wv=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,m=c.tabStop,v=kv(d,o,u,c),y=" ",b=`
|
|
615
620
|
`.concat(en(u+1,m)),k=v.includes(`
|
|
616
|
-
`);return h&&v==="{false}"&&!r?(y="",b=""):h&&v==="{true}"?(y+="".concat(e),b+="".concat(e)):(y+="".concat(e,"=").concat(v),b+="".concat(e,"=").concat(v)),{attributeFormattedInline:y,attributeFormattedMultiline:b,isMultilineAttribute:k}},
|
|
621
|
+
`);return h&&v==="{false}"&&!r?(y="",b=""):h&&v==="{true}"?(y+="".concat(e),b+="".concat(e)):(y+="".concat(e,"=").concat(v),b+="".concat(e,"=").concat(v)),{attributeFormattedInline:y,attributeFormattedMultiline:b,isMultilineAttribute:k}},Cv=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},_v=function(t){return["key","ref"].includes(t)},xv=function(e){return function(t){var n=t.includes("key"),r=t.includes("ref"),i=t.filter(function(u){return!_v(u)}),o=Pu(e?i.sort():i);return r&&o.unshift("ref"),n&&o.unshift("key"),o}};function Sv(e,t){return Array.isArray(t)?function(n){return t.indexOf(n)===-1}:function(n){return t(e[n],n)}}var Ev=function(t,n,r,i,o){var u=o.tabStop;return t.type==="string"?n.split(`
|
|
617
622
|
`).map(function(c,d){return d===0?c:"".concat(en(i,u)).concat(c)}).join(`
|
|
618
|
-
`):n},
|
|
619
|
-
`.concat(en(n,C))
|
|
620
|
-
`,T+=en(M,C)),T+=c.reduce(
|
|
623
|
+
`):n},Fv=function(t,n,r){return function(i){return Ev(i,si(i,t,n,r),t,n,r)}},Av=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},Hu=function(t,n,r,i,o){return o?en(r,i).length+n.length>o:t.length>1},$v=function(t,n,r,i,o,u,c){return(Hu(t,n,o,u,c)||r)&&!i},Uu=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,m=e.defaultProps,v=m===void 0?{}:m;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var y=r.filterProps,b=r.maxInlineAttributesLineLength,k=r.showDefaultProps,x=r.sortProps,C=r.tabStop,T="<".concat(u),F=T,S=T,A=!1,_=[],$=Sv(h,y);Object.keys(h).filter($).filter(Av(v,h)).forEach(function(P){return _.push(P)}),Object.keys(v).filter($).filter(function(){return k}).filter(function(P){return!_.includes(P)}).forEach(function(P){return _.push(P)});var L=xv(x)(_);if(L.forEach(function(P){var V=wv(P,Object.keys(h).includes(P),h[P],Object.keys(v).includes(P),v[P],t,n,r),J=V.attributeFormattedInline,Y=V.attributeFormattedMultiline,O=V.isMultilineAttribute;O&&(A=!0),F+=J,S+=Y}),S+=`
|
|
624
|
+
`.concat(en(n,C)),$v(L,F,A,t,n,C,b)?T=S:T=F,c&&c.length>0){var M=n+1;T+=">",t||(T+=`
|
|
625
|
+
`,T+=en(M,C)),T+=c.reduce(Cv,[]).map(Fv(t,M,r)).join(t?"":`
|
|
621
626
|
`.concat(en(M,C))),t||(T+=`
|
|
622
|
-
`,T+=en(M-1,C)),T+="</".concat(u,">")}else Hu(L,F,n,C,b)||(T+=" "),T+="/>";return T}
|
|
623
|
-
`,_(A.gutter,Z.replace(/\d/g," "))," ",me,_(A.marker,"^").repeat(ae)].join(""),
|
|
624
|
-
`);return T.message&&!
|
|
625
|
-
${Y}`),F?S.reset(Y):Y}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)}}),
|
|
626
|
-
`));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
|
|
627
|
+
`,T+=en(M-1,C)),T+="</".concat(u,">")}else Hu(L,F,n,C,b)||(T+=" "),T+="/>";return T},Tv="",zu="React.Fragment",Bv=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},Nv=function(t){var n=t.key;return!!n},jv=function(t){var n=t.childrens;return n.length===0},Pv=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?jv(e)||Nv(e)?d=zu:d=Tv:d=zu,Uu(Bv(d,o,u),t,n,r)},Lv=["<",">","{","}"],Ov=function(t){return Lv.some(function(n){return t.includes(n)})},Mv=function(t){return Ov(t)?"{`".concat(t,"`}"):t},Iv=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},si=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Iv(Mv(String(e.value)))):"";if(e.type==="ReactElement")return Uu(e,t,n,r);if(e.type==="ReactFragment")return Pv(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Rv=function(e,t){return si(e,!1,0,t)},qv=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,m=n.tabStop,v=m===void 0?2:m,y=n.useBooleanShorthandSyntax,b=y===void 0?!0:y,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 Rv(Bs(t,A),A)},Hv=Object.create,oi=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,zv=Object.getOwnPropertyNames,Wv=Object.getPrototypeOf,Vv=Object.prototype.hasOwnProperty,Wu=e=>{throw TypeError(e)},Gv=(e,t)=>()=>(e&&(t=e(e=0)),t),Ns=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),li=(e,t)=>{for(var n in t)oi(e,n,{get:t[n],enumerable:!0})},Vu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zv(t))!Vv.call(e,i)&&i!==n&&oi(e,i,{get:()=>t[i],enumerable:!(r=Uv(t,i))||r.enumerable});return e},ui=(e,t,n)=>(n=e!=null?Hv(Wv(e)):{},Vu(oi(n,"default",{value:e,enumerable:!0}),e)),Yv=e=>Vu(oi({},"__esModule",{value:!0}),e),Kv=(e,t,n)=>t.has(e)||Wu("Cannot "+n),Jv=(e,t,n)=>t.has(e)?Wu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sa=(e,t,n)=>(Kv(e,t,"access private method"),n),js=Ns((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),Gu={};li(Gu,{default:()=>Ku,shouldHighlight:()=>Yu});var Yu,Ku,Xv=Gv(()=>{Yu=()=>!1,Ku=String}),Zv=Ns((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}),Qv=Ns(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(Xv(),Yv(Gu)),n=i(Zv(),!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 m(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 y(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,L=F.column,M=S.line,P=S.column,V=Math.max($-(A+1),0),J=Math.min(C.length,M+_);$===-1&&(V=0),M===-1&&(J=C.length);let Y=M-$,O={};if(Y)for(let j=0;j<=Y;j++){let H=j+$;if(!L)O[H]=!0;else if(j===0){let Z=C[H-1].length;O[H]=[L,Z-L+1]}else if(j===Y)O[H]=[0,P];else{let Z=C[H-j].length;O[H]=[0,Z]}}else L===P?L?O[$]=[L,0]:O[$]=!0:O[$]=[L,P-L];return{start:V,end:J,markerLines:O}}function b(x,C,T={}){let F=(T.highlightCode||T.forceColor)&&(0,t.shouldHighlight)(T),S=d(T.forceColor),A=m(S),_=(O,j)=>F?O(j):j,$=x.split(v),{start:L,end:M,markerLines:P}=y(C,$,T),V=C.start&&typeof C.start.column=="number",J=String(M).length,Y=(F?(0,t.default)(x,T):x).split(v,M).slice(L,M).map((O,j)=>{let H=L+1+j,Z=` ${` ${H}`.slice(-J)} |`,fe=P[H],te=!P[H+1];if(fe){let le="";if(Array.isArray(fe)){let me=O.slice(0,Math.max(fe[0]-1,0)).replace(/[^\t]/g," "),ae=fe[1]||1;le=[`
|
|
628
|
+
`,_(A.gutter,Z.replace(/\d/g," "))," ",me,_(A.marker,"^").repeat(ae)].join(""),te&&T.message&&(le+=" "+_(A.message,T.message))}return[_(A.marker,">"),_(A.gutter,Z),O.length>0?` ${O}`:"",le].join("")}else return` ${_(A.gutter,Z)}${O.length>0?` ${O}`:""}`}).join(`
|
|
629
|
+
`);return T.message&&!V&&(Y=`${" ".repeat(J+1)}${T.message}
|
|
630
|
+
${Y}`),F?S.reset(Y):Y}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)}}),e2={};li(e2,{__debug:()=>n0,check:()=>e0,doc:()=>lp,format:()=>uo,formatWithCursor:()=>cp,getSupportInfo:()=>t0,util:()=>up,version:()=>$D});var t2=(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)},ci=t2;function wn(){}wn.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,m=c+d;r.maxEditLength&&(m=Math.min(m,r.maxEditLength));var v=(n=r.timeout)!==null&&n!==void 0?n:1/0,y=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 L=!1;if($){var M=$.oldPos-S;L=$&&0<=M&&M<c}var P=_&&_.oldPos+1<d;if(!L&&!P){b[S]=void 0;continue}if(!P||L&&_.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(n2(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>m||Date.now()>y)return i();T()||S()},0)})();else for(;h<=m&&Date.now()<=y;){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 n2(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,m=0;c<d;c++){var v=o[c];if(v.removed){if(v.value=e.join(r.slice(m,m+v.count)),m+=v.count,c&&o[c-1].added){var y=o[c-1];o[c-1]=o[c],o[c]=y}}else{if(!v.added&&i){var b=n.slice(h,h+v.count);b=b.map(function(x,C){var T=r[m+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||(m+=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 Ju=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Xu=/\S/,Zu=new wn;Zu.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Xu.test(e)&&!Xu.test(t)},Zu.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]&&Ju.test(t[n])&&Ju.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Qu=new wn;Qu.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
631
|
+
`));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 r2=new wn;r2.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var a2=new wn;a2.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function pi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pi=function(t){return typeof t}:pi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}var i2=Object.prototype.toString,oa=new wn;oa.useLongestToken=!0,oa.tokenize=Qu.tokenize,oa.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(Ps(e,null,null,i),i," ")},oa.equals=function(e,t){return wn.prototype.equals.call(oa,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Ps(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(i2.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]=Ps(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),pi(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]=Ps(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var di=new wn;di.tokenize=function(e){return e.slice()},di.join=di.removeEmpty=function(e){return e};function s2(e,t,n){return di.diff(e,t,n)}function o2(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
627
632
|
`?"crlf":"cr":"lf"}function Ls(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
628
633
|
`;default:return`
|
|
629
634
|
`}}function ec(e,t){let n;switch(t){case`
|
|
630
635
|
`:n=/\n/gu;break;case"\r":n=/\r/gu;break;case`\r
|
|
631
|
-
`: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
|
|
632
|
-
`)}var zn="string",tn="array",Wn="cursor",nn="indent",rn="align",an="trim",mt="group",zt="fill",
|
|
633
|
-
Expected it to be 'string' or 'object'.`;if(Vn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=
|
|
634
|
-
Expected it to be ${r}.`}var p2=class extends Error{constructor(t){super(c2(t));Or(this,"name","InvalidDocError");this.doc=t}},vr=p2,nc={};function d2(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===nc){n(i.pop());continue}n&&i.push(o,nc);let u=Vn(o);if(!u)throw new vr(o);if((t==null?void 0:t(o))!==!1)switch(u){case tn:case zt:{let c=u===tn?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case wt:i.push(o.flatContents,o.breakContents);break;case mt: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 rn:case nn:case sn:case Wt:case on:i.push(o.contents);break;case zn:case Wn:case an:case ln:case tt:case $t:break;default:throw new vr(o)}}}var Os=d2,h2=()=>{},f2=h2;function hi(e){return{type:nn,contents:e}}function yr(e,t){return{type:rn,contents:t,n:e}}function rc(e,t={}){return f2(t.expandedStates),{type:mt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function m2(e){return yr(Number.NEGATIVE_INFINITY,e)}function g2(e){return yr({type:"root"},e)}function v2(e){return yr(-1,e)}function y2(e,t){return rc(e[0],{...t,expandedStates:e})}function ac(e){return{type:zt,parts:e}}function D2(e,t="",n={}){return{type:wt,breakContents:e,flatContents:t,groupId:n.groupId}}function b2(e,t){return{type:sn,contents:e,groupId:t.groupId,negate:t.negate}}function Ms(e){return{type:on,contents:e}}var k2={type:ln},fi={type:$t},w2={type:an},Is={type:tt,hard:!0},ic={type:tt,hard:!0,literal:!0},sc={type:tt},C2={type:tt,soft:!0},Gn=[Is,fi],oc=[ic,fi],Rs={type:Wn};function lc(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function uc(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=hi(r);r=yr(t%n,r),r=yr(Number.NEGATIVE_INFINITY,r)}return r}function _2(e,t){return e?{type:Wt,label:e,contents:t}:t}function un(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...un(r));else{let i=un(r);i!==""&&n.push(i)}return n}return e.type===wt?{...e,breakContents:un(e.breakContents),flatContents:un(e.flatContents)}:e.type===mt?{...e,contents:un(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(un)}:e.type===zt?{type:"fill",parts:e.parts.map(un)}:e.contents?{...e,contents:un(e.contents)}:e}function x2(e){let t=Object.create(null),n=new Set;return r(un(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let m=o.map(r).filter(Boolean);return m.length===1?m[0]:`[${m.join(", ")}]`}if(o.type===tt){let m=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===$t;return o.literal?m?"literalline":"literallineWithoutBreakParent":o.hard?m?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===$t)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===tt&&c[u-1].hard?void 0:"breakParent";if(o.type===an)return"trim";if(o.type===nn)return"indent("+r(o.contents)+")";if(o.type===rn)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===wt)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===sn){let m=[];o.negate&&m.push("negate: true"),o.groupId&&m.push(`groupId: ${i(o.groupId)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===mt){let m=[];o.break&&o.break!=="propagated"&&m.push("shouldBreak: true"),o.id&&m.push(`id: ${i(o.id)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(y=>r(y)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===zt)return`fill([${o.parts.map(m=>r(m)).join(", ")}])`;if(o.type===on)return"lineSuffix("+r(o.contents)+")";if(o.type===ln)return"lineSuffixBoundary";if(o.type===Wt)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 S2=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ze=S2,E2=()=>/[#*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 F2(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function A2(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 $2=e=>!(F2(e)||A2(e)),T2=/[^\x20-\x7F]/u;function B2(e){if(!e)return 0;if(!T2.test(e))return e.length;e=e.replace(E2()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=$2(r)?1:2)}return t}var qs=B2;function mi(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(Vn(o)){case tn:return t(o.map(r));case zt:return t({...o,parts:o.parts.map(r)});case wt:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case mt:{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 rn:case nn:case sn:case Wt:case on:return t({...o,contents:r(o.contents)});case zn:case Wn:case an:case ln:case tt:case $t:return t(o);default:throw new vr(o)}}}function Hs(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 Os(e,o),r}function N2(e){if(e.type===mt&&e.break||e.type===tt&&e.hard||e.type===$t)return!0}function j2(e){return Hs(e,N2,!1)}function cc(e){if(e.length>0){let t=Ze(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function P2(e){let t=new Set,n=[];function r(o){if(o.type===$t&&cc(n),o.type===mt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===mt&&n.pop().break&&cc(n)}Os(e,r,i,!0)}function L2(e){return e.type===tt&&!e.hard?e.soft?"":" ":e.type===wt?e.flatContents:e}function O2(e){return mi(e,L2)}function pc(e){for(e=[...e];e.length>=2&&Ze(!1,e,-2).type===tt&&Ze(!1,e,-1).type===$t;)e.length-=2;if(e.length>0){let t=la(Ze(!1,e,-1));e[e.length-1]=t}return e}function la(e){switch(Vn(e)){case nn:case sn:case mt:case on:case Wt:{let t=la(e.contents);return{...e,contents:t}}case wt:return{...e,breakContents:la(e.breakContents),flatContents:la(e.flatContents)};case zt:return{...e,parts:pc(e.parts)};case tn:return pc(e);case zn:return e.replace(/[\n\r]*$/u,"");case rn:case Wn:case an:case ln:case tt:case $t:break;default:throw new vr(e)}return e}function dc(e){return la(I2(e))}function M2(e){switch(Vn(e)){case zt:if(e.parts.every(t=>t===""))return"";break;case mt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===mt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case rn:case nn:case sn:case on:if(!e.contents)return"";break;case wt:if(!e.flatContents&&!e.breakContents)return"";break;case tn:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ze(!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 zn:case Wn:case an:case ln:case tt:case Wt:case $t:break;default:throw new vr(e)}return e}function I2(e){return mi(e,t=>M2(t))}function R2(e,t=oc){return mi(e,n=>typeof n=="string"?lc(t,n.split(`
|
|
635
|
-
`)):n)}function
|
|
636
|
+
`: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 l2(e){return ci(!1,e,/\r\n?/gu,`
|
|
637
|
+
`)}var zn="string",tn="array",Wn="cursor",nn="indent",rn="align",an="trim",mt="group",zt="fill",Ct="if-break",sn="indent-if-break",on="line-suffix",ln="line-suffix-boundary",tt="line",Wt="label",Tt="break-parent",tc=new Set([Wn,nn,rn,an,mt,zt,Ct,sn,on,ln,tt,Wt,Tt]);function u2(e){if(typeof e=="string")return zn;if(Array.isArray(e))return tn;if(!e)return;let{type:t}=e;if(tc.has(t))return t}var Vn=u2,c2=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function p2(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
638
|
+
Expected it to be 'string' or 'object'.`;if(Vn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=c2([...tc].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
639
|
+
Expected it to be ${r}.`}var d2=class extends Error{constructor(t){super(p2(t));Or(this,"name","InvalidDocError");this.doc=t}},vr=d2,nc={};function h2(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===nc){n(i.pop());continue}n&&i.push(o,nc);let u=Vn(o);if(!u)throw new vr(o);if((t==null?void 0:t(o))!==!1)switch(u){case tn:case zt:{let c=u===tn?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case Ct:i.push(o.flatContents,o.breakContents);break;case mt: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 rn:case nn:case sn:case Wt:case on:i.push(o.contents);break;case zn:case Wn:case an:case ln:case tt:case Tt:break;default:throw new vr(o)}}}var Os=h2,f2=()=>{},m2=f2;function hi(e){return{type:nn,contents:e}}function yr(e,t){return{type:rn,contents:t,n:e}}function rc(e,t={}){return m2(t.expandedStates),{type:mt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function g2(e){return yr(Number.NEGATIVE_INFINITY,e)}function v2(e){return yr({type:"root"},e)}function y2(e){return yr(-1,e)}function D2(e,t){return rc(e[0],{...t,expandedStates:e})}function ac(e){return{type:zt,parts:e}}function b2(e,t="",n={}){return{type:Ct,breakContents:e,flatContents:t,groupId:n.groupId}}function k2(e,t){return{type:sn,contents:e,groupId:t.groupId,negate:t.negate}}function Ms(e){return{type:on,contents:e}}var w2={type:ln},fi={type:Tt},C2={type:an},Is={type:tt,hard:!0},ic={type:tt,hard:!0,literal:!0},sc={type:tt},_2={type:tt,soft:!0},Gn=[Is,fi],oc=[ic,fi],Rs={type:Wn};function lc(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function uc(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=hi(r);r=yr(t%n,r),r=yr(Number.NEGATIVE_INFINITY,r)}return r}function x2(e,t){return e?{type:Wt,label:e,contents:t}:t}function un(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...un(r));else{let i=un(r);i!==""&&n.push(i)}return n}return e.type===Ct?{...e,breakContents:un(e.breakContents),flatContents:un(e.flatContents)}:e.type===mt?{...e,contents:un(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(un)}:e.type===zt?{type:"fill",parts:e.parts.map(un)}:e.contents?{...e,contents:un(e.contents)}:e}function S2(e){let t=Object.create(null),n=new Set;return r(un(e));function r(o,u,c){var d,h;if(typeof o=="string")return JSON.stringify(o);if(Array.isArray(o)){let m=o.map(r).filter(Boolean);return m.length===1?m[0]:`[${m.join(", ")}]`}if(o.type===tt){let m=((d=c==null?void 0:c[u+1])==null?void 0:d.type)===Tt;return o.literal?m?"literalline":"literallineWithoutBreakParent":o.hard?m?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type===Tt)return((h=c==null?void 0:c[u-1])==null?void 0:h.type)===tt&&c[u-1].hard?void 0:"breakParent";if(o.type===an)return"trim";if(o.type===nn)return"indent("+r(o.contents)+")";if(o.type===rn)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===Ct)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===sn){let m=[];o.negate&&m.push("negate: true"),o.groupId&&m.push(`groupId: ${i(o.groupId)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return`indentIfBreak(${r(o.contents)}${v})`}if(o.type===mt){let m=[];o.break&&o.break!=="propagated"&&m.push("shouldBreak: true"),o.id&&m.push(`id: ${i(o.id)}`);let v=m.length>0?`, { ${m.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(y=>r(y)).join(",")}]${v})`:`group(${r(o.contents)}${v})`}if(o.type===zt)return`fill([${o.parts.map(m=>r(m)).join(", ")}])`;if(o.type===on)return"lineSuffix("+r(o.contents)+")";if(o.type===ln)return"lineSuffixBoundary";if(o.type===Wt)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 E2=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[n<0?t.length+n:n]:t.at(n)},Ze=E2,F2=()=>/[#*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 A2(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function $2(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 T2=e=>!(A2(e)||$2(e)),B2=/[^\x20-\x7F]/u;function N2(e){if(!e)return 0;if(!B2.test(e))return e.length;e=e.replace(F2()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=T2(r)?1:2)}return t}var qs=N2;function mi(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(Vn(o)){case tn:return t(o.map(r));case zt:return t({...o,parts:o.parts.map(r)});case Ct:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case mt:{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 rn:case nn:case sn:case Wt:case on:return t({...o,contents:r(o.contents)});case zn:case Wn:case an:case ln:case tt:case Tt:return t(o);default:throw new vr(o)}}}function Hs(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 Os(e,o),r}function j2(e){if(e.type===mt&&e.break||e.type===tt&&e.hard||e.type===Tt)return!0}function P2(e){return Hs(e,j2,!1)}function cc(e){if(e.length>0){let t=Ze(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function L2(e){let t=new Set,n=[];function r(o){if(o.type===Tt&&cc(n),o.type===mt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===mt&&n.pop().break&&cc(n)}Os(e,r,i,!0)}function O2(e){return e.type===tt&&!e.hard?e.soft?"":" ":e.type===Ct?e.flatContents:e}function M2(e){return mi(e,O2)}function pc(e){for(e=[...e];e.length>=2&&Ze(!1,e,-2).type===tt&&Ze(!1,e,-1).type===Tt;)e.length-=2;if(e.length>0){let t=la(Ze(!1,e,-1));e[e.length-1]=t}return e}function la(e){switch(Vn(e)){case nn:case sn:case mt:case on:case Wt:{let t=la(e.contents);return{...e,contents:t}}case Ct:return{...e,breakContents:la(e.breakContents),flatContents:la(e.flatContents)};case zt:return{...e,parts:pc(e.parts)};case tn:return pc(e);case zn:return e.replace(/[\n\r]*$/u,"");case rn:case Wn:case an:case ln:case tt:case Tt:break;default:throw new vr(e)}return e}function dc(e){return la(R2(e))}function I2(e){switch(Vn(e)){case zt:if(e.parts.every(t=>t===""))return"";break;case mt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===mt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case rn:case nn:case sn:case on:if(!e.contents)return"";break;case Ct:if(!e.flatContents&&!e.breakContents)return"";break;case tn:{let t=[];for(let n of e){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Ze(!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 zn:case Wn:case an:case ln:case tt:case Wt:case Tt:break;default:throw new vr(e)}return e}function R2(e){return mi(e,t=>I2(t))}function q2(e,t=oc){return mi(e,n=>typeof n=="string"?lc(t,n.split(`
|
|
640
|
+
`)):n)}function H2(e){if(e.type===tt)return!0}function U2(e){return Hs(e,H2,!1)}function hc(e,t){return e.type===Wt?{...e,contents:t(e.contents)}:t(e)}var gt=Symbol("MODE_BREAK"),Vt=Symbol("MODE_FLAT"),ua=Symbol("cursor");function fc(){return{value:"",length:0,queue:[]}}function z2(e,t){return Us(e,{type:"indent"},t)}function W2(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||fc():t<0?Us(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Us(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Us(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":m(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":m(),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 y(),{...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 m(){n.useTabs?v():y()}function v(){u>0&&d(u),b()}function y(){c>0&&h(c),b()}function b(){u=0,c=0}}function zs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===ua){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(ua);return t}function gi(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:m}=c.pop(),v=Vn(m);switch(v){case zn:d.push(m),n-=qs(m);break;case tn:case zt:{let y=v===tn?m:m.parts;for(let b=y.length-1;b>=0;b--)c.push({mode:h,doc:y[b]});break}case nn:case rn:case sn:case Wt:c.push({mode:h,doc:m.contents});break;case an:n+=zs(d);break;case mt:{if(o&&m.break)return!1;let y=m.break?gt:h,b=m.expandedStates&&y===gt?Ze(!1,m.expandedStates,-1):m.contents;c.push({mode:y,doc:b});break}case Ct:{let y=(m.groupId?i[m.groupId]||Vt:h)===gt?m.breakContents:m.flatContents;y&&c.push({mode:h,doc:y});break}case tt:if(h===gt||m.hard)return!0;m.soft||(d.push(" "),n--);break;case on:r=!0;break;case ln:if(r)return!1;break}}return!1}function vi(e,t){let n={},r=t.printWidth,i=Ls(t.endOfLine),o=0,u=[{ind:fc(),mode:gt,doc:e}],c=[],d=!1,h=[],m=0;for(L2(e);u.length>0;){let{ind:y,mode:b,doc:k}=u.pop();switch(Vn(k)){case zn:{let x=i!==`
|
|
636
641
|
`?ci(!1,k,`
|
|
637
|
-
`,i):k;c.push(x),u.length>0&&(o+=qs(x));break}case tn:for(let x=k.length-1;x>=0;x--)u.push({ind:y,mode:b,doc:k[x]});break;case Wn:if(m>=2)throw new Error("There are too many 'cursor' in doc.");c.push(ua),m++;break;case nn:u.push({ind:
|
|
642
|
+
`,i):k;c.push(x),u.length>0&&(o+=qs(x));break}case tn:for(let x=k.length-1;x>=0;x--)u.push({ind:y,mode:b,doc:k[x]});break;case Wn:if(m>=2)throw new Error("There are too many 'cursor' in doc.");c.push(ua),m++;break;case nn:u.push({ind:z2(y,t),mode:b,doc:k.contents});break;case rn:u.push({ind:W2(y,k.n,t),mode:b,doc:k.contents});break;case an:o-=zs(c);break;case mt:switch(b){case Vt:if(!d){u.push({ind:y,mode:k.break?gt:Vt,doc:k.contents});break}case gt:{d=!1;let x={ind:y,mode:Vt,doc:k.contents},C=r-o,T=h.length>0;if(!k.break&&gi(x,u,C,T,n))u.push(x);else if(k.expandedStates){let F=Ze(!1,k.expandedStates,-1);if(k.break){u.push({ind:y,mode:gt,doc:F});break}else for(let S=1;S<k.expandedStates.length+1;S++)if(S>=k.expandedStates.length){u.push({ind:y,mode:gt,doc:F});break}else{let A=k.expandedStates[S],_={ind:y,mode:Vt,doc:A};if(gi(_,u,C,T,n)){u.push(_);break}}}else u.push({ind:y,mode:gt,doc:k.contents});break}}k.id&&(n[k.id]=Ze(!1,u,-1).mode);break;case zt:{let x=r-o,{parts:C}=k;if(C.length===0)break;let[T,F]=C,S={ind:y,mode:Vt,doc:T},A={ind:y,mode:gt,doc:T},_=gi(S,[],x,h.length>0,n,!0);if(C.length===1){_?u.push(S):u.push(A);break}let $={ind:y,mode:Vt,doc:F},L={ind:y,mode:gt,doc:F};if(C.length===2){_?u.push($,S):u.push(L,A);break}C.splice(0,2);let M={ind:y,mode:b,doc:ac(C)},P=C[0];gi({ind:y,mode:Vt,doc:[T,F,P]},[],x,h.length>0,n,!0)?u.push(M,$,S):_?u.push(M,L,S):u.push(M,L,A);break}case Ct:case sn:{let x=k.groupId?n[k.groupId]:b;if(x===gt){let C=k.type===Ct?k.breakContents:k.negate?k.contents:hi(k.contents);C&&u.push({ind:y,mode:b,doc:C})}if(x===Vt){let C=k.type===Ct?k.flatContents:k.negate?hi(k.contents):k.contents;C&&u.push({ind:y,mode:b,doc:C})}break}case on:h.push({ind:y,mode:b,doc:k.contents});break;case ln:h.length>0&&u.push({ind:y,mode:b,doc:Is});break;case tt:switch(b){case Vt:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case gt:if(h.length>0){u.push({ind:y,mode:b,doc:k},...h.reverse()),h.length=0;break}k.literal?y.root?(c.push(i,y.root.value),o=y.root.length):(c.push(i),o=0):(o-=zs(c),c.push(i+y.value),o=y.length);break}break;case Wt:u.push({ind:y,mode:b,doc:k.contents});break;case Tt:break;default:throw new vr(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(ua);if(v!==-1){let y=c.indexOf(ua,v+1),b=c.slice(0,v).join(""),k=c.slice(v+1,y).join(""),x=c.slice(y+1).join("");return{formatted:b+k+x,cursorNodeStart:b.length,cursorNodeText:k}}return{formatted:c.join("")}}function V2(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 Ws=V2,Yn,Vs,yi,G2=class{constructor(e){Jv(this,Yn),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return Ze(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:Ze(!1,this.stack,-2)}get node(){return Ze(!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=Ze(!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[...sa(this,Yn,yi).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?Ze(!1,e,-2):null}getValue(){return Ze(!1,this.stack,-1)}getNode(e=0){let t=sa(this,Yn,Vs).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=Ze(!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=sa(this,Yn,Vs).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=Ze(!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 sa(this,Yn,yi).call(this))if(e(t))return t}hasAncestor(e){for(let t of sa(this,Yn,yi).call(this))if(e(t))return!0;return!1}};Yn=new WeakSet,Vs=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},yi=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 Y2=G2,mc=new Proxy(()=>{},{get:()=>mc}),Gs=mc;function K2(e){return e!==null&&typeof e=="object"}var J2=K2;function*gc(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>J2(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*X2(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of gc(i,t))yield o,n.push(o)}}function ca(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 Z2=ca(/\s/u),Cn=ca(" "),vc=ca(",; "),yc=ca(/[^\n\r]/u);function Q2(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===`
|
|
638
643
|
`)return t-2;if(i===`
|
|
639
644
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
640
645
|
`)return t+2;if(i===`
|
|
641
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Kn=
|
|
646
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Kn=Q2;function ey(e,t,n={}){let r=Cn(e,n.backwards?t-1:t,n),i=Kn(e,r,n);return r!==i}var _n=ey;function ty(e){return Array.isArray(e)&&e.length>0}var ny=ty,Dc=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),ry=e=>Object.keys(e).filter(t=>!Dc.has(t));function ay(e){return e?t=>e(t,Dc):ry}var Di=ay;function iy(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 Ys(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=iy(e)}function Dr(e,t){t.leading=!0,t.trailing=!1,Ys(e,t)}function Jn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Ys(e,t)}function br(e,t){t.leading=!1,t.trailing=!0,Ys(e,t)}var Ks=new WeakMap;function Js(e,t){if(Ks.has(e))return Ks.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))??[...gc(e,{getVisitorKeys:Di(i)})]).flatMap(d=>r(d)?[d]:Js(d,t));return c.sort((d,h)=>o(d)-o(h)||u(d)-u(h)),Ks.set(e,c),c}function bc(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),d=Js(e,n),h,m,v=0,y=d.length;for(;v<y;){let b=v+y>>1,k=d[b],x=i(k),C=o(k);if(x<=u&&c<=C)return bc(k,t,n,k);if(C<=u){h=k,v=b+1;continue}if(c<=x){m=k,y=b;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:b}=r,k=Zs(b,t,n);h&&Zs(b,h,n)!==k&&(h=null),m&&Zs(b,m,n)!==k&&(m=null)}return{enclosingNode:r,precedingNode:h,followingNode:m}}var Xs=()=>!1;function sy(e,t){let{comments:n}=e;if(delete e.comments,!ny(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:c={}},originalText:d}=t,{ownLine:h=Xs,endOfLine:m=Xs,remaining:v=Xs}=c,y=n.map((b,k)=>({...bc(e,b,t),comment:b,text:d,options:t,ast:e,isLastComment:n.length-1===k}));for(let[b,k]of y.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){Dr(_,x);continue}if(o(x)-o(_)>=0){br(_,x);continue}}let L;if(u?L=[k]:(x.enclosingNode=T,x.precedingNode=C,x.followingNode=F,L=[x,S,A,_,$]),oy(S,A,y,b))x.placement="ownLine",h(...L)||(F?Dr(F,x):C?br(C,x):Jn(T||_,x));else if(ly(S,A,y,b))x.placement="endOfLine",m(...L)||(C?br(C,x):F?Dr(F,x):Jn(T||_,x));else if(x.placement="remaining",!v(...L))if(C&&F){let M=r.length;M>0&&r[M-1].followingNode!==F&&wc(r,A),r.push(k)}else C?br(C,x):F?Dr(F,x):Jn(T||_,x)}if(wc(r,t),!u)for(let b of n)delete b.precedingNode,delete b.enclosingNode,delete b.followingNode}var kc=e=>!/[\S\n\u2028\u2029]/u.test(e);function oy(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:m,precedingNode:v}=n[h];if(v!==o||!kc(e.slice(c(m),d)))break;d=u(m)}return _n(e,d,{backwards:!0})}function ly(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:m,followingNode:v}=n[h];if(v!==o||!kc(e.slice(d,u(m))))break;d=c(m)}return _n(e,d)}function wc(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:m,followingNode:v}=e[d-1];Gs.strictEqual(m,o),Gs.strictEqual(v,u);let y=t.originalText.slice(t.locEnd(h),c);if(((r=(n=t.printer).isGap)==null?void 0:r.call(n,y,t))??/^[\s(]*$/u.test(y))c=t.locStart(h);else break}for(let[h,{comment:m}]of e.entries())h<d?br(o,m):Dr(u,m);for(let h of[o,u])h.comments&&h.comments.length>1&&h.comments.sort((m,v)=>t.locStart(m)-t.locStart(v));e.length=0}function Zs(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 uy(e,t){let n=t-1;n=Cn(e,n,{backwards:!0}),n=Kn(e,n,{backwards:!0}),n=Cn(e,n,{backwards:!0});let r=Kn(e,n,{backwards:!0});return n!==r}var Qs=uy;function Cc(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function cy(e,t){var n;let r=e.node,i=[Cc(e,t)],{printer:o,originalText:u,locStart:c,locEnd:d}=t;if((n=o.isBlockComment)!=null&&n.call(o,r)){let m=_n(u,d(r))?_n(u,c(r),{backwards:!0})?Gn:sc:" ";i.push(m)}else i.push(Gn);let h=Kn(u,Cn(u,d(r)));return h!==!1&&_n(u,h)&&i.push(Gn),i}function py(e,t,n){var r;let i=e.node,o=Cc(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)||_n(c,d(i),{backwards:!0})){let m=Qs(c,d(i));return{doc:Ms([Gn,m?Gn:"",o]),isBlock:h,hasLineSuffix:!0}}return!h||n!=null&&n.hasLineSuffix?{doc:[Ms([" ",o]),fi],isBlock:h,hasLineSuffix:!0}:{doc:[" ",o],isBlock:h,hasLineSuffix:!1}}function dy(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(cy(e,t)):h&&(u=py(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function hy(e,t,n){let{leading:r,trailing:i}=dy(e,n);return!r&&!i?t:hc(t,o=>[r,o,i])}function fy(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 _c=class extends Error{constructor(){super(...arguments);Or(this,"name","ConfigError")}},xc=class extends Error{constructor(){super(...arguments);Or(this,"name","UndefinedParserError")}},my={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
|
|
642
647
|
(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).
|
|
643
648
|
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.
|
|
644
649
|
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
|
|
645
|
-
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 Sc({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of
|
|
650
|
+
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 Sc({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of vy(Object.assign({},...e.map(({options:o})=>o),my)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...gy(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*gy(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 vy(e){let t=[];for(let[n,r]of Object.entries(e)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Ze(!1,i.default,-1).value),t.push(i)}return t}var yy=e=>String(e).split(/[/\\]/u).pop();function Ec(e,t){if(!t)return;let n=yy(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 Dy(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 by(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=Dy(n,t.language)??Ec(n,t.physicalFile)??Ec(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var ky=by,kr={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=>kr.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${kr.key(n)}: ${kr.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>kr.value({[e]:t})},Fc=ui(js()),wy=(e,t,{descriptor:n})=>{let r=[`${Fc.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${Fc.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},wr=ui(js()),Ac=Symbol.for("vnopts.VALUE_NOT_EXIST"),bi=Symbol.for("vnopts.VALUE_UNCHANGED"),$c=" ".repeat(2),Cy=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(Tc(e,t,r,n.descriptor)),i&&o.push([Tc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>Bc(u,n.loggerPrintWidth))).join(`
|
|
646
651
|
`)),Nc(o,n.loggerPrintWidth)};function Tc(e,t,n,r){return[`Invalid ${wr.default.red(r.key(e))} value.`,`Expected ${wr.default.blue(n)},`,`but received ${t===Ac?wr.default.gray("nothing"):wr.default.red(r.value(t))}.`].join(" ")}function Bc({text:e,list:t},n){let r=[];return e&&r.push(`- ${wr.default.blue(e)}`),t&&r.push([`- ${wr.default.blue(t.title)}:`].concat(t.values.map(i=>Bc(i,n-$c.length).replace(/^|\n/g,`$&${$c}`))).join(`
|
|
647
652
|
`)),Nc(r,n)}function Nc(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,o]=e.map(u=>u.split(`
|
|
648
|
-
`,1)[0].length);return i>t&&i>o?r:n}var jc=ui(js()),eo=[],Pc=[];function Cy(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,m=0,v=0;for(;m<r;)Pc[m]=e.charCodeAt(o+m),eo[m]=++m;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,m=0;m<r;m++)h=u===Pc[m]?d:d+1,d=eo[m],c=eo[m]=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 ${jc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>Cy(e,c)<3);u&&o.push(`Did you mean ${jc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},_y=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function xy(e,t){let n=new e(t),r=Object.create(n);for(let i of _y)i in t&&(r[i]=Sy(t[i],n,xn.prototype[i].length));return r}var xn=class{static create(e){return xy(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 bi}};function Sy(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var Ey=class extends xn{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}},Fy=class extends xn{expected(){return"anything"}validate(){return!0}},Ay=class extends xn{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(Oc))}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(Oc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Oc({from:e,to:t}){return{from:[e],to:t}}var $y=class extends xn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Ty(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 By(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 Ny(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function jy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Py(e){return e===Math.floor(e)}function Ly(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 Oy(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Mc(e){return e===void 0?{}:e}function Ic(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return My((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(Ic)}}:{text:t}}function Rc(e,t){return e===!0?!0:e===!1?{value:t}:e}function qc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Hc(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 to(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>Hc(n,t)):[Hc(e,t)]}function Uc(e,t){let n=to(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 My(e,t){if(!e)throw new Error(t)}var Iy=class extends xn{constructor(e){super(e),this._choices=By(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(Ly).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}},Ry=class extends xn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},qy=class extends Ry{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Py(e)}},zc=class extends xn{expected(){return"a string"}validate(e){return typeof e=="string"}},Hy=kr,Uy=Lc,zy=wy,Wy=ky,Vy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Hy,unknown:o=Uy,invalid:u=zy,deprecated:c=Wy,missing:d=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>bi}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:Ty(e,"name"),normalizeDefaultResult:Mc,normalizeExpectedResult:Ic,normalizeDeprecatedResult:qc,normalizeForwardResult:to,normalizeRedirectResult:Uc,normalizeValidateResult:Rc},this._unknownHandler=o,this._invalidHandler=Oy(u),this._deprecatedHandler=c,this._identifyMissing=(y,b)=>!(y in b)||d(y,b),this._identifyRequired=h,this._preprocess=m,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Ny()}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=Mc(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!==bi&&(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:y})=>{n.push(typeof y=="string"?{[y]:v}:{[y.key]:y.value})},h=({value:v,redirectTo:y})=>{let b=qc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof y=="string"?{key:y,value:k}:y;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};to(u.forward(c,this._utils),c).forEach(d);let m=Uc(u.redirect(c,this._utils),c);if(m.redirect.forEach(d),"remain"in m){let v=m.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:y}of m.redirect)h({value:v,redirectTo:y})}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,Ac,this._utils)}_partitionOptionKeys(e){let[t,n]=jy(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=Rc(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!==bi){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})}}}}},no;function Gy(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=kr;let c=i?Array.isArray(i)?(y,b)=>i.includes(y)?{[y]:b}:void 0:(y,b)=>({[y]:b}):(y,b,k)=>{let{_:x,...C}=k.schemas;return Lc(y,b,{...k,schemas:C})},d=Yy(t,{isCLI:r,FlagSchema:o}),h=new Vy(d,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&no&&(h._hasDeprecationWarned=no);let v=h.normalize(e);return m&&(no=h._hasDeprecationWarned),v}function Yy(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Fy.create({name:"_"}));for(let i of e)r.push(Ky(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(Ey.create({name:i.alias,sourceName:i.name}));return r}function Ky(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=qy,t&&(o.preprocess=Number);break;case"string":u=zc;break;case"choice":u=Iy,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=$y;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=zc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,m)=>e.exception(d)||h.validate(d,m):o.validate=(d,h,m)=>d===void 0||h.validate(d,m),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,m,v)=>m.preprocess(d(Array.isArray(h)?Ze(!1,h,-1):h),v)}return e.array?Ay.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Jy=Gy,Xy=(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}}},Wc=Xy;function Vc(e,t){if(!t)throw new Error("parserName is required.");let n=Wc(!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 _c(r)}function Zy(e,t){if(!t)throw new Error("astFormat is required.");let n=Wc(!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 _c(r)}function Gc({plugins:e,parser:t}){let n=Vc(e,t);return Yc(n,t)}function Yc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function Qy(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 eD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=by(r,{physicalFile:r.filepath}),!r.parser)throw new xc(`No parser could be inferred for file "${r.filepath}".`)}else throw new xc("No parser and no file path given, couldn't infer a parser.");let i=Sc({plugins:e.plugins,showDeprecated:!0}).options,o={...Kc,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},u=Vc(r.plugins,r.parser),c=await Yc(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:Zy(r.plugins,c.astFormat),h=await Qy(d,c.astFormat);r.printer=h;let m=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,y])=>y!==void 0)):{},v={...o,...m};for(let[y,b]of Object.entries(v))(r[y]===null||r[y]===void 0)&&(r[y]=b);return r.parser==="json"&&(r.trailingComma="none"),Jy(r,i,{passThrough:Object.keys(Kc),...t})}var Cr=eD,tD=ui(Zv());async function nD(e,t){let n=await Gc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){rD(o,e)}return{text:r,ast:i}}function rD(e,t){let{loc:n}=e;if(n){let r=(0,tD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
649
|
-
`+r,e.codeFrame=r,e}throw e}var pa=
|
|
653
|
+
`,1)[0].length);return i>t&&i>o?r:n}var jc=ui(js()),eo=[],Pc=[];function _y(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,m=0,v=0;for(;m<r;)Pc[m]=e.charCodeAt(o+m),eo[m]=++m;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,m=0;m<r;m++)h=u===Pc[m]?d:d+1,d=eo[m],c=eo[m]=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 ${jc.default.yellow(n.pair({key:e,value:t}))}.`],u=Object.keys(i).sort().find(c=>_y(e,c)<3);u&&o.push(`Did you mean ${jc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},xy=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Sy(e,t){let n=new e(t),r=Object.create(n);for(let i of xy)i in t&&(r[i]=Ey(t[i],n,xn.prototype[i].length));return r}var xn=class{static create(e){return Sy(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 bi}};function Ey(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var Fy=class extends xn{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}},Ay=class extends xn{expected(){return"anything"}validate(){return!0}},$y=class extends xn{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(Oc))}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(Oc))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Oc({from:e,to:t}){return{from:[e],to:t}}var Ty=class extends xn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function By(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 Ny(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 jy(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function Py(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Ly(e){return e===Math.floor(e)}function Oy(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 My(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Mc(e){return e===void 0?{}:e}function Ic(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return Iy((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(Ic)}}:{text:t}}function Rc(e,t){return e===!0?!0:e===!1?{value:t}:e}function qc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function Hc(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 to(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>Hc(n,t)):[Hc(e,t)]}function Uc(e,t){let n=to(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 Iy(e,t){if(!e)throw new Error(t)}var Ry=class extends xn{constructor(e){super(e),this._choices=Ny(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(Oy).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}},qy=class extends xn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Hy=class extends qy{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Ly(e)}},zc=class extends xn{expected(){return"a string"}validate(e){return typeof e=="string"}},Uy=kr,zy=Lc,Wy=Cy,Vy=wy,Gy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Uy,unknown:o=zy,invalid:u=Wy,deprecated:c=Vy,missing:d=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>bi}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:By(e,"name"),normalizeDefaultResult:Mc,normalizeExpectedResult:Ic,normalizeDeprecatedResult:qc,normalizeForwardResult:to,normalizeRedirectResult:Uc,normalizeValidateResult:Rc},this._unknownHandler=o,this._invalidHandler=My(u),this._deprecatedHandler=c,this._identifyMissing=(y,b)=>!(y in b)||d(y,b),this._identifyRequired=h,this._preprocess=m,this._postprocess=v,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=jy()}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=Mc(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!==bi&&(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:y})=>{n.push(typeof y=="string"?{[y]:v}:{[y.key]:y.value})},h=({value:v,redirectTo:y})=>{let b=qc(u.deprecated(v,this._utils),c,!0);if(b!==!1)if(b===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,y,this._utils));else for(let{value:k}of b){let x={key:o,value:k};if(!this._hasDeprecationWarned(x)){let C=typeof y=="string"?{key:y,value:k}:y;this._utils.logger.warn(this._deprecatedHandler(x,C,this._utils))}}};to(u.forward(c,this._utils),c).forEach(d);let m=Uc(u.redirect(c,this._utils),c);if(m.redirect.forEach(d),"remain"in m){let v=m.remain;t[o]=o in t?u.overlap(t[o],v,this._utils):v,h({value:v})}for(let{from:v,to:y}of m.redirect)h({value:v,redirectTo:y})}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,Ac,this._utils)}_partitionOptionKeys(e){let[t,n]=Py(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=Rc(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!==bi){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})}}}}},no;function Yy(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=kr;let c=i?Array.isArray(i)?(y,b)=>i.includes(y)?{[y]:b}:void 0:(y,b)=>({[y]:b}):(y,b,k)=>{let{_:x,...C}=k.schemas;return Lc(y,b,{...k,schemas:C})},d=Ky(t,{isCLI:r,FlagSchema:o}),h=new Gy(d,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&no&&(h._hasDeprecationWarned=no);let v=h.normalize(e);return m&&(no=h._hasDeprecationWarned),v}function Ky(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Ay.create({name:"_"}));for(let i of e)r.push(Jy(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(Fy.create({name:i.alias,sourceName:i.name}));return r}function Jy(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=Hy,t&&(o.preprocess=Number);break;case"string":u=zc;break;case"choice":u=Ry,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=Ty;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=zc;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(d,h,m)=>e.exception(d)||h.validate(d,m):o.validate=(d,h,m)=>d===void 0||h.validate(d,m),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,m,v)=>m.preprocess(d(Array.isArray(h)?Ze(!1,h,-1):h),v)}return e.array?$y.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Xy=Yy,Zy=(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}}},Wc=Zy;function Vc(e,t){if(!t)throw new Error("parserName is required.");let n=Wc(!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 _c(r)}function Qy(e,t){if(!t)throw new Error("astFormat is required.");let n=Wc(!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 _c(r)}function Gc({plugins:e,parser:t}){let n=Vc(e,t);return Yc(n,t)}function Yc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function eD(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 tD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=ky(r,{physicalFile:r.filepath}),!r.parser)throw new xc(`No parser could be inferred for file "${r.filepath}".`)}else throw new xc("No parser and no file path given, couldn't infer a parser.");let i=Sc({plugins:e.plugins,showDeprecated:!0}).options,o={...Kc,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},u=Vc(r.plugins,r.parser),c=await Yc(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:Qy(r.plugins,c.astFormat),h=await eD(d,c.astFormat);r.printer=h;let m=d.defaultOptions?Object.fromEntries(Object.entries(d.defaultOptions).filter(([,y])=>y!==void 0)):{},v={...o,...m};for(let[y,b]of Object.entries(v))(r[y]===null||r[y]===void 0)&&(r[y]=b);return r.parser==="json"&&(r.trailingComma="none"),Xy(r,i,{passThrough:Object.keys(Kc),...t})}var Cr=tD,nD=ui(Qv());async function rD(e,t){let n=await Gc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){aD(o,e)}return{text:r,ast:i}}function aD(e,t){let{loc:n}=e;if(n){let r=(0,nD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
654
|
+
`+r,e.codeFrame=r,e}throw e}var pa=rD;async function iD(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=Di(u.getVisitorKeys??d),m=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of m)try{e.stack=C;let T=await k(y,t,e,n);T&&i.set(x,T)}catch(T){if(globalThis.PRETTIER_DEBUG)throw T}e.stack=v;function y(k,x){return sD(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"){m.push({print:x,node:k,pathStack:[...e.stack]});return}i.set(k,x)}}}async function sD(e,t,n,r){let i=await Cr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await pa(e,i),u=await r(o,i);return dc(u)}function oD(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 m of r)i(m)>=d&&o(m)<=h&&u.add(m);return n.slice(d,h)}var lD=oD;async function ki(e,t){({ast:e}=await Xc(e,t));let n=new Map,r=new Y2(e),i=new Map;await iD(r,u,t,ki,i);let o=await Jc(r,t,u,void 0,i);return fy(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 m=h&&typeof h=="object"&&d===void 0;if(m&&n.has(h))return n.get(h);let v=Jc(r,t,u,d,i);return m&&n.set(h,v),v}}function Jc(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=lD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=hc(d,h=>[Rs,h,Rs])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=hy(e,d,t)),d}async function Xc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,sy(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function uD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=Di(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of X2(e,{getVisitorKeys:o,filter:u}))c=d;return c}var cD=uD;function pD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=Di(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(y=>u(y,d)).filter(Boolean);let h={},m=new Set(i(c));for(let y in c)!Object.prototype.hasOwnProperty.call(c,y)||o.has(y)||(m.has(y)?h[y]=u(c[y],c):h[y]=c[y]);let v=n(c,h,d);if(v!==null)return v??h}}var dD=pD,hD=(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}},fD=hD,mD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function gD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>Qc.has(i.type)&&r.has(i))}function Zc(e){let t=fD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function vD(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 Zc(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of Zc(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function ro(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 m of Js(e,n)){let v=ro(m,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function yD(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 Qc=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),DD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function ep(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 yD(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return Qc.has(t.type);case"graphql":return DD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function bD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Gs.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=ro(n,r,t,(b,k)=>ep(t,b,k),[],"rangeStart"),m=d?h:ro(n,i,t,b=>ep(t,b),[],"rangeEnd");if(!h||!m)return{rangeStart:0,rangeEnd:0};let v,y;if(mD(t)){let b=gD(h,m);v=b,y=b}else({startNode:v,endNode:y}=vD(h,m,t));return{rangeStart:Math.min(o(v),o(y)),rangeEnd:Math.max(u(v),u(y))}}var tp="\uFEFF",np=Symbol("cursor");async function rp(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await pa(e,t);t.cursorOffset>=0&&(t.cursorNode=cD(r,t));let o=await ki(r,t);n>0&&(o=uc([Gn,o],n,t.tabWidth));let u=vi(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+Ls(t.endOfLine)}let c=t[Symbol.for("comments")];if(t.cursorOffset>=0){let d,h,m,v,y;if(t.cursorNode&&u.cursorNodeText?(d=t.locStart(t.cursorNode),h=i.slice(d,t.locEnd(t.cursorNode)),m=t.cursorOffset-d,v=u.cursorNodeStart,y=u.cursorNodeText):(d=0,h=i,m=t.cursorOffset,v=0,y=u.formatted),h===y)return{formatted:u.formatted,cursorOffset:v+m,comments:c};let b=h.split("");b.splice(m,0,np);let k=y.split(""),x=s2(b,k),C=v;for(let T of x)if(T.removed){if(T.value.includes(np))break}else C+=T.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function kD(e,t){let{ast:n,text:r}=await pa(e,t),{rangeStart:i,rangeEnd:o}=bD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
|
|
650
655
|
`,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=Ws(d,t.tabWidth),m=await rp(u,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"},h),v=m.formatted.trimEnd(),{cursorOffset:y}=t;y>o?y+=v.length-u.length:m.cursorOffset>=0&&(y=m.cursorOffset+i);let b=r.slice(0,i)+v+r.slice(o);if(t.endOfLine!=="lf"){let k=Ls(t.endOfLine);y>=0&&k===`\r
|
|
651
656
|
`&&(y+=ec(b.slice(0,y),`
|
|
652
657
|
`)),b=ci(!1,b,`
|
|
653
|
-
`,k)}return{formatted:b,cursorOffset:y,comments:m.comments}}function ao(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function ap(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=ao(e,n,-1),r=ao(e,r,0),i=ao(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function ip(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=ap(e,t),u=e.charAt(0)===tp;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=
|
|
654
|
-
`);n-=c(n),r-=c(r),i-=c(i),e=
|
|
655
|
-
`);return n===-1?0:Ws(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var PD
|
|
656
|
-
`)return!0;return!1}var HD
|
|
657
|
-
Expected it to be 'string' or 'object'.`;if(
|
|
658
|
-
Expected it to be ${p}.`}var ae=class extends Error{constructor(s){super(me(s));Or(this,"name","InvalidDocError");this.doc=s}},ye=ae,st=()=>{},
|
|
659
|
-
`)):l)}var Kt="'",Ti='"';function Bi(a,s){let l=s===!0||s===Kt?Kt:Ti,p=l===Kt?Ti:Kt,f=0,D=0;for(let E of a)E===l?f++:E===p&&D++;return f>D?p:l}var Ni=Bi;function ba(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var
|
|
660
|
-
`,"\f","\r"," "],Ho=new Ro(qo),
|
|
661
|
-
`)){if(l.length===0)continue;let p=
|
|
658
|
+
`,k)}return{formatted:b,cursorOffset:y,comments:m.comments}}function ao(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function ap(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=ao(e,n,-1),r=ao(e,r,0),i=ao(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function ip(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=ap(e,t),u=e.charAt(0)===tp;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=o2(e)),e.includes("\r")){let c=d=>ec(e.slice(0,Math.max(d,0)),`\r
|
|
659
|
+
`);n-=c(n),r-=c(r),i-=c(i),e=l2(e)}return{hasBOM:u,text:e,options:ap(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function sp(e,t){let n=await Gc(t);return!n.hasPragma||n.hasPragma(e)}async function op(e,t){let{hasBOM:n,text:r,options:i}=ip(e,await Cr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await sp(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await kD(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await sp(r,i)&&(r=i.printer.insertPragma(r)),o=await rp(r,i)),n&&(o.formatted=tp+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function wD(e,t,n){let{text:r,options:i}=ip(e,await Cr(t)),o=await pa(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Xc(o.ast,i)),n.massage&&(o.ast=dD(o.ast,i))),o}async function CD(e,t){t=await Cr(t);let n=await ki(e,t);return vi(n,t)}async function _D(e,t){let n=S2(e),{formatted:r}=await op(n,{...t,parser:"__js_expression"});return r}async function xD(e,t){t=await Cr(t);let{ast:n}=await pa(e,t);return ki(n,t)}async function SD(e,t){return vi(e,await Cr(t))}var lp={};li(lp,{builders:()=>ED,printer:()=>FD,utils:()=>AD});var ED={join:lc,line:sc,softline:_2,hardline:Gn,literalline:oc,group:rc,conditionalGroup:D2,fill:ac,lineSuffix:Ms,lineSuffixBoundary:w2,cursor:Rs,breakParent:fi,ifBreak:b2,trim:C2,indent:hi,indentIfBreak:k2,align:yr,addAlignmentToDoc:uc,markAsRoot:v2,dedentToRoot:g2,dedent:y2,hardlineWithoutBreakParent:Is,literallineWithoutBreakParent:ic,label:x2,concat:e=>e},FD={printDocToString:vi},AD={willBreak:P2,traverseDoc:Os,findInDoc:Hs,mapDoc:mi,removeLines:M2,stripTrailingHardline:dc,replaceEndOfLine:q2,canBreak:U2},$D="3.3.3",up={};li(up,{addDanglingComment:()=>Jn,addLeadingComment:()=>Dr,addTrailingComment:()=>br,getAlignmentSize:()=>Ws,getIndentSize:()=>LD,getMaxContinuousCount:()=>ID,getNextNonSpaceNonCommentCharacter:()=>qD,getNextNonSpaceNonCommentCharacterIndex:()=>KD,getStringWidth:()=>qs,hasNewline:()=>_n,hasNewlineInRange:()=>UD,hasSpaces:()=>WD,isNextLineEmpty:()=>QD,isNextLineEmptyAfterIndex:()=>lo,isPreviousLineEmpty:()=>XD,makeString:()=>GD,skip:()=>ca,skipEverythingButNewLine:()=>yc,skipInlineComment:()=>io,skipNewline:()=>Kn,skipSpaces:()=>Cn,skipToLineEnd:()=>vc,skipTrailingComment:()=>so,skipWhitespace:()=>Z2});function TD(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 io=TD;function BD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?yc(e,t):t}var so=BD;function ND(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Cn(e,r),r=io(e,r),r=so(e,r),r=Kn(e,r);return r}var oo=ND;function jD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=vc(e,r),r=io(e,r),r=Cn(e,r);return r=so(e,r),r=Kn(e,r),r!==!1&&_n(e,r)}var lo=jD;function PD(e,t){let n=e.lastIndexOf(`
|
|
660
|
+
`);return n===-1?0:Ws(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var LD=PD;function OD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function MD(e,t){let n=e.match(new RegExp(`(${OD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var ID=MD;function RD(e,t){let n=oo(e,t);return n===!1?"":e.charAt(n)}var qD=RD;function HD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
661
|
+
`)return!0;return!1}var UD=HD;function zD(e,t,n={}){return Cn(e,n.backwards?t-1:t,n)!==t}var WD=zD;function VD(e,t,n){let r=t==='"'?"'":'"',i=ci(!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 GD=VD;function YD(e,t,n){return oo(e,n(t))}function KD(e,t){return arguments.length===2||typeof t=="number"?oo(e,t):YD(...arguments)}function JD(e,t,n){return Qs(e,n(t))}function XD(e,t){return arguments.length===2||typeof t=="number"?Qs(e,t):JD(...arguments)}function ZD(e,t,n){return lo(e,n(t))}function QD(e,t){return arguments.length===2||typeof t=="number"?lo(e,t):ZD(...arguments)}function Xn(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 cp=Xn(op);async function uo(e,t){let{formatted:n}=await cp(e,{...t,cursorOffset:-1});return n}async function e0(e,t){return await uo(e,t)===e}var t0=Xn(Sc,0),n0={parse:Xn(wD),formatAST:Xn(CD),formatDoc:Xn(_D),printToDoc:Xn(xD),printDocToString:Xn(SD)},pp={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),m=(a,s,l)=>s.has(a)||u("Cannot "+l),v=(a,s,l)=>(m(a,s,"read from private field"),s.get(a)),y=(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)=>(m(a,s,"write to private field"),s.set(a,l),l),k={};c(k,{languages:()=>tC,options:()=>rC,parsers:()=>Rd,printers:()=>u_});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",L="group",M="fill",P="if-break",V="indent-if-break",J="line-suffix",Y="line-suffix-boundary",O="line",j="label",H="break-parent",Z=new Set([S,A,_,$,L,M,P,V,J,Y,O,j,H]);function fe(a){if(typeof a=="string")return T;if(Array.isArray(a))return F;if(!a)return;let{type:s}=a;if(Z.has(s))return s}var te=fe,le=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}',
|
|
662
|
+
Expected it to be 'string' or 'object'.`;if(te(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let p=le([...Z].map(f=>`'${f}'`));return`Unexpected doc.type '${a.type}'.
|
|
663
|
+
Expected it to be ${p}.`}var ae=class extends Error{constructor(s){super(me(s));Or(this,"name","InvalidDocError");this.doc=s}},ye=ae,st=()=>{},Le=st;function Fe(a){return{type:A,contents:a}}function Oe(a,s){return{type:_,contents:s,n:a}}function ue(a,s={}){return Le(s.expandedStates),{type:L,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function yt(a){return Oe(Number.NEGATIVE_INFINITY,a)}function jt(a){return Oe({type:"root"},a)}function xt(a){return{type:M,parts:a}}function St(a,s="",l={}){return{type:P,breakContents:a,flatContents:s,groupId:l.groupId}}function Fn(a,s){return{type:V,contents:a,groupId:s.groupId,negate:s.negate}}var Et={type:H},X={type:O,hard:!0},Yt={type:O,hard:!0,literal:!0},xe={type:O},Ie={type:O,soft:!0},Ee=[X,Et],Ar=[Yt,Et];function An(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var Oo=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},cn=Oo;function Da(a,s){if(typeof a=="string")return s(a);let l=new Map;return p(a);function p(D){if(l.has(D))return l.get(D);let E=f(D);return l.set(D,E),E}function f(D){switch(te(D)){case F:return s(D.map(p));case M:return s({...D,parts:D.parts.map(p)});case P:return s({...D,breakContents:p(D.breakContents),flatContents:p(D.flatContents)});case L:{let{expandedStates:E,contents:B}=D;return E?(E=E.map(p),B=E[0]):B=p(B),s({...D,contents:B,expandedStates:E})}case _:case A:case V:case j:case J:return s({...D,contents:p(D.contents)});case T:case S:case $:case Y:case O:case H:return s(D);default:throw new ye(D)}}}function Mo(a){switch(te(a)){case M:if(a.parts.every(s=>s===""))return"";break;case L:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===L&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case _:case A:case V:case J:if(!a.contents)return"";break;case P: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 cn(!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 Y:case O:case j:case H:break;default:throw new ye(a)}return a}function $i(a){return Da(a,s=>Mo(s))}function Dt(a,s=Ar){return Da(a,l=>typeof l=="string"?An(s,l.split(`
|
|
664
|
+
`)):l)}var Kt="'",Ti='"';function Bi(a,s){let l=s===!0||s===Kt?Kt:Ti,p=l===Kt?Ti:Kt,f=0,D=0;for(let E of a)E===l?f++:E===p&&D++;return f>D?p:l}var Ni=Bi;function ba(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ft,Io=class{constructor(a){y(this,Ft),b(this,Ft,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,Ft),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,Ft),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,Ft).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,Ft).has(cn(!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=`[${ba([...v(this,Ft)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,Ft);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,Ft);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,Ft);return Array.prototype.every.call(a,l=>s.has(l))}};Ft=new WeakMap;var Ro=Io,qo=[" ",`
|
|
665
|
+
`,"\f","\r"," "],Ho=new Ro(qo),Pt=Ho,Uo=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);Or(this,"name","UnexpectedNodeError");this.node=s}},ka=Uo;function ji(a){return(a==null?void 0:a.type)==="front-matter"}var Rt=ji,wa=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ca=new Set(["if","else if","for","switch","case"]);function _a(a,s){var l;if(a.type==="text"||a.type==="comment"||Rt(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)Ca.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}_a.ignoredProperties=wa;var zo=_a;async function Pi(a,s){if(a.language==="yaml"){let l=a.value.trim(),p=l?await s(l,{parser:"yaml"}):"";return jt([a.startDelimiter,a.explicitLanguage,Ee,p,p?Ee:"",a.endDelimiter])}}var Wo=Pi;function tr(a,s=!0){return[Fe([Ie,a]),s?Ie:""]}function pn(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 At(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(E,B)=>{f=p(E,B)});let D=await s(a,l,s);return f?ue(D):tr(D)}function Vo(a,s,l,p){let{node:f}=l,D=p.originalText.slice(f.sourceSpan.start.offset,f.sourceSpan.end.offset);return/^\s*$/u.test(D)?"":At(D,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},pn)}var Li=Vo,Oi=a=>String(a).split(/[/\\]/u).pop();function Mi(a,s){if(!s)return;let l=Oi(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 Go(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 Yo(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=Go(l,s.language)??Mi(l,s.physicalFile)??Mi(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var $r=Yo,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",ne={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function De(a){return a.type==="element"&&!a.hasExplicitNamespace&&!["html","svg"].includes(a.namespace)}var ve=De,he=a=>C(!1,a,/^[\t\f\r ]*\n/gu,""),ie=a=>he(Pt.trimEnd(a)),rt=a=>{let s=a,l=Pt.getLeadingWhitespace(s);l&&(s=s.slice(l.length));let p=Pt.getTrailingWhitespace(s);return p&&(s=s.slice(0,-p.length)),{leadingWhitespace:l,trailingWhitespace:p,text:s}};function Ne(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||Tr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||Zo(a,s)&&!at(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:bt(a.prev)}function bt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function Ge(a){return a.type==="text"||a.type==="comment"}function at(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 ot(a){return a.children&&!at(a)}function xa(a){return at(a)||a.type==="interpolation"||Ii(a)}function Ii(a){return Dd(a).startsWith("pre")}function Ko(a,s){var l,p;let f=D();if(f&&!a.prev&&(p=(l=a.parent)==null?void 0:l.tagDefinition)!=null&&p.ignoreFirstLf)return a.type==="interpolation";return f;function D(){return Rt(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:Tr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||Tr(a)&&a.parent||at(a.parent)||qi(a.parent,s)||!y1(a.parent.cssDisplay))||a.prev&&!k1(a.prev.cssDisplay))}}function c1(a,s){return Rt(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:Tr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||Tr(a)&&a.parent||at(a.parent)||qi(a.parent,s)||!D1(a.parent.cssDisplay))||a.next&&!b1(a.next.cssDisplay))}function p1(a){return w1(a.cssDisplay)&&!at(a)}function Ri(a){return Rt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function d1(a){return dd(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>f1(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&fd(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||md(a.lastChild))}function dd(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 Jo(a){return gd(a)||a.prev&&h1(a.prev)||hd(a)}function h1(a){return gd(a)||a.type==="element"&&a.fullName==="br"||hd(a)}function hd(a){return fd(a)&&md(a)}function fd(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 md(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 gd(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function Xo(a){return a.lastChild?Xo(a.lastChild):a}function f1(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function vd(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 m1(a,s){let{name:l,attrMap:p}=a;if(l!=="script"||Object.prototype.hasOwnProperty.call(p,"src"))return;let{type:f,lang:D}=a.attrMap;return!D&&!f?"babel":$r(s,{language:D})??vd(f)}function g1(a,s){if(!Zo(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return $r(s,{language:f})??vd(p)}function v1(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?$r(s,{language:l}):"css"}function yd(a,s){return m1(a,s)??v1(a,s)??g1(a,s)}function Sa(a){return a==="block"||a==="list-item"||a.startsWith("table")}function y1(a){return!Sa(a)&&a!=="inline-block"}function D1(a){return!Sa(a)&&a!=="inline-block"}function b1(a){return!Sa(a)}function k1(a){return!Sa(a)}function w1(a){return!Sa(a)&&a!=="inline-block"}function Tr(a){return Dd(a).startsWith("pre")}function C1(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function _1(a,s){var l;if(Br(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(C1(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 Dd(a){return a.type==="element"&&(!a.namespace||ve(a))&&ne[a.name]||U}function x1(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
|
|
666
|
+
`)){if(l.length===0)continue;let p=Pt.getLeadingWhitespaceCount(l);if(p===0)return 0;l.length!==p&&p<s&&(s=p)}return s===Number.POSITIVE_INFINITY?0:s}function bd(a,s=x1(a)){return s===0?a:a.split(`
|
|
662
667
|
`).map(l=>l.slice(s)).join(`
|
|
663
|
-
`)}function kd(a){return C(!1,C(!1,a,"'","'"),""",'"')}function $n(a){return kd(a.value)}var
|
|
664
|
-
`||a==="\f"||a==="\r"||a===" "}var L1=/^[ \t\n\r\u000c]+/,O1=/^[, \t\n\r\u000c]+/,M1=/^[^ \t\n\r\u000c]+/,I1=/[,]+$/,Sd=/^\d+$/,R1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function q1(a){let s=a.length,l,p,f,D,E,B=0,q;function K(pe){let Ae,Ye=pe.exec(a.substring(B));if(Ye)return[Ae]=Ye,B+=Ae.length,Ae}let z=[];for(;;){if(K(O1),B>=s){if(z.length===0)throw new Error("Must contain one or more image candidate strings.");return z}q=B,l=K(M1),p=[],l.slice(-1)===","?(l=l.replace(I1,""),ge()):we()}function we(){for(K(L1),f="",D="in descriptor";;){if(E=a.charAt(B),D==="in descriptor")if(xd(E))f&&(p.push(f),f="",D="after descriptor");else if(E===","){B+=1,f&&p.push(f),ge();return}else if(E==="(")f+=E,D="in parens";else if(E===""){f&&p.push(f),ge();return}else f+=E;else if(D==="in parens")if(E===")")f+=E,D="in descriptor";else if(E===""){p.push(f),ge();return}else f+=E;else if(D==="after descriptor"&&!xd(E))if(E===""){ge();return}else D="in descriptor",B-=1;B+=1}}function ge(){let pe=!1,Ae,Ye,it,lt,G={},de,Ke,We,dt,Lr;for(lt=0;lt<p.length;lt++)de=p[lt],Ke=de[de.length-1],We=de.substring(0,de.length-1),dt=parseInt(We,10),Lr=parseFloat(We),Sd.test(We)&&Ke==="w"?((Ae||Ye)&&(pe=!0),dt===0?pe=!0:Ae=dt):R1.test(We)&&Ke==="x"?((Ae||Ye||it)&&(pe=!0),Lr<0?pe=!0:Ye=Lr):Sd.test(We)&&Ke==="h"?((it||Ye)&&(pe=!0),dt===0?pe=!0:it=dt):pe=!0;if(!pe)G.source={value:l,startOffset:q},Ae&&(G.width={value:Ae}),Ye&&(G.density={value:Ye}),it&&(G.height={value:it}),z.push(G);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${de}".`)}}var H1=q1;function U1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>W1($n(a.node))}var Ed={width:"w",height:"h",density:"x"},z1=Object.keys(Ed);function W1(a){let s=H1(a),l=z1.filter(z=>s.some(we=>Object.prototype.hasOwnProperty.call(we,z)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Ed[p],D=s.map(z=>z.source.value),E=Math.max(...D.map(z=>z.length)),B=s.map(z=>z[p]?String(z[p].value):""),q=B.map(z=>{let we=z.indexOf(".");return we===-1?z.length:we}),K=Math.max(...q);return tr(An([",",xe],D.map((z,we)=>{let ge=[z],pe=B[we];if(pe){let Ae=E-z.length+1,Ye=K-q[we],it=" ".repeat(Ae+Ye);ge.push(xt(it," "),pe+f)}return ge})))}var V1=U1;function G1(a,s){let{node:l}=a,p=$n(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>tr(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var el=new WeakMap;function Y1(a,s){let{root:l}=a;return el.has(l)||el.set(l,l.children.some(p=>Cd(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),el.get(l)}var tl=Y1;function K1(a,s,l){let{node:p}=l,f=$n(p);return Ft(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},pn)}function J1(a,s,{parseWithTs:l}){return Ft(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function X1(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 Z1(a,s,l,p){let f=$n(l.node),{left:D,operator:E,right:B}=Q1(f),q=tl(l,p);return[ue(await Ft(`function _(${D}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await Ft(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function Q1(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let D={};if(D.for=f[3].trim(),!D.for)return;let E=C(!1,f[1].trim(),p,""),B=E.match(l);B?(D.alias=E.replace(l,""),D.iterator1=B[1].trim(),B[2]&&(D.iterator2=B[2].trim())):D.alias=E;let q=[D.alias,D.iterator1,D.iterator2];if(!q.some((K,z)=>!K&&(z===0||q.slice(z+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:D.for}}function ew(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Z1;if(p==="generic"&&Cd(l.parent,s))return K1;let f=$n(l),D=tl(a,s);if(S1(l)||E1(l,s))return E=>J1(f,E,{parseWithTs:D});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>tw(f,E,{parseWithTs:D});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>nw(f,E,{parseWithTs:D});if(p.startsWith("v-"))return E=>Fd(f,E,{parseWithTs:D})}function tw(a,s,{parseWithTs:l}){return X1(a)?Fd(a,s,{parseWithTs:l}):Ft(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},pn)}function nw(a,s,{parseWithTs:l}){return Ft(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},pn)}function Fd(a,s,{parseWithTs:l}){return Ft(a,s,{parser:l?"__ts_expression":"__js_expression"},pn)}var rw=ew;function aw(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[V1,G1,P1,rw,N1]){let f=p(a,s);if(f)return iw(f)}}}function iw(a){return async(s,l,p,f)=>{let D=await a(s,l,p,f);if(D)return D=Da(D,E=>typeof E=="string"?C(!1,E,'"',"""):E),[p.node.rawName,'="',ue(D),'"']}}var sw=aw,Ad=new Proxy(()=>{},{get:()=>Ad}),$d=Ad;function ow(a){return Array.isArray(a)&&a.length>0}var nl=ow;function Hi(a){return a.sourceSpan.start.offset}function Ui(a){return a.sourceSpan.end.offset}function rl(a,s){return[a.isSelfClosing?"":lw(a,s),Ea(a,s)]}function lw(a,s){return a.lastChild&&$a(a.lastChild)?"":[uw(a,s),al(a,s)]}function Ea(a,s){return(a.next?rr(a.next):Aa(a.parent))?"":[Fa(a,s),nr(a,s)]}function uw(a,s){return Aa(a)?Fa(a.lastChild,s):""}function nr(a,s){return $a(a)?al(a.parent,s):zi(a)?sl(a.next):""}function al(a,s){if($d(!a.isSelfClosing),Td(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function Fa(a,s){if(Td(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 Td(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function rr(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!Ge(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function Aa(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!Ge(Xo(a.lastChild))&&!Tr(a)}function $a(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&Ge(Xo(a))}function zi(a){return a.next&&!Ge(a.next)&&Ge(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function cw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Wi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function pw(a,s,l){var p;let{node:f}=a;if(!nl(f.attrs))return f.isSelfClosing?" ":"";let D=((p=f.prev)==null?void 0:p.type)==="comment"&&cw(f.prev.value),E=typeof D=="boolean"?()=>D:Array.isArray(D)?we=>D.includes(we.rawName):()=>!1,B=a.map(({node:we})=>E(we)?Dt(s.originalText.slice(Hi(we),Ui(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,K=s.singleAttributePerLine&&f.attrs.length>1&&!Br(f,s)?Ee:xe,z=[Fe([q?" ":xe,An(K,B)])];return f.firstChild&&Wi(f.firstChild)||f.isSelfClosing&&Aa(f.parent)||q?z.push(f.isSelfClosing?" ":""):z.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Oe),z}function dw(a){return a.firstChild&&Wi(a.firstChild)?"":ol(a)}function il(a,s,l){let{node:p}=a;return[Ta(p,s),pw(a,s,l),p.isSelfClosing?"":dw(p)]}function Ta(a,s){return a.prev&&zi(a.prev)?"":[ar(a,s),sl(a)]}function ar(a,s){return Wi(a)?ol(a.parent):rr(a)?Fa(a.prev,s):""}function sl(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 ol(a){switch($d(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function hw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Wi(a.firstChild)&&(l-=ol(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&$a(a.lastChild)?p+=al(a,s).length:Aa(a)&&(p-=Fa(a.lastChild,s).length),s.originalText.slice(l,p)}var Bd=hw,fw=new Set(["if","else if","for","switch","case"]);function mw(a,s){let{node:l}=a;switch(l.type){case"element":if(at(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&Zo(l,s)){let p=yd(l,s);return p?async(f,D)=>{let E=Bd(l,s),B=/^\s*$/u.test(E),q="";return B||(q=await f(ie(E),{parser:p,__embeddedInHtml:!0}),B=q===""),[ar(l,s),ue(il(a,s,D)),B?"":Ee,q,B?"":Ee,rl(l,s),nr(l,s)]}:void 0}break;case"text":if(at(l.parent)){let p=yd(l.parent,s);if(p)return async f=>{let D=p==="markdown"?bd(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[St,ar(l,s),await f(D,E),nr(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=tl(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([xe,await p(l.value,f)]),l.parent.next&&rr(l.parent.next)?" ":xe]};break;case"attribute":return sw(a,s);case"front-matter":return p=>Wo(l,p);case"angularControlFlowBlockParameters":return fw.has(a.parent.name)?Li:void 0;case"angularLetDeclarationInitializer":return p=>Ft(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var gw=mw,Ba=null;function Na(a){if(Ba!==null&&typeof Ba.property){let s=Ba;return Ba=Na.prototype=null,s}return Ba=Na.prototype=a??Object.create(null),new Na}var vw=10;for(let a=0;a<=vw;a++)Na();function yw(a){return Na(a)}function Dw(a,s="type"){yw(a);function l(p){let f=p[s],D=a[f];if(!Array.isArray(D))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return D}return l}var bw=Dw,kw={"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"]},ww=kw,Cw=bw(ww),_w=Cw;function xw(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Sw(a){return`<!-- @format -->
|
|
668
|
+
`)}function kd(a){return C(!1,C(!1,a,"'","'"),""",'"')}function $n(a){return kd(a.value)}var S1=new Set(["template","style","script"]);function qi(a,s){return Br(a,s)&&!S1.has(a.fullName)}function Br(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function Zo(a,s){return Br(a,s)&&(qi(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function E1(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function F1(a,s){let l=a.parent;if(!Br(l,s))return!1;let p=l.fullName,f=a.fullName;return p==="script"&&f==="setup"||p==="style"&&f==="vars"}function wd(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?Dt(s):Dt(bd(ie(s)),Ee):An(xe,Pt.split(s))}function Cd(a,s){return Br(a,s)&&a.name==="script"}var _d=/\{\{(.+?)\}\}/su;async function A1(a,s){let l=[];for(let[p,f]of a.split(_d).entries())if(p%2===0)l.push(Dt(f));else try{l.push(ue(["{{",Fe([xe,await At(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),xe,"}}"]))}catch{l.push("{{",Dt(f),"}}")}return l}function Qo({parser:a}){return(s,l,p)=>At($n(p.node),s,{parser:a},pn)}var $1=Qo({parser:"__ng_action"}),T1=Qo({parser:"__ng_binding"}),B1=Qo({parser:"__ng_directive"});function N1(a,s){if(s.parser!=="angular")return;let{node:l}=a,p=l.fullName;if(p.startsWith("(")&&p.endsWith(")")||p.startsWith("on-"))return $1;if(p.startsWith("[")&&p.endsWith("]")||/^bind(?:on)?-/u.test(p)||/^ng-(?:if|show|hide|class|style)$/u.test(p))return T1;if(p.startsWith("*"))return B1;let f=$n(l);if(/^i18n(?:-.+)?$/u.test(p))return()=>tr(xt(wd(l,f.trim())),!f.includes("@@"));if(_d.test(f))return D=>A1(f,D)}var j1=N1;function P1(a,s){let{node:l}=a,p=$n(l);if(l.fullName==="class"&&!s.parentParser&&!p.includes("{{"))return()=>p.trim().split(/\s+/u).join(" ")}var L1=P1;function xd(a){return a===" "||a===`
|
|
669
|
+
`||a==="\f"||a==="\r"||a===" "}var O1=/^[ \t\n\r\u000c]+/,M1=/^[, \t\n\r\u000c]+/,I1=/^[^ \t\n\r\u000c]+/,R1=/[,]+$/,Sd=/^\d+$/,q1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function H1(a){let s=a.length,l,p,f,D,E,B=0,q;function K(pe){let Ae,Ye=pe.exec(a.substring(B));if(Ye)return[Ae]=Ye,B+=Ae.length,Ae}let z=[];for(;;){if(K(M1),B>=s){if(z.length===0)throw new Error("Must contain one or more image candidate strings.");return z}q=B,l=K(I1),p=[],l.slice(-1)===","?(l=l.replace(R1,""),ge()):we()}function we(){for(K(O1),f="",D="in descriptor";;){if(E=a.charAt(B),D==="in descriptor")if(xd(E))f&&(p.push(f),f="",D="after descriptor");else if(E===","){B+=1,f&&p.push(f),ge();return}else if(E==="(")f+=E,D="in parens";else if(E===""){f&&p.push(f),ge();return}else f+=E;else if(D==="in parens")if(E===")")f+=E,D="in descriptor";else if(E===""){p.push(f),ge();return}else f+=E;else if(D==="after descriptor"&&!xd(E))if(E===""){ge();return}else D="in descriptor",B-=1;B+=1}}function ge(){let pe=!1,Ae,Ye,it,lt,G={},de,Ke,Ve,dt,Lr;for(lt=0;lt<p.length;lt++)de=p[lt],Ke=de[de.length-1],Ve=de.substring(0,de.length-1),dt=parseInt(Ve,10),Lr=parseFloat(Ve),Sd.test(Ve)&&Ke==="w"?((Ae||Ye)&&(pe=!0),dt===0?pe=!0:Ae=dt):q1.test(Ve)&&Ke==="x"?((Ae||Ye||it)&&(pe=!0),Lr<0?pe=!0:Ye=Lr):Sd.test(Ve)&&Ke==="h"?((it||Ye)&&(pe=!0),dt===0?pe=!0:it=dt):pe=!0;if(!pe)G.source={value:l,startOffset:q},Ae&&(G.width={value:Ae}),Ye&&(G.density={value:Ye}),it&&(G.height={value:it}),z.push(G);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${de}".`)}}var U1=H1;function z1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>V1($n(a.node))}var Ed={width:"w",height:"h",density:"x"},W1=Object.keys(Ed);function V1(a){let s=U1(a),l=W1.filter(z=>s.some(we=>Object.prototype.hasOwnProperty.call(we,z)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Ed[p],D=s.map(z=>z.source.value),E=Math.max(...D.map(z=>z.length)),B=s.map(z=>z[p]?String(z[p].value):""),q=B.map(z=>{let we=z.indexOf(".");return we===-1?z.length:we}),K=Math.max(...q);return tr(An([",",xe],D.map((z,we)=>{let ge=[z],pe=B[we];if(pe){let Ae=E-z.length+1,Ye=K-q[we],it=" ".repeat(Ae+Ye);ge.push(St(it," "),pe+f)}return ge})))}var G1=z1;function Y1(a,s){let{node:l}=a,p=$n(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>tr(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var el=new WeakMap;function K1(a,s){let{root:l}=a;return el.has(l)||el.set(l,l.children.some(p=>Cd(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),el.get(l)}var tl=K1;function J1(a,s,l){let{node:p}=l,f=$n(p);return At(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},pn)}function X1(a,s,{parseWithTs:l}){return At(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Z1(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 Q1(a,s,l,p){let f=$n(l.node),{left:D,operator:E,right:B}=ew(f),q=tl(l,p);return[ue(await At(`function _(${D}) {}`,a,{parser:q?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await At(B,a,{parser:q?"__ts_expression":"__js_expression"})]}function ew(a){let s=/(.*?)\s+(in|of)\s+(.*)/su,l=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,p=/^\(|\)$/gu,f=a.match(s);if(!f)return;let D={};if(D.for=f[3].trim(),!D.for)return;let E=C(!1,f[1].trim(),p,""),B=E.match(l);B?(D.alias=E.replace(l,""),D.iterator1=B[1].trim(),B[2]&&(D.iterator2=B[2].trim())):D.alias=E;let q=[D.alias,D.iterator1,D.iterator2];if(!q.some((K,z)=>!K&&(z===0||q.slice(z+1).some(Boolean))))return{left:q.filter(Boolean).join(","),operator:f[2],right:D.for}}function tw(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return Q1;if(p==="generic"&&Cd(l.parent,s))return J1;let f=$n(l),D=tl(a,s);if(E1(l)||F1(l,s))return E=>X1(f,E,{parseWithTs:D});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>nw(f,E,{parseWithTs:D});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>rw(f,E,{parseWithTs:D});if(p.startsWith("v-"))return E=>Fd(f,E,{parseWithTs:D})}function nw(a,s,{parseWithTs:l}){return Z1(a)?Fd(a,s,{parseWithTs:l}):At(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},pn)}function rw(a,s,{parseWithTs:l}){return At(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},pn)}function Fd(a,s,{parseWithTs:l}){return At(a,s,{parser:l?"__ts_expression":"__js_expression"},pn)}var aw=tw;function iw(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[G1,Y1,L1,aw,j1]){let f=p(a,s);if(f)return sw(f)}}}function sw(a){return async(s,l,p,f)=>{let D=await a(s,l,p,f);if(D)return D=Da(D,E=>typeof E=="string"?C(!1,E,'"',"""):E),[p.node.rawName,'="',ue(D),'"']}}var ow=iw,Ad=new Proxy(()=>{},{get:()=>Ad}),$d=Ad;function lw(a){return Array.isArray(a)&&a.length>0}var nl=lw;function Hi(a){return a.sourceSpan.start.offset}function Ui(a){return a.sourceSpan.end.offset}function rl(a,s){return[a.isSelfClosing?"":uw(a,s),Ea(a,s)]}function uw(a,s){return a.lastChild&&$a(a.lastChild)?"":[cw(a,s),al(a,s)]}function Ea(a,s){return(a.next?rr(a.next):Aa(a.parent))?"":[Fa(a,s),nr(a,s)]}function cw(a,s){return Aa(a)?Fa(a.lastChild,s):""}function nr(a,s){return $a(a)?al(a.parent,s):zi(a)?sl(a.next):""}function al(a,s){if($d(!a.isSelfClosing),Td(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function Fa(a,s){if(Td(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 Td(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Ne(a.parent,s))}function rr(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!Ge(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function Aa(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!Ge(Xo(a.lastChild))&&!Tr(a)}function $a(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&Ge(Xo(a))}function zi(a){return a.next&&!Ge(a.next)&&Ge(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function pw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Wi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function dw(a,s,l){var p;let{node:f}=a;if(!nl(f.attrs))return f.isSelfClosing?" ":"";let D=((p=f.prev)==null?void 0:p.type)==="comment"&&pw(f.prev.value),E=typeof D=="boolean"?()=>D:Array.isArray(D)?we=>D.includes(we.rawName):()=>!1,B=a.map(({node:we})=>E(we)?Dt(s.originalText.slice(Hi(we),Ui(we))):l(),"attrs"),q=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,K=s.singleAttributePerLine&&f.attrs.length>1&&!Br(f,s)?Ee:xe,z=[Fe([q?" ":xe,An(K,B)])];return f.firstChild&&Wi(f.firstChild)||f.isSelfClosing&&Aa(f.parent)||q?z.push(f.isSelfClosing?" ":""):z.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Ie),z}function hw(a){return a.firstChild&&Wi(a.firstChild)?"":ol(a)}function il(a,s,l){let{node:p}=a;return[Ta(p,s),dw(a,s,l),p.isSelfClosing?"":hw(p)]}function Ta(a,s){return a.prev&&zi(a.prev)?"":[ar(a,s),sl(a)]}function ar(a,s){return Wi(a)?ol(a.parent):rr(a)?Fa(a.prev,s):""}function sl(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 ol(a){switch($d(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function fw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Wi(a.firstChild)&&(l-=ol(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&$a(a.lastChild)?p+=al(a,s).length:Aa(a)&&(p-=Fa(a.lastChild,s).length),s.originalText.slice(l,p)}var Bd=fw,mw=new Set(["if","else if","for","switch","case"]);function gw(a,s){let{node:l}=a;switch(l.type){case"element":if(at(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&Zo(l,s)){let p=yd(l,s);return p?async(f,D)=>{let E=Bd(l,s),B=/^\s*$/u.test(E),q="";return B||(q=await f(ie(E),{parser:p,__embeddedInHtml:!0}),B=q===""),[ar(l,s),ue(il(a,s,D)),B?"":Ee,q,B?"":Ee,rl(l,s),nr(l,s)]}:void 0}break;case"text":if(at(l.parent)){let p=yd(l.parent,s);if(p)return async f=>{let D=p==="markdown"?bd(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[Et,ar(l,s),await f(D,E),nr(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=tl(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([xe,await p(l.value,f)]),l.parent.next&&rr(l.parent.next)?" ":xe]};break;case"attribute":return ow(a,s);case"front-matter":return p=>Wo(l,p);case"angularControlFlowBlockParameters":return mw.has(a.parent.name)?Li:void 0;case"angularLetDeclarationInitializer":return p=>At(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var vw=gw,Ba=null;function Na(a){if(Ba!==null&&typeof Ba.property){let s=Ba;return Ba=Na.prototype=null,s}return Ba=Na.prototype=a??Object.create(null),new Na}var yw=10;for(let a=0;a<=yw;a++)Na();function Dw(a){return Na(a)}function bw(a,s="type"){Dw(a);function l(p){let f=p[s],D=a[f];if(!Array.isArray(D))throw Object.assign(new Error(`Missing visitor keys for '${f}'.`),{node:p});return D}return l}var kw=bw,ww={"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"]},Cw=ww,_w=kw(Cw),xw=_w;function Sw(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Ew(a){return`<!-- @format -->
|
|
665
670
|
|
|
666
|
-
`+a}var
|
|
671
|
+
`+a}var Fw=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 Nd(a){let s=Ui(a);return a.type==="element"&&!a.endSourceSpan&&nl(a.children)?Math.max(s,Nd(cn(!1,a.children,-1))):s}function ja(a,s,l){let p=a.node;if(Te(p)){let f=Nd(p);return[ar(p,s),Dt(Pt.trimEnd(s.originalText.slice(Hi(p)+(p.prev&&zi(p.prev)?sl(p).length:0),f-(p.next&&rr(p.next)?Fa(p,s).length:0)))),nr(p,s)]}return l()}function Vi(a,s){return Ge(a)&&Ge(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Jo(s)?Ee:xe:"":Jo(s)?Ee:Ie:zi(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&rr(s)?"":!s.isLeadingSpaceSensitive||Jo(s)||rr(s)&&a.lastChild&&$a(a.lastChild)&&a.lastChild.lastChild&&$a(a.lastChild.lastChild)?Ee:s.hasLeadingSpaces?xe:Ie}function ll(a,s,l){let{node:p}=a;if(dd(p))return[Et,...a.map(D=>{let E=D.node,B=E.prev?Vi(E.prev,E):"";return[B?[B,Ri(E.prev)?Ee:""]:"",ja(D,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((D,E)=>{let B=D.node;if(Ge(B)){if(B.prev&&Ge(B.prev)){let Ae=Vi(B.prev,B);if(Ae)return Ri(B.prev)?[Ee,Ee,ja(D,s,l)]:[Ae,ja(D,s,l)]}return ja(D,s,l)}let q=[],K=[],z=[],we=[],ge=B.prev?Vi(B.prev,B):"",pe=B.next?Vi(B,B.next):"";return ge&&(Ri(B.prev)?q.push(Ee,Ee):ge===Ee?q.push(Ee):Ge(B.prev)?K.push(ge):K.push(St("",Ie,{groupId:f[E-1]}))),pe&&(Ri(B)?Ge(B.next)&&we.push(Ee,Ee):pe===Ee?Ge(B.next)&&we.push(Ee):z.push(pe)),[...q,ue([...K,ue([ja(D,s,l),...z],{id:f[E]})]),...we]},"children")}function Aw(a,s,l){let{node:p}=a,f=[];$w(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",ue(l("parameters")),")"),f.push(" {");let D=jd(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Fe([Ee,ll(a,s,l)])),D&&f.push(Ee,"}")):D&&f.push("}"),ue(f,{shouldBreak:!0})}function jd(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=Fw.get(a.name))!=null&&l.has(a.next.name))}function $w(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!jd(s)}function Tw(a,s,l){return[Fe([Ie,An([";",xe],a.map(l,"children"))]),Ie]}function Bw(a,s,l){let{node:p}=a;return[Ta(p,s),ue([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Fe([xe,An(xe,a.map(l,"cases"))])]:"",Ie]),Ea(p,s)]}function Nw(a,s,l){let{node:p}=a;return[p.value," {",ue([Fe([Ie,a.map(({node:f})=>f.type==="text"&&!Pt.trim(f.value)?"":l(),"expression")]),Ie]),"}"]}function jw(a,s,l){let{node:p}=a;if(Ne(p,s))return[ar(p,s),ue(il(a,s,l)),Dt(Bd(p,s)),...rl(p,s),nr(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,D=Symbol("element-attr-group-id"),E=z=>ue([ue(il(a,s,l),{id:D}),z,rl(p,s)]),B=z=>f?Fn(z,{groupId:D}):(at(p)||qi(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?z:Fe(z),q=()=>f?St(Ie,"",{groupId:D}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?xe:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?yt(Ie):Ie,K=()=>(p.next?rr(p.next):Aa(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?St(Ie,"",{groupId:D}):p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?xe:(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)?"":Ie;return p.children.length===0?E(p.hasDanglingSpaces&&p.isDanglingSpaceSensitive?xe:""):E([d1(p)?Et:"",B([q(),ll(a,s,l)]),K()])}function Gi(a){return a>=9&&a<=32||a==160}function ul(a){return 48<=a&&a<=57}function Yi(a){return a>=97&&a<=122||a>=65&&a<=90}function Pw(a){return a>=97&&a<=102||a>=65&&a<=70||ul(a)}function cl(a){return a===10||a===13}function Pd(a){return 48<=a&&a<=55}function pl(a){return a===39||a===34||a===96}var Lw=/-+([a-z0-9])/g;function Ow(a){return a.replace(Lw,(...s)=>s[1].toUpperCase())}var dl=class bh{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,D=this.line,E=this.col;for(;f>0&&s<0;)if(f--,s++,l.charCodeAt(f)==10){D--;let B=l.substring(0,f-1).lastIndexOf(`
|
|
667
672
|
`);E=B>0?f-B:f}else E--;for(;f<p&&s>0;){let B=l.charCodeAt(f);f++,s--,B==10?(D++,E=0):E++}return new bh(this.file,f,D,E)}getContext(s,l){let p=this.file.content,f=this.offset;if(f!=null){f>p.length-1&&(f=p.length-1);let D=f,E=0,B=0;for(;E<s&&f>0&&(f--,E++,!(p[f]==`
|
|
668
673
|
`&&++B==l)););for(E=0,B=0;E<s&&D<p.length-1&&(D++,E++,!(p[D]==`
|
|
669
|
-
`&&++B==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,D+1)}}return null}},Ld=class{constructor(a,s){this.content=a,this.url=s}},se=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)}},Ki;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Ki||(Ki={}));var Od=class{constructor(a,s,l=Ki.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}[${Ki[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},
|
|
670
|
-
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function Rw(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 D=f.prev,E=f.firstChild;l.removeChild(D),p--;let B=new se(D.sourceSpan.start,E.sourceSpan.end),q=new se(B.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(E)}})}function qw(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let D=p.children[f];if(D.type!=="text"&&!s(D))continue;D.type!=="text"&&(D.type="text",D.value=l(D));let E=D.prev;!E||E.type!=="text"||(E.value+=D.value,E.sourceSpan=new se(E.sourceSpan.start,D.sourceSpan.end),p.removeChild(D),f--)}})}function Hw(a){return qw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function Uw(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!jt.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 D=f.prev,E=f.next;D.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+E.value,D.sourceSpan=new se(D.sourceSpan.start,E.sourceSpan.end),D.isTrailingSpaceSensitive=E.isTrailingSpaceSensitive,D.hasTrailingSpaces=E.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(E)}})}function zw(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(ot(p))for(let f of p.children){if(f.type!=="text")continue;let D=f.sourceSpan.start,E=null,B=f.value.split(l);for(let q=0;q<B.length;q++,D=E){let K=B[q];if(q%2===0){E=D.moveBy(K.length),K.length>0&&p.insertChildBefore(f,{type:"text",value:K,sourceSpan:new se(D,E)});continue}E=D.moveBy(K.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new se(D,E),children:K.length===0?[]:[{type:"text",value:K,sourceSpan:new se(D.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function Ww(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&jt.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=xa(s),p=Ii(s);if(!l)for(let f=0;f<s.children.length;f++){let D=s.children[f];if(D.type!=="text")continue;let{leadingWhitespace:E,text:B,trailingWhitespace:q}=rt(D.value),K=D.prev,z=D.next;B?(D.value=B,D.sourceSpan=new se(D.sourceSpan.start.moveBy(E.length),D.sourceSpan.end.moveBy(-q.length)),E&&(K&&(K.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),q&&(D.hasTrailingSpaces=!0,z&&(z.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(E||q)&&(K&&(K.hasTrailingSpaces=!0),z&&(z.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function Vw(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 Gw(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 Yw(a,s){a.walk(l=>{l.cssDisplay=C1(l,s)})}function Kw(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=c1(l);return}for(let f of p)f.isLeadingSpaceSensitive=Ko(f,s),f.isTrailingSpaceSensitive=u1(f,s);for(let f=0;f<p.length;f++){let D=p[f];D.isLeadingSpaceSensitive=(f===0||D.prev.isTrailingSpaceSensitive)&&D.isLeadingSpaceSensitive,D.isTrailingSpaceSensitive=(f===p.length-1||D.next.isLeadingSpaceSensitive)&&D.isTrailingSpaceSensitive}}})}var Jw=Mw;function Xw(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return Dt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[ue(ll(a,s,l)),Ee];case"element":case"ieConditionalComment":return Nw(a,s,l);case"angularControlFlowBlock":return Fw(a,s,l);case"angularControlFlowBlockParameters":return $w(a,s,l);case"angularControlFlowBlockParameter":return jt.trim(p.expression);case"angularLetDeclaration":return ue(["@let ",ue([p.id," =",ue(Fe([xe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return Tw(a,s,l);case"angularIcuCase":return Bw(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ta(p),Ea(p)];case"interpolation":return[Ta(p,s),...a.map(l,"children"),Ea(p,s)];case"text":{if(p.parent.type==="interpolation"){let D=/\n[^\S\n]*$/u,E=D.test(p.value),B=E?p.value.replace(D,""):p.value;return[Dt(B),E?Ee:""]}let f=$i([ar(p,s),...wd(p),nr(p,s)]);return Array.isArray(f)?_t(f):f}case"docType":return[ue([Ta(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Ea(p,s)];case"comment":return[ar(p,s),Dt(s.originalText.slice(Hi(p),Ui(p))),nr(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=kd(p.value),D=Ni(f,'"');return[p.rawName,"=",D,Dt(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new ka(p,"HTML")}}var Zw={preprocess:Jw,print:Xw,insertPragma:Sw,massageAstNode:zo,embed:gw,getVisitorKeys:_w},Qw=Zw,eC=[{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"]}],Md={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."}},Id="HTML",tC={bracketSameLine:Md.bracketSameLine,htmlWhitespaceSensitivity:{category:Id,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:Md.singleAttributePerLine,vueIndentScriptAndStyle:{category:Id,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},nC=tC,Rd={};c(Rd,{angular:()=>i_,html:()=>a_,lwc:()=>o_,vue:()=>s_});var qd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(qd||(qd={}));var Hd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(Hd||(Hd={}));var Ud;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Ud||(Ud={}));var zd={name:"custom-elements"},Wd={name:"no-errors-schema"},ir;(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"})(ir||(ir={}));var Vd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Vd||(Vd={}));var qt;(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"})(qt||(qt={}));function Ji(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 Gd(a){return Ji(a)[1]==="ng-container"}function Yd(a){return Ji(a)[1]==="ng-content"}function Xi(a){return a===null?null:Ji(a)[0]}function Zi(a,s){return a?`:${a}:${s}`:s}var Qi;function Kd(){return Qi||(Qi={},es(ir.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),es(ir.STYLE,["*|style"]),es(ir.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"]),es(ir.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"])),Qi}function es(a,s){for(let l of s)Qi[l.toLowerCase()]=a}var rC=class{},aC="boolean",iC="number",sC="string",oC="object",lC=["[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:|"],Jd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),uC=Array.from(Jd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),cC=class extends rC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,lC.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),D=f.split(","),[E,B]=p.split("^");E.split(",").forEach(K=>{this._schema.set(K.toLowerCase(),s),this._eventSchema.set(K.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[K,z]of q)s.set(K,z);for(let K of this._eventSchema.get(B.toLowerCase()))l.add(K)}D.forEach(K=>{if(K.length>0)switch(K[0]){case"*":l.add(K.substring(1));break;case"!":s.set(K.substring(1),aC);break;case"#":s.set(K.substring(1),iC);break;case"%":s.set(K.substring(1),oC);break;default:s.set(K,sC)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===Wd.name))return!0;if(a.indexOf("-")>-1){if(Gd(a)||Yd(a))return!1;if(l.some(p=>p.name===zd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Wd.name)||a.indexOf("-")>-1&&(Gd(a)||Yd(a)||s.some(l=>l.name===zd.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||ir.NONE)}getMappedPropName(a){return Jd.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)})=...
|
|
671
|
-
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=>uC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Lw(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),D=null;if(pC(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let E=l.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&E[1].length==0&&(D=`Please provide a CSS unit value for ${s}:${l}`)}return{error:D,value:f+p}}};function pC(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 re=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=qt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:D=!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=D,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}},Xd,Pa;function hl(a){return Pa||(Xd=new re({canSelfClose:!0}),Pa=Object.assign(Object.create(null),{base:new re({isVoid:!0}),meta:new re({isVoid:!0}),area:new re({isVoid:!0}),embed:new re({isVoid:!0}),link:new re({isVoid:!0}),img:new re({isVoid:!0}),input:new re({isVoid:!0}),param:new re({isVoid:!0}),hr:new re({isVoid:!0}),br:new re({isVoid:!0}),source:new re({isVoid:!0}),track:new re({isVoid:!0}),wbr:new re({isVoid:!0}),p:new re({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 re({closedByChildren:["tbody","tfoot"]}),tbody:new re({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new re({closedByChildren:["tbody"],closedByParent:!0}),tr:new re({closedByChildren:["tr"],closedByParent:!0}),td:new re({closedByChildren:["td","th"],closedByParent:!0}),th:new re({closedByChildren:["td","th"],closedByParent:!0}),col:new re({isVoid:!0}),svg:new re({implicitNamespacePrefix:"svg"}),foreignObject:new re({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new re({implicitNamespacePrefix:"math"}),li:new re({closedByChildren:["li"],closedByParent:!0}),dt:new re({closedByChildren:["dt","dd"]}),dd:new re({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new re({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new re({closedByChildren:["optgroup"],closedByParent:!0}),option:new re({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new re({ignoreFirstLf:!0}),listing:new re({ignoreFirstLf:!0}),style:new re({contentType:qt.RAW_TEXT}),script:new re({contentType:qt.RAW_TEXT}),title:new re({contentType:{default:qt.ESCAPABLE_RAW_TEXT,svg:qt.PARSABLE_DATA}}),textarea:new re({contentType:qt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new cC().allKnownElementNames().forEach(s=>{!Pa[s]&&Xi(s)===null&&(Pa[s]=new re({canSelfClose:!1}))})),Pa[a]??Xd}var Nr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},dC=class extends Nr{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)}},hC=class extends Nr{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)}},fC=class extends Nr{constructor(a,s,l,p,f,D){super(p,D),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},mC=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)}},gC=class extends Nr{constructor(a,s,l,p,f,D,E){super(l,E),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=D,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},Tn=class extends Nr{constructor(a,s,l,p,f,D=null,E=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=D,this.nameSpan=E,this.type="element"}visit(a,s){return a.visitElement(this,s)}},vC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},yC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},jr=class extends Nr{constructor(a,s,l,p,f,D,E=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=D,this.endSourceSpan=E,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},Zd=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)}},Qd=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 eh(a,s,l=null){let p=[],f=a.visit?D=>a.visit(D,l)||D.visit(a,l):D=>D.visit(a,l);return s.forEach(D=>{let E=f(D);E&&p.push(E)}),p}var DC=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(D){D&&l.push(eh(p,D,a))}return s(f),Array.prototype.concat.apply([],l)}},ts={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:`
|
|
672
|
-
`,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:""},bC="";ts.ngsp=bC;var kC=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function wC(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];kC.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var CC=class kh{static fromArray(s){return s?(wC("interpolation",s),new kh(s[0],s[1])):th}constructor(s,l){this.start=s,this.end=l}},th=new CC("{{","}}"),fl=class extends Od{constructor(a,s,l){super(l,a),this.tokenType=s}},_C=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function xC(a,s,l,p={}){let f=new FC(new Ld(a,s),l,p);return f.tokenize(),new _C(jC(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var SC=/\r\n?/g;function Pr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function nh(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function EC(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var ns;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(ns||(ns={}));var ml=class{constructor(a){this.error=a}},FC=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||th,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 PC(a,p):new oh(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(SC,`
|
|
673
|
-
`)}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=>Gi(l)?!a:ih(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(ze),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ze);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(sh);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&&pl(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(sh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(ze);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(ze),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>ze(l)&&!cl(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=>Yi(l)||l==36||l===95||s&&ul(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;pl(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(BC(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 fl("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 fl("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 fl(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new ml(l)}handleError(a){if(a instanceof gl&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof ml)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return NC(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Pr(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(Pr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Pr(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(Pr(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($C),this._cursor.peek()!=59){this._cursor.advance();let D=l?ns.HEX:ns.DEC;throw this._createError(EC(D,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(p);this._cursor.advance();try{let D=parseInt(f,l?16:10);this._endToken([String.fromCharCode(D),this._cursor.getChars(s)])}catch{throw this._createError(nh(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(TC),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=ts[p];if(!f)throw this._createError(nh(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&&!AC(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(rh,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!Yi(this._cursor.peek()))throw this._createError(Pr(this._cursor.peek()),this._cursor.getSpan(a));for(p=this._consumeTagOpenStart(a),l=p.parts[0],s=p.parts[1],this._attemptCharCodeUntilFn(ze);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[E,B]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(ze),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(ze);let q=this._consumeAttributeValue();f.push({prefix:E,name:B,value:q})}else f.push({prefix:E,name:B});this._attemptCharCodeUntilFn(ze)}this._consumeTagOpenEnd()}catch(E){if(E instanceof ml){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 D=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),D===qt.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===qt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(ze),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(ze),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(Pr(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=()=>rh(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(ze),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ze),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ze),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(ze),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ze)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(ze),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ze),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ze),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 D=this._processCarriageReturns(f.join(""));return this._endToken([D]),D}_consumeInterpolation(a,s,l){let p=[];this._beginToken(a,s),p.push(this._interpolationConfig.start);let f=this._cursor.clone(),D=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(D===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===D?D=null:!E&&D===null&&pl(q)&&(D=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(),ih(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=Zi(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=Zi(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function ze(a){return!Gi(a)||a===0}function rh(a){return Gi(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function AC(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function $C(a){return a===59||a===0||!jw(a)}function TC(a){return a===59||a===0||!Yi(a)}function BC(a){return a!==125}function NC(a,s){return ah(a)===ah(s)}function ah(a){return a>=97&&a<=122?a-97+65:a}function ih(a){return Yi(a)||ul(a)||a===95}function sh(a){return a!==59&&ze(a)}function jC(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 oh=class Dl{constructor(s,l){if(s instanceof Dl){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 Dl(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),D=this.locationFromCursor(this),E=p!==s?this.locationFromCursor(p):f;return new se(f,D,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 gl('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):cl(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 dl(s.file,s.state.offset,s.state.line,s.state.column)}},PC=class bl extends oh{constructor(s,l){s instanceof bl?(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 bl(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(Pd(s())){let l="",p=0,f=this.clone();for(;Pd(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 cl(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 gl("Invalid hexadecimal escape sequence",s);return f}},gl=class{constructor(a,s){this.msg=a,this.cursor=s}},pt=class wh extends Od{static create(s,l,p){return new wh(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},LC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},OC=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let D=pe=>(Ae,...Ye)=>pe(Ae.toLowerCase(),...Ye),E=p?this.getTagDefinition:D(this.getTagDefinition),B=pe=>E(pe).getContentType(),q=p?f:D(f),K=xC(a,s,f?(pe,Ae,Ye,it)=>{let lt=q(pe,Ae,Ye,it);return lt!==void 0?lt:B(pe)}:B,l),z=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,ge=new MC(K.tokens,E,z,we,p);return ge.build(),new LC(ge.rootNodes,K.errors.concat(ge.errors))}},MC=class Ch{constructor(s,l,p,f,D){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=p,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=D,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 jr&&this.errors.push(pt.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 hC(p,new se(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,D=p==null?s.sourceSpan:new se(s.sourceSpan.start,p.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new vC(f,D))}_consumeDocType(s){let l=this._advanceIf(7),p=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,D=new se(s.sourceSpan.start,(p||l||s).sourceSpan.end);this._addToParent(new yC(f,D))}_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(pt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let D=new se(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new fC(l.parts[0],p.parts[0],f,D,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(pt.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 D=new Ch(p,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(D.build(),D.errors.length>0)return this.errors=this.errors.concat(D.errors),null;let E=new se(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),B=new se(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new mC(s.parts[0],D.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(lh(p,22)){if(p.pop(),p.length===0)return l}else return this.errors.push(pt.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(lh(p,20))p.pop();else return this.errors.push(pt.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(pt.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]==`
|
|
674
|
+
`&&++B==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,D+1)}}return null}},Ld=class{constructor(a,s){this.content=a,this.url=s}},se=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)}},Ki;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Ki||(Ki={}));var Od=class{constructor(a,s,l=Ki.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}[${Ki[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},Mw=[Rw,qw,Uw,Ww,Vw,Kw,Gw,Yw,Jw,zw];function Iw(a,s){for(let l of Mw)l(a,s);return a}function Rw(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]===`
|
|
675
|
+
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function qw(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 D=f.prev,E=f.firstChild;l.removeChild(D),p--;let B=new se(D.sourceSpan.start,E.sourceSpan.end),q=new se(B.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=q,f.startSourceSpan=B,f.removeChild(E)}})}function Hw(a,s,l){a.walk(p=>{if(p.children)for(let f=0;f<p.children.length;f++){let D=p.children[f];if(D.type!=="text"&&!s(D))continue;D.type!=="text"&&(D.type="text",D.value=l(D));let E=D.prev;!E||E.type!=="text"||(E.value+=D.value,E.sourceSpan=new se(E.sourceSpan.start,D.sourceSpan.end),p.removeChild(D),f--)}})}function Uw(a){return Hw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function zw(a){let s=l=>{var p,f;return l.type==="element"&&l.attrs.length===0&&l.children.length===1&&l.firstChild.type==="text"&&!Pt.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 D=f.prev,E=f.next;D.value+=`<${f.rawName}>`+f.firstChild.value+`</${f.rawName}>`+E.value,D.sourceSpan=new se(D.sourceSpan.start,E.sourceSpan.end),D.isTrailingSpaceSensitive=E.isTrailingSpaceSensitive,D.hasTrailingSpaces=E.hasTrailingSpaces,l.removeChild(f),p--,l.removeChild(E)}})}function Ww(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(ot(p))for(let f of p.children){if(f.type!=="text")continue;let D=f.sourceSpan.start,E=null,B=f.value.split(l);for(let q=0;q<B.length;q++,D=E){let K=B[q];if(q%2===0){E=D.moveBy(K.length),K.length>0&&p.insertChildBefore(f,{type:"text",value:K,sourceSpan:new se(D,E)});continue}E=D.moveBy(K.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new se(D,E),children:K.length===0?[]:[{type:"text",value:K,sourceSpan:new se(D.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function Vw(a){a.walk(s=>{if(!s.children)return;if(s.children.length===0||s.children.length===1&&s.children[0].type==="text"&&Pt.trim(s.children[0].value).length===0){s.hasDanglingSpaces=s.children.length>0,s.children=[];return}let l=xa(s),p=Ii(s);if(!l)for(let f=0;f<s.children.length;f++){let D=s.children[f];if(D.type!=="text")continue;let{leadingWhitespace:E,text:B,trailingWhitespace:q}=rt(D.value),K=D.prev,z=D.next;B?(D.value=B,D.sourceSpan=new se(D.sourceSpan.start.moveBy(E.length),D.sourceSpan.end.moveBy(-q.length)),E&&(K&&(K.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),q&&(D.hasTrailingSpaces=!0,z&&(z.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(E||q)&&(K&&(K.hasTrailingSpaces=!0),z&&(z.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function Gw(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 Yw(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 Kw(a,s){a.walk(l=>{l.cssDisplay=_1(l,s)})}function Jw(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=p1(l);return}for(let f of p)f.isLeadingSpaceSensitive=Ko(f,s),f.isTrailingSpaceSensitive=c1(f,s);for(let f=0;f<p.length;f++){let D=p[f];D.isLeadingSpaceSensitive=(f===0||D.prev.isTrailingSpaceSensitive)&&D.isLeadingSpaceSensitive,D.isTrailingSpaceSensitive=(f===p.length-1||D.next.isLeadingSpaceSensitive)&&D.isTrailingSpaceSensitive}}})}var Xw=Iw;function Zw(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return Dt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[ue(ll(a,s,l)),Ee];case"element":case"ieConditionalComment":return jw(a,s,l);case"angularControlFlowBlock":return Aw(a,s,l);case"angularControlFlowBlockParameters":return Tw(a,s,l);case"angularControlFlowBlockParameter":return Pt.trim(p.expression);case"angularLetDeclaration":return ue(["@let ",ue([p.id," =",ue(Fe([xe,l("init")]))]),";"]);case"angularLetDeclarationInitializer":return p.value;case"angularIcuExpression":return Bw(a,s,l);case"angularIcuCase":return Nw(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ta(p),Ea(p)];case"interpolation":return[Ta(p,s),...a.map(l,"children"),Ea(p,s)];case"text":{if(p.parent.type==="interpolation"){let D=/\n[^\S\n]*$/u,E=D.test(p.value),B=E?p.value.replace(D,""):p.value;return[Dt(B),E?Ee:""]}let f=$i([ar(p,s),...wd(p),nr(p,s)]);return Array.isArray(f)?xt(f):f}case"docType":return[ue([Ta(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Ea(p,s)];case"comment":return[ar(p,s),Dt(s.originalText.slice(Hi(p),Ui(p))),nr(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=kd(p.value),D=Ni(f,'"');return[p.rawName,"=",D,Dt(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new ka(p,"HTML")}}var Qw={preprocess:Xw,print:Zw,insertPragma:Ew,massageAstNode:zo,embed:vw,getVisitorKeys:xw},eC=Qw,tC=[{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"]}],Md={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."}},Id="HTML",nC={bracketSameLine:Md.bracketSameLine,htmlWhitespaceSensitivity:{category:Id,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:Md.singleAttributePerLine,vueIndentScriptAndStyle:{category:Id,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},rC=nC,Rd={};c(Rd,{angular:()=>s_,html:()=>i_,lwc:()=>l_,vue:()=>o_});var qd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(qd||(qd={}));var Hd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(Hd||(Hd={}));var Ud;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Ud||(Ud={}));var zd={name:"custom-elements"},Wd={name:"no-errors-schema"},ir;(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"})(ir||(ir={}));var Vd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Vd||(Vd={}));var qt;(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"})(qt||(qt={}));function Ji(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 Gd(a){return Ji(a)[1]==="ng-container"}function Yd(a){return Ji(a)[1]==="ng-content"}function Xi(a){return a===null?null:Ji(a)[0]}function Zi(a,s){return a?`:${a}:${s}`:s}var Qi;function Kd(){return Qi||(Qi={},es(ir.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),es(ir.STYLE,["*|style"]),es(ir.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"]),es(ir.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"])),Qi}function es(a,s){for(let l of s)Qi[l.toLowerCase()]=a}var aC=class{},iC="boolean",sC="number",oC="string",lC="object",uC=["[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:|"],Jd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),cC=Array.from(Jd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),pC=class extends aC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,uC.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),D=f.split(","),[E,B]=p.split("^");E.split(",").forEach(K=>{this._schema.set(K.toLowerCase(),s),this._eventSchema.set(K.toLowerCase(),l)});let q=B&&this._schema.get(B.toLowerCase());if(q){for(let[K,z]of q)s.set(K,z);for(let K of this._eventSchema.get(B.toLowerCase()))l.add(K)}D.forEach(K=>{if(K.length>0)switch(K[0]){case"*":l.add(K.substring(1));break;case"!":s.set(K.substring(1),iC);break;case"#":s.set(K.substring(1),sC);break;case"%":s.set(K.substring(1),lC);break;default:s.set(K,oC)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===Wd.name))return!0;if(a.indexOf("-")>-1){if(Gd(a)||Yd(a))return!1;if(l.some(p=>p.name===zd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Wd.name)||a.indexOf("-")>-1&&(Gd(a)||Yd(a)||s.some(l=>l.name===zd.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||ir.NONE)}getMappedPropName(a){return Jd.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)})=...
|
|
676
|
+
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=>cC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Ow(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),D=null;if(dC(a)&&l!==0&&l!=="0")if(typeof l=="number")p="px";else{let E=l.match(/^[+-]?[\d\.]+([a-z]*)$/);E&&E[1].length==0&&(D=`Please provide a CSS unit value for ${s}:${l}`)}return{error:D,value:f+p}}};function dC(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 re=class{constructor({closedByChildren:a,implicitNamespacePrefix:s,contentType:l=qt.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:D=!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=D,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}},Xd,Pa;function hl(a){return Pa||(Xd=new re({canSelfClose:!0}),Pa=Object.assign(Object.create(null),{base:new re({isVoid:!0}),meta:new re({isVoid:!0}),area:new re({isVoid:!0}),embed:new re({isVoid:!0}),link:new re({isVoid:!0}),img:new re({isVoid:!0}),input:new re({isVoid:!0}),param:new re({isVoid:!0}),hr:new re({isVoid:!0}),br:new re({isVoid:!0}),source:new re({isVoid:!0}),track:new re({isVoid:!0}),wbr:new re({isVoid:!0}),p:new re({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 re({closedByChildren:["tbody","tfoot"]}),tbody:new re({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new re({closedByChildren:["tbody"],closedByParent:!0}),tr:new re({closedByChildren:["tr"],closedByParent:!0}),td:new re({closedByChildren:["td","th"],closedByParent:!0}),th:new re({closedByChildren:["td","th"],closedByParent:!0}),col:new re({isVoid:!0}),svg:new re({implicitNamespacePrefix:"svg"}),foreignObject:new re({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new re({implicitNamespacePrefix:"math"}),li:new re({closedByChildren:["li"],closedByParent:!0}),dt:new re({closedByChildren:["dt","dd"]}),dd:new re({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new re({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new re({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new re({closedByChildren:["optgroup"],closedByParent:!0}),option:new re({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new re({ignoreFirstLf:!0}),listing:new re({ignoreFirstLf:!0}),style:new re({contentType:qt.RAW_TEXT}),script:new re({contentType:qt.RAW_TEXT}),title:new re({contentType:{default:qt.ESCAPABLE_RAW_TEXT,svg:qt.PARSABLE_DATA}}),textarea:new re({contentType:qt.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new pC().allKnownElementNames().forEach(s=>{!Pa[s]&&Xi(s)===null&&(Pa[s]=new re({canSelfClose:!1}))})),Pa[a]??Xd}var Nr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},hC=class extends Nr{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)}},fC=class extends Nr{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)}},mC=class extends Nr{constructor(a,s,l,p,f,D){super(p,D),this.switchValue=a,this.type=s,this.cases=l,this.switchValueSourceSpan=f}visit(a,s){return a.visitExpansion(this,s)}},gC=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)}},vC=class extends Nr{constructor(a,s,l,p,f,D,E){super(l,E),this.name=a,this.value=s,this.keySpan=p,this.valueSpan=f,this.valueTokens=D,this.type="attribute"}visit(a,s){return a.visitAttribute(this,s)}get nameSpan(){return this.keySpan}},Tn=class extends Nr{constructor(a,s,l,p,f,D=null,E=null,B){super(p,B),this.name=a,this.attrs=s,this.children=l,this.startSourceSpan=f,this.endSourceSpan=D,this.nameSpan=E,this.type="element"}visit(a,s){return a.visitElement(this,s)}},yC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},DC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},jr=class extends Nr{constructor(a,s,l,p,f,D,E=null,B){super(p,B),this.name=a,this.parameters=s,this.children=l,this.nameSpan=f,this.startSourceSpan=D,this.endSourceSpan=E,this.type="block"}visit(a,s){return a.visitBlock(this,s)}},Zd=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)}},Qd=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 eh(a,s,l=null){let p=[],f=a.visit?D=>a.visit(D,l)||D.visit(a,l):D=>D.visit(a,l);return s.forEach(D=>{let E=f(D);E&&p.push(E)}),p}var bC=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(D){D&&l.push(eh(p,D,a))}return s(f),Array.prototype.concat.apply([],l)}},ts={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:`
|
|
677
|
+
`,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:""},kC="";ts.ngsp=kC;var wC=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function CC(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];wC.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var _C=class kh{static fromArray(s){return s?(CC("interpolation",s),new kh(s[0],s[1])):th}constructor(s,l){this.start=s,this.end=l}},th=new _C("{{","}}"),fl=class extends Od{constructor(a,s,l){super(l,a),this.tokenType=s}},xC=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function SC(a,s,l,p={}){let f=new AC(new Ld(a,s),l,p);return f.tokenize(),new xC(PC(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var EC=/\r\n?/g;function Pr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function nh(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function FC(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var ns;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(ns||(ns={}));var ml=class{constructor(a){this.error=a}},AC=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||th,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 LC(a,p):new oh(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(EC,`
|
|
678
|
+
`)}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=>Gi(l)?!a:ih(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(We),this._attemptCharCode(41))this._attemptCharCodeUntilFn(We);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(sh);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&&pl(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(sh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(We);else{let l=this._endToken([this._cursor.getChars(a)]);l.type=33;return}let s=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(We),!this._attemptCharCode(61)){s.type=33;return}this._attemptCharCodeUntilFn(l=>We(l)&&!cl(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=>Yi(l)||l==36||l===95||s&&ul(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;pl(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(NC(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 fl("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 fl("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 fl(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new ml(l)}handleError(a){if(a instanceof gl&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof ml)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return jC(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Pr(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(Pr(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Pr(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(Pr(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(TC),this._cursor.peek()!=59){this._cursor.advance();let D=l?ns.HEX:ns.DEC;throw this._createError(FC(D,this._cursor.getChars(s)),this._cursor.getSpan())}let f=this._cursor.getChars(p);this._cursor.advance();try{let D=parseInt(f,l?16:10);this._endToken([String.fromCharCode(D),this._cursor.getChars(s)])}catch{throw this._createError(nh(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(BC),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=ts[p];if(!f)throw this._createError(nh(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&&!$C(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(rh,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!Yi(this._cursor.peek()))throw this._createError(Pr(this._cursor.peek()),this._cursor.getSpan(a));for(p=this._consumeTagOpenStart(a),l=p.parts[0],s=p.parts[1],this._attemptCharCodeUntilFn(We);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[E,B]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(We),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(We);let q=this._consumeAttributeValue();f.push({prefix:E,name:B,value:q})}else f.push({prefix:E,name:B});this._attemptCharCodeUntilFn(We)}this._consumeTagOpenEnd()}catch(E){if(E instanceof ml){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 D=this._getTagContentType(s,l,this._fullNameStack.length>0,f);this._handleFullNameStackForTagOpen(l,s),D===qt.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===qt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(l,s,!0)}_consumeRawTextWithTagClose(a,s,l){this._consumeRawText(l,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(We),!this._attemptStrCaseInsensitive(a?`${a}:${s}`:s))?!1:(this._attemptCharCodeUntilFn(We),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(Pr(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=()=>rh(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(We),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(We),this._requireCharCode(62),this._endToken([]);else{let[s,l]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(We),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(We),this._beginToken(7);let l=this._readUntil(44);this._endToken([l]),this._requireCharCode(44),this._attemptCharCodeUntilFn(We)}_consumeExpansionCaseStart(){this._beginToken(21);let a=this._readUntil(123).trim();this._endToken([a]),this._attemptCharCodeUntilFn(We),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(We),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(We),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 D=this._processCarriageReturns(f.join(""));return this._endToken([D]),D}_consumeInterpolation(a,s,l){let p=[];this._beginToken(a,s),p.push(this._interpolationConfig.start);let f=this._cursor.clone(),D=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(D===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===D?D=null:!E&&D===null&&pl(q)&&(D=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(),ih(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=Zi(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=Zi(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function We(a){return!Gi(a)||a===0}function rh(a){return Gi(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function $C(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function TC(a){return a===59||a===0||!Pw(a)}function BC(a){return a===59||a===0||!Yi(a)}function NC(a){return a!==125}function jC(a,s){return ah(a)===ah(s)}function ah(a){return a>=97&&a<=122?a-97+65:a}function ih(a){return Yi(a)||ul(a)||a===95}function sh(a){return a!==59&&We(a)}function PC(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 oh=class Dl{constructor(s,l){if(s instanceof Dl){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 Dl(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),D=this.locationFromCursor(this),E=p!==s?this.locationFromCursor(p):f;return new se(f,D,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 gl('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):cl(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 dl(s.file,s.state.offset,s.state.line,s.state.column)}},LC=class bl extends oh{constructor(s,l){s instanceof bl?(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 bl(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(Pd(s())){let l="",p=0,f=this.clone();for(;Pd(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 cl(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 gl("Invalid hexadecimal escape sequence",s);return f}},gl=class{constructor(a,s){this.msg=a,this.cursor=s}},pt=class wh extends Od{static create(s,l,p){return new wh(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},OC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},MC=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let D=pe=>(Ae,...Ye)=>pe(Ae.toLowerCase(),...Ye),E=p?this.getTagDefinition:D(this.getTagDefinition),B=pe=>E(pe).getContentType(),q=p?f:D(f),K=SC(a,s,f?(pe,Ae,Ye,it)=>{let lt=q(pe,Ae,Ye,it);return lt!==void 0?lt:B(pe)}:B,l),z=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,ge=new IC(K.tokens,E,z,we,p);return ge.build(),new OC(ge.rootNodes,K.errors.concat(ge.errors))}},IC=class Ch{constructor(s,l,p,f,D){this.tokens=s,this.getTagDefinition=l,this.canSelfClose=p,this.allowHtmComponentClosingTags=f,this.isTagNameCaseSensitive=D,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 jr&&this.errors.push(pt.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 fC(p,new se(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,D=p==null?s.sourceSpan:new se(s.sourceSpan.start,p.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new yC(f,D))}_consumeDocType(s){let l=this._advanceIf(7),p=this._advanceIf(19),f=l!=null?l.parts[0].trim():null,D=new se(s.sourceSpan.start,(p||l||s).sourceSpan.end);this._addToParent(new DC(f,D))}_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(pt.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let D=new se(s.sourceSpan.start,this._peek.sourceSpan.end,s.sourceSpan.fullStart);this._addToParent(new mC(l.parts[0],p.parts[0],f,D,l.sourceSpan)),this._advance()}_parseExpansionCase(){let s=this._advance();if(this._peek.type!==22)return this.errors.push(pt.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 D=new Ch(p,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(D.build(),D.errors.length>0)return this.errors=this.errors.concat(D.errors),null;let E=new se(s.sourceSpan.start,f.sourceSpan.end,s.sourceSpan.fullStart),B=new se(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new gC(s.parts[0],D.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(lh(p,22)){if(p.pop(),p.length===0)return l}else return this.errors.push(pt.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(lh(p,20))p.pop();else return this.errors.push(pt.create(null,s.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(pt.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]==`
|
|
674
679
|
`){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]===`
|
|
675
|
-
`){let D=this._getContainer();D!=null&&D.children.length===0&&this.getTagDefinition(D.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,uh):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let D=s.sourceSpan;this._addToParent(new
|
|
680
|
+
`){let D=this._getContainer();D!=null&&D.children.length===0&&this.getTagDefinition(D.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,uh):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let D=s.sourceSpan;this._addToParent(new hC(f,new se(p.start,D.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof Tn&&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 D=this._getElementFullName(l,p,this._getClosestParentElement()),E=!1;if(this._peek.type===2){this._advance(),E=!0;let pe=this.getTagDefinition(D);this.canSelfClose||pe.canSelfClose||Xi(D)!==null||pe.isVoid||this.errors.push(pt.create(D,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 se(s.sourceSpan.start,B,s.sourceSpan.fullStart),K=new se(s.sourceSpan.start,B,s.sourceSpan.fullStart),z=new se(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new Tn(D,f,[],q,K,void 0,z),ge=this._getContainer();this._pushContainer(we,ge instanceof Tn&&this.getTagDefinition(ge.name).isClosedByChild(we.name)),E?this._popContainer(D,Tn,q):s.type===4&&(this._popContainer(D,Tn,null),this.errors.push(pt.create(D,q,`Opening tag "${D}" 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(pt.create(l,s.sourceSpan,`Void elements do not have end tags "${s.parts[1]}"`));else if(!this._popContainer(l,Tn,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(pt.create(l,s.sourceSpan,p))}}_popContainer(s,l,p){let f=!1;for(let D=this._containerStack.length-1;D>=0;D--){let E=this._containerStack[D];if(Xi(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(D,this._containerStack.length-D),!f;(E instanceof jr||E instanceof Tn&&!this.getTagDefinition(E.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=Zi(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let D="",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 z=this._advance();E.push(z),z.type===17?D+=z.parts.join("").replace(/&([^;]+);/g,uh):z.type===9?D+=z.parts[0]:D+=z.parts.join(""),q=p=z.sourceSpan.end}this._peek.type===15&&(q=p=this._advance().sourceSpan.end);let K=B&&q&&new se((f==null?void 0:f.sourceSpan.start)??B.start,q,(f==null?void 0:f.sourceSpan.fullStart)??B.fullStart);return new vC(l,D,new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,K,E.length>0?E:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new Zd(B.parts[0],B.sourceSpan))}this._peek.type===26&&this._advance();let p=this._peek.sourceSpan.fullStart,f=new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),D=new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new jr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(E,!1)}_consumeBlockClose(s){this._popContainer(null,jr,s.sourceSpan)||this.errors.push(pt.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 "}" HTML entity instead.'))}_consumeIncompleteBlock(s){let l=[];for(;this._peek.type===28;){let B=this._advance();l.push(new Zd(B.parts[0],B.sourceSpan))}let p=this._peek.sourceSpan.fullStart,f=new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),D=new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),E=new jr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(E,!1),this._popContainer(null,jr,null),this.errors.push(pt.create(s.parts[0],f,`Incomplete block "${s.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(s){let l=s.parts[0],p,f;if(this._peek.type!==31){this.errors.push(pt.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(pt.create(s.parts[0],s.sourceSpan,`Unterminated @let declaration "${l}". Declaration must be terminated with a semicolon.`));return}else f=this._advance();let D=f.sourceSpan.fullStart,E=new se(s.sourceSpan.start,D,s.sourceSpan.fullStart),B=s.sourceSpan.toString().lastIndexOf(l),q=s.sourceSpan.start.moveBy(B),K=new se(q,s.sourceSpan.end),z=new Qd(l,p.parts[0],E,K,p.sourceSpan);this._addToParent(z)}_consumeIncompleteLet(s){let l=s.parts[0]??"",p=l?` "${l}"`:"";if(l.length>0){let f=s.sourceSpan.toString().lastIndexOf(l),D=s.sourceSpan.start.moveBy(f),E=new se(D,s.sourceSpan.end),B=new se(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),q=new Qd(l,"",s.sourceSpan,E,B);this._addToParent(q)}this.errors.push(pt.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 Tn)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=Ji(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=Xi(p.name))}return Zi(s,l)}};function lh(a,s){return a.length>0&&a[a.length-1]===s}function uh(a,s){return ts[s]!==void 0?ts[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 RC=class extends MC{constructor(){super(hl)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},vl=null,qC=()=>(vl||(vl=new RC),vl);function ch(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:D,tokenizeAngularBlocks:E=!1,tokenizeAngularLetDeclaration:B=!1}=s;return qC().parse(a,"angular-html-parser",{tokenizeExpansionForms:E,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:E,tokenizeLet:B},f,D)}function HC(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var UC=HC,La=3;function zC(a){let s=a.slice(0,La);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
|
|
676
681
|
`,La);if(l===-1)return;let p=a.slice(La,l).trim(),f=a.indexOf(`
|
|
677
682
|
${s}`,l),D=p;if(D||(D=s==="+++"?"toml":"yaml"),f===-1&&s==="---"&&D==="yaml"&&(f=a.indexOf(`
|
|
678
|
-
...`,l)),f===-1)return;let E=f+1+La,B=a.charAt(E+1);if(!/\s?/u.test(B))return;let q=a.slice(0,E);return{type:"front-matter",language:D,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-La),raw:q}}function zC(a){let s=UC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var WC=zC,rs={attrs:!0,children:!0,cases:!0,expression:!0},ph=new Set(["parent"]),VC=class Ia{constructor(s={}){for(let l of new Set([...ph,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in rs&&(l=l.map(p=>this.createChild(p))),!ph.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in rs){let f=this[p];if(f){let D=GC(f,E=>E.map(s));l!==f&&(l||(l=new Ia({parent:this.parent})),l.setProperty(p,D))}}if(l)for(let p in this)p in rs||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in rs){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 Ia?s.clone():new Ia(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 Ia(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 GC(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var YC=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:JC},{regex:/^\[if([^\]]*)\]><!$/u,parse:XC},{regex:/^<!\s*\[endif\]$/u,parse:ZC}];function KC(a,s){if(a.value)for(let{regex:l,parse:p}of YC){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function JC(a,s,l){let[,p,f,D]=l,E=4+p.length,B=a.sourceSpan.start.moveBy(E),q=B.moveBy(D.length),[K,z]=(()=>{try{return[!0,s(D,B).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new se(B,q)}]]}})();return{type:"ieConditionalComment",complete:K,children:z,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new se(a.sourceSpan.start,B),endSourceSpan:new se(q,a.sourceSpan.end)}}function XC(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function ZC(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var yl=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"])]]),QC=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 e_(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!nl(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new se(a.parameters[0].sourceSpan.start,cn(!1,a.parameters,-1).sourceSpan.end)}}}function t_(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new se(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function n_(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function dh(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:K}=s,{rootNodes:z,errors:we}=ch(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:K?(...G)=>K(...G)?qt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(z.some(We=>We.type==="docType"&&We.value==="html"||We.type==="element"&&We.name.toLowerCase()==="html"))return dh(a,mh,l);let G,de=()=>G??(G=ch(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),Ke=We=>de().rootNodes.find(({startSourceSpan:dt})=>dt&&dt.start.offset===We.startSourceSpan.start.offset)??We;for(let[We,dt]of z.entries()){let{endSourceSpan:Lr,startSourceSpan:u_}=dt;if(Lr===null)we=de().errors,z[We]=Ke(dt);else if(r_(dt,l)){let gh=de().errors.find(vh=>vh.span.start.offset>u_.start.offset&&vh.span.start.offset<Lr.end.offset);gh&&hh(gh),z[We]=Ke(dt)}}}we.length>0&&hh(we[0]);let ge=G=>{let de=G.name.startsWith(":")?G.name.slice(1).split(":")[0]:null,Ke=G.nameSpan.toString(),We=de!==null&&Ke.startsWith(`${de}:`),dt=We?Ke.slice(de.length+1):Ke;G.name=dt,G.namespace=de,G.hasExplicitNamespace=We},pe=G=>{switch(G.type){case"element":ge(G);for(let de of G.attrs)ge(de),de.valueSpan?(de.value=de.valueSpan.toString(),/["']/u.test(de.value[0])&&(de.value=de.value.slice(1,-1))):de.value=null;break;case"comment":G.value=G.sourceSpan.toString().slice(4,-3);break;case"text":G.value=G.sourceSpan.toString();break}},Ae=(G,de)=>{let Ke=G.toLowerCase();return de(Ke)?Ke:G},Ye=G=>{if(G.type==="element"&&(D&&(!G.namespace||G.namespace===G.tagDefinition.implicitNamespacePrefix||ve(G))&&(G.name=Ae(G.name,de=>QC.has(de))),E))for(let de of G.attrs)de.namespace||(de.name=Ae(de.name,Ke=>yl.has(G.name)&&(yl.get("*").has(Ke)||yl.get(G.name).has(Ke))))},it=G=>{G.sourceSpan&&G.endSourceSpan&&(G.sourceSpan=new se(G.sourceSpan.start,G.endSourceSpan.end))},lt=G=>{if(G.type==="element"){let de=hl(q?G.name:G.name.toLowerCase());!G.namespace||G.namespace===de.implicitNamespacePrefix||ve(G)?G.tagDefinition=de:G.tagDefinition=hl("")}};return eh(new class extends DC{visitExpansionCase(G,de){p==="angular"&&this.visitChildren(de,Ke=>{Ke(G.expression)})}visit(G){pe(G),lt(G),Ye(G),it(G)}},z),z}function r_(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||$r(s,{language:p})==="html"}function hh(a){let{msg:s,span:{start:l,end:p}}=a;throw HC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function fh(a,s,l={},p=!0){let{frontMatter:f,content:D}=p?WC(a):{frontMatter:null,content:a},E=new Ld(a,l.filepath),B=new dl(E,0,0,0),q=B.moveBy(a.length),K={type:"root",sourceSpan:new se(B,q),children:dh(D,s,l)};if(f){let ge=new dl(E,0,0,0),pe=ge.moveBy(f.raw.length);f.sourceSpan=new se(ge,pe),K.children.unshift(f)}let z=new VC(K),we=(ge,pe)=>{let{offset:Ae}=pe,Ye=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),it=fh(Ye+ge,s,l,!1);it.sourceSpan=new se(pe,cn(!1,it.children,-1).sourceSpan.end);let lt=it.children[0];return lt.length===Ae?it.children.shift():(lt.sourceSpan=new se(lt.sourceSpan.start.moveBy(Ae),lt.sourceSpan.end),lt.value=lt.value.slice(Ae)),it};return z.walk(ge=>{if(ge.type==="comment"){let pe=KC(ge,we);pe&&ge.parent.replaceChild(ge,pe)}e_(ge),t_(ge),n_(ge)}),z}function as(a){return{parse:(s,l)=>fh(s,a,l),hasPragma:xw,astFormat:"html",locStart:Hi,locEnd:Ui}}var mh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},a_=as(mh),i_=as({name:"angular"}),s_=as({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:D})=>f==="lang"&&D!=="html"&&D!==""&&D!==void 0))}}),o_=as({name:"lwc",canSelfClose:!1}),l_={html:Qw};return h(k)})})(pp);var dp=pp.exports;const n0=xh({__proto__:null,default:Ra(dp)},[dp]);function r0(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 a0(e,t){if(e==null)return{};var n,r,i=r0(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 co(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 i0(e){if(Array.isArray(e))return co(e)}function s0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o0(e,t){if(e){if(typeof e=="string")return co(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)?co(e,t):void 0}}function l0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
679
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function po(e){return
|
|
680
|
-
`))})}function
|
|
681
|
-
`),style:u,startingLineNumber:c}))}function
|
|
682
|
-
`);P.forEach(function(
|
|
683
|
-
`)};if(J===0){var
|
|
684
|
-
`).length);var yt=ue+S,Nt=w0(Le,L,J,x,T,S,yt,$,P);return I.createElement(N,Pe,I.createElement(Z,v,!T&&ae,Y({rows:Nt,stylesheet:c,useInlineStyles:b})))}}var S0=F0,E0=Object.prototype.hasOwnProperty;function F0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)E0.call(n,r)&&(e[r]=n[r])}return e}var wp=Cp,mo=Cp.prototype;mo.space=null,mo.normal={},mo.property={};function Cp(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var _p=S0,A0=wp,$0=T0;function T0(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 A0(_p.apply(null,n),_p.apply(null,r),u)}var go=B0;function B0(e){return e.toLowerCase()}var xp=Sp,Tt=Sp.prototype;Tt.space=null,Tt.attribute=null,Tt.property=null,Tt.boolean=!1,Tt.booleanish=!1,Tt.overloadedBoolean=!1,Tt.number=!1,Tt.commaSeparated=!1,Tt.spaceSeparated=!1,Tt.commaOrSpaceSeparated=!1,Tt.mustUseProperty=!1,Tt.defined=!1;function Sp(e,t){this.property=e,this.attribute=t}var Gt={},N0=0;Gt.boolean=Zn(),Gt.booleanish=Zn(),Gt.overloadedBoolean=Zn(),Gt.number=Zn(),Gt.spaceSeparated=Zn(),Gt.commaSeparated=Zn(),Gt.commaOrSpaceSeparated=Zn();function Zn(){return Math.pow(2,++N0)}var Ep=xp,Fp=Gt,Ap=vo;vo.prototype=new Ep,vo.prototype.defined=!0;var $p=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],j0=$p.length;function vo(e,t,n,r){var i=-1,o;for(Tp(this,"space",r),Ep.call(this,e,t);++i<j0;)o=$p[i],Tp(this,o,(n&Fp[o])===Fp[o])}function Tp(e,t,n){n&&(e[t]=n)}var Bp=go,P0=wp,L0=Ap,ha=O0;function O0(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 L0(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[Bp(d)]=d,c[Bp(h.attribute)]=d;return new P0(u,c,t)}var M0=ha,I0=M0({space:"xlink",transform:R0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function R0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var q0=ha,H0=q0({space:"xml",transform:U0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function U0(e,t){return"xml:"+t.slice(3).toLowerCase()}var z0=W0;function W0(e,t){return t in e?e[t]:t}var V0=z0,Np=G0;function G0(e,t){return V0(e,t.toLowerCase())}var Y0=ha,K0=Np,J0=Y0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:K0,properties:{xmlns:null,xmlnsXLink:null}}),yo=Gt,X0=ha,vt=yo.booleanish,Bt=yo.number,Qn=yo.spaceSeparated,Z0=X0({transform:Q0,properties:{ariaActiveDescendant:null,ariaAtomic:vt,ariaAutoComplete:null,ariaBusy:vt,ariaChecked:vt,ariaColCount:Bt,ariaColIndex:Bt,ariaColSpan:Bt,ariaControls:Qn,ariaCurrent:null,ariaDescribedBy:Qn,ariaDetails:null,ariaDisabled:vt,ariaDropEffect:Qn,ariaErrorMessage:null,ariaExpanded:vt,ariaFlowTo:Qn,ariaGrabbed:vt,ariaHasPopup:null,ariaHidden:vt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qn,ariaLevel:Bt,ariaLive:null,ariaModal:vt,ariaMultiLine:vt,ariaMultiSelectable:vt,ariaOrientation:null,ariaOwns:Qn,ariaPlaceholder:null,ariaPosInSet:Bt,ariaPressed:vt,ariaReadOnly:vt,ariaRelevant:null,ariaRequired:vt,ariaRoleDescription:Qn,ariaRowCount:Bt,ariaRowIndex:Bt,ariaRowSpan:Bt,ariaSelected:vt,ariaSetSize:Bt,ariaSort:null,ariaValueMax:Bt,ariaValueMin:Bt,ariaValueNow:Bt,ariaValueText:null,role:null}});function Q0(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var xr=Gt,eb=ha,tb=Np,oe=xr.boolean,nb=xr.overloadedBoolean,fa=xr.booleanish,$e=xr.number,ct=xr.spaceSeparated,Ci=xr.commaSeparated,rb=eb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ci,acceptCharset:ct,accessKey:ct,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:ct,autoFocus:oe,autoPlay:oe,capture:oe,charSet:null,checked:oe,cite:null,className:ct,cols:$e,colSpan:null,content:null,contentEditable:fa,controls:oe,controlsList:ct,coords:$e|Ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:nb,draggable:fa,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:ct,height:$e,hidden:oe,high:$e,href:null,hrefLang:null,htmlFor:ct,httpEquiv:ct,id:null,imageSizes:null,imageSrcSet:Ci,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:ct,itemRef:ct,itemScope:oe,itemType:ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:$e,pattern:null,ping:ct,placeholder:null,playsInline:oe,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:ct,required:oe,reversed:oe,rows:$e,rowSpan:$e,sandbox:ct,scope:null,scoped:oe,seamless:oe,selected:oe,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:fa,src:null,srcDoc:null,srcLang:null,srcSet:Ci,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:fa,width:$e,wrap:null,align:null,aLink:null,archive:ct,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:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:fa,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:oe,disableRemotePlayback:oe,prefix:null,property:null,results:$e,security:null,unselectable:null}}),ab=$0,ib=I0,sb=H0,ob=J0,lb=Z0,ub=rb,cb=ab([sb,ib,ob,lb,ub]),pb=go,db=Ap,hb=xp,Do="data",fb=vb,mb=/^data[-\w.:]+$/i,jp=/-[a-z]/g,gb=/[A-Z]/g;function vb(e,t){var n=pb(t),r=t,i=hb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Do&&mb.test(t)&&(t.charAt(4)==="-"?r=yb(t):t=Db(t),i=db),new i(r,t))}function yb(e){var t=e.slice(5).replace(jp,kb);return Do+t.charAt(0).toUpperCase()+t.slice(1)}function Db(e){var t=e.slice(4);return jp.test(t)?e:(t=t.replace(gb,bb),t.charAt(0)!=="-"&&(t="-"+t),Do+t)}function bb(e){return"-"+e.toLowerCase()}function kb(e){return e.charAt(1).toUpperCase()}var wb=Cb,Pp=/[#.]/g;function Cb(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)Pp.lastIndex=o,d=Pp.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 bo={};bo.parse=Sb,bo.stringify=Eb;var Lp="",_b=" ",xb=/[ \t\n\r\f]+/g;function Sb(e){var t=String(e||Lp).trim();return t===Lp?[]:t.split(xb)}function Eb(e){return e.join(_b).trim()}var ko={};ko.parse=Fb,ko.stringify=Ab;var wo=",",Op=" ",ma="";function Fb(e){for(var t=[],n=String(e||ma),r=n.indexOf(wo),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(wo,i);return t}function Ab(e,t){var n=t||{},r=n.padLeft===!1?ma:Op,i=n.padRight?Op:ma;return e[e.length-1]===ma&&(e=e.concat(ma)),e.join(i+wo+r).trim()}var $b=fb,Mp=go,Tb=wb,Ip=bo.parse,Rp=ko.parse,Bb=jb,Nb={}.hasOwnProperty;function jb(e,t,n){var r=n?Ib(n):null;return i;function i(u,c){var d=Tb(u,t),h=Array.prototype.slice.call(arguments,2),m=d.tagName.toLowerCase(),v;if(d.tagName=r&&Nb.call(r,m)?r[m]:m,c&&Pb(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return qp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,m,v;d==null||d!==d||(h=$b(e,c),m=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=Ip(v):h.commaSeparated?v=Rp(v):h.commaOrSpaceSeparated&&(v=Ip(Rp(v).join(" ")))),m==="style"&&typeof d!="string"&&(v=Mb(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=Ob(h,m,v))}}function Pb(e,t){return typeof e=="string"||"length"in e||Lb(t.tagName,e)}function Lb(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 qp(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;)qp(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 Ob(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return Hp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=Hp(e,t,n[r]);return o}function Hp(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===""||Mp(n)===Mp(t))&&(r=!0),r}function Mb(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function Ib(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var Rb=cb,qb=Bb,Up=qb(Rb,"div");Up.displayName="html";var Hb=Up,Ub=Hb;const zb={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:"ÿ"},Wb={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 zp=Vb;function Vb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var Gb=Yb;function Yb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Kb=Jb;function Jb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Xb=Kb,Zb=zp,Qb=ek;function ek(e){return Xb(e)||Zb(e)}var _i,tk=59,nk=rk;function rk(e){var t="&"+e+";",n;return _i=_i||document.createElement("i"),_i.innerHTML=t,n=_i.textContent,n.charCodeAt(n.length-1)===tk&&e!=="semi"||n===t?!1:n}var Wp=zb,Vp=Wb,ak=zp,ik=Gb,Gp=Qb,sk=nk,ok=bk,lk={}.hasOwnProperty,Sr=String.fromCharCode,uk=Function.prototype,Yp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ck=9,Kp=10,pk=12,dk=32,Jp=38,hk=59,fk=60,mk=61,gk=35,vk=88,yk=120,Dk=65533,Er="named",Co="hexadecimal",_o="decimal",xo={};xo[Co]=16,xo[_o]=10;var xi={};xi[Er]=Gp,xi[_o]=ak,xi[Co]=ik;var Xp=1,Zp=2,Qp=3,ed=4,td=5,So=6,nd=7,En={};En[Xp]="Named character references must be terminated by a semicolon",En[Zp]="Numeric character references must be terminated by a semicolon",En[Qp]="Named character references cannot be empty",En[ed]="Numeric character references cannot be empty",En[td]="Named character references must be known",En[So]="Numeric character references cannot be disallowed",En[nd]="Numeric character references cannot be outside the permissible Unicode range";function bk(e,t){var n={},r,i;t||(t={});for(i in Yp)r=t[i],n[i]=r??Yp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),kk(e,n)}function kk(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,m=t.position,v=t.indent||[],y=e.length,b=0,k=-1,x=m.column||1,C=m.line||1,T="",F=[],S,A,_,$,L,M,P,W,J,Y,O,N,H,Z,fe,ee,le,me,ae;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=ye(),W=u?st:uk,b--,y++;++b<y;)if(L===Kp&&(x=v[k]||1),L=e.charCodeAt(b),L===Jp){if(P=e.charCodeAt(b+1),P===ck||P===Kp||P===pk||P===dk||P===Jp||P===fk||P!==P||n&&P===n){T+=Sr(L),x++;continue}for(H=b+1,N=H,ae=H,P===gk?(ae=++N,P=e.charCodeAt(ae),P===vk||P===yk?(Z=Co,ae=++N):Z=_o):Z=Er,S="",O="",$="",fe=xi[Z],ae--;++ae<y&&(P=e.charCodeAt(ae),!!fe(P));)$+=Sr(P),Z===Er&&lk.call(Wp,$)&&(S=$,O=Wp[$]);_=e.charCodeAt(ae)===hk,_&&(ae++,A=Z===Er?sk($):!1,A&&(S=$,O=A)),me=1+ae-H,!_&&!r||($?Z===Er?(_&&!O?W(td,1):(S!==$&&(ae=N+S.length,me=1+ae-N,_=!1),_||(J=S?Xp:Qp,t.attribute?(P=e.charCodeAt(ae),P===mk?(W(J,me),O=null):Gp(P)?O=null:W(J,me)):W(J,me))),M=O):(_||W(Zp,me),M=parseInt($,xo[Z]),wk(M)?(W(nd,me),M=Sr(Dk)):M in Vp?(W(So,me),M=Vp[M]):(Y="",Ck(M)&&W(So,me),M>65535&&(M-=65536,Y+=Sr(M>>>10|55296),M=56320|M&1023),M=Y+Sr(M))):Z!==Er&&W(ed,me)),M?(Pe(),ee=ye(),b=ae-1,x+=ae-H+1,F.push(M),le=ye(),le.offset++,o&&o.call(d,M,{start:ee,end:le},e.slice(H-1,ae)),ee=le):($=e.slice(H-1,ae),T+=$,x+=$.length,b=ae-1)}else L===10&&(C++,k++,x=0),L===L?(T+=Sr(L),x++):Pe();return F.join("");function ye(){return{line:C,column:x,offset:b+(m.offset||0)}}function st(Fe,Le){var ue=ye();ue.column+=Le,ue.offset+=Le,u.call(h,En[Fe],ue,Fe)}function Pe(){T&&(F.push(T),i&&i.call(c,T,{start:ee,end:ye()}),T="")}}function wk(e){return e>=55296&&e<=57343||e>1114111}function Ck(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 rd={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
683
|
+
...`,l)),f===-1)return;let E=f+1+La,B=a.charAt(E+1);if(!/\s?/u.test(B))return;let q=a.slice(0,E);return{type:"front-matter",language:D,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:q.slice(-La),raw:q}}function WC(a){let s=zC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var VC=WC,rs={attrs:!0,children:!0,cases:!0,expression:!0},ph=new Set(["parent"]),GC=class Ia{constructor(s={}){for(let l of new Set([...ph,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in rs&&(l=l.map(p=>this.createChild(p))),!ph.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in rs){let f=this[p];if(f){let D=YC(f,E=>E.map(s));l!==f&&(l||(l=new Ia({parent:this.parent})),l.setProperty(p,D))}}if(l)for(let p in this)p in rs||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in rs){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 Ia?s.clone():new Ia(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 Ia(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 YC(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var KC=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:XC},{regex:/^\[if([^\]]*)\]><!$/u,parse:ZC},{regex:/^<!\s*\[endif\]$/u,parse:QC}];function JC(a,s){if(a.value)for(let{regex:l,parse:p}of KC){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function XC(a,s,l){let[,p,f,D]=l,E=4+p.length,B=a.sourceSpan.start.moveBy(E),q=B.moveBy(D.length),[K,z]=(()=>{try{return[!0,s(D,B).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new se(B,q)}]]}})();return{type:"ieConditionalComment",complete:K,children:z,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new se(a.sourceSpan.start,B),endSourceSpan:new se(q,a.sourceSpan.end)}}function ZC(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function QC(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var yl=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"])]]),e_=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 t_(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!nl(a.parameters)){delete a.parameters;return}for(let s of a.parameters)s.type="angularControlFlowBlockParameter";a.parameters={type:"angularControlFlowBlockParameters",children:a.parameters,sourceSpan:new se(a.parameters[0].sourceSpan.start,cn(!1,a.parameters,-1).sourceSpan.end)}}}function n_(a){a.type==="letDeclaration"&&(a.type="angularLetDeclaration",a.id=a.name,a.init={type:"angularLetDeclarationInitializer",sourceSpan:new se(a.valueSpan.start,a.valueSpan.end),value:a.value},delete a.name,delete a.value)}function r_(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function dh(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:q=!1,shouldParseAsRawText:K}=s,{rootNodes:z,errors:we}=ch(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q,getTagContentType:K?(...G)=>K(...G)?qt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(z.some(Ve=>Ve.type==="docType"&&Ve.value==="html"||Ve.type==="element"&&Ve.name.toLowerCase()==="html"))return dh(a,mh,l);let G,de=()=>G??(G=ch(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:q})),Ke=Ve=>de().rootNodes.find(({startSourceSpan:dt})=>dt&&dt.start.offset===Ve.startSourceSpan.start.offset)??Ve;for(let[Ve,dt]of z.entries()){let{endSourceSpan:Lr,startSourceSpan:c_}=dt;if(Lr===null)we=de().errors,z[Ve]=Ke(dt);else if(a_(dt,l)){let gh=de().errors.find(vh=>vh.span.start.offset>c_.start.offset&&vh.span.start.offset<Lr.end.offset);gh&&hh(gh),z[Ve]=Ke(dt)}}}we.length>0&&hh(we[0]);let ge=G=>{let de=G.name.startsWith(":")?G.name.slice(1).split(":")[0]:null,Ke=G.nameSpan.toString(),Ve=de!==null&&Ke.startsWith(`${de}:`),dt=Ve?Ke.slice(de.length+1):Ke;G.name=dt,G.namespace=de,G.hasExplicitNamespace=Ve},pe=G=>{switch(G.type){case"element":ge(G);for(let de of G.attrs)ge(de),de.valueSpan?(de.value=de.valueSpan.toString(),/["']/u.test(de.value[0])&&(de.value=de.value.slice(1,-1))):de.value=null;break;case"comment":G.value=G.sourceSpan.toString().slice(4,-3);break;case"text":G.value=G.sourceSpan.toString();break}},Ae=(G,de)=>{let Ke=G.toLowerCase();return de(Ke)?Ke:G},Ye=G=>{if(G.type==="element"&&(D&&(!G.namespace||G.namespace===G.tagDefinition.implicitNamespacePrefix||ve(G))&&(G.name=Ae(G.name,de=>e_.has(de))),E))for(let de of G.attrs)de.namespace||(de.name=Ae(de.name,Ke=>yl.has(G.name)&&(yl.get("*").has(Ke)||yl.get(G.name).has(Ke))))},it=G=>{G.sourceSpan&&G.endSourceSpan&&(G.sourceSpan=new se(G.sourceSpan.start,G.endSourceSpan.end))},lt=G=>{if(G.type==="element"){let de=hl(q?G.name:G.name.toLowerCase());!G.namespace||G.namespace===de.implicitNamespacePrefix||ve(G)?G.tagDefinition=de:G.tagDefinition=hl("")}};return eh(new class extends bC{visitExpansionCase(G,de){p==="angular"&&this.visitChildren(de,Ke=>{Ke(G.expression)})}visit(G){pe(G),lt(G),Ye(G),it(G)}},z),z}function a_(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||$r(s,{language:p})==="html"}function hh(a){let{msg:s,span:{start:l,end:p}}=a;throw UC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function fh(a,s,l={},p=!0){let{frontMatter:f,content:D}=p?VC(a):{frontMatter:null,content:a},E=new Ld(a,l.filepath),B=new dl(E,0,0,0),q=B.moveBy(a.length),K={type:"root",sourceSpan:new se(B,q),children:dh(D,s,l)};if(f){let ge=new dl(E,0,0,0),pe=ge.moveBy(f.raw.length);f.sourceSpan=new se(ge,pe),K.children.unshift(f)}let z=new GC(K),we=(ge,pe)=>{let{offset:Ae}=pe,Ye=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),it=fh(Ye+ge,s,l,!1);it.sourceSpan=new se(pe,cn(!1,it.children,-1).sourceSpan.end);let lt=it.children[0];return lt.length===Ae?it.children.shift():(lt.sourceSpan=new se(lt.sourceSpan.start.moveBy(Ae),lt.sourceSpan.end),lt.value=lt.value.slice(Ae)),it};return z.walk(ge=>{if(ge.type==="comment"){let pe=JC(ge,we);pe&&ge.parent.replaceChild(ge,pe)}t_(ge),n_(ge),r_(ge)}),z}function as(a){return{parse:(s,l)=>fh(s,a,l),hasPragma:Sw,astFormat:"html",locStart:Hi,locEnd:Ui}}var mh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},i_=as(mh),s_=as({name:"angular"}),o_=as({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(a,s,l,p){return a.toLowerCase()!=="html"&&!l&&(a!=="template"||p.some(({name:f,value:D})=>f==="lang"&&D!=="html"&&D!==""&&D!==void 0))}}),l_=as({name:"lwc",canSelfClose:!1}),u_={html:eC};return h(k)})})(pp);var dp=pp.exports;const r0=xh({__proto__:null,default:Ra(dp)},[dp]);function a0(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 i0(e,t){if(e==null)return{};var n,r,i=a0(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 co(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 s0(e){if(Array.isArray(e))return co(e)}function o0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l0(e,t){if(e){if(typeof e=="string")return co(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)?co(e,t):void 0}}function u0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
684
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function po(e){return s0(e)||o0(e)||l0(e)||u0()}function da(e){"@babel/helpers - typeof";return da=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},da(e)}function c0(e,t){if(da(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p0(e){var t=c0(e,"string");return da(t)=="symbol"?t:t+""}function hp(e,t,n){return(t=p0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(){return ho=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},ho.apply(null,arguments)}function fp(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 _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fp(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d0(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 fo={};function h0(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return fo[t]||(fo[t]=d0(e)),fo[t]}function f0(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=h0(r);return i.reduce(function(o,u){return _r(_r({},o),n[u])},t)}function mp(e){return e.join(" ")}function m0(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return gp({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function gp(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,m=t.value;if(d==="text")return m;if(h){var v=m0(n,o),y;if(!o)y=_r(_r({},c),{},{className:mp(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)}));y=_r(_r({},c),{},{className:mp(x)||void 0,style:f0(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return I.createElement(h,ho({key:u},y),C)}}const g0=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var v0=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function vp(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 Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vp(Object(n),!0).forEach(function(r){hp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var y0=/\n/g;function D0(e){return e.match(y0)}function b0(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return I.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
|
|
685
|
+
`))})}function k0(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 I.createElement("code",{style:Object.assign({},n,i)},b0({lines:t.replace(/\n$/,"").split(`
|
|
686
|
+
`),style:u,startingLineNumber:c}))}function w0(e){return"".concat(e.toString().length,".25em")}function yp(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 Dp(e,t,n){var r={display:"inline-block",minWidth:w0(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Sn(Sn({},r),i);return o}function wi(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,m=e.showLineNumbers,v=e.wrapLongLines,y=e.wrapLines,b=y===void 0?!1:y,k=b?Sn({},typeof c=="function"?c(n):c):{};if(k.className=k.className?[].concat(po(k.className.trim().split(/\s+/)),po(h)):h,n&&o){var x=Dp(r,n,i);t.unshift(yp(n,x))}return v&m&&(k.style=Sn({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:t}}function bp(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(wi({children:[i],className:po(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);bp(i.children,o).forEach(function(u){return n.push(u)})}}return n}function C0(e,t,n,r,i,o,u,c,d){var h,m=bp(e.value),v=[],y=-1,b=0;function k(_,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wi({children:_,lineNumber:$,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:L,showLineNumbers:r,wrapLongLines:d,wrapLines:t})}function x(_,$){if(r&&$&&i){var L=Dp(c,$,u);_.unshift(yp($,L))}return _}function C(_,$){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||L.length>0?k(_,$,L):x(_,$)}for(var T=function(){var $=m[b],L=$.children[0].value,M=D0(L);if(M){var P=L.split(`
|
|
687
|
+
`);P.forEach(function(V,J){var Y=r&&v.length+o,O={type:"text",value:"".concat(V,`
|
|
688
|
+
`)};if(J===0){var j=m.slice(y+1,b).concat(wi({children:[O],className:$.properties.className})),H=C(j,Y);v.push(H)}else if(J===P.length-1){var Z=m[b+1]&&m[b+1].children&&m[b+1].children[0],fe={type:"text",value:"".concat(V)};if(Z){var te=wi({children:[fe],className:$.properties.className});m.splice(b+1,0,te)}else{var le=[fe],me=C(le,Y,$.properties.className);v.push(me)}}else{var ae=[O],ye=C(ae,Y,$.properties.className);v.push(ye)}}),y=b}b++};b<m.length;)T();if(y!==m.length-1){var F=m.slice(y+1,m.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 _0(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return gp({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function kp(e){return e&&typeof e.highlightAuto<"u"}function x0(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(kp(t)){var o=g0(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 S0(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,m=r.codeTagProps,v=m===void 0?{className:i?"language-".concat(i):void 0,style:Sn(Sn({},c['code[class*="language-"]']),c['code[class*="language-'.concat(i,'"]')])}:m,y=r.useInlineStyles,b=y===void 0?!0:y,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?{}:_,L=r.wrapLines,M=r.wrapLongLines,P=M===void 0?!1:M,V=r.lineProps,J=V===void 0?{}:V,Y=r.renderer,O=r.PreTag,j=O===void 0?"pre":O,H=r.CodeTag,Z=H===void 0?"code":H,fe=r.code,te=fe===void 0?(Array.isArray(o)?o[0]:o)||"":fe,le=r.astGenerator,me=i0(r,v0);le=le||e;var ae=x?I.createElement(k0,{containerStyle:A,codeStyle:v.style||{},numberStyle:$,startingLineNumber:S,codeString:te}):null,ye=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},st=kp(le)?"hljs":"prismjs",Le=b?Object.assign({},me,{style:Object.assign({},ye,h)}):Object.assign({},me,{className:me.className?"".concat(st," ").concat(me.className):st,style:Object.assign({},h)});if(P?v.style=Sn({whiteSpace:"pre-wrap"},v.style):v.style=Sn({whiteSpace:"pre"},v.style),!le)return I.createElement(j,Le,ae,I.createElement(Z,v,te));(L===void 0&&Y||P)&&(L=!0),Y=Y||_0;var Fe=[{type:"text",value:te}],Oe=x0({astGenerator:le,language:i,code:te,defaultCodeValue:Fe});Oe.language===null&&(Oe.value=Fe);var ue=Oe.value.length;ue===1&&Oe.value[0].type==="text"&&(ue=Oe.value[0].value.split(`
|
|
689
|
+
`).length);var yt=ue+S,jt=C0(Oe,L,J,x,T,S,yt,$,P);return I.createElement(j,Le,I.createElement(Z,v,!T&&ae,Y({rows:jt,stylesheet:c,useInlineStyles:b})))}}var E0=A0,F0=Object.prototype.hasOwnProperty;function A0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)F0.call(n,r)&&(e[r]=n[r])}return e}var wp=Cp,mo=Cp.prototype;mo.space=null,mo.normal={},mo.property={};function Cp(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var _p=E0,$0=wp,T0=B0;function B0(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 $0(_p.apply(null,n),_p.apply(null,r),u)}var go=N0;function N0(e){return e.toLowerCase()}var xp=Sp,Bt=Sp.prototype;Bt.space=null,Bt.attribute=null,Bt.property=null,Bt.boolean=!1,Bt.booleanish=!1,Bt.overloadedBoolean=!1,Bt.number=!1,Bt.commaSeparated=!1,Bt.spaceSeparated=!1,Bt.commaOrSpaceSeparated=!1,Bt.mustUseProperty=!1,Bt.defined=!1;function Sp(e,t){this.property=e,this.attribute=t}var Gt={},j0=0;Gt.boolean=Zn(),Gt.booleanish=Zn(),Gt.overloadedBoolean=Zn(),Gt.number=Zn(),Gt.spaceSeparated=Zn(),Gt.commaSeparated=Zn(),Gt.commaOrSpaceSeparated=Zn();function Zn(){return Math.pow(2,++j0)}var Ep=xp,Fp=Gt,Ap=vo;vo.prototype=new Ep,vo.prototype.defined=!0;var $p=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],P0=$p.length;function vo(e,t,n,r){var i=-1,o;for(Tp(this,"space",r),Ep.call(this,e,t);++i<P0;)o=$p[i],Tp(this,o,(n&Fp[o])===Fp[o])}function Tp(e,t,n){n&&(e[t]=n)}var Bp=go,L0=wp,O0=Ap,ha=M0;function M0(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 O0(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[Bp(d)]=d,c[Bp(h.attribute)]=d;return new L0(u,c,t)}var I0=ha,R0=I0({space:"xlink",transform:q0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function q0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var H0=ha,U0=H0({space:"xml",transform:z0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function z0(e,t){return"xml:"+t.slice(3).toLowerCase()}var W0=V0;function V0(e,t){return t in e?e[t]:t}var G0=W0,Np=Y0;function Y0(e,t){return G0(e,t.toLowerCase())}var K0=ha,J0=Np,X0=K0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:J0,properties:{xmlns:null,xmlnsXLink:null}}),yo=Gt,Z0=ha,vt=yo.booleanish,Nt=yo.number,Qn=yo.spaceSeparated,Q0=Z0({transform:eb,properties:{ariaActiveDescendant:null,ariaAtomic:vt,ariaAutoComplete:null,ariaBusy:vt,ariaChecked:vt,ariaColCount:Nt,ariaColIndex:Nt,ariaColSpan:Nt,ariaControls:Qn,ariaCurrent:null,ariaDescribedBy:Qn,ariaDetails:null,ariaDisabled:vt,ariaDropEffect:Qn,ariaErrorMessage:null,ariaExpanded:vt,ariaFlowTo:Qn,ariaGrabbed:vt,ariaHasPopup:null,ariaHidden:vt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qn,ariaLevel:Nt,ariaLive:null,ariaModal:vt,ariaMultiLine:vt,ariaMultiSelectable:vt,ariaOrientation:null,ariaOwns:Qn,ariaPlaceholder:null,ariaPosInSet:Nt,ariaPressed:vt,ariaReadOnly:vt,ariaRelevant:null,ariaRequired:vt,ariaRoleDescription:Qn,ariaRowCount:Nt,ariaRowIndex:Nt,ariaRowSpan:Nt,ariaSelected:vt,ariaSetSize:Nt,ariaSort:null,ariaValueMax:Nt,ariaValueMin:Nt,ariaValueNow:Nt,ariaValueText:null,role:null}});function eb(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var xr=Gt,tb=ha,nb=Np,oe=xr.boolean,rb=xr.overloadedBoolean,fa=xr.booleanish,$e=xr.number,ct=xr.spaceSeparated,Ci=xr.commaSeparated,ab=tb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:nb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ci,acceptCharset:ct,accessKey:ct,action:null,allow:null,allowFullScreen:oe,allowPaymentRequest:oe,allowUserMedia:oe,alt:null,as:null,async:oe,autoCapitalize:null,autoComplete:ct,autoFocus:oe,autoPlay:oe,capture:oe,charSet:null,checked:oe,cite:null,className:ct,cols:$e,colSpan:null,content:null,contentEditable:fa,controls:oe,controlsList:ct,coords:$e|Ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:rb,draggable:fa,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oe,formTarget:null,headers:ct,height:$e,hidden:oe,high:$e,href:null,hrefLang:null,htmlFor:ct,httpEquiv:ct,id:null,imageSizes:null,imageSrcSet:Ci,inputMode:null,integrity:null,is:null,isMap:oe,itemId:null,itemProp:ct,itemRef:ct,itemScope:oe,itemType:ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oe,low:$e,manifest:null,max:null,maxLength:$e,media:null,method:null,min:null,minLength:$e,multiple:oe,muted:oe,name:null,nonce:null,noModule:oe,noValidate:oe,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:oe,optimum:$e,pattern:null,ping:ct,placeholder:null,playsInline:oe,poster:null,preload:null,readOnly:oe,referrerPolicy:null,rel:ct,required:oe,reversed:oe,rows:$e,rowSpan:$e,sandbox:ct,scope:null,scoped:oe,seamless:oe,selected:oe,shape:null,size:$e,sizes:null,slot:null,span:$e,spellCheck:fa,src:null,srcDoc:null,srcLang:null,srcSet:Ci,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:fa,width:$e,wrap:null,align:null,aLink:null,archive:ct,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:oe,declare:oe,event:null,face:null,frame:null,frameBorder:null,hSpace:$e,leftMargin:$e,link:null,longDesc:null,lowSrc:null,marginHeight:$e,marginWidth:$e,noResize:oe,noHref:oe,noShade:oe,noWrap:oe,object:null,profile:null,prompt:null,rev:null,rightMargin:$e,rules:null,scheme:null,scrolling:fa,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:oe,disableRemotePlayback:oe,prefix:null,property:null,results:$e,security:null,unselectable:null}}),ib=T0,sb=R0,ob=U0,lb=X0,ub=Q0,cb=ab,pb=ib([ob,sb,lb,ub,cb]),db=go,hb=Ap,fb=xp,Do="data",mb=yb,gb=/^data[-\w.:]+$/i,jp=/-[a-z]/g,vb=/[A-Z]/g;function yb(e,t){var n=db(t),r=t,i=fb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===Do&&gb.test(t)&&(t.charAt(4)==="-"?r=Db(t):t=bb(t),i=hb),new i(r,t))}function Db(e){var t=e.slice(5).replace(jp,wb);return Do+t.charAt(0).toUpperCase()+t.slice(1)}function bb(e){var t=e.slice(4);return jp.test(t)?e:(t=t.replace(vb,kb),t.charAt(0)!=="-"&&(t="-"+t),Do+t)}function kb(e){return"-"+e.toLowerCase()}function wb(e){return e.charAt(1).toUpperCase()}var Cb=_b,Pp=/[#.]/g;function _b(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)Pp.lastIndex=o,d=Pp.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 bo={};bo.parse=Eb,bo.stringify=Fb;var Lp="",xb=" ",Sb=/[ \t\n\r\f]+/g;function Eb(e){var t=String(e||Lp).trim();return t===Lp?[]:t.split(Sb)}function Fb(e){return e.join(xb).trim()}var ko={};ko.parse=Ab,ko.stringify=$b;var wo=",",Op=" ",ma="";function Ab(e){for(var t=[],n=String(e||ma),r=n.indexOf(wo),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(wo,i);return t}function $b(e,t){var n=t||{},r=n.padLeft===!1?ma:Op,i=n.padRight?Op:ma;return e[e.length-1]===ma&&(e=e.concat(ma)),e.join(i+wo+r).trim()}var Tb=mb,Mp=go,Bb=Cb,Ip=bo.parse,Rp=ko.parse,Nb=Pb,jb={}.hasOwnProperty;function Pb(e,t,n){var r=n?Rb(n):null;return i;function i(u,c){var d=Bb(u,t),h=Array.prototype.slice.call(arguments,2),m=d.tagName.toLowerCase(),v;if(d.tagName=r&&jb.call(r,m)?r[m]:m,c&&Lb(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return qp(d.children,h),d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}function o(u,c,d){var h,m,v;d==null||d!==d||(h=Tb(e,c),m=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=Ip(v):h.commaSeparated?v=Rp(v):h.commaOrSpaceSeparated&&(v=Ip(Rp(v).join(" ")))),m==="style"&&typeof d!="string"&&(v=Ib(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=Mb(h,m,v))}}function Lb(e,t){return typeof e=="string"||"length"in e||Ob(t.tagName,e)}function Ob(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 qp(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;)qp(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 Mb(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return Hp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=Hp(e,t,n[r]);return o}function Hp(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===""||Mp(n)===Mp(t))&&(r=!0),r}function Ib(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function Rb(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var qb=pb,Hb=Nb,Up=Hb(qb,"div");Up.displayName="html";var Ub=Up,zb=Ub;const Wb={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:"ÿ"},Vb={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 zp=Gb;function Gb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var Yb=Kb;function Kb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var Jb=Xb;function Xb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Zb=Jb,Qb=zp,ek=tk;function tk(e){return Zb(e)||Qb(e)}var _i,nk=59,rk=ak;function ak(e){var t="&"+e+";",n;return _i=_i||document.createElement("i"),_i.innerHTML=t,n=_i.textContent,n.charCodeAt(n.length-1)===nk&&e!=="semi"||n===t?!1:n}var Wp=Wb,Vp=Vb,ik=zp,sk=Yb,Gp=ek,ok=rk,lk=kk,uk={}.hasOwnProperty,Sr=String.fromCharCode,ck=Function.prototype,Yp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},pk=9,Kp=10,dk=12,hk=32,Jp=38,fk=59,mk=60,gk=61,vk=35,yk=88,Dk=120,bk=65533,Er="named",Co="hexadecimal",_o="decimal",xo={};xo[Co]=16,xo[_o]=10;var xi={};xi[Er]=Gp,xi[_o]=ik,xi[Co]=sk;var Xp=1,Zp=2,Qp=3,ed=4,td=5,So=6,nd=7,En={};En[Xp]="Named character references must be terminated by a semicolon",En[Zp]="Numeric character references must be terminated by a semicolon",En[Qp]="Named character references cannot be empty",En[ed]="Numeric character references cannot be empty",En[td]="Named character references must be known",En[So]="Numeric character references cannot be disallowed",En[nd]="Numeric character references cannot be outside the permissible Unicode range";function kk(e,t){var n={},r,i;t||(t={});for(i in Yp)r=t[i],n[i]=r??Yp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),wk(e,n)}function wk(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,m=t.position,v=t.indent||[],y=e.length,b=0,k=-1,x=m.column||1,C=m.line||1,T="",F=[],S,A,_,$,L,M,P,V,J,Y,O,j,H,Z,fe,te,le,me,ae;for(typeof n=="string"&&(n=n.charCodeAt(0)),te=ye(),V=u?st:ck,b--,y++;++b<y;)if(L===Kp&&(x=v[k]||1),L=e.charCodeAt(b),L===Jp){if(P=e.charCodeAt(b+1),P===pk||P===Kp||P===dk||P===hk||P===Jp||P===mk||P!==P||n&&P===n){T+=Sr(L),x++;continue}for(H=b+1,j=H,ae=H,P===vk?(ae=++j,P=e.charCodeAt(ae),P===yk||P===Dk?(Z=Co,ae=++j):Z=_o):Z=Er,S="",O="",$="",fe=xi[Z],ae--;++ae<y&&(P=e.charCodeAt(ae),!!fe(P));)$+=Sr(P),Z===Er&&uk.call(Wp,$)&&(S=$,O=Wp[$]);_=e.charCodeAt(ae)===fk,_&&(ae++,A=Z===Er?ok($):!1,A&&(S=$,O=A)),me=1+ae-H,!_&&!r||($?Z===Er?(_&&!O?V(td,1):(S!==$&&(ae=j+S.length,me=1+ae-j,_=!1),_||(J=S?Xp:Qp,t.attribute?(P=e.charCodeAt(ae),P===gk?(V(J,me),O=null):Gp(P)?O=null:V(J,me)):V(J,me))),M=O):(_||V(Zp,me),M=parseInt($,xo[Z]),Ck(M)?(V(nd,me),M=Sr(bk)):M in Vp?(V(So,me),M=Vp[M]):(Y="",_k(M)&&V(So,me),M>65535&&(M-=65536,Y+=Sr(M>>>10|55296),M=56320|M&1023),M=Y+Sr(M))):Z!==Er&&V(ed,me)),M?(Le(),te=ye(),b=ae-1,x+=ae-H+1,F.push(M),le=ye(),le.offset++,o&&o.call(d,M,{start:te,end:le},e.slice(H-1,ae)),te=le):($=e.slice(H-1,ae),T+=$,x+=$.length,b=ae-1)}else L===10&&(C++,k++,x=0),L===L?(T+=Sr(L),x++):Le();return F.join("");function ye(){return{line:C,column:x,offset:b+(m.offset||0)}}function st(Fe,Oe){var ue=ye();ue.column+=Oe,ue.offset+=Oe,u.call(h,En[Fe],ue,Fe)}function Le(){T&&(F.push(T),i&&i.call(c,T,{start:te,end:ye()}),T="")}}function Ck(e){return e>=55296&&e<=57343||e>1114111}function _k(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 rd={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
685
690
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
686
691
|
*
|
|
687
692
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
688
693
|
* @author Lea Verou <https://lea.verou.me>
|
|
689
694
|
* @namespace
|
|
690
695
|
* @public
|
|
691
|
-
*/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,"&").replace(/</g,"<").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 L in S)S.hasOwnProperty(L)&&(_[L]=F(S[L],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(M,P){_[P]=F(M,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],L={};for(var M in $)if($.hasOwnProperty(M)){if(M==S)for(var P in A)A.hasOwnProperty(P)&&(L[P]=A[P]);A.hasOwnProperty(M)||(L[M]=$[M])}var W=_[F];return _[F]=L,c.languages.DFS(c.languages,function(J,Y){Y===W&&J!=F&&(this[J]=L)}),L},DFS:function F(S,A,_,$){$=$||{};var L=c.util.objId;for(var M in S)if(S.hasOwnProperty(M)){A.call(S,M,S[M],_||M);var P=S[M],W=c.util.type(P);W==="Object"&&!$[L(P)]?($[L(P)]=!0,F(P,A,null,$)):W==="Array"&&!$[L(P)]&&($[L(P)]=!0,F(P,A,M,$))}}},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,L;L=_.elements[$++];)c.highlightElement(L,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var L=F.parentElement;L&&L.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(L,_);var M=F.textContent,P={element:F,language:_,grammar:$,code:M};function W(Y){P.highlightedCode=Y,c.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,c.hooks.run("after-highlight",P),c.hooks.run("complete",P),A&&A.call(P.element)}if(c.hooks.run("before-sanity-check",P),L=P.element.parentElement,L&&L.nodeName.toLowerCase()==="pre"&&!L.hasAttribute("tabindex")&&L.setAttribute("tabindex","0"),!P.code){c.hooks.run("complete",P),A&&A.call(P.element);return}if(c.hooks.run("before-highlight",P),!P.grammar){W(c.util.encode(P.code));return}if(S&&r.Worker){var J=new Worker(c.filename);J.onmessage=function(Y){W(Y.data)},J.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else W(c.highlight(P.code,P.grammar,P.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 y($,$.head,F),m(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(W){_+=F(W,A)}),_}var $={type:S.type,content:F(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},L=S.alias;L&&(Array.isArray(L)?Array.prototype.push.apply($.classes,L):$.classes.push(L)),c.hooks.run("wrap",$);var M="";for(var P in $.attributes)M+=" "+P+'="'+($.attributes[P]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+M+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var L=$[1].length;$.index+=L,$[0]=$[0].slice(L)}return $}function m(F,S,A,_,$,L){for(var M in A)if(!(!A.hasOwnProperty(M)||!A[M])){var P=A[M];P=Array.isArray(P)?P:[P];for(var W=0;W<P.length;++W){if(L&&L.cause==M+","+W)return;var J=P[W],Y=J.inside,O=!!J.lookbehind,N=!!J.greedy,H=J.alias;if(N&&!J.pattern.global){var Z=J.pattern.toString().match(/[imsuy]*$/)[0];J.pattern=RegExp(J.pattern.source,Z+"g")}for(var fe=J.pattern||J,ee=_.next,le=$;ee!==S.tail&&!(L&&le>=L.reach);le+=ee.value.length,ee=ee.next){var me=ee.value;if(S.length>F.length)return;if(!(me instanceof d)){var ae=1,ye;if(N){if(ye=h(fe,le,F,O),!ye||ye.index>=F.length)break;var Le=ye.index,st=ye.index+ye[0].length,Pe=le;for(Pe+=ee.value.length;Le>=Pe;)ee=ee.next,Pe+=ee.value.length;if(Pe-=ee.value.length,le=Pe,ee.value instanceof d)continue;for(var Fe=ee;Fe!==S.tail&&(Pe<st||typeof Fe.value=="string");Fe=Fe.next)ae++,Pe+=Fe.value.length;ae--,me=F.slice(le,Pe),ye.index-=le}else if(ye=h(fe,0,me,O),!ye)continue;var Le=ye.index,ue=ye[0],yt=me.slice(0,Le),Nt=me.slice(Le+ue.length),_t=le+me.length;L&&_t>L.reach&&(L.reach=_t);var xt=ee.prev;yt&&(xt=y(S,xt,yt),le+=yt.length),b(S,xt,ae);var Fn=new d(M,Y?c.tokenize(ue,Y):ue,H,ue);if(ee=y(S,xt,Fn),Nt&&y(S,ee,Nt),ae>1){var St={cause:M+","+W,reach:_t};m(F,S,A,ee.prev,le,St),L&&St.reach>L.reach&&(L.reach=St.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 y(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 dn<"u"&&(dn.Prism=n)})(rd);var _k=rd.exports,xk=Eo;Eo.displayName="markup",Eo.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Eo(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(/&/,"&"))}),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 Sk=Fo;Fo.displayName="css",Fo.aliases=[];function Fo(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 Ek=Ao;Ao.displayName="clike",Ao.aliases=[];function Ao(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 Fk=$o;$o.displayName="javascript",$o.aliases=["js"];function $o(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 ga=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof dn=="object"?dn:{},Ak=Wk();ga.Prism={manual:!0,disableWorkerMessageHandler:!0};var $k=Ub,Tk=ok,ad=_k,Bk=xk,Nk=Sk,jk=Ek,Pk=Fk;Ak();var To={}.hasOwnProperty;function id(){}id.prototype=ad;var Ue=new id,Lk=Ue;Ue.highlight=Mk,Ue.register=va,Ue.alias=Ok,Ue.registered=Ik,Ue.listLanguages=Rk,va(Bk),va(Nk),va(jk),va(Pk),Ue.util.encode=Uk,Ue.Token.stringify=qk;function va(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Ue.languages[e.displayName]===void 0&&e(Ue)}function Ok(e,t){var n=Ue.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 Mk(e,t){var n=ad.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(Ue.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(To.call(Ue.languages,t))r=Ue.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Ik(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return To.call(Ue.languages,e)}function Rk(){var e=Ue.languages,t=[],n;for(n in e)To.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function qk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:Ue.util.type(e)==="Array"?Hk(e,t):(r={type:e.type,content:Ue.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)),Ue.hooks.run("wrap",r),$k(r.tag+"."+r.classes.join("."),zk(r.attributes),r.content))}function Hk(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]=Ue.Token.stringify(o,t,n);return n}function Uk(e){return e}function zk(e){var t;for(t in e)e[t]=Tk(e[t]);return e}function Wk(){var e="Prism"in ga,t=e?ga.Prism:void 0;return n;function n(){e?ga.Prism=t:delete ga.Prism,e=void 0,t=void 0}}const Bo=Ra(Lk);var ya=x0(Bo,{});ya.registerLanguage=function(e,t){return Bo.register(t)},ya.alias=function(e,t){return Bo.alias(e,t)};const sd={'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 Vk=No;No.displayName="jsx",No.aliases=[];function No(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,m){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,m)}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 m=[],v=0;v<h.length;v++){var y=h[v],b=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===c(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content==="/>"||m.push({tagName:c(y.content[0].content[1]),openedBraces:0}):m.length>0&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:b=!0),(b||typeof y=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var k=c(y);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)}y.content&&typeof y.content!="string"&&d(y.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Gk=Ra(Vk),jo=I.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:m,inline:v=!1,fullwidth:y=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:F,...S},A)=>{const _=[r,"pkt-select"].join(" ");return g.jsx(gr,{className:_,forId:m,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:g.jsx("select",{ref:A,className:`pkt-input ${y?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${m}-error`,"aria-labelledby":t||`${m}-label`,disabled:i,id:m,name:k||m,...S,children:n})})}),Yk=hn({tagName:"pkt-tag",elementClass:Mt,react:I,displayName:"PktTag",events:{onClose:"close"}}),Fr=I.forwardRef(({children:e,...t},n)=>g.jsx(Yk,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Fr.displayName="PktTag";const od=I.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=I.useRef([]);I.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,m;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((m=i.current[c+1])==null||m.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return g.jsx("div",{className:"pkt-tabs",ref:r,children:g.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>g.jsx(I.Fragment,{children:c.href?g.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&&g.jsx(ce,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(Fr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):g.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&&g.jsx(ce,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(Fr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),Po=I.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:m,helptextDropdown:v,helptextDropdownButton:y,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:F=!1,optionalText:S,requiredTag:A=!1,requiredText:_,placeholder:$,prefix:L,suffix:M,type:P="text",useWrapper:W=!0,omitSearchIcon:J=!1,value:Y,onChange:O,...N},H)=>{const Z=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,ee=P==="search"&&!b&&!J;I.useRef(null);const[le,me]=I.useState(0),ae=ye=>{var st,Pe;if(i&&me(((Pe=(st=ye.currentTarget)==null?void 0:st.value)==null?void 0:Pe.length)||0),O)return O(ye)};return g.jsx(gr,{ariaDescribedby:t,className:Z,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:m,helptextDropdown:v,helptextDropdownButton:y,inline:k,label:C,optionalTag:F,optionalText:S,requiredTag:A,requiredText:_,useWrapper:W,counter:i,counterCurrent:le,counterMaxLength:o,children:g.jsxs("div",{className:"pkt-input__container",children:[L&&g.jsx("div",{className:"pkt-input-prefix",children:L}),g.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&le>o?"pkt-input--counter-error":""}`,type:P,name:T||e,id:e,placeholder:$,autoComplete:r,value:Y,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...N,onChange:ae}),M&&g.jsxs("p",{className:"pkt-input-suffix",children:[M,b&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:b}),ee&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!M&&b&&g.jsx(ce,{className:"pkt-input-icon",name:b}),!M&&ee&&g.jsx(ce,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Kk=[{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:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{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",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:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{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"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],Si=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>g.jsx("table",{"data-testid":"pkt-table",className:et(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}),Ei=({className:e,children:t})=>g.jsx("thead",{className:et(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Fi=({children:e,className:t})=>g.jsx("tbody",{className:et(t,"pkt-table__body",{}),role:"rowgroup",children:e}),er=({className:e,children:t})=>g.jsx("tr",{className:et(e,"pkt-table__row",{}),role:"row",children:t}),It=({className:e,children:t})=>g.jsx("th",{className:et(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),Ct=({children:e,className:t,dataLabel:n})=>g.jsx("td",{className:et(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Jk=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
|
|
692
|
-
`):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Egenskaper"}),g.jsxs(Si,{compact:!0,children:[g.jsx(Ei,{children:g.jsxs(er,{children:[g.jsx(It,{children:"Navn"}),g.jsx(It,{children:"Prop"}),g.jsx(It,{children:"Beskrivelse"}),g.jsx(It,{children:"Type"}),g.jsx(It,{children:"Standardverdi"})]})}),g.jsx(Fi,{children:Object.entries(e.props||{}).map(([r,i])=>g.jsxs(er,{children:[g.jsx(
|
|
693
|
-
`)})})]}):g.jsxs(g.Fragment,{children:[g.jsx(
|
|
696
|
+
*/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,"&").replace(/</g,"<").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 L in S)S.hasOwnProperty(L)&&(_[L]=F(S[L],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(M,P){_[P]=F(M,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],L={};for(var M in $)if($.hasOwnProperty(M)){if(M==S)for(var P in A)A.hasOwnProperty(P)&&(L[P]=A[P]);A.hasOwnProperty(M)||(L[M]=$[M])}var V=_[F];return _[F]=L,c.languages.DFS(c.languages,function(J,Y){Y===V&&J!=F&&(this[J]=L)}),L},DFS:function F(S,A,_,$){$=$||{};var L=c.util.objId;for(var M in S)if(S.hasOwnProperty(M)){A.call(S,M,S[M],_||M);var P=S[M],V=c.util.type(P);V==="Object"&&!$[L(P)]?($[L(P)]=!0,F(P,A,null,$)):V==="Array"&&!$[L(P)]&&($[L(P)]=!0,F(P,A,M,$))}}},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,L;L=_.elements[$++];)c.highlightElement(L,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var L=F.parentElement;L&&L.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(L,_);var M=F.textContent,P={element:F,language:_,grammar:$,code:M};function V(Y){P.highlightedCode=Y,c.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,c.hooks.run("after-highlight",P),c.hooks.run("complete",P),A&&A.call(P.element)}if(c.hooks.run("before-sanity-check",P),L=P.element.parentElement,L&&L.nodeName.toLowerCase()==="pre"&&!L.hasAttribute("tabindex")&&L.setAttribute("tabindex","0"),!P.code){c.hooks.run("complete",P),A&&A.call(P.element);return}if(c.hooks.run("before-highlight",P),!P.grammar){V(c.util.encode(P.code));return}if(S&&r.Worker){var J=new Worker(c.filename);J.onmessage=function(Y){V(Y.data)},J.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else V(c.highlight(P.code,P.grammar,P.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 y($,$.head,F),m(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(V){_+=F(V,A)}),_}var $={type:S.type,content:F(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},L=S.alias;L&&(Array.isArray(L)?Array.prototype.push.apply($.classes,L):$.classes.push(L)),c.hooks.run("wrap",$);var M="";for(var P in $.attributes)M+=" "+P+'="'+($.attributes[P]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+M+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var L=$[1].length;$.index+=L,$[0]=$[0].slice(L)}return $}function m(F,S,A,_,$,L){for(var M in A)if(!(!A.hasOwnProperty(M)||!A[M])){var P=A[M];P=Array.isArray(P)?P:[P];for(var V=0;V<P.length;++V){if(L&&L.cause==M+","+V)return;var J=P[V],Y=J.inside,O=!!J.lookbehind,j=!!J.greedy,H=J.alias;if(j&&!J.pattern.global){var Z=J.pattern.toString().match(/[imsuy]*$/)[0];J.pattern=RegExp(J.pattern.source,Z+"g")}for(var fe=J.pattern||J,te=_.next,le=$;te!==S.tail&&!(L&&le>=L.reach);le+=te.value.length,te=te.next){var me=te.value;if(S.length>F.length)return;if(!(me instanceof d)){var ae=1,ye;if(j){if(ye=h(fe,le,F,O),!ye||ye.index>=F.length)break;var Oe=ye.index,st=ye.index+ye[0].length,Le=le;for(Le+=te.value.length;Oe>=Le;)te=te.next,Le+=te.value.length;if(Le-=te.value.length,le=Le,te.value instanceof d)continue;for(var Fe=te;Fe!==S.tail&&(Le<st||typeof Fe.value=="string");Fe=Fe.next)ae++,Le+=Fe.value.length;ae--,me=F.slice(le,Le),ye.index-=le}else if(ye=h(fe,0,me,O),!ye)continue;var Oe=ye.index,ue=ye[0],yt=me.slice(0,Oe),jt=me.slice(Oe+ue.length),xt=le+me.length;L&&xt>L.reach&&(L.reach=xt);var St=te.prev;yt&&(St=y(S,St,yt),le+=yt.length),b(S,St,ae);var Fn=new d(M,Y?c.tokenize(ue,Y):ue,H,ue);if(te=y(S,St,Fn),jt&&y(S,te,jt),ae>1){var Et={cause:M+","+V,reach:xt};m(F,S,A,te.prev,le,Et),L&&Et.reach>L.reach&&(L.reach=Et.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 y(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 dn<"u"&&(dn.Prism=n)})(rd);var xk=rd.exports,Sk=Eo;Eo.displayName="markup",Eo.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Eo(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(/&/,"&"))}),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 Ek=Fo;Fo.displayName="css",Fo.aliases=[];function Fo(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 Fk=Ao;Ao.displayName="clike",Ao.aliases=[];function Ao(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 Ak=$o;$o.displayName="javascript",$o.aliases=["js"];function $o(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 ga=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof dn=="object"?dn:{},$k=Vk();ga.Prism={manual:!0,disableWorkerMessageHandler:!0};var Tk=zb,Bk=lk,ad=xk,Nk=Sk,jk=Ek,Pk=Fk,Lk=Ak;$k();var To={}.hasOwnProperty;function id(){}id.prototype=ad;var ze=new id,Ok=ze;ze.highlight=Ik,ze.register=va,ze.alias=Mk,ze.registered=Rk,ze.listLanguages=qk,va(Nk),va(jk),va(Pk),va(Lk),ze.util.encode=zk,ze.Token.stringify=Hk;function va(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");ze.languages[e.displayName]===void 0&&e(ze)}function Mk(e,t){var n=ze.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 Ik(e,t){var n=ad.highlight,r;if(typeof e!="string")throw new Error("Expected `string` for `value`, got `"+e+"`");if(ze.util.type(t)==="Object")r=t,t=null;else{if(typeof t!="string")throw new Error("Expected `string` for `name`, got `"+t+"`");if(To.call(ze.languages,t))r=ze.languages[t];else throw new Error("Unknown language: `"+t+"` is not registered")}return n.call(this,e,r,t)}function Rk(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return To.call(ze.languages,e)}function qk(){var e=ze.languages,t=[],n;for(n in e)To.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Hk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:ze.util.type(e)==="Array"?Uk(e,t):(r={type:e.type,content:ze.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)),ze.hooks.run("wrap",r),Tk(r.tag+"."+r.classes.join("."),Wk(r.attributes),r.content))}function Uk(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]=ze.Token.stringify(o,t,n);return n}function zk(e){return e}function Wk(e){var t;for(t in e)e[t]=Bk(e[t]);return e}function Vk(){var e="Prism"in ga,t=e?ga.Prism:void 0;return n;function n(){e?ga.Prism=t:delete ga.Prism,e=void 0,t=void 0}}const Bo=Ra(Ok);var ya=S0(Bo,{});ya.registerLanguage=function(e,t){return Bo.register(t)},ya.alias=function(e,t){return Bo.alias(e,t)};const sd={'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 Gk=No;No.displayName="jsx",No.aliases=[];function No(e){(function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(h,m){return h=h.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return i}).replace(/<SPREAD>/g,function(){return o}),RegExp(h,m)}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 m=[],v=0;v<h.length;v++){var y=h[v],b=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?m.length>0&&m[m.length-1].tagName===c(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content==="/>"||m.push({tagName:c(y.content[0].content[1]),openedBraces:0}):m.length>0&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:m.length>0&&m[m.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:b=!0),(b||typeof y=="string")&&m.length>0&&m[m.length-1].openedBraces===0){var k=c(y);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)}y.content&&typeof y.content!="string"&&d(y.content)}};t.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||d(h.tokens)})})(e)}const Yk=Ra(Gk),jo=I.forwardRef(({ariaDescribedby:e,ariaLabelledby:t,children:n,className:r,disabled:i=!1,errorMessage:o,hasError:u,helptext:c,helptextDropdown:d,helptextDropdownButton:h,id:m,inline:v=!1,fullwidth:y=!1,label:b,name:k,optionalTag:x=!1,optionalText:C,requiredTag:T=!1,requiredText:F,...S},A)=>{const _=[r,"pkt-select"].join(" ");return g.jsx(gr,{className:_,forId:m,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:g.jsx("select",{ref:A,className:`pkt-input ${y?"pkt-input--fullwidth":""}`,"aria-invalid":u,"aria-errormessage":`${m}-error`,"aria-labelledby":t||`${m}-label`,disabled:i,id:m,name:k||m,...S,children:n})})}),Kk=hn({tagName:"pkt-tag",elementClass:Mt,react:I,displayName:"PktTag",events:{onClose:"close"}}),Fr=I.forwardRef(({children:e,...t},n)=>g.jsx(Kk,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Fr.displayName="PktTag";const od=I.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=I.useRef([]);I.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,m;e&&(d.code==="ArrowLeft"&&c!==0&&((h=i.current[c-1])==null||h.focus()),d.code==="ArrowRight"&&c<t.length-1&&((m=i.current[c+1])==null||m.focus()),(d.code==="ArrowDown"||d.code==="Space")&&o(c,t[c]))};return g.jsx("div",{className:"pkt-tabs",ref:r,children:g.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:t.map((c,d)=>g.jsx(I.Fragment,{children:c.href?g.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&&g.jsx(ce,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(Fr,{skin:c.tag.skin,size:"small",children:c.tag.text})]}):g.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&&g.jsx(ce,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx(Fr,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),Po=I.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:m,helptextDropdown:v,helptextDropdownButton:y,iconNameRight:b,inline:k=!1,fullwidth:x=!1,label:C,name:T,optionalTag:F=!1,optionalText:S,requiredTag:A=!1,requiredText:_,placeholder:$,prefix:L,suffix:M,type:P="text",useWrapper:V=!0,omitSearchIcon:J=!1,value:Y,onChange:O,...j},H)=>{const Z=[u,"pkt-textinput"].join(" "),fe=n||`${e}-label`,te=P==="search"&&!b&&!J;I.useRef(null);const[le,me]=I.useState(0),ae=ye=>{var st,Le;if(i&&me(((Le=(st=ye.currentTarget)==null?void 0:st.value)==null?void 0:Le.length)||0),O)return O(ye)};return g.jsx(gr,{ariaDescribedby:t,className:Z,disabled:c,errorMessage:d,forId:e,hasError:h,helptext:m,helptextDropdown:v,helptextDropdownButton:y,inline:k,label:C,optionalTag:F,optionalText:S,requiredTag:A,requiredText:_,useWrapper:V,counter:i,counterCurrent:le,counterMaxLength:o,children:g.jsxs("div",{className:"pkt-input__container",children:[L&&g.jsx("div",{className:"pkt-input-prefix",children:L}),g.jsx("input",{ref:H,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&le>o?"pkt-input--counter-error":""}`,type:P,name:T||e,id:e,placeholder:$,autoComplete:r,value:Y,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":fe,...j,onChange:ae}),M&&g.jsxs("p",{className:"pkt-input-suffix",children:[M,b&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:b}),te&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!M&&b&&g.jsx(ce,{className:"pkt-input-icon",name:b}),!M&&te&&g.jsx(ce,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Jk=[{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:"graph",fn:"graph.svg",cat:"ui"},{id:"grid",fn:"grid.svg",cat:"ui"},{id:"hands-globe",fn:"hands-globe.svg",cat:"people-and-health"},{id:"headset",fn:"headset.svg",cat:"ui"},{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",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:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"sign"},{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"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],Si=({className:e,compact:t=!1,skin:n="basic",responsiveView:r=!0,children:i})=>g.jsx("table",{"data-testid":"pkt-table",className:et(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}),Ei=({className:e,children:t})=>g.jsx("thead",{className:et(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Fi=({children:e,className:t})=>g.jsx("tbody",{className:et(t,"pkt-table__body",{}),role:"rowgroup",children:e}),er=({className:e,children:t})=>g.jsx("tr",{className:et(e,"pkt-table__row",{}),role:"row",children:t}),It=({className:e,children:t})=>g.jsx("th",{className:et(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),_t=({children:e,className:t,dataLabel:n})=>g.jsx("td",{className:et(t,"pkt-table__data-cell",{}),"data-label":n,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Xk=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
|
|
697
|
+
`):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Egenskaper"}),g.jsxs(Si,{compact:!0,children:[g.jsx(Ei,{children:g.jsxs(er,{children:[g.jsx(It,{children:"Navn"}),g.jsx(It,{children:"Prop"}),g.jsx(It,{children:"Beskrivelse"}),g.jsx(It,{children:"Type"}),g.jsx(It,{children:"Standardverdi"})]})}),g.jsx(Fi,{children:Object.entries(e.props||{}).map(([r,i])=>g.jsxs(er,{children:[g.jsx(_t,{dataLabel:"Prop",children:g.jsx("pre",{children:r})}),g.jsx(_t,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?g.jsxs(g.Fragment,{children:[g.jsx(_t,{dataLabel:"Beskrivelse"}),g.jsx(_t,{dataLabel:"Type",children:g.jsx("pre",{children:i.join(`
|
|
698
|
+
`)})})]}):g.jsxs(g.Fragment,{children:[g.jsx(_t,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(_t,{dataLabel:"Type",children:g.jsx("pre",{children:i.type&&t(i.type)})}),g.jsx(_t,{dataLabel:"Standardverdi",children:g.jsx("pre",{children:n(i.default)})})]})]},r))})]}),e.events&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Hendelser / handlinger"}),g.jsxs(Si,{compact:!0,children:[g.jsx(Ei,{children:g.jsxs(er,{children:[g.jsx(It,{children:"Event"}),g.jsx(It,{children:"Beskrivelse"}),g.jsx(It,{children:"Type"})]})}),g.jsx(Fi,{children:Object.entries(e.events||{}).map(([r,i])=>g.jsxs(er,{children:[g.jsx(_t,{dataLabel:"Event",children:g.jsx("pre",{children:r})}),g.jsx(_t,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(_t,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Innhold"}),g.jsxs(Si,{compact:!0,children:[g.jsx(Ei,{children:g.jsxs(er,{children:[g.jsx(It,{children:"Slot"}),g.jsx(It,{children:"Beskrivelse"})]})}),g.jsx(Fi,{children:Object.entries(e.slots||{}).map(([r,i])=>g.jsxs(er,{children:[g.jsx(_t,{dataLabel:"Slot",children:g.jsx("pre",{children:r})}),g.jsx(_t,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})};ya.registerLanguage("jsx",Yk);const ld=({specs:e,children:t,fullWidth:n})=>{var J,Y;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((O,[j,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),O[j]=H.default),O),{}):{},[i,o]=I.useState(r),[u,c]=I.useState("light"),[d,h]=I.useState(""),[m,v]=I.useState(""),[y,b]=I.useState(""),[k,x]=I.useState("Rediger innhold"),[C,T]=I.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=O=>{O===1&&_(),O===2&&(_(),A()),b(""),T(j=>j.map((H,Z)=>({...H,active:Z===O})))},S=I.useRef(null),A=async()=>{if(e.isElement&&I.isValidElement(M))_().then(()=>{const O=I.isValidElement(M)?M.type.displayName||M.type.name:e.name;h(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
694
699
|
`+m.replaceAll(O,e.name||"").replaceAll("={","='").replaceAll(`}
|
|
695
700
|
`,`'
|
|
696
|
-
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const O=await uo(S.current.innerHTML,{parser:"html",plugins:[n0]});h(O.replace(/<\!--.*?-->/g,""))}},_=async()=>{const O=await Rv(M);return v(O),Promise.resolve()},$=(O,N)=>{navigator.clipboard.writeText(N).then(()=>{b(O),console.log("Copied to clipboard",O)})},L=(O,N)=>g.jsxs("div",{className:"pkt-preview__copy",children:[y===O&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(Un,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(O,N),children:"Kopier kode"})]}),M=I.isValidElement(t)&&I.cloneElement(t,{...i},t.props.children?t.props.children:(J=e.slots)!=null&&J.default?k:null),P=(O,N,H=!1)=>{if(!H&&(!N||N=="false")){const{[O]:Z,...fe}=i;o(fe)}else o(Z=>({...Z,[O]:N}))},W=(O,N)=>{if(N.type==="boolean")return g.jsx(gr,{label:N.name||O,forId:O,helptext:N.description||null,hasFieldset:!0,requiredTag:N.required,children:g.jsx(ri,{id:O,label:O,type:"checkbox",checked:i[O],onChange:H=>P(O,H.target.checked,N.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(N.type==="icon")return g.jsxs(jo,{label:N.name||O,helptext:N.description||null,id:O,value:i[O],onChange:H=>P(O,H.target.value),requiredTag:N.required,children:[g.jsx("option",{value:""}),Kk.map(H=>g.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 g.jsxs(jo,{label:N.name||O,helptext:N.description||null,id:O,value:i[O],onChange:Z=>P(O,Z.target.value),requiredTag:N.required,children:[g.jsx("option",{value:""}),H.map(Z=>g.jsx("option",{value:Z,children:Z},Z))]})}else return N.type==="ISOdatestring"?g.jsx(_u,{id:O,label:N.name||O,helptext:N.description||null,value:i[O],multiple:N.variant==="multiple",maxlength:999,onChange:H=>P(O,H.target.value),requiredTag:N.required}):g.jsx(Po,{id:O,label:N.name||O,helptext:N.description||null,type:"text",value:i[O],onChange:H=>P(O,N.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:N.required})};return g.jsxs("div",{className:"pkt-preview",children:[g.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&g.jsx("div",{className:"pkt-preview__mode",children:g.jsx(ri,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:O=>c(O.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),g.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:S,children:g.jsx("div",{children:M})})]}),g.jsx(od,{tabs:C,onTabSelected:F}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((Y=e.slots)==null?void 0:Y.default)&&!t.props.children&&g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(Fr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),g.jsx(Po,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:O=>x(O.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([O,N])=>g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(Fr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:O}),W(O,N)]},O)):g.jsx("p",{children:"OBS! Specs mangler props!"})]}),g.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[g.jsx(ya,{language:"jsx",style:sd,children:m}),L("jsx",m)]}),g.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[g.jsx(ya,{language:"html",style:sd,children:d}),L("html",d)]}),g.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:g.jsx(Jk,{specs:e})})]})};ld.displayName="PktPreview";for(var nt=[],Lo=0;Lo<256;++Lo)nt.push((Lo+256).toString(16).slice(1));function Xk(e,t=0){return(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase()}var Ai,Zk=new Uint8Array(16);function Qk(){if(!Ai&&(Ai=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ai))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ai(Zk)}var e1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ud={randomUUID:e1};function t1(e,t,n){if(ud.randomUUID&&!t&&!e)return ud.randomUUID();e=e||{};var r=e.random||(e.rng||Qk)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xk(r)}const cd=I.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:m,role:v="progressbar",className:y,ariaValueText:b,...k},x)=>{const C=I.useRef(null),[T,F]=I.useState(0),[S,A]=I.useState(d);I.useEffect(()=>{d||A(t1())},[d]),I.useEffect(()=>{if(C.current){const N=C.current;F(N.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,L=n!==100||t!==0?Math.round($):e,M=`${e} av ${n}`,P=u!=="none",W=et("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),J=et("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),Y=et("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),O=et({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return g.jsxs("div",{...k,ref:x,className:et("pkt-progressbar__container",y),id:S,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${L}%`},children:[i&&g.jsx("p",{id:`${S}-title`,className:J,children:i}),g.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":m||i&&`${S}-title`,"aria-label":h,"aria-valuetext":b,children:g.jsx("div",{className:W})}),P&&g.jsx("div",{className:Y,children:g.jsx("span",{className:O,ref:C,children:u==="percentage"?`${L}%`:M})})]})});cd.displayName="PktProgressbar";const pd=I.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const m=[r,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:m,children:g.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[g.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}),g.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});pd.displayName="PktRadioButton";const n1=I.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:m,onChange:v,onSearch:y,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=_=>g.jsx("form",{role:"search",className:F,action:h,method:m,children:_}):A=_=>g.jsx("div",{role:"search",className:F,children:_}),A(g.jsxs(g.Fragment,{children:[g.jsxs(S,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&g.jsx(g.Fragment,{children:i}),g.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[g.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}),g.jsx(Un,{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:y&&(_=>{_.preventDefault(),y(d)}),onKeyUp:y&&(_=>{_.key==="Enter"&&(_.preventDefault(),y(d))}),children:i||u})]})]}),c&&g.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((_,$)=>g.jsx("li",{children:I.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,$)},g.jsxs(g.Fragment,{children:[_.title&&g.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:_.title}),_.text&&g.jsx("p",{className:"pkt-searchinput__suggestion-text",children:_.text})]}))},`search-suggestion-${$}`))})]}))}),r1=I.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveSteps:r=!1,hideNonActiveStepsContent:i=!0,orientation:o="vertical",...u},c)=>{const d=et(t,"pkt-stepper",o==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),h=I.Children.map(n,(m,v)=>I.isValidElement(m)?I.cloneElement(m,{className:et(m.props.className,{"pkt-step--hideStep":r&&v!==e,"pkt-step--hideContent":i&&v!==e})}):m);return g.jsx("ol",{"data-testid":"pkt-stepper",className:d,ref:c,...u,children:h})}),a1=g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:g.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),i1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),g.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),s1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),g.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"})]}),o1=({children:e,className:t,status:n="incomplete",title:r})=>g.jsxs("li",{className:et("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[g.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),g.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),g.jsx("span",{className:et("pkt-step__indicator"),children:n==="current"?i1:n==="completed"?s1:a1}),g.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),g.jsxs("div",{className:"pkt-step__wrapper",children:[g.jsx("div",{className:"pkt-step__title",children:r}),g.jsx("div",{className:"pkt-step__content",children:e})]})]}),l1=I.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:F=!1,requiredText:S,placeholder:A,rows:_,useWrapper:$=!0,onChange:L,...M},P)=>{const W=[o,"pkt-textinput","pkt-textarea"].join(" "),J=n||`${e}-label`,Y=I.useRef(null),[O,N]=I.useState(0),H=Z=>{var fe,ee;if(r&&N(((ee=(fe=Z.currentTarget)==null?void 0:fe.value)==null?void 0:ee.length)||0),L)return L(Z)};return I.useEffect(()=>{var Z,fe;typeof P=="function"&&P(Y.current),r&&N(((fe=(Z=Y==null?void 0:Y.current)==null?void 0:Z.value)==null?void 0:fe.length)||0)},[P]),g.jsx(gr,{ariaDescribedby:t,className:W,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,label:k,optionalTag:C,optionalText:T,requiredTag:F,requiredText:S,useWrapper:$,counter:r,counterCurrent:O,counterMaxLength:i,children:g.jsx("textarea",{ref:Y,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&O>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:A,disabled:u,rows:_,"aria-labelledby":J,"aria-invalid":d,"aria-errormessage":`${e}-error`,...M,onChange:H})})});Q.PktAccordion=Ah,Q.PktAccordionItem=Rg,Q.PktAlert=Fs,Q.PktBackLink=wu,Q.PktBreadcrumbs=Hg,Q.PktButton=Un,Q.PktCard=Cu,Q.PktCheckbox=ri,Q.PktDatepicker=_u,Q.PktFooter=zg,Q.PktFooterSimple=Wg,Q.PktHeader=Vg,Q.PktIcon=ce,Q.PktInput=xu,Q.PktInputWrapper=gr,Q.PktLink=Su,Q.PktLinkCard=Eu,Q.PktLoader=Fu,Q.PktMessagebox=Au,Q.PktModal=$u,Q.PktPreview=ld,Q.PktProgressbar=cd,Q.PktRadioButton=pd,Q.PktSearchInput=n1,Q.PktSelect=jo,Q.PktStep=o1,Q.PktStepper=r1,Q.PktTable=Si,Q.PktTableBody=Fi,Q.PktTableDataCell=Ct,Q.PktTableHeader=Ei,Q.PktTableHeaderCell=It,Q.PktTableRow=er,Q.PktTabs=od,Q.PktTag=Fr,Q.PktTextarea=l1,Q.PktTextinput=Po,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
|
701
|
+
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const O=await uo(S.current.innerHTML,{parser:"html",plugins:[r0]});h(O.replace(/<\!--.*?-->/g,""))}},_=async()=>{const O=await qv(M);return v(O),Promise.resolve()},$=(O,j)=>{navigator.clipboard.writeText(j).then(()=>{b(O),console.log("Copied to clipboard",O)})},L=(O,j)=>g.jsxs("div",{className:"pkt-preview__copy",children:[y===O&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(Un,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(O,j),children:"Kopier kode"})]}),M=I.isValidElement(t)&&I.cloneElement(t,{...i},t.props.children?t.props.children:(J=e.slots)!=null&&J.default?k:null),P=(O,j,H=!1)=>{if(!H&&(!j||j=="false")){const{[O]:Z,...fe}=i;o(fe)}else o(Z=>({...Z,[O]:j}))},V=(O,j)=>{if(j.type==="boolean")return g.jsx(gr,{label:j.name||O,forId:O,helptext:j.description||null,hasFieldset:!0,requiredTag:j.required,children:g.jsx(ri,{id:O,label:O,type:"checkbox",checked:i[O],onChange:H=>P(O,H.target.checked,j.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(j.type==="icon")return g.jsxs(jo,{label:j.name||O,helptext:j.description||null,id:O,value:i[O],onChange:H=>P(O,H.target.value),requiredTag:j.required,children:[g.jsx("option",{value:""}),Jk.map(H=>g.jsx("option",{value:H.id,children:H.id},H.id))]});if(Array.isArray(j)||Array.isArray(j.type)||Array.isArray(j.values)){const H=Array.isArray(j)?j:j.values||j.type;return g.jsxs(jo,{label:j.name||O,helptext:j.description||null,id:O,value:i[O],onChange:Z=>P(O,Z.target.value),requiredTag:j.required,children:[g.jsx("option",{value:""}),H.map(Z=>g.jsx("option",{value:Z,children:Z},Z))]})}else return j.type==="ISOdatestring"?g.jsx(_u,{id:O,label:j.name||O,helptext:j.description||null,value:i[O],multiple:j.variant==="multiple",maxlength:999,onChange:H=>P(O,H.target.value),requiredTag:j.required}):g.jsx(Po,{id:O,label:j.name||O,helptext:j.description||null,type:"text",value:i[O],onChange:H=>P(O,j.type==="number"?parseFloat(H.currentTarget.value):H.currentTarget.value),requiredTag:j.required})};return g.jsxs("div",{className:"pkt-preview",children:[g.jsxs("div",{className:"pkt-preview__component-container","data-mode":u,children:[e["dark-mode"]&&g.jsx("div",{className:"pkt-preview__mode",children:g.jsx(ri,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:O=>c(O.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),g.jsx("div",{className:`pkt-preview__component ${n&&"pkt-preview__component--fullwidth"}`,ref:S,children:g.jsx("div",{children:M})})]}),g.jsx(od,{tabs:C,onTabSelected:F}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((Y=e.slots)==null?void 0:Y.default)&&!t.props.children&&g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(Fr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),g.jsx(Po,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:O=>x(O.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([O,j])=>g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx(Fr,{size:"small",skin:"blue-light",textStyle:"thin-text",children:O}),V(O,j)]},O)):g.jsx("p",{children:"OBS! Specs mangler props!"})]}),g.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[g.jsx(ya,{language:"jsx",style:sd,children:m}),L("jsx",m)]}),g.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[g.jsx(ya,{language:"html",style:sd,children:d}),L("html",d)]}),g.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:g.jsx(Xk,{specs:e})})]})};ld.displayName="PktPreview";for(var nt=[],Lo=0;Lo<256;++Lo)nt.push((Lo+256).toString(16).slice(1));function Zk(e,t=0){return(nt[e[t+0]]+nt[e[t+1]]+nt[e[t+2]]+nt[e[t+3]]+"-"+nt[e[t+4]]+nt[e[t+5]]+"-"+nt[e[t+6]]+nt[e[t+7]]+"-"+nt[e[t+8]]+nt[e[t+9]]+"-"+nt[e[t+10]]+nt[e[t+11]]+nt[e[t+12]]+nt[e[t+13]]+nt[e[t+14]]+nt[e[t+15]]).toLowerCase()}var Ai,Qk=new Uint8Array(16);function e1(){if(!Ai&&(Ai=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ai))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ai(Qk)}var t1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const ud={randomUUID:t1};function n1(e,t,n){if(ud.randomUUID&&!t&&!e)return ud.randomUUID();e=e||{};var r=e.random||(e.rng||e1)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Zk(r)}const cd=I.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:m,role:v="progressbar",className:y,ariaValueText:b,...k},x)=>{const C=I.useRef(null),[T,F]=I.useState(0),[S,A]=I.useState(d);I.useEffect(()=>{d||A(n1())},[d]),I.useEffect(()=>{if(C.current){const j=C.current;F(j.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,L=n!==100||t!==0?Math.round($):e,M=`${e} av ${n}`,P=u!=="none",V=et("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),J=et("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),Y=et("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),O=et({"pkt-progressbar__status-placement--following":c==="following","pkt-progressbar__status-placement--center":c==="center","pkt-progressbar__status-placement--left":c==="left"});return g.jsxs("div",{...k,ref:x,className:et("pkt-progressbar__container",y),id:S,style:{"--pkt-progress-label-width":`${T}px`,"--pkt-progress-width":`${L}%`},children:[i&&g.jsx("p",{id:`${S}-title`,className:J,children:i}),g.jsx("div",{role:v,className:"pkt-progressbar__bar-wrapper","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":e,"aria-labelledby":m||i&&`${S}-title`,"aria-label":h,"aria-valuetext":b,children:g.jsx("div",{className:V})}),P&&g.jsx("div",{className:Y,children:g.jsx("span",{className:O,ref:C,children:u==="percentage"?`${L}%`:M})})]})});cd.displayName="PktProgressbar";const pd=I.forwardRef(({id:e,name:t,label:n,className:r,hasTile:i=!1,disabled:o=!1,checkHelptext:u,hasError:c=!1,...d},h)=>{const m=[r,"pkt-input-check"].filter(Boolean).join(" ");return g.jsx("div",{className:m,children:g.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${o&&i?"pkt-input-check__input--tile-disabled":""}`,children:[g.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}),g.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[n,u&&g.jsx("div",{className:"pkt-input-check__input-helptext",children:u})]})]})})});pd.displayName="PktRadioButton";const r1=I.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:m,onChange:v,onSearch:y,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=_=>g.jsx("form",{role:"search",className:F,action:h,method:m,children:_}):A=_=>g.jsx("div",{role:"search",className:F,children:_}),A(g.jsxs(g.Fragment,{children:[g.jsxs(S,{htmlFor:i?r:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&g.jsx(g.Fragment,{children:i}),g.jsxs("div",{className:e==="local"?"pkt-input__container":"pkt-searchinput__field",children:[g.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}),g.jsx(Un,{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:y&&(_=>{_.preventDefault(),y(d)}),onKeyUp:y&&(_=>{_.key==="Enter"&&(_.preventDefault(),y(d))}),children:i||u})]})]}),c&&g.jsx("ul",{id:`${r}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:c.map((_,$)=>g.jsx("li",{children:I.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,$)},g.jsxs(g.Fragment,{children:[_.title&&g.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:_.title}),_.text&&g.jsx("p",{className:"pkt-searchinput__suggestion-text",children:_.text})]}))},`search-suggestion-${$}`))})]}))}),a1=I.forwardRef(({activeStep:e,className:t,children:n,hideNonActiveSteps:r=!1,hideNonActiveStepsContent:i=!0,orientation:o="vertical",...u},c)=>{const d=et(t,"pkt-stepper",o==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),h=I.Children.map(n,(m,v)=>I.isValidElement(m)?I.cloneElement(m,{className:et(m.props.className,{"pkt-step--hideStep":r&&v!==e,"pkt-step--hideContent":i&&v!==e})}):m);return g.jsx("ol",{"data-testid":"pkt-stepper",className:d,ref:c,...u,children:h})}),i1=g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:g.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),s1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),g.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),o1=g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[g.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),g.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"})]}),l1=({children:e,className:t,status:n="incomplete",title:r})=>g.jsxs("li",{className:et("pkt-step",t,`pkt-step--${n}`),"data-testid":"pkt-step",children:[g.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),g.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),g.jsx("span",{className:et("pkt-step__indicator"),children:n==="current"?s1:n==="completed"?o1:i1}),g.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),g.jsxs("div",{className:"pkt-step__wrapper",children:[g.jsx("div",{className:"pkt-step__title",children:r}),g.jsx("div",{className:"pkt-step__content",children:e})]})]}),u1=I.forwardRef(({id:e,ariaDescribedby:t,ariaLabelledby:n,counter:r,counterMaxLength:i,className:o,disabled:u,errorMessage:c,hasError:d,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,fullwidth:b=!1,label:k,name:x,optionalTag:C=!1,optionalText:T,requiredTag:F=!1,requiredText:S,placeholder:A,rows:_,useWrapper:$=!0,onChange:L,...M},P)=>{const V=[o,"pkt-textinput","pkt-textarea"].join(" "),J=n||`${e}-label`,Y=I.useRef(null),[O,j]=I.useState(0),H=Z=>{var fe,te;if(r&&j(((te=(fe=Z.currentTarget)==null?void 0:fe.value)==null?void 0:te.length)||0),L)return L(Z)};return I.useEffect(()=>{var Z,fe;typeof P=="function"&&P(Y.current),r&&j(((fe=(Z=Y==null?void 0:Y.current)==null?void 0:Z.value)==null?void 0:fe.length)||0)},[P]),g.jsx(gr,{ariaDescribedby:t,className:V,disabled:u,errorMessage:c,forId:e,hasError:d,helptext:h,helptextDropdown:m,helptextDropdownButton:v,inline:y,label:k,optionalTag:C,optionalText:T,requiredTag:F,requiredText:S,useWrapper:$,counter:r,counterCurrent:O,counterMaxLength:i,children:g.jsx("textarea",{ref:Y,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&O>i?"pkt-input--counter-error":""}`,name:x||e,id:e,placeholder:A,disabled:u,rows:_,"aria-labelledby":J,"aria-invalid":d,"aria-errormessage":`${e}-error`,...M,onChange:H})})});ee.PktAccordion=Ah,ee.PktAccordionItem=qg,ee.PktAlert=Fs,ee.PktBackLink=wu,ee.PktBreadcrumbs=Ug,ee.PktButton=Un,ee.PktCard=Cu,ee.PktCheckbox=ri,ee.PktDatepicker=_u,ee.PktFooter=Wg,ee.PktFooterSimple=Vg,ee.PktHeader=Gg,ee.PktIcon=ce,ee.PktInput=xu,ee.PktInputWrapper=gr,ee.PktLink=Su,ee.PktLinkCard=Eu,ee.PktLoader=Fu,ee.PktMessagebox=Au,ee.PktModal=$u,ee.PktPreview=ld,ee.PktProgressbar=cd,ee.PktRadioButton=pd,ee.PktSearchInput=r1,ee.PktSelect=jo,ee.PktStep=l1,ee.PktStepper=a1,ee.PktTable=Si,ee.PktTableBody=Fi,ee.PktTableDataCell=_t,ee.PktTableHeader=Ei,ee.PktTableHeaderCell=It,ee.PktTableRow=er,ee.PktTabs=od,ee.PktTag=Fr,ee.PktTextarea=u1,ee.PktTextinput=Po,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
|