@oslokommune/punkt-react 12.12.3 → 12.13.0
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/CHANGELOG.md +20 -0
- package/dist/index.d.ts +3 -3
- package/dist/punkt-react.es.js +3499 -3474
- package/dist/punkt-react.umd.js +200 -188
- package/package.json +4 -4
- package/src/components/linkcard/LinkCard.test.tsx +85 -22
- package/src/components/linkcard/LinkCard.tsx +19 -33
package/dist/punkt-react.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
return [];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
(function(Q,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],O):(Q=typeof globalThis<"u"?globalThis:Q||self,O(Q["punkt-react"]={},Q.React,Q.reactRouterDom))})(this,function(Q,O,
|
|
36
|
+
(function(Q,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],O):(Q=typeof globalThis<"u"?globalThis:Q||self,O(Q["punkt-react"]={},Q.React,Q.reactRouterDom))})(this,function(Q,O,Nn){"use strict";var v_=Object.defineProperty;var y_=(Q,O,Nn)=>O in Q?v_(Q,O,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):Q[O]=Nn;var Ir=(Q,O,Nn)=>y_(Q,typeof O!="symbol"?O+"":O,Nn);function Eh(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 Fh(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 Ah=Eh(O);var vn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}},Rr={};/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.min.js
|
|
39
39
|
*
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
44
|
+
*/var Cl;function $h(){if(Cl)return Rr;Cl=1;var e=O,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,h){var m,v={},y=null,b=null;h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(b=d.ref);for(m in d)r.call(d,m)&&!o.hasOwnProperty(m)&&(v[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)v[m]===void 0&&(v[m]=d[m]);return{$$typeof:t,type:c,key:y,ref:b,props:v,_owner:i.current}}return Rr.Fragment=n,Rr.jsx=u,Rr.jsxs=u,Rr}var qr={};/**
|
|
45
45
|
* @license React
|
|
46
46
|
* react-jsx-runtime.development.js
|
|
47
47
|
*
|
|
@@ -49,89 +49,89 @@
|
|
|
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
|
|
53
|
-
`+ue+w}}var jt=!1,
|
|
52
|
+
*/var _l;function Th(){return _l||(_l=1,process.env.NODE_ENV!=="production"&&function(){var e=O,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 I=k&&w[k]||w[x];return typeof I=="function"?I:null}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function F(w){{for(var I=arguments.length,U=new Array(I>1?I-1:0),te=1;te<I;te++)U[te-1]=arguments[te];S("error",w,U)}}function S(w,I,U){{var te=B.ReactDebugCurrentFrame,De=te.getStackAddendum();De!==""&&(I+="%s",U=U.concat([De]));var ve=U.map(function(he){return String(he)});ve.unshift("Warning: "+I),Function.prototype.apply.call(console[w],console,ve)}}var A=!1,_=!1,$=!1,j=!1,L=!1,P;P=Symbol.for("react.module.reference");function W(w){return!!(typeof w=="string"||typeof w=="function"||w===r||w===o||L||w===i||w===h||w===m||j||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,I,U){var te=w.displayName;if(te)return te;var De=I.displayName||I.name||"";return De!==""?U+"("+De+")":U}function R(w){return w.displayName||"Context"}function q(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 I=w;return R(I)+".Consumer";case u:var U=w;return R(U._context)+".Provider";case d:return J(w,w.render,"ForwardRef");case v:var te=w.displayName||null;return te!==null?te:q(w.type)||"Memo";case y:{var De=w,ve=De._payload,he=De._init;try{return q(he(ve))}catch{return null}}}return null}var M=Object.assign,K=0,ne,ge,ee,le,fe,ae,ye;function ot(){}ot.__reactDisabledLog=!0;function Oe(){{if(K===0){ne=console.log,ge=console.info,ee=console.warn,le=console.error,fe=console.group,ae=console.groupCollapsed,ye=console.groupEnd;var w={configurable:!0,enumerable:!0,value:ot,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}K++}}function Fe(){{if(K--,K===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},w,{value:ne}),info:M({},w,{value:ge}),warn:M({},w,{value:ee}),error:M({},w,{value:le}),group:M({},w,{value:fe}),groupCollapsed:M({},w,{value:ae}),groupEnd:M({},w,{value:ye})})}K<0&&F("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Me=B.ReactCurrentDispatcher,ue;function Dt(w,I,U){{if(ue===void 0)try{throw Error()}catch(De){var te=De.stack.trim().match(/\n( *(at )?)/);ue=te&&te[1]||""}return`
|
|
53
|
+
`+ue+w}}var jt=!1,St;{var Et=typeof WeakMap=="function"?WeakMap:Map;St=new Et}function An(w,I){if(!w||jt)return"";{var U=St.get(w);if(U!==void 0)return U}var te;jt=!0;var De=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ve;ve=Me.current,Me.current=null,Oe();try{if(I){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(lt){te=lt}Reflect.construct(w,[],he)}else{try{he.call()}catch(lt){te=lt}w.call(he.prototype)}}else{try{throw Error()}catch(lt){te=lt}w()}}catch(lt){if(lt&&te&&typeof lt.stack=="string"){for(var ie=lt.stack.split(`
|
|
54
54
|
`),rt=te.stack.split(`
|
|
55
|
-
`),Be=ie.length-1,Te=rt.length-1;Be>=1&&Te>=0&&ie[Be]!==rt[Te];)Te--;for(;Be>=1&&Te>=0;Be--,Te--)if(ie[Be]!==rt[Te]){if(Be!==1||Te!==1)do if(Be--,Te--,Te<0||ie[Be]!==rt[Te]){var
|
|
56
|
-
`+ie[Be].replace(" at new "," at ");return w.displayName&&
|
|
55
|
+
`),Be=ie.length-1,Te=rt.length-1;Be>=1&&Te>=0&&ie[Be]!==rt[Te];)Te--;for(;Be>=1&&Te>=0;Be--,Te--)if(ie[Be]!==rt[Te]){if(Be!==1||Te!==1)do if(Be--,Te--,Te<0||ie[Be]!==rt[Te]){var kt=`
|
|
56
|
+
`+ie[Be].replace(" at new "," at ");return w.displayName&&kt.includes("<anonymous>")&&(kt=kt.replace("<anonymous>",w.displayName)),typeof w=="function"&&St.set(w,kt),kt}while(Be>=1&&Te>=0);break}}}finally{jt=!1,Me.current=ve,Fe(),Error.prepareStackTrace=De}var Ye=w?w.displayName||w.name:"",at=Ye?Dt(Ye):"";return typeof w=="function"&&St.set(w,at),at}function Ft(w,I,U){return An(w,!1)}function X(w){var I=w.prototype;return!!(I&&I.isReactComponent)}function Yt(w,I,U){if(w==null)return"";if(typeof w=="function")return An(w,X(w));if(typeof w=="string")return Dt(w);switch(w){case h:return Dt("Suspense");case m:return Dt("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return Ft(w.render);case v:return Yt(w.type,I,U);case y:{var te=w,De=te._payload,ve=te._init;try{return Yt(ve(De),I,U)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Ie={},Ee=B.ReactDebugCurrentFrame;function Tr(w){if(w){var I=w._owner,U=Yt(w.type,w._source,I?I.type:null);Ee.setExtraStackFrame(U)}else Ee.setExtraStackFrame(null)}function $n(w,I,U,te,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((te||"React class")+": "+U+" type `"+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[he]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rt.name="Invariant Violation",rt}ie=w[he](I,he,te,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){ie=Be}ie&&!(ie instanceof Error)&&(Tr(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).",te||"React class",U,he,typeof ie),Tr(null)),ie instanceof Error&&!(ie.message in Ie)&&(Ie[ie.message]=!0,Tr(De),F("Failed %s type: %s",U,ie.message),Tr(null))}}}var Io=Array.isArray;function mn(w){return Io(w)}function ka(w){{var I=typeof Symbol=="function"&&Symbol.toStringTag,U=I&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function Ro(w){try{return Ni(w),!1}catch{return!0}}function Ni(w){return""+w}function bt(w){if(Ro(w))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ka(w)),Ni(w)}var Jt=B.ReactCurrentOwner,ji={key:!0,ref:!0,__self:!0,__source:!0},Pi,Li,wa;wa={};function At(w){if(xe.call(w,"ref")){var I=Object.getOwnPropertyDescriptor(w,"ref").get;if(I&&I.isReactWarning)return!1}return w.ref!==void 0}function qo(w){if(xe.call(w,"key")){var I=Object.getOwnPropertyDescriptor(w,"key").get;if(I&&I.isReactWarning)return!1}return w.key!==void 0}function Ho(w,I){if(typeof w.ref=="string"&&Jt.current&&I&&Jt.current.stateNode!==I){var U=q(Jt.current.type);wa[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',q(Jt.current.type),w.ref),wa[U]=!0)}}function Uo(w,I){{var U=function(){Pi||(Pi=!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)",I))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function zo(w,I){{var U=function(){Li||(Li=!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)",I))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var Pt=function(w,I,U,te,De,ve,he){var ie={$$typeof:t,type:w,key:I,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:te}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Wo(w,I,U,te,De){{var ve,he={},ie=null,rt=null;U!==void 0&&(bt(U),ie=""+U),qo(I)&&(bt(I.key),ie=""+I.key),At(I)&&(rt=I.ref,Ho(I,De));for(ve in I)xe.call(I,ve)&&!ji.hasOwnProperty(ve)&&(he[ve]=I[ve]);if(w&&w.defaultProps){var Be=w.defaultProps;for(ve in Be)he[ve]===void 0&&(he[ve]=Be[ve])}if(ie||rt){var Te=typeof w=="function"?w.displayName||w.name||"Unknown":w;ie&&Uo(he,Te),rt&&zo(he,Te)}return Pt(w,ie,rt,De,te,Jt.current,he)}}var Ca=B.ReactCurrentOwner,Oi=B.ReactDebugCurrentFrame;function qt(w){if(w){var I=w._owner,U=Yt(w.type,w._source,I?I.type:null);Oi.setExtraStackFrame(U)}else Oi.setExtraStackFrame(null)}var _a;_a=!1;function xa(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function Sa(){{if(Ca.current){var w=q(Ca.current.type);if(w)return`
|
|
57
57
|
|
|
58
|
-
Check the render method of \``+w+"`."}return""}}function
|
|
58
|
+
Check the render method of \``+w+"`."}return""}}function Vo(w){return""}var Mi={};function Go(w){{var I=Sa();if(!I){var U=typeof w=="string"?w:w.displayName||w.name;U&&(I=`
|
|
59
59
|
|
|
60
|
-
Check the top-level render call using <`+U+">.")}return I}}function
|
|
60
|
+
Check the top-level render call using <`+U+">.")}return I}}function ar(w,I){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Go(I);if(Mi[U])return;Mi[U]=!0;var te="";w&&w._owner&&w._owner!==Ca.current&&(te=" It was passed a child from "+q(w._owner.type)+"."),qt(w),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,te),qt(null)}}function gn(w,I){{if(typeof w!="object")return;if(mn(w))for(var U=0;U<w.length;U++){var te=w[U];xa(te)&&ar(te,I)}else if(xa(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;)xa(he.value)&&ar(he.value,I)}}}function $t(w){{var I=w.type;if(I==null||typeof I=="string")return;var U;if(typeof I=="function")U=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===d||I.$$typeof===v))U=I.propTypes;else return;if(U){var te=q(I);$n(U,w.props,"prop",te,w)}else if(I.PropTypes!==void 0&&!_a){_a=!0;var De=q(I);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",De||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yo(w){{for(var I=Object.keys(w.props),U=0;U<I.length;U++){var te=I[U];if(te!=="children"&&te!=="key"){qt(w),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),qt(null);break}}w.ref!==null&&(qt(w),F("Invalid attribute `ref` supplied to `React.Fragment`."),qt(null))}}var Ii={};function Ri(w,I,U,te,De,ve){{var he=W(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=Vo();rt?ie+=rt:ie+=Sa();var Be;w===null?Be="null":mn(w)?Be="array":w!==void 0&&w.$$typeof===t?(Be="<"+(q(w.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof w,F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,ie)}var Te=Wo(w,I,U,De,ve);if(Te==null)return Te;if(he){var kt=I.children;if(kt!==void 0)if(te)if(mn(kt)){for(var Ye=0;Ye<kt.length;Ye++)gn(kt[Ye],w);Object.freeze&&Object.freeze(kt)}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 gn(kt,w)}if(xe.call(I,"key")){var at=q(w),lt=Object.keys(I).filter(function(Xo){return Xo!=="key"}),Ea=lt.length>0?"{key: someKey, "+lt.join(": ..., ")+": ...}":"{key: someKey}";if(!Ii[at+Ea]){var Hi=lt.length>0?"{"+lt.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} />`,
|
|
65
|
+
<%s key={someKey} {...props} />`,Ea,at,Hi,at),Ii[at+Ea]=!0}}return w===r?Yo(Te):$t(Te),Te}}function qi(w,I,U){return Ri(w,I,U,!0)}function Jo(w,I,U){return Ri(w,I,U,!1)}var Ko=Jo,Br=qi;qr.Fragment=r,qr.jsx=Ko,qr.jsxs=Br}()),qr}process.env.NODE_ENV==="production"?ls.exports=$h():ls.exports=Th();var g=ls.exports;const Bh=O.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
|
|
69
|
-
*/const
|
|
69
|
+
*/const Nh=new Set(["children","localName","ref","style","className"]),xl=new WeakMap,Sl=(e,t,n,r,i)=>{const o=i==null?void 0:i[t];o===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((u,c,d)=>{let h=xl.get(u);h===void 0&&xl.set(u,h=new Map);let m=h.get(c);d!==void 0?m===void 0?(h.set(c,m={handleEvent:d}),u.addEventListener(c,m)):m.handleEvent=d:m!==void 0&&(h.delete(c),u.removeEventListener(c,m))})(e,o,n)},Kt=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{const o=new Set(Object.keys(r??{})),u=e.forwardRef((c,d)=>{const h=e.useRef(new Map),m=e.useRef(null),v={},y={};for(const[b,k]of Object.entries(c))Nh.has(b)?v[b==="className"?"class":b]=k:o.has(b)||b in n.prototype?y[b]=k:v[b]=k;return e.useLayoutEffect(()=>{if(m.current===null)return;const b=new Map;for(const k in y)Sl(m.current,k,c[k],h.current.get(k),r),h.current.delete(k),b.set(k,c[k]);for(const[k,x]of h.current)Sl(m.current,k,void 0,x,r);h.current=b}),e.useLayoutEffect(()=>{var b;(b=m.current)==null||b.removeAttribute("defer-hydration")},[]),v.suppressHydrationWarning=!0,e.createElement(t,{...v,ref:e.useCallback(b=>{m.current=b,typeof d=="function"?d(b):d!==null&&(d.current=b)},[d])})});return u.displayName=i??n.name,u};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
-
*/const
|
|
74
|
-
\f\r]`,
|
|
75
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
73
|
+
*/const Ua=globalThis,za=Ua.trustedTypes,El=za?za.createPolicy("lit-html",{createHTML:e=>e}):void 0,us="$lit$",Xt=`lit$${Math.random().toFixed(9).slice(2)}$`,cs="?"+Xt,jh=`<${cs}>`,jn=document,Hr=()=>jn.createComment(""),Ur=e=>e===null||typeof e!="object"&&typeof e!="function",ps=Array.isArray,Fl=e=>ps(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",ds=`[
|
|
74
|
+
\f\r]`,zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Al=/-->/g,$l=/>/g,Pn=RegExp(`>|${ds}(?:([^\\s"'>=/]+)(${ds}*=${ds}*(?:[^
|
|
75
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Bl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Ph=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),z=Ph(1),Zt=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),jl=new WeakMap,Ln=jn.createTreeWalker(jn,129);function Pl(e,t){if(!ps(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return El!==void 0?El.createHTML(t):t}const Ll=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"<svg>":t===3?"<math>":"",u=zr;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===zr?m[1]==="!--"?u=Al:m[1]!==void 0?u=$l:m[2]!==void 0?(Nl.test(m[2])&&(i=RegExp("</"+m[2],"g")),u=Pn):m[3]!==void 0&&(u=Pn):u===Pn?m[0]===">"?(u=i??zr,v=-1):m[1]===void 0?v=-2:(v=u.lastIndex-m[2].length,h=m[1],u=m[3]===void 0?Pn:m[3]==='"'?Bl:Tl):u===Bl||u===Tl?u=Pn:u===Al||u===$l?u=zr:(u=Pn,i=void 0);const b=u===Pn&&e[c+1].startsWith("/>")?" ":"";o+=u===zr?d+jh:v>=0?(r.push(h),d.slice(0,v)+us+d.slice(v)+Xt+b):d+Xt+(v===-2?c:b)}return[Pl(e,o+(e[n]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};let hs=class kh{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]=Ll(t,n);if(this.el=kh.createElement(h,r),Ln.currentNode=this.el.content,n===2||n===3){const v=this.el.content.firstChild;v.replaceWith(...v.childNodes)}for(;(i=Ln.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const v of i.getAttributeNames())if(v.endsWith(us)){const y=m[u++],b=i.getAttribute(v).split(Xt),k=/([.?@])?(.*)/.exec(y);d.push({type:1,index:o,name:k[2],strings:b,ctor:k[1]==="."?Ml:k[1]==="?"?Il:k[1]==="@"?Rl:Wr}),i.removeAttribute(v)}else v.startsWith(Xt)&&(d.push({type:6,index:o}),i.removeAttribute(v));if(Nl.test(i.tagName)){const v=i.textContent.split(Xt),y=v.length-1;if(y>0){i.textContent=za?za.emptyScript:"";for(let b=0;b<y;b++)i.append(v[b],Hr()),Ln.nextNode(),d.push({type:2,index:++o});i.append(v[y],Hr())}}}else if(i.nodeType===8)if(i.data===cs)d.push({type:2,index:o});else{let v=-1;for(;(v=i.data.indexOf(Xt,v+1))!==-1;)d.push({type:7,index:o}),v+=Xt.length-1}o++}}static createElement(t,n){const r=jn.createElement("template");return r.innerHTML=t,r}};function On(e,t,n=e,r){var i,o;if(t===Zt)return t;let u=r!==void 0?(i=n._$Co)==null?void 0:i[r]:n._$Cl;const c=Ur(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=On(e,u._$AS(e,t.values),u,r)),t}let Ol=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)??jn).importNode(n,!0);Ln.currentNode=i;let o=Ln.nextNode(),u=0,c=0,d=r[0];for(;d!==void 0;){if(u===d.index){let h;d.type===2?h=new Wa(o,o.nextSibling,this,t):d.type===1?h=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(h=new ql(o,this,t)),this._$AV.push(h),d=r[++c]}u!==(d==null?void 0:d.index)&&(o=Ln.nextNode(),u++)}return Ln.currentNode=jn,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++}},Wa=class wh{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=Z,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=On(this,t,n),Ur(t)?t===Z||t==null||t===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==Zt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Fl(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Z&&Ur(this._$AH)?this._$AA.nextSibling.data=t:this.T(jn.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=hs.createElement(Pl(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 Ol(o,this),c=u.u(this.options);u.p(r),this.T(c),this._$AH=u}}_$AC(t){let n=jl.get(t.strings);return n===void 0&&jl.set(t.strings,n=new hs(t)),n}k(t){ps(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 wh(this.O(Hr()),this.O(Hr()),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))}},Wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,r,i,o){this.type=1,this._$AH=Z,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=Z}_$AI(t,n=this,r,i){const o=this.strings;let u=!1;if(o===void 0)t=On(this,t,n,0),u=!Ur(t)||t!==this._$AH&&t!==Zt,u&&(this._$AH=t);else{const c=t;let d,h;for(t=o[0],d=0;d<o.length-1;d++)h=On(this,c[r+d],n,d),h===Zt&&(h=this._$AH[d]),u||(u=!Ur(h)||h!==this._$AH[d]),h===Z?t=Z:t!==Z&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}u&&!i&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ml=class extends Wr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}},Il=class extends Wr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Z)}},Rl=class extends Wr{constructor(t,n,r,i,o){super(t,n,r,i,o),this.type=5}_$AI(t,n=this){if((t=On(this,t,n,0)??Z)===Zt)return;const r=this._$AH,i=t===Z&&r!==Z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==Z&&(r===Z||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)}},ql=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){On(this,t)}};const Lh={M:us,P:Xt,A:cs,C:1,L:Ll,R:Ol,D:Fl,V:On,I:Wa,H:Wr,N:Il,U:Rl,B:Ml,F:ql},Hl=Ua.litHtmlPolyfillSupport;Hl==null||Hl(hs,Wa),(Ua.litHtmlVersions??(Ua.litHtmlVersions=[])).push("3.2.1");const Oh=(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 Wa(t.insertBefore(Hr(),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
|
|
79
|
-
*/const
|
|
79
|
+
*/const Va=globalThis,fs=Va.ShadowRoot&&(Va.ShadyCSS===void 0||Va.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ul=Symbol(),zl=new WeakMap;let Mh=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==Ul)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(fs&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=zl.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&zl.set(n,t))}return t}toString(){return this.cssText}};const Ih=e=>new Mh(typeof e=="string"?e:e+"",void 0,Ul),Rh=(e,t)=>{if(fs)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=Va.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},Wl=fs?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return Ih(n)})(e):e;/**
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2017 Google LLC
|
|
82
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
|
-
*/const{is:
|
|
83
|
+
*/const{is:qh,defineProperty:Hh,getOwnPropertyDescriptor:Uh,getOwnPropertyNames:zh,getOwnPropertySymbols:Wh,getPrototypeOf:Vh}=Object,ur=globalThis,Vl=ur.trustedTypes,Gh=Vl?Vl.emptyScript:"",Gl=ur.reactiveElementPolyfillSupport,Vr=(e,t)=>e,Ga={toAttribute(e,t){switch(t){case Boolean:e=e?Gh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},ms=(e,t)=>!qh(e,t),Yl={attribute:!0,type:String,converter:Ga,reflect:!1,hasChanged:ms};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),ur.litPropertyMetadata??(ur.litPropertyMetadata=new WeakMap);let cr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=Yl){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&Hh(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=Uh(this.prototype,t)??{get(){return this[n]},set(u){this[n]=u}};return{get(){return i==null?void 0:i.call(this)},set(u){const c=i==null?void 0:i.call(this);o.call(this,u),this.requestUpdate(t,c,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yl}static _$Ei(){if(this.hasOwnProperty(Vr("elementProperties")))return;const t=Vh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Vr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vr("properties"))){const n=this.properties,r=[...zh(n),...Wh(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(Wl(i))}else t!==void 0&&n.push(Wl(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rh(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const u=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Ga).toAttribute(n,i.type);this._$Em=t,u==null?this.removeAttribute(o):this.setAttribute(o,u),this._$Em=null}}_$AK(t,n){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const u=i.getPropertyOptions(o),c=typeof u.converter=="function"?{fromAttribute:u.converter}:((r=u.converter)==null?void 0:r.fromAttribute)!==void 0?u.converter:Ga;this._$Em=o,this[o]=c.fromAttribute(n,u.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??ms)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,u]of this._$Ep)this[o]=u;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,u]of i)u.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],u)}let n=!1;const r=this._$AL;try{n=this.shouldUpdate(r),n?(this.willUpdate(r),(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(r)):this._$EU()}catch(i){throw n=!1,this._$EU(),i}n&&this._$AE(r)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};cr.elementStyles=[],cr.shadowRootOptions={mode:"open"},cr[Vr("elementProperties")]=new Map,cr[Vr("finalized")]=new Map,Gl==null||Gl({ReactiveElement:cr}),(ur.reactiveElementVersions??(ur.reactiveElementVersions=[])).push("2.0.4");/**
|
|
84
84
|
* @license
|
|
85
85
|
* Copyright 2017 Google LLC
|
|
86
86
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
87
|
-
*/const
|
|
87
|
+
*/const Yh={attribute:!0,type:String,converter:Ga,reflect:!1,hasChanged:ms},Jh=(e=Yh,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 T(e){return(t,n)=>typeof n=="object"?Jh(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 wt(e){return T({...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 lr{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=Ph(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=[],fs=0;fs<256;++fs)Qe.push((fs+256).toString(16).slice(1));function Yh(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,Jh=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(Jh)}var Xh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Jl={randomUUID:Xh};function ms(e,t,n){if(Jl.randomUUID&&!t&&!e)return Jl.randomUUID();e=e||{};var r=e.random||(e.rng||Kh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Yh(r)}const Zh={hi:"Hei!"},Qh={from:"Fra",to:"Til"},ef={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},tf={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"},nf={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:Zh,generic:Qh,calendar:ef,dates:tf,forms:nf},rf="pkt-inputwrapper",af={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},sf={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:rf,"css-class":"pkt-inputwrapper",events:af,props:sf};var of=Object.defineProperty,Ne=(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&&of(t,n,i),i};let wt=class extends Wr{constructor(){super(),this.strings=Lt}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};Ne([N({type:Object})],wt.prototype,"strings");let je=class extends wt{constructor(){super(),this.id=ms(),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)}};Ne([N({type:String,reflect:!0})],je.prototype,"id"),Ne([N({type:String,reflect:!0})],je.prototype,"name"),Ne([N({type:Boolean,reflect:!0})],je.prototype,"required"),Ne([N({type:Boolean,reflect:!0})],je.prototype,"disabled"),Ne([N({type:String,reflect:!0})],je.prototype,"placeholder"),Ne([N({type:Number,reflect:!0})],je.prototype,"min"),Ne([N({type:Number,reflect:!0})],je.prototype,"max"),Ne([N({type:Number,reflect:!0})],je.prototype,"minlength"),Ne([N({type:Number,reflect:!0})],je.prototype,"maxlength"),Ne([N({type:String,reflect:!0})],je.prototype,"pattern"),Ne([N({type:String,reflect:!0})],je.prototype,"label"),Ne([N({type:Boolean})],je.prototype,"optionalTag"),Ne([N({type:String})],je.prototype,"optionalText"),Ne([N({type:Boolean})],je.prototype,"requiredTag"),Ne([N({type:String})],je.prototype,"requiredText"),Ne([N({type:Boolean})],je.prototype,"hasError"),Ne([N({type:String})],je.prototype,"errorMessage"),Ne([N({type:String})],je.prototype,"helptext"),Ne([N({type:String})],je.prototype,"helptextDropdown"),Ne([N({type:String})],je.prototype,"helptextDropdownButton"),Ne([N({type:Boolean,reflect:!0})],je.prototype,"fullwidth"),Ne([kt()],je.prototype,"touched");/**
|
|
95
|
+
*/let Gr=class extends cr{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=Oh(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 Zt}};var Jl;Gr._$litElement$=!0,Gr.finalized=!0,(Jl=globalThis.litElementHydrateSupport)==null||Jl.call(globalThis,{LitElement:Gr});const Kl=globalThis.litElementPolyfillSupport;Kl==null||Kl({LitElement:Gr}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");for(var Qe=[],gs=0;gs<256;++gs)Qe.push((gs+256).toString(16).slice(1));function Kh(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 Ya,Xh=new Uint8Array(16);function Zh(){if(!Ya&&(Ya=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ya))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ya(Xh)}var Qh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Xl={randomUUID:Qh};function vs(e,t,n){if(Xl.randomUUID&&!t&&!e)return Xl.randomUUID();e=e||{};var r=e.random||(e.rng||Zh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Kh(r)}const ef={hi:"Hei!"},tf={from:"Fra",to:"Til"},nf={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},rf={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"},af={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:ef,generic:tf,calendar:nf,dates:rf,forms:af},sf="pkt-inputwrapper",of={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},lf={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:sf,"css-class":"pkt-inputwrapper",events:of,props:lf};var uf=Object.defineProperty,Ne=(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&&uf(t,n,i),i};let ft=class extends Gr{constructor(){super(),this.strings=Lt}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}};Ne([T({type:Object})],ft.prototype,"strings");let je=class extends ft{constructor(){super(),this.id=vs(),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)}};Ne([T({type:String,reflect:!0})],je.prototype,"id"),Ne([T({type:String,reflect:!0})],je.prototype,"name"),Ne([T({type:Boolean,reflect:!0})],je.prototype,"required"),Ne([T({type:Boolean,reflect:!0})],je.prototype,"disabled"),Ne([T({type:String,reflect:!0})],je.prototype,"placeholder"),Ne([T({type:Number,reflect:!0})],je.prototype,"min"),Ne([T({type:Number,reflect:!0})],je.prototype,"max"),Ne([T({type:Number,reflect:!0})],je.prototype,"minlength"),Ne([T({type:Number,reflect:!0})],je.prototype,"maxlength"),Ne([T({type:String,reflect:!0})],je.prototype,"pattern"),Ne([T({type:String,reflect:!0})],je.prototype,"label"),Ne([T({type:Boolean})],je.prototype,"optionalTag"),Ne([T({type:String})],je.prototype,"optionalText"),Ne([T({type:Boolean})],je.prototype,"requiredTag"),Ne([T({type:String})],je.prototype,"requiredText"),Ne([T({type:Boolean})],je.prototype,"hasError"),Ne([T({type:String})],je.prototype,"errorMessage"),Ne([T({type:String})],je.prototype,"helptext"),Ne([T({type:String})],je.prototype,"helptextDropdown"),Ne([T({type:String})],je.prototype,"helptextDropdownButton"),Ne([T({type:Boolean,reflect:!0})],je.prototype,"fullwidth"),Ne([wt()],je.prototype,"touched");/**
|
|
96
96
|
* @license
|
|
97
97
|
* Copyright 2017 Google LLC
|
|
98
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
99
|
-
*/const
|
|
99
|
+
*/const Ja={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Yr=e=>(...t)=>({_$litDirective$:e,values:t});let Ka=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,r){this._$Ct=t,this._$AM=n,this._$Ci=r}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/**
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright 2017 Google LLC
|
|
102
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
-
*/const
|
|
103
|
+
*/const Ct=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
|
|
107
|
-
*/const Pe=
|
|
107
|
+
*/const Pe=Yr(class extends Ka{constructor(e){var t;if(super(e),e.type!==Ja.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var n,r;if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((n=this.nt)!=null&&n.has(o))&&this.st.add(o);return this.render(t)}const i=e.element.classList;for(const o of this.st)o in t||(i.remove(o),this.st.delete(o));for(const o in t){const u=!!t[o];u===this.st.has(o)||(r=this.nt)!=null&&r.has(o)||(u?(i.add(o),this.st.add(o)):(i.remove(o),this.st.delete(o)))}return Zt}});let Qt=class{constructor(t,...n){this.nodes=[],this.host=t,this.host.addController(this),this.slots=n,this.nodes=[],this.observer=new MutationObserver(r=>this.handleMutations(r))}hostConnected(){this.updateNodes(),this.observer.observe(this.host,{childList:!0})}hostDisconnected(){this.observer.disconnect()}hostUpdated(){this.updateSlots()}updateNodes(){this.nodes=[],Array.from(this.host.childNodes).forEach(t=>{var n;if(t.nodeType===Node.TEXT_NODE&&(n=t.nodeValue)!=null&&n.trim()){const r=document==null?void 0:document.createElement("template");r.content.appendChild(t),this.nodes.push(r)}else this.isSlotElement(t)||this.nodes.push(t)})}updateSlots(){this.slots.forEach(t=>{if(!t.value)return;const n=t.value.getAttribute("name"),r=this.nodes.flatMap(i=>i.getAttribute&&i.getAttribute("slot")==n?this.nodeFromElement(i,t):[]).filter(i=>t.value&&!t.value.contains(i)&&!i.contains(t.value));r.length>0&&t.value.replaceChildren(...r)})}handleMutations(t){let n=!1;t.forEach(r=>{r.type==="childList"&&(r.addedNodes.forEach(i=>{var o;const u=i.nodeType===Node.ELEMENT_NODE&&!this.isSlotElement(i),c=i.nodeType===Node.TEXT_NODE&&((o=i.nodeValue)==null?void 0:o.trim());if(u)this.nodes.push(i),n=!0;else if(c){const d=document==null?void 0:document.createElement("template");d.content.appendChild(i),this.nodes.push(d),n=!0}}),r.removedNodes.forEach(i=>{this.nodes=this.nodes.filter(o=>o!==i),n=!0}))}),n&&this.updateSlots()}isSlotElement(t){return this.slots.some(n=>n.value===t)}nodeFromElement(t,n){var r;return t===((r=n.value)==null?void 0:r.parentNode)?[]:t instanceof HTMLTemplateElement?Array.from(t.content.childNodes):[t]}};/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2020 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/const{I:
|
|
111
|
+
*/const{I:cf}=Lh,pf=e=>e.strings===void 0,Zl=()=>document.createComment(""),Jr=(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(Zl(),o),c=i.insertBefore(Zl(),o);n=new cf(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},Mn=(e,t,n=e)=>(e._$AI(t,n),e),df={},hf=(e,t=df)=>e._$AH=t,ff=e=>e._$AH,ys=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
|
|
115
|
+
*/const Kr=(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),Kr(i,t);return!0},Xa=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)},Ql=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),vf(t)}};function mf(e){this._$AN!==void 0?(Xa(this),this._$AM=e,Ql(this)):this._$AM=e}function gf(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++)Kr(r[o],!1),Xa(r[o]);else r!=null&&(Kr(r,!1),Xa(r));else Kr(this,e)}const vf=e=>{e.type==Ja.CHILD&&(e._$AP??(e._$AP=gf),e._$AQ??(e._$AQ=mf))};let yf=class extends Ka{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,r){super._$AT(t,n,r),Ql(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&&(Kr(this,t),Xa(this))}setValue(t){if(pf(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
|
|
119
|
+
*/const st=()=>new Df;let Df=class{};const Ds=new WeakMap,Ge=Yr(class extends yf{render(e){return Z}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)),Z}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let n=Ds.get(t);n===void 0&&(n=new WeakMap,Ds.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=Ds.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
|
|
123
|
+
*/let Za=class extends Ka{constructor(t){if(super(t),this.it=Z,t.type!==Ja.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Z||t==null)return this._t=void 0,this.it=t;if(t===Zt)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:[]}}};Za.directiveName="unsafeHTML",Za.resultType=1;const Qa=Yr(Za);/**
|
|
124
124
|
* @license
|
|
125
125
|
* Copyright 2017 Google LLC
|
|
126
126
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
127
|
-
*/class
|
|
127
|
+
*/let bs=class extends Za{};bs.directiveName="unsafeSVG",bs.resultType=2;const eu=Yr(bs);var bf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,Xr=(e,t,n,r)=>{for(var i=r>1?void 0:r?kf(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&&bf(t,n,i),i};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.13/icons/";const wf=e=>new Promise(t=>setTimeout(t,e)),ei='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ks={},Cf=async(e,t)=>{let n=0;for(;ks[t+e+".svg"]==="fetching"&&(n++,!(n>50));)await wf(50);return localStorage.getItem(t+e+".svg")?Promise.resolve(localStorage.getItem(t+e+".svg")):typeof window.pktFetch=="function"?(ks[t+e+".svg"]="fetching",Promise.resolve(window.pktFetch(t+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+t+e+".svg"),ei)).then(r=>(r!==ei&&localStorage.setItem(t+e+".svg",r),ks[t+e+".svg"]="fetched",r)))):Promise.resolve(ei)};let In=class extends ft{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=eu(ei),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=eu(await Cf(this.name||"",this.path).then(n=>n)),this._updatedProps=[]):this._updatedProps.includes(t)||this._updatedProps.push(t)}render(){return z`${this.name&&this.icon}`}};Xr([T({type:String,reflect:!1})],In.prototype,"path",2),Xr([T({type:String,reflect:!0})],In.prototype,"name",2),Xr([T({type:SVGElement})],In.prototype,"icon",2),Xr([T({type:Array,noAccessor:!0})],In.prototype,"_updatedProps",2),In=Xr([Ct("pkt-icon")],In);const _f="pkt-alert",xf=!0,Sf={onClose:{description:"React: Klikk-event for 'Lukk'-knappen"},close:{description:"Vue: Klikk-event for 'Lukk'-knappen"}},Ef={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}},Ff={default:{description:"Innholdet i meldingen"}},ti={name:_f,"css-class":"pkt-alert","dark-mode":!0,isElement:xf,events:Sf,props:Ef,slots:Ff};var Af=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,en=(e,t,n,r)=>{for(var i=r>1?void 0:r?$f(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&&Af(t,n,i),i};let Ot=class extends ft{constructor(){super(),this.defaultSlot=st(),this.compact=ti.props.compact.default,this.title="",this.skin=ti.props.skin.default,this.ariaLive=ti.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=ti.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 Qt(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(t,n,r){t==="ariaLive"&&(this["aria-live"]=r)}updated(t){t.has("ariaLive")&&(this["aria-live"]=this.ariaLive)}render(){const t={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed};return z`
|
|
128
128
|
<div class=${Pe(t)}>
|
|
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?z`
|
|
135
135
|
<div class="pkt-alert__close">
|
|
136
136
|
<button
|
|
137
137
|
type="button"
|
|
@@ -144,13 +144,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
144
144
|
</button>
|
|
145
145
|
</div>
|
|
146
146
|
`:Z}
|
|
147
|
-
${this.title?
|
|
147
|
+
${this.title?z`<div class="pkt-alert__title">${this.title}</div>`:Z}
|
|
148
148
|
|
|
149
|
-
<div class="pkt-alert__text" ${
|
|
149
|
+
<div class="pkt-alert__text" ${Ge(this.defaultSlot)}></div>
|
|
150
150
|
|
|
151
|
-
${this.date?
|
|
151
|
+
${this.date?z`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:Z}
|
|
152
152
|
</div>
|
|
153
|
-
`}};Zt([N({type:Boolean,reflect:!1})],Ot.prototype,"compact",2),Zt([N({type:String,reflect:!0})],Ot.prototype,"title",2),Zt([N({type:String,reflect:!0})],Ot.prototype,"skin",2),Zt([N({type:String})],Ot.prototype,"ariaLive",2),Zt([N({type:String,reflect:!0})],Ot.prototype,"aria-live",2),Zt([N({type:Boolean,reflect:!0})],Ot.prototype,"closeAlert",2),Zt([N({type:String,reflect:!0})],Ot.prototype,"date",2),Zt([kt()],Ot.prototype,"_isClosed",2),Ot=Zt([$t("pkt-alert")],Ot);const Ql=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Af=e=>e?new Date(e):null,$f=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},ur={csvToArray:Ql,stringToDate:Af,stringsToDate:$f},eu=6048e5,Tf=864e5,Bf=36e5,tu=Symbol.for("constructDateFrom");function Mt(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 Mt(t||e,e)}function bs(e,t,n){const r=ft(e,void 0);return isNaN(t)?Mt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Nf(e,t,n){return Mt(e,+ft(e)+t)}function Kr(e,t,n){return Nf(e,t*Bf)}let jf={};function ei(){return jf}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=Mt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ti(i),u=Mt(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=Mt.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 Pf(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)/Tf)}function Lf(e,t){const n=nu(e),r=Mt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ti(r)}function Of(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Mf(e){return!(!Of(e)&&typeof e!="number"||isNaN(+ft(e)))}function If(e,t){const[n,r]=au(e,t.start,t.end);return{start:n,end:r}}function ks(e,t){const{start:n,end:r}=If(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(Mt(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Rf(e,t){const n=ft(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const qf={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"}},Hf=(e,t,n)=>{let r;const i=qf[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 ws(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Uf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vf={date:ws({formats:Uf,defaultWidth:"full"}),time:ws({formats:zf,defaultWidth:"full"}),dateTime:ws({formats:Wf,defaultWidth:"full"})},Gf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yf=(e,t,n,r)=>Gf[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 Jf={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"]},Xf={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"]},Zf={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"]},Qf={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"}},em={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"}},tm=(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"},nm={ordinalNumber:tm,era:Zr({values:Jf,defaultWidth:"wide"}),quarter:Zr({values:Kf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Zr({values:Xf,defaultWidth:"wide"}),day:Zr({values:Zf,defaultWidth:"wide"}),dayPeriod:Zr({values:Qf,defaultWidth:"wide",formattingValues:em,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)?am(c,v=>v.test(u)):rm(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 rm(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function am(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function im(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 sm=/^(\d+)(th|st|nd|rd)?/i,om=/\d+/i,lm={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},um={any:[/^b/i,/^(a|c)/i]},cm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pm={any:[/1/i,/2/i,/3/i,/4/i]},dm={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},hm={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]},fm={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},mm={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]},gm={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},vm={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}},ym={ordinalNumber:im({matchPattern:sm,parsePattern:om,valueCallback:e=>parseInt(e,10)}),era:Qr({matchPatterns:lm,defaultMatchWidth:"wide",parsePatterns:um,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:cm,defaultMatchWidth:"wide",parsePatterns:pm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qr({matchPatterns:dm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any"}),day:Qr({matchPatterns:fm,defaultMatchWidth:"wide",parsePatterns:mm,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:gm,defaultMatchWidth:"any",parsePatterns:vm,defaultParseWidth:"any"})},Dm={code:"en-US",formatDistance:Hf,formatLong:Vf,formatRelative:Yf,localize:nm,match:ym,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bm(e,t){const n=ft(e,void 0);return Pf(n,Rf(n))+1}function km(e,t){const n=ft(e,void 0),r=+ti(n)-+Lf(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=Mt((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=Mt((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 wm(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=Mt((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)-+wm(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 vn={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)}},cr={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 vn.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 vn.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=km(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"}):vn.d(e,t)},D:function(e,t,n){const r=bm(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=cr.noon:r===0?i=cr.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=cr.evening:r>=12?i=cr.afternoon:r>=4?i=cr.morning:i=cr.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 vn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vn.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"}):vn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vn.s(e,t)},S:function(e,t){return vn.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"})}},Cm=(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))},_m={p:du,P:Cm},xm=/^D+$/,Sm=/^Y+$/,Em=["D","DD","YY","YYYY"];function Fm(e){return xm.test(e)}function Am(e){return Sm.test(e)}function $m(e,t,n){const r=Tm(e,t,n);if(console.warn(r),Em.includes(e))throw new RangeError(r)}function Tm(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 Bm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jm=/^'([^]*?)'?$/,Pm=/''/g,Lm=/[a-zA-Z]/;function Om(e,t,n){var r,i,o,u;const c=ei(),d=c.locale??Dm,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(!Mf(v))throw new RangeError("Invalid time value");let y=t.match(Nm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=_m[x];return C(k,d.formatLong)}return k}).join("").match(Bm).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Mm(k)};if(lu[x])return{isToken:!0,value:k};if(x.match(Lm))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;(Am(x)||Fm(x))&&$m(x,t,String(e));const C=lu[x[0]];return C(v,x,d.localize,b)}).join("")}function Mm(e){const t=e.match(jm);return t?t[1].replace(Pm,"'"):e}function Im(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(Rm);return n?fu(e,n.slice(1)):NaN}}const Rm=/([+-]\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),Cs(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),Cs(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),qm(this),+this},na.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Cs(this),+this}))});function Cs(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function qm(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} (${Hm(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 Hm(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],_s=e=>{if(!e)return null;const t=Kr(new ni(e,window.pktTz),12);return isNaN(t.getTime())?null:t},vu=(e,t)=>{const n=He(e);return isNaN(n.getTime())?"":Om(n,t)},He=(e="")=>Kr(e===""||!e?new ni(new Date,window.pktTz):new ni(e,window.pktTz),12),yn=(e,t,n=1)=>Kr(new ni(e,t,n,window.pktTz),12),Um=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),zm="pkt-calendar",Wm={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"}},Vm={"date-selected":{description:"Returns ISO formatted date string"}},Rn={name:zm,"css-class":"pkt-calendar",props:Wm,events:Vm};var Gm=Object.defineProperty,Ym=Object.getOwnPropertyDescriptor,Se=(e,t,n,r)=>{for(var i=r>1?void 0:r?Ym(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&&Gm(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=ks({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):yn(this.year,this.month,1);let u=bs(o,t);if(u){let c=this.querySelector(`div[data-date="${Xe(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=bs(u,t);let d=this.querySelector(`div[data-date="${Xe(u)}"]`);for(;d&&d instanceof HTMLDivElement&&d.dataset.disabled;)u=bs(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
|
+
`}};en([T({type:Boolean,reflect:!1})],Ot.prototype,"compact",2),en([T({type:String,reflect:!0})],Ot.prototype,"title",2),en([T({type:String,reflect:!0})],Ot.prototype,"skin",2),en([T({type:String})],Ot.prototype,"ariaLive",2),en([T({type:String,reflect:!0})],Ot.prototype,"aria-live",2),en([T({type:Boolean,reflect:!0})],Ot.prototype,"closeAlert",2),en([T({type:String,reflect:!0})],Ot.prototype,"date",2),en([wt()],Ot.prototype,"_isClosed",2),Ot=en([Ct("pkt-alert")],Ot);const tu=e=>{if(Array.isArray(e))return e;if(typeof e=="string")return e.split(",")},Tf=e=>e?new Date(e):null,Bf=e=>{if(typeof e=="string")return e.split(",").map(t=>new Date(t));if(Array.isArray(e))return e.map(t=>new Date(t))},pr={csvToArray:tu,stringToDate:Tf,stringsToDate:Bf},nu=6048e5,Nf=864e5,jf=36e5,ru=Symbol.for("constructDateFrom");function Mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ru in e?e[ru](t):e instanceof Date?new e.constructor(t):new Date(t)}function mt(e,t){return Mt(t||e,e)}function ws(e,t,n){const r=mt(e,void 0);return isNaN(t)?Mt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Pf(e,t,n){return Mt(e,+mt(e)+t)}function Zr(e,t,n){return Pf(e,t*jf)}let Lf={};function ni(){return Lf}function Qr(e,t){var n,r,i,o;const u=ni(),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=mt(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 ri(e,t){return Qr(e,{...t,weekStartsOn:1})}function au(e,t){const n=mt(e,void 0),r=n.getFullYear(),i=Mt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=ri(i),u=Mt(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=ri(u);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function iu(e){const t=mt(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 su(e,...t){const n=Mt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ou(e,t){const n=mt(e,void 0);return n.setHours(0,0,0,0),n}function Of(e,t,n){const[r,i]=su(void 0,e,t),o=ou(r),u=ou(i),c=+o-iu(o),d=+u-iu(u);return Math.round((c-d)/Nf)}function Mf(e,t){const n=au(e),r=Mt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ri(r)}function If(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rf(e){return!(!If(e)&&typeof e!="number"||isNaN(+mt(e)))}function qf(e,t){const[n,r]=su(e,t.start,t.end);return{start:n,end:r}}function Cs(e,t){const{start:n,end:r}=qf(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(Mt(n,u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return i?d.reverse():d}function Hf(e,t){const n=mt(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Uf={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"}},zf=(e,t,n)=>{let r;const i=Uf[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 _s(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Wf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yf={date:_s({formats:Wf,defaultWidth:"full"}),time:_s({formats:Vf,defaultWidth:"full"}),dateTime:_s({formats:Gf,defaultWidth:"full"})},Jf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Kf=(e,t,n,r)=>Jf[e];function ea(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 Xf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Qf={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},em={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"]},tm={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"}},nm={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"}},rm=(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"},am={ordinalNumber:rm,era:ea({values:Xf,defaultWidth:"wide"}),quarter:ea({values:Zf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ea({values:Qf,defaultWidth:"wide"}),day:ea({values:em,defaultWidth:"wide"}),dayPeriod:ea({values:tm,defaultWidth:"wide",formattingValues:nm,defaultFormattingWidth:"wide"})};function ta(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)?sm(c,v=>v.test(u)):im(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 im(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function sm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function om(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 lm=/^(\d+)(th|st|nd|rd)?/i,um=/\d+/i,cm={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},pm={any:[/^b/i,/^(a|c)/i]},dm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hm={any:[/1/i,/2/i,/3/i,/4/i]},fm={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},mm={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]},gm={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},vm={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]},ym={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},Dm={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}},bm={ordinalNumber:om({matchPattern:lm,parsePattern:um,valueCallback:e=>parseInt(e,10)}),era:ta({matchPatterns:cm,defaultMatchWidth:"wide",parsePatterns:pm,defaultParseWidth:"any"}),quarter:ta({matchPatterns:dm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ta({matchPatterns:fm,defaultMatchWidth:"wide",parsePatterns:mm,defaultParseWidth:"any"}),day:ta({matchPatterns:gm,defaultMatchWidth:"wide",parsePatterns:vm,defaultParseWidth:"any"}),dayPeriod:ta({matchPatterns:ym,defaultMatchWidth:"any",parsePatterns:Dm,defaultParseWidth:"any"})},km={code:"en-US",formatDistance:zf,formatLong:Yf,formatRelative:Kf,localize:am,match:bm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wm(e,t){const n=mt(e,void 0);return Of(n,Hf(n))+1}function Cm(e,t){const n=mt(e,void 0),r=+ri(n)-+Mf(n);return Math.round(r/nu)+1}function lu(e,t){var n,r,i,o;const u=mt(e,t==null?void 0:t.in),c=u.getFullYear(),d=ni(),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=Mt((t==null?void 0:t.in)||e,0);m.setFullYear(c+1,0,h),m.setHours(0,0,0,0);const v=Qr(m,t),y=Mt((t==null?void 0:t.in)||e,0);y.setFullYear(c,0,h),y.setHours(0,0,0,0);const b=Qr(y,t);return+u>=+v?c+1:+u>=+b?c:c-1}function _m(e,t){var n,r,i,o;const u=ni(),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=lu(e,t),h=Mt((t==null?void 0:t.in)||e,0);return h.setFullYear(d,0,c),h.setHours(0,0,0,0),Qr(h,t)}function uu(e,t){const n=mt(e,t==null?void 0:t.in),r=+Qr(n,t)-+_m(n,t);return Math.round(r/nu)+1}function Ce(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const yn={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)}},dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cu={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 yn.y(e,t)},Y:function(e,t,n,r){const i=lu(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=au(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 yn.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=uu(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Ce(i,t.length)},I:function(e,t,n){const r=Cm(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"}):yn.d(e,t)},D:function(e,t,n){const r=wm(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=dr.noon:r===0?i=dr.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=dr.evening:r>=12?i=dr.afternoon:r>=4?i=dr.morning:i=dr.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 yn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):yn.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"}):yn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):yn.s(e,t)},S:function(e,t){return yn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return du(r);case"XXXX":case"XX":return Rn(r);case"XXXXX":case"XXX":default:return Rn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return du(r);case"xxxx":case"xx":return Rn(r);case"xxxxx":case"xxx":default:return Rn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pu(r,":");case"OOOO":default:return"GMT"+Rn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pu(r,":");case"zzzz":default:return"GMT"+Rn(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 pu(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 du(e,t){return e%60===0?(e>0?"-":"+")+Ce(Math.abs(e)/60,2):Rn(e,t)}function Rn(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 hu=(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"})}},fu=(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"})}},xm=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return hu(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}}",hu(r,t)).replace("{{time}}",fu(i,t))},Sm={p:fu,P:xm},Em=/^D+$/,Fm=/^Y+$/,Am=["D","DD","YY","YYYY"];function $m(e){return Em.test(e)}function Tm(e){return Fm.test(e)}function Bm(e,t,n){const r=Nm(e,t,n);if(console.warn(r),Am.includes(e))throw new RangeError(r)}function Nm(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 jm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lm=/^'([^]*?)'?$/,Om=/''/g,Mm=/[a-zA-Z]/;function Im(e,t,n){var r,i,o,u;const c=ni(),d=c.locale??km,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=mt(e,void 0);if(!Rf(v))throw new RangeError("Invalid time value");let y=t.match(Pm).map(k=>{const x=k[0];if(x==="p"||x==="P"){const C=Sm[x];return C(k,d.formatLong)}return k}).join("").match(jm).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const x=k[0];if(x==="'")return{isToken:!1,value:Rm(k)};if(cu[x])return{isToken:!0,value:k};if(x.match(Mm))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;(Tm(x)||$m(x))&&Bm(x,t,String(e));const C=cu[x[0]];return C(v,x,d.localize,b)}).join("")}function Rm(e){const t=e.match(Lm);return t?t[1].replace(Om,"'"):e}function qm(e,t){const n=mt(e,void 0).getDay();return n===0?7:n}const mu={},na={};function ra(e,t){try{const n=(mu[e]||(mu[e]=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format))(t).split("GMT")[1]||"";return n in na?na[n]:gu(n,n.split(":"))}catch{if(e in na)return na[e];const n=e==null?void 0:e.match(Hm);return n?gu(e,n.slice(1)):NaN}}const Hm=/([+-]\d\d):?(\d\d)?/;function gu(e,t){const n=+t[0],r=+(t[1]||0);return na[e]=n>0?n*60+r:n*60-r}let aa=class Ia extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(ra(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)),yu(this),xs(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Ia(...n,t):new Ia(Date.now(),t)}withTimeZone(t){return new Ia(+this,t)}getTimezoneOffset(){return-ra(this.timeZone,this)}setTime(t){return Date.prototype.setTime.apply(this,arguments),xs(this),+this}[Symbol.for("constructDateFrom")](t){return new Ia(+new Date(t),this.timeZone)}};const vu=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!vu.test(e))return;const t=e.replace(vu,"$1UTC");aa.prototype[t]&&(e.startsWith("get")?aa.prototype[e]=function(){return this.internal[t]()}:(aa.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Um(this),+this},aa.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),xs(this),+this}))});function xs(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function Um(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()),yu(e)}function yu(e){const t=ra(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=ra(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=ra(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 ai=class Ra extends aa{static tz(t,...n){return n.length?new Ra(...n,t):new Ra(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} (${zm(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 Ra(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ra(+new Date(t),this.timeZone)}};function zm(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],Ss=e=>{if(!e)return null;const t=Zr(new ai(e,window.pktTz),12);return isNaN(t.getTime())?null:t},Du=(e,t)=>{const n=He(e);return isNaN(n.getTime())?"":Im(n,t)},He=(e="")=>Zr(e===""||!e?new ai(new Date,window.pktTz):new ai(e,window.pktTz),12),Dn=(e,t,n=1)=>Zr(new ai(e,t,n,window.pktTz),12),Wm=e=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(e),Vm="pkt-calendar",Gm={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"}},Ym={"date-selected":{description:"Returns ISO formatted date string"}},qn={name:Vm,"css-class":"pkt-calendar",props:Gm,events:Ym};var Jm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,Se=(e,t,n,r)=>{for(var i=r>1?void 0:r?Km(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&&Jm(t,n,i),i};let _e=class extends ft{constructor(){super(...arguments),this.multiple=qn.props.multiple.default,this.maxMultiple=qn.props.maxMultiple.default,this.range=qn.props.range.default,this.weeknumbers=qn.props.weeknumbers.default,this.withcontrols=qn.props.withcontrols.default,this.selected=[],this.earliest=qn.props.earliest.default,this.latest=qn.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=Cs({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):Dn(this.year,this.month,1);let u=ws(o,t);if(u){let c=this.querySelector(`div[data-date="${Xe(u)}"]`);if(c instanceof HTMLDivElement){if(c.dataset.disabled){u=ws(u,t);let d=this.querySelector(`div[data-date="${Xe(u)}"]`);for(;d&&d instanceof HTMLDivElement&&d.dataset.disabled;)u=ws(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 z`
|
|
154
154
|
<div
|
|
155
155
|
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":Z}"
|
|
156
156
|
@focusout=${this.closeEvent}
|
|
@@ -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(z`<th><div>${this.weekString}</div></th>`);for(let t=0;t<this.dayStrings.length;t++)e.push(z`<th><div aria-label="${this.dayStringsLong[t]}">${this.dayStrings[t]}</div></th>`);return z`<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(z`<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)=>z`<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(z`<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=
|
|
228
|
+
</div>`),e}renderDayView(e,t,n){var r;const i=Dn(this.year,this.month,e),o=Xe(i),u=o===Xe(t),c=this.selected.includes(o),d=Wm(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 z`<td class=${Pe(v)}>
|
|
229
229
|
<div
|
|
230
230
|
?aria-selected=${c}
|
|
231
231
|
role="gridcell"
|
|
@@ -241,61 +241,61 @@ React keys must be passed directly to JSX without using spread:
|
|
|
241
241
|
>
|
|
242
242
|
<span class="pkt-btn__text pkt-txt-14-light">${e}</span>
|
|
243
243
|
</div>
|
|
244
|
-
</td>`}renderCalendarBody(){const e=He(),t=
|
|
244
|
+
</td>`}renderCalendarBody(){const e=He(),t=Dn(this.year,this.month,1),n=Dn(this.year,this.month+1,0),r=(t.getDay()+6)%7,i=n.getDate(),o=Math.ceil((i+r)/7),u=Dn(this.year,this.month,0).getDate();let c=1;this.week=uu(Dn(this.year,this.month,1));const d=[];for(let h=0;h<o;h++){const m=[];this.weeknumbers&&m.push(z`<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(z`<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(z`<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(z`<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&&
|
|
260
|
+
</tr>`)}return d}isExcluded(e,t){return this.excludeweekdays.includes(e.toString())||this.earliest&&Zr(t,1)<He(this.earliest)||this.latest&&Zr(t,-1)>He(this.latest)?!0:this.excludedates.some(n=>typeof n=="string"?n===Xe(t):n.toDateString()===t.toDateString())}isPrevMonthAllowed(){const e=Dn(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=Dn(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=Cs({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(qm(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=Cs({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([T({type:Boolean})],_e.prototype,"multiple",2),Se([T({type:Number})],_e.prototype,"maxMultiple",2),Se([T({type:Boolean})],_e.prototype,"range",2),Se([T({type:Boolean})],_e.prototype,"weeknumbers",2),Se([T({type:Boolean})],_e.prototype,"withcontrols",2),Se([T({converter:pr.csvToArray})],_e.prototype,"selected",2),Se([T({type:String})],_e.prototype,"earliest",2),Se([T({type:String})],_e.prototype,"latest",2),Se([T({converter:pr.stringsToDate})],_e.prototype,"excludedates",2),Se([T({converter:pr.csvToArray})],_e.prototype,"excludeweekdays",2),Se([T({converter:pr.stringToDate})],_e.prototype,"currentmonth",2),Se([T({type:Array})],_e.prototype,"dayStrings",2),Se([T({type:Array})],_e.prototype,"dayStringsLong",2),Se([T({type:Array})],_e.prototype,"monthStrings",2),Se([T({type:String})],_e.prototype,"weekString",2),Se([T({type:String})],_e.prototype,"prevMonthString",2),Se([T({type:String})],_e.prototype,"nextMonthString",2),Se([T({type:Array})],_e.prototype,"_selected",2),Se([T({type:Number})],_e.prototype,"year",2),Se([T({type:Number})],_e.prototype,"month",2),Se([T({type:Number})],_e.prototype,"week",2),Se([T({type:Date})],_e.prototype,"rangeHovered",2),Se([wt()],_e.prototype,"inRange",2),Se([wt()],_e.prototype,"focusedDate",2),Se([wt()],_e.prototype,"selectableDates",2),Se([wt()],_e.prototype,"currentmonthtouched",2),Se([wt()],_e.prototype,"tabIndexSet",2),_e=Se([Ct("pkt-calendar")],_e);const Xm="pkt-tag",Zm=!0,Qm={closeTag:{type:"boolean",required:!1,default:!1},size:{required:!1,default:"medium",type:["small","medium","large"]},iconName:{type:"icon",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"}},eg={default:{description:"Teksten til tag"}},hr={name:Xm,"css-class":"pkt-tag",isElement:Zm,props:Qm,slots:eg};var tg=Object.defineProperty,ng=Object.getOwnPropertyDescriptor,tn=(e,t,n,r)=>{for(var i=r>1?void 0:r?ng(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 It=class extends ft{constructor(){super(),this.defaultSlot=st(),this.closeTag=hr.props.closeTag.default,this.size=hr.props.size.default,this.skin=hr.props.skin.default,this.textStyle=hr.props.textStyle.default,this.iconName=void 0,this.type=hr.props.type.default,this.ariaLabel=hr.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 Qt(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?z`
|
|
261
261
|
<button
|
|
262
262
|
class=${Pe(n)}
|
|
263
263
|
type=${this.type}
|
|
264
264
|
aria-label=${this.ariaLabel}
|
|
265
265
|
@click=${this.close}
|
|
266
266
|
>
|
|
267
|
-
${this.iconName&&
|
|
268
|
-
<span ${
|
|
267
|
+
${this.iconName&&z`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
268
|
+
<span ${Ge(this.defaultSlot)}></span>
|
|
269
269
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
270
270
|
</button>
|
|
271
|
-
`:
|
|
271
|
+
`:z`
|
|
272
272
|
<span class=${Pe(t)}>
|
|
273
|
-
${this.iconName&&
|
|
274
|
-
<span ${
|
|
273
|
+
${this.iconName&&z` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
274
|
+
<span ${Ge(this.defaultSlot)}></span>
|
|
275
275
|
</span>
|
|
276
|
-
`}};
|
|
276
|
+
`}};tn([T({type:Boolean,reflect:!0})],It.prototype,"closeTag",2),tn([T({type:String,reflect:!0})],It.prototype,"size",2),tn([T({type:String,reflect:!0})],It.prototype,"skin",2),tn([T({type:String,reflect:!0})],It.prototype,"textStyle",2),tn([T({type:String,reflect:!0})],It.prototype,"iconName",2),tn([T({type:String,reflect:!0})],It.prototype,"type",2),tn([T({type:String,reflect:!0})],It.prototype,"ariaLabel",2),tn([wt()],It.prototype,"_isClosed",2),It=tn([Ct("pkt-tag")],It);const rg="pkt-card",ag=!0,ig={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},tags:{type:"array",description:"Liste av tags på kortet. Tar inn en array med 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:"icon",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:!0}}}},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",name:"Bilde",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.",properties:{src:{type:"string",description:"Bilde på kortet",required:!0},alt:{type:"string",description:"Tekst for aria-label",required:!0}}}},sg={default:{description:"Innholdet i kortet"}},bu={name:rg,"css-class":"pkt-card",isElement:ag,props:ig,slots:sg};var og=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,Hn=(e,t,n,r)=>{for(var i=r>1?void 0:r?lg(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&&og(t,n,i),i};let nn=class extends ft{constructor(){super(),this.defaultSlot=st(),this.skin=bu.props.skin.default,this.direction=bu.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new Qt(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 z`
|
|
277
277
|
<div class=${Pe(t)}>
|
|
278
|
-
${this.image.src&&
|
|
278
|
+
${this.image.src&&z`
|
|
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?z`
|
|
285
285
|
<div class="pkt-card__tags">
|
|
286
|
-
${this.tags.map(n=>
|
|
286
|
+
${this.tags.map(n=>z`
|
|
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
292
|
`:Z}
|
|
293
|
-
${this.heading&&
|
|
294
|
-
${this.subheading&&
|
|
295
|
-
${this.defaultSlot&&
|
|
293
|
+
${this.heading&&z`<h3 class="pkt-txt-30-medium">${this.heading}</h3>`}
|
|
294
|
+
${this.subheading&&z`<p class="pkt-txt-20-light">${this.subheading}</p>`}
|
|
295
|
+
${this.defaultSlot&&z`<div class="pkt-card__content" ${Ge(this.defaultSlot)}></div>`}
|
|
296
296
|
</div>
|
|
297
297
|
</div>
|
|
298
|
-
`}};
|
|
298
|
+
`}};Hn([T({type:String,reflect:!0})],nn.prototype,"skin",2),Hn([T({type:String,reflect:!0})],nn.prototype,"direction",2),Hn([T({type:Object,reflect:!0})],nn.prototype,"image",2),Hn([T({type:String,reflect:!0})],nn.prototype,"heading",2),Hn([T({type:String,reflect:!0})],nn.prototype,"subheading",2),Hn([T({type:Array,reflect:!0})],nn.prototype,"tags",2),nn=Hn([Ct("pkt-card")],nn);var ug=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,ia=(e,t,n,r)=>{for(var i=r>1?void 0:r?cg(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&&ug(t,n,i),i};let fr=class extends ft{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=st(),this.namedSlot=st(),this.slotController=new Qt(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 z`
|
|
299
299
|
<div class="${Pe(t)}">
|
|
300
300
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
301
301
|
|
|
@@ -304,11 +304,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
304
304
|
<div>${this.renderList(this.doStuff(this._list))}</div>
|
|
305
305
|
|
|
306
306
|
<h2 class="pkt-txt-22">Slot</h2>
|
|
307
|
-
<div ${
|
|
307
|
+
<div ${Ge(this.defaultSlot)}>defaultSlotRef</div>
|
|
308
308
|
<h2 class="pkt-txt-22">Named slot</h2>
|
|
309
309
|
<select
|
|
310
310
|
name="named-slot"
|
|
311
|
-
${
|
|
311
|
+
${Ge(this.namedSlot)}
|
|
312
312
|
@change=${n=>alert(n.target.value)}
|
|
313
313
|
>
|
|
314
314
|
namedSlotRef
|
|
@@ -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 z`
|
|
323
323
|
<ul>
|
|
324
|
-
${t.map(n=>
|
|
324
|
+
${t.map(n=>z`<li>${n}</li>`)}
|
|
325
325
|
</ul>
|
|
326
|
-
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};
|
|
327
|
-
${this.helptext?
|
|
328
|
-
${
|
|
326
|
+
`}doStuff(t){return t.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};ia([T({type:String})],fr.prototype,"string",2),ia([T({converter:tu})],fr.prototype,"strings",2),ia([T({type:Boolean})],fr.prototype,"darkmode",2),ia([T({type:Array})],fr.prototype,"_list",2),fr=ia([Ct("pkt-component")],fr);var pg=Object.defineProperty,dg=Object.getOwnPropertyDescriptor,mr=(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 Un=class extends ft{constructor(){super(),this.forId=vs(),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 z`${this.helptext||this.helptextDropdown?z`<div>
|
|
327
|
+
${this.helptext?z`<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
328
|
+
${Qa(this.helptext)}
|
|
329
329
|
</div>`:Z}
|
|
330
|
-
${this.helptextDropdown?
|
|
330
|
+
${this.helptextDropdown?z`<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"
|
|
@@ -337,59 +337,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
337
337
|
class="pkt-btn__icon"
|
|
338
338
|
name="${this.isHelpTextOpen?"chevron-thin-up":"chevron-thin-down"}"
|
|
339
339
|
></pkt-icon>
|
|
340
|
-
<span class="pkt-btn__text">${
|
|
340
|
+
<span class="pkt-btn__text">${Qa(this.helptextDropdownButton)}</span>
|
|
341
341
|
</button>
|
|
342
342
|
<div class="${Pe(n)}">
|
|
343
|
-
${
|
|
343
|
+
${Qa(this.helptextDropdown)}
|
|
344
344
|
</div>
|
|
345
345
|
</div>`:Z}
|
|
346
|
-
</div>`:Z}`}};
|
|
346
|
+
</div>`:Z}`}};mr([T({type:String,reflect:!0})],Un.prototype,"forId",2),mr([T({type:String,reflect:!0})],Un.prototype,"helptext",2),mr([T({type:String,reflect:!0})],Un.prototype,"helptextDropdown",2),mr([T({type:String,reflect:!0})],Un.prototype,"helptextDropdownButton",2),mr([wt()],Un.prototype,"isHelpTextOpen",2),Un=mr([Ct("pkt-helptext")],Un);/**
|
|
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:
|
|
350
|
+
*/const hg=Symbol.for(""),Es=(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:hg});var fg=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,Ue=(e,t,n,r)=>{for(var i=r>1?void 0:r?mg(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&&fg(t,n,i),i};let Re=class extends ft{constructor(){super(),this.defaultSlot=st(),this.forId=vs(),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?Es`fieldset`:this.hasDropdown?Es`div`:Es`label`,this.slotController=new Qt(this,this.defaultSlot)}render(){const t={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},n={"pkt-tag":!0,"pkt-tag--small":!0,"pkt-tag--thin-text":!0,"pkt-tag--blue-light":this.optionalTag,"pkt-tag--beige":!this.optionalTag&&this.requiredTag},r=this.helptextDropdown!=="",i={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},o=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:Z,u=()=>this.optionalTag||this.requiredTag?z`<span class=${Pe(n)}
|
|
352
352
|
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:Z}</span
|
|
353
|
-
>`:Z,
|
|
354
|
-
${this.label} ${
|
|
355
|
-
</legend>`:
|
|
353
|
+
>`:Z,c=()=>this.useWrapper?this.hasFieldset?z`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
354
|
+
${this.label} ${u()}
|
|
355
|
+
</legend>`:r?z`<h2>${this.label} ${u()}</h2>`:z`<span>${this.label} ${u()}</span>`:z`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${o}"
|
|
356
356
|
>${this.label}</label
|
|
357
|
-
>`,
|
|
357
|
+
>`,d=()=>this.useWrapper&&(this.helptext||this.helptextDropdown)?z`
|
|
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
|
-
`:Z,
|
|
364
|
+
`:Z,h=()=>this.counter?z`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
365
365
|
${this.counterCurrent||0}
|
|
366
366
|
${this.counterMaxLength?`/${this.counterMaxLength}`:Z}
|
|
367
|
-
</div>`:Z,
|
|
367
|
+
</div>`:Z,m=()=>this.hasError&&this.errorMessage?z`<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
|
-
<div class="pkt-alert__text">${
|
|
373
|
-
</div>`:Z,
|
|
374
|
-
${
|
|
375
|
-
${
|
|
372
|
+
<div class="pkt-alert__text">${Qa(this.errorMessage)}</div>
|
|
373
|
+
</div>`:Z,v=()=>z`
|
|
374
|
+
${c()} ${d()}
|
|
375
|
+
${r?z`<label for="${this.forId}" class="pkt-sr-only" aria-describedby="${o}"
|
|
376
376
|
>${this.label}</label
|
|
377
377
|
>`:Z}
|
|
378
|
-
<div class="pkt-contents" ${
|
|
379
|
-
${
|
|
380
|
-
`,
|
|
381
|
-
${
|
|
382
|
-
</fieldset>`:
|
|
383
|
-
class=${Pe(
|
|
378
|
+
<div class="pkt-contents" ${Ge(this.defaultSlot)}></div>
|
|
379
|
+
${h()} ${m()}
|
|
380
|
+
`,y=()=>this.hasFieldset?z`<fieldset class=${Pe(i)} aria-describedby="${o}">
|
|
381
|
+
${v()}
|
|
382
|
+
</fieldset>`:r?z`<div class=${Pe(i)}>${v()}</div>`:z`<label
|
|
383
|
+
class=${Pe(i)}
|
|
384
384
|
for="${this.forId}"
|
|
385
|
-
aria-describedby="${
|
|
385
|
+
aria-describedby="${o}"
|
|
386
386
|
>
|
|
387
|
-
${
|
|
388
|
-
</label>`;return
|
|
387
|
+
${v()}
|
|
388
|
+
</label>`;return z`<div class=${Pe(t)}>${y()}</div> `}};Ue([T({type:String,reflect:!0})],Re.prototype,"forId",2),Ue([T({type:String,reflect:!0})],Re.prototype,"label",2),Ue([T({type:String,reflect:!0})],Re.prototype,"helptext",2),Ue([T({type:String,reflect:!0})],Re.prototype,"helptextDropdown",2),Ue([T({type:String,reflect:!0})],Re.prototype,"helptextDropdownButton",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"counter",2),Ue([T({type:Number,reflect:!0})],Re.prototype,"counterCurrent",2),Ue([T({type:Number,reflect:!0})],Re.prototype,"counterMaxLength",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"optionalTag",2),Ue([T({type:String,reflect:!0})],Re.prototype,"optionalText",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"requiredTag",2),Ue([T({type:String,reflect:!0})],Re.prototype,"requiredText",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"hasError",2),Ue([T({type:String,reflect:!0})],Re.prototype,"errorMessage",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"disabled",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"inline",2),Ue([T({type:String,reflect:!0})],Re.prototype,"ariaDescribedby",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"hasFieldset",2),Ue([T({type:Boolean,reflect:!0})],Re.prototype,"useWrapper",2),Re=Ue([Ct("pkt-input-wrapper")],Re);/**
|
|
389
389
|
* @license
|
|
390
390
|
* Copyright 2017 Google LLC
|
|
391
391
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
392
|
-
*/const
|
|
392
|
+
*/const ku=(e,t,n)=>{const r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},gg=Yr(class extends Ka{constructor(e){if(super(e),e.type!==Ja.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=ff(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]=Mn(i[v],o[b]),v++,b++;else if(c[y]===u[k])d[k]=Mn(i[y],o[k]),y--,k--;else if(c[v]===u[k])d[k]=Mn(i[v],o[k]),Jr(e,d[k+1],i[v]),v++,k--;else if(c[y]===u[b])d[b]=Mn(i[y],o[b]),Jr(e,i[v],i[y]),y--,b++;else if(h===void 0&&(h=ku(u,b,k),m=ku(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 B=Jr(e,i[v]);Mn(B,o[b]),d[b]=B}else d[b]=Mn(C,o[b]),Jr(e,i[v],C),i[x]=null;b++}else ys(i[y]),y--;else ys(i[v]),v++;for(;b<=k;){const x=Jr(e,d[k+1]);Mn(x,o[b]),d[b++]=x}for(;v<=y;){const x=i[v++];x!==null&&ys(x)}return this.ut=u,hf(e,d),Zt}}),vg="pkt-datepicker",yg=!0,Dg={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"}},bg={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"}},bn={name:vg,"css-class":"pkt-datepicker",isElement:yg,props:Dg,events:bg};var kg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,qe=(e,t,n,r)=>{for(var i=r>1?void 0:r?wg(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&&kg(t,n,i),i};const wu=e=>new Promise(t=>setTimeout(t,e));let Le=class extends je{constructor(){super(...arguments),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.dateformat=bn.props.dateformat.default,this.multiple=bn.props.multiple.default,this.maxlength=bn.props.maxlength.default,this.range=bn.props.range.default,this.showRangeLabels=!1,this.min=null,this.max=null,this.weeknumbers=bn.props.weeknumbers.default,this.withcontrols=bn.props.withcontrols.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.useWrapper=!0,this.calendarOpen=!1,this.timezone="Europe/Oslo",this.inputClasses={},this.buttonClasses={},this.inputRef=st(),this.inputRefTo=st(),this.btnRef=st(),this.calRef=st(),this.popupRef=st(),this.addToSelected=t=>{const n=t.target;if(!n.value)return;const r=this.min?He(this.min):null,i=this.max?He(this.max):null,o=He(n.value.split(",")[0]);o&&!isNaN(o.getTime())&&(!r||o>=r)&&(!i||o<=i)&&this.calRef.value&&this.calRef.value.handleDateSelect(o),n.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",t=>{var n,r;(n=this.inputRef)!=null&&n.value&&(r=this.btnRef)!=null&&r.value&&!this.inputRef.value.contains(t.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(t.target))&&!this.btnRef.value.contains(t.target)&&!t.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||bn.props.min.default,this.max=this.max||bn.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 wu(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",t=>{var n,r;(n=this.inputRef)!=null&&n.value&&(r=this.btnRef)!=null&&r.value&&!this.inputRef.value.contains(t.target)&&!this.btnRef.value.contains(t.target)&&this.hideCalendar()})}attributeChangedCallback(t,n,r){if(t==="value"){if(this.range&&(r==null?void 0:r.split(",").length)===1)return;this.value!==n&&this.valueChanged(r,n)}t==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(r==null?void 0:r.split(","))??[]),t==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(r==null?void 0:r.split(","))??[]),super.attributeChangedCallback(t,n,r)}firstUpdated(t){super.firstUpdated(t)}updated(t){if(super.updated(t),t.has("value")){if((this.range||this.multiple)&&typeof this.value=="string"&&(this.value=this.value.split(",")),this.range&&this.value.length===1)return;this.valueChanged(this.value,t.get("value"))}}renderInput(){return z`
|
|
393
393
|
<input
|
|
394
394
|
class="${Pe(this.inputClasses)}"
|
|
395
395
|
.type=${this.inputType}
|
|
@@ -404,10 +404,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
404
404
|
@focus=${()=>{this.onFocus(),this.isMobileSafari&&this.showCalendar()}}
|
|
405
405
|
@blur=${t=>{var n;(n=this.calRef.value)!=null&&n.contains(t.relatedTarget)||this.onBlur(),this.manageValidity(t.target),this.value=t.target.value}}
|
|
406
406
|
@change=${t=>{t.stopImmediatePropagation()}}
|
|
407
|
-
${
|
|
407
|
+
${Ge(this.inputRef)}
|
|
408
408
|
/>
|
|
409
|
-
`}renderRangeInput(){const t={"pkt-input-prefix":this.showRangeLabels,"pkt-hide":!this.showRangeLabels};return
|
|
410
|
-
${this.showRangeLabels?
|
|
409
|
+
`}renderRangeInput(){const t={"pkt-input-prefix":this.showRangeLabels,"pkt-hide":!this.showRangeLabels};return z`
|
|
410
|
+
${this.showRangeLabels?z` <div class="pkt-input-prefix">${this.strings.generic.from}</div> `:Z}
|
|
411
411
|
<input
|
|
412
412
|
class=${Pe(this.inputClasses)}
|
|
413
413
|
.type=${this.inputType}
|
|
@@ -420,14 +420,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
420
420
|
@keydown=${n=>{var r;(n.key===","||n.key==="Enter")&&((r=this.inputRef.value)==null||r.blur()),(n.key==="Space"||n.key===" ")&&(n.preventDefault(),this.toggleCalendar(n))}}
|
|
421
421
|
@input=${n=>{this.onInput(),n.stopImmediatePropagation()}}
|
|
422
422
|
@focus=${()=>{this.onFocus(),this.isMobileSafari&&this.showCalendar()}}
|
|
423
|
-
@blur=${n=>{var r,i;if(n.target.value){this.manageValidity(n.target);const o=
|
|
423
|
+
@blur=${n=>{var r,i;if(n.target.value){this.manageValidity(n.target);const o=Ss(n.target.value);o&&this._value[0]!==n.target.value&&this._value[1]&&(this.clearInputValue(),(i=(r=this.calRef)==null?void 0:r.value)==null||i.handleDateSelect(o))}else this._value[0]&&this.clearInputValue()}}
|
|
424
424
|
@change=${n=>{n.stopImmediatePropagation()}}
|
|
425
|
-
${
|
|
425
|
+
${Ge(this.inputRef)}
|
|
426
426
|
/>
|
|
427
427
|
<div class="${Pe(t)}" id="${this.id}-to-label">
|
|
428
428
|
${this.strings.generic.to}
|
|
429
429
|
</div>
|
|
430
|
-
${this.showRangeLabels?Z:
|
|
430
|
+
${this.showRangeLabels?Z:z` <div class="pkt-input-separator">–</div> `}
|
|
431
431
|
<input
|
|
432
432
|
class=${Pe(this.inputClasses)}
|
|
433
433
|
.type=${this.inputType}
|
|
@@ -441,11 +441,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
441
441
|
@keydown=${n=>{var r;(n.key===","||n.key==="Enter")&&((r=this.inputRefTo.value)==null||r.blur()),(n.key==="Space"||n.key===" ")&&(n.preventDefault(),this.toggleCalendar(n))}}
|
|
442
442
|
@input=${n=>{this.onInput(),n.stopImmediatePropagation()}}
|
|
443
443
|
@focus=${()=>{this.onFocus(),this.isMobileSafari&&this.showCalendar()}}
|
|
444
|
-
@blur=${n=>{var r,i,o;if((r=this.calRef.value)!=null&&r.contains(n.relatedTarget)||this.onBlur(),n.target.value){this.manageValidity(n.target);const u=n.target.value;this.min&&this.min>u?this.internals.setValidity({rangeUnderflow:!0},this.strings.forms.messages.rangeUnderflow,n.target):this.max&&this.max<u&&this.internals.setValidity({rangeOverflow:!0},this.strings.forms.messages.rangeOverflow,n.target);const c=
|
|
444
|
+
@blur=${n=>{var r,i,o;if((r=this.calRef.value)!=null&&r.contains(n.relatedTarget)||this.onBlur(),n.target.value){this.manageValidity(n.target);const u=n.target.value;this.min&&this.min>u?this.internals.setValidity({rangeUnderflow:!0},this.strings.forms.messages.rangeUnderflow,n.target):this.max&&this.max<u&&this.internals.setValidity({rangeOverflow:!0},this.strings.forms.messages.rangeOverflow,n.target);const c=Ss(n.target.value);c&&this._value[1]!==Xe(c)&&((o=(i=this.calRef)==null?void 0:i.value)==null||o.handleDateSelect(c))}}}
|
|
445
445
|
@change=${n=>{n.stopImmediatePropagation()}}
|
|
446
|
-
${
|
|
446
|
+
${Ge(this.inputRefTo)}
|
|
447
447
|
/>
|
|
448
|
-
`}renderMultipleInput(){return
|
|
448
|
+
`}renderMultipleInput(){return z`
|
|
449
449
|
<input
|
|
450
450
|
class=${Pe(this.inputClasses)}
|
|
451
451
|
.type=${this.inputType}
|
|
@@ -459,25 +459,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
459
459
|
@keydown=${t=>{(t.key===","||t.key==="Enter")&&(t.preventDefault(),this.addToSelected(t)),(t.key==="Space"||t.key===" ")&&(t.preventDefault(),this.toggleCalendar(t))}}
|
|
460
460
|
?disabled=${this.disabled||this.maxlength&&this._value.length>=this.maxlength}
|
|
461
461
|
@change=${t=>{t.stopImmediatePropagation()}}
|
|
462
|
-
${
|
|
462
|
+
${Ge(this.inputRef)}
|
|
463
463
|
/>
|
|
464
|
-
`}renderTags(){return
|
|
464
|
+
`}renderTags(){return z`
|
|
465
465
|
<div class="pkt-datepicker__tags" aria-live="polite">
|
|
466
|
-
${this._value[0]?
|
|
466
|
+
${this._value[0]?gg(this._value??[],t=>t,t=>z`
|
|
467
467
|
<pkt-tag
|
|
468
468
|
.id="${this.id+t+"-tag"}"
|
|
469
469
|
closeTag
|
|
470
|
-
ariaLabel="${this.strings.calendar.deleteDate} ${
|
|
471
|
-
@close=${()=>{var n;return(n=this.calRef.value)==null?void 0:n.handleDateSelect(
|
|
472
|
-
><time datetime="${t}">${
|
|
470
|
+
ariaLabel="${this.strings.calendar.deleteDate} ${Du(t,this.dateformat)}"
|
|
471
|
+
@close=${()=>{var n;return(n=this.calRef.value)==null?void 0:n.handleDateSelect(Ss(t))}}
|
|
472
|
+
><time datetime="${t}">${Du(t,this.dateformat)}</time></pkt-tag
|
|
473
473
|
>
|
|
474
474
|
`):Z}
|
|
475
475
|
</div>
|
|
476
|
-
`}renderCalendar(){return
|
|
476
|
+
`}renderCalendar(){return z`<div
|
|
477
477
|
class="pkt-calendar-popup pkt-${this.calendarOpen?"show":"hide"}"
|
|
478
478
|
@focusout=${t=>{this.calendarOpen&&this.handleFocusOut(t)}}
|
|
479
479
|
id="${this.id}-popup"
|
|
480
|
-
${
|
|
480
|
+
${Ge(this.popupRef)}
|
|
481
481
|
>
|
|
482
482
|
<pkt-calendar
|
|
483
483
|
id="${this.id}-calendar"
|
|
@@ -494,9 +494,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
494
494
|
.currentmonth=${this.currentmonth?He(this.currentmonth):null}
|
|
495
495
|
@date-selected=${t=>{this.value=!this.multiple&&!this.range?t.detail[0]:t.detail,this._value=t.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]:""))}}
|
|
496
496
|
@close=${()=>{this.onBlur(),this.hideCalendar()}}
|
|
497
|
-
${
|
|
497
|
+
${Ge(this.calRef)}
|
|
498
498
|
></pkt-calendar>
|
|
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},
|
|
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},z`
|
|
500
500
|
<pkt-input-wrapper
|
|
501
501
|
label="${this.label}"
|
|
502
502
|
forId="${this.id}-input"
|
|
@@ -528,7 +528,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
528
528
|
type="button"
|
|
529
529
|
@click=${this.toggleCalendar}
|
|
530
530
|
?disabled=${this.disabled}
|
|
531
|
-
${
|
|
531
|
+
${Ge(this.btnRef)}
|
|
532
532
|
>
|
|
533
533
|
<pkt-icon name="calendar"></pkt-icon>
|
|
534
534
|
<span class="pkt-btn__text">${this.strings.calendar.buttonAltText}</span>
|
|
@@ -537,15 +537,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
537
537
|
</div>
|
|
538
538
|
</pkt-input-wrapper>
|
|
539
539
|
${this.renderCalendar()}
|
|
540
|
-
`}handleCalendarPosition(){var t;if(this.popupRef.value&&this.inputRef.value){const n=this.multiple&&!!this.maxlength,r=((t=this.inputRef.value.parentElement)==null?void 0:t.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),i=n?r.height+30:r.height,o=this.popupRef.value.getBoundingClientRect().height;let u=n?"calc(100% - 30px)":"100%";r&&r.top+o>window.innerHeight&&r.top-o>0&&(u=`calc(100% - ${i}px - ${o}px)`),this.popupRef.value.style.top=u}}handleFocusOut(t){this.contains(t.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var t;this.calendarOpen=!0,await
|
|
540
|
+
`}handleCalendarPosition(){var t;if(this.popupRef.value&&this.inputRef.value){const n=this.multiple&&!!this.maxlength,r=((t=this.inputRef.value.parentElement)==null?void 0:t.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),i=n?r.height+30:r.height,o=this.popupRef.value.getBoundingClientRect().height;let u=n?"calc(100% - 30px)":"100%";r&&r.top+o>window.innerHeight&&r.top-o>0&&(u=`calc(100% - ${i}px - ${o}px)`),this.popupRef.value.style.top=u}}handleFocusOut(t){this.contains(t.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var t;this.calendarOpen=!0,await wu(20),this.handleCalendarPosition(),this.isMobileSafari&&((t=this.calRef.value)==null||t.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(t){t.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};qe([T({type:String,reflect:!0})],Le.prototype,"value",2),qe([T({type:Array})],Le.prototype,"_value",2),qe([T({type:String,reflect:!0})],Le.prototype,"label",2),qe([T({type:String})],Le.prototype,"dateformat",2),qe([T({type:Boolean,reflect:!0})],Le.prototype,"multiple",2),qe([T({type:Number,reflect:!0})],Le.prototype,"maxlength",2),qe([T({type:Boolean,reflect:!0})],Le.prototype,"range",2),qe([T({type:Boolean})],Le.prototype,"showRangeLabels",2),qe([T({type:String,reflect:!0})],Le.prototype,"min",2),qe([T({type:String,reflect:!0})],Le.prototype,"max",2),qe([T({type:Boolean})],Le.prototype,"weeknumbers",2),qe([T({type:Boolean,reflect:!0})],Le.prototype,"withcontrols",2),qe([T({converter:pr.csvToArray})],Le.prototype,"excludedates",2),qe([T({converter:pr.csvToArray})],Le.prototype,"excludeweekdays",2),qe([T({type:String})],Le.prototype,"currentmonth",2),qe([T({type:Boolean})],Le.prototype,"useWrapper",2),qe([T({type:Boolean,reflect:!0})],Le.prototype,"calendarOpen",2),qe([T({type:String})],Le.prototype,"timezone",2),qe([wt()],Le.prototype,"inputClasses",2),qe([wt()],Le.prototype,"buttonClasses",2),Le=qe([Ct("pkt-datepicker")],Le);const Cg="pkt-link",_g=!0,xg={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}},Sg={default:{description:"Innholdet i lenken"}},Fs={name:Cg,"css-class":"pkt-link","dark-mode":!0,isElement:_g,props:xg,slots:Sg};var Eg=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,gr=(e,t,n,r)=>{for(var i=r>1?void 0:r?Fg(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&&Eg(t,n,i),i};let kn=class extends ft{constructor(){super(),this.defaultSlot=st(),this.href=Fs.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Fs.props.external.default,this.target=Fs.props.target.default,this.slotController=new Qt(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 z`<a
|
|
541
541
|
class=${Pe(e)}
|
|
542
542
|
href=${this.href}
|
|
543
543
|
@click=${this.handleClick}
|
|
544
544
|
.target=${this.target}
|
|
545
545
|
.rel=${this.external?"noopener noreferrer":Z}
|
|
546
|
-
>${this.iconName?
|
|
547
|
-
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};
|
|
548
|
-
|
|
546
|
+
>${this.iconName?z`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${Ge(this.defaultSlot)}>Link</span></a
|
|
547
|
+
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};gr([T({type:String,reflect:!0})],kn.prototype,"href",2),gr([T({type:String,reflect:!0})],kn.prototype,"iconName",2),gr([T({type:String,reflect:!0})],kn.prototype,"iconPosition",2),gr([T({type:Boolean,reflect:!0})],kn.prototype,"external",2),gr([T({type:String,reflect:!0})],kn.prototype,"target",2),kn=gr([Ct("pkt-link")],kn);var Ag=Object.defineProperty,$g=Object.getOwnPropertyDescriptor,zn=(e,t,n,r)=>{for(var i=r>1?void 0:r?$g(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 rn=class extends ft{constructor(){super(),this.defaultSlot=st(),this.title="",this.href="#",this.iconName="",this.external=!1,this.openInNewTab=!1,this.skin="normal",this.slotController=new Qt(this,this.defaultSlot)}render(){const e=["pkt-linkcard",this.skin&&`pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),t=["pkt-linkcard__title",this.external&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return z`
|
|
548
|
+
<a
|
|
549
|
+
href=${this.href}
|
|
550
|
+
class=${e}
|
|
551
|
+
target=${this.openInNewTab?"_blank":"_self"}
|
|
552
|
+
rel=${this.openInNewTab??"noopener noreferrer"}
|
|
553
|
+
>
|
|
554
|
+
${this.iconName&&z`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
555
|
+
${this.title&&z`<div class=${t}>${this.title}</div>`}
|
|
556
|
+
|
|
557
|
+
<div class="pkt-linkcard__text" ${Ge(this.defaultSlot)}></div>
|
|
558
|
+
</a>
|
|
559
|
+
`}};zn([T({type:String,reflect:!0})],rn.prototype,"title",2),zn([T({type:String,reflect:!0})],rn.prototype,"href",2),zn([T({type:String,reflect:!0})],rn.prototype,"iconName",2),zn([T({type:Boolean,reflect:!0})],rn.prototype,"external",2),zn([T({type:Boolean,reflect:!0})],rn.prototype,"openInNewTab",2),zn([T({type:String,reflect:!0})],rn.prototype,"skin",2),rn=zn([Ct("pkt-linkcard")],rn);const Tg="pkt-messagebox",Bg=!0,Ng={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},jg={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}},Pg={default:{description:"Innholdet i meldingsboksen"}},As={name:Tg,"css-class":"pkt-messagebox",isElement:Bg,events:Ng,props:jg,slots:Pg};var Lg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,vr=(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&&Lg(t,n,i),i};let wn=class extends ft{constructor(){super(),this.defaultSlot=st(),this.closable=As.props.closable.default,this.compact=As.props.compact.default,this.title="",this.skin=As.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 Qt(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 z`<div class=${Pe(e)}>
|
|
560
|
+
${this.closable?z`<div class="pkt-messagebox__close">
|
|
549
561
|
<button
|
|
550
562
|
@click=${this.close}
|
|
551
563
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
@@ -553,22 +565,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
553
565
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
554
566
|
</button>
|
|
555
567
|
</div>`:Z}
|
|
556
|
-
${this.title?
|
|
557
|
-
<div class="pkt-messagebox__text" ${
|
|
558
|
-
</div>`}};
|
|
568
|
+
${this.title?z`<div class="pkt-messagebox__title">${this.title}</div>`:Z}
|
|
569
|
+
<div class="pkt-messagebox__text" ${Ge(this.defaultSlot)}></div>
|
|
570
|
+
</div>`}};vr([T({type:Boolean,reflect:!0})],wn.prototype,"closable",2),vr([T({type:Boolean,reflect:!0})],wn.prototype,"compact",2),vr([T({type:String,reflect:!0})],wn.prototype,"title",2),vr([T({type:String,reflect:!0})],wn.prototype,"skin",2),vr([wt()],wn.prototype,"_isClosed",2),wn=vr([Ct("pkt-messagebox")],wn);const Mg="pkt-modal",Ig=!0,Rg={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},qg={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"}},Hg={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},$s={name:Mg,"css-class":"pkt-modal",isElements:Ig,events:Rg,props:qg,slots:Hg};var Ug=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,Wn=(e,t,n,r)=>{for(var i=r>1?void 0:r?zg(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&&Ug(t,n,i),i};let an=class extends ft{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=$s.props.hideCloseButton.default,this.closeOnBackdropClick=$s.props.closeOnBackdropClick.default,this.size=$s.props.size.default,this.defaultSlot=st(),this.dialogRef=st(),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 Qt(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--removePadding":this.removePadding??!1,"pkt-modal--noHeadingText":this.headingText===""||this.headingText===void 0,[`pkt-modal--${this.size}`]:this.size!==void 0},t={"pkt-modal__headingText":!0,"pkt-txt-24":!0},n={"pkt-modal__content":!0,"pkt-txt-18-light":!0};return z`
|
|
559
571
|
<dialog
|
|
560
572
|
class=${Pe(e)}
|
|
561
573
|
aria-modal=${this._isOpen}
|
|
562
|
-
${
|
|
574
|
+
${Ge(this.dialogRef)}
|
|
563
575
|
aria-labelledby="pkt-modal__headingText"
|
|
564
576
|
aria-describedby="pkt-modal__content"
|
|
565
577
|
autofocus
|
|
566
578
|
>
|
|
567
579
|
<div class="pkt-modal__header">
|
|
568
|
-
${this.headingText?
|
|
580
|
+
${this.headingText?z`<h1 id="pkt-modal__headingText" class=${Pe(t)}>
|
|
569
581
|
${this.headingText}
|
|
570
582
|
</h1>`:Z}
|
|
571
|
-
${this.hideCloseButton?Z:
|
|
583
|
+
${this.hideCloseButton?Z:z`<div class="pkt-modal__closeButton">
|
|
572
584
|
<button
|
|
573
585
|
@click=${r=>this.close(r)}
|
|
574
586
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
@@ -581,23 +593,23 @@ React keys must be passed directly to JSX without using spread:
|
|
|
581
593
|
<div
|
|
582
594
|
id="pkt-modal__content"
|
|
583
595
|
class=${Pe(n)}
|
|
584
|
-
${
|
|
596
|
+
${Ge(this.defaultSlot)}
|
|
585
597
|
></div>
|
|
586
598
|
</dialog>
|
|
587
|
-
`}};
|
|
599
|
+
`}};Wn([T({type:String,reflect:!0})],an.prototype,"headingText",2),Wn([T({type:Boolean,reflect:!0})],an.prototype,"removePadding",2),Wn([T({type:Boolean,reflect:!0})],an.prototype,"hideCloseButton",2),Wn([T({type:Boolean,reflect:!0})],an.prototype,"closeOnBackdropClick",2),Wn([T({type:String,reflect:!0})],an.prototype,"size",2),Wn([wt()],an.prototype,"_isOpen",2),an=Wn([Ct("pkt-modal")],an);const de=Kt({tagName:"pkt-icon",elementClass:In,react:O,displayName:"PktIcon",events:{}});var Cu={exports:{}};/*!
|
|
588
600
|
Copyright (c) 2018 Jed Watson.
|
|
589
601
|
Licensed under the MIT License (MIT), see
|
|
590
602
|
http://jedwatson.github.io/classnames
|
|
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 qg=ku.exports;const et=Ra(qg),Hg=O.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=O.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})]})}),Ug=mn({tagName:"pkt-alert",elementClass:Ot,react:O,displayName:"PktAlert",events:{onClose:"close"}}),As=O.forwardRef(({children:e,...t},n)=>g.jsx(Ug,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));As.displayName="PktAlert";const wu=O.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 zg=O.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})]})]})}),zn=O.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.12/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})]})});zn.displayName="PktButton";const Wg=mn({tagName:"pkt-card",elementClass:en,react:O,displayName:"PktCard",events:{}}),Cu=O.forwardRef(({children:e,...t},n)=>g.jsx(Wg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Cu.displayName="PktCard";const ri=O.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=mn({tagName:"pkt-datepicker",elementClass:Le,react:O,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Vg=({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(O.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}`))})]})]})})},Gg=({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"]})})]})})})},Yg=O.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=O.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,_]=O.useState(!1),[$,j]=O.useState(0),[L,P]=O.useState(!1),z=O.useRef(null);O.useEffect(()=>(document&&(document.addEventListener("mouseup",R),window.addEventListener("scroll",q)),()=>{document&&(document.removeEventListener("mouseup",R),window.removeEventListener("scroll",q))}));const J=()=>{P(!L)},R=M=>{z.current&&!z.current.contains(M.target)&&P(!1)},q=()=>{if(i){const M=window.pageYOffset||document.documentElement.scrollTop;if(M<0||Math.abs(M-$)<60)return;_(M>$),j(M)}};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.12/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.12/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(zn,{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 ${L&&!A?"pkt-header--open-dropdown":""}`,ref:z,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":L,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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsxs("a",{href:M.target,className:"pkt-link",children:[M.iconName&&g.jsx(ce,{name:M.iconName,className:"pkt-link__icon"}),M.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:[M.iconName&&g.jsx(ce,{name:M.iconName,className:"pkt-link__icon"}),M.title]})},`userMenu-${K}`))})}),(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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsxs("a",{href:M.target,className:"pkt-link",children:[M.iconName&&g.jsx(ce,{name:M.iconName,className:"pkt-link__icon"}),M.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:[M.iconName&&g.jsx(ce,{name:M.iconName,className:"pkt-link__icon"}),M.title]})},`userOptions-${K}`)),!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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsx("a",{href:M.target,className:"pkt-link",children:M.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:M.title})},`userMenuFooter-${K}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(zn,{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=O.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=O.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[$,j]=O.useState(!1),L=()=>{j(!$)},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":"",z=d?h:m?v:"",J=k?"pkt-inputwrapper--disabled":"",R=x?"pkt-inputwrapper--inline":"",q=y?"pkt-inputwrapper--error":"",M=!!r&&r!=="",K=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',ne=A?"fieldset":M?"div":"label",ge=A?"legend":M?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",S,J,R,q].join(" "),ref:_,children:[T?g.jsx(g.Fragment,{children:g.jsxs(ne,{htmlFor:A?void 0:e,"aria-describedby":M?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(ge,{id:`${e}-label`,className:`${A?" pkt-inputwrapper__legend":""}`,children:[t,z!==""&&g.jsx("span",{className:P(),children:z})]}),n&&g.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:n}),M&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(zn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:L,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:K}})}),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(As,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});gr.displayName="PktInputWrapper";const Jg=mn({tagName:"pkt-link",elementClass:bn,react:O,displayName:"PktLink",events:{onClick:"click"}}),Su=O.forwardRef(({children:e,...t},n)=>g.jsx(Jg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Su.displayName="PktLink";const Eu=O.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=O.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]=O.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.12/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});Fu.displayName="PktLoader";const Kg=mn({tagName:"pkt-messagebox",elementClass:kn,react:O,displayName:"PktMessagebox",events:{onClose:"close"}}),Au=O.forwardRef(({children:e,...t},n)=>g.jsx(Kg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktMessagebox";const Xg=mn({tagName:"pkt-modal",elementClass:tn,react:O,displayName:"PktModal",events:{}}),$u=O.forwardRef(({children:e,...t},n)=>g.jsx(Xg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));$u.displayName="PktModal";/*!
|
|
603
|
+
*/(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})()})(Cu);var Wg=Cu.exports;const et=Ha(Wg),Vg=O.forwardRef(({title:e,className:t,children:n,toggleProps:r,defaultOpen:i=!1,id:o},u)=>{const[c,d]=O.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(de,{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})]})}),Gg=Kt({tagName:"pkt-alert",elementClass:Ot,react:O,displayName:"PktAlert",events:{onClose:"close"}}),Ts=O.forwardRef(({children:e,...t},n)=>g.jsx(Gg,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Ts.displayName="PktAlert";const _u=O.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(de,{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"})]})})});_u.displayName="PktBackLink";const Yg=O.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(Nn.Link,{to:d.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...r,children:[g.jsx(de,{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(de,{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(Nn.Link,{to:u.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...r,children:[g.jsx(de,{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(de,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),g.jsx("span",{className:"pkt-breadcrumbs__text",children:u.text})]})]})}),Vn=O.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(de,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/12.13/animations/"}),c!=="label-only"&&g.jsx(de,{className:"pkt-btn__icon",name:n}),g.jsx("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&g.jsx(de,{className:"pkt-btn__icon",name:r})]})});Vn.displayName="PktButton";const Jg=Kt({tagName:"pkt-card",elementClass:nn,react:O,displayName:"PktCard",events:{}}),xu=O.forwardRef(({children:e,...t},n)=>g.jsx(Jg,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));xu.displayName="PktCard";const ii=O.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})]})]})})});ii.displayName="PktCheckbox";const Su=Kt({tagName:"pkt-datepicker",elementClass:Le,react:O,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Kg=({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(de,{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(de,{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(de,{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(de,{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(O.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(de,{className:"pkt-footer__social-icon",name:h.iconName})})},`sociallinks-${m}`))})]})]})})},Xg=({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(de,{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(de,{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(de,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},Zg=O.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,...B},F)=>{const S=O.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,_]=O.useState(!1),[$,j]=O.useState(0),[L,P]=O.useState(!1),W=O.useRef(null);O.useEffect(()=>(document&&(document.addEventListener("mouseup",R),window.addEventListener("scroll",q)),()=>{document&&(document.removeEventListener("mouseup",R),window.removeEventListener("scroll",q))}));const J=()=>{P(!L)},R=M=>{W.current&&!W.current.contains(M.target)&&P(!1)},q=()=>{if(i){const M=window.pageYOffset||document.documentElement.scrollTop;if(M<0||Math.abs(M-$)<60)return;_(M>$),j(M)}};return g.jsxs("header",{...B,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(de,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.13/logos/"})}):g.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:t,children:g.jsx(de,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.13/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(Vn,{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 ${L&&!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":L,onClick:J,children:[g.jsx(de,{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(de,{name:"chevron-thin-down",className:"pkt-btn--closed"}),g.jsx(de,{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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsxs("a",{href:M.target,className:"pkt-link",children:[M.iconName&&g.jsx(de,{name:M.iconName,className:"pkt-link__icon"}),M.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:[M.iconName&&g.jsx(de,{name:M.iconName,className:"pkt-link__icon"}),M.title]})},`userMenu-${K}`))})}),(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(de,{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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsxs("a",{href:M.target,className:"pkt-link",children:[M.iconName&&g.jsx(de,{name:M.iconName,className:"pkt-link__icon"}),M.title]}):g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:[M.iconName&&g.jsx(de,{name:M.iconName,className:"pkt-link__icon"}),M.title]})},`userOptions-${K}`)),!y&&g.jsx("li",{children:g.jsxs("button",{className:"pkt-link-button pkt-link",onClick:k,children:[g.jsx(de,{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((M,K)=>g.jsx("li",{children:typeof M.target=="string"?g.jsx("a",{href:M.target,className:"pkt-link",children:M.title}):g.jsx("button",{className:"pkt-link-button pkt-link",onClick:M.target,children:M.title})},`userMenuFooter-${K}`))})})]})]}),C&&g.jsx("li",{children:C}),y&&g.jsx("li",{children:g.jsx(Vn,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:k,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),Eu=O.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]}));Eu.displayName="PktInput";const yr=O.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:B=!0,children:F,className:S,hasFieldset:A=!1},_)=>{const[$,j]=O.useState(!1),L=()=>{j(!$)},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":"",R=x?"pkt-inputwrapper--inline":"",q=y?"pkt-inputwrapper--error":"",M=!!r&&r!=="",K=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',ne=A?"fieldset":M?"div":"label",ge=A?"legend":M?"h2":"span",ee=C||(n?`${e}-helptext`:void 0);return g.jsxs("div",{className:["pkt-inputwrapper",S,J,R,q].join(" "),ref:_,children:[B?g.jsx(g.Fragment,{children:g.jsxs(ne,{htmlFor:A?void 0:e,"aria-describedby":M?void 0:C,className:`pkt-inputwrapper__label${A?" pkt-inputwrapper__fieldset":""}`,children:[g.jsxs(ge,{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}),M&&r!==""&&g.jsxs("div",{className:"pkt-inputwrapper__helptext-expandable",children:[g.jsx(Vn,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-link pkt-link--icon-right",onClick:L,children:g.jsx("span",{dangerouslySetInnerHTML:{__html:K}})}),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(Ts,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:b})})]})});yr.displayName="PktInputWrapper";const Qg=Kt({tagName:"pkt-link",elementClass:kn,react:O,displayName:"PktLink",events:{onClick:"click"}}),Fu=O.forwardRef(({children:e,...t},n)=>g.jsx(Qg,{...t,ref:n,children:g.jsx("span",{className:"pkt-contents",children:e})}));Fu.displayName="PktLink";const ev=Kt({tagName:"pkt-linkcard",elementClass:rn,react:O,displayName:"PktLinkCard",events:{}}),Au=O.forwardRef(({children:e,...t},n)=>g.jsx(ev,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));Au.displayName="PktLinkCard";const $u=O.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]=O.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(de,{name:b(o),path:"https://punkt-cdn.oslo.kommune.no/12.13/animations/",className:`pkt-loader__svg pkt-loader__${o}`}),t&&g.jsx("p",{children:t})]}):null}):c})});$u.displayName="PktLoader";const tv=Kt({tagName:"pkt-messagebox",elementClass:wn,react:O,displayName:"PktMessagebox",events:{onClose:"close"}}),Tu=O.forwardRef(({children:e,...t},n)=>g.jsx(tv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Tu.displayName="PktMessagebox";const nv=Kt({tagName:"pkt-modal",elementClass:an,react:O,displayName:"PktModal",events:{}}),Bu=O.forwardRef(({children:e,...t},n)=>g.jsx(nv,{...t,ref:n,children:g.jsx("div",{className:"pkt-contents",children:e})}));Bu.displayName="PktModal";/*!
|
|
592
604
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
593
605
|
*
|
|
594
606
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
595
607
|
* Released under the MIT License.
|
|
596
|
-
*/function
|
|
608
|
+
*/function Nu(e){return Object.prototype.toString.call(e)==="[object Object]"}function rv(e){var t,n;return Nu(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Nu(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var ju={},si=vn&&vn.__assign||function(){return si=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},si.apply(this,arguments)},av=vn&&vn.__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(ju,"__esModule",{value:!0});var sa=[];function iv(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}function sv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ov(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function oi(e,t,n){n===void 0&&(n="");var r={indent:" ",singleQuotes:!0},i=si(si({},r),t),o;i.inlineCharacterLimit===void 0?o={newLine:`
|
|
597
609
|
`,newLineOrSpace:`
|
|
598
610
|
`,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"),`
|
|
599
|
-
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(
|
|
600
|
-
`?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var
|
|
611
|
+
`).replace(new RegExp(o.pad,"g"),n).replace(new RegExp(o.indent,"g"),n+i.indent)};if(sa.indexOf(e)!==-1)return'"[Circular]"';if(e==null||typeof e=="number"||typeof e=="boolean"||typeof e=="function"||typeof e=="symbol"||sv(e))return String(e);if(e instanceof Date)return"new Date('"+e.toISOString()+"')";if(Array.isArray(e)){if(e.length===0)return"[]";sa.push(e);var c="["+o.newLine+e.map(function(h,m){var v=e.length-1===m?o.newLine:","+o.newLineOrSpace,y=oi(h,i,n+i.indent);return i.transform&&(y=i.transform(e,m,y)),o.indent+y+v}).join("")+o.pad+"]";return sa.pop(),u(c)}if(iv(e)){var d=av(Object.keys(e),ov(e));if(i.filter&&(d=d.filter(function(m){return i.filter&&i.filter(e,m)})),d.length===0)return"{}";sa.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:oi(m,i),C=oi(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 sa.pop(),u(c)}return e=String(e).replace(/[\r\n]/g,function(h){return h===`
|
|
612
|
+
`?"\\n":"\\r"}),i.singleQuotes?(e=e.replace(/\\?'/g,"\\'"),"'"+e+"'"):(e=e.replace(/"/g,'\\"'),'"'+e+'"')}var lv=ju.prettyPrint=oi,Bs={exports:{}},be={};/**
|
|
601
613
|
* @license React
|
|
602
614
|
* react-is.production.min.js
|
|
603
615
|
*
|
|
@@ -605,7 +617,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
605
617
|
*
|
|
606
618
|
* This source code is licensed under the MIT license found in the
|
|
607
619
|
* LICENSE file in the root directory of this source tree.
|
|
608
|
-
*/var
|
|
620
|
+
*/var Pu;function uv(){if(Pu)return be;Pu=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 B=C.$$typeof;switch(B){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 B}}case t:return B}}}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={};/**
|
|
609
621
|
* @license React
|
|
610
622
|
* react-is.development.js
|
|
611
623
|
*
|
|
@@ -613,89 +625,89 @@ React keys must be passed directly to JSX without using spread:
|
|
|
613
625
|
*
|
|
614
626
|
* This source code is licensed under the MIT license found in the
|
|
615
627
|
* LICENSE file in the root directory of this source tree.
|
|
616
|
-
*/var
|
|
617
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
618
|
-
`).map(function(n){return n.trim()}).join("")},
|
|
619
|
-
`.concat(
|
|
620
|
-
`.concat(
|
|
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}},
|
|
622
|
-
`).map(function(c,d){return d===0?c:"".concat(
|
|
623
|
-
`):n},
|
|
624
|
-
`.concat(
|
|
625
|
-
`,
|
|
626
|
-
`.concat(
|
|
627
|
-
`,
|
|
628
|
-
`,_(A.gutter,ne.replace(/\d/g," "))," ",fe,_(A.marker,"^").repeat(ae)].join(""),ee&&
|
|
629
|
-
`);return
|
|
630
|
-
${R}`),F?S.reset(R):R}function k(x,C,
|
|
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
|
|
632
|
-
`?"crlf":"cr":"lf"}function
|
|
628
|
+
*/var Lu;function cv(){return Lu||(Lu=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"),B=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===B||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 B:case C:case m:return Ie;default:return Yt}}case u:return Yt}}}var $=v,j=m,L=o,P=b,W=c,J=B,R=C,q=u,M=h,K=d,ne=k,ge=x,ee=!1,le=!1;function fe(X){return ee||(ee=!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 ot(X){return _(X)===m}function Oe(X){return typeof X=="object"&&X!==null&&X.$$typeof===o}function Fe(X){return _(X)===b}function Me(X){return _(X)===c}function ue(X){return _(X)===B}function Dt(X){return _(X)===C}function jt(X){return _(X)===u}function St(X){return _(X)===h}function Et(X){return _(X)===d}function An(X){return _(X)===k}function Ft(X){return _(X)===x}ke.ContextConsumer=$,ke.ContextProvider=j,ke.Element=L,ke.ForwardRef=P,ke.Fragment=W,ke.Lazy=J,ke.Memo=R,ke.Portal=q,ke.Profiler=M,ke.StrictMode=K,ke.Suspense=ne,ke.SuspenseList=ge,ke.isAsyncMode=fe,ke.isConcurrentMode=ae,ke.isContextConsumer=ye,ke.isContextProvider=ot,ke.isElement=Oe,ke.isForwardRef=Fe,ke.isFragment=Me,ke.isLazy=ue,ke.isMemo=Dt,ke.isPortal=jt,ke.isProfiler=St,ke.isStrictMode=Et,ke.isSuspense=An,ke.isSuspenseList=Ft,ke.isValidElementType=A,ke.typeOf=_}()),ke}process.env.NODE_ENV==="production"?Bs.exports=uv():Bs.exports=cv();var Ut=Bs.exports,sn=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function Ou(e){return pv(e)||dv(e)||hv(e)||fv()}function pv(e){if(Array.isArray(e))return Ns(e)}function dv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hv(e,t){if(e){if(typeof e=="string")return Ns(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 Ns(e,t)}}function Ns(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 fv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
629
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(e,t){return e===null||oa(e)!=="object"||e instanceof Date||e instanceof RegExp||Ah.isValidElement(e)?e:(t.add(e),Array.isArray(e)?e.map(function(n){return js(n,t)}):Object.keys(e).sort().reduce(function(n,r){return r==="_owner"||(r==="current"||t.has(e[r])?n[r]="[Circular]":n[r]=js(e[r],t)),n},{}))}function mv(e){return js(e,new WeakSet)}var Mu=function(t){return{type:"string",value:t}},gv=function(t){return{type:"number",value:t}},vv=function(t,n,r,i){return{type:"ReactElement",displayName:t,props:n,defaultProps:r,childrens:i}},yv=function(t,n){return{type:"ReactFragment",key:t,childrens:n}},Dv=!!O.Fragment,Iu=function(t){return!t.name||t.name==="_default"?"No Display Name":t.name},bv=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 Iu(t)}},kv=function(t){switch(!0){case typeof t.type=="string":return t.type;case typeof t.type=="function":return t.type.displayName?t.type.displayName:Iu(t.type);case Ut.isForwardRef(t):case Ut.isMemo(t):return bv(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"}},Ru=function(t,n){return n!=="children"},wv=function(t){return t!==!0&&t!==!1&&t!==null&&t!==""},qu=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},Ps=function e(t,n){var r=n.displayName,i=r===void 0?kv:r;if(typeof t=="string")return Mu(t);if(typeof t=="number")return gv(t);if(!O.isValidElement(t))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(oa(t),"`"));var o=i(t),u=qu(t.props,Ru);t.ref!==null&&(u.ref=t.ref);var c=t.key;typeof c=="string"&&c.search(/^\./)&&(u.key=c);var d=qu(t.type.defaultProps||{},Ru),h=O.Children.toArray(t.props.children).filter(wv).map(function(m){return e(m,n)});return Dv&&t.type===O.Fragment?yv(c,h):vv(o,u,d,h)};function Cv(){}var _v=function(t){return t.toString().split(`
|
|
630
|
+
`).map(function(n){return n.trim()}).join("")},Hu=_v,Uu=function(e,t){var n=t.functionValue,r=n===void 0?Hu:n,i=t.showFunctions;return r(!i&&r===Hu?Cv:e)},xv=function(e,t,n,r){var i=mv(e),o=lv(i,{transform:function(c,d,h){var m=c[d];return m&&O.isValidElement(m)?li(Ps(m,r),!0,n,r):typeof m=="function"?Uu(m,r):h}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,sn(1,r.tabStop)).replace(/\n([^$])/g,`
|
|
631
|
+
`.concat(sn(n+1,r.tabStop),"$1"))},Sv=function(t){return t.replace(/"/g,""")},Ev=function(t,n,r,i){if(typeof t=="number")return"{".concat(String(t),"}");if(typeof t=="string")return'"'.concat(Sv(t),'"');if(oa(t)==="symbol"){var o=t.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return o?"{Symbol('".concat(o,"')}"):"{Symbol()}"}return typeof t=="function"?"{".concat(Uu(t,i),"}"):O.isValidElement(t)?"{".concat(li(Ps(t,i),!0,r,i),"}"):t instanceof Date?isNaN(t.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(t.toISOString(),'")}'):rv(t)||Array.isArray(t)?"{".concat(xv(t,n,r,i),"}"):"{".concat(String(t),"}")},Fv=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=Ev(d,o,u,c),y=" ",b=`
|
|
632
|
+
`.concat(sn(u+1,m)),k=v.includes(`
|
|
633
|
+
`);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}},Av=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(Mu(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n},$v=function(t){return["key","ref"].includes(t)},Tv=function(e){return function(t){var n=t.includes("key"),r=t.includes("ref"),i=t.filter(function(u){return!$v(u)}),o=Ou(e?i.sort():i);return r&&o.unshift("ref"),n&&o.unshift("key"),o}};function Bv(e,t){return Array.isArray(t)?function(n){return t.indexOf(n)===-1}:function(n){return t(e[n],n)}}var Nv=function(t,n,r,i,o){var u=o.tabStop;return t.type==="string"?n.split(`
|
|
634
|
+
`).map(function(c,d){return d===0?c:"".concat(sn(i,u)).concat(c)}).join(`
|
|
635
|
+
`):n},jv=function(t,n,r){return function(i){return Nv(i,li(i,t,n,r),t,n,r)}},Pv=function(t,n){return function(r){var i=Object.keys(t).includes(r);return!i||i&&t[r]!==n[r]}},zu=function(t,n,r,i,o){return o?sn(r,i).length+n.length>o:t.length>1},Lv=function(t,n,r,i,o,u,c){return(zu(t,n,o,u,c)||r)&&!i},Wu=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,B="<".concat(u),F=B,S=B,A=!1,_=[],$=Bv(h,y);Object.keys(h).filter($).filter(Pv(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 j=Tv(x)(_);if(j.forEach(function(P){var W=Fv(P,Object.keys(h).includes(P),h[P],Object.keys(v).includes(P),v[P],t,n,r),J=W.attributeFormattedInline,R=W.attributeFormattedMultiline,q=W.isMultilineAttribute;q&&(A=!0),F+=J,S+=R}),S+=`
|
|
636
|
+
`.concat(sn(n,C)),Lv(j,F,A,t,n,C,b)?B=S:B=F,c&&c.length>0){var L=n+1;B+=">",t||(B+=`
|
|
637
|
+
`,B+=sn(L,C)),B+=c.reduce(Av,[]).map(jv(t,L,r)).join(t?"":`
|
|
638
|
+
`.concat(sn(L,C))),t||(B+=`
|
|
639
|
+
`,B+=sn(L-1,C)),B+="</".concat(u,">")}else zu(j,F,n,C,b)||(B+=" "),B+="/>";return B},Ov="",Vu="React.Fragment",Mv=function(t,n,r){var i={};return n&&(i={key:n}),{type:"ReactElement",displayName:t,props:i,defaultProps:{},childrens:r}},Iv=function(t){var n=t.key;return!!n},Rv=function(t){var n=t.childrens;return n.length===0},qv=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?Rv(e)||Iv(e)?d=Vu:d=Ov:d=Vu,Wu(Mv(d,o,u),t,n,r)},Hv=["<",">","{","}"],Uv=function(t){return Hv.some(function(n){return t.includes(n)})},zv=function(t){return Uv(t)?"{`".concat(t,"`}"):t},Wv=function(t){var n=t;return n.endsWith(" ")&&(n=n.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),n.startsWith(" ")&&(n=n.replace(/^(\s+)(.*)$/,"{'$1'}$2")),n},li=function(e,t,n,r){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(Wv(zv(String(e.value)))):"";if(e.type==="ReactElement")return Wu(e,t,n,r);if(e.type==="ReactFragment")return qv(e,t,n,r);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Vv=function(e,t){return li(e,!1,0,t)},Gv=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,B=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:B,maxInlineAttributesLineLength:F,displayName:S};return Vv(Ps(t,A),A)},Yv=Object.create,ui=Object.defineProperty,Jv=Object.getOwnPropertyDescriptor,Kv=Object.getOwnPropertyNames,Xv=Object.getPrototypeOf,Zv=Object.prototype.hasOwnProperty,Gu=e=>{throw TypeError(e)},Qv=(e,t)=>()=>(e&&(t=e(e=0)),t),Ls=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ci=(e,t)=>{for(var n in t)ui(e,n,{get:t[n],enumerable:!0})},Yu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kv(t))!Zv.call(e,i)&&i!==n&&ui(e,i,{get:()=>t[i],enumerable:!(r=Jv(t,i))||r.enumerable});return e},pi=(e,t,n)=>(n=e!=null?Yv(Xv(e)):{},Yu(ui(n,"default",{value:e,enumerable:!0}),e)),e2=e=>Yu(ui({},"__esModule",{value:!0}),e),t2=(e,t,n)=>t.has(e)||Gu("Cannot "+n),n2=(e,t,n)=>t.has(e)?Gu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),la=(e,t,n)=>(t2(e,t,"access private method"),n),Os=Ls((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),Ju={};ci(Ju,{default:()=>Xu,shouldHighlight:()=>Ku});var Ku,Xu,r2=Qv(()=>{Ku=()=>!1,Xu=String}),a2=Ls((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}),i2=Ls(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=b,e.default=k;var t=(r2(),e2(Ju)),n=i(a2(),!0);function r(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,B=new WeakMap;return(r=function(F){return F?B:C})(x)}function i(x,C){if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var B=r(C);if(B&&B.has(x))return B.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,B&&B.set(x,F),F}var o=n.default,u=(x,C)=>B=>x(C(B)),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,B){let F=Object.assign({column:0,line:-1},x.start),S=Object.assign({},F,x.end),{linesAbove:A=2,linesBelow:_=3}=B||{},$=F.line,j=F.column,L=S.line,P=S.column,W=Math.max($-(A+1),0),J=Math.min(C.length,L+_);$===-1&&(W=0),L===-1&&(J=C.length);let R=L-$,q={};if(R)for(let M=0;M<=R;M++){let K=M+$;if(!j)q[K]=!0;else if(M===0){let ne=C[K-1].length;q[K]=[j,ne-j+1]}else if(M===R)q[K]=[0,P];else{let ne=C[K-M].length;q[K]=[0,ne]}}else j===P?j?q[$]=[j,0]:q[$]=!0:q[$]=[j,P-j];return{start:W,end:J,markerLines:q}}function b(x,C,B={}){let F=(B.highlightCode||B.forceColor)&&(0,t.shouldHighlight)(B),S=d(B.forceColor),A=m(S),_=(q,M)=>F?q(M):M,$=x.split(v),{start:j,end:L,markerLines:P}=y(C,$,B),W=C.start&&typeof C.start.column=="number",J=String(L).length,R=(F?(0,t.default)(x,B):x).split(v,L).slice(j,L).map((q,M)=>{let K=j+1+M,ne=` ${` ${K}`.slice(-J)} |`,ge=P[K],ee=!P[K+1];if(ge){let le="";if(Array.isArray(ge)){let fe=q.slice(0,Math.max(ge[0]-1,0)).replace(/[^\t]/g," "),ae=ge[1]||1;le=[`
|
|
640
|
+
`,_(A.gutter,ne.replace(/\d/g," "))," ",fe,_(A.marker,"^").repeat(ae)].join(""),ee&&B.message&&(le+=" "+_(A.message,B.message))}return[_(A.marker,">"),_(A.gutter,ne),q.length>0?` ${q}`:"",le].join("")}else return` ${_(A.gutter,ne)}${q.length>0?` ${q}`:""}`}).join(`
|
|
641
|
+
`);return B.message&&!W&&(R=`${" ".repeat(J+1)}${B.message}
|
|
642
|
+
${R}`),F?S.reset(R):R}function k(x,C,B,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 B=Math.max(B,0),b(x,{start:{column:B,line:C}},F)}}),s2={};ci(s2,{__debug:()=>l0,check:()=>s0,doc:()=>cp,format:()=>ho,formatWithCursor:()=>dp,getSupportInfo:()=>o0,util:()=>pp,version:()=>LD});var o2=(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)},di=o2;function Cn(){}Cn.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 B(){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 j=!1;if($){var L=$.oldPos-S;j=$&&0<=L&&L<c}var P=_&&_.oldPos+1<d;if(!j&&!P){b[S]=void 0;continue}if(!P||j&&_.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(l2(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();B()||S()},0)})();else for(;h<=m&&Date.now()<=y;){var F=B();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 l2(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 B=r[m+C];return B.length>x.length?B: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 Zu=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Qu=/\S/,ec=new Cn;ec.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Qu.test(e)&&!Qu.test(t)},ec.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]&&Zu.test(t[n])&&Zu.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var tc=new Cn;tc.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
643
|
+
`));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 u2=new Cn;u2.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var c2=new Cn;c2.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function hi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hi=function(t){return typeof t}:hi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}var p2=Object.prototype.toString,ua=new Cn;ua.useLongestToken=!0,ua.tokenize=tc.tokenize,ua.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(o,u){return typeof u>"u"?n:u}:r;return typeof e=="string"?e:JSON.stringify(Ms(e,null,null,i),i," ")},ua.equals=function(e,t){return Cn.prototype.equals.call(ua,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Ms(e,t,n,r,i){t=t||[],n=n||[],r&&(e=r(i,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return n[o];var u;if(p2.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=Ms(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),hi(e)==="object"&&e!==null){t.push(e),u={},n.push(u);var c=[],d;for(d in e)e.hasOwnProperty(d)&&c.push(d);for(c.sort(),o=0;o<c.length;o+=1)d=c[o],u[d]=Ms(e[d],t,n,r,d);t.pop(),n.pop()}else u=e;return u}var fi=new Cn;fi.tokenize=function(e){return e.slice()},fi.join=fi.removeEmpty=function(e){return e};function d2(e,t,n){return fi.diff(e,t,n)}function h2(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
|
644
|
+
`?"crlf":"cr":"lf"}function Is(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
|
633
645
|
`;default:return`
|
|
634
|
-
`}}function
|
|
646
|
+
`}}function nc(e,t){let n;switch(t){case`
|
|
635
647
|
`:n=/\n/gu;break;case"\r":n=/\r/gu;break;case`\r
|
|
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
|
|
637
|
-
`)}var
|
|
638
|
-
Expected it to be 'string' or 'object'.`;if(
|
|
639
|
-
Expected it to be ${r}.`}var h2=class extends Error{constructor(t){super(d2(t));Or(this,"name","InvalidDocError");this.doc=t}},vr=h2,nc={};function f2(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=Gn(o);if(!u)throw new vr(o);if((t==null?void 0:t(o))!==!1)switch(u){case rn:case zt:{let c=u===rn?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 sn:case an:case ln:case Wt:case un:i.push(o.contents);break;case Wn:case Vn:case on:case cn:case tt:case Tt:break;default:throw new vr(o)}}}var Ms=f2,m2=()=>{},g2=m2;function hi(e){return{type:an,contents:e}}function yr(e,t){return{type:sn,contents:t,n:e}}function rc(e,t={}){return g2(t.expandedStates),{type:mt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function v2(e){return yr(Number.NEGATIVE_INFINITY,e)}function y2(e){return yr({type:"root"},e)}function D2(e){return yr(-1,e)}function b2(e,t){return rc(e[0],{...t,expandedStates:e})}function ac(e){return{type:zt,parts:e}}function k2(e,t="",n={}){return{type:Ct,breakContents:e,flatContents:t,groupId:n.groupId}}function w2(e,t){return{type:ln,contents:e,groupId:t.groupId,negate:t.negate}}function Is(e){return{type:un,contents:e}}var C2={type:cn},fi={type:Tt},_2={type:on},Rs={type:tt,hard:!0},ic={type:tt,hard:!0,literal:!0},sc={type:tt},x2={type:tt,soft:!0},Yn=[Rs,fi],oc=[ic,fi],qs={type:Vn};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 S2(e,t){return e?{type:Wt,label:e,contents:t}:t}function pn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...pn(r));else{let i=pn(r);i!==""&&n.push(i)}return n}return e.type===Ct?{...e,breakContents:pn(e.breakContents),flatContents:pn(e.flatContents)}:e.type===mt?{...e,contents:pn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(pn)}:e.type===zt?{type:"fill",parts:e.parts.map(pn)}:e.contents?{...e,contents:pn(e.contents)}:e}function E2(e){let t=Object.create(null),n=new Set;return r(pn(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===on)return"trim";if(o.type===an)return"indent("+r(o.contents)+")";if(o.type===sn)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===ln){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===un)return"lineSuffix("+r(o.contents)+")";if(o.type===cn)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 F2=(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=F2,A2=()=>/[#*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 $2(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function T2(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 B2=e=>!($2(e)||T2(e)),N2=/[^\x20-\x7F]/u;function j2(e){if(!e)return 0;if(!N2.test(e))return e.length;e=e.replace(A2()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=B2(r)?1:2)}return t}var Hs=j2;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(Gn(o)){case rn: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 sn:case an:case ln:case Wt:case un:return t({...o,contents:r(o.contents)});case Wn:case Vn:case on:case cn:case tt:case Tt:return t(o);default:throw new vr(o)}}}function Us(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 Ms(e,o),r}function P2(e){if(e.type===mt&&e.break||e.type===tt&&e.hard||e.type===Tt)return!0}function L2(e){return Us(e,P2,!1)}function cc(e){if(e.length>0){let t=Ze(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function O2(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)}Ms(e,r,i,!0)}function M2(e){return e.type===tt&&!e.hard?e.soft?"":" ":e.type===Ct?e.flatContents:e}function I2(e){return mi(e,M2)}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(Gn(e)){case an:case ln:case mt:case un: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 rn:return pc(e);case Wn:return e.replace(/[\n\r]*$/u,"");case sn:case Vn:case on:case cn:case tt:case Tt:break;default:throw new vr(e)}return e}function dc(e){return la(q2(e))}function R2(e){switch(Gn(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 sn:case an:case ln:case un:if(!e.contents)return"";break;case Ct:if(!e.flatContents&&!e.breakContents)return"";break;case rn:{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 Wn:case Vn:case on:case cn:case tt:case Wt:case Tt:break;default:throw new vr(e)}return e}function q2(e){return mi(e,t=>R2(t))}function H2(e,t=oc){return mi(e,n=>typeof n=="string"?lc(t,n.split(`
|
|
640
|
-
`)):n)}function
|
|
641
|
-
`?
|
|
642
|
-
`,i):k;c.push(x),u.length>0&&(o+=
|
|
648
|
+
`: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 f2(e){return di(!1,e,/\r\n?/gu,`
|
|
649
|
+
`)}var Gn="string",on="array",Yn="cursor",ln="indent",un="align",cn="trim",gt="group",zt="fill",_t="if-break",pn="indent-if-break",dn="line-suffix",hn="line-suffix-boundary",tt="line",Wt="label",Tt="break-parent",rc=new Set([Yn,ln,un,cn,gt,zt,_t,pn,dn,hn,tt,Wt,Tt]);function m2(e){if(typeof e=="string")return Gn;if(Array.isArray(e))return on;if(!e)return;let{type:t}=e;if(rc.has(t))return t}var Jn=m2,g2=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function v2(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
650
|
+
Expected it to be 'string' or 'object'.`;if(Jn(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=g2([...rc].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
651
|
+
Expected it to be ${r}.`}var y2=class extends Error{constructor(t){super(v2(t));Ir(this,"name","InvalidDocError");this.doc=t}},Dr=y2,ac={};function D2(e,t,n,r){let i=[e];for(;i.length>0;){let o=i.pop();if(o===ac){n(i.pop());continue}n&&i.push(o,ac);let u=Jn(o);if(!u)throw new Dr(o);if((t==null?void 0:t(o))!==!1)switch(u){case on:case zt:{let c=u===on?o:o.parts;for(let d=c.length,h=d-1;h>=0;--h)i.push(c[h]);break}case _t:i.push(o.flatContents,o.breakContents);break;case gt: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 un:case ln:case pn:case Wt:case dn:i.push(o.contents);break;case Gn:case Yn:case cn:case hn:case tt:case Tt:break;default:throw new Dr(o)}}}var Rs=D2,b2=()=>{},k2=b2;function mi(e){return{type:ln,contents:e}}function br(e,t){return{type:un,contents:t,n:e}}function ic(e,t={}){return k2(t.expandedStates),{type:gt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function w2(e){return br(Number.NEGATIVE_INFINITY,e)}function C2(e){return br({type:"root"},e)}function _2(e){return br(-1,e)}function x2(e,t){return ic(e[0],{...t,expandedStates:e})}function sc(e){return{type:zt,parts:e}}function S2(e,t="",n={}){return{type:_t,breakContents:e,flatContents:t,groupId:n.groupId}}function E2(e,t){return{type:pn,contents:e,groupId:t.groupId,negate:t.negate}}function qs(e){return{type:dn,contents:e}}var F2={type:hn},gi={type:Tt},A2={type:cn},Hs={type:tt,hard:!0},oc={type:tt,hard:!0,literal:!0},lc={type:tt},$2={type:tt,soft:!0},Kn=[Hs,gi],uc=[oc,gi],Us={type:Yn};function cc(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function pc(e,t,n){let r=e;if(t>0){for(let i=0;i<Math.floor(t/n);++i)r=mi(r);r=br(t%n,r),r=br(Number.NEGATIVE_INFINITY,r)}return r}function T2(e,t){return e?{type:Wt,label:e,contents:t}:t}function fn(e){var t;if(!e)return"";if(Array.isArray(e)){let n=[];for(let r of e)if(Array.isArray(r))n.push(...fn(r));else{let i=fn(r);i!==""&&n.push(i)}return n}return e.type===_t?{...e,breakContents:fn(e.breakContents),flatContents:fn(e.flatContents)}:e.type===gt?{...e,contents:fn(e.contents),expandedStates:(t=e.expandedStates)==null?void 0:t.map(fn)}:e.type===zt?{type:"fill",parts:e.parts.map(fn)}:e.contents?{...e,contents:fn(e.contents)}:e}function B2(e){let t=Object.create(null),n=new Set;return r(fn(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===cn)return"trim";if(o.type===ln)return"indent("+r(o.contents)+")";if(o.type===un)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===_t)return"ifBreak("+r(o.breakContents)+(o.flatContents?", "+r(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+`, { groupId: ${i(o.groupId)} }`:"")+")";if(o.type===pn){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===gt){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===dn)return"lineSuffix("+r(o.contents)+")";if(o.type===hn)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 N2=(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=N2,j2=()=>/[#*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 P2(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function L2(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 O2=e=>!(P2(e)||L2(e)),M2=/[^\x20-\x7F]/u;function I2(e){if(!e)return 0;if(!M2.test(e))return e.length;e=e.replace(j2()," ");let t=0;for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(t+=O2(r)?1:2)}return t}var zs=I2;function vi(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(Jn(o)){case on:return t(o.map(r));case zt:return t({...o,parts:o.parts.map(r)});case _t:return t({...o,breakContents:r(o.breakContents),flatContents:r(o.flatContents)});case gt:{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 un:case ln:case pn:case Wt:case dn:return t({...o,contents:r(o.contents)});case Gn:case Yn:case cn:case hn:case tt:case Tt:return t(o);default:throw new Dr(o)}}}function Ws(e,t,n){let r=n,i=!1;function o(u){if(i)return!1;let c=t(u);c!==void 0&&(i=!0,r=c)}return Rs(e,o),r}function R2(e){if(e.type===gt&&e.break||e.type===tt&&e.hard||e.type===Tt)return!0}function q2(e){return Ws(e,R2,!1)}function dc(e){if(e.length>0){let t=Ze(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function H2(e){let t=new Set,n=[];function r(o){if(o.type===Tt&&dc(n),o.type===gt){if(n.push(o),t.has(o))return!1;t.add(o)}}function i(o){o.type===gt&&n.pop().break&&dc(n)}Rs(e,r,i,!0)}function U2(e){return e.type===tt&&!e.hard?e.soft?"":" ":e.type===_t?e.flatContents:e}function z2(e){return vi(e,U2)}function hc(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=ca(Ze(!1,e,-1));e[e.length-1]=t}return e}function ca(e){switch(Jn(e)){case ln:case pn:case gt:case dn:case Wt:{let t=ca(e.contents);return{...e,contents:t}}case _t:return{...e,breakContents:ca(e.breakContents),flatContents:ca(e.flatContents)};case zt:return{...e,parts:hc(e.parts)};case on:return hc(e);case Gn:return e.replace(/[\n\r]*$/u,"");case un:case Yn:case cn:case hn:case tt:case Tt:break;default:throw new Dr(e)}return e}function fc(e){return ca(V2(e))}function W2(e){switch(Jn(e)){case zt:if(e.parts.every(t=>t===""))return"";break;case gt:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===gt&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case un:case ln:case pn:case dn:if(!e.contents)return"";break;case _t:if(!e.flatContents&&!e.breakContents)return"";break;case on:{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 Gn:case Yn:case cn:case hn:case tt:case Wt:case Tt:break;default:throw new Dr(e)}return e}function V2(e){return vi(e,t=>W2(t))}function G2(e,t=uc){return vi(e,n=>typeof n=="string"?cc(t,n.split(`
|
|
652
|
+
`)):n)}function Y2(e){if(e.type===tt)return!0}function J2(e){return Ws(e,Y2,!1)}function mc(e,t){return e.type===Wt?{...e,contents:t(e.contents)}:t(e)}var vt=Symbol("MODE_BREAK"),Vt=Symbol("MODE_FLAT"),pa=Symbol("cursor");function gc(){return{value:"",length:0,queue:[]}}function K2(e,t){return Vs(e,{type:"indent"},t)}function X2(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||gc():t<0?Vs(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:Vs(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function Vs(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 Gs(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===pa){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(pa);return t}function yi(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=Jn(m);switch(v){case Gn:d.push(m),n-=zs(m);break;case on:case zt:{let y=v===on?m:m.parts;for(let b=y.length-1;b>=0;b--)c.push({mode:h,doc:y[b]});break}case ln:case un:case pn:case Wt:c.push({mode:h,doc:m.contents});break;case cn:n+=Gs(d);break;case gt:{if(o&&m.break)return!1;let y=m.break?vt:h,b=m.expandedStates&&y===vt?Ze(!1,m.expandedStates,-1):m.contents;c.push({mode:y,doc:b});break}case _t:{let y=(m.groupId?i[m.groupId]||Vt:h)===vt?m.breakContents:m.flatContents;y&&c.push({mode:h,doc:y});break}case tt:if(h===vt||m.hard)return!0;m.soft||(d.push(" "),n--);break;case dn:r=!0;break;case hn:if(r)return!1;break}}return!1}function Di(e,t){let n={},r=t.printWidth,i=Is(t.endOfLine),o=0,u=[{ind:gc(),mode:vt,doc:e}],c=[],d=!1,h=[],m=0;for(H2(e);u.length>0;){let{ind:y,mode:b,doc:k}=u.pop();switch(Jn(k)){case Gn:{let x=i!==`
|
|
653
|
+
`?di(!1,k,`
|
|
654
|
+
`,i):k;c.push(x),u.length>0&&(o+=zs(x));break}case on:for(let x=k.length-1;x>=0;x--)u.push({ind:y,mode:b,doc:k[x]});break;case Yn:if(m>=2)throw new Error("There are too many 'cursor' in doc.");c.push(pa),m++;break;case ln:u.push({ind:K2(y,t),mode:b,doc:k.contents});break;case un:u.push({ind:X2(y,k.n,t),mode:b,doc:k.contents});break;case cn:o-=Gs(c);break;case gt:switch(b){case Vt:if(!d){u.push({ind:y,mode:k.break?vt:Vt,doc:k.contents});break}case vt:{d=!1;let x={ind:y,mode:Vt,doc:k.contents},C=r-o,B=h.length>0;if(!k.break&&yi(x,u,C,B,n))u.push(x);else if(k.expandedStates){let F=Ze(!1,k.expandedStates,-1);if(k.break){u.push({ind:y,mode:vt,doc:F});break}else for(let S=1;S<k.expandedStates.length+1;S++)if(S>=k.expandedStates.length){u.push({ind:y,mode:vt,doc:F});break}else{let A=k.expandedStates[S],_={ind:y,mode:Vt,doc:A};if(yi(_,u,C,B,n)){u.push(_);break}}}else u.push({ind:y,mode:vt,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[B,F]=C,S={ind:y,mode:Vt,doc:B},A={ind:y,mode:vt,doc:B},_=yi(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},j={ind:y,mode:vt,doc:F};if(C.length===2){_?u.push($,S):u.push(j,A);break}C.splice(0,2);let L={ind:y,mode:b,doc:sc(C)},P=C[0];yi({ind:y,mode:Vt,doc:[B,F,P]},[],x,h.length>0,n,!0)?u.push(L,$,S):_?u.push(L,j,S):u.push(L,j,A);break}case _t:case pn:{let x=k.groupId?n[k.groupId]:b;if(x===vt){let C=k.type===_t?k.breakContents:k.negate?k.contents:mi(k.contents);C&&u.push({ind:y,mode:b,doc:C})}if(x===Vt){let C=k.type===_t?k.flatContents:k.negate?mi(k.contents):k.contents;C&&u.push({ind:y,mode:b,doc:C})}break}case dn:h.push({ind:y,mode:b,doc:k.contents});break;case hn:h.length>0&&u.push({ind:y,mode:b,doc:Hs});break;case tt:switch(b){case Vt:if(k.hard)d=!0;else{k.soft||(c.push(" "),o+=1);break}case vt: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-=Gs(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 Dr(k)}u.length===0&&h.length>0&&(u.push(...h.reverse()),h.length=0)}let v=c.indexOf(pa);if(v!==-1){let y=c.indexOf(pa,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 Z2(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 Ys=Z2,Xn,Js,bi,Q2=class{constructor(e){n2(this,Xn),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[...la(this,Xn,bi).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=la(this,Xn,Js).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=la(this,Xn,Js).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 la(this,Xn,bi).call(this))if(e(t))return t}hasAncestor(e){for(let t of la(this,Xn,bi).call(this))if(e(t))return!0;return!1}};Xn=new WeakSet,Js=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},bi=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 ey=Q2,vc=new Proxy(()=>{},{get:()=>vc}),Ks=vc;function ty(e){return e!==null&&typeof e=="object"}var ny=ty;function*yc(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=o=>ny(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*ry(e,t){let n=[e];for(let r=0;r<n.length;r++){let i=n[r];for(let o of yc(i,t))yield o,n.push(o)}}function da(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 ay=da(/\s/u),_n=da(" "),Dc=da(",; "),bc=da(/[^\n\r]/u);function iy(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===`
|
|
643
655
|
`)return t-2;if(i===`
|
|
644
656
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
645
657
|
`)return t+2;if(i===`
|
|
646
|
-
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var
|
|
658
|
+
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var Zn=iy;function sy(e,t,n={}){let r=_n(e,n.backwards?t-1:t,n),i=Zn(e,r,n);return r!==i}var xn=sy;function oy(e){return Array.isArray(e)&&e.length>0}var ly=oy,kc=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),uy=e=>Object.keys(e).filter(t=>!kc.has(t));function cy(e){return e?t=>e(t,kc):uy}var ki=cy;function py(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 Xs(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=py(e)}function kr(e,t){t.leading=!0,t.trailing=!1,Xs(e,t)}function Qn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Xs(e,t)}function wr(e,t){t.leading=!1,t.trailing=!0,Xs(e,t)}var Zs=new WeakMap;function Qs(e,t){if(Zs.has(e))return Zs.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))??[...yc(e,{getVisitorKeys:ki(i)})]).flatMap(d=>r(d)?[d]:Qs(d,t));return c.sort((d,h)=>o(d)-o(h)||u(d)-u(h)),Zs.set(e,c),c}function wc(e,t,n,r){let{locStart:i,locEnd:o}=n,u=i(t),c=o(t),d=Qs(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 wc(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=to(b,t,n);h&&to(b,h,n)!==k&&(h=null),m&&to(b,m,n)!==k&&(m=null)}return{enclosingNode:r,precedingNode:h,followingNode:m}}var eo=()=>!1;function dy(e,t){let{comments:n}=e;if(delete e.comments,!ly(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:u=!1}={},handleComments:c={}},originalText:d}=t,{ownLine:h=eo,endOfLine:m=eo,remaining:v=eo}=c,y=n.map((b,k)=>({...wc(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:B,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){kr(_,x);continue}if(o(x)-o(_)>=0){wr(_,x);continue}}let j;if(u?j=[k]:(x.enclosingNode=B,x.precedingNode=C,x.followingNode=F,j=[x,S,A,_,$]),hy(S,A,y,b))x.placement="ownLine",h(...j)||(F?kr(F,x):C?wr(C,x):Qn(B||_,x));else if(fy(S,A,y,b))x.placement="endOfLine",m(...j)||(C?wr(C,x):F?kr(F,x):Qn(B||_,x));else if(x.placement="remaining",!v(...j))if(C&&F){let L=r.length;L>0&&r[L-1].followingNode!==F&&_c(r,A),r.push(k)}else C?wr(C,x):F?kr(F,x):Qn(B||_,x)}if(_c(r,t),!u)for(let b of n)delete b.precedingNode,delete b.enclosingNode,delete b.followingNode}var Cc=e=>!/[\S\n\u2028\u2029]/u.test(e);function hy(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||!Cc(e.slice(c(m),d)))break;d=u(m)}return xn(e,d,{backwards:!0})}function fy(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||!Cc(e.slice(d,u(m))))break;d=c(m)}return xn(e,d)}function _c(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];Ks.strictEqual(m,o),Ks.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?wr(o,m):kr(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 to(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 my(e,t){let n=t-1;n=_n(e,n,{backwards:!0}),n=Zn(e,n,{backwards:!0}),n=_n(e,n,{backwards:!0});let r=Zn(e,n,{backwards:!0});return n!==r}var no=my;function xc(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function gy(e,t){var n;let r=e.node,i=[xc(e,t)],{printer:o,originalText:u,locStart:c,locEnd:d}=t;if((n=o.isBlockComment)!=null&&n.call(o,r)){let m=xn(u,d(r))?xn(u,c(r),{backwards:!0})?Kn:lc:" ";i.push(m)}else i.push(Kn);let h=Zn(u,_n(u,d(r)));return h!==!1&&xn(u,h)&&i.push(Kn),i}function vy(e,t,n){var r;let i=e.node,o=xc(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)||xn(c,d(i),{backwards:!0})){let m=no(c,d(i));return{doc:qs([Kn,m?Kn:"",o]),isBlock:h,hasLineSuffix:!0}}return!h||n!=null&&n.hasLineSuffix?{doc:[qs([" ",o]),gi],isBlock:h,hasLineSuffix:!0}:{doc:[" ",o],isBlock:h,hasLineSuffix:!1}}function yy(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(gy(e,t)):h&&(u=vy(e,t,u),o.push(u.doc))},"comments"),{leading:i,trailing:o}}function Dy(e,t,n){let{leading:r,trailing:i}=yy(e,n);return!r&&!i?t:mc(t,o=>[r,o,i])}function by(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 Sc=class extends Error{constructor(){super(...arguments);Ir(this,"name","ConfigError")}},Ec=class extends Error{constructor(){super(...arguments);Ir(this,"name","UndefinedParserError")}},ky={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
|
|
647
659
|
(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).
|
|
648
660
|
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.
|
|
649
661
|
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
|
|
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
|
|
651
|
-
`)),
|
|
652
|
-
`)),
|
|
653
|
-
`,1)[0].length);return i>t&&i>o?r:n}var jc=ui(Ps()),to=[],Pc=[];function xy(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),to[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=to[m],c=to[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=>xy(e,c)<3);u&&o.push(`Did you mean ${jc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},Sy=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Ey(e,t){let n=new e(t),r=Object.create(n);for(let i of Sy)i in t&&(r[i]=Fy(t[i],n,xn.prototype[i].length));return r}var xn=class{static create(e){return Ey(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 Fy(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var Ay=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}},$y=class extends xn{expected(){return"anything"}validate(){return!0}},Ty=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 By=class extends xn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function Ny(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 jy(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 Py(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function Ly(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Oy(e){return e===Math.floor(e)}function My(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 Iy(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 Ry((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 no(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>Hc(n,t)):[Hc(e,t)]}function Uc(e,t){let n=no(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 Ry(e,t){if(!e)throw new Error(t)}var qy=class extends xn{constructor(e){super(e),this._choices=jy(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(My).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}},Hy=class extends xn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Uy=class extends Hy{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Oy(e)}},zc=class extends xn{expected(){return"a string"}validate(e){return typeof e=="string"}},zy=kr,Wy=Lc,Vy=_y,Gy=Cy,Yy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=zy,unknown:o=Wy,invalid:u=Vy,deprecated:c=Gy,missing:d=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>bi}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:Ny(e,"name"),normalizeDefaultResult:Mc,normalizeExpectedResult:Ic,normalizeDeprecatedResult:qc,normalizeForwardResult:no,normalizeRedirectResult:Uc,normalizeValidateResult:Rc},this._unknownHandler=o,this._invalidHandler=Iy(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=Py()}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))}}};no(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]=Ly(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})}}}}},ro;function Jy(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 Yy(d,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&ro&&(h._hasDeprecationWarned=ro);let v=h.normalize(e);return m&&(ro=h._hasDeprecationWarned),v}function Ky(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push($y.create({name:"_"}));for(let i of e)r.push(Xy(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(Ay.create({name:i.alias,sourceName:i.name}));return r}function Xy(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=Uy,t&&(o.preprocess=Number);break;case"string":u=zc;break;case"choice":u=qy,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=By;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?Ty.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var Zy=Jy,Qy=(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=Qy;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 eD(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 tD(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var Jc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function nD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=wy(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={...Jc,...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:eD(r.plugins,c.astFormat),h=await tD(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"),Zy(r,i,{passThrough:Object.keys(Jc),...t})}var Cr=nD,rD=ui(e2());async function aD(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){iD(o,e)}return{text:r,ast:i}}function iD(e,t){let{loc:n}=e;if(n){let r=(0,rD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
654
|
-
`+r,e.codeFrame=r,e}throw e}var
|
|
655
|
-
`,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=
|
|
656
|
-
`&&(y+=
|
|
657
|
-
`)),b=
|
|
658
|
-
`,k)}return{formatted:b,cursorOffset:y,comments:m.comments}}function
|
|
659
|
-
`);n-=c(n),r-=c(r),i-=c(i),e=
|
|
660
|
-
`);return n===-1?0:
|
|
661
|
-
`)return!0;return!1}var
|
|
662
|
+
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 Fc({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(i=>i.languages??[]),r=[];for(let i of Cy(Object.assign({},...e.map(({options:o})=>o),ky)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(o=>!o.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...wy(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*wy(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 Cy(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 _y=e=>String(e).split(/[/\\]/u).pop();function Ac(e,t){if(!t)return;let n=_y(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 xy(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 Sy(e,t){let n=e.plugins.flatMap(i=>i.languages??[]),r=xy(n,t.language)??Ac(n,t.physicalFile)??Ac(n,t.file)??(t.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var Ey=Sy,Cr={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(n=>Cr.value(n)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(n=>`${Cr.key(n)}: ${Cr.value(e[n])}`).join(", ")} }`},pair:({key:e,value:t})=>Cr.value({[e]:t})},$c=pi(Os()),Fy=(e,t,{descriptor:n})=>{let r=[`${$c.default.yellow(typeof e=="string"?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${$c.default.blue(typeof t=="string"?n.key(t):n.pair(t))}`),r.join("; ")+"."},_r=pi(Os()),Tc=Symbol.for("vnopts.VALUE_NOT_EXIST"),wi=Symbol.for("vnopts.VALUE_UNCHANGED"),Bc=" ".repeat(2),Ay=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),o=[];return r&&o.push(Nc(e,t,r,n.descriptor)),i&&o.push([Nc(e,t,i.title,n.descriptor)].concat(i.values.map(u=>jc(u,n.loggerPrintWidth))).join(`
|
|
663
|
+
`)),Pc(o,n.loggerPrintWidth)};function Nc(e,t,n,r){return[`Invalid ${_r.default.red(r.key(e))} value.`,`Expected ${_r.default.blue(n)},`,`but received ${t===Tc?_r.default.gray("nothing"):_r.default.red(r.value(t))}.`].join(" ")}function jc({text:e,list:t},n){let r=[];return e&&r.push(`- ${_r.default.blue(e)}`),t&&r.push([`- ${_r.default.blue(t.title)}:`].concat(t.values.map(i=>jc(i,n-Bc.length).replace(/^|\n/g,`$&${Bc}`))).join(`
|
|
664
|
+
`)),Pc(r,n)}function Pc(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,o]=e.map(u=>u.split(`
|
|
665
|
+
`,1)[0].length);return i>t&&i>o?r:n}var Lc=pi(Os()),ro=[],Oc=[];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;)Oc[m]=e.charCodeAt(o+m),ro[m]=++m;for(;v<i;)for(u=t.charCodeAt(o+v),d=v++,c=v,m=0;m<r;m++)h=u===Oc[m]?d:d+1,d=ro[m],c=ro[m]=d>c?h>c?c+1:h:h>d?d+1:h;return c}var Mc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let o=[`Ignored unknown option ${Lc.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 ${Lc.default.blue(n.key(u))}?`),r.warn(o.join(" "))},Ty=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function By(e,t){let n=new e(t),r=Object.create(n);for(let i of Ty)i in t&&(r[i]=Ny(t[i],n,Sn.prototype[i].length));return r}var Sn=class{static create(e){return By(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 wi}};function Ny(e,t,n){return typeof e=="function"?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var jy=class extends Sn{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}},Py=class extends Sn{expected(){return"anything"}validate(){return!0}},Ly=class extends Sn{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(Ic))}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(Ic))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Ic({from:e,to:t}){return{from:[e],to:t}}var Oy=class extends Sn{expected(){return"true or false"}validate(e){return typeof e=="boolean"}};function My(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 Iy(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 Ry(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function qy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Hy(e){return e===Math.floor(e)}function Uy(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 zy(e){return(...t)=>{let n=e(...t);return typeof n=="string"?new Error(n):n}}function Rc(e){return e===void 0?{}:e}function qc(e){if(typeof e=="string")return{text:e};let{text:t,list:n}=e;return Wy((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(qc)}}:{text:t}}function Hc(e,t){return e===!0?!0:e===!1?{value:t}:e}function Uc(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function zc(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 ao(e,t){return e===void 0?[]:Array.isArray(e)?e.map(n=>zc(n,t)):[zc(e,t)]}function Wc(e,t){let n=ao(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 Wy(e,t){if(!e)throw new Error(t)}var Vy=class extends Sn{constructor(e){super(e),this._choices=Iy(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(Uy).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}},Gy=class extends Sn{expected(){return"a number"}validate(e,t){return typeof e=="number"}},Yy=class extends Gy{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Hy(e)}},Vc=class extends Sn{expected(){return"a string"}validate(e){return typeof e=="string"}},Jy=Cr,Ky=Mc,Xy=Ay,Zy=Fy,Qy=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Jy,unknown:o=Ky,invalid:u=Xy,deprecated:c=Zy,missing:d=()=>!1,required:h=()=>!1,preprocess:m=y=>y,postprocess:v=()=>wi}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:My(e,"name"),normalizeDefaultResult:Rc,normalizeExpectedResult:qc,normalizeDeprecatedResult:Uc,normalizeForwardResult:ao,normalizeRedirectResult:Wc,normalizeValidateResult:Hc},this._unknownHandler=o,this._invalidHandler=zy(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=Ry()}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=Rc(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!==wi&&(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=Uc(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))}}};ao(u.forward(c,this._utils),c).forEach(d);let m=Wc(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,Tc,this._utils)}_partitionOptionKeys(e){let[t,n]=qy(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=Hc(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!==wi){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})}}}}},io;function eD(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:o,descriptor:u}={}){if(r){if(!o)throw new Error("'FlagSchema' option is required.");if(!u)throw new Error("'descriptor' option is required.")}else u=Cr;let c=i?Array.isArray(i)?(y,b)=>i.includes(y)?{[y]:b}:void 0:(y,b)=>({[y]:b}):(y,b,k)=>{let{_:x,...C}=k.schemas;return Mc(y,b,{...k,schemas:C})},d=tD(t,{isCLI:r,FlagSchema:o}),h=new Qy(d,{logger:n,unknown:c,descriptor:u}),m=n!==!1;m&&io&&(h._hasDeprecationWarned=io);let v=h.normalize(e);return m&&(io=h._hasDeprecationWarned),v}function tD(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Py.create({name:"_"}));for(let i of e)r.push(nD(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(jy.create({name:i.alias,sourceName:i.name}));return r}function nD(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,o={name:i},u,c={};switch(e.type){case"int":u=Yy,t&&(o.preprocess=Number);break;case"string":u=Vc;break;case"choice":u=Vy,o.choices=e.choices.map(d=>d!=null&&d.redirect?{...d,redirect:{to:{key:e.name,value:d.redirect}}}:d);break;case"boolean":u=Oy;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=Vc;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?Ly.create({...t?{preprocess:d=>Array.isArray(d)?d:[d]}:{},...c,valueSchema:u.create(o)}):u.create({...o,...c})}var rD=eD,aD=(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}}},Gc=aD;function Yc(e,t){if(!t)throw new Error("parserName is required.");let n=Gc(!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 Sc(r)}function iD(e,t){if(!t)throw new Error("astFormat is required.");let n=Gc(!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 Sc(r)}function Jc({plugins:e,parser:t}){let n=Yc(e,t);return Kc(n,t)}function Kc(e,t){let n=e.parsers[t];return typeof n=="function"?n():n}function sD(e,t){let n=e.printers[t];return typeof n=="function"?n():n}var Xc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function oD(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=Ey(r,{physicalFile:r.filepath}),!r.parser)throw new Ec(`No parser could be inferred for file "${r.filepath}".`)}else throw new Ec("No parser and no file path given, couldn't infer a parser.");let i=Fc({plugins:e.plugins,showDeprecated:!0}).options,o={...Xc,...Object.fromEntries(i.filter(y=>y.default!==void 0).map(y=>[y.name,y.default]))},u=Yc(r.plugins,r.parser),c=await Kc(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:iD(r.plugins,c.astFormat),h=await sD(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"),rD(r,i,{passThrough:Object.keys(Xc),...t})}var xr=oD,lD=pi(i2());async function uD(e,t){let n=await Jc(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(o){cD(o,e)}return{text:r,ast:i}}function cD(e,t){let{loc:n}=e;if(n){let r=(0,lD.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
|
|
666
|
+
`+r,e.codeFrame=r,e}throw e}var ha=uD;async function pD(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=ki(u.getVisitorKeys??d),m=[];b();let v=e.stack;for(let{print:k,node:x,pathStack:C}of m)try{e.stack=C;let B=await k(y,t,e,n);B&&i.set(x,B)}catch(B){if(globalThis.PRETTIER_DEBUG)throw B}e.stack=v;function y(k,x){return dD(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 dD(e,t,n,r){let i=await xr({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:o}=await ha(e,i),u=await r(o,i);return fc(u)}function hD(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 fD=hD;async function Ci(e,t){({ast:e}=await Qc(e,t));let n=new Map,r=new ey(e),i=new Map;await pD(r,u,t,Ci,i);let o=await Zc(r,t,u,void 0,i);return by(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=Zc(r,t,u,d,i);return m&&n.set(h,v),v}}function Zc(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=fD(e,t):i.has(u)?d=i.get(u):d=c.print(e,t,n,r),u===t.cursorNode&&(d=mc(d,h=>[Us,h,Us])),c.printComment&&(!c.willPrintOwnComments||!c.willPrintOwnComments(e,t))&&(d=Dy(e,d,t)),d}async function Qc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,dy(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function mD(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,o=ki(t.printer.getVisitorKeys),u=d=>r(d)<=n&&i(d)>=n,c=e;for(let d of ry(e,{getVisitorKeys:o,filter:u}))c=d;return c}var gD=mD;function vD(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=ki(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 yD=vD,DD=(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}},bD=DD,kD=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function wD(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(i=>tp.has(i.type)&&r.has(i))}function ep(e){let t=bD(!1,e,n=>n.type!=="Program"&&n.type!=="File");return t===-1?e:e.slice(0,t+1)}function CD(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 ep(t.parentNodes))if(n(d)>=u)o=d;else break;let c=r(t.node);for(let d of ep(e.parentNodes)){if(r(d)<=c)i=d;else break;if(i===o)break}return{startNode:i,endNode:o}}function so(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 Qs(e,n)){let v=so(m,t,n,r,[e,...i],o);if(v)return v}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function _D(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 tp=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),xD=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function np(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 _D(t.type,n==null?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return tp.has(t.type);case"graphql":return xD.has(t.kind);case"vue":return t.tag!=="root"}return!1}function SD(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:o,locEnd:u}=t;Ks.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=so(n,r,t,(b,k)=>np(t,b,k),[],"rangeStart"),m=d?h:so(n,i,t,b=>np(t,b),[],"rangeEnd");if(!h||!m)return{rangeStart:0,rangeEnd:0};let v,y;if(kD(t)){let b=wD(h,m);v=b,y=b}else({startNode:v,endNode:y}=CD(h,m,t));return{rangeStart:Math.min(o(v),o(y)),rangeEnd:Math.max(u(v),u(y))}}var rp="\uFEFF",ap=Symbol("cursor");async function ip(e,t,n=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await ha(e,t);t.cursorOffset>=0&&(t.cursorNode=gD(r,t));let o=await Ci(r,t);n>0&&(o=pc([Kn,o],n,t.tabWidth));let u=Di(o,t);if(n>0){let d=u.formatted.trim();u.cursorNodeStart!==void 0&&(u.cursorNodeStart-=u.formatted.indexOf(d)),u.formatted=d+Is(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,ap);let k=y.split(""),x=d2(b,k),C=v;for(let B of x)if(B.removed){if(B.value.includes(ap))break}else C+=B.count;return{formatted:u.formatted,cursorOffset:C,comments:c}}return{formatted:u.formatted,cursorOffset:-1,comments:c}}async function ED(e,t){let{ast:n,text:r}=await ha(e,t),{rangeStart:i,rangeEnd:o}=SD(r,t,n),u=r.slice(i,o),c=Math.min(i,r.lastIndexOf(`
|
|
667
|
+
`,i)+1),d=r.slice(c,i).match(/^\s*/u)[0],h=Ys(d,t.tabWidth),m=await ip(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=Is(t.endOfLine);y>=0&&k===`\r
|
|
668
|
+
`&&(y+=nc(b.slice(0,y),`
|
|
669
|
+
`)),b=di(!1,b,`
|
|
670
|
+
`,k)}return{formatted:b,cursorOffset:y,comments:m.comments}}function oo(e,t,n){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?n:t}function sp(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=oo(e,n,-1),r=oo(e,r,0),i=oo(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function op(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=sp(e,t),u=e.charAt(0)===rp;if(u&&(e=e.slice(1),n--,r--,i--),o==="auto"&&(o=h2(e)),e.includes("\r")){let c=d=>nc(e.slice(0,Math.max(d,0)),`\r
|
|
671
|
+
`);n-=c(n),r-=c(r),i-=c(i),e=f2(e)}return{hasBOM:u,text:e,options:sp(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o})}}async function lp(e,t){let n=await Jc(t);return!n.hasPragma||n.hasPragma(e)}async function up(e,t){let{hasBOM:n,text:r,options:i}=op(e,await xr(t));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await lp(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return i.rangeStart>0||i.rangeEnd<r.length?o=await ED(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await lp(r,i)&&(r=i.printer.insertPragma(r)),o=await ip(r,i)),n&&(o.formatted=rp+o.formatted,o.cursorOffset>=0&&o.cursorOffset++),o}async function FD(e,t,n){let{text:r,options:i}=op(e,await xr(t)),o=await ha(r,i);return n&&(n.preprocessForPrint&&(o.ast=await Qc(o.ast,i)),n.massage&&(o.ast=yD(o.ast,i))),o}async function AD(e,t){t=await xr(t);let n=await Ci(e,t);return Di(n,t)}async function $D(e,t){let n=B2(e),{formatted:r}=await up(n,{...t,parser:"__js_expression"});return r}async function TD(e,t){t=await xr(t);let{ast:n}=await ha(e,t);return Ci(n,t)}async function BD(e,t){return Di(e,await xr(t))}var cp={};ci(cp,{builders:()=>ND,printer:()=>jD,utils:()=>PD});var ND={join:cc,line:lc,softline:$2,hardline:Kn,literalline:uc,group:ic,conditionalGroup:x2,fill:sc,lineSuffix:qs,lineSuffixBoundary:F2,cursor:Us,breakParent:gi,ifBreak:S2,trim:A2,indent:mi,indentIfBreak:E2,align:br,addAlignmentToDoc:pc,markAsRoot:C2,dedentToRoot:w2,dedent:_2,hardlineWithoutBreakParent:Hs,literallineWithoutBreakParent:oc,label:T2,concat:e=>e},jD={printDocToString:Di},PD={willBreak:q2,traverseDoc:Rs,findInDoc:Ws,mapDoc:vi,removeLines:z2,stripTrailingHardline:fc,replaceEndOfLine:G2,canBreak:J2},LD="3.3.3",pp={};ci(pp,{addDanglingComment:()=>Qn,addLeadingComment:()=>kr,addTrailingComment:()=>wr,getAlignmentSize:()=>Ys,getIndentSize:()=>HD,getMaxContinuousCount:()=>WD,getNextNonSpaceNonCommentCharacter:()=>GD,getNextNonSpaceNonCommentCharacterIndex:()=>t0,getStringWidth:()=>zs,hasNewline:()=>xn,hasNewlineInRange:()=>JD,hasSpaces:()=>XD,isNextLineEmpty:()=>i0,isNextLineEmptyAfterIndex:()=>po,isPreviousLineEmpty:()=>r0,makeString:()=>QD,skip:()=>da,skipEverythingButNewLine:()=>bc,skipInlineComment:()=>lo,skipNewline:()=>Zn,skipSpaces:()=>_n,skipToLineEnd:()=>Dc,skipTrailingComment:()=>uo,skipWhitespace:()=>ay});function OD(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 lo=OD;function MD(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?bc(e,t):t}var uo=MD;function ID(e,t){let n=null,r=t;for(;r!==n;)n=r,r=_n(e,r),r=lo(e,r),r=uo(e,r),r=Zn(e,r);return r}var co=ID;function RD(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Dc(e,r),r=lo(e,r),r=_n(e,r);return r=uo(e,r),r=Zn(e,r),r!==!1&&xn(e,r)}var po=RD;function qD(e,t){let n=e.lastIndexOf(`
|
|
672
|
+
`);return n===-1?0:Ys(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var HD=qD;function UD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zD(e,t){let n=e.match(new RegExp(`(${UD(t)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/t.length),0)}var WD=zD;function VD(e,t){let n=co(e,t);return n===!1?"":e.charAt(n)}var GD=VD;function YD(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
673
|
+
`)return!0;return!1}var JD=YD;function KD(e,t,n={}){return _n(e,n.backwards?t-1:t,n)!==t}var XD=KD;function ZD(e,t,n){let r=t==='"'?"'":'"',i=di(!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 QD=ZD;function e0(e,t,n){return co(e,n(t))}function t0(e,t){return arguments.length===2||typeof t=="number"?co(e,t):e0(...arguments)}function n0(e,t,n){return no(e,n(t))}function r0(e,t){return arguments.length===2||typeof t=="number"?no(e,t):n0(...arguments)}function a0(e,t,n){return po(e,n(t))}function i0(e,t){return arguments.length===2||typeof t=="number"?po(e,t):a0(...arguments)}function er(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 dp=er(up);async function ho(e,t){let{formatted:n}=await dp(e,{...t,cursorOffset:-1});return n}async function s0(e,t){return await ho(e,t)===e}var o0=er(Fc,0),l0={parse:er(FD),formatAST:er(AD),formatDoc:er($D),printToDoc:er(TD),printDocToString:er(BD)},hp={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:()=>oC,options:()=>uC,parsers:()=>Ud,printers:()=>m_});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,B="string",F="array",S="cursor",A="indent",_="align",$="trim",j="group",L="fill",P="if-break",W="indent-if-break",J="line-suffix",R="line-suffix-boundary",q="line",M="label",K="break-parent",ne=new Set([S,A,_,$,j,L,P,W,J,R,q,M,K]);function ge(a){if(typeof a=="string")return B;if(Array.isArray(a))return F;if(!a)return;let{type:s}=a;if(ne.has(s))return s}var ee=ge,le=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function fe(a){let s=a===null?"null":typeof a;if(s!=="string"&&s!=="object")return`Unexpected doc '${s}',
|
|
662
674
|
Expected it to be 'string' or 'object'.`;if(ee(a))throw new Error("doc is valid.");let l=Object.prototype.toString.call(a);if(l!=="[object Object]")return`Unexpected doc '${l}'.`;let p=le([...ne].map(f=>`'${f}'`));return`Unexpected doc.type '${a.type}'.
|
|
663
|
-
Expected it to be ${p}.`}var ae=class extends Error{constructor(s){super(fe(s));
|
|
664
|
-
`)):l)}var Jt="'",
|
|
665
|
-
`,"\f","\r"," "],
|
|
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
|
|
675
|
+
Expected it to be ${p}.`}var ae=class extends Error{constructor(s){super(fe(s));Ir(this,"name","InvalidDocError");this.doc=s}},ye=ae,ot=()=>{},Oe=ot;function Fe(a){return{type:A,contents:a}}function Me(a,s){return{type:_,contents:s,n:a}}function ue(a,s={}){return Oe(s.expandedStates),{type:j,id:s.id,contents:a,break:!!s.shouldBreak,expandedStates:s.expandedStates}}function Dt(a){return Me(Number.NEGATIVE_INFINITY,a)}function jt(a){return Me({type:"root"},a)}function St(a){return{type:L,parts:a}}function Et(a,s="",l={}){return{type:P,breakContents:a,flatContents:s,groupId:l.groupId}}function An(a,s){return{type:W,contents:a,groupId:s.groupId,negate:s.negate}}var Ft={type:K},X={type:q,hard:!0},Yt={type:q,hard:!0,literal:!0},xe={type:q},Ie={type:q,soft:!0},Ee=[X,Ft],Tr=[Yt,Ft];function $n(a,s){let l=[];for(let p=0;p<s.length;p++)p!==0&&l.push(a),l.push(s[p]);return l}var Io=(a,s,l)=>{if(!(a&&s==null))return Array.isArray(s)||typeof s=="string"?s[l<0?s.length+l:l]:s.at(l)},mn=Io;function ka(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(ee(D)){case F:return s(D.map(p));case L:return s({...D,parts:D.parts.map(p)});case P:return s({...D,breakContents:p(D.breakContents),flatContents:p(D.flatContents)});case j:{let{expandedStates:E,contents:N}=D;return E?(E=E.map(p),N=E[0]):N=p(N),s({...D,contents:N,expandedStates:E})}case _:case A:case W:case M:case J:return s({...D,contents:p(D.contents)});case B:case S:case $:case R:case q:case K:return s(D);default:throw new ye(D)}}}function Ro(a){switch(ee(a)){case L:if(a.parts.every(s=>s===""))return"";break;case j:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===j&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case _:case A:case W: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 mn(!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 B:case S:case $:case R:case q:case M:case K:break;default:throw new ye(a)}return a}function Ni(a){return ka(a,s=>Ro(s))}function bt(a,s=Tr){return ka(a,l=>typeof l=="string"?$n(s,l.split(`
|
|
676
|
+
`)):l)}var Jt="'",ji='"';function Pi(a,s){let l=s===!0||s===Jt?Jt:ji,p=l===Jt?ji:Jt,f=0,D=0;for(let E of a)E===l?f++:E===p&&D++;return f>D?p:l}var Li=Pi;function wa(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var At,qo=class{constructor(a){y(this,At),b(this,At,new Set(a))}getLeadingWhitespaceCount(a){let s=v(this,At),l=0;for(let p=0;p<a.length&&s.has(a.charAt(p));p++)l++;return l}getTrailingWhitespaceCount(a){let s=v(this,At),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,At).has(a.charAt(0))}hasTrailingWhitespace(a){return v(this,At).has(mn(!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=`[${wa([...v(this,At)].join(""))}]+`,p=new RegExp(s?`(${l})`:l,"u");return a.split(p)}hasWhitespaceCharacter(a){let s=v(this,At);return Array.prototype.some.call(a,l=>s.has(l))}hasNonWhitespaceCharacter(a){let s=v(this,At);return Array.prototype.some.call(a,l=>!s.has(l))}isWhitespaceOnly(a){let s=v(this,At);return Array.prototype.every.call(a,l=>s.has(l))}};At=new WeakMap;var Ho=qo,Uo=[" ",`
|
|
677
|
+
`,"\f","\r"," "],zo=new Ho(Uo),Pt=zo,Wo=class extends Error{constructor(s,l,p="type"){super(`Unexpected ${l} node ${p}: ${JSON.stringify(s[p])}.`);Ir(this,"name","UnexpectedNodeError");this.node=s}},Ca=Wo;function Oi(a){return(a==null?void 0:a.type)==="front-matter"}var qt=Oi,_a=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),xa=new Set(["if","else if","for","switch","case"]);function Sa(a,s){var l;if(a.type==="text"||a.type==="comment"||qt(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)xa.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}Sa.ignoredProperties=_a;var Vo=Sa;async function Mi(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 Go=Mi;function ar(a,s=!0){return[Fe([Ie,a]),s?Ie:""]}function gn(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 $t(a,s,l,p){l={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...l};let f=!0;p&&(l.__onHtmlBindingRoot=(E,N)=>{f=p(E,N)});let D=await s(a,l,s);return f?ue(D):ar(D)}function Yo(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)?"":$t(D,a,{parser:"__ng_directive",__isInHtmlAttribute:!1},gn)}var Ii=Yo,Ri=a=>String(a).split(/[/\\]/u).pop();function qi(a,s){if(!s)return;let l=Ri(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 Jo(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 Ko(a,s){let l=a.plugins.flatMap(f=>f.languages??[]),p=Jo(l,s.language)??qi(l,s.physicalFile)??qi(l,s.file)??(s.physicalFile,void 0);return p==null?void 0:p.parsers[0]}var Br=Ko,w="inline",I={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},U="normal",te={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function 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 Be(a,s){return!!(a.type==="ieConditionalComment"&&a.lastChild&&!a.lastChild.isSelfClosing&&!a.lastChild.endSourceSpan||a.type==="ieConditionalComment"&&!a.complete||Nr(a)&&a.children.some(l=>l.type!=="text"&&l.type!=="interpolation")||el(a,s)&&!at(a)&&a.type!=="interpolation")}function Te(a){return a.type==="attribute"||!a.parent||!a.prev?!1:kt(a.prev)}function kt(a){return a.type==="comment"&&a.value.trim()==="prettier-ignore"}function Ye(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 lt(a){return a.children&&!at(a)}function Ea(a){return at(a)||a.type==="interpolation"||Hi(a)}function Hi(a){return wd(a).startsWith("pre")}function Xo(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 qt(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:Nr(a.parent)?!0:!(!a.prev&&(a.parent.type==="root"||Nr(a)&&a.parent||at(a.parent)||zi(a.parent,s)||!_1(a.parent.cssDisplay))||a.prev&&!E1(a.prev.cssDisplay))}}function g1(a,s){return qt(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:Nr(a.parent)?!0:!(!a.next&&(a.parent.type==="root"||Nr(a)&&a.parent||at(a.parent)||zi(a.parent,s)||!x1(a.parent.cssDisplay))||a.next&&!S1(a.next.cssDisplay))}function v1(a){return F1(a.cssDisplay)&&!at(a)}function Ui(a){return qt(a)||a.next&&a.sourceSpan.end&&a.sourceSpan.end.line+1<a.next.sourceSpan.start.line}function y1(a){return md(a)||a.type==="element"&&a.children.length>0&&(["body","script","style"].includes(a.name)||a.children.some(s=>b1(s)))||a.firstChild&&a.firstChild===a.lastChild&&a.firstChild.type!=="text"&&vd(a.firstChild)&&(!a.lastChild.isTrailingSpaceSensitive||yd(a.lastChild))}function md(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 Zo(a){return Dd(a)||a.prev&&D1(a.prev)||gd(a)}function D1(a){return Dd(a)||a.type==="element"&&a.fullName==="br"||gd(a)}function gd(a){return vd(a)&&yd(a)}function vd(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 yd(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 Dd(a){switch(a.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(a.name)}return!1}function Qo(a){return a.lastChild?Qo(a.lastChild):a}function b1(a){var s;return(s=a.children)==null?void 0:s.some(l=>l.type!=="text")}function bd(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 k1(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":Br(s,{language:D})??bd(f)}function w1(a,s){if(!el(a,s))return;let{attrMap:l}=a;if(Object.prototype.hasOwnProperty.call(l,"src"))return;let{type:p,lang:f}=l;return Br(s,{language:f})??bd(p)}function C1(a,s){if(a.name!=="style")return;let{lang:l}=a.attrMap;return l?Br(s,{language:l}):"css"}function kd(a,s){return k1(a,s)??C1(a,s)??w1(a,s)}function Fa(a){return a==="block"||a==="list-item"||a.startsWith("table")}function _1(a){return!Fa(a)&&a!=="inline-block"}function x1(a){return!Fa(a)&&a!=="inline-block"}function S1(a){return!Fa(a)}function E1(a){return!Fa(a)}function F1(a){return!Fa(a)&&a!=="inline-block"}function Nr(a){return wd(a).startsWith("pre")}function A1(a,s){let l=a;for(;l;){if(s(l))return!0;l=l.parent}return!1}function $1(a,s){var l;if(jr(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(A1(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))&&I[a.name]||w}}function wd(a){return a.type==="element"&&(!a.namespace||ve(a))&&te[a.name]||U}function T1(a){let s=Number.POSITIVE_INFINITY;for(let l of a.split(`
|
|
678
|
+
`)){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 Cd(a,s=T1(a)){return s===0?a:a.split(`
|
|
667
679
|
`).map(l=>l.slice(s)).join(`
|
|
668
|
-
`)}function
|
|
669
|
-
`||a==="\f"||a==="\r"||a===" "}var M1=/^[ \t\n\r\u000c]+/,I1=/^[, \t\n\r\u000c]+/,R1=/^[^ \t\n\r\u000c]+/,q1=/[,]+$/,Ed=/^\d+$/,H1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function U1(a){let s=a.length,l,p,f,D,E,B=0,H;function Y(pe){let Ae,Ye=pe.exec(a.substring(B));if(Ye)return[Ae]=Ye,B+=Ae.length,Ae}let W=[];for(;;){if(Y(I1),B>=s){if(W.length===0)throw new Error("Must contain one or more image candidate strings.");return W}H=B,l=Y(R1),p=[],l.slice(-1)===","?(l=l.replace(q1,""),me()):we()}function we(){for(Y(M1),f="",D="in descriptor";;){if(E=a.charAt(B),D==="in descriptor")if(Sd(E))f&&(p.push(f),f="",D="after descriptor");else if(E===","){B+=1,f&&p.push(f),me();return}else if(E==="(")f+=E,D="in parens";else if(E===""){f&&p.push(f),me();return}else f+=E;else if(D==="in parens")if(E===")")f+=E,D="in descriptor";else if(E===""){p.push(f),me();return}else f+=E;else if(D==="after descriptor"&&!Sd(E))if(E===""){me();return}else D="in descriptor",B-=1;B+=1}}function me(){let pe=!1,Ae,Ye,it,lt,G={},de,Je,Ve,dt,Lr;for(lt=0;lt<p.length;lt++)de=p[lt],Je=de[de.length-1],Ve=de.substring(0,de.length-1),dt=parseInt(Ve,10),Lr=parseFloat(Ve),Ed.test(Ve)&&Je==="w"?((Ae||Ye)&&(pe=!0),dt===0?pe=!0:Ae=dt):H1.test(Ve)&&Je==="x"?((Ae||Ye||it)&&(pe=!0),Lr<0?pe=!0:Ye=Lr):Ed.test(Ve)&&Je==="h"?((it||Ye)&&(pe=!0),dt===0?pe=!0:it=dt):pe=!0;if(!pe)G.source={value:l,startOffset:H},Ae&&(G.width={value:Ae}),Ye&&(G.density={value:Ye}),it&&(G.height={value:it}),W.push(G);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${de}".`)}}var z1=U1;function W1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>G1($n(a.node))}var Fd={width:"w",height:"h",density:"x"},V1=Object.keys(Fd);function G1(a){let s=z1(a),l=V1.filter(W=>s.some(we=>Object.prototype.hasOwnProperty.call(we,W)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=Fd[p],D=s.map(W=>W.source.value),E=Math.max(...D.map(W=>W.length)),B=s.map(W=>W[p]?String(W[p].value):""),H=B.map(W=>{let we=W.indexOf(".");return we===-1?W.length:we}),Y=Math.max(...H);return nr(An([",",xe],D.map((W,we)=>{let me=[W],pe=B[we];if(pe){let Ae=E-W.length+1,Ye=Y-H[we],it=" ".repeat(Ae+Ye);me.push(St(it," "),pe+f)}return me})))}var Y1=W1;function J1(a,s){let{node:l}=a,p=$n(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>nr(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=>_d(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),el.get(l)}var tl=K1;function X1(a,s,l){let{node:p}=l,f=$n(p);return At(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},hn)}function Z1(a,s,{parseWithTs:l}){return At(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function Q1(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 ew(a,s,l,p){let f=$n(l.node),{left:D,operator:E,right:B}=tw(f),H=tl(l,p);return[ue(await At(`function _(${D}) {}`,a,{parser:H?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await At(B,a,{parser:H?"__ts_expression":"__js_expression"})]}function tw(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 H=[D.alias,D.iterator1,D.iterator2];if(!H.some((Y,W)=>!Y&&(W===0||H.slice(W+1).some(Boolean))))return{left:H.filter(Boolean).join(","),operator:f[2],right:D.for}}function nw(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return ew;if(p==="generic"&&_d(l.parent,s))return X1;let f=$n(l),D=tl(a,s);if(F1(l)||A1(l,s))return E=>Z1(f,E,{parseWithTs:D});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>rw(f,E,{parseWithTs:D});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>aw(f,E,{parseWithTs:D});if(p.startsWith("v-"))return E=>Ad(f,E,{parseWithTs:D})}function rw(a,s,{parseWithTs:l}){return Q1(a)?Ad(a,s,{parseWithTs:l}):At(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},hn)}function aw(a,s,{parseWithTs:l}){return At(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},hn)}function Ad(a,s,{parseWithTs:l}){return At(a,s,{parser:l?"__ts_expression":"__js_expression"},hn)}var iw=nw;function sw(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[Y1,J1,O1,iw,P1]){let f=p(a,s);if(f)return ow(f)}}}function ow(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 lw=sw,$d=new Proxy(()=>{},{get:()=>$d}),Td=$d;function uw(a){return Array.isArray(a)&&a.length>0}var nl=uw;function Ui(a){return a.sourceSpan.start.offset}function zi(a){return a.sourceSpan.end.offset}function rl(a,s){return[a.isSelfClosing?"":cw(a,s),Ea(a,s)]}function cw(a,s){return a.lastChild&&$a(a.lastChild)?"":[pw(a,s),al(a,s)]}function Ea(a,s){return(a.next?ar(a.next):Aa(a.parent))?"":[Fa(a,s),rr(a,s)]}function pw(a,s){return Aa(a)?Fa(a.lastChild,s):""}function rr(a,s){return $a(a)?al(a.parent,s):Wi(a)?sl(a.next):""}function al(a,s){if(Td(!a.isSelfClosing),Bd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function Fa(a,s){if(Bd(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 Bd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function ar(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 Wi(a){return a.next&&!Ge(a.next)&&Ge(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function dw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Vi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function hw(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"&&dw(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(Ui(we),zi(we))):l(),"attrs"),H=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!Br(f,s)?Ee:xe,W=[Fe([H?" ":xe,An(Y,B)])];return f.firstChild&&Vi(f.firstChild)||f.isSelfClosing&&Aa(f.parent)||H?W.push(f.isSelfClosing?" ":""):W.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Ie),W}function fw(a){return a.firstChild&&Vi(a.firstChild)?"":ol(a)}function il(a,s,l){let{node:p}=a;return[Ta(p,s),hw(a,s,l),p.isSelfClosing?"":fw(p)]}function Ta(a,s){return a.prev&&Wi(a.prev)?"":[ir(a,s),sl(a)]}function ir(a,s){return Vi(a)?ol(a.parent):ar(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(Td(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function mw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Vi(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 Nd=mw,gw=new Set(["if","else if","for","switch","case"]);function vw(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=Dd(l,s);return p?async(f,D)=>{let E=Nd(l,s),B=/^\s*$/u.test(E),H="";return B||(H=await f(ie(E),{parser:p,__embeddedInHtml:!0}),B=H===""),[ir(l,s),ue(il(a,s,D)),B?"":Ee,H,B?"":Ee,rl(l,s),rr(l,s)]}:void 0}break;case"text":if(at(l.parent)){let p=Dd(l.parent,s);if(p)return async f=>{let D=p==="markdown"?kd(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,E={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let B="script",{attrMap:H}=l.parent;H&&(H.type==="module"||H.type==="text/babel"&&H["data-type"]==="module")&&(B="module"),E.__babelSourceType=B}return[Et,ir(l,s),await f(D,E),rr(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&&ar(l.parent.next)?" ":xe]};break;case"attribute":return lw(a,s);case"front-matter":return p=>Wo(l,p);case"angularControlFlowBlockParameters":return gw.has(a.parent.name)?Oi:void 0;case"angularLetDeclarationInitializer":return p=>At(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var yw=vw,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 Dw=10;for(let a=0;a<=Dw;a++)Na();function bw(a){return Na(a)}function kw(a,s="type"){bw(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 ww=kw,Cw={"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"]},_w=Cw,xw=ww(_w),Sw=xw;function Ew(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Fw(a){return`<!-- @format -->
|
|
680
|
+
`)}function _d(a){return C(!1,C(!1,a,"'","'"),""",'"')}function Tn(a){return _d(a.value)}var B1=new Set(["template","style","script"]);function zi(a,s){return jr(a,s)&&!B1.has(a.fullName)}function jr(a,s){return s.parser==="vue"&&a.type==="element"&&a.parent.type==="root"&&a.fullName.toLowerCase()!=="html"}function el(a,s){return jr(a,s)&&(zi(a,s)||a.attrMap.lang&&a.attrMap.lang!=="html")}function N1(a){let s=a.fullName;return s.charAt(0)==="#"||s==="slot-scope"||s==="v-slot"||s.startsWith("v-slot:")}function j1(a,s){let l=a.parent;if(!jr(l,s))return!1;let p=l.fullName,f=a.fullName;return p==="script"&&f==="setup"||p==="style"&&f==="vars"}function xd(a,s=a.value){return a.parent.isWhitespaceSensitive?a.parent.isIndentationSensitive?bt(s):bt(Cd(ie(s)),Ee):$n(xe,Pt.split(s))}function Sd(a,s){return jr(a,s)&&a.name==="script"}var Ed=/\{\{(.+?)\}\}/su;async function P1(a,s){let l=[];for(let[p,f]of a.split(Ed).entries())if(p%2===0)l.push(bt(f));else try{l.push(ue(["{{",Fe([xe,await $t(f,s,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),xe,"}}"]))}catch{l.push("{{",bt(f),"}}")}return l}function tl({parser:a}){return(s,l,p)=>$t(Tn(p.node),s,{parser:a},gn)}var L1=tl({parser:"__ng_action"}),O1=tl({parser:"__ng_binding"}),M1=tl({parser:"__ng_directive"});function I1(a,s){if(s.parser!=="angular")return;let{node:l}=a,p=l.fullName;if(p.startsWith("(")&&p.endsWith(")")||p.startsWith("on-"))return L1;if(p.startsWith("[")&&p.endsWith("]")||/^bind(?:on)?-/u.test(p)||/^ng-(?:if|show|hide|class|style)$/u.test(p))return O1;if(p.startsWith("*"))return M1;let f=Tn(l);if(/^i18n(?:-.+)?$/u.test(p))return()=>ar(St(xd(l,f.trim())),!f.includes("@@"));if(Ed.test(f))return D=>P1(f,D)}var R1=I1;function q1(a,s){let{node:l}=a,p=Tn(l);if(l.fullName==="class"&&!s.parentParser&&!p.includes("{{"))return()=>p.trim().split(/\s+/u).join(" ")}var H1=q1;function Fd(a){return a===" "||a===`
|
|
681
|
+
`||a==="\f"||a==="\r"||a===" "}var U1=/^[ \t\n\r\u000c]+/,z1=/^[, \t\n\r\u000c]+/,W1=/^[^ \t\n\r\u000c]+/,V1=/[,]+$/,Ad=/^\d+$/,G1=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Y1(a){let s=a.length,l,p,f,D,E,N=0,H;function Y(ce){let Ae,Je=ce.exec(a.substring(N));if(Je)return[Ae]=Je,N+=Ae.length,Ae}let V=[];for(;;){if(Y(z1),N>=s){if(V.length===0)throw new Error("Must contain one or more image candidate strings.");return V}H=N,l=Y(W1),p=[],l.slice(-1)===","?(l=l.replace(V1,""),me()):we()}function we(){for(Y(U1),f="",D="in descriptor";;){if(E=a.charAt(N),D==="in descriptor")if(Fd(E))f&&(p.push(f),f="",D="after descriptor");else if(E===","){N+=1,f&&p.push(f),me();return}else if(E==="(")f+=E,D="in parens";else if(E===""){f&&p.push(f),me();return}else f+=E;else if(D==="in parens")if(E===")")f+=E,D="in descriptor";else if(E===""){p.push(f),me();return}else f+=E;else if(D==="after descriptor"&&!Fd(E))if(E===""){me();return}else D="in descriptor",N-=1;N+=1}}function me(){let ce=!1,Ae,Je,it,ut,G={},pe,Ke,Ve,dt,Mr;for(ut=0;ut<p.length;ut++)pe=p[ut],Ke=pe[pe.length-1],Ve=pe.substring(0,pe.length-1),dt=parseInt(Ve,10),Mr=parseFloat(Ve),Ad.test(Ve)&&Ke==="w"?((Ae||Je)&&(ce=!0),dt===0?ce=!0:Ae=dt):G1.test(Ve)&&Ke==="x"?((Ae||Je||it)&&(ce=!0),Mr<0?ce=!0:Je=Mr):Ad.test(Ve)&&Ke==="h"?((it||Je)&&(ce=!0),dt===0?ce=!0:it=dt):ce=!0;if(!ce)G.source={value:l,startOffset:H},Ae&&(G.width={value:Ae}),Je&&(G.density={value:Je}),it&&(G.height={value:it}),V.push(G);else throw new Error(`Invalid srcset descriptor found in "${a}" at "${pe}".`)}}var J1=Y1;function K1(a){if(a.node.fullName==="srcset"&&(a.parent.fullName==="img"||a.parent.fullName==="source"))return()=>Z1(Tn(a.node))}var $d={width:"w",height:"h",density:"x"},X1=Object.keys($d);function Z1(a){let s=J1(a),l=X1.filter(V=>s.some(we=>Object.prototype.hasOwnProperty.call(we,V)));if(l.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[p]=l,f=$d[p],D=s.map(V=>V.source.value),E=Math.max(...D.map(V=>V.length)),N=s.map(V=>V[p]?String(V[p].value):""),H=N.map(V=>{let we=V.indexOf(".");return we===-1?V.length:we}),Y=Math.max(...H);return ar($n([",",xe],D.map((V,we)=>{let me=[V],ce=N[we];if(ce){let Ae=E-V.length+1,Je=Y-H[we],it=" ".repeat(Ae+Je);me.push(Et(it," "),ce+f)}return me})))}var Q1=K1;function ew(a,s){let{node:l}=a,p=Tn(a.node).trim();if(l.fullName==="style"&&!s.parentParser&&!p.includes("{{"))return async f=>ar(await f(p,{parser:"css",__isHTMLStyleAttribute:!0}))}var nl=new WeakMap;function tw(a,s){let{root:l}=a;return nl.has(l)||nl.set(l,l.children.some(p=>Sd(p,s)&&["ts","typescript"].includes(p.attrMap.lang))),nl.get(l)}var rl=tw;function nw(a,s,l){let{node:p}=l,f=Tn(p);return $t(`type T<${f}> = any`,a,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},gn)}function rw(a,s,{parseWithTs:l}){return $t(`function _(${a}) {}`,s,{parser:l?"babel-ts":"babel",__isVueBindings:!0})}function aw(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 iw(a,s,l,p){let f=Tn(l.node),{left:D,operator:E,right:N}=sw(f),H=rl(l,p);return[ue(await $t(`function _(${D}) {}`,a,{parser:H?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",E," ",await $t(N,a,{parser:H?"__ts_expression":"__js_expression"})]}function sw(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,""),N=E.match(l);N?(D.alias=E.replace(l,""),D.iterator1=N[1].trim(),N[2]&&(D.iterator2=N[2].trim())):D.alias=E;let H=[D.alias,D.iterator1,D.iterator2];if(!H.some((Y,V)=>!Y&&(V===0||H.slice(V+1).some(Boolean))))return{left:H.filter(Boolean).join(","),operator:f[2],right:D.for}}function ow(a,s){if(s.parser!=="vue")return;let{node:l}=a,p=l.fullName;if(p==="v-for")return iw;if(p==="generic"&&Sd(l.parent,s))return nw;let f=Tn(l),D=rl(a,s);if(N1(l)||j1(l,s))return E=>rw(f,E,{parseWithTs:D});if(p.startsWith("@")||p.startsWith("v-on:"))return E=>lw(f,E,{parseWithTs:D});if(p.startsWith(":")||p.startsWith("v-bind:"))return E=>uw(f,E,{parseWithTs:D});if(p.startsWith("v-"))return E=>Td(f,E,{parseWithTs:D})}function lw(a,s,{parseWithTs:l}){return aw(a)?Td(a,s,{parseWithTs:l}):$t(a,s,{parser:l?"__vue_ts_event_binding":"__vue_event_binding"},gn)}function uw(a,s,{parseWithTs:l}){return $t(a,s,{parser:l?"__vue_ts_expression":"__vue_expression"},gn)}function Td(a,s,{parseWithTs:l}){return $t(a,s,{parser:l?"__ts_expression":"__js_expression"},gn)}var cw=ow;function pw(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[Q1,ew,H1,cw,R1]){let f=p(a,s);if(f)return dw(f)}}}function dw(a){return async(s,l,p,f)=>{let D=await a(s,l,p,f);if(D)return D=ka(D,E=>typeof E=="string"?C(!1,E,'"',"""):E),[p.node.rawName,'="',ue(D),'"']}}var hw=pw,Bd=new Proxy(()=>{},{get:()=>Bd}),Nd=Bd;function fw(a){return Array.isArray(a)&&a.length>0}var al=fw;function Wi(a){return a.sourceSpan.start.offset}function Vi(a){return a.sourceSpan.end.offset}function il(a,s){return[a.isSelfClosing?"":mw(a,s),Aa(a,s)]}function mw(a,s){return a.lastChild&&Ba(a.lastChild)?"":[gw(a,s),sl(a,s)]}function Aa(a,s){return(a.next?sr(a.next):Ta(a.parent))?"":[$a(a,s),ir(a,s)]}function gw(a,s){return Ta(a)?$a(a.lastChild,s):""}function ir(a,s){return Ba(a)?sl(a.parent,s):Gi(a)?ll(a.next):""}function sl(a,s){if(Nd(!a.isSelfClosing),jd(a,s))return"";switch(a.type){case"ieConditionalComment":return"<!";case"element":if(a.hasHtmComponentClosingTag)return"<//";default:return`</${a.rawName}`}}function $a(a,s){if(jd(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 jd(a,s){return!a.isSelfClosing&&!a.endSourceSpan&&(Te(a)||Be(a.parent,s))}function sr(a){return a.prev&&a.prev.type!=="docType"&&a.type!=="angularControlFlowBlock"&&!Ye(a.prev)&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function Ta(a){var s;return((s=a.lastChild)==null?void 0:s.isTrailingSpaceSensitive)&&!a.lastChild.hasTrailingSpaces&&!Ye(Qo(a.lastChild))&&!Nr(a)}function Ba(a){return!a.next&&!a.hasTrailingSpaces&&a.isTrailingSpaceSensitive&&Ye(Qo(a))}function Gi(a){return a.next&&!Ye(a.next)&&Ye(a)&&a.isTrailingSpaceSensitive&&!a.hasTrailingSpaces}function vw(a){let s=a.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return s?s[1]?s[1].split(/\s+/u):!0:!1}function Yi(a){return!a.prev&&a.isLeadingSpaceSensitive&&!a.hasLeadingSpaces}function yw(a,s,l){var p;let{node:f}=a;if(!al(f.attrs))return f.isSelfClosing?" ":"";let D=((p=f.prev)==null?void 0:p.type)==="comment"&&vw(f.prev.value),E=typeof D=="boolean"?()=>D:Array.isArray(D)?we=>D.includes(we.rawName):()=>!1,N=a.map(({node:we})=>E(we)?bt(s.originalText.slice(Wi(we),Vi(we))):l(),"attrs"),H=f.type==="element"&&f.fullName==="script"&&f.attrs.length===1&&f.attrs[0].fullName==="src"&&f.children.length===0,Y=s.singleAttributePerLine&&f.attrs.length>1&&!jr(f,s)?Ee:xe,V=[Fe([H?" ":xe,$n(Y,N)])];return f.firstChild&&Yi(f.firstChild)||f.isSelfClosing&&Ta(f.parent)||H?V.push(f.isSelfClosing?" ":""):V.push(s.bracketSameLine?f.isSelfClosing?" ":"":f.isSelfClosing?xe:Ie),V}function Dw(a){return a.firstChild&&Yi(a.firstChild)?"":ul(a)}function ol(a,s,l){let{node:p}=a;return[Na(p,s),yw(a,s,l),p.isSelfClosing?"":Dw(p)]}function Na(a,s){return a.prev&&Gi(a.prev)?"":[or(a,s),ll(a)]}function or(a,s){return Yi(a)?ul(a.parent):sr(a)?$a(a.prev,s):""}function ll(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 ul(a){switch(Nd(!a.isSelfClosing),a.type){case"ieConditionalComment":return"]>";case"element":if(a.condition)return"><!--<![endif]-->";default:return">"}}function bw(a,s){if(!a.endSourceSpan)return"";let l=a.startSourceSpan.end.offset;a.firstChild&&Yi(a.firstChild)&&(l-=ul(a).length);let p=a.endSourceSpan.start.offset;return a.lastChild&&Ba(a.lastChild)?p+=sl(a,s).length:Ta(a)&&(p-=$a(a.lastChild,s).length),s.originalText.slice(l,p)}var Pd=bw,kw=new Set(["if","else if","for","switch","case"]);function ww(a,s){let{node:l}=a;switch(l.type){case"element":if(at(l)||l.type==="interpolation")return;if(!l.isSelfClosing&&el(l,s)){let p=kd(l,s);return p?async(f,D)=>{let E=Pd(l,s),N=/^\s*$/u.test(E),H="";return N||(H=await f(ie(E),{parser:p,__embeddedInHtml:!0}),N=H===""),[or(l,s),ue(ol(a,s,D)),N?"":Ee,H,N?"":Ee,il(l,s),ir(l,s)]}:void 0}break;case"text":if(at(l.parent)){let p=kd(l.parent,s);if(p)return async f=>{let D=p==="markdown"?Cd(l.value.replace(/^[^\S\n]*\n/u,"")):l.value,E={parser:p,__embeddedInHtml:!0};if(s.parser==="html"&&p==="babel"){let N="script",{attrMap:H}=l.parent;H&&(H.type==="module"||H.type==="text/babel"&&H["data-type"]==="module")&&(N="module"),E.__babelSourceType=N}return[Ft,or(l,s),await f(D,E),ir(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=rl(a,s)?"__vue_ts_expression":"__vue_expression":f.parser="__js_expression",[Fe([xe,await p(l.value,f)]),l.parent.next&&sr(l.parent.next)?" ":xe]};break;case"attribute":return hw(a,s);case"front-matter":return p=>Go(l,p);case"angularControlFlowBlockParameters":return kw.has(a.parent.name)?Ii:void 0;case"angularLetDeclarationInitializer":return p=>$t(l.value,p,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Cw=ww,ja=null;function Pa(a){if(ja!==null&&typeof ja.property){let s=ja;return ja=Pa.prototype=null,s}return ja=Pa.prototype=a??Object.create(null),new Pa}var _w=10;for(let a=0;a<=_w;a++)Pa();function xw(a){return Pa(a)}function Sw(a,s="type"){xw(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 Ew=Sw,Fw={"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"]},Aw=Fw,$w=Ew(Aw),Tw=$w;function Bw(a){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(a)}function Nw(a){return`<!-- @format -->
|
|
670
682
|
|
|
671
|
-
`+a}var
|
|
672
|
-
`);E=
|
|
673
|
-
`&&++
|
|
674
|
-
`&&++
|
|
675
|
-
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function Hw(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),H=new se(B.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=H,f.startSourceSpan=B,f.removeChild(E)}})}function Uw(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 zw(a){return Uw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function Ww(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 Vw(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 H=0;H<B.length;H++,D=E){let Y=B[H];if(H%2===0){E=D.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new se(D,E)});continue}E=D.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new se(D,E),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new se(D.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function Gw(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=Ri(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:H}=rt(D.value),Y=D.prev,W=D.next;B?(D.value=B,D.sourceSpan=new se(D.sourceSpan.start.moveBy(E.length),D.sourceSpan.end.moveBy(-H.length)),E&&(Y&&(Y.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),H&&(D.hasTrailingSpaces=!0,W&&(W.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(E||H)&&(Y&&(Y.hasTrailingSpaces=!0),W&&(W.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function Yw(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 Jw(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=x1(l,s)})}function Xw(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=d1(l);return}for(let f of p)f.isLeadingSpaceSensitive=Jo(f,s),f.isTrailingSpaceSensitive=p1(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 Zw=Rw;function Qw(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 Pw(a,s,l);case"angularControlFlowBlock":return $w(a,s,l);case"angularControlFlowBlockParameters":return Bw(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 Nw(a,s,l);case"angularIcuCase":return jw(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=Ti([ir(p,s),...Cd(p),rr(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[ir(p,s),Dt(s.originalText.slice(Ui(p),zi(p))),rr(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=wd(p.value),D=ji(f,'"');return[p.rawName,"=",D,Dt(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new ka(p,"HTML")}}var eC={preprocess:Zw,print:Qw,insertPragma:Fw,massageAstNode:zo,embed:yw,getVisitorKeys:Sw},tC=eC,nC=[{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"]}],Id={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."}},Rd="HTML",rC={bracketSameLine:Id.bracketSameLine,htmlWhitespaceSensitivity:{category:Rd,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:Id.singleAttributePerLine,vueIndentScriptAndStyle:{category:Rd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},aC=rC,qd={};c(qd,{angular:()=>o_,html:()=>s_,lwc:()=>u_,vue:()=>l_});var Hd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(Hd||(Hd={}));var Ud;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(Ud||(Ud={}));var zd;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(zd||(zd={}));var Wd={name:"custom-elements"},Vd={name:"no-errors-schema"},sr;(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"})(sr||(sr={}));var Gd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Gd||(Gd={}));var Ht;(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"})(Ht||(Ht={}));function Xi(a,s=!0){if(a[0]!=":")return[null,a];let l=a.indexOf(":",1);if(l===-1){if(s)throw new Error(`Unsupported format "${a}" expecting ":namespace:name"`);return[null,a]}return[a.slice(1,l),a.slice(l+1)]}function Yd(a){return Xi(a)[1]==="ng-container"}function Jd(a){return Xi(a)[1]==="ng-content"}function Zi(a){return a===null?null:Xi(a)[0]}function Qi(a,s){return a?`:${a}:${s}`:s}var es;function Kd(){return es||(es={},ts(sr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ts(sr.STYLE,["*|style"]),ts(sr.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"]),ts(sr.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"])),es}function ts(a,s){for(let l of s)es[l.toLowerCase()]=a}var iC=class{},sC="boolean",oC="number",lC="string",uC="object",cC=["[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:|"],Xd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),pC=Array.from(Xd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),dC=class extends iC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,cC.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),D=f.split(","),[E,B]=p.split("^");E.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let H=B&&this._schema.get(B.toLowerCase());if(H){for(let[Y,W]of H)s.set(Y,W);for(let Y of this._eventSchema.get(B.toLowerCase()))l.add(Y)}D.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),sC);break;case"#":s.set(Y.substring(1),oC);break;case"%":s.set(Y.substring(1),uC);break;default:s.set(Y,lC)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===Vd.name))return!0;if(a.indexOf("-")>-1){if(Yd(a)||Jd(a))return!1;if(l.some(p=>p.name===Wd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Vd.name)||a.indexOf("-")>-1&&(Yd(a)||Jd(a)||s.some(l=>l.name===Wd.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||sr.NONE)}getMappedPropName(a){return Xd.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=>pC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Mw(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),D=null;if(hC(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 hC(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=Ht.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(H=>this.closedByChildren[H]=!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}},Zd,Pa;function hl(a){return Pa||(Zd=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:Ht.RAW_TEXT}),script:new re({contentType:Ht.RAW_TEXT}),title:new re({contentType:{default:Ht.ESCAPABLE_RAW_TEXT,svg:Ht.PARSABLE_DATA}}),textarea:new re({contentType:Ht.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new dC().allKnownElementNames().forEach(s=>{!Pa[s]&&Zi(s)===null&&(Pa[s]=new re({canSelfClose:!1}))})),Pa[a]??Zd}var Nr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},fC=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)}},mC=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)}},gC=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)}},vC=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)}},yC=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)}},DC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},bC=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)}},Qd=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)}},eh=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 th(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 kC=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(th(p,D,a))}return s(f),Array.prototype.concat.apply([],l)}},ns={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:""},wC="";ns.ngsp=wC;var CC=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function _C(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];CC.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var xC=class wh{static fromArray(s){return s?(_C("interpolation",s),new wh(s[0],s[1])):nh}constructor(s,l){this.start=s,this.end=l}},nh=new xC("{{","}}"),fl=class extends Md{constructor(a,s,l){super(l,a),this.tokenType=s}},SC=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function EC(a,s,l,p={}){let f=new $C(new Od(a,s),l,p);return f.tokenize(),new SC(LC(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var FC=/\r\n?/g;function Pr(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function rh(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function AC(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var rs;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(rs||(rs={}));var ml=class{constructor(a){this.error=a}},$C=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||nh,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 OC(a,p):new lh(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(FC,`
|
|
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=>Yi(l)?!a:sh(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(oh);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(oh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Yi(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=>Ji(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(jC(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 PC(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(BC),this._cursor.peek()!=59){this._cursor.advance();let D=l?rs.HEX:rs.DEC;throw this._createError(AC(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(rh(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(NC),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=ns[p];if(!f)throw this._createError(rh(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&&!TC(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(ah,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!Ji(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 H=this._consumeAttributeValue();f.push({prefix:E,name:B,value:H})}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===Ht.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===Ht.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=()=>ah(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 H=this._cursor.peek();this._cursor.advance(),H===92?this._cursor.advance():H===D?D=null:!E&&D===null&&pl(H)&&(D=H)}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(),sh(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=Qi(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=Qi(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function We(a){return!Yi(a)||a===0}function ah(a){return Yi(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function TC(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function BC(a){return a===59||a===0||!Lw(a)}function NC(a){return a===59||a===0||!Ji(a)}function jC(a){return a!==125}function PC(a,s){return ih(a)===ih(s)}function ih(a){return a>=97&&a<=122?a-97+65:a}function sh(a){return Ji(a)||ul(a)||a===95}function oh(a){return a!==59&&We(a)}function LC(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 lh=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)}},OC=class bl extends lh{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(Ld(s())){let l="",p=0,f=this.clone();for(;Ld(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 Ch extends Md{static create(s,l,p){return new Ch(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},MC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},IC=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(),H=p?f:D(f),Y=EC(a,s,f?(pe,Ae,Ye,it)=>{let lt=H(pe,Ae,Ye,it);return lt!==void 0?lt:B(pe)}:B,l),W=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,me=new RC(Y.tokens,E,W,we,p);return me.build(),new MC(me.rootNodes,Y.errors.concat(me.errors))}},RC=class _h{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 mC(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 DC(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 bC(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 gC(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 _h(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 vC(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(uh(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(uh(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]==`
|
|
683
|
+
`+a}var jw=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 Ld(a){let s=Vi(a);return a.type==="element"&&!a.endSourceSpan&&al(a.children)?Math.max(s,Ld(mn(!1,a.children,-1))):s}function La(a,s,l){let p=a.node;if(Te(p)){let f=Ld(p);return[or(p,s),bt(Pt.trimEnd(s.originalText.slice(Wi(p)+(p.prev&&Gi(p.prev)?ll(p).length:0),f-(p.next&&sr(p.next)?$a(p,s).length:0)))),ir(p,s)]}return l()}function Ji(a,s){return Ye(a)&&Ye(s)?a.isTrailingSpaceSensitive?a.hasTrailingSpaces?Zo(s)?Ee:xe:"":Zo(s)?Ee:Ie:Gi(a)&&(Te(s)||s.firstChild||s.isSelfClosing||s.type==="element"&&s.attrs.length>0)||a.type==="element"&&a.isSelfClosing&&sr(s)?"":!s.isLeadingSpaceSensitive||Zo(s)||sr(s)&&a.lastChild&&Ba(a.lastChild)&&a.lastChild.lastChild&&Ba(a.lastChild.lastChild)?Ee:s.hasLeadingSpaces?xe:Ie}function cl(a,s,l){let{node:p}=a;if(md(p))return[Ft,...a.map(D=>{let E=D.node,N=E.prev?Ji(E.prev,E):"";return[N?[N,Ui(E.prev)?Ee:""]:"",La(D,s,l)]},"children")];let f=p.children.map(()=>Symbol(""));return a.map((D,E)=>{let N=D.node;if(Ye(N)){if(N.prev&&Ye(N.prev)){let Ae=Ji(N.prev,N);if(Ae)return Ui(N.prev)?[Ee,Ee,La(D,s,l)]:[Ae,La(D,s,l)]}return La(D,s,l)}let H=[],Y=[],V=[],we=[],me=N.prev?Ji(N.prev,N):"",ce=N.next?Ji(N,N.next):"";return me&&(Ui(N.prev)?H.push(Ee,Ee):me===Ee?H.push(Ee):Ye(N.prev)?Y.push(me):Y.push(Et("",Ie,{groupId:f[E-1]}))),ce&&(Ui(N)?Ye(N.next)&&we.push(Ee,Ee):ce===Ee?Ye(N.next)&&we.push(Ee):V.push(ce)),[...H,ue([...Y,ue([La(D,s,l),...V],{id:f[E]})]),...we]},"children")}function Pw(a,s,l){let{node:p}=a,f=[];Lw(a)&&f.push("} "),f.push("@",p.name),p.parameters&&f.push(" (",ue(l("parameters")),")"),f.push(" {");let D=Od(p);return p.children.length>0?(p.firstChild.hasLeadingSpaces=!0,p.lastChild.hasTrailingSpaces=!0,f.push(Fe([Ee,cl(a,s,l)])),D&&f.push(Ee,"}")):D&&f.push("}"),ue(f,{shouldBreak:!0})}function Od(a){var s,l;return!(((s=a.next)==null?void 0:s.type)==="angularControlFlowBlock"&&(l=jw.get(a.name))!=null&&l.has(a.next.name))}function Lw(a){let{previous:s}=a;return(s==null?void 0:s.type)==="angularControlFlowBlock"&&!Te(s)&&!Od(s)}function Ow(a,s,l){return[Fe([Ie,$n([";",xe],a.map(l,"children"))]),Ie]}function Mw(a,s,l){let{node:p}=a;return[Na(p,s),ue([p.switchValue.trim(),", ",p.clause,p.cases.length>0?[",",Fe([xe,$n(xe,a.map(l,"cases"))])]:"",Ie]),Aa(p,s)]}function Iw(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 Rw(a,s,l){let{node:p}=a;if(Be(p,s))return[or(p,s),ue(ol(a,s,l)),bt(Pd(p,s)),...il(p,s),ir(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=V=>ue([ue(ol(a,s,l),{id:D}),V,il(p,s)]),N=V=>f?An(V,{groupId:D}):(at(p)||zi(p,s))&&p.parent.type==="root"&&s.parser==="vue"&&!s.vueIndentScriptAndStyle?V:Fe(V),H=()=>f?Et(Ie,"",{groupId:D}):p.firstChild.hasLeadingSpaces&&p.firstChild.isLeadingSpaceSensitive?xe:p.firstChild.type==="text"&&p.isWhitespaceSensitive&&p.isIndentationSensitive?Dt(Ie):Ie,Y=()=>(p.next?sr(p.next):Ta(p.parent))?p.lastChild.hasTrailingSpaces&&p.lastChild.isTrailingSpaceSensitive?" ":"":f?Et(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([y1(p)?Ft:"",N([H(),cl(a,s,l)]),Y()])}function Ki(a){return a>=9&&a<=32||a==160}function pl(a){return 48<=a&&a<=57}function Xi(a){return a>=97&&a<=122||a>=65&&a<=90}function qw(a){return a>=97&&a<=102||a>=65&&a<=70||pl(a)}function dl(a){return a===10||a===13}function Md(a){return 48<=a&&a<=55}function hl(a){return a===39||a===34||a===96}var Hw=/-+([a-z0-9])/g;function Uw(a){return a.replace(Hw,(...s)=>s[1].toUpperCase())}var fl=class Ch{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 N=l.substring(0,f-1).lastIndexOf(`
|
|
684
|
+
`);E=N>0?f-N:f}else E--;for(;f<p&&s>0;){let N=l.charCodeAt(f);f++,s--,N==10?(D++,E=0):E++}return new Ch(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,N=0;for(;E<s&&f>0&&(f--,E++,!(p[f]==`
|
|
685
|
+
`&&++N==l)););for(E=0,N=0;E<s&&D<p.length-1&&(D++,E++,!(p[D]==`
|
|
686
|
+
`&&++N==l)););return{before:p.substring(f,this.offset),after:p.substring(this.offset,D+1)}}return null}},Id=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)}},Zi;(function(a){a[a.WARNING=0]="WARNING",a[a.ERROR=1]="ERROR"})(Zi||(Zi={}));var Rd=class{constructor(a,s,l=Zi.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}[${Zi[this.level]} ->]${a.after}")`:this.msg}toString(){let a=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${a}`}},zw=[Vw,Gw,Jw,Xw,Zw,tC,Qw,eC,nC,Kw];function Ww(a,s){for(let l of zw)l(a,s);return a}function Vw(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]===`
|
|
687
|
+
`){let l=s.children[0];l.value.length===1?s.removeChild(l):l.value=l.value.slice(1)}})}function Gw(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 N=new se(D.sourceSpan.start,E.sourceSpan.end),H=new se(N.start,f.sourceSpan.end);f.condition=D.condition,f.sourceSpan=H,f.startSourceSpan=N,f.removeChild(E)}})}function Yw(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 Jw(a){return Yw(a,s=>s.type==="cdata",s=>`<![CDATA[${s.value}]]>`)}function Kw(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 Xw(a,s){if(s.parser==="html")return;let l=/\{\{(.+?)\}\}/su;a.walk(p=>{if(lt(p))for(let f of p.children){if(f.type!=="text")continue;let D=f.sourceSpan.start,E=null,N=f.value.split(l);for(let H=0;H<N.length;H++,D=E){let Y=N[H];if(H%2===0){E=D.moveBy(Y.length),Y.length>0&&p.insertChildBefore(f,{type:"text",value:Y,sourceSpan:new se(D,E)});continue}E=D.moveBy(Y.length+4),p.insertChildBefore(f,{type:"interpolation",sourceSpan:new se(D,E),children:Y.length===0?[]:[{type:"text",value:Y,sourceSpan:new se(D.moveBy(2),E.moveBy(-2))}]})}p.removeChild(f)}})}function Zw(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=Ea(s),p=Hi(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:N,trailingWhitespace:H}=rt(D.value),Y=D.prev,V=D.next;N?(D.value=N,D.sourceSpan=new se(D.sourceSpan.start.moveBy(E.length),D.sourceSpan.end.moveBy(-H.length)),E&&(Y&&(Y.hasTrailingSpaces=!0),D.hasLeadingSpaces=!0),H&&(D.hasTrailingSpaces=!0,V&&(V.hasLeadingSpaces=!0))):(s.removeChild(D),f--,(E||H)&&(Y&&(Y.hasTrailingSpaces=!0),V&&(V.hasLeadingSpaces=!0)))}s.isWhitespaceSensitive=l,s.isIndentationSensitive=p})}function Qw(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 eC(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 tC(a,s){a.walk(l=>{l.cssDisplay=$1(l,s)})}function nC(a,s){a.walk(l=>{let{children:p}=l;if(p){if(p.length===0){l.isDanglingSpaceSensitive=v1(l);return}for(let f of p)f.isLeadingSpaceSensitive=Xo(f,s),f.isTrailingSpaceSensitive=g1(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 rC=Ww;function aC(a,s,l){let{node:p}=a;switch(p.type){case"front-matter":return bt(p.raw);case"root":return s.__onHtmlRoot&&s.__onHtmlRoot(p),[ue(cl(a,s,l)),Ee];case"element":case"ieConditionalComment":return Rw(a,s,l);case"angularControlFlowBlock":return Pw(a,s,l);case"angularControlFlowBlockParameters":return Ow(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 Mw(a,s,l);case"angularIcuCase":return Iw(a,s,l);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Na(p),Aa(p)];case"interpolation":return[Na(p,s),...a.map(l,"children"),Aa(p,s)];case"text":{if(p.parent.type==="interpolation"){let D=/\n[^\S\n]*$/u,E=D.test(p.value),N=E?p.value.replace(D,""):p.value;return[bt(N),E?Ee:""]}let f=Ni([or(p,s),...xd(p),ir(p,s)]);return Array.isArray(f)?St(f):f}case"docType":return[ue([Na(p,s)," ",C(!1,p.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Aa(p,s)];case"comment":return[or(p,s),bt(s.originalText.slice(Wi(p),Vi(p))),ir(p,s)];case"attribute":{if(p.value===null)return p.rawName;let f=_d(p.value),D=Li(f,'"');return[p.rawName,"=",D,bt(D==='"'?C(!1,f,'"',"""):C(!1,f,"'","'")),D]}case"cdata":default:throw new Ca(p,"HTML")}}var iC={preprocess:rC,print:aC,insertPragma:Nw,massageAstNode:Vo,embed:Cw,getVisitorKeys:Tw},sC=iC,oC=[{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"]}],qd={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."}},Hd="HTML",lC={bracketSameLine:qd.bracketSameLine,htmlWhitespaceSensitivity:{category:Hd,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:qd.singleAttributePerLine,vueIndentScriptAndStyle:{category:Hd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},uC=lC,Ud={};c(Ud,{angular:()=>d_,html:()=>p_,lwc:()=>f_,vue:()=>h_});var zd;(function(a){a[a.Emulated=0]="Emulated",a[a.None=2]="None",a[a.ShadowDom=3]="ShadowDom"})(zd||(zd={}));var Wd;(function(a){a[a.OnPush=0]="OnPush",a[a.Default=1]="Default"})(Wd||(Wd={}));var Vd;(function(a){a[a.None=0]="None",a[a.SignalBased=1]="SignalBased",a[a.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Vd||(Vd={}));var Gd={name:"custom-elements"},Yd={name:"no-errors-schema"},lr;(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"})(lr||(lr={}));var Jd;(function(a){a[a.Error=0]="Error",a[a.Warning=1]="Warning",a[a.Ignore=2]="Ignore"})(Jd||(Jd={}));var Ht;(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"})(Ht||(Ht={}));function Qi(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 Kd(a){return Qi(a)[1]==="ng-container"}function Xd(a){return Qi(a)[1]==="ng-content"}function es(a){return a===null?null:Qi(a)[0]}function ts(a,s){return a?`:${a}:${s}`:s}var ns;function Zd(){return ns||(ns={},rs(lr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),rs(lr.STYLE,["*|style"]),rs(lr.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"]),rs(lr.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"])),ns}function rs(a,s){for(let l of s)ns[l.toLowerCase()]=a}var cC=class{},pC="boolean",dC="number",hC="string",fC="object",mC=["[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:|"],Qd=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),gC=Array.from(Qd).reduce((a,[s,l])=>(a.set(s,l),a),new Map),vC=class extends cC{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,mC.forEach(a=>{let s=new Map,l=new Set,[p,f]=a.split("|"),D=f.split(","),[E,N]=p.split("^");E.split(",").forEach(Y=>{this._schema.set(Y.toLowerCase(),s),this._eventSchema.set(Y.toLowerCase(),l)});let H=N&&this._schema.get(N.toLowerCase());if(H){for(let[Y,V]of H)s.set(Y,V);for(let Y of this._eventSchema.get(N.toLowerCase()))l.add(Y)}D.forEach(Y=>{if(Y.length>0)switch(Y[0]){case"*":l.add(Y.substring(1));break;case"!":s.set(Y.substring(1),pC);break;case"#":s.set(Y.substring(1),dC);break;case"%":s.set(Y.substring(1),fC);break;default:s.set(Y,hC)}})})}hasProperty(a,s,l){if(l.some(p=>p.name===Yd.name))return!0;if(a.indexOf("-")>-1){if(Kd(a)||Xd(a))return!1;if(l.some(p=>p.name===Gd.name))return!0}return(this._schema.get(a.toLowerCase())||this._schema.get("unknown")).has(s)}hasElement(a,s){return s.some(l=>l.name===Yd.name)||a.indexOf("-")>-1&&(Kd(a)||Xd(a)||s.some(l=>l.name===Gd.name))?!0:this._schema.has(a.toLowerCase())}securityContext(a,s,l){l&&(s=this.getMappedPropName(s)),a=a.toLowerCase(),s=s.toLowerCase();let p=Zd()[a+"|"+s];return p||(p=Zd()["*|"+s],p||lr.NONE)}getMappedPropName(a){return Qd.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)})=...
|
|
688
|
+
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=>gC.get(l)??l)}allKnownEventsOfElement(a){return Array.from(this._eventSchema.get(a.toLowerCase())??[])}normalizeAnimationStyleProperty(a){return Uw(a)}normalizeAnimationStyleValue(a,s,l){let p="",f=l.toString().trim(),D=null;if(yC(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 yC(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=Ht.PARSABLE_DATA,closedByParent:p=!1,isVoid:f=!1,ignoreFirstLf:D=!1,preventNamespaceInheritance:E=!1,canSelfClose:N=!1}={}){this.closedByChildren={},this.closedByParent=!1,a&&a.length>0&&a.forEach(H=>this.closedByChildren[H]=!0),this.isVoid=f,this.closedByParent=p||f,this.implicitNamespacePrefix=s||null,this.contentType=l,this.ignoreFirstLf=D,this.preventNamespaceInheritance=E,this.canSelfClose=N??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}},eh,Oa;function ml(a){return Oa||(eh=new re({canSelfClose:!0}),Oa=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:Ht.RAW_TEXT}),script:new re({contentType:Ht.RAW_TEXT}),title:new re({contentType:{default:Ht.ESCAPABLE_RAW_TEXT,svg:Ht.PARSABLE_DATA}}),textarea:new re({contentType:Ht.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new vC().allKnownElementNames().forEach(s=>{!Oa[s]&&es(s)===null&&(Oa[s]=new re({canSelfClose:!1}))})),Oa[a]??eh}var Pr=class{constructor(a,s){this.sourceSpan=a,this.i18n=s}},DC=class extends Pr{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)}},bC=class extends Pr{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)}},kC=class extends Pr{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)}},wC=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)}},CC=class extends Pr{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}},Bn=class extends Pr{constructor(a,s,l,p,f,D=null,E=null,N){super(p,N),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)}},_C=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="comment"}visit(a,s){return a.visitComment(this,s)}},xC=class{constructor(a,s){this.value=a,this.sourceSpan=s,this.type="docType"}visit(a,s){return a.visitDocType(this,s)}},Lr=class extends Pr{constructor(a,s,l,p,f,D,E=null,N){super(p,N),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)}},th=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)}},nh=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 rh(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 SC=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(rh(p,D,a))}return s(f),Array.prototype.concat.apply([],l)}},as={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:`
|
|
689
|
+
`,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:""},EC="";as.ngsp=EC;var FC=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function AC(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];FC.forEach(f=>{if(f.test(l)||f.test(p))throw new Error(`['${l}', '${p}'] contains unusable interpolation symbol.`)})}}var $C=class _h{static fromArray(s){return s?(AC("interpolation",s),new _h(s[0],s[1])):ah}constructor(s,l){this.start=s,this.end=l}},ah=new $C("{{","}}"),gl=class extends Rd{constructor(a,s,l){super(l,a),this.tokenType=s}},TC=class{constructor(a,s,l){this.tokens=a,this.errors=s,this.nonNormalizedIcuExpressions=l}};function BC(a,s,l,p={}){let f=new PC(new Id(a,s),l,p);return f.tokenize(),new TC(qC(f.tokens),f.errors,f.nonNormalizedIcuExpressions)}var NC=/\r\n?/g;function Or(a){return`Unexpected character "${a===0?"EOF":String.fromCharCode(a)}"`}function ih(a){return`Unknown entity "${a}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function jC(a,s){return`Unable to parse entity "${s}" - ${a} character reference entities must end with ";"`}var is;(function(a){a.HEX="hexadecimal",a.DEC="decimal"})(is||(is={}));var vl=class{constructor(a){this.error=a}},PC=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||ah,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 HC(a,p):new ch(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(NC,`
|
|
690
|
+
`)}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=>Ki(l)?!a:lh(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(uh);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&&hl(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(uh)}}_consumeLetDeclaration(a){if(this._beginToken(30,a),Ki(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)&&!dl(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=>Xi(l)||l==36||l===95||s&&pl(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;hl(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(IC(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 gl("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 gl("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 gl(a,this._currentTokenType,s);return this._currentTokenStart=null,this._currentTokenType=null,new vl(l)}handleError(a){if(a instanceof yl&&(a=this._createError(a.msg,this._cursor.getSpan(a.cursor))),a instanceof vl)this.errors.push(a.error);else throw a}_attemptCharCode(a){return this._cursor.peek()===a?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(a){return RC(this._cursor.peek(),a)?(this._cursor.advance(),!0):!1}_requireCharCode(a){let s=this._cursor.clone();if(!this._attemptCharCode(a))throw this._createError(Or(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(Or(this._cursor.peek()),this._cursor.getSpan(s))}_requireStrCaseInsensitive(a){let s=this._cursor.clone();if(!this._attemptStrCaseInsensitive(a))throw this._createError(Or(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(Or(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(OC),this._cursor.peek()!=59){this._cursor.advance();let D=l?is.HEX:is.DEC;throw this._createError(jC(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(ih(this._cursor.getChars(s)),this._cursor.getSpan())}}else{let l=this._cursor.clone();if(this._attemptCharCodeUntilFn(MC),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=as[p];if(!f)throw this._createError(ih(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&&!LC(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(sh,s===""?0:1);let p=this._cursor.getChars(l);return[s,p]}_consumeTagOpen(a){let s,l,p,f=[];try{if(!Xi(this._cursor.peek()))throw this._createError(Or(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,N]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(We),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(We);let H=this._consumeAttributeValue();f.push({prefix:E,name:N,value:H})}else f.push({prefix:E,name:N});this._attemptCharCodeUntilFn(We)}this._consumeTagOpenEnd()}catch(E){if(E instanceof vl){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===Ht.RAW_TEXT?this._consumeRawTextWithTagClose(l,s,!1):D===Ht.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(Or(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=()=>sh(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 N=this._cursor.clone();if(this._isTagStart()){this._cursor=N,p.push(this._getProcessedChars(f,N)),this._endToken(p);return}if(D===null)if(this._attemptStr(this._interpolationConfig.end)){p.push(this._getProcessedChars(f,N)),p.push(this._interpolationConfig.end),this._endToken(p);return}else this._attemptStr("//")&&(E=!0);let H=this._cursor.peek();this._cursor.advance(),H===92?this._cursor.advance():H===D?D=null:!E&&D===null&&hl(H)&&(D=H)}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(),lh(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=ts(a,s);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===l)&&this._fullNameStack.push(l)}_handleFullNameStackForTagClose(a,s){let l=ts(a,s);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===l&&this._fullNameStack.pop()}};function We(a){return!Ki(a)||a===0}function sh(a){return Ki(a)||a===62||a===60||a===47||a===39||a===34||a===61||a===0}function LC(a){return(a<97||122<a)&&(a<65||90<a)&&(a<48||a>57)}function OC(a){return a===59||a===0||!qw(a)}function MC(a){return a===59||a===0||!Xi(a)}function IC(a){return a!==125}function RC(a,s){return oh(a)===oh(s)}function oh(a){return a>=97&&a<=122?a-97+65:a}function lh(a){return Xi(a)||pl(a)||a===95}function uh(a){return a!==59&&We(a)}function qC(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 ch=class kl{constructor(s,l){if(s instanceof kl){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 kl(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 yl('Unexpected character "EOF"',this);let l=this.charAt(s.offset);l===10?(s.line++,s.column=0):dl(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 fl(s.file,s.state.offset,s.state.line,s.state.column)}},HC=class wl extends ch{constructor(s,l){s instanceof wl?(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 wl(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(Md(s())){let l="",p=0,f=this.clone();for(;Md(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 dl(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 yl("Invalid hexadecimal escape sequence",s);return f}},yl=class{constructor(a,s){this.msg=a,this.cursor=s}},pt=class xh extends Rd{static create(s,l,p){return new xh(s,l,p)}constructor(s,l,p){super(l,p),this.elementName=s}},UC=class{constructor(a,s){this.rootNodes=a,this.errors=s}},zC=class{constructor(a){this.getTagDefinition=a}parse(a,s,l,p=!1,f){let D=ce=>(Ae,...Je)=>ce(Ae.toLowerCase(),...Je),E=p?this.getTagDefinition:D(this.getTagDefinition),N=ce=>E(ce).getContentType(),H=p?f:D(f),Y=BC(a,s,f?(ce,Ae,Je,it)=>{let ut=H(ce,Ae,Je,it);return ut!==void 0?ut:N(ce)}:N,l),V=l&&l.canSelfClose||!1,we=l&&l.allowHtmComponentClosingTags||!1,me=new WC(Y.tokens,E,V,we,p);return me.build(),new UC(me.rootNodes,Y.errors.concat(me.errors))}},WC=class Sh{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 Lr&&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 bC(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 _C(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 xC(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 kC(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 Sh(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),N=new se(l.sourceSpan.start,f.sourceSpan.end,l.sourceSpan.fullStart);return new wC(s.parts[0],D.rootNodes,E,s.sourceSpan,N)}_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(ph(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(ph(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]==`
|
|
679
691
|
`){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]===`
|
|
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,
|
|
681
|
-
`,
|
|
692
|
+
`){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,dh):s.type===9?f+=s.parts[0]:f+=s.parts.join("");if(f.length>0){let D=s.sourceSpan;this._addToParent(new DC(f,new se(p.start,D.end,p.fullStart,p.details),l))}}_closeVoidElement(){let s=this._getContainer();s instanceof Bn&&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 ce=this.getTagDefinition(D);this.canSelfClose||ce.canSelfClose||es(D)!==null||ce.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 N=this._peek.sourceSpan.fullStart,H=new se(s.sourceSpan.start,N,s.sourceSpan.fullStart),Y=new se(s.sourceSpan.start,N,s.sourceSpan.fullStart),V=new se(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),we=new Bn(D,f,[],H,Y,void 0,V),me=this._getContainer();this._pushContainer(we,me instanceof Bn&&this.getTagDefinition(me.name).isClosedByChild(we.name)),E?this._popContainer(D,Bn,H):s.type===4&&(this._popContainer(D,Bn,null),this.errors.push(pt.create(D,H,`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,Bn,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(es(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 Lr||E instanceof Bn&&!this.getTagDefinition(E.name).closedByParent)&&(f=!0)}return!1}_consumeAttr(s){let l=ts(s.parts[0],s.parts[1]),p=s.sourceSpan.end,f;this._peek.type===15&&(f=this._advance());let D="",E=[],N,H;if(this._peek.type===16)for(N=this._peek.sourceSpan,H=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let V=this._advance();E.push(V),V.type===17?D+=V.parts.join("").replace(/&([^;]+);/g,dh):V.type===9?D+=V.parts[0]:D+=V.parts.join(""),H=p=V.sourceSpan.end}this._peek.type===15&&(H=p=this._advance().sourceSpan.end);let Y=N&&H&&new se((f==null?void 0:f.sourceSpan.start)??N.start,H,(f==null?void 0:f.sourceSpan.fullStart)??N.fullStart);return new CC(l,D,new se(s.sourceSpan.start,p,s.sourceSpan.fullStart),s.sourceSpan,Y,E.length>0?E:void 0,void 0)}_consumeBlockOpen(s){let l=[];for(;this._peek.type===28;){let N=this._advance();l.push(new th(N.parts[0],N.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 Lr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(E,!1)}_consumeBlockClose(s){this._popContainer(null,Lr,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 N=this._advance();l.push(new th(N.parts[0],N.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 Lr(s.parts[0],l,[],f,s.sourceSpan,D);this._pushContainer(E,!1),this._popContainer(null,Lr,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),N=s.sourceSpan.toString().lastIndexOf(l),H=s.sourceSpan.start.moveBy(N),Y=new se(H,s.sourceSpan.end),V=new nh(l,p.parts[0],E,Y,p.sourceSpan);this._addToParent(V)}_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),N=new se(s.sourceSpan.start,s.sourceSpan.start.moveBy(0)),H=new nh(l,"",s.sourceSpan,E,N);this._addToParent(H)}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 Bn)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=Qi(p.name)[1];this.getTagDefinition(f).preventNamespaceInheritance||(s=es(p.name))}return ts(s,l)}};function ph(a,s){return a.length>0&&a[a.length-1]===s}function dh(a,s){return as[s]!==void 0?as[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 VC=class extends zC{constructor(){super(ml)}parse(a,s,l,p=!1,f){return super.parse(a,s,l,p,f)}},Dl=null,GC=()=>(Dl||(Dl=new VC),Dl);function hh(a,s={}){let{canSelfClose:l=!1,allowHtmComponentClosingTags:p=!1,isTagNameCaseSensitive:f=!1,getTagContentType:D,tokenizeAngularBlocks:E=!1,tokenizeAngularLetDeclaration:N=!1}=s;return GC().parse(a,"angular-html-parser",{tokenizeExpansionForms:E,interpolationConfig:void 0,canSelfClose:l,allowHtmComponentClosingTags:p,tokenizeBlocks:E,tokenizeLet:N},f,D)}function YC(a,s){let l=new SyntaxError(a+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(l,s)}var JC=YC,Ma=3;function KC(a){let s=a.slice(0,Ma);if(s!=="---"&&s!=="+++")return;let l=a.indexOf(`
|
|
693
|
+
`,Ma);if(l===-1)return;let p=a.slice(Ma,l).trim(),f=a.indexOf(`
|
|
682
694
|
${s}`,l),D=p;if(D||(D=s==="+++"?"toml":"yaml"),f===-1&&s==="---"&&D==="yaml"&&(f=a.indexOf(`
|
|
683
|
-
...`,l)),f===-1)return;let E=f+1+La,B=a.charAt(E+1);if(!/\s?/u.test(B))return;let H=a.slice(0,E);return{type:"front-matter",language:D,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:H.slice(-La),raw:H}}function VC(a){let s=WC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var GC=VC,as={attrs:!0,children:!0,cases:!0,expression:!0},dh=new Set(["parent"]),YC=class Ia{constructor(s={}){for(let l of new Set([...dh,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in as&&(l=l.map(p=>this.createChild(p))),!dh.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in as){let f=this[p];if(f){let D=JC(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 as||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in as){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 JC(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:ZC},{regex:/^\[if([^\]]*)\]><!$/u,parse:QC},{regex:/^<!\s*\[endif\]$/u,parse:e_}];function XC(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 ZC(a,s,l){let[,p,f,D]=l,E=4+p.length,B=a.sourceSpan.start.moveBy(E),H=B.moveBy(D.length),[Y,W]=(()=>{try{return[!0,s(D,B).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new se(B,H)}]]}})();return{type:"ieConditionalComment",complete:Y,children:W,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new se(a.sourceSpan.start,B),endSourceSpan:new se(H,a.sourceSpan.end)}}function QC(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function e_(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"])]]),t_=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 n_(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,dn(!1,a.parameters,-1).sourceSpan.end)}}}function r_(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 a_(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function hh(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:B=!1,isTagNameCaseSensitive:H=!1,shouldParseAsRawText:Y}=s,{rootNodes:W,errors:we}=ph(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:H,getTagContentType:Y?(...G)=>Y(...G)?Ht.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(W.some(Ve=>Ve.type==="docType"&&Ve.value==="html"||Ve.type==="element"&&Ve.name.toLowerCase()==="html"))return hh(a,gh,l);let G,de=()=>G??(G=ph(a,{canSelfClose:f,allowHtmComponentClosingTags:B,isTagNameCaseSensitive:H})),Je=Ve=>de().rootNodes.find(({startSourceSpan:dt})=>dt&&dt.start.offset===Ve.startSourceSpan.start.offset)??Ve;for(let[Ve,dt]of W.entries()){let{endSourceSpan:Lr,startSourceSpan:p_}=dt;if(Lr===null)we=de().errors,W[Ve]=Je(dt);else if(i_(dt,l)){let vh=de().errors.find(yh=>yh.span.start.offset>p_.start.offset&&yh.span.start.offset<Lr.end.offset);vh&&fh(vh),W[Ve]=Je(dt)}}}we.length>0&&fh(we[0]);let me=G=>{let de=G.name.startsWith(":")?G.name.slice(1).split(":")[0]:null,Je=G.nameSpan.toString(),Ve=de!==null&&Je.startsWith(`${de}:`),dt=Ve?Je.slice(de.length+1):Je;G.name=dt,G.namespace=de,G.hasExplicitNamespace=Ve},pe=G=>{switch(G.type){case"element":me(G);for(let de of G.attrs)me(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 Je=G.toLowerCase();return de(Je)?Je:G},Ye=G=>{if(G.type==="element"&&(D&&(!G.namespace||G.namespace===G.tagDefinition.implicitNamespacePrefix||ve(G))&&(G.name=Ae(G.name,de=>t_.has(de))),E))for(let de of G.attrs)de.namespace||(de.name=Ae(de.name,Je=>yl.has(G.name)&&(yl.get("*").has(Je)||yl.get(G.name).has(Je))))},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(H?G.name:G.name.toLowerCase());!G.namespace||G.namespace===de.implicitNamespacePrefix||ve(G)?G.tagDefinition=de:G.tagDefinition=hl("")}};return th(new class extends kC{visitExpansionCase(G,de){p==="angular"&&this.visitChildren(de,Je=>{Je(G.expression)})}visit(G){pe(G),lt(G),Ye(G),it(G)}},W),W}function i_(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 fh(a){let{msg:s,span:{start:l,end:p}}=a;throw zC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function mh(a,s,l={},p=!0){let{frontMatter:f,content:D}=p?GC(a):{frontMatter:null,content:a},E=new Od(a,l.filepath),B=new dl(E,0,0,0),H=B.moveBy(a.length),Y={type:"root",sourceSpan:new se(B,H),children:hh(D,s,l)};if(f){let me=new dl(E,0,0,0),pe=me.moveBy(f.raw.length);f.sourceSpan=new se(me,pe),Y.children.unshift(f)}let W=new YC(Y),we=(me,pe)=>{let{offset:Ae}=pe,Ye=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),it=mh(Ye+me,s,l,!1);it.sourceSpan=new se(pe,dn(!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 W.walk(me=>{if(me.type==="comment"){let pe=XC(me,we);pe&&me.parent.replaceChild(me,pe)}n_(me),r_(me),a_(me)}),W}function is(a){return{parse:(s,l)=>mh(s,a,l),hasPragma:Ew,astFormat:"html",locStart:Ui,locEnd:zi}}var gh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},s_=is(gh),o_=is({name:"angular"}),l_=is({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))}}),u_=is({name:"lwc",canSelfClose:!1}),c_={html:tC};return h(k)})})(pp);var dp=pp.exports;const a0=Sh({__proto__:null,default:Ra(dp)},[dp]);function i0(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 s0(e,t){if(e==null)return{};var n,r,i=i0(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 po(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 o0(e){if(Array.isArray(e))return po(e)}function l0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u0(e,t){if(e){if(typeof e=="string")return po(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)?po(e,t):void 0}}function c0(){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
|
|
685
|
-
`))})}function
|
|
686
|
-
`),style:u,startingLineNumber:c}))}function
|
|
687
|
-
`);P.forEach(function(
|
|
688
|
-
`)};if(J===0){var M=m.slice(y+1,b).concat(
|
|
689
|
-
`).length);var yt=ue+S,jt=_0(Me,j,J,x,T,S,yt,$,P);return O.createElement(M,Oe,O.createElement(ne,v,!T&&ae,R({rows:jt,stylesheet:c,useInlineStyles:b})))}}var F0=$0,A0=Object.prototype.hasOwnProperty;function $0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)A0.call(n,r)&&(e[r]=n[r])}return e}var wp=Cp,go=Cp.prototype;go.space=null,go.normal={},go.property={};function Cp(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var _p=F0,T0=wp,B0=N0;function N0(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 T0(_p.apply(null,n),_p.apply(null,r),u)}var vo=j0;function j0(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={},P0=0;Gt.boolean=Qn(),Gt.booleanish=Qn(),Gt.overloadedBoolean=Qn(),Gt.number=Qn(),Gt.spaceSeparated=Qn(),Gt.commaSeparated=Qn(),Gt.commaOrSpaceSeparated=Qn();function Qn(){return Math.pow(2,++P0)}var Ep=xp,Fp=Gt,Ap=yo;yo.prototype=new Ep,yo.prototype.defined=!0;var $p=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],L0=$p.length;function yo(e,t,n,r){var i=-1,o;for(Tp(this,"space",r),Ep.call(this,e,t);++i<L0;)o=$p[i],Tp(this,o,(n&Fp[o])===Fp[o])}function Tp(e,t,n){n&&(e[t]=n)}var Bp=vo,O0=wp,M0=Ap,ha=I0;function I0(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 M0(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 O0(u,c,t)}var R0=ha,q0=R0({space:"xlink",transform:H0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function H0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var U0=ha,z0=U0({space:"xml",transform:W0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function W0(e,t){return"xml:"+t.slice(3).toLowerCase()}var V0=G0;function G0(e,t){return t in e?e[t]:t}var Y0=V0,Np=J0;function J0(e,t){return Y0(e,t.toLowerCase())}var K0=ha,X0=Np,Z0=K0({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X0,properties:{xmlns:null,xmlnsXLink:null}}),Do=Gt,Q0=ha,vt=Do.booleanish,Nt=Do.number,er=Do.spaceSeparated,eb=Q0({transform:tb,properties:{ariaActiveDescendant:null,ariaAtomic:vt,ariaAutoComplete:null,ariaBusy:vt,ariaChecked:vt,ariaColCount:Nt,ariaColIndex:Nt,ariaColSpan:Nt,ariaControls:er,ariaCurrent:null,ariaDescribedBy:er,ariaDetails:null,ariaDisabled:vt,ariaDropEffect:er,ariaErrorMessage:null,ariaExpanded:vt,ariaFlowTo:er,ariaGrabbed:vt,ariaHasPopup:null,ariaHidden:vt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:er,ariaLevel:Nt,ariaLive:null,ariaModal:vt,ariaMultiLine:vt,ariaMultiSelectable:vt,ariaOrientation:null,ariaOwns:er,ariaPlaceholder:null,ariaPosInSet:Nt,ariaPressed:vt,ariaReadOnly:vt,ariaRelevant:null,ariaRequired:vt,ariaRoleDescription:er,ariaRowCount:Nt,ariaRowIndex:Nt,ariaRowSpan:Nt,ariaSelected:vt,ariaSetSize:Nt,ariaSort:null,ariaValueMax:Nt,ariaValueMin:Nt,ariaValueNow:Nt,ariaValueText:null,role:null}});function tb(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var xr=Gt,nb=ha,rb=Np,oe=xr.boolean,ab=xr.overloadedBoolean,fa=xr.booleanish,$e=xr.number,ct=xr.spaceSeparated,Ci=xr.commaSeparated,ib=nb({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rb,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:ab,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}}),sb=B0,ob=q0,lb=z0,ub=Z0,cb=eb,pb=ib,db=sb([lb,ob,ub,cb,pb]),hb=vo,fb=Ap,mb=xp,bo="data",gb=Db,vb=/^data[-\w.:]+$/i,jp=/-[a-z]/g,yb=/[A-Z]/g;function Db(e,t){var n=hb(t),r=t,i=mb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===bo&&vb.test(t)&&(t.charAt(4)==="-"?r=bb(t):t=kb(t),i=fb),new i(r,t))}function bb(e){var t=e.slice(5).replace(jp,Cb);return bo+t.charAt(0).toUpperCase()+t.slice(1)}function kb(e){var t=e.slice(4);return jp.test(t)?e:(t=t.replace(yb,wb),t.charAt(0)!=="-"&&(t="-"+t),bo+t)}function wb(e){return"-"+e.toLowerCase()}function Cb(e){return e.charAt(1).toUpperCase()}var _b=xb,Pp=/[#.]/g;function xb(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 ko={};ko.parse=Fb,ko.stringify=Ab;var Lp="",Sb=" ",Eb=/[ \t\n\r\f]+/g;function Fb(e){var t=String(e||Lp).trim();return t===Lp?[]:t.split(Eb)}function Ab(e){return e.join(Sb).trim()}var wo={};wo.parse=$b,wo.stringify=Tb;var Co=",",Op=" ",ma="";function $b(e){for(var t=[],n=String(e||ma),r=n.indexOf(Co),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(Co,i);return t}function Tb(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+Co+r).trim()}var Bb=gb,Mp=vo,Nb=_b,Ip=ko.parse,Rp=wo.parse,jb=Lb,Pb={}.hasOwnProperty;function Lb(e,t,n){var r=n?qb(n):null;return i;function i(u,c){var d=Nb(u,t),h=Array.prototype.slice.call(arguments,2),m=d.tagName.toLowerCase(),v;if(d.tagName=r&&Pb.call(r,m)?r[m]:m,c&&Ob(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=Bb(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=Rb(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=Ib(h,m,v))}}function Ob(e,t){return typeof e=="string"||"length"in e||Mb(t.tagName,e)}function Mb(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 Ib(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 Rb(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function qb(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var Hb=db,Ub=jb,Up=Ub(Hb,"div");Up.displayName="html";var zb=Up,Wb=zb;const Vb={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:"ÿ"},Gb={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=Yb;function Yb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var Jb=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 Xb=Zb;function Zb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Qb=Xb,ek=zp,tk=nk;function nk(e){return Qb(e)||ek(e)}var _i,rk=59,ak=ik;function ik(e){var t="&"+e+";",n;return _i=_i||document.createElement("i"),_i.innerHTML=t,n=_i.textContent,n.charCodeAt(n.length-1)===rk&&e!=="semi"||n===t?!1:n}var Wp=Vb,Vp=Gb,sk=zp,ok=Jb,Gp=tk,lk=ak,uk=wk,ck={}.hasOwnProperty,Sr=String.fromCharCode,pk=Function.prototype,Yp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},dk=9,Jp=10,hk=12,fk=32,Kp=38,mk=59,gk=60,vk=61,yk=35,Dk=88,bk=120,kk=65533,Er="named",_o="hexadecimal",xo="decimal",So={};So[_o]=16,So[xo]=10;var xi={};xi[Er]=Gp,xi[xo]=sk,xi[_o]=ok;var Xp=1,Zp=2,Qp=3,ed=4,td=5,Eo=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[Eo]="Numeric character references cannot be disallowed",En[nd]="Numeric character references cannot be outside the permissible Unicode range";function wk(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),Ck(e,n)}function Ck(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,_,$,j,L,P,z,J,R,q,M,K,ne,ge,ee,le,fe,ae;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=ye(),z=u?st:pk,b--,y++;++b<y;)if(j===Jp&&(x=v[k]||1),j=e.charCodeAt(b),j===Kp){if(P=e.charCodeAt(b+1),P===dk||P===Jp||P===hk||P===fk||P===Kp||P===gk||P!==P||n&&P===n){T+=Sr(j),x++;continue}for(K=b+1,M=K,ae=K,P===yk?(ae=++M,P=e.charCodeAt(ae),P===Dk||P===bk?(ne=_o,ae=++M):ne=xo):ne=Er,S="",q="",$="",ge=xi[ne],ae--;++ae<y&&(P=e.charCodeAt(ae),!!ge(P));)$+=Sr(P),ne===Er&&ck.call(Wp,$)&&(S=$,q=Wp[$]);_=e.charCodeAt(ae)===mk,_&&(ae++,A=ne===Er?lk($):!1,A&&(S=$,q=A)),fe=1+ae-K,!_&&!r||($?ne===Er?(_&&!q?z(td,1):(S!==$&&(ae=M+S.length,fe=1+ae-M,_=!1),_||(J=S?Xp:Qp,t.attribute?(P=e.charCodeAt(ae),P===vk?(z(J,fe),q=null):Gp(P)?q=null:z(J,fe)):z(J,fe))),L=q):(_||z(Zp,fe),L=parseInt($,So[ne]),_k(L)?(z(nd,fe),L=Sr(kk)):L in Vp?(z(Eo,fe),L=Vp[L]):(R="",xk(L)&&z(Eo,fe),L>65535&&(L-=65536,R+=Sr(L>>>10|55296),L=56320|L&1023),L=R+Sr(L))):ne!==Er&&z(ed,fe)),L?(Oe(),ee=ye(),b=ae-1,x+=ae-K+1,F.push(L),le=ye(),le.offset++,o&&o.call(d,L,{start:ee,end:le},e.slice(K-1,ae)),ee=le):($=e.slice(K-1,ae),T+=$,x+=$.length,b=ae-1)}else j===10&&(C++,k++,x=0),j===j?(T+=Sr(j),x++):Oe();return F.join("");function ye(){return{line:C,column:x,offset:b+(m.offset||0)}}function st(Fe,Me){var ue=ye();ue.column+=Me,ue.offset+=Me,u.call(h,En[Fe],ue,Fe)}function Oe(){T&&(F.push(T),i&&i.call(c,T,{start:ee,end:ye()}),T="")}}function _k(e){return e>=55296&&e<=57343||e>1114111}function xk(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:{};/**
|
|
695
|
+
...`,l)),f===-1)return;let E=f+1+Ma,N=a.charAt(E+1);if(!/\s?/u.test(N))return;let H=a.slice(0,E);return{type:"front-matter",language:D,explicitLanguage:p,value:a.slice(l+1,f),startDelimiter:s,endDelimiter:H.slice(-Ma),raw:H}}function XC(a){let s=KC(a);if(!s)return{content:a};let{raw:l}=s;return{frontMatter:s,content:C(!1,l,/[^\n]/gu," ")+a.slice(l.length)}}var ZC=XC,ss={attrs:!0,children:!0,cases:!0,expression:!0},fh=new Set(["parent"]),QC=class qa{constructor(s={}){for(let l of new Set([...fh,...Object.keys(s)]))this.setProperty(l,s[l])}setProperty(s,l){if(this[s]!==l){if(s in ss&&(l=l.map(p=>this.createChild(p))),!fh.has(s)){this[s]=l;return}Object.defineProperty(this,s,{value:l,enumerable:!1,configurable:!0})}}map(s){let l;for(let p in ss){let f=this[p];if(f){let D=e_(f,E=>E.map(s));l!==f&&(l||(l=new qa({parent:this.parent})),l.setProperty(p,D))}}if(l)for(let p in this)p in ss||(l[p]=this[p]);return s(l||this)}walk(s){for(let l in ss){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 qa?s.clone():new qa(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 qa(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 e_(a,s){let l=a.map(s);return l.some((p,f)=>p!==a[f])?l:a}var t_=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:r_},{regex:/^\[if([^\]]*)\]><!$/u,parse:a_},{regex:/^<!\s*\[endif\]$/u,parse:i_}];function n_(a,s){if(a.value)for(let{regex:l,parse:p}of t_){let f=a.value.match(l);if(f)return p(a,s,f)}return null}function r_(a,s,l){let[,p,f,D]=l,E=4+p.length,N=a.sourceSpan.start.moveBy(E),H=N.moveBy(D.length),[Y,V]=(()=>{try{return[!0,s(D,N).children]}catch{return[!1,[{type:"text",value:D,sourceSpan:new se(N,H)}]]}})();return{type:"ieConditionalComment",complete:Y,children:V,condition:C(!1,f.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan,startSourceSpan:new se(a.sourceSpan.start,N),endSourceSpan:new se(H,a.sourceSpan.end)}}function a_(a,s,l){let[,p]=l;return{type:"ieConditionalStartComment",condition:C(!1,p.trim(),/\s+/gu," "),sourceSpan:a.sourceSpan}}function i_(a){return{type:"ieConditionalEndComment",sourceSpan:a.sourceSpan}}var bl=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"])]]),s_=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 o_(a){if(a.type==="block"){if(a.name=C(!1,a.name.toLowerCase(),/\s+/gu," ").trim(),a.type="angularControlFlowBlock",!al(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,mn(!1,a.parameters,-1).sourceSpan.end)}}}function l_(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 u_(a){(a.type==="plural"||a.type==="select")&&(a.clause=a.type,a.type="angularIcuExpression"),a.type==="expansionCase"&&(a.type="angularIcuCase")}function mh(a,s,l){let{name:p,canSelfClose:f=!0,normalizeTagName:D=!1,normalizeAttributeName:E=!1,allowHtmComponentClosingTags:N=!1,isTagNameCaseSensitive:H=!1,shouldParseAsRawText:Y}=s,{rootNodes:V,errors:we}=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:N,isTagNameCaseSensitive:H,getTagContentType:Y?(...G)=>Y(...G)?Ht.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:p==="angular"?!0:void 0,tokenizeAngularLetDeclaration:p==="angular"?!0:void 0});if(p==="vue"){if(V.some(Ve=>Ve.type==="docType"&&Ve.value==="html"||Ve.type==="element"&&Ve.name.toLowerCase()==="html"))return mh(a,yh,l);let G,pe=()=>G??(G=hh(a,{canSelfClose:f,allowHtmComponentClosingTags:N,isTagNameCaseSensitive:H})),Ke=Ve=>pe().rootNodes.find(({startSourceSpan:dt})=>dt&&dt.start.offset===Ve.startSourceSpan.start.offset)??Ve;for(let[Ve,dt]of V.entries()){let{endSourceSpan:Mr,startSourceSpan:g_}=dt;if(Mr===null)we=pe().errors,V[Ve]=Ke(dt);else if(c_(dt,l)){let Dh=pe().errors.find(bh=>bh.span.start.offset>g_.start.offset&&bh.span.start.offset<Mr.end.offset);Dh&&gh(Dh),V[Ve]=Ke(dt)}}}we.length>0&&gh(we[0]);let me=G=>{let pe=G.name.startsWith(":")?G.name.slice(1).split(":")[0]:null,Ke=G.nameSpan.toString(),Ve=pe!==null&&Ke.startsWith(`${pe}:`),dt=Ve?Ke.slice(pe.length+1):Ke;G.name=dt,G.namespace=pe,G.hasExplicitNamespace=Ve},ce=G=>{switch(G.type){case"element":me(G);for(let pe of G.attrs)me(pe),pe.valueSpan?(pe.value=pe.valueSpan.toString(),/["']/u.test(pe.value[0])&&(pe.value=pe.value.slice(1,-1))):pe.value=null;break;case"comment":G.value=G.sourceSpan.toString().slice(4,-3);break;case"text":G.value=G.sourceSpan.toString();break}},Ae=(G,pe)=>{let Ke=G.toLowerCase();return pe(Ke)?Ke:G},Je=G=>{if(G.type==="element"&&(D&&(!G.namespace||G.namespace===G.tagDefinition.implicitNamespacePrefix||ve(G))&&(G.name=Ae(G.name,pe=>s_.has(pe))),E))for(let pe of G.attrs)pe.namespace||(pe.name=Ae(pe.name,Ke=>bl.has(G.name)&&(bl.get("*").has(Ke)||bl.get(G.name).has(Ke))))},it=G=>{G.sourceSpan&&G.endSourceSpan&&(G.sourceSpan=new se(G.sourceSpan.start,G.endSourceSpan.end))},ut=G=>{if(G.type==="element"){let pe=ml(H?G.name:G.name.toLowerCase());!G.namespace||G.namespace===pe.implicitNamespacePrefix||ve(G)?G.tagDefinition=pe:G.tagDefinition=ml("")}};return rh(new class extends SC{visitExpansionCase(G,pe){p==="angular"&&this.visitChildren(pe,Ke=>{Ke(G.expression)})}visit(G){ce(G),ut(G),Je(G),it(G)}},V),V}function c_(a,s){var l;if(a.type!=="element"||a.name!=="template")return!1;let p=(l=a.attrs.find(f=>f.name==="lang"))==null?void 0:l.value;return!p||Br(s,{language:p})==="html"}function gh(a){let{msg:s,span:{start:l,end:p}}=a;throw JC(s,{loc:{start:{line:l.line+1,column:l.col+1},end:{line:p.line+1,column:p.col+1}},cause:a})}function vh(a,s,l={},p=!0){let{frontMatter:f,content:D}=p?ZC(a):{frontMatter:null,content:a},E=new Id(a,l.filepath),N=new fl(E,0,0,0),H=N.moveBy(a.length),Y={type:"root",sourceSpan:new se(N,H),children:mh(D,s,l)};if(f){let me=new fl(E,0,0,0),ce=me.moveBy(f.raw.length);f.sourceSpan=new se(me,ce),Y.children.unshift(f)}let V=new QC(Y),we=(me,ce)=>{let{offset:Ae}=ce,Je=C(!1,a.slice(0,Ae),/[^\n\r]/gu," "),it=vh(Je+me,s,l,!1);it.sourceSpan=new se(ce,mn(!1,it.children,-1).sourceSpan.end);let ut=it.children[0];return ut.length===Ae?it.children.shift():(ut.sourceSpan=new se(ut.sourceSpan.start.moveBy(Ae),ut.sourceSpan.end),ut.value=ut.value.slice(Ae)),it};return V.walk(me=>{if(me.type==="comment"){let ce=n_(me,we);ce&&me.parent.replaceChild(me,ce)}o_(me),l_(me),u_(me)}),V}function os(a){return{parse:(s,l)=>vh(s,a,l),hasPragma:Bw,astFormat:"html",locStart:Wi,locEnd:Vi}}var yh={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},p_=os(yh),d_=os({name:"angular"}),h_=os({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))}}),f_=os({name:"lwc",canSelfClose:!1}),m_={html:sC};return h(k)})})(hp);var fp=hp.exports;const u0=Fh({__proto__:null,default:Ha(fp)},[fp]);function c0(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 p0(e,t){if(e==null)return{};var n,r,i=c0(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 fo(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 d0(e){if(Array.isArray(e))return fo(e)}function h0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f0(e,t){if(e){if(typeof e=="string")return fo(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)?fo(e,t):void 0}}function m0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
696
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(e){return d0(e)||h0(e)||f0(e)||m0()}function fa(e){"@babel/helpers - typeof";return fa=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},fa(e)}function g0(e,t){if(fa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v0(e){var t=g0(e,"string");return fa(t)=="symbol"?t:t+""}function mp(e,t,n){return(t=v0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(){return go=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},go.apply(null,arguments)}function gp(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 Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(n),!0).forEach(function(r){mp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y0(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 vo={};function D0(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return vo[t]||(vo[t]=y0(e)),vo[t]}function b0(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=D0(r);return i.reduce(function(o,u){return Sr(Sr({},o),n[u])},t)}function vp(e){return e.join(" ")}function k0(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return yp({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function yp(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=k0(n,o),y;if(!o)y=Sr(Sr({},c),{},{className:vp(c.className)});else{var b=Object.keys(n).reduce(function(B,F){return F.split(".").forEach(function(S){B.includes(S)||B.push(S)}),B},[]),k=c.className&&c.className.includes("token")?["token"]:[],x=c.className&&k.concat(c.className.filter(function(B){return!b.includes(B)}));y=Sr(Sr({},c),{},{className:vp(x)||void 0,style:b0(c.className,Object.assign({},c.style,i),n)})}var C=v(t.children);return O.createElement(h,go({key:u},y),C)}}const w0=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var C0=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Dp(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 En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(n),!0).forEach(function(r){mp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _0=/\n/g;function x0(e){return e.match(_0)}function S0(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var u=o+n;return O.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(u):r},"".concat(u,`
|
|
697
|
+
`))})}function E0(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 O.createElement("code",{style:Object.assign({},n,i)},S0({lines:t.replace(/\n$/,"").split(`
|
|
698
|
+
`),style:u,startingLineNumber:c}))}function F0(e){return"".concat(e.toString().length,".25em")}function bp(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 kp(e,t,n){var r={display:"inline-block",minWidth:F0(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=En(En({},r),i);return o}function _i(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?En({},typeof c=="function"?c(n):c):{};if(k.className=k.className?[].concat(mo(k.className.trim().split(/\s+/)),mo(h)):h,n&&o){var x=kp(r,n,i);t.unshift(bp(n,x))}return v&m&&(k.style=En({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:t}}function wp(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(_i({children:[i],className:mo(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);wp(i.children,o).forEach(function(u){return n.push(u)})}}return n}function A0(e,t,n,r,i,o,u,c,d){var h,m=wp(e.value),v=[],y=-1,b=0;function k(_,$){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _i({children:_,lineNumber:$,lineNumberStyle:c,largestLineNumber:u,showInlineLineNumbers:i,lineProps:n,className:j,showLineNumbers:r,wrapLongLines:d,wrapLines:t})}function x(_,$){if(r&&$&&i){var j=kp(c,$,u);_.unshift(bp($,j))}return _}function C(_,$){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||j.length>0?k(_,$,j):x(_,$)}for(var B=function(){var $=m[b],j=$.children[0].value,L=x0(j);if(L){var P=j.split(`
|
|
699
|
+
`);P.forEach(function(W,J){var R=r&&v.length+o,q={type:"text",value:"".concat(W,`
|
|
700
|
+
`)};if(J===0){var M=m.slice(y+1,b).concat(_i({children:[q],className:$.properties.className})),K=C(M,R);v.push(K)}else if(J===P.length-1){var ne=m[b+1]&&m[b+1].children&&m[b+1].children[0],ge={type:"text",value:"".concat(W)};if(ne){var ee=_i({children:[ge],className:$.properties.className});m.splice(b+1,0,ee)}else{var le=[ge],fe=C(le,R,$.properties.className);v.push(fe)}}else{var ae=[q],ye=C(ae,R,$.properties.className);v.push(ye)}}),y=b}b++};b<m.length;)B();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 yp({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function Cp(e){return e&&typeof e.highlightAuto<"u"}function T0(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(Cp(t)){var o=w0(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 B0(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:En(En({},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,B=C===void 0?!0:C,F=r.startingLineNumber,S=F===void 0?1:F,A=r.lineNumberContainerStyle,_=r.lineNumberStyle,$=_===void 0?{}:_,j=r.wrapLines,L=r.wrapLongLines,P=L===void 0?!1:L,W=r.lineProps,J=W===void 0?{}:W,R=r.renderer,q=r.PreTag,M=q===void 0?"pre":q,K=r.CodeTag,ne=K===void 0?"code":K,ge=r.code,ee=ge===void 0?(Array.isArray(o)?o[0]:o)||"":ge,le=r.astGenerator,fe=p0(r,C0);le=le||e;var ae=x?O.createElement(E0,{containerStyle:A,codeStyle:v.style||{},numberStyle:$,startingLineNumber:S,codeString:ee}):null,ye=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},ot=Cp(le)?"hljs":"prismjs",Oe=b?Object.assign({},fe,{style:Object.assign({},ye,h)}):Object.assign({},fe,{className:fe.className?"".concat(ot," ").concat(fe.className):ot,style:Object.assign({},h)});if(P?v.style=En({whiteSpace:"pre-wrap"},v.style):v.style=En({whiteSpace:"pre"},v.style),!le)return O.createElement(M,Oe,ae,O.createElement(ne,v,ee));(j===void 0&&R||P)&&(j=!0),R=R||$0;var Fe=[{type:"text",value:ee}],Me=T0({astGenerator:le,language:i,code:ee,defaultCodeValue:Fe});Me.language===null&&(Me.value=Fe);var ue=Me.value.length;ue===1&&Me.value[0].type==="text"&&(ue=Me.value[0].value.split(`
|
|
701
|
+
`).length);var Dt=ue+S,jt=A0(Me,j,J,x,B,S,Dt,$,P);return O.createElement(M,Oe,O.createElement(ne,v,!B&&ae,R({rows:jt,stylesheet:c,useInlineStyles:b})))}}var N0=P0,j0=Object.prototype.hasOwnProperty;function P0(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)j0.call(n,r)&&(e[r]=n[r])}return e}var _p=xp,yo=xp.prototype;yo.space=null,yo.normal={},yo.property={};function xp(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var Sp=N0,L0=_p,O0=M0;function M0(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 L0(Sp.apply(null,n),Sp.apply(null,r),u)}var Do=I0;function I0(e){return e.toLowerCase()}var Ep=Fp,Bt=Fp.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 Fp(e,t){this.property=e,this.attribute=t}var Gt={},R0=0;Gt.boolean=tr(),Gt.booleanish=tr(),Gt.overloadedBoolean=tr(),Gt.number=tr(),Gt.spaceSeparated=tr(),Gt.commaSeparated=tr(),Gt.commaOrSpaceSeparated=tr();function tr(){return Math.pow(2,++R0)}var Ap=Ep,$p=Gt,Tp=bo;bo.prototype=new Ap,bo.prototype.defined=!0;var Bp=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],q0=Bp.length;function bo(e,t,n,r){var i=-1,o;for(Np(this,"space",r),Ap.call(this,e,t);++i<q0;)o=Bp[i],Np(this,o,(n&$p[o])===$p[o])}function Np(e,t,n){n&&(e[t]=n)}var jp=Do,H0=_p,U0=Tp,ma=z0;function z0(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 U0(d,o(r,d),i[d],t),n.indexOf(d)!==-1&&(h.mustUseProperty=!0),u[d]=h,c[jp(d)]=d,c[jp(h.attribute)]=d;return new H0(u,c,t)}var W0=ma,V0=W0({space:"xlink",transform:G0,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function G0(e,t){return"xlink:"+t.slice(5).toLowerCase()}var Y0=ma,J0=Y0({space:"xml",transform:K0,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function K0(e,t){return"xml:"+t.slice(3).toLowerCase()}var X0=Z0;function Z0(e,t){return t in e?e[t]:t}var Q0=X0,Pp=eb;function eb(e,t){return Q0(e,t.toLowerCase())}var tb=ma,nb=Pp,rb=tb({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nb,properties:{xmlns:null,xmlnsXLink:null}}),ko=Gt,ab=ma,yt=ko.booleanish,Nt=ko.number,nr=ko.spaceSeparated,ib=ab({transform:sb,properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:Nt,ariaColIndex:Nt,ariaColSpan:Nt,ariaControls:nr,ariaCurrent:null,ariaDescribedBy:nr,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nr,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nr,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nr,ariaLevel:Nt,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nr,ariaPlaceholder:null,ariaPosInSet:Nt,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nr,ariaRowCount:Nt,ariaRowIndex:Nt,ariaRowSpan:Nt,ariaSelected:yt,ariaSetSize:Nt,ariaSort:null,ariaValueMax:Nt,ariaValueMin:Nt,ariaValueNow:Nt,ariaValueText:null,role:null}});function sb(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Er=Gt,ob=ma,lb=Pp,oe=Er.boolean,ub=Er.overloadedBoolean,ga=Er.booleanish,$e=Er.number,ct=Er.spaceSeparated,xi=Er.commaSeparated,cb=ob({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:lb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xi,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:ga,controls:oe,controlsList:ct,coords:$e|xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oe,defer:oe,dir:null,dirName:null,disabled:oe,download:ub,draggable:ga,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:xi,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:ga,src:null,srcDoc:null,srcLang:null,srcSet:xi,start:$e,step:null,style:null,tabIndex:$e,target:null,title:null,translate:null,type:null,typeMustMatch:oe,useMap:null,value:ga,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:ga,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}}),pb=O0,db=V0,hb=J0,fb=rb,mb=ib,gb=cb,vb=pb([hb,db,fb,mb,gb]),yb=Do,Db=Tp,bb=Ep,wo="data",kb=_b,wb=/^data[-\w.:]+$/i,Lp=/-[a-z]/g,Cb=/[A-Z]/g;function _b(e,t){var n=yb(t),r=t,i=bb;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===wo&&wb.test(t)&&(t.charAt(4)==="-"?r=xb(t):t=Sb(t),i=Db),new i(r,t))}function xb(e){var t=e.slice(5).replace(Lp,Fb);return wo+t.charAt(0).toUpperCase()+t.slice(1)}function Sb(e){var t=e.slice(4);return Lp.test(t)?e:(t=t.replace(Cb,Eb),t.charAt(0)!=="-"&&(t="-"+t),wo+t)}function Eb(e){return"-"+e.toLowerCase()}function Fb(e){return e.charAt(1).toUpperCase()}var Ab=$b,Op=/[#.]/g;function $b(e,t){for(var n=e||"",r=t||"div",i={},o=0,u,c,d;o<n.length;)Op.lastIndex=o,d=Op.exec(n),u=n.slice(o,d?d.index:n.length),u&&(c?c==="#"?i.id=u:i.className?i.className.push(u):i.className=[u]:r=u,o+=u.length),d&&(c=d[0],o++);return{type:"element",tagName:r,properties:i,children:[]}}var Co={};Co.parse=Nb,Co.stringify=jb;var Mp="",Tb=" ",Bb=/[ \t\n\r\f]+/g;function Nb(e){var t=String(e||Mp).trim();return t===Mp?[]:t.split(Bb)}function jb(e){return e.join(Tb).trim()}var _o={};_o.parse=Pb,_o.stringify=Lb;var xo=",",Ip=" ",va="";function Pb(e){for(var t=[],n=String(e||va),r=n.indexOf(xo),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(xo,i);return t}function Lb(e,t){var n=t||{},r=n.padLeft===!1?va:Ip,i=n.padRight?Ip:va;return e[e.length-1]===va&&(e=e.concat(va)),e.join(i+xo+r).trim()}var Ob=kb,Rp=Do,Mb=Ab,qp=Co.parse,Hp=_o.parse,Ib=qb,Rb={}.hasOwnProperty;function qb(e,t,n){var r=n?Vb(n):null;return i;function i(u,c){var d=Mb(u,t),h=Array.prototype.slice.call(arguments,2),m=d.tagName.toLowerCase(),v;if(d.tagName=r&&Rb.call(r,m)?r[m]:m,c&&Hb(c,d)&&(h.unshift(c),c=null),c)for(v in c)o(d.properties,v,c[v]);return Up(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=Ob(e,c),m=h.property,v=d,typeof v=="string"&&(h.spaceSeparated?v=qp(v):h.commaSeparated?v=Hp(v):h.commaOrSpaceSeparated&&(v=qp(Hp(v).join(" ")))),m==="style"&&typeof d!="string"&&(v=Wb(v)),m==="className"&&u.className&&(v=u.className.concat(v)),u[m]=zb(h,m,v))}}function Hb(e,t){return typeof e=="string"||"length"in e||Ub(t.tagName,e)}function Ub(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 Up(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;)Up(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 zb(e,t,n){var r,i,o;if(typeof n!="object"||!("length"in n))return zp(e,t,n);for(i=n.length,r=-1,o=[];++r<i;)o[r]=zp(e,t,n[r]);return o}function zp(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===""||Rp(n)===Rp(t))&&(r=!0),r}function Wb(e){var t=[],n;for(n in e)t.push([n,e[n]].join(": "));return t.join("; ")}function Vb(e){for(var t=e.length,n=-1,r={},i;++n<t;)i=e[n],r[i.toLowerCase()]=i;return r}var Gb=vb,Yb=Ib,Wp=Yb(Gb,"div");Wp.displayName="html";var Jb=Wp,Kb=Jb;const Xb={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:"ÿ"},Zb={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 Vp=Qb;function Qb(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}var ek=tk;function tk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var nk=rk;function rk(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var ak=nk,ik=Vp,sk=ok;function ok(e){return ak(e)||ik(e)}var Si,lk=59,uk=ck;function ck(e){var t="&"+e+";",n;return Si=Si||document.createElement("i"),Si.innerHTML=t,n=Si.textContent,n.charCodeAt(n.length-1)===lk&&e!=="semi"||n===t?!1:n}var Gp=Xb,Yp=Zb,pk=Vp,dk=ek,Jp=sk,hk=uk,fk=Ek,mk={}.hasOwnProperty,Fr=String.fromCharCode,gk=Function.prototype,Kp={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},vk=9,Xp=10,yk=12,Dk=32,Zp=38,bk=59,kk=60,wk=61,Ck=35,_k=88,xk=120,Sk=65533,Ar="named",So="hexadecimal",Eo="decimal",Fo={};Fo[So]=16,Fo[Eo]=10;var Ei={};Ei[Ar]=Jp,Ei[Eo]=pk,Ei[So]=dk;var Qp=1,ed=2,td=3,nd=4,rd=5,Ao=6,ad=7,Fn={};Fn[Qp]="Named character references must be terminated by a semicolon",Fn[ed]="Numeric character references must be terminated by a semicolon",Fn[td]="Named character references cannot be empty",Fn[nd]="Numeric character references cannot be empty",Fn[rd]="Named character references must be known",Fn[Ao]="Numeric character references cannot be disallowed",Fn[ad]="Numeric character references cannot be outside the permissible Unicode range";function Ek(e,t){var n={},r,i;t||(t={});for(i in Kp)r=t[i],n[i]=r??Kp[i];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),Fk(e,n)}function Fk(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,B="",F=[],S,A,_,$,j,L,P,W,J,R,q,M,K,ne,ge,ee,le,fe,ae;for(typeof n=="string"&&(n=n.charCodeAt(0)),ee=ye(),W=u?ot:gk,b--,y++;++b<y;)if(j===Xp&&(x=v[k]||1),j=e.charCodeAt(b),j===Zp){if(P=e.charCodeAt(b+1),P===vk||P===Xp||P===yk||P===Dk||P===Zp||P===kk||P!==P||n&&P===n){B+=Fr(j),x++;continue}for(K=b+1,M=K,ae=K,P===Ck?(ae=++M,P=e.charCodeAt(ae),P===_k||P===xk?(ne=So,ae=++M):ne=Eo):ne=Ar,S="",q="",$="",ge=Ei[ne],ae--;++ae<y&&(P=e.charCodeAt(ae),!!ge(P));)$+=Fr(P),ne===Ar&&mk.call(Gp,$)&&(S=$,q=Gp[$]);_=e.charCodeAt(ae)===bk,_&&(ae++,A=ne===Ar?hk($):!1,A&&(S=$,q=A)),fe=1+ae-K,!_&&!r||($?ne===Ar?(_&&!q?W(rd,1):(S!==$&&(ae=M+S.length,fe=1+ae-M,_=!1),_||(J=S?Qp:td,t.attribute?(P=e.charCodeAt(ae),P===wk?(W(J,fe),q=null):Jp(P)?q=null:W(J,fe)):W(J,fe))),L=q):(_||W(ed,fe),L=parseInt($,Fo[ne]),Ak(L)?(W(ad,fe),L=Fr(Sk)):L in Yp?(W(Ao,fe),L=Yp[L]):(R="",$k(L)&&W(Ao,fe),L>65535&&(L-=65536,R+=Fr(L>>>10|55296),L=56320|L&1023),L=R+Fr(L))):ne!==Ar&&W(nd,fe)),L?(Oe(),ee=ye(),b=ae-1,x+=ae-K+1,F.push(L),le=ye(),le.offset++,o&&o.call(d,L,{start:ee,end:le},e.slice(K-1,ae)),ee=le):($=e.slice(K-1,ae),B+=$,x+=$.length,b=ae-1)}else j===10&&(C++,k++,x=0),j===j?(B+=Fr(j),x++):Oe();return F.join("");function ye(){return{line:C,column:x,offset:b+(m.offset||0)}}function ot(Fe,Me){var ue=ye();ue.column+=Me,ue.offset+=Me,u.call(h,Fn[Fe],ue,Fe)}function Oe(){B&&(F.push(B),i&&i.call(c,B,{start:ee,end:ye()}),B="")}}function Ak(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 id={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
690
702
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
691
703
|
*
|
|
692
704
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
693
705
|
* @author Lea Verou <https://lea.verou.me>
|
|
694
706
|
* @namespace
|
|
695
707
|
* @public
|
|
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 j in S)S.hasOwnProperty(j)&&(_[j]=F(S[j],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(L,P){_[P]=F(L,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],j={};for(var L in $)if($.hasOwnProperty(L)){if(L==S)for(var P in A)A.hasOwnProperty(P)&&(j[P]=A[P]);A.hasOwnProperty(L)||(j[L]=$[L])}var z=_[F];return _[F]=j,c.languages.DFS(c.languages,function(J,R){R===z&&J!=F&&(this[J]=j)}),j},DFS:function F(S,A,_,$){$=$||{};var j=c.util.objId;for(var L in S)if(S.hasOwnProperty(L)){A.call(S,L,S[L],_||L);var P=S[L],z=c.util.type(P);z==="Object"&&!$[j(P)]?($[j(P)]=!0,F(P,A,null,$)):z==="Array"&&!$[j(P)]&&($[j(P)]=!0,F(P,A,L,$))}}},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,j;j=_.elements[$++];)c.highlightElement(j,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var j=F.parentElement;j&&j.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(j,_);var L=F.textContent,P={element:F,language:_,grammar:$,code:L};function z(R){P.highlightedCode=R,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),j=P.element.parentElement,j&&j.nodeName.toLowerCase()==="pre"&&!j.hasAttribute("tabindex")&&j.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){z(c.util.encode(P.code));return}if(S&&r.Worker){var J=new Worker(c.filename);J.onmessage=function(R){z(R.data)},J.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else z(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(z){_+=F(z,A)}),_}var $={type:S.type,content:F(S.content,A),tag:"span",classes:["token",S.type],attributes:{},language:A},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply($.classes,j):$.classes.push(j)),c.hooks.run("wrap",$);var L="";for(var P in $.attributes)L+=" "+P+'="'+($.attributes[P]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+L+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var j=$[1].length;$.index+=j,$[0]=$[0].slice(j)}return $}function m(F,S,A,_,$,j){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var P=A[L];P=Array.isArray(P)?P:[P];for(var z=0;z<P.length;++z){if(j&&j.cause==L+","+z)return;var J=P[z],R=J.inside,q=!!J.lookbehind,M=!!J.greedy,K=J.alias;if(M&&!J.pattern.global){var ne=J.pattern.toString().match(/[imsuy]*$/)[0];J.pattern=RegExp(J.pattern.source,ne+"g")}for(var ge=J.pattern||J,ee=_.next,le=$;ee!==S.tail&&!(j&&le>=j.reach);le+=ee.value.length,ee=ee.next){var fe=ee.value;if(S.length>F.length)return;if(!(fe instanceof d)){var ae=1,ye;if(M){if(ye=h(ge,le,F,q),!ye||ye.index>=F.length)break;var Me=ye.index,st=ye.index+ye[0].length,Oe=le;for(Oe+=ee.value.length;Me>=Oe;)ee=ee.next,Oe+=ee.value.length;if(Oe-=ee.value.length,le=Oe,ee.value instanceof d)continue;for(var Fe=ee;Fe!==S.tail&&(Oe<st||typeof Fe.value=="string");Fe=Fe.next)ae++,Oe+=Fe.value.length;ae--,fe=F.slice(le,Oe),ye.index-=le}else if(ye=h(ge,0,fe,q),!ye)continue;var Me=ye.index,ue=ye[0],yt=fe.slice(0,Me),jt=fe.slice(Me+ue.length),xt=le+fe.length;j&&xt>j.reach&&(j.reach=xt);var St=ee.prev;yt&&(St=y(S,St,yt),le+=yt.length),b(S,St,ae);var Fn=new d(L,R?c.tokenize(ue,R):ue,K,ue);if(ee=y(S,St,Fn),jt&&y(S,ee,jt),ae>1){var Et={cause:L+","+z,reach:xt};m(F,S,A,ee.prev,le,Et),j&&Et.reach>j.reach&&(j.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 fn<"u"&&(fn.Prism=n)})(rd);var Sk=rd.exports,Ek=Fo;Fo.displayName="markup",Fo.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function Fo(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 Fk=Ao;Ao.displayName="css",Ao.aliases=[];function Ao(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 Ak=$o;$o.displayName="clike",$o.aliases=[];function $o(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 $k=To;To.displayName="javascript",To.aliases=["js"];function To(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 fn=="object"?fn:{},Tk=Gk();ga.Prism={manual:!0,disableWorkerMessageHandler:!0};var Bk=Wb,Nk=uk,ad=Sk,jk=Ek,Pk=Fk,Lk=Ak,Ok=$k;Tk();var Bo={}.hasOwnProperty;function id(){}id.prototype=ad;var ze=new id,Mk=ze;ze.highlight=Rk,ze.register=va,ze.alias=Ik,ze.registered=qk,ze.listLanguages=Hk,va(jk),va(Pk),va(Lk),va(Ok),ze.util.encode=Wk,ze.Token.stringify=Uk;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 Ik(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 Rk(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(Bo.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 qk(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return Bo.call(ze.languages,e)}function Hk(){var e=ze.languages,t=[],n;for(n in e)Bo.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Uk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:ze.util.type(e)==="Array"?zk(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),Bk(r.tag+"."+r.classes.join("."),Vk(r.attributes),r.content))}function zk(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 Wk(e){return e}function Vk(e){var t;for(t in e)e[t]=Nk(e[t]);return e}function Gk(){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 No=Ra(Mk);var ya=E0(No,{});ya.registerLanguage=function(e,t){return No.register(t)},ya.alias=function(e,t){return No.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 Yk=jo;jo.displayName="jsx",jo.aliases=[];function jo(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 Jk=Ra(Yk),Kk=mn({tagName:"pkt-tag",elementClass:It,react:O,displayName:"PktTag",events:{onClose:"close"}}),Fr=O.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=O.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=O.useRef([]);O.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(O.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))})})}),Si=O.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:j,suffix:L,type:P="text",useWrapper:z=!0,omitSearchIcon:J=!1,value:R,onChange:q,...M},K)=>{const ne=[u,"pkt-textinput"].join(" "),ge=n||`${e}-label`,ee=P==="search"&&!b&&!J;O.useRef(null);const[le,fe]=O.useState(0),ae=ye=>{var st,Oe;if(i&&fe(((Oe=(st=ye.currentTarget)==null?void 0:st.value)==null?void 0:Oe.length)||0),q)return q(ye)};return g.jsx(gr,{ariaDescribedby:t,className:ne,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:z,counter:i,counterCurrent:le,counterMaxLength:o,children:g.jsxs("div",{className:"pkt-input__container",children:[j&&g.jsx("div",{className:"pkt-input-prefix",children:j}),g.jsx("input",{ref:K,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:R,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":ge,...M,onChange:ae}),L&&g.jsxs("p",{className:"pkt-input-suffix",children:[L,b&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:b}),ee&&g.jsx(ce,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!L&&b&&g.jsx(ce,{className:"pkt-input-icon",name:b}),!L&&ee&&g.jsx(ce,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Ei=({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}),Fi=({className:e,children:t})=>g.jsx("thead",{className:et(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Ai=({children:e,className:t})=>g.jsx("tbody",{className:et(t,"pkt-table__body",{}),role:"rowgroup",children:e}),tr=({className:e,children:t})=>g.jsx("tr",{className:et(e,"pkt-table__row",{}),role:"row",children:t}),Rt=({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(
|
|
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(Ei,{compact:!0,children:[g.jsx(Fi,{children:g.jsxs(tr,{children:[g.jsx(Rt,{children:"Event"}),g.jsx(Rt,{children:"Beskrivelse"}),g.jsx(Rt,{children:"Type"})]})}),g.jsx(Ai,{children:Object.entries(e.events||{}).map(([r,i])=>g.jsxs(tr,{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(Ei,{compact:!0,children:[g.jsx(Fi,{children:g.jsxs(tr,{children:[g.jsx(Rt,{children:"Slot"}),g.jsx(Rt,{children:"Beskrivelse"})]})}),g.jsx(Ai,{children:Object.entries(e.slots||{}).map(([r,i])=>g.jsxs(tr,{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))})]})]})]})},Po=O.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})})}),Zk=[{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"}],ld=({propKey:e,spec:t,props:n,handleChange:r})=>{const i={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},o=(u,c)=>{r(e,{...n[e],[u]:c})};if(t.type===i.BOOLEAN)return g.jsx(gr,{label:t.name||e,forId:e,helptext:t.description||null,hasFieldset:!0,requiredTag:t.required,children:g.jsx(ri,{id:e,label:e,type:"checkbox",checked:n[e],onChange:u=>r(e,u.target.checked,t.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(t.type===i.ICON)return g.jsxs(Po,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:u=>r(e,u.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),Zk.map(u=>g.jsx("option",{value:u.id,children:u.id},u.id))]});if(t.type===i.DATE)return g.jsx(_u,{id:e,label:t.name||e,helptext:t.description||null,value:n[e],multiple:t.variant==="multiple",maxlength:999,onChange:u=>r(e,u.target.value),requiredTag:t.required});if(Array.isArray(t)||Array.isArray(t.type)||Array.isArray(t.values)){const u=Array.isArray(t)?t:t.values||t.type;return g.jsxs(Po,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:c=>r(e,c.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),u.map(c=>g.jsx("option",{value:c,children:c},c))]})}return t.type===i.NUMBER?g.jsx(Si,{id:e,label:t.name||e,helptext:t.description||null,type:"number",value:n[e],onChange:u=>r(e,parseFloat(u.currentTarget.value)),requiredTag:t.required}):t.type===i.OBJECT?(n[e]||(n[e]={}),g.jsxs("fieldset",{children:[g.jsx("legend",{children:t.name||e}),t.description&&g.jsx("p",{children:t.description}),Object.entries(t.properties).map(([u,c])=>g.jsx(ld,{propKey:u,props:n[e],spec:c,handleChange:(d,h)=>o(d,h)},u))]})):g.jsx(Si,{id:e,label:t.name||e,helptext:t.description||null,type:"text",value:n[e],onChange:u=>r(e,t.type==="number"?parseFloat(u.currentTarget.value):u.currentTarget.value),requiredTag:t.required})};ya.registerLanguage("jsx",Jk);const ud=({specs:e,children:t,fullWidth:n})=>{var z,J;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((R,[q,M])=>(typeof M=="object"&&!Array.isArray(M)&&M.default!==void 0&&M.default!==null&&(M.default==="false"&&(M.default=!1),M.default==="true"&&(M.default=!0),R[q]=M.default),R),{}):{},[i,o]=O.useState(r),[u,c]=O.useState("light"),[d,h]=O.useState(""),[m,v]=O.useState(""),[y,b]=O.useState(""),[k,x]=O.useState("Rediger innhold"),[C,T]=O.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=R=>{R===1&&_(),R===2&&A(),b(""),T(q=>q.map((M,K)=>({...M,active:K===R})))},S=O.useRef(null),A=async()=>{if(e.isElement&&O.isValidElement(L))_().then(()=>{const R=O.isValidElement(L)?L.type.displayName||L.type.name:e.name;h(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
708
|
+
*/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 j in S)S.hasOwnProperty(j)&&(_[j]=F(S[j],A));return _;case"Array":return $=c.util.objId(S),A[$]?A[$]:(_=[],A[$]=_,S.forEach(function(L,P){_[P]=F(L,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],j={};for(var L in $)if($.hasOwnProperty(L)){if(L==S)for(var P in A)A.hasOwnProperty(P)&&(j[P]=A[P]);A.hasOwnProperty(L)||(j[L]=$[L])}var W=_[F];return _[F]=j,c.languages.DFS(c.languages,function(J,R){R===W&&J!=F&&(this[J]=j)}),j},DFS:function F(S,A,_,$){$=$||{};var j=c.util.objId;for(var L in S)if(S.hasOwnProperty(L)){A.call(S,L,S[L],_||L);var P=S[L],W=c.util.type(P);W==="Object"&&!$[j(P)]?($[j(P)]=!0,F(P,A,null,$)):W==="Array"&&!$[j(P)]&&($[j(P)]=!0,F(P,A,L,$))}}},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,j;j=_.elements[$++];)c.highlightElement(j,S===!0,_.callback)},highlightElement:function(F,S,A){var _=c.util.getLanguage(F),$=c.languages[_];c.util.setLanguage(F,_);var j=F.parentElement;j&&j.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(j,_);var L=F.textContent,P={element:F,language:_,grammar:$,code:L};function W(R){P.highlightedCode=R,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),j=P.element.parentElement,j&&j.nodeName.toLowerCase()==="pre"&&!j.hasAttribute("tabindex")&&j.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(R){W(R.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},j=S.alias;j&&(Array.isArray(j)?Array.prototype.push.apply($.classes,j):$.classes.push(j)),c.hooks.run("wrap",$);var L="";for(var P in $.attributes)L+=" "+P+'="'+($.attributes[P]||"").replace(/"/g,""")+'"';return"<"+$.tag+' class="'+$.classes.join(" ")+'"'+L+">"+$.content+"</"+$.tag+">"};function h(F,S,A,_){F.lastIndex=S;var $=F.exec(A);if($&&_&&$[1]){var j=$[1].length;$.index+=j,$[0]=$[0].slice(j)}return $}function m(F,S,A,_,$,j){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var P=A[L];P=Array.isArray(P)?P:[P];for(var W=0;W<P.length;++W){if(j&&j.cause==L+","+W)return;var J=P[W],R=J.inside,q=!!J.lookbehind,M=!!J.greedy,K=J.alias;if(M&&!J.pattern.global){var ne=J.pattern.toString().match(/[imsuy]*$/)[0];J.pattern=RegExp(J.pattern.source,ne+"g")}for(var ge=J.pattern||J,ee=_.next,le=$;ee!==S.tail&&!(j&&le>=j.reach);le+=ee.value.length,ee=ee.next){var fe=ee.value;if(S.length>F.length)return;if(!(fe instanceof d)){var ae=1,ye;if(M){if(ye=h(ge,le,F,q),!ye||ye.index>=F.length)break;var Me=ye.index,ot=ye.index+ye[0].length,Oe=le;for(Oe+=ee.value.length;Me>=Oe;)ee=ee.next,Oe+=ee.value.length;if(Oe-=ee.value.length,le=Oe,ee.value instanceof d)continue;for(var Fe=ee;Fe!==S.tail&&(Oe<ot||typeof Fe.value=="string");Fe=Fe.next)ae++,Oe+=Fe.value.length;ae--,fe=F.slice(le,Oe),ye.index-=le}else if(ye=h(ge,0,fe,q),!ye)continue;var Me=ye.index,ue=ye[0],Dt=fe.slice(0,Me),jt=fe.slice(Me+ue.length),St=le+fe.length;j&&St>j.reach&&(j.reach=St);var Et=ee.prev;Dt&&(Et=y(S,Et,Dt),le+=Dt.length),b(S,Et,ae);var An=new d(L,R?c.tokenize(ue,R):ue,K,ue);if(ee=y(S,Et,An),jt&&y(S,ee,jt),ae>1){var Ft={cause:L+","+W,reach:St};m(F,S,A,ee.prev,le,Ft),j&&Ft.reach>j.reach&&(j.reach=Ft.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 B=document.readyState;B==="loading"||B==="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 vn<"u"&&(vn.Prism=n)})(id);var Tk=id.exports,Bk=$o;$o.displayName="markup",$o.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function $o(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 Nk=To;To.displayName="css",To.aliases=[];function To(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 jk=Bo;Bo.displayName="clike",Bo.aliases=[];function Bo(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 Pk=No;No.displayName="javascript",No.aliases=["js"];function No(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 ya=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof vn=="object"?vn:{},Lk=Zk();ya.Prism={manual:!0,disableWorkerMessageHandler:!0};var Ok=Kb,Mk=fk,sd=Tk,Ik=Bk,Rk=Nk,qk=jk,Hk=Pk;Lk();var jo={}.hasOwnProperty;function od(){}od.prototype=sd;var ze=new od,Uk=ze;ze.highlight=Wk,ze.register=Da,ze.alias=zk,ze.registered=Vk,ze.listLanguages=Gk,Da(Ik),Da(Rk),Da(qk),Da(Hk),ze.util.encode=Kk,ze.Token.stringify=Yk;function Da(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 zk(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 Wk(e,t){var n=sd.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(jo.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 Vk(e){if(typeof e!="string")throw new Error("Expected `string` for `language`, got `"+e+"`");return jo.call(ze.languages,e)}function Gk(){var e=ze.languages,t=[],n;for(n in e)jo.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function Yk(e,t,n){var r;return typeof e=="string"?{type:"text",value:e}:ze.util.type(e)==="Array"?Jk(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),Ok(r.tag+"."+r.classes.join("."),Xk(r.attributes),r.content))}function Jk(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 Kk(e){return e}function Xk(e){var t;for(t in e)e[t]=Mk(e[t]);return e}function Zk(){var e="Prism"in ya,t=e?ya.Prism:void 0;return n;function n(){e?ya.Prism=t:delete ya.Prism,e=void 0,t=void 0}}const Po=Ha(Uk);var ba=B0(Po,{});ba.registerLanguage=function(e,t){return Po.register(t)},ba.alias=function(e,t){return Po.alias(e,t)};const ld={'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 Qk=Lo;Lo.displayName="jsx",Lo.aliases=[];function Lo(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 e1=Ha(Qk),t1=Kt({tagName:"pkt-tag",elementClass:It,react:O,displayName:"PktTag",events:{onClose:"close"}}),$r=O.forwardRef(({children:e,...t},n)=>g.jsx(t1,{ref:n,...t,children:g.jsx("div",{className:"pkt-contents",children:e})}));$r.displayName="PktTag";const ud=O.forwardRef(({arrowNav:e=!0,tabs:t,onTabSelected:n},r)=>{const i=O.useRef([]);O.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(O.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(de,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx($r,{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(de,{name:c.icon,className:"pkt-icon--small"}),c.text,c.tag&&g.jsx($r,{skin:c.tag.skin,size:"small",children:c.tag.text})]},"b-"+d)},d))})})}),Fi=O.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:B,optionalTag:F=!1,optionalText:S,requiredTag:A=!1,requiredText:_,placeholder:$,prefix:j,suffix:L,type:P="text",useWrapper:W=!0,omitSearchIcon:J=!1,value:R,onChange:q,...M},K)=>{const ne=[u,"pkt-textinput"].join(" "),ge=n||`${e}-label`,ee=P==="search"&&!b&&!J;O.useRef(null);const[le,fe]=O.useState(0),ae=ye=>{var ot,Oe;if(i&&fe(((Oe=(ot=ye.currentTarget)==null?void 0:ot.value)==null?void 0:Oe.length)||0),q)return q(ye)};return g.jsx(yr,{ariaDescribedby:t,className:ne,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:[j&&g.jsx("div",{className:"pkt-input-prefix",children:j}),g.jsx("input",{ref:K,className:`pkt-input ${x?"pkt-input--fullwidth":""} ${o&&le>o?"pkt-input--counter-error":""}`,type:P,name:B||e,id:e,placeholder:$,autoComplete:r,value:R,disabled:c,"aria-invalid":h,"aria-errormessage":`${e}-error`,"aria-labelledby":ge,...M,onChange:ae}),L&&g.jsxs("p",{className:"pkt-input-suffix",children:[L,b&&g.jsx(de,{className:"pkt-input-suffix-icon",name:b}),ee&&g.jsx(de,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!L&&b&&g.jsx(de,{className:"pkt-input-icon",name:b}),!L&&ee&&g.jsx(de,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})}),Ai=({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}),$i=({className:e,children:t})=>g.jsx("thead",{className:et(e,"pkt-table__header",{}),role:"rowgroup",children:t}),Ti=({children:e,className:t})=>g.jsx("tbody",{className:et(t,"pkt-table__body",{}),role:"rowgroup",children:e}),rr=({className:e,children:t})=>g.jsx("tr",{className:et(e,"pkt-table__row",{}),role:"row",children:t}),Rt=({className:e,children:t})=>g.jsx("th",{className:et(e,"pkt-table__header-cell",{}),role:"columnheader",children:t}),xt=({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}),n1=({specs:e})=>{const t=r=>Array.isArray(r)?r.join(`
|
|
709
|
+
`):r,n=r=>typeof r=="boolean"?r?"true":"false":r;return g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Egenskaper"}),g.jsxs(Ai,{compact:!0,children:[g.jsx($i,{children:g.jsxs(rr,{children:[g.jsx(Rt,{children:"Navn"}),g.jsx(Rt,{children:"Prop"}),g.jsx(Rt,{children:"Beskrivelse"}),g.jsx(Rt,{children:"Type"}),g.jsx(Rt,{children:"Standardverdi"})]})}),g.jsx(Ti,{children:Object.entries(e.props||{}).map(([r,i])=>g.jsxs(rr,{children:[g.jsx(xt,{dataLabel:"Prop",children:g.jsx("pre",{children:r})}),g.jsx(xt,{dataLabel:"Navn",children:!Array.isArray(i)&&i.name||r}),Array.isArray(i)?g.jsxs(g.Fragment,{children:[g.jsx(xt,{dataLabel:"Beskrivelse"}),g.jsx(xt,{dataLabel:"Type",children:g.jsx("pre",{children:i.join(`
|
|
710
|
+
`)})})]}):g.jsxs(g.Fragment,{children:[g.jsx(xt,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(xt,{dataLabel:"Type",children:g.jsx("pre",{children:i.type&&t(i.type)})}),g.jsx(xt,{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(Ai,{compact:!0,children:[g.jsx($i,{children:g.jsxs(rr,{children:[g.jsx(Rt,{children:"Event"}),g.jsx(Rt,{children:"Beskrivelse"}),g.jsx(Rt,{children:"Type"})]})}),g.jsx(Ti,{children:Object.entries(e.events||{}).map(([r,i])=>g.jsxs(rr,{children:[g.jsx(xt,{dataLabel:"Event",children:g.jsx("pre",{children:r})}),g.jsx(xt,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})}),g.jsx(xt,{dataLabel:"Type",children:i.type})]},r))})]})]}),e.slots&&g.jsxs(g.Fragment,{children:[g.jsx("h2",{children:"Innhold"}),g.jsxs(Ai,{compact:!0,children:[g.jsx($i,{children:g.jsxs(rr,{children:[g.jsx(Rt,{children:"Slot"}),g.jsx(Rt,{children:"Beskrivelse"})]})}),g.jsx(Ti,{children:Object.entries(e.slots||{}).map(([r,i])=>g.jsxs(rr,{children:[g.jsx(xt,{dataLabel:"Slot",children:g.jsx("pre",{children:r})}),g.jsx(xt,{dataLabel:"Beskrivelse",children:g.jsx("span",{dangerouslySetInnerHTML:{__html:i.description||""}})})]},r))})]})]})]})},Oo=O.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:B=!1,requiredText:F,...S},A)=>{const _=[r,"pkt-select"].join(" ");return g.jsx(yr,{className:_,forId:m,label:b,helptext:c,helptextDropdown:d,helptextDropdownButton:h,optionalTag:x,optionalText:C,requiredTag:B,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})})}),r1=[{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"}],cd=({propKey:e,spec:t,props:n,handleChange:r})=>{const i={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},o=(u,c)=>{r(e,{...n[e],[u]:c})};if(t.type===i.BOOLEAN)return g.jsx(yr,{label:t.name||e,forId:e,helptext:t.description||null,hasFieldset:!0,requiredTag:t.required,children:g.jsx(ii,{id:e,label:e,type:"checkbox",checked:n[e],onChange:u=>r(e,u.target.checked,t.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(t.type===i.ICON)return g.jsxs(Oo,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:u=>r(e,u.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),r1.map(u=>g.jsx("option",{value:u.id,children:u.id},u.id))]});if(t.type===i.DATE)return g.jsx(Su,{id:e,label:t.name||e,helptext:t.description||null,value:n[e],multiple:t.variant==="multiple",maxlength:999,onChange:u=>r(e,u.target.value),requiredTag:t.required});if(Array.isArray(t)||Array.isArray(t.type)||Array.isArray(t.values)){const u=Array.isArray(t)?t:t.values||t.type;return g.jsxs(Oo,{label:t.name||e,helptext:t.description||null,id:e,value:n[e],onChange:c=>r(e,c.target.value),requiredTag:t.required,children:[g.jsx("option",{value:""}),u.map(c=>g.jsx("option",{value:c,children:c},c))]})}return t.type===i.NUMBER?g.jsx(Fi,{id:e,label:t.name||e,helptext:t.description||null,type:"number",value:n[e],onChange:u=>r(e,parseFloat(u.currentTarget.value)),requiredTag:t.required}):t.type===i.OBJECT?(n[e]||(n[e]={}),g.jsxs("fieldset",{children:[g.jsx("legend",{children:t.name||e}),t.description&&g.jsx("p",{children:t.description}),Object.entries(t.properties).map(([u,c])=>g.jsx(cd,{propKey:u,props:n[e],spec:c,handleChange:(d,h)=>o(d,h)},u))]})):g.jsx(Fi,{id:e,label:t.name||e,helptext:t.description||null,type:"text",value:n[e],onChange:u=>r(e,t.type==="number"?parseFloat(u.currentTarget.value):u.currentTarget.value),requiredTag:t.required})};ba.registerLanguage("jsx",e1);const pd=({specs:e,children:t,fullWidth:n})=>{var W,J;const r=e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).reduce((R,[q,M])=>(typeof M=="object"&&!Array.isArray(M)&&M.default!==void 0&&M.default!==null&&(M.default==="false"&&(M.default=!1),M.default==="true"&&(M.default=!0),R[q]=M.default),R),{}):{},[i,o]=O.useState(r),[u,c]=O.useState("light"),[d,h]=O.useState(""),[m,v]=O.useState(""),[y,b]=O.useState(""),[k,x]=O.useState("Rediger innhold"),[C,B]=O.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=R=>{R===1&&_(),R===2&&A(),b(""),B(q=>q.map((M,K)=>({...M,active:K===R})))},S=O.useRef(null),A=async()=>{if(e.isElement&&O.isValidElement(L))_().then(()=>{const R=O.isValidElement(L)?L.type.displayName||L.type.name:e.name;h(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
699
711
|
`+m.replaceAll(R,e.name||"").replaceAll("={","='").replaceAll(`}
|
|
700
712
|
`,`'
|
|
701
|
-
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const R=await co(S.current.innerHTML,{parser:"html",plugins:[a0]});h(R.replace(/<\!--.*?-->/g,""))}},_=async()=>{const R=await Hv(L);return v(R),Promise.resolve()},$=(R,q)=>{navigator.clipboard.writeText(q).then(()=>{b(R),console.log("Copied to clipboard",R)})},j=(R,q)=>g.jsxs("div",{className:"pkt-preview__copy",children:[y===R&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(zn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(R,q),children:"Kopier kode"})]}),L=O.isValidElement(t)&&O.cloneElement(t,{...i},t.props.children?t.props.children:(z=e.slots)!=null&&z.default?k:null),P=(R,q,M=!1)=>{if(!M&&(!q||q=="false")){const{[R]:K,...ne}=i;o(ne)}else o(K=>({...K,[R]:q}))};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:R=>c(R.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:L})})]}),g.jsx(od,{tabs:C,onTabSelected:F}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((J=e.slots)==null?void 0:J.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(Si,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:R=>x(R.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([R,q])=>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:R}),g.jsx(ld,{propKey:R,props:i,spec:q,handleChange:P})]},R)):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}),j("jsx",m)]}),g.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[g.jsx(ya,{language:"html",style:sd,children:d}),j("html",d)]}),g.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:g.jsx(Xk,{specs:e})})]})};ud.displayName="PktPreview";for(var nt=[],Lo=0;Lo<256;++Lo)nt.push((Lo+256).toString(16).slice(1));function Qk(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 $i,e1=new Uint8Array(16);function t1(){if(!$i&&($i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $i(e1)}var n1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const cd={randomUUID:n1};function r1(e,t,n){if(cd.randomUUID&&!t&&!e)return cd.randomUUID();e=e||{};var r=e.random||(e.rng||t1)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Qk(r)}const pd=O.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=O.useRef(null),[T,F]=O.useState(0),[S,A]=O.useState(d);O.useEffect(()=>{d||A(r1())},[d]),O.useEffect(()=>{if(C.current){const M=C.current;F(M.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,j=n!==100||t!==0?Math.round($):e,L=`${e} av ${n}`,P=u!=="none",z=et("pkt-progressbar__bar",{[`pkt-progressbar__bar--${r}`]:r}),J=et("pkt-progressbar__title",{"pkt-progressbar__title-center":o==="center"}),R=et("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),q=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":`${j}%`},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:z})}),P&&g.jsx("div",{className:R,children:g.jsx("span",{className:q,ref:C,children:u==="percentage"?`${j}%`:L})})]})});pd.displayName="PktProgressbar";const dd=O.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})]})]})})});dd.displayName="PktRadioButton";const a1=O.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(zn,{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:O.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-${$}`))})]}))}),i1=O.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=O.Children.map(n,(m,v)=>O.isValidElement(m)?O.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})}),s1=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)"}})}),o1=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"})]}),l1=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"})]}),u1=({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"?o1:n==="completed"?l1:s1}),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})]})]}),c1=O.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:j,...L},P)=>{const z=[o,"pkt-textinput","pkt-textarea"].join(" "),J=n||`${e}-label`,R=O.useRef(null),[q,M]=O.useState(0),K=ne=>{var ge,ee;if(r&&M(((ee=(ge=ne.currentTarget)==null?void 0:ge.value)==null?void 0:ee.length)||0),j)return j(ne)};return O.useEffect(()=>{var ne,ge;typeof P=="function"&&P(R.current),r&&M(((ge=(ne=R==null?void 0:R.current)==null?void 0:ne.value)==null?void 0:ge.length)||0)},[P]),g.jsx(gr,{ariaDescribedby:t,className:z,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:q,counterMaxLength:i,children:g.jsx("textarea",{ref:R,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&q>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`,...L,onChange:K})})});Q.PktAccordion=$h,Q.PktAccordionItem=Hg,Q.PktAlert=As,Q.PktBackLink=wu,Q.PktBreadcrumbs=zg,Q.PktButton=zn,Q.PktCard=Cu,Q.PktCheckbox=ri,Q.PktDatepicker=_u,Q.PktFooter=Vg,Q.PktFooterSimple=Gg,Q.PktHeader=Yg,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=ud,Q.PktProgressbar=pd,Q.PktRadioButton=dd,Q.PktSearchInput=a1,Q.PktSelect=Po,Q.PktStep=u1,Q.PktStepper=i1,Q.PktTable=Ei,Q.PktTableBody=Ai,Q.PktTableDataCell=_t,Q.PktTableHeader=Fi,Q.PktTableHeaderCell=Rt,Q.PktTableRow=tr,Q.PktTabs=od,Q.PktTag=Fr,Q.PktTextarea=c1,Q.PktTextinput=Si,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
|
713
|
+
`).replaceAll(/([a-zA-Z0-9]+)(:)/g,'"$1"$2').replaceAll('"https"',"https").replaceAll("className","class"))});else{const R=await ho(S.current.innerHTML,{parser:"html",plugins:[u0]});h(R.replace(/<\!--.*?-->/g,""))}},_=async()=>{const R=await Gv(L);return v(R),Promise.resolve()},$=(R,q)=>{navigator.clipboard.writeText(q).then(()=>{b(R),console.log("Copied to clipboard",R)})},j=(R,q)=>g.jsxs("div",{className:"pkt-preview__copy",children:[y===R&&g.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),g.jsx(Vn,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>$(R,q),children:"Kopier kode"})]}),L=O.isValidElement(t)&&O.cloneElement(t,{...i},t.props.children?t.props.children:(W=e.slots)!=null&&W.default?k:null),P=(R,q,M=!1)=>{if(!M&&(!q||q=="false")){const{[R]:K,...ne}=i;o(ne)}else o(K=>({...K,[R]:q}))};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(ii,{id:"mode",label:"Dark mode",type:"checkbox",checked:u==="dark",onChange:R=>c(R.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:L})})]}),g.jsx(ud,{tabs:C,onTabSelected:F}),g.jsxs("div",{className:`pkt-grid pkt-preview__opts ${C[0].active?"":"pkt-hide"}`,children:[((J=e.slots)==null?void 0:J.default)&&!t.props.children&&g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx($r,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),g.jsx(Fi,{id:"slot",label:"Slot",helptext:e.slots.default.description||"Innholdet i slot",type:"text",value:k,onChange:R=>x(R.currentTarget.value)})]}),e.props&&typeof e.props=="object"&&!Array.isArray(e.props)?Object.entries(e.props).map(([R,q])=>g.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[g.jsx($r,{size:"small",skin:"blue-light",textStyle:"thin-text",children:R}),g.jsx(cd,{propKey:R,props:i,spec:q,handleChange:P})]},R)):g.jsx("p",{children:"OBS! Specs mangler props!"})]}),g.jsxs("div",{className:`pkt-preview__code ${C[1].active?"":"pkt-hide"}`,children:[g.jsx(ba,{language:"jsx",style:ld,children:m}),j("jsx",m)]}),g.jsxs("div",{className:`pkt-preview__code ${C[2].active?"":"pkt-hide"}`,children:[g.jsx(ba,{language:"html",style:ld,children:d}),j("html",d)]}),g.jsx("div",{className:`pkt-preview__specs ${C[3].active?"":"pkt-hide"}`,children:g.jsx(n1,{specs:e})})]})};pd.displayName="PktPreview";for(var nt=[],Mo=0;Mo<256;++Mo)nt.push((Mo+256).toString(16).slice(1));function a1(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 Bi,i1=new Uint8Array(16);function s1(){if(!Bi&&(Bi=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bi(i1)}var o1=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const dd={randomUUID:o1};function l1(e,t,n){if(dd.randomUUID&&!t&&!e)return dd.randomUUID();e=e||{};var r=e.random||(e.rng||s1)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,a1(r)}const hd=O.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=O.useRef(null),[B,F]=O.useState(0),[S,A]=O.useState(d);O.useEffect(()=>{d||A(l1())},[d]),O.useEffect(()=>{if(C.current){const M=C.current;F(M.getBoundingClientRect().width)}});const _=n-t,$=e/_*100,j=n!==100||t!==0?Math.round($):e,L=`${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"}),R=et("pkt-progressbar__status",{"pkt-progressbar__status--center":c==="center"}),q=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":`${B}px`,"--pkt-progress-width":`${j}%`},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:R,children:g.jsx("span",{className:q,ref:C,children:u==="percentage"?`${j}%`:L})})]})});hd.displayName="PktProgressbar";const fd=O.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})]})]})})});fd.displayName="PktRadioButton";const u1=O.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($)},B=_=>{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||B,...k}),g.jsx(Vn,{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:O.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-${$}`))})]}))}),c1=O.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=O.Children.map(n,(m,v)=>O.isValidElement(m)?O.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})}),p1=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)"}})}),d1=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"})]}),h1=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"})]}),f1=({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"?d1:n==="completed"?h1:p1}),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})]})]}),m1=O.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:B,requiredTag:F=!1,requiredText:S,placeholder:A,rows:_,useWrapper:$=!0,onChange:j,...L},P)=>{const W=[o,"pkt-textinput","pkt-textarea"].join(" "),J=n||`${e}-label`,R=O.useRef(null),[q,M]=O.useState(0),K=ne=>{var ge,ee;if(r&&M(((ee=(ge=ne.currentTarget)==null?void 0:ge.value)==null?void 0:ee.length)||0),j)return j(ne)};return O.useEffect(()=>{var ne,ge;typeof P=="function"&&P(R.current),r&&M(((ge=(ne=R==null?void 0:R.current)==null?void 0:ne.value)==null?void 0:ge.length)||0)},[P]),g.jsx(yr,{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:B,requiredTag:F,requiredText:S,useWrapper:$,counter:r,counterCurrent:q,counterMaxLength:i,children:g.jsx("textarea",{ref:R,className:`pkt-input ${b?"pkt-input--fullwidth":""} ${i&&q>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`,...L,onChange:K})})});Q.PktAccordion=Bh,Q.PktAccordionItem=Vg,Q.PktAlert=Ts,Q.PktBackLink=_u,Q.PktBreadcrumbs=Yg,Q.PktButton=Vn,Q.PktCard=xu,Q.PktCheckbox=ii,Q.PktDatepicker=Su,Q.PktFooter=Kg,Q.PktFooterSimple=Xg,Q.PktHeader=Zg,Q.PktIcon=de,Q.PktInput=Eu,Q.PktInputWrapper=yr,Q.PktLink=Fu,Q.PktLinkCard=Au,Q.PktLoader=$u,Q.PktMessagebox=Tu,Q.PktModal=Bu,Q.PktPreview=pd,Q.PktProgressbar=hd,Q.PktRadioButton=fd,Q.PktSearchInput=u1,Q.PktSelect=Oo,Q.PktStep=f1,Q.PktStepper=c1,Q.PktTable=Ai,Q.PktTableBody=Ti,Q.PktTableDataCell=xt,Q.PktTableHeader=$i,Q.PktTableHeaderCell=Rt,Q.PktTableRow=rr,Q.PktTabs=ud,Q.PktTag=$r,Q.PktTextarea=m1,Q.PktTextinput=Fi,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|