@oslokommune/punkt-react 12.29.0 → 12.29.2
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 +18 -0
- package/dist/punkt-react.es.js +3428 -3416
- package/dist/punkt-react.umd.js +120 -119
- package/package.json +3 -3
package/dist/punkt-react.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
return [];
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
(function(Bt,je){typeof exports=="object"&&typeof module<"u"?je(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],je):(Bt=typeof globalThis<"u"?globalThis:Bt||self,je(Bt["punkt-react"]={},Bt.React,Bt.reactRouterDom))})(this,function(Bt,je,mp){"use strict";var
|
|
36
|
+
(function(Bt,je){typeof exports=="object"&&typeof module<"u"?je(exports,require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom"],je):(Bt=typeof globalThis<"u"?globalThis:Bt||self,je(Bt["punkt-react"]={},Bt.React,Bt.reactRouterDom))})(this,function(Bt,je,mp){"use strict";var Y7=Object.defineProperty;var G7=(Bt,je,mp)=>je in Bt?Y7(Bt,je,{enumerable:!0,configurable:!0,writable:!0,value:mp}):Bt[je]=mp;var Zm=(Bt,je,mp)=>G7(Bt,typeof je!="symbol"?je+"":je,mp);function GF(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(r,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}return r.default=n,Object.freeze(r)}function QF(n,r){for(var o=0;o<r.length;o++){const u=r[o];if(typeof u!="string"&&!Array.isArray(u)){for(const f in u)if(f!=="default"&&!(f in n)){const g=Object.getOwnPropertyDescriptor(u,f);g&&Object.defineProperty(n,f,g.get?g:{enumerable:!0,get:()=>u[f]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const KF=GF(je);var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pk={exports:{}},Xm={};/**
|
|
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 KD;function
|
|
44
|
+
*/var KD;function ZF(){if(KD)return Xm;KD=1;var n=je,r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,f=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function v(S,E,_){var $,N={},R=null,B=null;_!==void 0&&(R=""+_),E.key!==void 0&&(R=""+E.key),E.ref!==void 0&&(B=E.ref);for($ in E)u.call(E,$)&&!g.hasOwnProperty($)&&(N[$]=E[$]);if(S&&S.defaultProps)for($ in E=S.defaultProps,E)N[$]===void 0&&(N[$]=E[$]);return{$$typeof:r,type:S,key:R,ref:B,props:N,_owner:f.current}}return Xm.Fragment=o,Xm.jsx=v,Xm.jsxs=v,Xm}var Jm={};/**
|
|
45
45
|
* @license React
|
|
46
46
|
* react-jsx-runtime.development.js
|
|
47
47
|
*
|
|
@@ -49,7 +49,7 @@
|
|
|
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 ZD;function
|
|
52
|
+
*/var ZD;function XF(){return ZD||(ZD=1,process.env.NODE_ENV!=="production"&&function(){var n=je,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),S=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M=Symbol.iterator,V="@@iterator";function H(W){if(W===null||typeof W!="object")return null;var $e=M&&W[M]||W[V];return typeof $e=="function"?$e:null}var ge=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function K(W){{for(var $e=arguments.length,Me=new Array($e>1?$e-1:0),St=1;St<$e;St++)Me[St-1]=arguments[St];Y("error",W,Me)}}function Y(W,$e,Me){{var St=ge.ReactDebugCurrentFrame,an=St.getStackAddendum();an!==""&&($e+="%s",Me=Me.concat([an]));var Jt=Me.map(function($t){return String($t)});Jt.unshift("Warning: "+$e),Function.prototype.apply.call(console[W],console,Jt)}}var ne=!1,U=!1,ae=!1,oe=!1,Te=!1,ye;ye=Symbol.for("react.module.reference");function Ve(W){return!!(typeof W=="string"||typeof W=="function"||W===u||W===g||Te||W===f||W===_||W===$||oe||W===B||ne||U||ae||typeof W=="object"&&W!==null&&(W.$$typeof===R||W.$$typeof===N||W.$$typeof===v||W.$$typeof===S||W.$$typeof===E||W.$$typeof===ye||W.getModuleId!==void 0))}function rt(W,$e,Me){var St=W.displayName;if(St)return St;var an=$e.displayName||$e.name||"";return an!==""?Me+"("+an+")":Me}function Ye(W){return W.displayName||"Context"}function Fe(W){if(W==null)return null;if(typeof W.tag=="number"&&K("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 u:return"Fragment";case o:return"Portal";case g:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case $:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case S:var $e=W;return Ye($e)+".Consumer";case v:var Me=W;return Ye(Me._context)+".Provider";case E:return rt(W,W.render,"ForwardRef");case N:var St=W.displayName||null;return St!==null?St:Fe(W.type)||"Memo";case R:{var an=W,Jt=an._payload,$t=an._init;try{return Fe($t(Jt))}catch{return null}}}return null}var Pe=Object.assign,Ze=0,Ne,Be,ve,Re,xe,G,ce;function gt(){}gt.__reactDisabledLog=!0;function ut(){{if(Ze===0){Ne=console.log,Be=console.info,ve=console.warn,Re=console.error,xe=console.group,G=console.groupCollapsed,ce=console.groupEnd;var W={configurable:!0,enumerable:!0,value:gt,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}Ze++}}function ct(){{if(Ze--,Ze===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Pe({},W,{value:Ne}),info:Pe({},W,{value:Be}),warn:Pe({},W,{value:ve}),error:Pe({},W,{value:Re}),group:Pe({},W,{value:xe}),groupCollapsed:Pe({},W,{value:G}),groupEnd:Pe({},W,{value:ce})})}Ze<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var vt=ge.ReactCurrentDispatcher,it;function Rt(W,$e,Me){{if(it===void 0)try{throw Error()}catch(an){var St=an.stack.trim().match(/\n( *(at )?)/);it=St&&St[1]||""}return`
|
|
53
53
|
`+it+W}}var Lt=!1,sn;{var Fn=typeof WeakMap=="function"?WeakMap:Map;sn=new Fn}function br(W,$e){if(!W||Lt)return"";{var Me=sn.get(W);if(Me!==void 0)return Me}var St;Lt=!0;var an=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Jt;Jt=vt.current,vt.current=null,ut();try{if($e){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(Wr){St=Wr}Reflect.construct(W,[],$t)}else{try{$t.call()}catch(Wr){St=Wr}W.call($t.prototype)}}else{try{throw Error()}catch(Wr){St=Wr}W()}}catch(Wr){if(Wr&&St&&typeof Wr.stack=="string"){for(var Yt=Wr.stack.split(`
|
|
54
54
|
`),Fr=St.stack.split(`
|
|
55
55
|
`),Bn=Yt.length-1,jn=Fr.length-1;Bn>=1&&jn>=0&&Yt[Bn]!==Fr[jn];)jn--;for(;Bn>=1&&jn>=0;Bn--,jn--)if(Yt[Bn]!==Fr[jn]){if(Bn!==1||jn!==1)do if(Bn--,jn--,jn<0||Yt[Bn]!==Fr[jn]){var la=`
|
|
@@ -62,17 +62,17 @@ Check the top-level render call using <`+Me+">.")}return $e}}function Si(W,$e){{
|
|
|
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} />`,ya,en,Gt,en),ii[en+ya]=!0}}return W===u?ko(jn):mr(jn),jn}}function sa(W,$e,Me){return Qi(W,$e,Me,!0)}function oi(W,$e,Me){return Qi(W,$e,Me,!1)}var wo=oi,si=sa;Jm.Fragment=u,Jm.jsx=wo,Jm.jsxs=si}()),Jm}process.env.NODE_ENV==="production"?pk.exports=
|
|
65
|
+
<%s key={someKey} {...props} />`,ya,en,Gt,en),ii[en+ya]=!0}}return W===u?ko(jn):mr(jn),jn}}function sa(W,$e,Me){return Qi(W,$e,Me,!0)}function oi(W,$e,Me){return Qi(W,$e,Me,!1)}var wo=oi,si=sa;Jm.Fragment=u,Jm.jsx=wo,Jm.jsxs=si}()),Jm}process.env.NODE_ENV==="production"?pk.exports=ZF():pk.exports=XF();var O=pk.exports;const JF=je.forwardRef(({compact:n=!1,skin:r="borderless",className:o,children:u},f)=>{const g=[o,"pkt-accordion",n&&"pkt-accordion--compact",r&&`pkt-accordion--${r}`].filter(Boolean).join(" ");return O.jsx("div",{"data-testid":"pkt-accordion",className:g,ref:f,children:u})});/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2018 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
-
*/const
|
|
69
|
+
*/const e$=new Set(["children","localName","ref","style","className"]),XD=new WeakMap,JD=(n,r,o,u,f)=>{const g=f==null?void 0:f[r];g===void 0?(n[r]=o,o==null&&r in HTMLElement.prototype&&n.removeAttribute(r)):o!==u&&((v,S,E)=>{let _=XD.get(v);_===void 0&&XD.set(v,_=new Map);let $=_.get(S);E!==void 0?$===void 0?(_.set(S,$={handleEvent:E}),v.addEventListener(S,$)):$.handleEvent=E:$!==void 0&&(_.delete(S),v.removeEventListener(S,$))})(n,g,o)},Ra=({react:n,tagName:r,elementClass:o,events:u,displayName:f})=>{const g=new Set(Object.keys(u??{})),v=n.forwardRef((S,E)=>{const _=n.useRef(new Map),$=n.useRef(null),N={},R={};for(const[B,M]of Object.entries(S))e$.has(B)?N[B==="className"?"class":B]=M:g.has(B)||B in o.prototype?R[B]=M:N[B]=M;return n.useLayoutEffect(()=>{if($.current===null)return;const B=new Map;for(const M in R)JD($.current,M,S[M],_.current.get(M),u),_.current.delete(M),B.set(M,S[M]);for(const[M,V]of _.current)JD($.current,M,void 0,V,u);_.current=B}),n.useLayoutEffect(()=>{var B;(B=$.current)==null||B.removeAttribute("defer-hydration")},[]),N.suppressHydrationWarning=!0,n.createElement(r,{...N,ref:n.useCallback(B=>{$.current=B,typeof E=="function"?E(B):E!==null&&(E.current=B)},[E])})});return v.displayName=f??o.name,v};/**
|
|
70
70
|
* @license
|
|
71
71
|
* Copyright 2017 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
-
*/const by=globalThis,ky=by.trustedTypes,eS=ky?ky.createPolicy("lit-html",{createHTML:n=>n}):void 0,fk="$lit$",$u=`lit$${Math.random().toFixed(9).slice(2)}$`,hk="?"+$u,
|
|
73
|
+
*/const by=globalThis,ky=by.trustedTypes,eS=ky?ky.createPolicy("lit-html",{createHTML:n=>n}):void 0,fk="$lit$",$u=`lit$${Math.random().toFixed(9).slice(2)}$`,hk="?"+$u,t$=`<${hk}>`,gp=document,eg=()=>gp.createComment(""),tg=n=>n===null||typeof n!="object"&&typeof n!="function",mk=Array.isArray,tS=n=>mk(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gk=`[
|
|
74
74
|
\f\r]`,ng=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nS=/-->/g,rS=/>/g,vp=RegExp(`>|${gk}(?:([^\\s"'>=/]+)(${gk}*=${gk}*(?:[^
|
|
75
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),aS=/'/g,iS=/"/g,oS=/^(?:script|style|textarea|title)$/i,
|
|
75
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),aS=/'/g,iS=/"/g,oS=/^(?:script|style|textarea|title)$/i,n$=n=>(r,...o)=>({_$litType$:n,strings:r,values:o}),qe=n$(1),fo=Symbol.for("lit-noChange"),wt=Symbol.for("lit-nothing"),sS=new WeakMap,yp=gp.createTreeWalker(gp,129);function lS(n,r){if(!mk(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return eS!==void 0?eS.createHTML(r):r}const uS=(n,r)=>{const o=n.length-1,u=[];let f,g=r===2?"<svg>":r===3?"<math>":"",v=ng;for(let S=0;S<o;S++){const E=n[S];let _,$,N=-1,R=0;for(;R<E.length&&(v.lastIndex=R,$=v.exec(E),$!==null);)R=v.lastIndex,v===ng?$[1]==="!--"?v=nS:$[1]!==void 0?v=rS:$[2]!==void 0?(oS.test($[2])&&(f=RegExp("</"+$[2],"g")),v=vp):$[3]!==void 0&&(v=vp):v===vp?$[0]===">"?(v=f??ng,N=-1):$[1]===void 0?N=-2:(N=v.lastIndex-$[2].length,_=$[1],v=$[3]===void 0?vp:$[3]==='"'?iS:aS):v===iS||v===aS?v=vp:v===nS||v===rS?v=ng:(v=vp,f=void 0);const B=v===vp&&n[S+1].startsWith("/>")?" ":"";g+=v===ng?E+t$:N>=0?(u.push(_),E.slice(0,N)+fk+E.slice(N)+$u+B):E+$u+(N===-2?S:B)}return[lS(n,g+(n[o]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),u]};class rg{constructor({strings:r,_$litType$:o},u){let f;this.parts=[];let g=0,v=0;const S=r.length-1,E=this.parts,[_,$]=uS(r,o);if(this.el=rg.createElement(_,u),yp.currentNode=this.el.content,o===2||o===3){const N=this.el.content.firstChild;N.replaceWith(...N.childNodes)}for(;(f=yp.nextNode())!==null&&E.length<S;){if(f.nodeType===1){if(f.hasAttributes())for(const N of f.getAttributeNames())if(N.endsWith(fk)){const R=$[v++],B=f.getAttribute(N).split($u),M=/([.?@])?(.*)/.exec(R);E.push({type:1,index:g,name:M[2],strings:B,ctor:M[1]==="."?dS:M[1]==="?"?pS:M[1]==="@"?fS:ag}),f.removeAttribute(N)}else N.startsWith($u)&&(E.push({type:6,index:g}),f.removeAttribute(N));if(oS.test(f.tagName)){const N=f.textContent.split($u),R=N.length-1;if(R>0){f.textContent=ky?ky.emptyScript:"";for(let B=0;B<R;B++)f.append(N[B],eg()),yp.nextNode(),E.push({type:2,index:++g});f.append(N[R],eg())}}}else if(f.nodeType===8)if(f.data===hk)E.push({type:2,index:g});else{let N=-1;for(;(N=f.data.indexOf($u,N+1))!==-1;)E.push({type:7,index:g}),N+=$u.length-1}g++}}static createElement(r,o){const u=gp.createElement("template");return u.innerHTML=r,u}}function bp(n,r,o=n,u){var f,g;if(r===fo)return r;let v=u!==void 0?(f=o._$Co)==null?void 0:f[u]:o._$Cl;const S=tg(r)?void 0:r._$litDirective$;return(v==null?void 0:v.constructor)!==S&&((g=v==null?void 0:v._$AO)==null||g.call(v,!1),S===void 0?v=void 0:(v=new S(n),v._$AT(n,o,u)),u!==void 0?(o._$Co??(o._$Co=[]))[u]=v:o._$Cl=v),v!==void 0&&(r=bp(n,v._$AS(n,r.values),v,u)),r}class cS{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){const{el:{content:o},parts:u}=this._$AD,f=((r==null?void 0:r.creationScope)??gp).importNode(o,!0);yp.currentNode=f;let g=yp.nextNode(),v=0,S=0,E=u[0];for(;E!==void 0;){if(v===E.index){let _;E.type===2?_=new Zf(g,g.nextSibling,this,r):E.type===1?_=new E.ctor(g,E.name,E.strings,this,r):E.type===6&&(_=new hS(g,this,r)),this._$AV.push(_),E=u[++S]}v!==(E==null?void 0:E.index)&&(g=yp.nextNode(),v++)}return yp.currentNode=gp,f}p(r){let o=0;for(const u of this._$AV)u!==void 0&&(u.strings!==void 0?(u._$AI(r,u,o),o+=u.strings.length-2):u._$AI(r[o])),o++}}class Zf{get _$AU(){var r;return((r=this._$AM)==null?void 0:r._$AU)??this._$Cv}constructor(r,o,u,f){this.type=2,this._$AH=wt,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=u,this.options=f,this._$Cv=(f==null?void 0:f.isConnected)??!0}get parentNode(){let r=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=bp(this,r,o),tg(r)?r===wt||r==null||r===""?(this._$AH!==wt&&this._$AR(),this._$AH=wt):r!==this._$AH&&r!==fo&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):tS(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==wt&&tg(this._$AH)?this._$AA.nextSibling.data=r:this.T(gp.createTextNode(r)),this._$AH=r}$(r){var o;const{values:u,_$litType$:f}=r,g=typeof f=="number"?this._$AC(r):(f.el===void 0&&(f.el=rg.createElement(lS(f.h,f.h[0]),this.options)),f);if(((o=this._$AH)==null?void 0:o._$AD)===g)this._$AH.p(u);else{const v=new cS(g,this),S=v.u(this.options);v.p(u),this.T(S),this._$AH=v}}_$AC(r){let o=sS.get(r.strings);return o===void 0&&sS.set(r.strings,o=new rg(r)),o}k(r){mk(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let u,f=0;for(const g of r)f===o.length?o.push(u=new Zf(this.O(eg()),this.O(eg()),this,this.options)):u=o[f],u._$AI(g),f++;f<o.length&&(this._$AR(u&&u._$AB.nextSibling,f),o.length=f)}_$AR(r=this._$AA.nextSibling,o){var u;for((u=this._$AP)==null?void 0:u.call(this,!1,!0,o);r&&r!==this._$AB;){const f=r.nextSibling;r.remove(),r=f}}setConnected(r){var o;this._$AM===void 0&&(this._$Cv=r,(o=this._$AP)==null||o.call(this,r))}}class ag{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,u,f,g){this.type=1,this._$AH=wt,this._$AN=void 0,this.element=r,this.name=o,this._$AM=f,this.options=g,u.length>2||u[0]!==""||u[1]!==""?(this._$AH=Array(u.length-1).fill(new String),this.strings=u):this._$AH=wt}_$AI(r,o=this,u,f){const g=this.strings;let v=!1;if(g===void 0)r=bp(this,r,o,0),v=!tg(r)||r!==this._$AH&&r!==fo,v&&(this._$AH=r);else{const S=r;let E,_;for(r=g[0],E=0;E<g.length-1;E++)_=bp(this,S[u+E],o,E),_===fo&&(_=this._$AH[E]),v||(v=!tg(_)||_!==this._$AH[E]),_===wt?r=wt:r!==wt&&(r+=(_??"")+g[E+1]),this._$AH[E]=_}v&&!f&&this.j(r)}j(r){r===wt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}}class dS extends ag{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===wt?void 0:r}}class pS extends ag{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==wt)}}let fS=class extends ag{constructor(r,o,u,f,g){super(r,o,u,f,g),this.type=5}_$AI(r,o=this){if((r=bp(this,r,o,0)??wt)===fo)return;const u=this._$AH,f=r===wt&&u!==wt||r.capture!==u.capture||r.once!==u.once||r.passive!==u.passive,g=r!==wt&&(u===wt||f);f&&this.element.removeEventListener(this.name,this,u),g&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){var o;typeof this._$AH=="function"?this._$AH.call(((o=this.options)==null?void 0:o.host)??this.element,r):this._$AH.handleEvent(r)}};class hS{constructor(r,o,u){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=u}get _$AU(){return this._$AM._$AU}_$AI(r){bp(this,r)}}const r$={M:fk,P:$u,A:hk,C:1,L:uS,R:cS,D:tS,V:bp,I:Zf,H:ag,N:pS,U:fS,B:dS,F:hS},mS=by.litHtmlPolyfillSupport;mS==null||mS(rg,Zf),(by.litHtmlVersions??(by.litHtmlVersions=[])).push("3.2.1");const a$=(n,r,o)=>{const u=(o==null?void 0:o.renderBefore)??r;let f=u._$litPart$;if(f===void 0){const g=(o==null?void 0:o.renderBefore)??null;u._$litPart$=f=new Zf(r.insertBefore(eg(),g),g,void 0,o??{})}return f._$AI(n),f};/**
|
|
76
76
|
* @license
|
|
77
77
|
* Copyright 2017 Google LLC
|
|
78
78
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -84,19 +84,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
84
84
|
* @license
|
|
85
85
|
* Copyright 2019 Google LLC
|
|
86
86
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
87
|
-
*/const wy=globalThis,vk=wy.ShadowRoot&&(wy.ShadyCSS===void 0||wy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gS=Symbol(),vS=new WeakMap;let
|
|
87
|
+
*/const wy=globalThis,vk=wy.ShadowRoot&&(wy.ShadyCSS===void 0||wy.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gS=Symbol(),vS=new WeakMap;let i$=class{constructor(n,r,o){if(this._$cssResult$=!0,o!==gS)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=r}get styleSheet(){let n=this.o;const r=this.t;if(vk&&n===void 0){const o=r!==void 0&&r.length===1;o&&(n=vS.get(r)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),o&&vS.set(r,n))}return n}toString(){return this.cssText}};const o$=n=>new i$(typeof n=="string"?n:n+"",void 0,gS),s$=(n,r)=>{if(vk)n.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(const o of r){const u=document.createElement("style"),f=wy.litNonce;f!==void 0&&u.setAttribute("nonce",f),u.textContent=o.cssText,n.appendChild(u)}},yS=vk?n=>n:n=>n instanceof CSSStyleSheet?(r=>{let o="";for(const u of r.cssRules)o+=u.cssText;return o$(o)})(n):n;/**
|
|
88
88
|
* @license
|
|
89
89
|
* Copyright 2017 Google LLC
|
|
90
90
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
|
-
*/const{is:
|
|
91
|
+
*/const{is:l$,defineProperty:u$,getOwnPropertyDescriptor:c$,getOwnPropertyNames:d$,getOwnPropertySymbols:p$,getPrototypeOf:f$}=Object,Jf=globalThis,bS=Jf.trustedTypes,h$=bS?bS.emptyScript:"",kS=Jf.reactiveElementPolyfillSupport,ig=(n,r)=>n,Dy={toAttribute(n,r){switch(r){case Boolean:n=n?h$:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,r){let o=n;switch(r){case Boolean:o=n!==null;break;case Number:o=n===null?null:Number(n);break;case Object:case Array:try{o=JSON.parse(n)}catch{o=null}}return o}},yk=(n,r)=>!l$(n,r),wS={attribute:!0,type:String,converter:Dy,reflect:!1,hasChanged:yk};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Jf.litPropertyMetadata??(Jf.litPropertyMetadata=new WeakMap);class eh extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??(this.l=[])).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,o=wS){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(r,o),!o.noAccessor){const u=Symbol(),f=this.getPropertyDescriptor(r,u,o);f!==void 0&&u$(this.prototype,r,f)}}static getPropertyDescriptor(r,o,u){const{get:f,set:g}=c$(this.prototype,r)??{get(){return this[o]},set(v){this[o]=v}};return{get(){return f==null?void 0:f.call(this)},set(v){const S=f==null?void 0:f.call(this);g.call(this,v),this.requestUpdate(r,S,u)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??wS}static _$Ei(){if(this.hasOwnProperty(ig("elementProperties")))return;const r=f$(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(ig("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ig("properties"))){const o=this.properties,u=[...d$(o),...p$(o)];for(const f of u)this.createProperty(f,o[f])}const r=this[Symbol.metadata];if(r!==null){const o=litPropertyMetadata.get(r);if(o!==void 0)for(const[u,f]of o)this.elementProperties.set(u,f)}this._$Eh=new Map;for(const[o,u]of this.elementProperties){const f=this._$Eu(o,u);f!==void 0&&this._$Eh.set(f,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){const o=[];if(Array.isArray(r)){const u=new Set(r.flat(1/0).reverse());for(const f of u)o.unshift(yS(f))}else r!==void 0&&o.push(yS(r));return o}static _$Eu(r,o){const u=o.attribute;return u===!1?void 0:typeof u=="string"?u:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var r;this._$ES=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),(r=this.constructor.l)==null||r.forEach(o=>o(this))}addController(r){var o;(this._$EO??(this._$EO=new Set)).add(r),this.renderRoot!==void 0&&this.isConnected&&((o=r.hostConnected)==null||o.call(r))}removeController(r){var o;(o=this._$EO)==null||o.delete(r)}_$E_(){const r=new Map,o=this.constructor.elementProperties;for(const u of o.keys())this.hasOwnProperty(u)&&(r.set(u,this[u]),delete this[u]);r.size>0&&(this._$Ep=r)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s$(r,this.constructor.elementStyles),r}connectedCallback(){var r;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$EO)==null||r.forEach(o=>{var u;return(u=o.hostConnected)==null?void 0:u.call(o)})}enableUpdating(r){}disconnectedCallback(){var r;(r=this._$EO)==null||r.forEach(o=>{var u;return(u=o.hostDisconnected)==null?void 0:u.call(o)})}attributeChangedCallback(r,o,u){this._$AK(r,u)}_$EC(r,o){var u;const f=this.constructor.elementProperties.get(r),g=this.constructor._$Eu(r,f);if(g!==void 0&&f.reflect===!0){const v=(((u=f.converter)==null?void 0:u.toAttribute)!==void 0?f.converter:Dy).toAttribute(o,f.type);this._$Em=r,v==null?this.removeAttribute(g):this.setAttribute(g,v),this._$Em=null}}_$AK(r,o){var u;const f=this.constructor,g=f._$Eh.get(r);if(g!==void 0&&this._$Em!==g){const v=f.getPropertyOptions(g),S=typeof v.converter=="function"?{fromAttribute:v.converter}:((u=v.converter)==null?void 0:u.fromAttribute)!==void 0?v.converter:Dy;this._$Em=g,this[g]=S.fromAttribute(o,v.type),this._$Em=null}}requestUpdate(r,o,u){if(r!==void 0){if(u??(u=this.constructor.getPropertyOptions(r)),!(u.hasChanged??yk)(this[r],o))return;this.P(r,o,u)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(r,o,u){this._$AL.has(r)||this._$AL.set(r,o),u.reflect===!0&&this._$Em!==r&&(this._$Ej??(this._$Ej=new Set)).add(r)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}const r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[g,v]of this._$Ep)this[g]=v;this._$Ep=void 0}const f=this.constructor.elementProperties;if(f.size>0)for(const[g,v]of f)v.wrapped!==!0||this._$AL.has(g)||this[g]===void 0||this.P(g,this[g],v)}let o=!1;const u=this._$AL;try{o=this.shouldUpdate(u),o?(this.willUpdate(u),(r=this._$EO)==null||r.forEach(f=>{var g;return(g=f.hostUpdate)==null?void 0:g.call(f)}),this.update(u)):this._$EU()}catch(f){throw o=!1,this._$EU(),f}o&&this._$AE(u)}willUpdate(r){}_$AE(r){var o;(o=this._$EO)==null||o.forEach(u=>{var f;return(f=u.hostUpdated)==null?void 0:f.call(u)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Ej&&(this._$Ej=this._$Ej.forEach(o=>this._$EC(o,this[o]))),this._$EU()}updated(r){}firstUpdated(r){}}eh.elementStyles=[],eh.shadowRootOptions={mode:"open"},eh[ig("elementProperties")]=new Map,eh[ig("finalized")]=new Map,kS==null||kS({ReactiveElement:eh}),(Jf.reactiveElementVersions??(Jf.reactiveElementVersions=[])).push("2.0.4");/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2017 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const
|
|
95
|
+
*/const m$={attribute:!0,type:String,converter:Dy,reflect:!1,hasChanged:yk},g$=(n=m$,r,o)=>{const{kind:u,metadata:f}=o;let g=globalThis.litPropertyMetadata.get(f);if(g===void 0&&globalThis.litPropertyMetadata.set(f,g=new Map),g.set(o.name,n),u==="accessor"){const{name:v}=o;return{set(S){const E=r.get.call(this);r.set.call(this,S),this.requestUpdate(v,E,n)},init(S){return S!==void 0&&this.P(v,void 0,n),S}}}if(u==="setter"){const{name:v}=o;return function(S){const E=this[v];r.call(this,S),this.requestUpdate(v,E,n)}}throw Error("Unsupported decorator location: "+u)};function X(n){return(r,o)=>typeof o=="object"?g$(n,r,o):((u,f,g)=>{const v=f.hasOwnProperty(g);return f.constructor.createProperty(g,v?{...u,wrapped:!0}:u),v?Object.getOwnPropertyDescriptor(f,g):void 0})(n,r,o)}/**
|
|
96
96
|
* @license
|
|
97
97
|
* Copyright 2017 Google LLC
|
|
98
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
99
|
-
*/class og extends eh{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const o=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=o.firstChild),o}update(r){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=
|
|
99
|
+
*/class og extends eh{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const o=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=o.firstChild),o}update(r){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=a$(o,this.renderRoot,this.renderOptions)}connectedCallback(){var r;super.connectedCallback(),(r=this._$Do)==null||r.setConnected(!0)}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this._$Do)==null||r.setConnected(!1)}render(){return fo}}var DS;og._$litElement$=!0,og.finalized=!0,(DS=globalThis.litElementHydrateSupport)==null||DS.call(globalThis,{LitElement:og});const SS=globalThis.litElementPolyfillSupport;SS==null||SS({LitElement:og}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");var bk={exports:{}},ho={},kk={exports:{}},pn={};/**
|
|
100
100
|
* @license React
|
|
101
101
|
* react.production.min.js
|
|
102
102
|
*
|
|
@@ -104,7 +104,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the MIT license found in the
|
|
106
106
|
* LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/var CS;function
|
|
107
|
+
*/var CS;function v$(){if(CS)return pn;CS=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),N=Symbol.iterator;function R(G){return G===null||typeof G!="object"?null:(G=N&&G[N]||G["@@iterator"],typeof G=="function"?G:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,V={};function H(G,ce,gt){this.props=G,this.context=ce,this.refs=V,this.updater=gt||B}H.prototype.isReactComponent={},H.prototype.setState=function(G,ce){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,ce,"setState")},H.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function ge(){}ge.prototype=H.prototype;function K(G,ce,gt){this.props=G,this.context=ce,this.refs=V,this.updater=gt||B}var Y=K.prototype=new ge;Y.constructor=K,M(Y,H.prototype),Y.isPureReactComponent=!0;var ne=Array.isArray,U=Object.prototype.hasOwnProperty,ae={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function Te(G,ce,gt){var ut,ct={},vt=null,it=null;if(ce!=null)for(ut in ce.ref!==void 0&&(it=ce.ref),ce.key!==void 0&&(vt=""+ce.key),ce)U.call(ce,ut)&&!oe.hasOwnProperty(ut)&&(ct[ut]=ce[ut]);var Rt=arguments.length-2;if(Rt===1)ct.children=gt;else if(1<Rt){for(var Lt=Array(Rt),sn=0;sn<Rt;sn++)Lt[sn]=arguments[sn+2];ct.children=Lt}if(G&&G.defaultProps)for(ut in Rt=G.defaultProps,Rt)ct[ut]===void 0&&(ct[ut]=Rt[ut]);return{$$typeof:n,type:G,key:vt,ref:it,props:ct,_owner:ae.current}}function ye(G,ce){return{$$typeof:n,type:G.type,key:ce,ref:G.ref,props:G.props,_owner:G._owner}}function Ve(G){return typeof G=="object"&&G!==null&&G.$$typeof===n}function rt(G){var ce={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(gt){return ce[gt]})}var Ye=/\/+/g;function Fe(G,ce){return typeof G=="object"&&G!==null&&G.key!=null?rt(""+G.key):ce.toString(36)}function Pe(G,ce,gt,ut,ct){var vt=typeof G;(vt==="undefined"||vt==="boolean")&&(G=null);var it=!1;if(G===null)it=!0;else switch(vt){case"string":case"number":it=!0;break;case"object":switch(G.$$typeof){case n:case r:it=!0}}if(it)return it=G,ct=ct(it),G=ut===""?"."+Fe(it,0):ut,ne(ct)?(gt="",G!=null&&(gt=G.replace(Ye,"$&/")+"/"),Pe(ct,ce,gt,"",function(sn){return sn})):ct!=null&&(Ve(ct)&&(ct=ye(ct,gt+(!ct.key||it&&it.key===ct.key?"":(""+ct.key).replace(Ye,"$&/")+"/")+G)),ce.push(ct)),1;if(it=0,ut=ut===""?".":ut+":",ne(G))for(var Rt=0;Rt<G.length;Rt++){vt=G[Rt];var Lt=ut+Fe(vt,Rt);it+=Pe(vt,ce,gt,Lt,ct)}else if(Lt=R(G),typeof Lt=="function")for(G=Lt.call(G),Rt=0;!(vt=G.next()).done;)vt=vt.value,Lt=ut+Fe(vt,Rt++),it+=Pe(vt,ce,gt,Lt,ct);else if(vt==="object")throw ce=String(G),Error("Objects are not valid as a React child (found: "+(ce==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":ce)+"). If you meant to render a collection of children, use an array instead.");return it}function Ze(G,ce,gt){if(G==null)return G;var ut=[],ct=0;return Pe(G,ut,"","",function(vt){return ce.call(gt,vt,ct++)}),ut}function Ne(G){if(G._status===-1){var ce=G._result;ce=ce(),ce.then(function(gt){(G._status===0||G._status===-1)&&(G._status=1,G._result=gt)},function(gt){(G._status===0||G._status===-1)&&(G._status=2,G._result=gt)}),G._status===-1&&(G._status=0,G._result=ce)}if(G._status===1)return G._result.default;throw G._result}var Be={current:null},ve={transition:null},Re={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:ve,ReactCurrentOwner:ae};function xe(){throw Error("act(...) is not supported in production builds of React.")}return pn.Children={map:Ze,forEach:function(G,ce,gt){Ze(G,function(){ce.apply(this,arguments)},gt)},count:function(G){var ce=0;return Ze(G,function(){ce++}),ce},toArray:function(G){return Ze(G,function(ce){return ce})||[]},only:function(G){if(!Ve(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},pn.Component=H,pn.Fragment=o,pn.Profiler=f,pn.PureComponent=K,pn.StrictMode=u,pn.Suspense=E,pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,pn.act=xe,pn.cloneElement=function(G,ce,gt){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ut=M({},G.props),ct=G.key,vt=G.ref,it=G._owner;if(ce!=null){if(ce.ref!==void 0&&(vt=ce.ref,it=ae.current),ce.key!==void 0&&(ct=""+ce.key),G.type&&G.type.defaultProps)var Rt=G.type.defaultProps;for(Lt in ce)U.call(ce,Lt)&&!oe.hasOwnProperty(Lt)&&(ut[Lt]=ce[Lt]===void 0&&Rt!==void 0?Rt[Lt]:ce[Lt])}var Lt=arguments.length-2;if(Lt===1)ut.children=gt;else if(1<Lt){Rt=Array(Lt);for(var sn=0;sn<Lt;sn++)Rt[sn]=arguments[sn+2];ut.children=Rt}return{$$typeof:n,type:G.type,key:ct,ref:vt,props:ut,_owner:it}},pn.createContext=function(G){return G={$$typeof:v,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:g,_context:G},G.Consumer=G},pn.createElement=Te,pn.createFactory=function(G){var ce=Te.bind(null,G);return ce.type=G,ce},pn.createRef=function(){return{current:null}},pn.forwardRef=function(G){return{$$typeof:S,render:G}},pn.isValidElement=Ve,pn.lazy=function(G){return{$$typeof:$,_payload:{_status:-1,_result:G},_init:Ne}},pn.memo=function(G,ce){return{$$typeof:_,type:G,compare:ce===void 0?null:ce}},pn.startTransition=function(G){var ce=ve.transition;ve.transition={};try{G()}finally{ve.transition=ce}},pn.unstable_act=xe,pn.useCallback=function(G,ce){return Be.current.useCallback(G,ce)},pn.useContext=function(G){return Be.current.useContext(G)},pn.useDebugValue=function(){},pn.useDeferredValue=function(G){return Be.current.useDeferredValue(G)},pn.useEffect=function(G,ce){return Be.current.useEffect(G,ce)},pn.useId=function(){return Be.current.useId()},pn.useImperativeHandle=function(G,ce,gt){return Be.current.useImperativeHandle(G,ce,gt)},pn.useInsertionEffect=function(G,ce){return Be.current.useInsertionEffect(G,ce)},pn.useLayoutEffect=function(G,ce){return Be.current.useLayoutEffect(G,ce)},pn.useMemo=function(G,ce){return Be.current.useMemo(G,ce)},pn.useReducer=function(G,ce,gt){return Be.current.useReducer(G,ce,gt)},pn.useRef=function(G){return Be.current.useRef(G)},pn.useState=function(G){return Be.current.useState(G)},pn.useSyncExternalStore=function(G,ce,gt){return Be.current.useSyncExternalStore(G,ce,gt)},pn.useTransition=function(){return Be.current.useTransition()},pn.version="18.3.1",pn}var Sy={exports:{}};/**
|
|
108
108
|
* @license React
|
|
109
109
|
* react.development.js
|
|
110
110
|
*
|
|
@@ -112,7 +112,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the MIT license found in the
|
|
114
114
|
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/Sy.exports;var xS;function v$(){return xS||(xS=1,function(n,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var o="18.3.1",u=Symbol.for("react.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),H=Symbol.iterator,ge="@@iterator";function K(F){if(F===null||typeof F!="object")return null;var q=H&&F[H]||F[ge];return typeof q=="function"?q:null}var Y={current:null},ne={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ae={current:null},oe={},Te=null;function ye(F){Te=F}oe.setExtraStackFrame=function(F){Te=F},oe.getCurrentStack=null,oe.getStackAddendum=function(){var F="";Te&&(F+=Te);var q=oe.getCurrentStack;return q&&(F+=q()||""),F};var Ve=!1,rt=!1,Ye=!1,Fe=!1,Pe=!1,Ze={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:ne,ReactCurrentOwner:ae};Ze.ReactDebugCurrentFrame=oe,Ze.ReactCurrentActQueue=U;function Ne(F){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),we=1;we<q;we++)pe[we-1]=arguments[we];ve("warn",F,pe)}}function Be(F){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),we=1;we<q;we++)pe[we-1]=arguments[we];ve("error",F,pe)}}function ve(F,q,pe){{var we=Ze.ReactDebugCurrentFrame,He=we.getStackAddendum();He!==""&&(q+="%s",pe=pe.concat([He]));var Ot=pe.map(function(et){return String(et)});Ot.unshift("Warning: "+q),Function.prototype.apply.call(console[F],console,Ot)}}var Re={};function xe(F,q){{var pe=F.constructor,we=pe&&(pe.displayName||pe.name)||"ReactClass",He=we+"."+q;if(Re[He])return;Be("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",q,we),Re[He]=!0}}var G={isMounted:function(F){return!1},enqueueForceUpdate:function(F,q,pe){xe(F,"forceUpdate")},enqueueReplaceState:function(F,q,pe,we){xe(F,"replaceState")},enqueueSetState:function(F,q,pe,we){xe(F,"setState")}},ce=Object.assign,gt={};Object.freeze(gt);function ut(F,q,pe){this.props=F,this.context=q,this.refs=gt,this.updater=pe||G}ut.prototype.isReactComponent={},ut.prototype.setState=function(F,q){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,q,"setState")},ut.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};{var ct={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},vt=function(F,q){Object.defineProperty(ut.prototype,F,{get:function(){Ne("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var it in ct)ct.hasOwnProperty(it)&&vt(it,ct[it])}function Rt(){}Rt.prototype=ut.prototype;function Lt(F,q,pe){this.props=F,this.context=q,this.refs=gt,this.updater=pe||G}var sn=Lt.prototype=new Rt;sn.constructor=Lt,ce(sn,ut.prototype),sn.isPureReactComponent=!0;function Fn(){var F={current:null};return Object.seal(F),F}var br=Array.isArray;function nn(F){return br(F)}function ot(F){{var q=typeof Symbol=="function"&&Symbol.toStringTag,pe=q&&F[Symbol.toStringTag]||F.constructor.name||"Object";return pe}}function Ln(F){try{return Ut(F),!1}catch{return!0}}function Ut(F){return""+F}function Zt(F){if(Ln(F))return Be("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(F)),Ut(F)}function Xt(F,q,pe){var we=F.displayName;if(we)return we;var He=q.displayName||q.name||"";return He!==""?pe+"("+He+")":pe}function va(F){return F.displayName||"Context"}function Yn(F){if(F==null)return null;if(typeof F.tag=="number"&&Be("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case g:return"Fragment";case f:return"Portal";case S:return"Profiler";case v:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case _:var q=F;return va(q)+".Consumer";case E:var pe=F;return va(pe._context)+".Provider";case $:return Xt(F,F.render,"ForwardRef");case B:var we=F.displayName||null;return we!==null?we:Yn(F.type)||"Memo";case M:{var He=F,Ot=He._payload,et=He._init;try{return Yn(et(Ot))}catch{return null}}}return null}var Cr=Object.prototype.hasOwnProperty,ar={key:!0,ref:!0,__self:!0,__source:!0},qr,be,Z;Z={};function fe(F){if(Cr.call(F,"ref")){var q=Object.getOwnPropertyDescriptor(F,"ref").get;if(q&&q.isReactWarning)return!1}return F.ref!==void 0}function Ee(F){if(Cr.call(F,"key")){var q=Object.getOwnPropertyDescriptor(F,"key").get;if(q&&q.isReactWarning)return!1}return F.key!==void 0}function Ct(F,q){var pe=function(){qr||(qr=!0,Be("%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)",q))};pe.isReactWarning=!0,Object.defineProperty(F,"key",{get:pe,configurable:!0})}function It(F,q){var pe=function(){be||(be=!0,Be("%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)",q))};pe.isReactWarning=!0,Object.defineProperty(F,"ref",{get:pe,configurable:!0})}function Ae(F){if(typeof F.ref=="string"&&ae.current&&F.__self&&ae.current.stateNode!==F.__self){var q=Yn(ae.current.type);Z[q]||(Be('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,F.ref),Z[q]=!0)}}var Je=function(F,q,pe,we,He,Ot,et){var Pt={$$typeof:u,type:F,key:q,ref:pe,props:et,_owner:Ot};return Pt._store={},Object.defineProperty(Pt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Pt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(Pt.props),Object.freeze(Pt)),Pt};function at(F,q,pe){var we,He={},Ot=null,et=null,Pt=null,rn=null;if(q!=null){fe(q)&&(et=q.ref,Ae(q)),Ee(q)&&(Zt(q.key),Ot=""+q.key),Pt=q.__self===void 0?null:q.__self,rn=q.__source===void 0?null:q.__source;for(we in q)Cr.call(q,we)&&!ar.hasOwnProperty(we)&&(He[we]=q[we])}var mn=arguments.length-2;if(mn===1)He.children=pe;else if(mn>1){for(var $n=Array(mn),Pn=0;Pn<mn;Pn++)$n[Pn]=arguments[Pn+2];Object.freeze&&Object.freeze($n),He.children=$n}if(F&&F.defaultProps){var Nn=F.defaultProps;for(we in Nn)He[we]===void 0&&(He[we]=Nn[we])}if(Ot||et){var Gn=typeof F=="function"?F.displayName||F.name||"Unknown":F;Ot&&Ct(He,Gn),et&&It(He,Gn)}return Je(F,Ot,et,Pt,rn,ae.current,He)}function Ht(F,q){var pe=Je(F.type,q,F.ref,F._self,F._source,F._owner,F.props);return pe}function wn(F,q,pe){if(F==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var we,He=ce({},F.props),Ot=F.key,et=F.ref,Pt=F._self,rn=F._source,mn=F._owner;if(q!=null){fe(q)&&(et=q.ref,mn=ae.current),Ee(q)&&(Zt(q.key),Ot=""+q.key);var $n;F.type&&F.type.defaultProps&&($n=F.type.defaultProps);for(we in q)Cr.call(q,we)&&!ar.hasOwnProperty(we)&&(q[we]===void 0&&$n!==void 0?He[we]=$n[we]:He[we]=q[we])}var Pn=arguments.length-2;if(Pn===1)He.children=pe;else if(Pn>1){for(var Nn=Array(Pn),Gn=0;Gn<Pn;Gn++)Nn[Gn]=arguments[Gn+2];He.children=Nn}return Je(F.type,Ot,et,Pt,rn,mn,He)}function Mn(F){return typeof F=="object"&&F!==null&&F.$$typeof===u}var ir=".",or=":";function sr(F){var q=/[=:]/g,pe={"=":"=0",":":"=2"},we=F.replace(q,function(He){return pe[He]});return"$"+we}var Rr=!1,bo=/\/+/g;function vn(F){return F.replace(bo,"$&/")}function _n(F,q){return typeof F=="object"&&F!==null&&F.key!=null?(Zt(F.key),sr(""+F.key)):q.toString(36)}function Gi(F,q,pe,we,He){var Ot=typeof F;(Ot==="undefined"||Ot==="boolean")&&(F=null);var et=!1;if(F===null)et=!0;else switch(Ot){case"string":case"number":et=!0;break;case"object":switch(F.$$typeof){case u:case f:et=!0}}if(et){var Pt=F,rn=He(Pt),mn=we===""?ir+_n(Pt,0):we;if(nn(rn)){var $n="";mn!=null&&($n=vn(mn)+"/"),Gi(rn,q,$n,"",function(zp){return zp})}else rn!=null&&(Mn(rn)&&(rn.key&&(!Pt||Pt.key!==rn.key)&&Zt(rn.key),rn=Ht(rn,pe+(rn.key&&(!Pt||Pt.key!==rn.key)?vn(""+rn.key)+"/":"")+mn)),q.push(rn));return 1}var Pn,Nn,Gn=0,un=we===""?ir:we+or;if(nn(F))for(var Qo=0;Qo<F.length;Qo++)Pn=F[Qo],Nn=un+_n(Pn,Qo),Gn+=Gi(Pn,q,pe,Nn,He);else{var Yl=K(F);if(typeof Yl=="function"){var Qu=F;Yl===Qu.entries&&(Rr||Ne("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rr=!0);for(var Mp=Yl.call(Qu),to,Ku=0;!(to=Mp.next()).done;)Pn=to.value,Nn=un+_n(Pn,Ku++),Gn+=Gi(Pn,q,pe,Nn,He)}else if(Ot==="object"){var Gl=String(F);throw new Error("Objects are not valid as a React child (found: "+(Gl==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Gl)+"). If you meant to render a collection of children, use an array instead.")}}return Gn}function ri(F,q,pe){if(F==null)return F;var we=[],He=0;return Gi(F,we,"","",function(Ot){return q.call(pe,Ot,He++)}),we}function hs(F){var q=0;return ri(F,function(){q++}),q}function Ks(F,q,pe){ri(F,function(){q.apply(this,arguments)},pe)}function jl(F){return ri(F,function(q){return q})||[]}function Si(F){if(!Mn(F))throw new Error("React.Children.only expected to receive a single React element child.");return F}function ai(F){var q={$$typeof:_,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:E,_context:q};var pe=!1,we=!1,He=!1;{var Ot={$$typeof:_,_context:q};Object.defineProperties(Ot,{Provider:{get:function(){return we||(we=!0,Be("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(et){q.Provider=et}},_currentValue:{get:function(){return q._currentValue},set:function(et){q._currentValue=et}},_currentValue2:{get:function(){return q._currentValue2},set:function(et){q._currentValue2=et}},_threadCount:{get:function(){return q._threadCount},set:function(et){q._threadCount=et}},Consumer:{get:function(){return pe||(pe=!0,Be("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(et){He||(Ne("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",et),He=!0)}}}),q.Consumer=Ot}return q._currentRenderer=null,q._currentRenderer2=null,q}var mr=-1,ko=0,ii=1,Qi=2;function sa(F){if(F._status===mr){var q=F._result,pe=q();if(pe.then(function(Ot){if(F._status===ko||F._status===mr){var et=F;et._status=ii,et._result=Ot}},function(Ot){if(F._status===ko||F._status===mr){var et=F;et._status=Qi,et._result=Ot}}),F._status===mr){var we=F;we._status=ko,we._result=pe}}if(F._status===ii){var He=F._result;return He===void 0&&Be(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
115
|
+
*/Sy.exports;var xS;function y$(){return xS||(xS=1,function(n,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var o="18.3.1",u=Symbol.for("react.element"),f=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),H=Symbol.iterator,ge="@@iterator";function K(F){if(F===null||typeof F!="object")return null;var q=H&&F[H]||F[ge];return typeof q=="function"?q:null}var Y={current:null},ne={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ae={current:null},oe={},Te=null;function ye(F){Te=F}oe.setExtraStackFrame=function(F){Te=F},oe.getCurrentStack=null,oe.getStackAddendum=function(){var F="";Te&&(F+=Te);var q=oe.getCurrentStack;return q&&(F+=q()||""),F};var Ve=!1,rt=!1,Ye=!1,Fe=!1,Pe=!1,Ze={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:ne,ReactCurrentOwner:ae};Ze.ReactDebugCurrentFrame=oe,Ze.ReactCurrentActQueue=U;function Ne(F){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),we=1;we<q;we++)pe[we-1]=arguments[we];ve("warn",F,pe)}}function Be(F){{for(var q=arguments.length,pe=new Array(q>1?q-1:0),we=1;we<q;we++)pe[we-1]=arguments[we];ve("error",F,pe)}}function ve(F,q,pe){{var we=Ze.ReactDebugCurrentFrame,He=we.getStackAddendum();He!==""&&(q+="%s",pe=pe.concat([He]));var Ot=pe.map(function(et){return String(et)});Ot.unshift("Warning: "+q),Function.prototype.apply.call(console[F],console,Ot)}}var Re={};function xe(F,q){{var pe=F.constructor,we=pe&&(pe.displayName||pe.name)||"ReactClass",He=we+"."+q;if(Re[He])return;Be("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",q,we),Re[He]=!0}}var G={isMounted:function(F){return!1},enqueueForceUpdate:function(F,q,pe){xe(F,"forceUpdate")},enqueueReplaceState:function(F,q,pe,we){xe(F,"replaceState")},enqueueSetState:function(F,q,pe,we){xe(F,"setState")}},ce=Object.assign,gt={};Object.freeze(gt);function ut(F,q,pe){this.props=F,this.context=q,this.refs=gt,this.updater=pe||G}ut.prototype.isReactComponent={},ut.prototype.setState=function(F,q){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,q,"setState")},ut.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};{var ct={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},vt=function(F,q){Object.defineProperty(ut.prototype,F,{get:function(){Ne("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})};for(var it in ct)ct.hasOwnProperty(it)&&vt(it,ct[it])}function Rt(){}Rt.prototype=ut.prototype;function Lt(F,q,pe){this.props=F,this.context=q,this.refs=gt,this.updater=pe||G}var sn=Lt.prototype=new Rt;sn.constructor=Lt,ce(sn,ut.prototype),sn.isPureReactComponent=!0;function Fn(){var F={current:null};return Object.seal(F),F}var br=Array.isArray;function nn(F){return br(F)}function ot(F){{var q=typeof Symbol=="function"&&Symbol.toStringTag,pe=q&&F[Symbol.toStringTag]||F.constructor.name||"Object";return pe}}function Ln(F){try{return Ut(F),!1}catch{return!0}}function Ut(F){return""+F}function Zt(F){if(Ln(F))return Be("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(F)),Ut(F)}function Xt(F,q,pe){var we=F.displayName;if(we)return we;var He=q.displayName||q.name||"";return He!==""?pe+"("+He+")":pe}function va(F){return F.displayName||"Context"}function Yn(F){if(F==null)return null;if(typeof F.tag=="number"&&Be("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case g:return"Fragment";case f:return"Portal";case S:return"Profiler";case v:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case _:var q=F;return va(q)+".Consumer";case E:var pe=F;return va(pe._context)+".Provider";case $:return Xt(F,F.render,"ForwardRef");case B:var we=F.displayName||null;return we!==null?we:Yn(F.type)||"Memo";case M:{var He=F,Ot=He._payload,et=He._init;try{return Yn(et(Ot))}catch{return null}}}return null}var Cr=Object.prototype.hasOwnProperty,ar={key:!0,ref:!0,__self:!0,__source:!0},qr,be,Z;Z={};function fe(F){if(Cr.call(F,"ref")){var q=Object.getOwnPropertyDescriptor(F,"ref").get;if(q&&q.isReactWarning)return!1}return F.ref!==void 0}function Ee(F){if(Cr.call(F,"key")){var q=Object.getOwnPropertyDescriptor(F,"key").get;if(q&&q.isReactWarning)return!1}return F.key!==void 0}function Ct(F,q){var pe=function(){qr||(qr=!0,Be("%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)",q))};pe.isReactWarning=!0,Object.defineProperty(F,"key",{get:pe,configurable:!0})}function It(F,q){var pe=function(){be||(be=!0,Be("%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)",q))};pe.isReactWarning=!0,Object.defineProperty(F,"ref",{get:pe,configurable:!0})}function Ae(F){if(typeof F.ref=="string"&&ae.current&&F.__self&&ae.current.stateNode!==F.__self){var q=Yn(ae.current.type);Z[q]||(Be('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,F.ref),Z[q]=!0)}}var Je=function(F,q,pe,we,He,Ot,et){var Pt={$$typeof:u,type:F,key:q,ref:pe,props:et,_owner:Ot};return Pt._store={},Object.defineProperty(Pt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:we}),Object.defineProperty(Pt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:He}),Object.freeze&&(Object.freeze(Pt.props),Object.freeze(Pt)),Pt};function at(F,q,pe){var we,He={},Ot=null,et=null,Pt=null,rn=null;if(q!=null){fe(q)&&(et=q.ref,Ae(q)),Ee(q)&&(Zt(q.key),Ot=""+q.key),Pt=q.__self===void 0?null:q.__self,rn=q.__source===void 0?null:q.__source;for(we in q)Cr.call(q,we)&&!ar.hasOwnProperty(we)&&(He[we]=q[we])}var mn=arguments.length-2;if(mn===1)He.children=pe;else if(mn>1){for(var $n=Array(mn),Pn=0;Pn<mn;Pn++)$n[Pn]=arguments[Pn+2];Object.freeze&&Object.freeze($n),He.children=$n}if(F&&F.defaultProps){var Nn=F.defaultProps;for(we in Nn)He[we]===void 0&&(He[we]=Nn[we])}if(Ot||et){var Gn=typeof F=="function"?F.displayName||F.name||"Unknown":F;Ot&&Ct(He,Gn),et&&It(He,Gn)}return Je(F,Ot,et,Pt,rn,ae.current,He)}function Ht(F,q){var pe=Je(F.type,q,F.ref,F._self,F._source,F._owner,F.props);return pe}function wn(F,q,pe){if(F==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var we,He=ce({},F.props),Ot=F.key,et=F.ref,Pt=F._self,rn=F._source,mn=F._owner;if(q!=null){fe(q)&&(et=q.ref,mn=ae.current),Ee(q)&&(Zt(q.key),Ot=""+q.key);var $n;F.type&&F.type.defaultProps&&($n=F.type.defaultProps);for(we in q)Cr.call(q,we)&&!ar.hasOwnProperty(we)&&(q[we]===void 0&&$n!==void 0?He[we]=$n[we]:He[we]=q[we])}var Pn=arguments.length-2;if(Pn===1)He.children=pe;else if(Pn>1){for(var Nn=Array(Pn),Gn=0;Gn<Pn;Gn++)Nn[Gn]=arguments[Gn+2];He.children=Nn}return Je(F.type,Ot,et,Pt,rn,mn,He)}function Mn(F){return typeof F=="object"&&F!==null&&F.$$typeof===u}var ir=".",or=":";function sr(F){var q=/[=:]/g,pe={"=":"=0",":":"=2"},we=F.replace(q,function(He){return pe[He]});return"$"+we}var Rr=!1,bo=/\/+/g;function vn(F){return F.replace(bo,"$&/")}function _n(F,q){return typeof F=="object"&&F!==null&&F.key!=null?(Zt(F.key),sr(""+F.key)):q.toString(36)}function Gi(F,q,pe,we,He){var Ot=typeof F;(Ot==="undefined"||Ot==="boolean")&&(F=null);var et=!1;if(F===null)et=!0;else switch(Ot){case"string":case"number":et=!0;break;case"object":switch(F.$$typeof){case u:case f:et=!0}}if(et){var Pt=F,rn=He(Pt),mn=we===""?ir+_n(Pt,0):we;if(nn(rn)){var $n="";mn!=null&&($n=vn(mn)+"/"),Gi(rn,q,$n,"",function(zp){return zp})}else rn!=null&&(Mn(rn)&&(rn.key&&(!Pt||Pt.key!==rn.key)&&Zt(rn.key),rn=Ht(rn,pe+(rn.key&&(!Pt||Pt.key!==rn.key)?vn(""+rn.key)+"/":"")+mn)),q.push(rn));return 1}var Pn,Nn,Gn=0,un=we===""?ir:we+or;if(nn(F))for(var Qo=0;Qo<F.length;Qo++)Pn=F[Qo],Nn=un+_n(Pn,Qo),Gn+=Gi(Pn,q,pe,Nn,He);else{var Yl=K(F);if(typeof Yl=="function"){var Qu=F;Yl===Qu.entries&&(Rr||Ne("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Rr=!0);for(var Mp=Yl.call(Qu),to,Ku=0;!(to=Mp.next()).done;)Pn=to.value,Nn=un+_n(Pn,Ku++),Gn+=Gi(Pn,q,pe,Nn,He)}else if(Ot==="object"){var Gl=String(F);throw new Error("Objects are not valid as a React child (found: "+(Gl==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Gl)+"). If you meant to render a collection of children, use an array instead.")}}return Gn}function ri(F,q,pe){if(F==null)return F;var we=[],He=0;return Gi(F,we,"","",function(Ot){return q.call(pe,Ot,He++)}),we}function hs(F){var q=0;return ri(F,function(){q++}),q}function Ks(F,q,pe){ri(F,function(){q.apply(this,arguments)},pe)}function jl(F){return ri(F,function(q){return q})||[]}function Si(F){if(!Mn(F))throw new Error("React.Children.only expected to receive a single React element child.");return F}function ai(F){var q={$$typeof:_,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};q.Provider={$$typeof:E,_context:q};var pe=!1,we=!1,He=!1;{var Ot={$$typeof:_,_context:q};Object.defineProperties(Ot,{Provider:{get:function(){return we||(we=!0,Be("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),q.Provider},set:function(et){q.Provider=et}},_currentValue:{get:function(){return q._currentValue},set:function(et){q._currentValue=et}},_currentValue2:{get:function(){return q._currentValue2},set:function(et){q._currentValue2=et}},_threadCount:{get:function(){return q._threadCount},set:function(et){q._threadCount=et}},Consumer:{get:function(){return pe||(pe=!0,Be("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),q.Consumer}},displayName:{get:function(){return q.displayName},set:function(et){He||(Ne("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",et),He=!0)}}}),q.Consumer=Ot}return q._currentRenderer=null,q._currentRenderer2=null,q}var mr=-1,ko=0,ii=1,Qi=2;function sa(F){if(F._status===mr){var q=F._result,pe=q();if(pe.then(function(Ot){if(F._status===ko||F._status===mr){var et=F;et._status=ii,et._result=Ot}},function(Ot){if(F._status===ko||F._status===mr){var et=F;et._status=Qi,et._result=Ot}}),F._status===mr){var we=F;we._status=ko,we._result=pe}}if(F._status===ii){var He=F._result;return He===void 0&&Be(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
116
116
|
|
|
117
117
|
Your code should look like:
|
|
118
118
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -134,7 +134,7 @@ Check the render method of \``+F+"`."}return""}function Mt(F){if(F!==void 0){var
|
|
|
134
134
|
|
|
135
135
|
Check your code at `+q+":"+pe+"."}return""}function ys(F){return F!=null?Mt(F.__source):""}var lr={};function Er(F){var q=el();if(!q){var pe=typeof F=="string"?F:F.displayName||F.name;pe&&(q=`
|
|
136
136
|
|
|
137
|
-
Check the top-level render call using <`+pe+">.")}return q}function ka(F,q){if(!(!F._store||F._store.validated||F.key!=null)){F._store.validated=!0;var pe=Er(q);if(!lr[pe]){lr[pe]=!0;var we="";F&&F._owner&&F._owner!==ae.current&&(we=" It was passed a child from "+Yn(F._owner.type)+"."),ln(F),Be('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',pe,we),ln(null)}}}function Xi(F,q){if(typeof F=="object"){if(nn(F))for(var pe=0;pe<F.length;pe++){var we=F[pe];Mn(we)&&ka(we,q)}else if(Mn(F))F._store&&(F._store.validated=!0);else if(F){var He=K(F);if(typeof He=="function"&&He!==F.entries)for(var Ot=He.call(F),et;!(et=Ot.next()).done;)Mn(et.value)&&ka(et.value,q)}}}function zn(F){{var q=F.type;if(q==null||typeof q=="string")return;var pe;if(typeof q=="function")pe=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===$||q.$$typeof===B))pe=q.propTypes;else return;if(pe){var we=Yn(q);Zi(pe,F.props,"prop",we,F)}else if(q.PropTypes!==void 0&&!ql){ql=!0;var He=Yn(q);Be("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&Be("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sn(F){{for(var q=Object.keys(F.props),pe=0;pe<q.length;pe++){var we=q[pe];if(we!=="children"&&we!=="key"){ln(F),Be("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),ln(null);break}}F.ref!==null&&(ln(F),Be("Invalid attribute `ref` supplied to `React.Fragment`."),ln(null))}}function id(F,q,pe){var we=W(F);if(!we){var He="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(He+=" 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 Ot=ys(q);Ot?He+=Ot:He+=el();var et;F===null?et="null":nn(F)?et="array":F!==void 0&&F.$$typeof===u?(et="<"+(Yn(F.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):et=typeof F,Be("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,He)}var Pt=at.apply(this,arguments);if(Pt==null)return Pt;if(we)for(var rn=2;rn<arguments.length;rn++)Xi(arguments[rn],F);return F===g?Sn(Pt):zn(Pt),Pt}var ja=!1;function Or(F){var q=id.bind(null,F);return q.type=F,ja||(ja=!0,Ne("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(q,"type",{enumerable:!1,get:function(){return Ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:F}),F}}),q}function Ji(F,q,pe){for(var we=wn.apply(this,arguments),He=2;He<arguments.length;He++)Xi(arguments[He],we.type);return zn(we),we}function Yu(F,q){var pe=ne.transition;ne.transition={};var we=ne.transition;ne.transition._updatedFibers=new Set;try{F()}finally{if(ne.transition=pe,pe===null&&we._updatedFibers){var He=we._updatedFibers.size;He>10&&Ne("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),we._updatedFibers.clear()}}}var Vo=!1,So=null;function od(F){if(So===null)try{var q=("require"+Math.random()).slice(0,7),pe=n&&n[q];So=pe.call(n,"timers").setImmediate}catch{So=function(we){Vo===!1&&(Vo=!0,typeof MessageChannel>"u"&&Be("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var He=new MessageChannel;He.port1.onmessage=we,He.port2.postMessage(void 0)}}return So(F)}var xi=0,bs=!1;function Yo(F){{var q=xi;xi++,U.current===null&&(U.current=[]);var pe=U.isBatchingLegacy,we;try{if(U.isBatchingLegacy=!0,we=F(),!pe&&U.didScheduleLegacyUpdate){var He=U.current;He!==null&&(U.didScheduleLegacyUpdate=!1,Go(He))}}catch(Nn){throw Ei(q),Nn}finally{U.isBatchingLegacy=pe}if(we!==null&&typeof we=="object"&&typeof we.then=="function"){var Ot=we,et=!1,Pt={then:function(Nn,Gn){et=!0,Ot.then(function(un){Ei(q),xi===0?Wl(un,Nn,Gn):Nn(un)},function(un){Ei(q),Gn(un)})}};return!bs&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){et||(bs=!0,Be("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Pt}else{var rn=we;if(Ei(q),xi===0){var mn=U.current;mn!==null&&(Go(mn),U.current=null);var $n={then:function(Nn,Gn){U.current===null?(U.current=[],Wl(rn,Nn,Gn)):Nn(rn)}};return $n}else{var Pn={then:function(Nn,Gn){Nn(rn)}};return Pn}}}}function Ei(F){F!==xi-1&&Be("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),xi=F}function Wl(F,q,pe){{var we=U.current;if(we!==null)try{Go(we),od(function(){we.length===0?(U.current=null,q(F)):Wl(F,q,pe)})}catch(He){pe(He)}else q(F)}}var ks=!1;function Go(F){if(!ks){ks=!0;var q=0;try{for(;q<F.length;q++){var pe=F[q];do pe=pe(!0);while(pe!==null)}F.length=0}catch(we){throw F=F.slice(q+1),we}finally{ks=!1}}}var tl=id,Vl=Ji,Gu=Or,eo={map:ri,forEach:Ks,count:hs,toArray:jl,only:Si};r.Children=eo,r.Component=ut,r.Fragment=g,r.Profiler=S,r.PureComponent=Lt,r.StrictMode=v,r.Suspense=N,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ze,r.act=Yo,r.cloneElement=Vl,r.createContext=ai,r.createElement=tl,r.createFactory=Gu,r.createRef=Fn,r.forwardRef=wo,r.isValidElement=Mn,r.lazy=oi,r.memo=$e,r.startTransition=Yu,r.unstable_act=Yo,r.useCallback=jn,r.useContext=St,r.useDebugValue=en,r.useDeferredValue=ya,r.useEffect=Yt,r.useId=Gt,r.useImperativeHandle=xr,r.useInsertionEffect=Fr,r.useLayoutEffect=Bn,r.useMemo=la,r.useReducer=Jt,r.useRef=$t,r.useState=an,r.useSyncExternalStore=Ci,r.useTransition=Wr,r.version=o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Sy,Sy.exports)),Sy.exports}var ES;function _S(){return ES||(ES=1,process.env.NODE_ENV==="production"?kk.exports=
|
|
137
|
+
Check the top-level render call using <`+pe+">.")}return q}function ka(F,q){if(!(!F._store||F._store.validated||F.key!=null)){F._store.validated=!0;var pe=Er(q);if(!lr[pe]){lr[pe]=!0;var we="";F&&F._owner&&F._owner!==ae.current&&(we=" It was passed a child from "+Yn(F._owner.type)+"."),ln(F),Be('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',pe,we),ln(null)}}}function Xi(F,q){if(typeof F=="object"){if(nn(F))for(var pe=0;pe<F.length;pe++){var we=F[pe];Mn(we)&&ka(we,q)}else if(Mn(F))F._store&&(F._store.validated=!0);else if(F){var He=K(F);if(typeof He=="function"&&He!==F.entries)for(var Ot=He.call(F),et;!(et=Ot.next()).done;)Mn(et.value)&&ka(et.value,q)}}}function zn(F){{var q=F.type;if(q==null||typeof q=="string")return;var pe;if(typeof q=="function")pe=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===$||q.$$typeof===B))pe=q.propTypes;else return;if(pe){var we=Yn(q);Zi(pe,F.props,"prop",we,F)}else if(q.PropTypes!==void 0&&!ql){ql=!0;var He=Yn(q);Be("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&Be("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sn(F){{for(var q=Object.keys(F.props),pe=0;pe<q.length;pe++){var we=q[pe];if(we!=="children"&&we!=="key"){ln(F),Be("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",we),ln(null);break}}F.ref!==null&&(ln(F),Be("Invalid attribute `ref` supplied to `React.Fragment`."),ln(null))}}function id(F,q,pe){var we=W(F);if(!we){var He="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(He+=" 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 Ot=ys(q);Ot?He+=Ot:He+=el();var et;F===null?et="null":nn(F)?et="array":F!==void 0&&F.$$typeof===u?(et="<"+(Yn(F.type)||"Unknown")+" />",He=" Did you accidentally export a JSX literal instead of a component?"):et=typeof F,Be("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,He)}var Pt=at.apply(this,arguments);if(Pt==null)return Pt;if(we)for(var rn=2;rn<arguments.length;rn++)Xi(arguments[rn],F);return F===g?Sn(Pt):zn(Pt),Pt}var ja=!1;function Or(F){var q=id.bind(null,F);return q.type=F,ja||(ja=!0,Ne("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(q,"type",{enumerable:!1,get:function(){return Ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:F}),F}}),q}function Ji(F,q,pe){for(var we=wn.apply(this,arguments),He=2;He<arguments.length;He++)Xi(arguments[He],we.type);return zn(we),we}function Yu(F,q){var pe=ne.transition;ne.transition={};var we=ne.transition;ne.transition._updatedFibers=new Set;try{F()}finally{if(ne.transition=pe,pe===null&&we._updatedFibers){var He=we._updatedFibers.size;He>10&&Ne("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),we._updatedFibers.clear()}}}var Vo=!1,So=null;function od(F){if(So===null)try{var q=("require"+Math.random()).slice(0,7),pe=n&&n[q];So=pe.call(n,"timers").setImmediate}catch{So=function(we){Vo===!1&&(Vo=!0,typeof MessageChannel>"u"&&Be("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var He=new MessageChannel;He.port1.onmessage=we,He.port2.postMessage(void 0)}}return So(F)}var xi=0,bs=!1;function Yo(F){{var q=xi;xi++,U.current===null&&(U.current=[]);var pe=U.isBatchingLegacy,we;try{if(U.isBatchingLegacy=!0,we=F(),!pe&&U.didScheduleLegacyUpdate){var He=U.current;He!==null&&(U.didScheduleLegacyUpdate=!1,Go(He))}}catch(Nn){throw Ei(q),Nn}finally{U.isBatchingLegacy=pe}if(we!==null&&typeof we=="object"&&typeof we.then=="function"){var Ot=we,et=!1,Pt={then:function(Nn,Gn){et=!0,Ot.then(function(un){Ei(q),xi===0?Wl(un,Nn,Gn):Nn(un)},function(un){Ei(q),Gn(un)})}};return!bs&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){et||(bs=!0,Be("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Pt}else{var rn=we;if(Ei(q),xi===0){var mn=U.current;mn!==null&&(Go(mn),U.current=null);var $n={then:function(Nn,Gn){U.current===null?(U.current=[],Wl(rn,Nn,Gn)):Nn(rn)}};return $n}else{var Pn={then:function(Nn,Gn){Nn(rn)}};return Pn}}}}function Ei(F){F!==xi-1&&Be("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),xi=F}function Wl(F,q,pe){{var we=U.current;if(we!==null)try{Go(we),od(function(){we.length===0?(U.current=null,q(F)):Wl(F,q,pe)})}catch(He){pe(He)}else q(F)}}var ks=!1;function Go(F){if(!ks){ks=!0;var q=0;try{for(;q<F.length;q++){var pe=F[q];do pe=pe(!0);while(pe!==null)}F.length=0}catch(we){throw F=F.slice(q+1),we}finally{ks=!1}}}var tl=id,Vl=Ji,Gu=Or,eo={map:ri,forEach:Ks,count:hs,toArray:jl,only:Si};r.Children=eo,r.Component=ut,r.Fragment=g,r.Profiler=S,r.PureComponent=Lt,r.StrictMode=v,r.Suspense=N,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ze,r.act=Yo,r.cloneElement=Vl,r.createContext=ai,r.createElement=tl,r.createFactory=Gu,r.createRef=Fn,r.forwardRef=wo,r.isValidElement=Mn,r.lazy=oi,r.memo=$e,r.startTransition=Yu,r.unstable_act=Yo,r.useCallback=jn,r.useContext=St,r.useDebugValue=en,r.useDeferredValue=ya,r.useEffect=Yt,r.useId=Gt,r.useImperativeHandle=xr,r.useInsertionEffect=Fr,r.useLayoutEffect=Bn,r.useMemo=la,r.useReducer=Jt,r.useRef=$t,r.useState=an,r.useSyncExternalStore=Ci,r.useTransition=Wr,r.version=o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Sy,Sy.exports)),Sy.exports}var ES;function _S(){return ES||(ES=1,process.env.NODE_ENV==="production"?kk.exports=v$():kk.exports=y$()),kk.exports}var wk={exports:{}},TS={};/**
|
|
138
138
|
* @license React
|
|
139
139
|
* scheduler.production.min.js
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ Check the top-level render call using <`+pe+">.")}return q}function ka(F,q){if(!
|
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the MIT license found in the
|
|
144
144
|
* LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/var AS;function
|
|
145
|
+
*/var AS;function b$(){return AS||(AS=1,function(n){function r(ve,Re){var xe=ve.length;ve.push(Re);e:for(;0<xe;){var G=xe-1>>>1,ce=ve[G];if(0<f(ce,Re))ve[G]=Re,ve[xe]=ce,xe=G;else break e}}function o(ve){return ve.length===0?null:ve[0]}function u(ve){if(ve.length===0)return null;var Re=ve[0],xe=ve.pop();if(xe!==Re){ve[0]=xe;e:for(var G=0,ce=ve.length,gt=ce>>>1;G<gt;){var ut=2*(G+1)-1,ct=ve[ut],vt=ut+1,it=ve[vt];if(0>f(ct,xe))vt<ce&&0>f(it,ct)?(ve[G]=it,ve[vt]=xe,G=vt):(ve[G]=ct,ve[ut]=xe,G=ut);else if(vt<ce&&0>f(it,xe))ve[G]=it,ve[vt]=xe,G=vt;else break e}}return Re}function f(ve,Re){var xe=ve.sortIndex-Re.sortIndex;return xe!==0?xe:ve.id-Re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var v=Date,S=v.now();n.unstable_now=function(){return v.now()-S}}var E=[],_=[],$=1,N=null,R=3,B=!1,M=!1,V=!1,H=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(ve){for(var Re=o(_);Re!==null;){if(Re.callback===null)u(_);else if(Re.startTime<=ve)u(_),Re.sortIndex=Re.expirationTime,r(E,Re);else break;Re=o(_)}}function ne(ve){if(V=!1,Y(ve),!M)if(o(E)!==null)M=!0,Ne(U);else{var Re=o(_);Re!==null&&Be(ne,Re.startTime-ve)}}function U(ve,Re){M=!1,V&&(V=!1,ge(Te),Te=-1),B=!0;var xe=R;try{for(Y(Re),N=o(E);N!==null&&(!(N.expirationTime>Re)||ve&&!rt());){var G=N.callback;if(typeof G=="function"){N.callback=null,R=N.priorityLevel;var ce=G(N.expirationTime<=Re);Re=n.unstable_now(),typeof ce=="function"?N.callback=ce:N===o(E)&&u(E),Y(Re)}else u(E);N=o(E)}if(N!==null)var gt=!0;else{var ut=o(_);ut!==null&&Be(ne,ut.startTime-Re),gt=!1}return gt}finally{N=null,R=xe,B=!1}}var ae=!1,oe=null,Te=-1,ye=5,Ve=-1;function rt(){return!(n.unstable_now()-Ve<ye)}function Ye(){if(oe!==null){var ve=n.unstable_now();Ve=ve;var Re=!0;try{Re=oe(!0,ve)}finally{Re?Fe():(ae=!1,oe=null)}}else ae=!1}var Fe;if(typeof K=="function")Fe=function(){K(Ye)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,Ze=Pe.port2;Pe.port1.onmessage=Ye,Fe=function(){Ze.postMessage(null)}}else Fe=function(){H(Ye,0)};function Ne(ve){oe=ve,ae||(ae=!0,Fe())}function Be(ve,Re){Te=H(function(){ve(n.unstable_now())},Re)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ve){ve.callback=null},n.unstable_continueExecution=function(){M||B||(M=!0,Ne(U))},n.unstable_forceFrameRate=function(ve){0>ve||125<ve?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ye=0<ve?Math.floor(1e3/ve):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_getFirstCallbackNode=function(){return o(E)},n.unstable_next=function(ve){switch(R){case 1:case 2:case 3:var Re=3;break;default:Re=R}var xe=R;R=Re;try{return ve()}finally{R=xe}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(ve,Re){switch(ve){case 1:case 2:case 3:case 4:case 5:break;default:ve=3}var xe=R;R=ve;try{return Re()}finally{R=xe}},n.unstable_scheduleCallback=function(ve,Re,xe){var G=n.unstable_now();switch(typeof xe=="object"&&xe!==null?(xe=xe.delay,xe=typeof xe=="number"&&0<xe?G+xe:G):xe=G,ve){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=xe+ce,ve={id:$++,callback:Re,priorityLevel:ve,startTime:xe,expirationTime:ce,sortIndex:-1},xe>G?(ve.sortIndex=xe,r(_,ve),o(E)===null&&ve===o(_)&&(V?(ge(Te),Te=-1):V=!0,Be(ne,xe-G))):(ve.sortIndex=ce,r(E,ve),M||B||(M=!0,Ne(U))),ve},n.unstable_shouldYield=rt,n.unstable_wrapCallback=function(ve){var Re=R;return function(){var xe=R;R=Re;try{return ve.apply(this,arguments)}finally{R=xe}}}}(TS)),TS}var FS={};/**
|
|
146
146
|
* @license React
|
|
147
147
|
* scheduler.development.js
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ Check the top-level render call using <`+pe+">.")}return q}function ka(F,q){if(!
|
|
|
150
150
|
*
|
|
151
151
|
* This source code is licensed under the MIT license found in the
|
|
152
152
|
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/var $S;function
|
|
153
|
+
*/var $S;function k$(){return $S||($S=1,function(n){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,o=!1,u=5;function f(Ae,Je){var at=Ae.length;Ae.push(Je),S(Ae,Je,at)}function g(Ae){return Ae.length===0?null:Ae[0]}function v(Ae){if(Ae.length===0)return null;var Je=Ae[0],at=Ae.pop();return at!==Je&&(Ae[0]=at,E(Ae,at,0)),Je}function S(Ae,Je,at){for(var Ht=at;Ht>0;){var wn=Ht-1>>>1,Mn=Ae[wn];if(_(Mn,Je)>0)Ae[wn]=Je,Ae[Ht]=Mn,Ht=wn;else return}}function E(Ae,Je,at){for(var Ht=at,wn=Ae.length,Mn=wn>>>1;Ht<Mn;){var ir=(Ht+1)*2-1,or=Ae[ir],sr=ir+1,Rr=Ae[sr];if(_(or,Je)<0)sr<wn&&_(Rr,or)<0?(Ae[Ht]=Rr,Ae[sr]=Je,Ht=sr):(Ae[Ht]=or,Ae[ir]=Je,Ht=ir);else if(sr<wn&&_(Rr,Je)<0)Ae[Ht]=Rr,Ae[sr]=Je,Ht=sr;else return}}function _(Ae,Je){var at=Ae.sortIndex-Je.sortIndex;return at!==0?at:Ae.id-Je.id}var $=1,N=2,R=3,B=4,M=5,V=typeof performance=="object"&&typeof performance.now=="function";if(V){var H=performance;n.unstable_now=function(){return H.now()}}else{var ge=Date,K=ge.now();n.unstable_now=function(){return ge.now()-K}}var Y=1073741823,ne=-1,U=250,ae=5e3,oe=1e4,Te=Y,ye=[],Ve=[],rt=1,Ye=null,Fe=R,Pe=!1,Ze=!1,Ne=!1,Be=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,Re=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xe(Ae){for(var Je=g(Ve);Je!==null;){if(Je.callback===null)v(Ve);else if(Je.startTime<=Ae)v(Ve),Je.sortIndex=Je.expirationTime,f(ye,Je);else return;Je=g(Ve)}}function G(Ae){if(Ne=!1,xe(Ae),!Ze)if(g(ye)!==null)Ze=!0,Z(ce);else{var Je=g(Ve);Je!==null&&fe(G,Je.startTime-Ae)}}function ce(Ae,Je){Ze=!1,Ne&&(Ne=!1,Ee()),Pe=!0;var at=Fe;try{var Ht;if(!o)return gt(Ae,Je)}finally{Ye=null,Fe=at,Pe=!1}}function gt(Ae,Je){var at=Je;for(xe(at),Ye=g(ye);Ye!==null&&!r&&!(Ye.expirationTime>at&&(!Ae||Xt()));){var Ht=Ye.callback;if(typeof Ht=="function"){Ye.callback=null,Fe=Ye.priorityLevel;var wn=Ye.expirationTime<=at,Mn=Ht(wn);at=n.unstable_now(),typeof Mn=="function"?Ye.callback=Mn:Ye===g(ye)&&v(ye),xe(at)}else v(ye);Ye=g(ye)}if(Ye!==null)return!0;var ir=g(Ve);return ir!==null&&fe(G,ir.startTime-at),!1}function ut(Ae,Je){switch(Ae){case $:case N:case R:case B:case M:break;default:Ae=R}var at=Fe;Fe=Ae;try{return Je()}finally{Fe=at}}function ct(Ae){var Je;switch(Fe){case $:case N:case R:Je=R;break;default:Je=Fe;break}var at=Fe;Fe=Je;try{return Ae()}finally{Fe=at}}function vt(Ae){var Je=Fe;return function(){var at=Fe;Fe=Je;try{return Ae.apply(this,arguments)}finally{Fe=at}}}function it(Ae,Je,at){var Ht=n.unstable_now(),wn;if(typeof at=="object"&&at!==null){var Mn=at.delay;typeof Mn=="number"&&Mn>0?wn=Ht+Mn:wn=Ht}else wn=Ht;var ir;switch(Ae){case $:ir=ne;break;case N:ir=U;break;case M:ir=Te;break;case B:ir=oe;break;case R:default:ir=ae;break}var or=wn+ir,sr={id:rt++,callback:Je,priorityLevel:Ae,startTime:wn,expirationTime:or,sortIndex:-1};return wn>Ht?(sr.sortIndex=wn,f(Ve,sr),g(ye)===null&&sr===g(Ve)&&(Ne?Ee():Ne=!0,fe(G,wn-Ht))):(sr.sortIndex=or,f(ye,sr),!Ze&&!Pe&&(Ze=!0,Z(ce))),sr}function Rt(){}function Lt(){!Ze&&!Pe&&(Ze=!0,Z(ce))}function sn(){return g(ye)}function Fn(Ae){Ae.callback=null}function br(){return Fe}var nn=!1,ot=null,Ln=-1,Ut=u,Zt=-1;function Xt(){var Ae=n.unstable_now()-Zt;return!(Ae<Ut)}function va(){}function Yn(Ae){if(Ae<0||Ae>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ae>0?Ut=Math.floor(1e3/Ae):Ut=u}var Cr=function(){if(ot!==null){var Ae=n.unstable_now();Zt=Ae;var Je=!0,at=!0;try{at=ot(Je,Ae)}finally{at?ar():(nn=!1,ot=null)}}else nn=!1},ar;if(typeof Re=="function")ar=function(){Re(Cr)};else if(typeof MessageChannel<"u"){var qr=new MessageChannel,be=qr.port2;qr.port1.onmessage=Cr,ar=function(){be.postMessage(null)}}else ar=function(){Be(Cr,0)};function Z(Ae){ot=Ae,nn||(nn=!0,ar())}function fe(Ae,Je){Ln=Be(function(){Ae(n.unstable_now())},Je)}function Ee(){ve(Ln),Ln=-1}var Ct=va,It=null;n.unstable_IdlePriority=M,n.unstable_ImmediatePriority=$,n.unstable_LowPriority=B,n.unstable_NormalPriority=R,n.unstable_Profiling=It,n.unstable_UserBlockingPriority=N,n.unstable_cancelCallback=Fn,n.unstable_continueExecution=Lt,n.unstable_forceFrameRate=Yn,n.unstable_getCurrentPriorityLevel=br,n.unstable_getFirstCallbackNode=sn,n.unstable_next=ct,n.unstable_pauseExecution=Rt,n.unstable_requestPaint=Ct,n.unstable_runWithPriority=ut,n.unstable_scheduleCallback=it,n.unstable_shouldYield=Xt,n.unstable_wrapCallback=vt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(FS)),FS}var PS;function NS(){return PS||(PS=1,process.env.NODE_ENV==="production"?wk.exports=b$():wk.exports=k$()),wk.exports}/**
|
|
154
154
|
* @license React
|
|
155
155
|
* react-dom.production.min.js
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ Check the top-level render call using <`+pe+">.")}return q}function ka(F,q){if(!
|
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the MIT license found in the
|
|
160
160
|
* LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/var RS;function
|
|
161
|
+
*/var RS;function w$(){if(RS)return ho;RS=1;var n=_S(),r=NS();function o(a){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,f={};function g(a,i){v(a,i),v(a+"Capture",i)}function v(a,i){for(f[a]=i,a=0;a<i.length;a++)u.add(i[a])}var S=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E=Object.prototype.hasOwnProperty,_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$={},N={};function R(a){return E.call(N,a)?!0:E.call($,a)?!1:_.test(a)?N[a]=!0:($[a]=!0,!1)}function B(a,i,c,m){if(c!==null&&c.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return m?!1:c!==null?!c.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function M(a,i,c,m){if(i===null||typeof i>"u"||B(a,i,c,m))return!0;if(m)return!1;if(c!==null)switch(c.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function V(a,i,c,m,k,D,P){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=m,this.attributeNamespace=k,this.mustUseProperty=c,this.propertyName=a,this.type=i,this.sanitizeURL=D,this.removeEmptyString=P}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){H[a]=new V(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var i=a[0];H[i]=new V(i,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){H[a]=new V(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){H[a]=new V(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){H[a]=new V(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){H[a]=new V(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){H[a]=new V(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){H[a]=new V(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){H[a]=new V(a,5,!1,a.toLowerCase(),null,!1,!1)});var ge=/[\-:]([a-z])/g;function K(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var i=a.replace(ge,K);H[i]=new V(i,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var i=a.replace(ge,K);H[i]=new V(i,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var i=a.replace(ge,K);H[i]=new V(i,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){H[a]=new V(a,1,!1,a.toLowerCase(),null,!1,!1)}),H.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){H[a]=new V(a,1,!1,a.toLowerCase(),null,!0,!0)});function Y(a,i,c,m){var k=H.hasOwnProperty(i)?H[i]:null;(k!==null?k.type!==0:m||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(M(i,c,k,m)&&(c=null),m||k===null?R(i)&&(c===null?a.removeAttribute(i):a.setAttribute(i,""+c)):k.mustUseProperty?a[k.propertyName]=c===null?k.type===3?!1:"":c:(i=k.attributeName,m=k.attributeNamespace,c===null?a.removeAttribute(i):(k=k.type,c=k===3||k===4&&c===!0?"":""+c,m?a.setAttributeNS(m,i,c):a.setAttribute(i,c))))}var ne=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=Symbol.for("react.element"),ae=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),Ve=Symbol.for("react.provider"),rt=Symbol.for("react.context"),Ye=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),Ze=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Be=Symbol.for("react.offscreen"),ve=Symbol.iterator;function Re(a){return a===null||typeof a!="object"?null:(a=ve&&a[ve]||a["@@iterator"],typeof a=="function"?a:null)}var xe=Object.assign,G;function ce(a){if(G===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);G=i&&i[1]||""}return`
|
|
162
162
|
`+G+a}var gt=!1;function ut(a,i){if(!a||gt)return"";gt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(he){var m=he}Reflect.construct(a,[],i)}else{try{i.call()}catch(he){m=he}a.call(i.prototype)}else{try{throw Error()}catch(he){m=he}a()}}catch(he){if(he&&m&&typeof he.stack=="string"){for(var k=he.stack.split(`
|
|
163
163
|
`),D=m.stack.split(`
|
|
164
164
|
`),P=k.length-1,z=D.length-1;1<=P&&0<=z&&k[P]!==D[z];)z--;for(;1<=P&&0<=z;P--,z--)if(k[P]!==D[z]){if(P!==1||z!==1)do if(P--,z--,0>z||k[P]!==D[z]){var Q=`
|
|
@@ -173,7 +173,7 @@ Error generating stack: `+D.message+`
|
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the MIT license found in the
|
|
175
175
|
* LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/var OS;function w$(){return OS||(OS=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=_S(),r=NS(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function f(e){u=e}function g(e){if(!u){for(var t=arguments.length,s=new Array(t>1?t-1:0),l=1;l<t;l++)s[l-1]=arguments[l];S("warn",e,s)}}function v(e){if(!u){for(var t=arguments.length,s=new Array(t>1?t-1:0),l=1;l<t;l++)s[l-1]=arguments[l];S("error",e,s)}}function S(e,t,s){{var l=o.ReactDebugCurrentFrame,p=l.getStackAddendum();p!==""&&(t+="%s",s=s.concat([p]));var y=s.map(function(w){return String(w)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var E=0,_=1,$=2,N=3,R=4,B=5,M=6,V=7,H=8,ge=9,K=10,Y=11,ne=12,U=13,ae=14,oe=15,Te=16,ye=17,Ve=18,rt=19,Ye=21,Fe=22,Pe=23,Ze=24,Ne=25,Be=!0,ve=!1,Re=!1,xe=!1,G=!1,ce=!0,gt=!1,ut=!0,ct=!0,vt=!0,it=!0,Rt=new Set,Lt={},sn={};function Fn(e,t){br(e,t),br(e+"Capture",t)}function br(e,t){Lt[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Lt[e]=t;{var s=e.toLowerCase();sn[s]=e,e==="onDoubleClick"&&(sn.ondblclick=e)}for(var l=0;l<t.length;l++)Rt.add(t[l])}var nn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ot=Object.prototype.hasOwnProperty;function Ln(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Ut(e){try{return Zt(e),!1}catch{return!0}}function Zt(e){return""+e}function Xt(e,t){if(Ut(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function va(e){if(Ut(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}function Yn(e,t){if(Ut(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function Cr(e,t){if(Ut(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function ar(e){if(Ut(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}function qr(e){if(Ut(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}var be=0,Z=1,fe=2,Ee=3,Ct=4,It=5,Ae=6,Je=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",at=Je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ht=new RegExp("^["+Je+"]["+at+"]*$"),wn={},Mn={};function ir(e){return ot.call(Mn,e)?!0:ot.call(wn,e)?!1:Ht.test(e)?(Mn[e]=!0,!0):(wn[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function or(e,t,s){return t!==null?t.type===be:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function sr(e,t,s,l){if(s!==null&&s.type===be)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(l)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Rr(e,t,s,l){if(t===null||typeof t>"u"||sr(e,t,s,l))return!0;if(l)return!1;if(s!==null)switch(s.type){case Ee:return!t;case Ct:return t===!1;case It:return isNaN(t);case Ae:return isNaN(t)||t<1}return!1}function bo(e){return _n.hasOwnProperty(e)?_n[e]:null}function vn(e,t,s,l,p,y,w){this.acceptsBooleans=t===fe||t===Ee||t===Ct,this.attributeName=l,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=y,this.removeEmptyString=w}var _n={},Gi=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Gi.forEach(function(e){_n[e]=new vn(e,be,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];_n[t]=new vn(t,Z,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_n[e]=new vn(e,fe,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_n[e]=new vn(e,fe,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){_n[e]=new vn(e,Ee,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_n[e]=new vn(e,Ee,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_n[e]=new vn(e,Ct,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_n[e]=new vn(e,Ae,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_n[e]=new vn(e,It,!1,e.toLowerCase(),null,!1,!1)});var ri=/[\-\:]([a-z])/g,hs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_n[e]=new vn(e,Z,!1,e.toLowerCase(),null,!1,!1)});var Ks="xlinkHref";_n[Ks]=new vn("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_n[e]=new vn(e,Z,!1,e.toLowerCase(),null,!0,!0)});var jl=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Si=!1;function ai(e){!Si&&jl.test(e)&&(Si=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function mr(e,t,s,l){if(l.mustUseProperty){var p=l.propertyName;return e[p]}else{Xt(s,t),l.sanitizeURL&&ai(""+s);var y=l.attributeName,w=null;if(l.type===Ct){if(e.hasAttribute(y)){var x=e.getAttribute(y);return x===""?!0:Rr(t,s,l,!1)?x:x===""+s?s:x}}else if(e.hasAttribute(y)){if(Rr(t,s,l,!1))return e.getAttribute(y);if(l.type===Ee)return s;w=e.getAttribute(y)}return Rr(t,s,l,!1)?w===null?s:w:w===""+s?s:w}}function ko(e,t,s,l){{if(!ir(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var p=e.getAttribute(t);return Xt(s,t),p===""+s?s:p}}function ii(e,t,s,l){var p=bo(t);if(!or(t,p,l)){if(Rr(t,s,p,l)&&(s=null),l||p===null){if(ir(t)){var y=t;s===null?e.removeAttribute(y):(Xt(s,t),e.setAttribute(y,""+s))}return}var w=p.mustUseProperty;if(w){var x=p.propertyName;if(s===null){var T=p.type;e[x]=T===Ee?!1:""}else e[x]=s;return}var L=p.attributeName,j=p.attributeNamespace;if(s===null)e.removeAttribute(L);else{var re=p.type,ee;re===Ee||re===Ct&&s===!0?ee="":(Xt(s,L),ee=""+s,p.sanitizeURL&&ai(ee.toString())),j?e.setAttributeNS(j,L,ee):e.setAttribute(L,ee)}}}var Qi=Symbol.for("react.element"),sa=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),wo=Symbol.for("react.strict_mode"),si=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),$e=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),St=Symbol.for("react.suspense"),an=Symbol.for("react.suspense_list"),Jt=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Yt=Symbol.for("react.scope"),Fr=Symbol.for("react.debug_trace_mode"),Bn=Symbol.for("react.offscreen"),jn=Symbol.for("react.legacy_hidden"),la=Symbol.for("react.cache"),xr=Symbol.for("react.tracing_marker"),en=Symbol.iterator,Wr="@@iterator";function ya(e){if(e===null||typeof e!="object")return null;var t=en&&e[en]||e[Wr];return typeof t=="function"?t:null}var Gt=Object.assign,Ci=0,ms,Il,Ki,Ba,Ml,Zr,Wu;function zl(){}zl.__reactDisabledLog=!0;function Vu(){{if(Ci===0){ms=console.log,Il=console.info,Ki=console.warn,Ba=console.error,Ml=console.group,Zr=console.groupCollapsed,Wu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:zl,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ci++}}function Zs(){{if(Ci--,Ci===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Gt({},e,{value:ms}),info:Gt({},e,{value:Il}),warn:Gt({},e,{value:Ki}),error:Gt({},e,{value:Ba}),group:Gt({},e,{value:Ml}),groupCollapsed:Gt({},e,{value:Zr}),groupEnd:Gt({},e,{value:Wu})})}Ci<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qo=o.ReactCurrentDispatcher,li;function ba(e,t,s){{if(li===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);li=l&&l[1]||""}return`
|
|
176
|
+
*/var OS;function D$(){return OS||(OS=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=_S(),r=NS(),o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u=!1;function f(e){u=e}function g(e){if(!u){for(var t=arguments.length,s=new Array(t>1?t-1:0),l=1;l<t;l++)s[l-1]=arguments[l];S("warn",e,s)}}function v(e){if(!u){for(var t=arguments.length,s=new Array(t>1?t-1:0),l=1;l<t;l++)s[l-1]=arguments[l];S("error",e,s)}}function S(e,t,s){{var l=o.ReactDebugCurrentFrame,p=l.getStackAddendum();p!==""&&(t+="%s",s=s.concat([p]));var y=s.map(function(w){return String(w)});y.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,y)}}var E=0,_=1,$=2,N=3,R=4,B=5,M=6,V=7,H=8,ge=9,K=10,Y=11,ne=12,U=13,ae=14,oe=15,Te=16,ye=17,Ve=18,rt=19,Ye=21,Fe=22,Pe=23,Ze=24,Ne=25,Be=!0,ve=!1,Re=!1,xe=!1,G=!1,ce=!0,gt=!1,ut=!0,ct=!0,vt=!0,it=!0,Rt=new Set,Lt={},sn={};function Fn(e,t){br(e,t),br(e+"Capture",t)}function br(e,t){Lt[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Lt[e]=t;{var s=e.toLowerCase();sn[s]=e,e==="onDoubleClick"&&(sn.ondblclick=e)}for(var l=0;l<t.length;l++)Rt.add(t[l])}var nn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ot=Object.prototype.hasOwnProperty;function Ln(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Ut(e){try{return Zt(e),!1}catch{return!0}}function Zt(e){return""+e}function Xt(e,t){if(Ut(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function va(e){if(Ut(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}function Yn(e,t){if(Ut(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function Cr(e,t){if(Ut(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Ln(e)),Zt(e)}function ar(e){if(Ut(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}function qr(e){if(Ut(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Ln(e)),Zt(e)}var be=0,Z=1,fe=2,Ee=3,Ct=4,It=5,Ae=6,Je=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",at=Je+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ht=new RegExp("^["+Je+"]["+at+"]*$"),wn={},Mn={};function ir(e){return ot.call(Mn,e)?!0:ot.call(wn,e)?!1:Ht.test(e)?(Mn[e]=!0,!0):(wn[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function or(e,t,s){return t!==null?t.type===be:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function sr(e,t,s,l){if(s!==null&&s.type===be)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(l)return!1;if(s!==null)return!s.acceptsBooleans;var p=e.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Rr(e,t,s,l){if(t===null||typeof t>"u"||sr(e,t,s,l))return!0;if(l)return!1;if(s!==null)switch(s.type){case Ee:return!t;case Ct:return t===!1;case It:return isNaN(t);case Ae:return isNaN(t)||t<1}return!1}function bo(e){return _n.hasOwnProperty(e)?_n[e]:null}function vn(e,t,s,l,p,y,w){this.acceptsBooleans=t===fe||t===Ee||t===Ct,this.attributeName=l,this.attributeNamespace=p,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=y,this.removeEmptyString=w}var _n={},Gi=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Gi.forEach(function(e){_n[e]=new vn(e,be,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];_n[t]=new vn(t,Z,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_n[e]=new vn(e,fe,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_n[e]=new vn(e,fe,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){_n[e]=new vn(e,Ee,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_n[e]=new vn(e,Ee,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_n[e]=new vn(e,Ct,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_n[e]=new vn(e,Ae,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_n[e]=new vn(e,It,!1,e.toLowerCase(),null,!1,!1)});var ri=/[\-\:]([a-z])/g,hs=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ri,hs);_n[t]=new vn(t,Z,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_n[e]=new vn(e,Z,!1,e.toLowerCase(),null,!1,!1)});var Ks="xlinkHref";_n[Ks]=new vn("xlinkHref",Z,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_n[e]=new vn(e,Z,!1,e.toLowerCase(),null,!0,!0)});var jl=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Si=!1;function ai(e){!Si&&jl.test(e)&&(Si=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function mr(e,t,s,l){if(l.mustUseProperty){var p=l.propertyName;return e[p]}else{Xt(s,t),l.sanitizeURL&&ai(""+s);var y=l.attributeName,w=null;if(l.type===Ct){if(e.hasAttribute(y)){var x=e.getAttribute(y);return x===""?!0:Rr(t,s,l,!1)?x:x===""+s?s:x}}else if(e.hasAttribute(y)){if(Rr(t,s,l,!1))return e.getAttribute(y);if(l.type===Ee)return s;w=e.getAttribute(y)}return Rr(t,s,l,!1)?w===null?s:w:w===""+s?s:w}}function ko(e,t,s,l){{if(!ir(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var p=e.getAttribute(t);return Xt(s,t),p===""+s?s:p}}function ii(e,t,s,l){var p=bo(t);if(!or(t,p,l)){if(Rr(t,s,p,l)&&(s=null),l||p===null){if(ir(t)){var y=t;s===null?e.removeAttribute(y):(Xt(s,t),e.setAttribute(y,""+s))}return}var w=p.mustUseProperty;if(w){var x=p.propertyName;if(s===null){var T=p.type;e[x]=T===Ee?!1:""}else e[x]=s;return}var L=p.attributeName,j=p.attributeNamespace;if(s===null)e.removeAttribute(L);else{var re=p.type,ee;re===Ee||re===Ct&&s===!0?ee="":(Xt(s,L),ee=""+s,p.sanitizeURL&&ai(ee.toString())),j?e.setAttributeNS(j,L,ee):e.setAttribute(L,ee)}}}var Qi=Symbol.for("react.element"),sa=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),wo=Symbol.for("react.strict_mode"),si=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),$e=Symbol.for("react.context"),Me=Symbol.for("react.forward_ref"),St=Symbol.for("react.suspense"),an=Symbol.for("react.suspense_list"),Jt=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Yt=Symbol.for("react.scope"),Fr=Symbol.for("react.debug_trace_mode"),Bn=Symbol.for("react.offscreen"),jn=Symbol.for("react.legacy_hidden"),la=Symbol.for("react.cache"),xr=Symbol.for("react.tracing_marker"),en=Symbol.iterator,Wr="@@iterator";function ya(e){if(e===null||typeof e!="object")return null;var t=en&&e[en]||e[Wr];return typeof t=="function"?t:null}var Gt=Object.assign,Ci=0,ms,Il,Ki,Ba,Ml,Zr,Wu;function zl(){}zl.__reactDisabledLog=!0;function Vu(){{if(Ci===0){ms=console.log,Il=console.info,Ki=console.warn,Ba=console.error,Ml=console.group,Zr=console.groupCollapsed,Wu=console.groupEnd;var e={configurable:!0,enumerable:!0,value:zl,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ci++}}function Zs(){{if(Ci--,Ci===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Gt({},e,{value:ms}),info:Gt({},e,{value:Il}),warn:Gt({},e,{value:Ki}),error:Gt({},e,{value:Ba}),group:Gt({},e,{value:Ml}),groupCollapsed:Gt({},e,{value:Zr}),groupEnd:Gt({},e,{value:Wu})})}Ci<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qo=o.ReactCurrentDispatcher,li;function ba(e,t,s){{if(li===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);li=l&&l[1]||""}return`
|
|
177
177
|
`+li+e}}var Wo=!1,gs;{var vs=typeof WeakMap=="function"?WeakMap:Map;gs=new vs}function Ul(e,t){if(!e||Wo)return"";{var s=gs.get(e);if(s!==void 0)return s}var l;Wo=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=qo.current,qo.current=null,Vu();try{if(t){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(me){l=me}Reflect.construct(e,[],w)}else{try{w.call()}catch(me){l=me}e.call(w.prototype)}}else{try{throw Error()}catch(me){l=me}e()}}catch(me){if(me&&l&&typeof me.stack=="string"){for(var x=me.stack.split(`
|
|
178
178
|
`),T=l.stack.split(`
|
|
179
179
|
`),L=x.length-1,j=T.length-1;L>=1&&j>=0&&x[L]!==T[j];)j--;for(;L>=1&&j>=0;L--,j--)if(x[L]!==T[j]){if(L!==1||j!==1)do if(L--,j--,j<0||x[L]!==T[j]){var re=`
|
|
@@ -193,8 +193,8 @@ Check the render method of \``+e+"`.":""}var Qu=["value","defaultValue"];functio
|
|
|
193
193
|
* @return {boolean} True if the event is supported.
|
|
194
194
|
* @internal
|
|
195
195
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
196
|
-
*/function nw(e){if(!nn)return!1;var t="on"+e,s=t in document;if(!s){var l=document.createElement("div");l.setAttribute(t,"return;"),s=typeof l[t]=="function"}return s}function km(){Fn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function a(e,t,s,l){md(l);var p=jb(t,"onChange");if(p.length>0){var y=new ei("onChange","change",null,s,l);e.push({event:y,listeners:p})}}var i=null,c=null;function m(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function k(e){var t=[];a(t,c,e,hd(e)),vd(D,t)}function D(e){w_(e,0)}function P(e){var t=Em(e);if(Wl(t))return e}function z(e,t){if(e==="change")return t}var Q=!1;nn&&(Q=nw("input")&&(!document.documentMode||document.documentMode>9));function he(e,t){i=e,c=t,i.attachEvent("onpropertychange",Ie)}function Oe(){i&&(i.detachEvent("onpropertychange",Ie),i=null,c=null)}function Ie(e){e.propertyName==="value"&&P(c)&&k(e)}function Le(e,t,s){e==="focusin"?(Oe(),he(t,s)):e==="focusout"&&Oe()}function dt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return P(c)}function yt(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Dt(e,t){if(e==="click")return P(t)}function Ir(e,t){if(e==="input"||e==="change")return P(t)}function ie(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Pt(e,"number",e.value)}function te(e,t,s,l,p,y,w){var x=s?Em(s):window,T,L;if(m(x)?T=z:Kd(x)?Q?T=Ir:(T=dt,L=Le):yt(x)&&(T=Dt),T){var j=T(t,s);if(j){a(e,j,l,p);return}}L&&L(t,x,s),t==="focusout"&&ie(x)}function ue(){br("onMouseEnter",["mouseout","mouseover"]),br("onMouseLeave",["mouseout","mouseover"]),br("onPointerEnter",["pointerout","pointerover"]),br("onPointerLeave",["pointerout","pointerover"])}function We(e,t,s,l,p,y,w){var x=t==="mouseover"||t==="pointerover",T=t==="mouseout"||t==="pointerout";if(x&&!Bh(l)){var L=l.relatedTarget||l.fromElement;if(L&&(Of(L)||Fv(L)))return}if(!(!T&&!x)){var j;if(p.window===p)j=p;else{var re=p.ownerDocument;re?j=re.defaultView||re.parentWindow:j=window}var ee,de;if(T){var me=l.relatedTarget||l.toElement;if(ee=s,de=me?Of(me):null,de!==null){var Ce=Wa(de);(de!==Ce||de.tag!==B&&de.tag!==M)&&(de=null)}}else ee=null,de=s;if(ee!==de){var tt=yu,Et="onMouseLeave",Nt="onMouseEnter",cn="mouse";(t==="pointerout"||t==="pointerover")&&(tt=dv,Et="onPointerLeave",Nt="onPointerEnter",cn="pointer");var on=ee==null?j:Em(ee),se=de==null?j:Em(de),Se=new tt(Et,cn+"leave",ee,l,p);Se.target=on,Se.relatedTarget=se;var le=null,Ue=Of(p);if(Ue===s){var ft=new tt(Nt,cn+"enter",de,l,p);ft.target=se,ft.relatedTarget=on,le=ft}CM(e,Se,le,ee,de)}}}function xt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:xt;function At(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(var p=0;p<s.length;p++){var y=s[p];if(!ot.call(t,y)||!bt(e[y],t[y]))return!1}return!0}function zt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ha(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function En(e,t){for(var s=zt(e),l=0,p=0;s;){if(s.nodeType===Da){if(p=l+s.textContent.length,l<=t&&p>=t)return{node:s,offset:t-l};l=p}s=zt(ha(s))}}function ku(e){var t=e.ownerDocument,s=t&&t.defaultView||window,l=s.getSelection&&s.getSelection();if(!l||l.rangeCount===0)return null;var p=l.anchorNode,y=l.anchorOffset,w=l.focusNode,x=l.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return rw(e,p,y,w,x)}function rw(e,t,s,l,p){var y=0,w=-1,x=-1,T=0,L=0,j=e,re=null;e:for(;;){for(var ee=null;j===t&&(s===0||j.nodeType===Da)&&(w=y+s),j===l&&(p===0||j.nodeType===Da)&&(x=y+p),j.nodeType===Da&&(y+=j.nodeValue.length),(ee=j.firstChild)!==null;)re=j,j=ee;for(;;){if(j===e)break e;if(re===t&&++T===s&&(w=y),re===l&&++L===p&&(x=y),(ee=j.nextSibling)!==null)break;j=re,re=j.parentNode}j=ee}return w===-1||x===-1?null:{start:w,end:x}}function iM(e,t){var s=e.ownerDocument||document,l=s&&s.defaultView||window;if(l.getSelection){var p=l.getSelection(),y=e.textContent.length,w=Math.min(t.start,y),x=t.end===void 0?w:Math.min(t.end,y);if(!p.extend&&w>x){var T=x;x=w,w=T}var L=En(e,w),j=En(e,x);if(L&&j){if(p.rangeCount===1&&p.anchorNode===L.node&&p.anchorOffset===L.offset&&p.focusNode===j.node&&p.focusOffset===j.offset)return;var re=s.createRange();re.setStart(L.node,L.offset),p.removeAllRanges(),w>x?(p.addRange(re),p.extend(j.node,j.offset)):(re.setEnd(j.node,j.offset),p.addRange(re))}}}function u_(e){return e&&e.nodeType===Da}function c_(e,t){return!e||!t?!1:e===t?!0:u_(e)?!1:u_(t)?c_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function oM(e){return e&&e.ownerDocument&&c_(e.ownerDocument.documentElement,e)}function sM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function d_(){for(var e=window,t=ks();t instanceof e.HTMLIFrameElement;){if(sM(t))e=t.contentWindow;else return t;t=ks(e.document)}return t}function aw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function lM(){var e=d_();return{focusedElem:e,selectionRange:aw(e)?cM(e):null}}function uM(e){var t=d_(),s=e.focusedElem,l=e.selectionRange;if(t!==s&&oM(s)){l!==null&&aw(s)&&dM(s,l);for(var p=[],y=s;y=y.parentNode;)y.nodeType===wa&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var w=0;w<p.length;w++){var x=p[w];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}}function cM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=ku(e),t||{start:0,end:0}}function dM(e,t){var s=t.start,l=t.end;l===void 0&&(l=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(l,e.value.length)):iM(e,t)}var pM=nn&&"documentMode"in document&&document.documentMode<=11;function fM(){Fn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var wm=null,iw=null,vv=null,ow=!1;function hM(e){if("selectionStart"in e&&aw(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function mM(e){return e.window===e?e.document:e.nodeType===Sa?e:e.ownerDocument}function p_(e,t,s){var l=mM(s);if(!(ow||wm==null||wm!==ks(l))){var p=hM(wm);if(!vv||!At(vv,p)){vv=p;var y=jb(iw,"onSelect");if(y.length>0){var w=new ei("onSelect","select",null,t,s);e.push({event:w,listeners:y}),w.target=wm}}}}function gM(e,t,s,l,p,y,w){var x=s?Em(s):window;switch(t){case"focusin":(Kd(x)||x.contentEditable==="true")&&(wm=x,iw=s,vv=null);break;case"focusout":wm=null,iw=null,vv=null;break;case"mousedown":ow=!0;break;case"contextmenu":case"mouseup":case"dragend":ow=!1,p_(e,l,p);break;case"selectionchange":if(pM)break;case"keydown":case"keyup":p_(e,l,p)}}function Ob(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Dm={animationend:Ob("Animation","AnimationEnd"),animationiteration:Ob("Animation","AnimationIteration"),animationstart:Ob("Animation","AnimationStart"),transitionend:Ob("Transition","TransitionEnd")},sw={},f_={};nn&&(f_=document.createElement("div").style,"AnimationEvent"in window||(delete Dm.animationend.animation,delete Dm.animationiteration.animation,delete Dm.animationstart.animation),"TransitionEvent"in window||delete Dm.transitionend.transition);function Lb(e){if(sw[e])return sw[e];if(!Dm[e])return e;var t=Dm[e];for(var s in t)if(t.hasOwnProperty(s)&&s in f_)return sw[e]=t[s];return e}var h_=Lb("animationend"),m_=Lb("animationiteration"),g_=Lb("animationstart"),v_=Lb("transitionend"),y_=new Map,b_=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Zd(e,t){y_.set(e,t),Fn(t,[e])}function vM(){for(var e=0;e<b_.length;e++){var t=b_[e],s=t.toLowerCase(),l=t[0].toUpperCase()+t.slice(1);Zd(s,"on"+l)}Zd(h_,"onAnimationEnd"),Zd(m_,"onAnimationIteration"),Zd(g_,"onAnimationStart"),Zd("dblclick","onDoubleClick"),Zd("focusin","onFocus"),Zd("focusout","onBlur"),Zd(v_,"onTransitionEnd")}function yM(e,t,s,l,p,y,w){var x=y_.get(t);if(x!==void 0){var T=ei,L=t;switch(t){case"keypress":if(xc(l)===0)return;case"keydown":case"keyup":T=K1;break;case"focusin":L="focus",T=dm;break;case"focusout":L="blur",T=dm;break;case"beforeblur":case"afterblur":T=dm;break;case"click":if(l.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=_c;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Ro;break;case h_:case m_:case g_:T=pm;break;case v_:T=X1;break;case"scroll":T=ov;break;case"wheel":T=hm;break;case"copy":case"cut":case"paste":T=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=dv;break}var j=(y&al)!==0;{var re=!j&&t==="scroll",ee=DM(s,x,l.type,j,re);if(ee.length>0){var de=new T(x,L,null,l,p);e.push({event:de,listeners:ee})}}}}vM(),ue(),km(),fM(),$b();function bM(e,t,s,l,p,y,w){yM(e,t,s,l,p,y);var x=(y&Mg)===0;x&&(We(e,t,s,l,p),te(e,t,s,l,p),gM(e,t,s,l,p),bm(e,t,s,l,p))}var yv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],lw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(yv));function k_(e,t,s){var l=e.type||"unknown-event";e.currentTarget=s,es(l,t,void 0,e),e.currentTarget=null}function kM(e,t,s){var l;if(s)for(var p=t.length-1;p>=0;p--){var y=t[p],w=y.instance,x=y.currentTarget,T=y.listener;if(w!==l&&e.isPropagationStopped())return;k_(e,T,x),l=w}else for(var L=0;L<t.length;L++){var j=t[L],re=j.instance,ee=j.currentTarget,de=j.listener;if(re!==l&&e.isPropagationStopped())return;k_(e,de,ee),l=re}}function w_(e,t){for(var s=(t&al)!==0,l=0;l<e.length;l++){var p=e[l],y=p.event,w=p.listeners;kM(y,w,s)}of()}function wM(e,t,s,l,p){var y=hd(s),w=[];bM(w,e,l,s,y,t),w_(w,t)}function Tr(e,t){lw.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,l=Z8(t),p=xM(e);l.has(p)||(D_(t,e,nc,s),l.add(p))}function uw(e,t,s){lw.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var l=0;t&&(l|=al),D_(s,e,l,t)}var Bb="_reactListening"+Math.random().toString(36).slice(2);function bv(e){if(!e[Bb]){e[Bb]=!0,Rt.forEach(function(s){s!=="selectionchange"&&(lw.has(s)||uw(s,!1,e),uw(s,!0,e))});var t=e.nodeType===Sa?e:e.ownerDocument;t!==null&&(t[Bb]||(t[Bb]=!0,uw("selectionchange",!1,t)))}}function D_(e,t,s,l,p){var y=Hd(e,t,s),w=void 0;au&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(w=!0),e=e,l?w!==void 0?gl(e,t,y,w):Wd(e,t,y):w!==void 0?lm(e,t,y,w):iv(e,t,y)}function S_(e,t){return e===t||e.nodeType===ur&&e.parentNode===t}function cw(e,t,s,l,p){var y=l;if(!(t&Zo)&&!(t&nc)){var w=p;if(l!==null){var x=l;e:for(;;){if(x===null)return;var T=x.tag;if(T===N||T===R){var L=x.stateNode.containerInfo;if(S_(L,w))break;if(T===R)for(var j=x.return;j!==null;){var re=j.tag;if(re===N||re===R){var ee=j.stateNode.containerInfo;if(S_(ee,w))return}j=j.return}for(;L!==null;){var de=Of(L);if(de===null)return;var me=de.tag;if(me===B||me===M){x=y=de;continue e}L=L.parentNode}}x=x.return}}}vd(function(){return wM(e,t,s,y)})}function kv(e,t,s){return{instance:e,listener:t,currentTarget:s}}function DM(e,t,s,l,p,y){for(var w=t!==null?t+"Capture":null,x=l?w:t,T=[],L=e,j=null;L!==null;){var re=L,ee=re.stateNode,de=re.tag;if(de===B&&ee!==null&&(j=ee,x!==null)){var me=_s(L,x);me!=null&&T.push(kv(L,me,j))}if(p)break;L=L.return}return T}function jb(e,t){for(var s=t+"Capture",l=[],p=e;p!==null;){var y=p,w=y.stateNode,x=y.tag;if(x===B&&w!==null){var T=w,L=_s(p,s);L!=null&&l.unshift(kv(p,L,T));var j=_s(p,t);j!=null&&l.push(kv(p,j,T))}p=p.return}return l}function Sm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==B);return e||null}function SM(e,t){for(var s=e,l=t,p=0,y=s;y;y=Sm(y))p++;for(var w=0,x=l;x;x=Sm(x))w++;for(;p-w>0;)s=Sm(s),p--;for(;w-p>0;)l=Sm(l),w--;for(var T=p;T--;){if(s===l||l!==null&&s===l.alternate)return s;s=Sm(s),l=Sm(l)}return null}function C_(e,t,s,l,p){for(var y=t._reactName,w=[],x=s;x!==null&&x!==l;){var T=x,L=T.alternate,j=T.stateNode,re=T.tag;if(L!==null&&L===l)break;if(re===B&&j!==null){var ee=j;if(p){var de=_s(x,y);de!=null&&w.unshift(kv(x,de,ee))}else if(!p){var me=_s(x,y);me!=null&&w.push(kv(x,me,ee))}}x=x.return}w.length!==0&&e.push({event:t,listeners:w})}function CM(e,t,s,l,p){var y=l&&p?SM(l,p):null;l!==null&&C_(e,t,l,y,!1),p!==null&&s!==null&&C_(e,s,p,y,!0)}function xM(e,t){return e+"__bubble"}var Oo=!1,wv="dangerouslySetInnerHTML",Ib="suppressContentEditableWarning",Xd="suppressHydrationWarning",x_="autoFocus",Nf="children",Rf="style",Mb="__html",dw,zb,Dv,E_,Ub,__,T_;dw={dialog:!0,webview:!0},zb=function(e,t){nu(e,t),Ju(e,t),Lh(e,t,{registrationNameDependencies:Lt,possibleRegistrationNames:sn})},__=nn&&!document.documentMode,Dv=function(e,t,s){if(!Oo){var l=Hb(s),p=Hb(t);p!==l&&(Oo=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(l)))}},E_=function(e){if(!Oo){Oo=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},Ub=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},T_=function(e,t){var s=e.namespaceURI===_i?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var EM=/\r\n?/g,_M=/\u0000|\uFFFD/g;function Hb(e){ar(e);var t=typeof e=="string"?e:""+e;return t.replace(EM,`
|
|
197
|
-
`).replace(_M,"")}function qb(e,t,s,l){var p=Hb(t),y=Hb(e);if(y!==p&&(l&&(Oo||(Oo=!0,v('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&Be))throw new Error("Text content does not match server-rendered HTML.")}function A_(e){return e.nodeType===Sa?e:e.ownerDocument}function TM(){}function Wb(e){e.onclick=TM}function AM(e,t,s,l,p){for(var y in l)if(l.hasOwnProperty(y)){var w=l[y];if(y===Rf)w&&Object.freeze(w),$h(t,w);else if(y===wv){var x=w?w[Mb]:void 0;x!=null&&Zl(t,x)}else if(y===Nf)if(typeof w=="string"){var T=e!=="textarea"||w!=="";T&&ud(t,w)}else typeof w=="number"&&ud(t,""+w);else y===Ib||y===Xd||y===x_||(Lt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Ub(y,w),y==="onScroll"&&Tr("scroll",t)):w!=null&&ii(t,y,w,p))}}function FM(e,t,s,l){for(var p=0;p<t.length;p+=2){var y=t[p],w=t[p+1];y===Rf?$h(e,w):y===wv?Zl(e,w):y===Nf?ud(e,w):ii(e,y,w,l)}}function $M(e,t,s,l){var p,y=A_(s),w,x=l;if(x===_i&&(x=ws(e)),x===_i){if(p=Ko(e,t),!p&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var T=y.createElement("div");T.innerHTML="<script><\/script>";var L=T.firstChild;w=T.removeChild(L)}else if(typeof t.is=="string")w=y.createElement(e,{is:t.is});else if(w=y.createElement(e),e==="select"){var j=w;t.multiple?j.multiple=!0:t.size&&(j.size=t.size)}}else w=y.createElementNS(x,e);return x===_i&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ot.call(dw,e)&&(dw[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),w}function PM(e,t){return A_(t).createTextNode(e)}function NM(e,t,s,l){var p=Ko(t,s);zb(t,s);var y;switch(t){case"dialog":Tr("cancel",e),Tr("close",e),y=s;break;case"iframe":case"object":case"embed":Tr("load",e),y=s;break;case"video":case"audio":for(var w=0;w<yv.length;w++)Tr(yv[w],e);y=s;break;case"source":Tr("error",e),y=s;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),y=s;break;case"details":Tr("toggle",e),y=s;break;case"input":q(e,s),y=F(e,s),Tr("invalid",e);break;case"option":Pn(e,s),y=s;break;case"select":Gl(e,s),y=Ku(e,s),Tr("invalid",e);break;case"textarea":Hp(e,s),y=sd(e,s),Tr("invalid",e);break;default:y=s}switch(pd(t,y),AM(t,e,l,y,p),t){case"input":Ei(e),He(e,s,!1);break;case"textarea":Ei(e),ld(e);break;case"option":Nn(e,s);break;case"select":zp(e,s);break;default:typeof y.onClick=="function"&&Wb(e);break}}function RM(e,t,s,l,p){zb(t,l);var y=null,w,x;switch(t){case"input":w=F(e,s),x=F(e,l),y=[];break;case"select":w=Ku(e,s),x=Ku(e,l),y=[];break;case"textarea":w=sd(e,s),x=sd(e,l),y=[];break;default:w=s,x=l,typeof w.onClick!="function"&&typeof x.onClick=="function"&&Wb(e);break}pd(t,x);var T,L,j=null;for(T in w)if(!(x.hasOwnProperty(T)||!w.hasOwnProperty(T)||w[T]==null))if(T===Rf){var re=w[T];for(L in re)re.hasOwnProperty(L)&&(j||(j={}),j[L]="")}else T===wv||T===Nf||T===Ib||T===Xd||T===x_||(Lt.hasOwnProperty(T)?y||(y=[]):(y=y||[]).push(T,null));for(T in x){var ee=x[T],de=w!=null?w[T]:void 0;if(!(!x.hasOwnProperty(T)||ee===de||ee==null&&de==null))if(T===Rf)if(ee&&Object.freeze(ee),de){for(L in de)de.hasOwnProperty(L)&&(!ee||!ee.hasOwnProperty(L))&&(j||(j={}),j[L]="");for(L in ee)ee.hasOwnProperty(L)&&de[L]!==ee[L]&&(j||(j={}),j[L]=ee[L])}else j||(y||(y=[]),y.push(T,j)),j=ee;else if(T===wv){var me=ee?ee[Mb]:void 0,Ce=de?de[Mb]:void 0;me!=null&&Ce!==me&&(y=y||[]).push(T,me)}else T===Nf?(typeof ee=="string"||typeof ee=="number")&&(y=y||[]).push(T,""+ee):T===Ib||T===Xd||(Lt.hasOwnProperty(T)?(ee!=null&&(typeof ee!="function"&&Ub(T,ee),T==="onScroll"&&Tr("scroll",e)),!y&&de!==ee&&(y=[])):(y=y||[]).push(T,ee))}return j&&(Ss(j,x[Rf]),(y=y||[]).push(Rf,j)),y}function OM(e,t,s,l,p){s==="input"&&p.type==="radio"&&p.name!=null&&pe(e,p);var y=Ko(s,l),w=Ko(s,p);switch(FM(e,t,y,w),s){case"input":we(e,p);break;case"textarea":Sh(e,p);break;case"select":Og(e,p);break}}function LM(e){{var t=e.toLowerCase();return fd.hasOwnProperty(t)&&fd[t]||null}}function BM(e,t,s,l,p,y,w){var x,T;switch(x=Ko(t,s),zb(t,s),t){case"dialog":Tr("cancel",e),Tr("close",e);break;case"iframe":case"object":case"embed":Tr("load",e);break;case"video":case"audio":for(var L=0;L<yv.length;L++)Tr(yv[L],e);break;case"source":Tr("error",e);break;case"img":case"image":case"link":Tr("error",e),Tr("load",e);break;case"details":Tr("toggle",e);break;case"input":q(e,s),Tr("invalid",e);break;case"option":Pn(e,s);break;case"select":Gl(e,s),Tr("invalid",e);break;case"textarea":Hp(e,s),Tr("invalid",e);break}pd(t,s);{T=new Set;for(var j=e.attributes,re=0;re<j.length;re++){var ee=j[re].name.toLowerCase();switch(ee){case"value":break;case"checked":break;case"selected":break;default:T.add(j[re].name)}}}var de=null;for(var me in s)if(s.hasOwnProperty(me)){var Ce=s[me];if(me===Nf)typeof Ce=="string"?e.textContent!==Ce&&(s[Xd]!==!0&&qb(e.textContent,Ce,y,w),de=[Nf,Ce]):typeof Ce=="number"&&e.textContent!==""+Ce&&(s[Xd]!==!0&&qb(e.textContent,Ce,y,w),de=[Nf,""+Ce]);else if(Lt.hasOwnProperty(me))Ce!=null&&(typeof Ce!="function"&&Ub(me,Ce),me==="onScroll"&&Tr("scroll",e));else if(w&&typeof x=="boolean"){var tt=void 0,Et=x&>?null:bo(me);if(s[Xd]!==!0&&!(me===Ib||me===Xd||me==="value"||me==="checked"||me==="selected")){if(me===wv){var Nt=e.innerHTML,cn=Ce?Ce[Mb]:void 0;if(cn!=null){var on=T_(e,cn);on!==Nt&&Dv(me,Nt,on)}}else if(me===Rf){if(T.delete(me),__){var se=Ig(Ce);tt=e.getAttribute("style"),se!==tt&&Dv(me,tt,se)}}else if(x&&!gt)T.delete(me.toLowerCase()),tt=ko(e,me,Ce),Ce!==tt&&Dv(me,tt,Ce);else if(!or(me,Et,x)&&!Rr(me,Ce,Et,x)){var Se=!1;if(Et!==null)T.delete(Et.attributeName),tt=mr(e,me,Ce,Et);else{var le=l;if(le===_i&&(le=ws(t)),le===_i)T.delete(me.toLowerCase());else{var Ue=LM(me);Ue!==null&&Ue!==me&&(Se=!0,T.delete(Ue)),T.delete(me)}tt=ko(e,me,Ce)}var ft=gt;!ft&&Ce!==tt&&!Se&&Dv(me,tt,Ce)}}}}switch(w&&T.size>0&&s[Xd]!==!0&&E_(T),t){case"input":Ei(e),He(e,s,!0);break;case"textarea":Ei(e),ld(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&Wb(e);break}return de}function jM(e,t,s){var l=e.nodeValue!==t;return l}function pw(e,t){{if(Oo)return;Oo=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function fw(e,t){{if(Oo)return;Oo=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function hw(e,t,s){{if(Oo)return;Oo=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function mw(e,t){{if(t===""||Oo)return;Oo=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function IM(e,t,s){switch(t){case"input":Ot(e,s);return;case"textarea":Ql(e,s);return;case"select":Lg(e,s);return}}var Sv=function(){},Cv=function(){};{var MM=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],F_=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],zM=F_.concat(["button"]),UM=["dd","dt","li","option","optgroup","p","rp","rt"],$_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Cv=function(e,t){var s=Gt({},e||$_),l={tag:t};return F_.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),zM.indexOf(t)!==-1&&(s.pTagInButtonScope=null),MM.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=l,t==="form"&&(s.formTag=l),t==="a"&&(s.aTagInScope=l),t==="button"&&(s.buttonTagInScope=l),t==="nobr"&&(s.nobrTagInScope=l),t==="p"&&(s.pTagInButtonScope=l),t==="li"&&(s.listItemTagAutoclosing=l),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=l),s};var HM=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return UM.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},qM=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},P_={};Sv=function(e,t,s){s=s||$_;var l=s.current,p=l&&l.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var y=HM(e,p)?null:l,w=y?null:qM(e,s),x=y||w;if(x){var T=x.tag,L=!!y+"|"+e+"|"+T;if(!P_[L]){P_[L]=!0;var j=e,re="";if(e==="#text"?/\S/.test(t)?j="Text nodes":(j="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):j="<"+e+">",y){var ee="";T==="table"&&e==="tr"&&(ee+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",j,T,re,ee)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",j,T)}}}}var Vb="suppressHydrationWarning",Yb="$",Gb="/$",xv="$?",Ev="$!",WM="style",gw=null,vw=null;function VM(e){var t,s,l=e.nodeType;switch(l){case Sa:case Co:{t=l===Sa?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:Vp(null,"");break}default:{var y=l===ur?e.parentNode:e,w=y.namespaceURI||null;t=y.tagName,s=Vp(w,t);break}}{var x=t.toLowerCase(),T=Cv(null,x);return{namespace:s,ancestorInfo:T}}}function YM(e,t,s){{var l=e,p=Vp(l.namespace,t),y=Cv(l.ancestorInfo,t);return{namespace:p,ancestorInfo:y}}}function GM(e){gw=oo(),vw=lM();var t=null;return fa(!1),t}function QM(e){uM(vw),fa(gw),gw=null,vw=null}function KM(e,t,s,l,p){var y;{var w=l;if(Sv(e,null,w.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var x=""+t.children,T=Cv(w.ancestorInfo,e);Sv(null,x,T)}y=w.namespace}var L=$M(e,t,s,y);return Av(p,L),xw(L,t),L}function ZM(e,t){e.appendChild(t)}function XM(e,t,s,l,p){switch(NM(e,t,s,l),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function JM(e,t,s,l,p,y){{var w=y;if(typeof l.children!=typeof s.children&&(typeof l.children=="string"||typeof l.children=="number")){var x=""+l.children,T=Cv(w.ancestorInfo,t);Sv(null,x,T)}}return RM(e,t,s,l)}function yw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function e8(e,t,s,l){{var p=s;Sv(null,e,p.ancestorInfo)}var y=PM(e,t);return Av(l,y),y}function t8(){var e=window.event;return e===void 0?fl:fi(e.type)}var bw=typeof setTimeout=="function"?setTimeout:void 0,n8=typeof clearTimeout=="function"?clearTimeout:void 0,kw=-1,N_=typeof Promise=="function"?Promise:void 0,r8=typeof queueMicrotask=="function"?queueMicrotask:typeof N_<"u"?function(e){return N_.resolve(null).then(e).catch(a8)}:bw;function a8(e){setTimeout(function(){throw e})}function i8(e,t,s,l){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function o8(e,t,s,l,p,y){OM(e,t,s,l,p),xw(e,p)}function R_(e){ud(e,"")}function s8(e,t,s){e.nodeValue=s}function l8(e,t){e.appendChild(t)}function u8(e,t){var s;e.nodeType===ur?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var l=e._reactRootContainer;l==null&&s.onclick===null&&Wb(s)}function c8(e,t,s){e.insertBefore(t,s)}function d8(e,t,s){e.nodeType===ur?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function p8(e,t){e.removeChild(t)}function f8(e,t){e.nodeType===ur?e.parentNode.removeChild(t):e.removeChild(t)}function ww(e,t){var s=t,l=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===ur){var y=p.data;if(y===Gb)if(l===0){e.removeChild(p),dn(t);return}else l--;else(y===Yb||y===xv||y===Ev)&&l++}s=p}while(s);dn(t)}function h8(e,t){e.nodeType===ur?ww(e.parentNode,t):e.nodeType===wa&&ww(e,t),dn(e)}function m8(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function g8(e){e.nodeValue=""}function v8(e,t){e=e;var s=t[WM],l=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Ds("display",l)}function y8(e,t){e.nodeValue=t}function b8(e){e.nodeType===wa?e.textContent="":e.nodeType===Sa&&e.documentElement&&e.removeChild(e.documentElement)}function k8(e,t,s){return e.nodeType!==wa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function w8(e,t){return t===""||e.nodeType!==Da?null:e}function D8(e){return e.nodeType!==ur?null:e}function O_(e){return e.data===xv}function Dw(e){return e.data===Ev}function S8(e){var t=e.nextSibling&&e.nextSibling.dataset,s,l,p;return t&&(s=t.dgst,l=t.msg,p=t.stck),{message:l,digest:s,stack:p}}function C8(e,t){e._reactRetry=t}function Qb(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===wa||t===Da)break;if(t===ur){var s=e.data;if(s===Yb||s===Ev||s===xv)break;if(s===Gb)return null}}return e}function _v(e){return Qb(e.nextSibling)}function x8(e){return Qb(e.firstChild)}function E8(e){return Qb(e.firstChild)}function _8(e){return Qb(e.nextSibling)}function T8(e,t,s,l,p,y,w){Av(y,e),xw(e,s);var x;{var T=p;x=T.namespace}var L=(y.mode&b)!==h;return BM(e,t,s,x,l,L,w)}function A8(e,t,s,l){return Av(s,e),s.mode&b,jM(e,t)}function F8(e,t){Av(t,e)}function $8(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===ur){var l=t.data;if(l===Gb){if(s===0)return _v(t);s--}else(l===Yb||l===Ev||l===xv)&&s++}t=t.nextSibling}return null}function L_(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===ur){var l=t.data;if(l===Yb||l===Ev||l===xv){if(s===0)return t;s--}else l===Gb&&s++}t=t.previousSibling}return null}function P8(e){dn(e)}function N8(e){dn(e)}function R8(e){return e!=="head"&&e!=="body"}function O8(e,t,s,l){var p=!0;qb(t.nodeValue,s,l,p)}function L8(e,t,s,l,p,y){if(t[Vb]!==!0){var w=!0;qb(l.nodeValue,p,y,w)}}function B8(e,t){t.nodeType===wa?pw(e,t):t.nodeType===ur||fw(e,t)}function j8(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===wa?pw(s,t):t.nodeType===ur||fw(s,t))}}function I8(e,t,s,l,p){(p||t[Vb]!==!0)&&(l.nodeType===wa?pw(s,l):l.nodeType===ur||fw(s,l))}function M8(e,t,s){hw(e,t)}function z8(e,t){mw(e,t)}function U8(e,t,s){{var l=e.parentNode;l!==null&&hw(l,t)}}function H8(e,t){{var s=e.parentNode;s!==null&&mw(s,t)}}function q8(e,t,s,l,p,y){(y||t[Vb]!==!0)&&hw(s,l)}function W8(e,t,s,l,p){(p||t[Vb]!==!0)&&mw(s,l)}function V8(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function Y8(e){bv(e)}var Cm=Math.random().toString(36).slice(2),xm="__reactFiber$"+Cm,Sw="__reactProps$"+Cm,Tv="__reactContainer$"+Cm,Cw="__reactEvents$"+Cm,G8="__reactListeners$"+Cm,Q8="__reactHandles$"+Cm;function K8(e){delete e[xm],delete e[Sw],delete e[Cw],delete e[G8],delete e[Q8]}function Av(e,t){t[xm]=e}function Kb(e,t){t[Tv]=e}function B_(e){e[Tv]=null}function Fv(e){return!!e[Tv]}function Of(e){var t=e[xm];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Tv]||s[xm],t){var l=t.alternate;if(t.child!==null||l!==null&&l.child!==null)for(var p=L_(e);p!==null;){var y=p[xm];if(y)return y;p=L_(p)}return t}e=s,s=e.parentNode}return null}function Jd(e){var t=e[xm]||e[Tv];return t&&(t.tag===B||t.tag===M||t.tag===U||t.tag===N)?t:null}function Em(e){if(e.tag===B||e.tag===M)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Zb(e){return e[Sw]||null}function xw(e,t){e[Sw]=t}function Z8(e){var t=e[Cw];return t===void 0&&(t=e[Cw]=new Set),t}var j_={},I_=o.ReactDebugCurrentFrame;function Xb(e){if(e){var t=e._owner,s=Do(e.type,e._source,t?t.type:null);I_.setExtraStackFrame(s)}else I_.setExtraStackFrame(null)}function yl(e,t,s,l,p){{var y=Function.call.bind(ot);for(var w in e)if(y(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var T=Error((l||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}x=e[w](t,w,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){x=L}x&&!(x instanceof Error)&&(Xb(p),v("%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).",l||"React class",s,w,typeof x),Xb(null)),x instanceof Error&&!(x.message in j_)&&(j_[x.message]=!0,Xb(p),v("Failed %s type: %s",s,x.message),Xb(null))}}}var Ew=[],Jb;Jb=[];var $c=-1;function ep(e){return{current:e}}function Mi(e,t){if($c<0){v("Unexpected pop.");return}t!==Jb[$c]&&v("Unexpected Fiber popped."),e.current=Ew[$c],Ew[$c]=null,Jb[$c]=null,$c--}function zi(e,t,s){$c++,Ew[$c]=e.current,Jb[$c]=s,e.current=t}var _w;_w={};var as={};Object.freeze(as);var Pc=ep(as),wu=ep(!1),Tw=as;function _m(e,t,s){return s&&Du(t)?Tw:Pc.current}function M_(e,t,s){{var l=e.stateNode;l.__reactInternalMemoizedUnmaskedChildContext=t,l.__reactInternalMemoizedMaskedChildContext=s}}function Tm(e,t){{var s=e.type,l=s.contextTypes;if(!l)return as;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in l)y[w]=t[w];{var x=Mt(e)||"Unknown";yl(l,y,"context",x)}return p&&M_(e,t,y),y}}function e0(){return wu.current}function Du(e){{var t=e.childContextTypes;return t!=null}}function t0(e){Mi(wu,e),Mi(Pc,e)}function Aw(e){Mi(wu,e),Mi(Pc,e)}function z_(e,t,s){{if(Pc.current!==as)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");zi(Pc,t,e),zi(wu,s,e)}}function U_(e,t,s){{var l=e.stateNode,p=t.childContextTypes;if(typeof l.getChildContext!="function"){{var y=Mt(e)||"Unknown";_w[y]||(_w[y]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return s}var w=l.getChildContext();for(var x in w)if(!(x in p))throw new Error((Mt(e)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var T=Mt(e)||"Unknown";yl(p,w,"child context",T)}return Gt({},s,w)}}function n0(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||as;return Tw=Pc.current,zi(Pc,s,e),zi(wu,wu.current,e),!0}}function H_(e,t,s){{var l=e.stateNode;if(!l)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=U_(e,t,Tw);l.__reactInternalMemoizedMergedChildContext=p,Mi(wu,e),Mi(Pc,e),zi(Pc,p,e),zi(wu,s,e)}else Mi(wu,e),zi(wu,s,e)}}function X8(e){{if(!dc(e)||e.tag!==_)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case _:{var s=t.type;if(Du(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var tp=0,r0=1,Nc=null,Fw=!1,$w=!1;function q_(e){Nc===null?Nc=[e]:Nc.push(e)}function J8(e){Fw=!0,q_(e)}function W_(){Fw&&np()}function np(){if(!$w&&Nc!==null){$w=!0;var e=0,t=$o();try{var s=!0,l=Nc;for(Jr(Qa);e<l.length;e++){var p=l[e];do p=p(s);while(p!==null)}Nc=null,Fw=!1}catch(y){throw Nc!==null&&(Nc=Nc.slice(e+1)),wd(Sd,np),y}finally{Jr(t),$w=!1}}return null}var Am=[],Fm=0,a0=null,i0=0,Bs=[],js=0,Lf=null,Rc=1,Oc="";function e6(e){return jf(),(e.flags&lf)!==_t}function t6(e){return jf(),i0}function n6(){var e=Oc,t=Rc,s=t&~r6(t);return s.toString(32)+e}function Bf(e,t){jf(),Am[Fm++]=i0,Am[Fm++]=a0,a0=e,i0=t}function V_(e,t,s){jf(),Bs[js++]=Rc,Bs[js++]=Oc,Bs[js++]=Lf,Lf=e;var l=Rc,p=Oc,y=o0(l)-1,w=l&~(1<<y),x=s+1,T=o0(t)+y;if(T>30){var L=y-y%5,j=(1<<L)-1,re=(w&j).toString(32),ee=w>>L,de=y-L,me=o0(t)+de,Ce=x<<de,tt=Ce|ee,Et=re+p;Rc=1<<me|tt,Oc=Et}else{var Nt=x<<y,cn=Nt|w,on=p;Rc=1<<T|cn,Oc=on}}function Pw(e){jf();var t=e.return;if(t!==null){var s=1,l=0;Bf(e,s),V_(e,s,l)}}function o0(e){return 32-J(e)}function r6(e){return 1<<o0(e)-1}function Nw(e){for(;e===a0;)a0=Am[--Fm],Am[Fm]=null,i0=Am[--Fm],Am[Fm]=null;for(;e===Lf;)Lf=Bs[--js],Bs[js]=null,Oc=Bs[--js],Bs[js]=null,Rc=Bs[--js],Bs[js]=null}function a6(){return jf(),Lf!==null?{id:Rc,overflow:Oc}:null}function i6(e,t){jf(),Bs[js++]=Rc,Bs[js++]=Oc,Bs[js++]=Lf,Rc=t.id,Oc=t.overflow,Lf=e}function jf(){mi()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var hi=null,Is=null,bl=!1,If=!1,rp=null;function o6(){bl&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Y_(){If=!0}function s6(){return If}function l6(e){var t=e.stateNode.containerInfo;return Is=E8(t),hi=e,bl=!0,rp=null,If=!1,!0}function u6(e,t,s){return Is=_8(t),hi=e,bl=!0,rp=null,If=!1,s!==null&&i6(e,s),!0}function G_(e,t){switch(e.tag){case N:{B8(e.stateNode.containerInfo,t);break}case B:{var s=(e.mode&b)!==h;I8(e.type,e.memoizedProps,e.stateNode,t,s);break}case U:{var l=e.memoizedState;l.dehydrated!==null&&j8(l.dehydrated,t);break}}}function Q_(e,t){G_(e,t);var s=f7();s.stateNode=t,s.return=e;var l=e.deletions;l===null?(e.deletions=[s],e.flags|=Cn):l.push(s)}function Rw(e,t){{if(If)return;switch(e.tag){case N:{var s=e.stateNode.containerInfo;switch(t.tag){case B:var l=t.type;t.pendingProps,M8(s,l);break;case M:var p=t.pendingProps;z8(s,p);break}break}case B:{var y=e.type,w=e.memoizedProps,x=e.stateNode;switch(t.tag){case B:{var T=t.type,L=t.pendingProps,j=(e.mode&b)!==h;q8(y,w,x,T,L,j);break}case M:{var re=t.pendingProps,ee=(e.mode&b)!==h;W8(y,w,x,re,ee);break}}break}case U:{var de=e.memoizedState,me=de.dehydrated;if(me!==null)switch(t.tag){case B:var Ce=t.type;t.pendingProps,U8(me,Ce);break;case M:var tt=t.pendingProps;H8(me,tt);break}break}default:return}}}function K_(e,t){t.flags=t.flags&~Pi|tr,Rw(e,t)}function Z_(e,t){switch(e.tag){case B:{var s=e.type;e.pendingProps;var l=k8(t,s);return l!==null?(e.stateNode=l,hi=e,Is=x8(l),!0):!1}case M:{var p=e.pendingProps,y=w8(t,p);return y!==null?(e.stateNode=y,hi=e,Is=null,!0):!1}case U:{var w=D8(t);if(w!==null){var x={dehydrated:w,treeContext:a6(),retryLane:Ga};e.memoizedState=x;var T=h7(w);return T.return=e,e.child=T,hi=e,Is=null,!0}return!1}default:return!1}}function Ow(e){return(e.mode&b)!==h&&(e.flags&Ft)===_t}function Lw(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Bw(e){if(bl){var t=Is;if(!t){Ow(e)&&(Rw(hi,e),Lw()),K_(hi,e),bl=!1,hi=e;return}var s=t;if(!Z_(e,t)){Ow(e)&&(Rw(hi,e),Lw()),t=_v(s);var l=hi;if(!t||!Z_(e,t)){K_(hi,e),bl=!1,hi=e;return}Q_(l,s)}}}function c6(e,t,s){var l=e.stateNode,p=!If,y=T8(l,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=y,y!==null}function d6(e){var t=e.stateNode,s=e.memoizedProps,l=A8(t,s,e);if(l){var p=hi;if(p!==null)switch(p.tag){case N:{var y=p.stateNode.containerInfo,w=(p.mode&b)!==h;O8(y,t,s,w);break}case B:{var x=p.type,T=p.memoizedProps,L=p.stateNode,j=(p.mode&b)!==h;L8(x,T,L,t,s,j);break}}}return l}function p6(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");F8(s,e)}function f6(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return $8(s)}function X_(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==N&&t.tag!==U;)t=t.return;hi=t}function s0(e){if(e!==hi)return!1;if(!bl)return X_(e),bl=!0,!1;if(e.tag!==N&&(e.tag!==B||R8(e.type)&&!yw(e.type,e.memoizedProps))){var t=Is;if(t)if(Ow(e))J_(e),Lw();else for(;t;)Q_(e,t),t=_v(t)}return X_(e),e.tag===U?Is=f6(e):Is=hi?_v(e.stateNode):null,!0}function h6(){return bl&&Is!==null}function J_(e){for(var t=Is;t;)G_(e,t),t=_v(t)}function $m(){hi=null,Is=null,bl=!1,If=!1}function eT(){rp!==null&&(YA(rp),rp=null)}function mi(){return bl}function jw(e){rp===null?rp=[e]:rp.push(e)}var m6=o.ReactCurrentBatchConfig,g6=null;function v6(){return m6.transition}var kl={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var y6=function(e){for(var t=null,s=e;s!==null;)s.mode&A&&(t=s),s=s.return;return t},Mf=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},$v=[],Pv=[],Nv=[],Rv=[],Ov=[],Lv=[],zf=new Set;kl.recordUnsafeLifecycleWarnings=function(e,t){zf.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&$v.push(e),e.mode&A&&typeof t.UNSAFE_componentWillMount=="function"&&Pv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nv.push(e),e.mode&A&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Rv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ov.push(e),e.mode&A&&typeof t.UNSAFE_componentWillUpdate=="function"&&Lv.push(e))},kl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;$v.length>0&&($v.forEach(function(ee){e.add(Mt(ee)||"Component"),zf.add(ee.type)}),$v=[]);var t=new Set;Pv.length>0&&(Pv.forEach(function(ee){t.add(Mt(ee)||"Component"),zf.add(ee.type)}),Pv=[]);var s=new Set;Nv.length>0&&(Nv.forEach(function(ee){s.add(Mt(ee)||"Component"),zf.add(ee.type)}),Nv=[]);var l=new Set;Rv.length>0&&(Rv.forEach(function(ee){l.add(Mt(ee)||"Component"),zf.add(ee.type)}),Rv=[]);var p=new Set;Ov.length>0&&(Ov.forEach(function(ee){p.add(Mt(ee)||"Component"),zf.add(ee.type)}),Ov=[]);var y=new Set;if(Lv.length>0&&(Lv.forEach(function(ee){y.add(Mt(ee)||"Component"),zf.add(ee.type)}),Lv=[]),t.size>0){var w=Mf(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
196
|
+
*/function nw(e){if(!nn)return!1;var t="on"+e,s=t in document;if(!s){var l=document.createElement("div");l.setAttribute(t,"return;"),s=typeof l[t]=="function"}return s}function km(){Fn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function a(e,t,s,l){md(l);var p=jb(t,"onChange");if(p.length>0){var y=new ei("onChange","change",null,s,l);e.push({event:y,listeners:p})}}var i=null,c=null;function m(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function k(e){var t=[];a(t,c,e,hd(e)),vd(D,t)}function D(e){D_(e,0)}function P(e){var t=Em(e);if(Wl(t))return e}function z(e,t){if(e==="change")return t}var Q=!1;nn&&(Q=nw("input")&&(!document.documentMode||document.documentMode>9));function he(e,t){i=e,c=t,i.attachEvent("onpropertychange",Ie)}function Oe(){i&&(i.detachEvent("onpropertychange",Ie),i=null,c=null)}function Ie(e){e.propertyName==="value"&&P(c)&&k(e)}function Le(e,t,s){e==="focusin"?(Oe(),he(t,s)):e==="focusout"&&Oe()}function dt(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return P(c)}function yt(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Dt(e,t){if(e==="click")return P(t)}function Ir(e,t){if(e==="input"||e==="change")return P(t)}function ie(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Pt(e,"number",e.value)}function te(e,t,s,l,p,y,w){var x=s?Em(s):window,T,L;if(m(x)?T=z:Kd(x)?Q?T=Ir:(T=dt,L=Le):yt(x)&&(T=Dt),T){var j=T(t,s);if(j){a(e,j,l,p);return}}L&&L(t,x,s),t==="focusout"&&ie(x)}function ue(){br("onMouseEnter",["mouseout","mouseover"]),br("onMouseLeave",["mouseout","mouseover"]),br("onPointerEnter",["pointerout","pointerover"]),br("onPointerLeave",["pointerout","pointerover"])}function We(e,t,s,l,p,y,w){var x=t==="mouseover"||t==="pointerover",T=t==="mouseout"||t==="pointerout";if(x&&!Bh(l)){var L=l.relatedTarget||l.fromElement;if(L&&(Of(L)||Fv(L)))return}if(!(!T&&!x)){var j;if(p.window===p)j=p;else{var re=p.ownerDocument;re?j=re.defaultView||re.parentWindow:j=window}var ee,de;if(T){var me=l.relatedTarget||l.toElement;if(ee=s,de=me?Of(me):null,de!==null){var Ce=Wa(de);(de!==Ce||de.tag!==B&&de.tag!==M)&&(de=null)}}else ee=null,de=s;if(ee!==de){var tt=yu,Et="onMouseLeave",Nt="onMouseEnter",cn="mouse";(t==="pointerout"||t==="pointerover")&&(tt=dv,Et="onPointerLeave",Nt="onPointerEnter",cn="pointer");var on=ee==null?j:Em(ee),se=de==null?j:Em(de),Se=new tt(Et,cn+"leave",ee,l,p);Se.target=on,Se.relatedTarget=se;var le=null,Ue=Of(p);if(Ue===s){var ft=new tt(Nt,cn+"enter",de,l,p);ft.target=se,ft.relatedTarget=on,le=ft}xM(e,Se,le,ee,de)}}}function xt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:xt;function At(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(var p=0;p<s.length;p++){var y=s[p];if(!ot.call(t,y)||!bt(e[y],t[y]))return!1}return!0}function zt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ha(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function En(e,t){for(var s=zt(e),l=0,p=0;s;){if(s.nodeType===Da){if(p=l+s.textContent.length,l<=t&&p>=t)return{node:s,offset:t-l};l=p}s=zt(ha(s))}}function ku(e){var t=e.ownerDocument,s=t&&t.defaultView||window,l=s.getSelection&&s.getSelection();if(!l||l.rangeCount===0)return null;var p=l.anchorNode,y=l.anchorOffset,w=l.focusNode,x=l.focusOffset;try{p.nodeType,w.nodeType}catch{return null}return rw(e,p,y,w,x)}function rw(e,t,s,l,p){var y=0,w=-1,x=-1,T=0,L=0,j=e,re=null;e:for(;;){for(var ee=null;j===t&&(s===0||j.nodeType===Da)&&(w=y+s),j===l&&(p===0||j.nodeType===Da)&&(x=y+p),j.nodeType===Da&&(y+=j.nodeValue.length),(ee=j.firstChild)!==null;)re=j,j=ee;for(;;){if(j===e)break e;if(re===t&&++T===s&&(w=y),re===l&&++L===p&&(x=y),(ee=j.nextSibling)!==null)break;j=re,re=j.parentNode}j=ee}return w===-1||x===-1?null:{start:w,end:x}}function oM(e,t){var s=e.ownerDocument||document,l=s&&s.defaultView||window;if(l.getSelection){var p=l.getSelection(),y=e.textContent.length,w=Math.min(t.start,y),x=t.end===void 0?w:Math.min(t.end,y);if(!p.extend&&w>x){var T=x;x=w,w=T}var L=En(e,w),j=En(e,x);if(L&&j){if(p.rangeCount===1&&p.anchorNode===L.node&&p.anchorOffset===L.offset&&p.focusNode===j.node&&p.focusOffset===j.offset)return;var re=s.createRange();re.setStart(L.node,L.offset),p.removeAllRanges(),w>x?(p.addRange(re),p.extend(j.node,j.offset)):(re.setEnd(j.node,j.offset),p.addRange(re))}}}function c_(e){return e&&e.nodeType===Da}function d_(e,t){return!e||!t?!1:e===t?!0:c_(e)?!1:c_(t)?d_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function sM(e){return e&&e.ownerDocument&&d_(e.ownerDocument.documentElement,e)}function lM(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function p_(){for(var e=window,t=ks();t instanceof e.HTMLIFrameElement;){if(lM(t))e=t.contentWindow;else return t;t=ks(e.document)}return t}function aw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uM(){var e=p_();return{focusedElem:e,selectionRange:aw(e)?dM(e):null}}function cM(e){var t=p_(),s=e.focusedElem,l=e.selectionRange;if(t!==s&&sM(s)){l!==null&&aw(s)&&pM(s,l);for(var p=[],y=s;y=y.parentNode;)y.nodeType===wa&&p.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof s.focus=="function"&&s.focus();for(var w=0;w<p.length;w++){var x=p[w];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}}function dM(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=ku(e),t||{start:0,end:0}}function pM(e,t){var s=t.start,l=t.end;l===void 0&&(l=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(l,e.value.length)):oM(e,t)}var fM=nn&&"documentMode"in document&&document.documentMode<=11;function hM(){Fn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var wm=null,iw=null,vv=null,ow=!1;function mM(e){if("selectionStart"in e&&aw(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function gM(e){return e.window===e?e.document:e.nodeType===Sa?e:e.ownerDocument}function f_(e,t,s){var l=gM(s);if(!(ow||wm==null||wm!==ks(l))){var p=mM(wm);if(!vv||!At(vv,p)){vv=p;var y=jb(iw,"onSelect");if(y.length>0){var w=new ei("onSelect","select",null,t,s);e.push({event:w,listeners:y}),w.target=wm}}}}function vM(e,t,s,l,p,y,w){var x=s?Em(s):window;switch(t){case"focusin":(Kd(x)||x.contentEditable==="true")&&(wm=x,iw=s,vv=null);break;case"focusout":wm=null,iw=null,vv=null;break;case"mousedown":ow=!0;break;case"contextmenu":case"mouseup":case"dragend":ow=!1,f_(e,l,p);break;case"selectionchange":if(fM)break;case"keydown":case"keyup":f_(e,l,p)}}function Ob(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Dm={animationend:Ob("Animation","AnimationEnd"),animationiteration:Ob("Animation","AnimationIteration"),animationstart:Ob("Animation","AnimationStart"),transitionend:Ob("Transition","TransitionEnd")},sw={},h_={};nn&&(h_=document.createElement("div").style,"AnimationEvent"in window||(delete Dm.animationend.animation,delete Dm.animationiteration.animation,delete Dm.animationstart.animation),"TransitionEvent"in window||delete Dm.transitionend.transition);function Lb(e){if(sw[e])return sw[e];if(!Dm[e])return e;var t=Dm[e];for(var s in t)if(t.hasOwnProperty(s)&&s in h_)return sw[e]=t[s];return e}var m_=Lb("animationend"),g_=Lb("animationiteration"),v_=Lb("animationstart"),y_=Lb("transitionend"),b_=new Map,k_=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Zd(e,t){b_.set(e,t),Fn(t,[e])}function yM(){for(var e=0;e<k_.length;e++){var t=k_[e],s=t.toLowerCase(),l=t[0].toUpperCase()+t.slice(1);Zd(s,"on"+l)}Zd(m_,"onAnimationEnd"),Zd(g_,"onAnimationIteration"),Zd(v_,"onAnimationStart"),Zd("dblclick","onDoubleClick"),Zd("focusin","onFocus"),Zd("focusout","onBlur"),Zd(y_,"onTransitionEnd")}function bM(e,t,s,l,p,y,w){var x=b_.get(t);if(x!==void 0){var T=ei,L=t;switch(t){case"keypress":if(xc(l)===0)return;case"keydown":case"keyup":T=K1;break;case"focusin":L="focus",T=dm;break;case"focusout":L="blur",T=dm;break;case"beforeblur":case"afterblur":T=dm;break;case"click":if(l.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=yu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=_c;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Ro;break;case m_:case g_:case v_:T=pm;break;case y_:T=X1;break;case"scroll":T=ov;break;case"wheel":T=hm;break;case"copy":case"cut":case"paste":T=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=dv;break}var j=(y&al)!==0;{var re=!j&&t==="scroll",ee=SM(s,x,l.type,j,re);if(ee.length>0){var de=new T(x,L,null,l,p);e.push({event:de,listeners:ee})}}}}yM(),ue(),km(),hM(),$b();function kM(e,t,s,l,p,y,w){bM(e,t,s,l,p,y);var x=(y&Mg)===0;x&&(We(e,t,s,l,p),te(e,t,s,l,p),vM(e,t,s,l,p),bm(e,t,s,l,p))}var yv=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],lw=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(yv));function w_(e,t,s){var l=e.type||"unknown-event";e.currentTarget=s,es(l,t,void 0,e),e.currentTarget=null}function wM(e,t,s){var l;if(s)for(var p=t.length-1;p>=0;p--){var y=t[p],w=y.instance,x=y.currentTarget,T=y.listener;if(w!==l&&e.isPropagationStopped())return;w_(e,T,x),l=w}else for(var L=0;L<t.length;L++){var j=t[L],re=j.instance,ee=j.currentTarget,de=j.listener;if(re!==l&&e.isPropagationStopped())return;w_(e,de,ee),l=re}}function D_(e,t){for(var s=(t&al)!==0,l=0;l<e.length;l++){var p=e[l],y=p.event,w=p.listeners;wM(y,w,s)}of()}function DM(e,t,s,l,p){var y=hd(s),w=[];kM(w,e,l,s,y,t),D_(w,t)}function Tr(e,t){lw.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,l=X8(t),p=EM(e);l.has(p)||(S_(t,e,nc,s),l.add(p))}function uw(e,t,s){lw.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var l=0;t&&(l|=al),S_(s,e,l,t)}var Bb="_reactListening"+Math.random().toString(36).slice(2);function bv(e){if(!e[Bb]){e[Bb]=!0,Rt.forEach(function(s){s!=="selectionchange"&&(lw.has(s)||uw(s,!1,e),uw(s,!0,e))});var t=e.nodeType===Sa?e:e.ownerDocument;t!==null&&(t[Bb]||(t[Bb]=!0,uw("selectionchange",!1,t)))}}function S_(e,t,s,l,p){var y=Hd(e,t,s),w=void 0;au&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(w=!0),e=e,l?w!==void 0?gl(e,t,y,w):Wd(e,t,y):w!==void 0?lm(e,t,y,w):iv(e,t,y)}function C_(e,t){return e===t||e.nodeType===ur&&e.parentNode===t}function cw(e,t,s,l,p){var y=l;if(!(t&Zo)&&!(t&nc)){var w=p;if(l!==null){var x=l;e:for(;;){if(x===null)return;var T=x.tag;if(T===N||T===R){var L=x.stateNode.containerInfo;if(C_(L,w))break;if(T===R)for(var j=x.return;j!==null;){var re=j.tag;if(re===N||re===R){var ee=j.stateNode.containerInfo;if(C_(ee,w))return}j=j.return}for(;L!==null;){var de=Of(L);if(de===null)return;var me=de.tag;if(me===B||me===M){x=y=de;continue e}L=L.parentNode}}x=x.return}}}vd(function(){return DM(e,t,s,y)})}function kv(e,t,s){return{instance:e,listener:t,currentTarget:s}}function SM(e,t,s,l,p,y){for(var w=t!==null?t+"Capture":null,x=l?w:t,T=[],L=e,j=null;L!==null;){var re=L,ee=re.stateNode,de=re.tag;if(de===B&&ee!==null&&(j=ee,x!==null)){var me=_s(L,x);me!=null&&T.push(kv(L,me,j))}if(p)break;L=L.return}return T}function jb(e,t){for(var s=t+"Capture",l=[],p=e;p!==null;){var y=p,w=y.stateNode,x=y.tag;if(x===B&&w!==null){var T=w,L=_s(p,s);L!=null&&l.unshift(kv(p,L,T));var j=_s(p,t);j!=null&&l.push(kv(p,j,T))}p=p.return}return l}function Sm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==B);return e||null}function CM(e,t){for(var s=e,l=t,p=0,y=s;y;y=Sm(y))p++;for(var w=0,x=l;x;x=Sm(x))w++;for(;p-w>0;)s=Sm(s),p--;for(;w-p>0;)l=Sm(l),w--;for(var T=p;T--;){if(s===l||l!==null&&s===l.alternate)return s;s=Sm(s),l=Sm(l)}return null}function x_(e,t,s,l,p){for(var y=t._reactName,w=[],x=s;x!==null&&x!==l;){var T=x,L=T.alternate,j=T.stateNode,re=T.tag;if(L!==null&&L===l)break;if(re===B&&j!==null){var ee=j;if(p){var de=_s(x,y);de!=null&&w.unshift(kv(x,de,ee))}else if(!p){var me=_s(x,y);me!=null&&w.push(kv(x,me,ee))}}x=x.return}w.length!==0&&e.push({event:t,listeners:w})}function xM(e,t,s,l,p){var y=l&&p?CM(l,p):null;l!==null&&x_(e,t,l,y,!1),p!==null&&s!==null&&x_(e,s,p,y,!0)}function EM(e,t){return e+"__bubble"}var Oo=!1,wv="dangerouslySetInnerHTML",Ib="suppressContentEditableWarning",Xd="suppressHydrationWarning",E_="autoFocus",Nf="children",Rf="style",Mb="__html",dw,zb,Dv,__,Ub,T_,A_;dw={dialog:!0,webview:!0},zb=function(e,t){nu(e,t),Ju(e,t),Lh(e,t,{registrationNameDependencies:Lt,possibleRegistrationNames:sn})},T_=nn&&!document.documentMode,Dv=function(e,t,s){if(!Oo){var l=Hb(s),p=Hb(t);p!==l&&(Oo=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(p),JSON.stringify(l)))}},__=function(e){if(!Oo){Oo=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},Ub=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},A_=function(e,t){var s=e.namespaceURI===_i?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var _M=/\r\n?/g,TM=/\u0000|\uFFFD/g;function Hb(e){ar(e);var t=typeof e=="string"?e:""+e;return t.replace(_M,`
|
|
197
|
+
`).replace(TM,"")}function qb(e,t,s,l){var p=Hb(t),y=Hb(e);if(y!==p&&(l&&(Oo||(Oo=!0,v('Text content did not match. Server: "%s" Client: "%s"',y,p))),s&&Be))throw new Error("Text content does not match server-rendered HTML.")}function F_(e){return e.nodeType===Sa?e:e.ownerDocument}function AM(){}function Wb(e){e.onclick=AM}function FM(e,t,s,l,p){for(var y in l)if(l.hasOwnProperty(y)){var w=l[y];if(y===Rf)w&&Object.freeze(w),$h(t,w);else if(y===wv){var x=w?w[Mb]:void 0;x!=null&&Zl(t,x)}else if(y===Nf)if(typeof w=="string"){var T=e!=="textarea"||w!=="";T&&ud(t,w)}else typeof w=="number"&&ud(t,""+w);else y===Ib||y===Xd||y===E_||(Lt.hasOwnProperty(y)?w!=null&&(typeof w!="function"&&Ub(y,w),y==="onScroll"&&Tr("scroll",t)):w!=null&&ii(t,y,w,p))}}function $M(e,t,s,l){for(var p=0;p<t.length;p+=2){var y=t[p],w=t[p+1];y===Rf?$h(e,w):y===wv?Zl(e,w):y===Nf?ud(e,w):ii(e,y,w,l)}}function PM(e,t,s,l){var p,y=F_(s),w,x=l;if(x===_i&&(x=ws(e)),x===_i){if(p=Ko(e,t),!p&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var T=y.createElement("div");T.innerHTML="<script><\/script>";var L=T.firstChild;w=T.removeChild(L)}else if(typeof t.is=="string")w=y.createElement(e,{is:t.is});else if(w=y.createElement(e),e==="select"){var j=w;t.multiple?j.multiple=!0:t.size&&(j.size=t.size)}}else w=y.createElementNS(x,e);return x===_i&&!p&&Object.prototype.toString.call(w)==="[object HTMLUnknownElement]"&&!ot.call(dw,e)&&(dw[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),w}function NM(e,t){return F_(t).createTextNode(e)}function RM(e,t,s,l){var p=Ko(t,s);zb(t,s);var y;switch(t){case"dialog":Tr("cancel",e),Tr("close",e),y=s;break;case"iframe":case"object":case"embed":Tr("load",e),y=s;break;case"video":case"audio":for(var w=0;w<yv.length;w++)Tr(yv[w],e);y=s;break;case"source":Tr("error",e),y=s;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),y=s;break;case"details":Tr("toggle",e),y=s;break;case"input":q(e,s),y=F(e,s),Tr("invalid",e);break;case"option":Pn(e,s),y=s;break;case"select":Gl(e,s),y=Ku(e,s),Tr("invalid",e);break;case"textarea":Hp(e,s),y=sd(e,s),Tr("invalid",e);break;default:y=s}switch(pd(t,y),FM(t,e,l,y,p),t){case"input":Ei(e),He(e,s,!1);break;case"textarea":Ei(e),ld(e);break;case"option":Nn(e,s);break;case"select":zp(e,s);break;default:typeof y.onClick=="function"&&Wb(e);break}}function OM(e,t,s,l,p){zb(t,l);var y=null,w,x;switch(t){case"input":w=F(e,s),x=F(e,l),y=[];break;case"select":w=Ku(e,s),x=Ku(e,l),y=[];break;case"textarea":w=sd(e,s),x=sd(e,l),y=[];break;default:w=s,x=l,typeof w.onClick!="function"&&typeof x.onClick=="function"&&Wb(e);break}pd(t,x);var T,L,j=null;for(T in w)if(!(x.hasOwnProperty(T)||!w.hasOwnProperty(T)||w[T]==null))if(T===Rf){var re=w[T];for(L in re)re.hasOwnProperty(L)&&(j||(j={}),j[L]="")}else T===wv||T===Nf||T===Ib||T===Xd||T===E_||(Lt.hasOwnProperty(T)?y||(y=[]):(y=y||[]).push(T,null));for(T in x){var ee=x[T],de=w!=null?w[T]:void 0;if(!(!x.hasOwnProperty(T)||ee===de||ee==null&&de==null))if(T===Rf)if(ee&&Object.freeze(ee),de){for(L in de)de.hasOwnProperty(L)&&(!ee||!ee.hasOwnProperty(L))&&(j||(j={}),j[L]="");for(L in ee)ee.hasOwnProperty(L)&&de[L]!==ee[L]&&(j||(j={}),j[L]=ee[L])}else j||(y||(y=[]),y.push(T,j)),j=ee;else if(T===wv){var me=ee?ee[Mb]:void 0,Ce=de?de[Mb]:void 0;me!=null&&Ce!==me&&(y=y||[]).push(T,me)}else T===Nf?(typeof ee=="string"||typeof ee=="number")&&(y=y||[]).push(T,""+ee):T===Ib||T===Xd||(Lt.hasOwnProperty(T)?(ee!=null&&(typeof ee!="function"&&Ub(T,ee),T==="onScroll"&&Tr("scroll",e)),!y&&de!==ee&&(y=[])):(y=y||[]).push(T,ee))}return j&&(Ss(j,x[Rf]),(y=y||[]).push(Rf,j)),y}function LM(e,t,s,l,p){s==="input"&&p.type==="radio"&&p.name!=null&&pe(e,p);var y=Ko(s,l),w=Ko(s,p);switch($M(e,t,y,w),s){case"input":we(e,p);break;case"textarea":Sh(e,p);break;case"select":Og(e,p);break}}function BM(e){{var t=e.toLowerCase();return fd.hasOwnProperty(t)&&fd[t]||null}}function jM(e,t,s,l,p,y,w){var x,T;switch(x=Ko(t,s),zb(t,s),t){case"dialog":Tr("cancel",e),Tr("close",e);break;case"iframe":case"object":case"embed":Tr("load",e);break;case"video":case"audio":for(var L=0;L<yv.length;L++)Tr(yv[L],e);break;case"source":Tr("error",e);break;case"img":case"image":case"link":Tr("error",e),Tr("load",e);break;case"details":Tr("toggle",e);break;case"input":q(e,s),Tr("invalid",e);break;case"option":Pn(e,s);break;case"select":Gl(e,s),Tr("invalid",e);break;case"textarea":Hp(e,s),Tr("invalid",e);break}pd(t,s);{T=new Set;for(var j=e.attributes,re=0;re<j.length;re++){var ee=j[re].name.toLowerCase();switch(ee){case"value":break;case"checked":break;case"selected":break;default:T.add(j[re].name)}}}var de=null;for(var me in s)if(s.hasOwnProperty(me)){var Ce=s[me];if(me===Nf)typeof Ce=="string"?e.textContent!==Ce&&(s[Xd]!==!0&&qb(e.textContent,Ce,y,w),de=[Nf,Ce]):typeof Ce=="number"&&e.textContent!==""+Ce&&(s[Xd]!==!0&&qb(e.textContent,Ce,y,w),de=[Nf,""+Ce]);else if(Lt.hasOwnProperty(me))Ce!=null&&(typeof Ce!="function"&&Ub(me,Ce),me==="onScroll"&&Tr("scroll",e));else if(w&&typeof x=="boolean"){var tt=void 0,Et=x&>?null:bo(me);if(s[Xd]!==!0&&!(me===Ib||me===Xd||me==="value"||me==="checked"||me==="selected")){if(me===wv){var Nt=e.innerHTML,cn=Ce?Ce[Mb]:void 0;if(cn!=null){var on=A_(e,cn);on!==Nt&&Dv(me,Nt,on)}}else if(me===Rf){if(T.delete(me),T_){var se=Ig(Ce);tt=e.getAttribute("style"),se!==tt&&Dv(me,tt,se)}}else if(x&&!gt)T.delete(me.toLowerCase()),tt=ko(e,me,Ce),Ce!==tt&&Dv(me,tt,Ce);else if(!or(me,Et,x)&&!Rr(me,Ce,Et,x)){var Se=!1;if(Et!==null)T.delete(Et.attributeName),tt=mr(e,me,Ce,Et);else{var le=l;if(le===_i&&(le=ws(t)),le===_i)T.delete(me.toLowerCase());else{var Ue=BM(me);Ue!==null&&Ue!==me&&(Se=!0,T.delete(Ue)),T.delete(me)}tt=ko(e,me,Ce)}var ft=gt;!ft&&Ce!==tt&&!Se&&Dv(me,tt,Ce)}}}}switch(w&&T.size>0&&s[Xd]!==!0&&__(T),t){case"input":Ei(e),He(e,s,!0);break;case"textarea":Ei(e),ld(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&Wb(e);break}return de}function IM(e,t,s){var l=e.nodeValue!==t;return l}function pw(e,t){{if(Oo)return;Oo=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function fw(e,t){{if(Oo)return;Oo=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function hw(e,t,s){{if(Oo)return;Oo=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function mw(e,t){{if(t===""||Oo)return;Oo=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function MM(e,t,s){switch(t){case"input":Ot(e,s);return;case"textarea":Ql(e,s);return;case"select":Lg(e,s);return}}var Sv=function(){},Cv=function(){};{var zM=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],$_=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],UM=$_.concat(["button"]),HM=["dd","dt","li","option","optgroup","p","rp","rt"],P_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Cv=function(e,t){var s=Gt({},e||P_),l={tag:t};return $_.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),UM.indexOf(t)!==-1&&(s.pTagInButtonScope=null),zM.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=l,t==="form"&&(s.formTag=l),t==="a"&&(s.aTagInScope=l),t==="button"&&(s.buttonTagInScope=l),t==="nobr"&&(s.nobrTagInScope=l),t==="p"&&(s.pTagInButtonScope=l),t==="li"&&(s.listItemTagAutoclosing=l),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=l),s};var qM=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return HM.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},WM=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},N_={};Sv=function(e,t,s){s=s||P_;var l=s.current,p=l&&l.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var y=qM(e,p)?null:l,w=y?null:WM(e,s),x=y||w;if(x){var T=x.tag,L=!!y+"|"+e+"|"+T;if(!N_[L]){N_[L]=!0;var j=e,re="";if(e==="#text"?/\S/.test(t)?j="Text nodes":(j="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):j="<"+e+">",y){var ee="";T==="table"&&e==="tr"&&(ee+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",j,T,re,ee)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",j,T)}}}}var Vb="suppressHydrationWarning",Yb="$",Gb="/$",xv="$?",Ev="$!",VM="style",gw=null,vw=null;function YM(e){var t,s,l=e.nodeType;switch(l){case Sa:case Co:{t=l===Sa?"#document":"#fragment";var p=e.documentElement;s=p?p.namespaceURI:Vp(null,"");break}default:{var y=l===ur?e.parentNode:e,w=y.namespaceURI||null;t=y.tagName,s=Vp(w,t);break}}{var x=t.toLowerCase(),T=Cv(null,x);return{namespace:s,ancestorInfo:T}}}function GM(e,t,s){{var l=e,p=Vp(l.namespace,t),y=Cv(l.ancestorInfo,t);return{namespace:p,ancestorInfo:y}}}function QM(e){gw=oo(),vw=uM();var t=null;return fa(!1),t}function KM(e){cM(vw),fa(gw),gw=null,vw=null}function ZM(e,t,s,l,p){var y;{var w=l;if(Sv(e,null,w.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var x=""+t.children,T=Cv(w.ancestorInfo,e);Sv(null,x,T)}y=w.namespace}var L=PM(e,t,s,y);return Av(p,L),xw(L,t),L}function XM(e,t){e.appendChild(t)}function JM(e,t,s,l,p){switch(RM(e,t,s,l),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function e8(e,t,s,l,p,y){{var w=y;if(typeof l.children!=typeof s.children&&(typeof l.children=="string"||typeof l.children=="number")){var x=""+l.children,T=Cv(w.ancestorInfo,t);Sv(null,x,T)}}return OM(e,t,s,l)}function yw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function t8(e,t,s,l){{var p=s;Sv(null,e,p.ancestorInfo)}var y=NM(e,t);return Av(l,y),y}function n8(){var e=window.event;return e===void 0?fl:fi(e.type)}var bw=typeof setTimeout=="function"?setTimeout:void 0,r8=typeof clearTimeout=="function"?clearTimeout:void 0,kw=-1,R_=typeof Promise=="function"?Promise:void 0,a8=typeof queueMicrotask=="function"?queueMicrotask:typeof R_<"u"?function(e){return R_.resolve(null).then(e).catch(i8)}:bw;function i8(e){setTimeout(function(){throw e})}function o8(e,t,s,l){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function s8(e,t,s,l,p,y){LM(e,t,s,l,p),xw(e,p)}function O_(e){ud(e,"")}function l8(e,t,s){e.nodeValue=s}function u8(e,t){e.appendChild(t)}function c8(e,t){var s;e.nodeType===ur?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var l=e._reactRootContainer;l==null&&s.onclick===null&&Wb(s)}function d8(e,t,s){e.insertBefore(t,s)}function p8(e,t,s){e.nodeType===ur?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function f8(e,t){e.removeChild(t)}function h8(e,t){e.nodeType===ur?e.parentNode.removeChild(t):e.removeChild(t)}function ww(e,t){var s=t,l=0;do{var p=s.nextSibling;if(e.removeChild(s),p&&p.nodeType===ur){var y=p.data;if(y===Gb)if(l===0){e.removeChild(p),dn(t);return}else l--;else(y===Yb||y===xv||y===Ev)&&l++}s=p}while(s);dn(t)}function m8(e,t){e.nodeType===ur?ww(e.parentNode,t):e.nodeType===wa&&ww(e,t),dn(e)}function g8(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function v8(e){e.nodeValue=""}function y8(e,t){e=e;var s=t[VM],l=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=Ds("display",l)}function b8(e,t){e.nodeValue=t}function k8(e){e.nodeType===wa?e.textContent="":e.nodeType===Sa&&e.documentElement&&e.removeChild(e.documentElement)}function w8(e,t,s){return e.nodeType!==wa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function D8(e,t){return t===""||e.nodeType!==Da?null:e}function S8(e){return e.nodeType!==ur?null:e}function L_(e){return e.data===xv}function Dw(e){return e.data===Ev}function C8(e){var t=e.nextSibling&&e.nextSibling.dataset,s,l,p;return t&&(s=t.dgst,l=t.msg,p=t.stck),{message:l,digest:s,stack:p}}function x8(e,t){e._reactRetry=t}function Qb(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===wa||t===Da)break;if(t===ur){var s=e.data;if(s===Yb||s===Ev||s===xv)break;if(s===Gb)return null}}return e}function _v(e){return Qb(e.nextSibling)}function E8(e){return Qb(e.firstChild)}function _8(e){return Qb(e.firstChild)}function T8(e){return Qb(e.nextSibling)}function A8(e,t,s,l,p,y,w){Av(y,e),xw(e,s);var x;{var T=p;x=T.namespace}var L=(y.mode&b)!==h;return jM(e,t,s,x,l,L,w)}function F8(e,t,s,l){return Av(s,e),s.mode&b,IM(e,t)}function $8(e,t){Av(t,e)}function P8(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===ur){var l=t.data;if(l===Gb){if(s===0)return _v(t);s--}else(l===Yb||l===Ev||l===xv)&&s++}t=t.nextSibling}return null}function B_(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===ur){var l=t.data;if(l===Yb||l===Ev||l===xv){if(s===0)return t;s--}else l===Gb&&s++}t=t.previousSibling}return null}function N8(e){dn(e)}function R8(e){dn(e)}function O8(e){return e!=="head"&&e!=="body"}function L8(e,t,s,l){var p=!0;qb(t.nodeValue,s,l,p)}function B8(e,t,s,l,p,y){if(t[Vb]!==!0){var w=!0;qb(l.nodeValue,p,y,w)}}function j8(e,t){t.nodeType===wa?pw(e,t):t.nodeType===ur||fw(e,t)}function I8(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===wa?pw(s,t):t.nodeType===ur||fw(s,t))}}function M8(e,t,s,l,p){(p||t[Vb]!==!0)&&(l.nodeType===wa?pw(s,l):l.nodeType===ur||fw(s,l))}function z8(e,t,s){hw(e,t)}function U8(e,t){mw(e,t)}function H8(e,t,s){{var l=e.parentNode;l!==null&&hw(l,t)}}function q8(e,t){{var s=e.parentNode;s!==null&&mw(s,t)}}function W8(e,t,s,l,p,y){(y||t[Vb]!==!0)&&hw(s,l)}function V8(e,t,s,l,p){(p||t[Vb]!==!0)&&mw(s,l)}function Y8(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function G8(e){bv(e)}var Cm=Math.random().toString(36).slice(2),xm="__reactFiber$"+Cm,Sw="__reactProps$"+Cm,Tv="__reactContainer$"+Cm,Cw="__reactEvents$"+Cm,Q8="__reactListeners$"+Cm,K8="__reactHandles$"+Cm;function Z8(e){delete e[xm],delete e[Sw],delete e[Cw],delete e[Q8],delete e[K8]}function Av(e,t){t[xm]=e}function Kb(e,t){t[Tv]=e}function j_(e){e[Tv]=null}function Fv(e){return!!e[Tv]}function Of(e){var t=e[xm];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Tv]||s[xm],t){var l=t.alternate;if(t.child!==null||l!==null&&l.child!==null)for(var p=B_(e);p!==null;){var y=p[xm];if(y)return y;p=B_(p)}return t}e=s,s=e.parentNode}return null}function Jd(e){var t=e[xm]||e[Tv];return t&&(t.tag===B||t.tag===M||t.tag===U||t.tag===N)?t:null}function Em(e){if(e.tag===B||e.tag===M)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Zb(e){return e[Sw]||null}function xw(e,t){e[Sw]=t}function X8(e){var t=e[Cw];return t===void 0&&(t=e[Cw]=new Set),t}var I_={},M_=o.ReactDebugCurrentFrame;function Xb(e){if(e){var t=e._owner,s=Do(e.type,e._source,t?t.type:null);M_.setExtraStackFrame(s)}else M_.setExtraStackFrame(null)}function yl(e,t,s,l,p){{var y=Function.call.bind(ot);for(var w in e)if(y(e,w)){var x=void 0;try{if(typeof e[w]!="function"){var T=Error((l||"React class")+": "+s+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}x=e[w](t,w,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(L){x=L}x&&!(x instanceof Error)&&(Xb(p),v("%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).",l||"React class",s,w,typeof x),Xb(null)),x instanceof Error&&!(x.message in I_)&&(I_[x.message]=!0,Xb(p),v("Failed %s type: %s",s,x.message),Xb(null))}}}var Ew=[],Jb;Jb=[];var $c=-1;function ep(e){return{current:e}}function Mi(e,t){if($c<0){v("Unexpected pop.");return}t!==Jb[$c]&&v("Unexpected Fiber popped."),e.current=Ew[$c],Ew[$c]=null,Jb[$c]=null,$c--}function zi(e,t,s){$c++,Ew[$c]=e.current,Jb[$c]=s,e.current=t}var _w;_w={};var as={};Object.freeze(as);var Pc=ep(as),wu=ep(!1),Tw=as;function _m(e,t,s){return s&&Du(t)?Tw:Pc.current}function z_(e,t,s){{var l=e.stateNode;l.__reactInternalMemoizedUnmaskedChildContext=t,l.__reactInternalMemoizedMaskedChildContext=s}}function Tm(e,t){{var s=e.type,l=s.contextTypes;if(!l)return as;var p=e.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===t)return p.__reactInternalMemoizedMaskedChildContext;var y={};for(var w in l)y[w]=t[w];{var x=Mt(e)||"Unknown";yl(l,y,"context",x)}return p&&z_(e,t,y),y}}function e0(){return wu.current}function Du(e){{var t=e.childContextTypes;return t!=null}}function t0(e){Mi(wu,e),Mi(Pc,e)}function Aw(e){Mi(wu,e),Mi(Pc,e)}function U_(e,t,s){{if(Pc.current!==as)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");zi(Pc,t,e),zi(wu,s,e)}}function H_(e,t,s){{var l=e.stateNode,p=t.childContextTypes;if(typeof l.getChildContext!="function"){{var y=Mt(e)||"Unknown";_w[y]||(_w[y]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",y,y))}return s}var w=l.getChildContext();for(var x in w)if(!(x in p))throw new Error((Mt(e)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var T=Mt(e)||"Unknown";yl(p,w,"child context",T)}return Gt({},s,w)}}function n0(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||as;return Tw=Pc.current,zi(Pc,s,e),zi(wu,wu.current,e),!0}}function q_(e,t,s){{var l=e.stateNode;if(!l)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var p=H_(e,t,Tw);l.__reactInternalMemoizedMergedChildContext=p,Mi(wu,e),Mi(Pc,e),zi(Pc,p,e),zi(wu,s,e)}else Mi(wu,e),zi(wu,s,e)}}function J8(e){{if(!dc(e)||e.tag!==_)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case N:return t.stateNode.context;case _:{var s=t.type;if(Du(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var tp=0,r0=1,Nc=null,Fw=!1,$w=!1;function W_(e){Nc===null?Nc=[e]:Nc.push(e)}function e6(e){Fw=!0,W_(e)}function V_(){Fw&&np()}function np(){if(!$w&&Nc!==null){$w=!0;var e=0,t=$o();try{var s=!0,l=Nc;for(Jr(Qa);e<l.length;e++){var p=l[e];do p=p(s);while(p!==null)}Nc=null,Fw=!1}catch(y){throw Nc!==null&&(Nc=Nc.slice(e+1)),wd(Sd,np),y}finally{Jr(t),$w=!1}}return null}var Am=[],Fm=0,a0=null,i0=0,Bs=[],js=0,Lf=null,Rc=1,Oc="";function t6(e){return jf(),(e.flags&lf)!==_t}function n6(e){return jf(),i0}function r6(){var e=Oc,t=Rc,s=t&~a6(t);return s.toString(32)+e}function Bf(e,t){jf(),Am[Fm++]=i0,Am[Fm++]=a0,a0=e,i0=t}function Y_(e,t,s){jf(),Bs[js++]=Rc,Bs[js++]=Oc,Bs[js++]=Lf,Lf=e;var l=Rc,p=Oc,y=o0(l)-1,w=l&~(1<<y),x=s+1,T=o0(t)+y;if(T>30){var L=y-y%5,j=(1<<L)-1,re=(w&j).toString(32),ee=w>>L,de=y-L,me=o0(t)+de,Ce=x<<de,tt=Ce|ee,Et=re+p;Rc=1<<me|tt,Oc=Et}else{var Nt=x<<y,cn=Nt|w,on=p;Rc=1<<T|cn,Oc=on}}function Pw(e){jf();var t=e.return;if(t!==null){var s=1,l=0;Bf(e,s),Y_(e,s,l)}}function o0(e){return 32-J(e)}function a6(e){return 1<<o0(e)-1}function Nw(e){for(;e===a0;)a0=Am[--Fm],Am[Fm]=null,i0=Am[--Fm],Am[Fm]=null;for(;e===Lf;)Lf=Bs[--js],Bs[js]=null,Oc=Bs[--js],Bs[js]=null,Rc=Bs[--js],Bs[js]=null}function i6(){return jf(),Lf!==null?{id:Rc,overflow:Oc}:null}function o6(e,t){jf(),Bs[js++]=Rc,Bs[js++]=Oc,Bs[js++]=Lf,Rc=t.id,Oc=t.overflow,Lf=e}function jf(){mi()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var hi=null,Is=null,bl=!1,If=!1,rp=null;function s6(){bl&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function G_(){If=!0}function l6(){return If}function u6(e){var t=e.stateNode.containerInfo;return Is=_8(t),hi=e,bl=!0,rp=null,If=!1,!0}function c6(e,t,s){return Is=T8(t),hi=e,bl=!0,rp=null,If=!1,s!==null&&o6(e,s),!0}function Q_(e,t){switch(e.tag){case N:{j8(e.stateNode.containerInfo,t);break}case B:{var s=(e.mode&b)!==h;M8(e.type,e.memoizedProps,e.stateNode,t,s);break}case U:{var l=e.memoizedState;l.dehydrated!==null&&I8(l.dehydrated,t);break}}}function K_(e,t){Q_(e,t);var s=h7();s.stateNode=t,s.return=e;var l=e.deletions;l===null?(e.deletions=[s],e.flags|=Cn):l.push(s)}function Rw(e,t){{if(If)return;switch(e.tag){case N:{var s=e.stateNode.containerInfo;switch(t.tag){case B:var l=t.type;t.pendingProps,z8(s,l);break;case M:var p=t.pendingProps;U8(s,p);break}break}case B:{var y=e.type,w=e.memoizedProps,x=e.stateNode;switch(t.tag){case B:{var T=t.type,L=t.pendingProps,j=(e.mode&b)!==h;W8(y,w,x,T,L,j);break}case M:{var re=t.pendingProps,ee=(e.mode&b)!==h;V8(y,w,x,re,ee);break}}break}case U:{var de=e.memoizedState,me=de.dehydrated;if(me!==null)switch(t.tag){case B:var Ce=t.type;t.pendingProps,H8(me,Ce);break;case M:var tt=t.pendingProps;q8(me,tt);break}break}default:return}}}function Z_(e,t){t.flags=t.flags&~Pi|tr,Rw(e,t)}function X_(e,t){switch(e.tag){case B:{var s=e.type;e.pendingProps;var l=w8(t,s);return l!==null?(e.stateNode=l,hi=e,Is=E8(l),!0):!1}case M:{var p=e.pendingProps,y=D8(t,p);return y!==null?(e.stateNode=y,hi=e,Is=null,!0):!1}case U:{var w=S8(t);if(w!==null){var x={dehydrated:w,treeContext:i6(),retryLane:Ga};e.memoizedState=x;var T=m7(w);return T.return=e,e.child=T,hi=e,Is=null,!0}return!1}default:return!1}}function Ow(e){return(e.mode&b)!==h&&(e.flags&Ft)===_t}function Lw(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Bw(e){if(bl){var t=Is;if(!t){Ow(e)&&(Rw(hi,e),Lw()),Z_(hi,e),bl=!1,hi=e;return}var s=t;if(!X_(e,t)){Ow(e)&&(Rw(hi,e),Lw()),t=_v(s);var l=hi;if(!t||!X_(e,t)){Z_(hi,e),bl=!1,hi=e;return}K_(l,s)}}}function d6(e,t,s){var l=e.stateNode,p=!If,y=A8(l,e.type,e.memoizedProps,t,s,e,p);return e.updateQueue=y,y!==null}function p6(e){var t=e.stateNode,s=e.memoizedProps,l=F8(t,s,e);if(l){var p=hi;if(p!==null)switch(p.tag){case N:{var y=p.stateNode.containerInfo,w=(p.mode&b)!==h;L8(y,t,s,w);break}case B:{var x=p.type,T=p.memoizedProps,L=p.stateNode,j=(p.mode&b)!==h;B8(x,T,L,t,s,j);break}}}return l}function f6(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");$8(s,e)}function h6(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return P8(s)}function J_(e){for(var t=e.return;t!==null&&t.tag!==B&&t.tag!==N&&t.tag!==U;)t=t.return;hi=t}function s0(e){if(e!==hi)return!1;if(!bl)return J_(e),bl=!0,!1;if(e.tag!==N&&(e.tag!==B||O8(e.type)&&!yw(e.type,e.memoizedProps))){var t=Is;if(t)if(Ow(e))eT(e),Lw();else for(;t;)K_(e,t),t=_v(t)}return J_(e),e.tag===U?Is=h6(e):Is=hi?_v(e.stateNode):null,!0}function m6(){return bl&&Is!==null}function eT(e){for(var t=Is;t;)Q_(e,t),t=_v(t)}function $m(){hi=null,Is=null,bl=!1,If=!1}function tT(){rp!==null&&(GA(rp),rp=null)}function mi(){return bl}function jw(e){rp===null?rp=[e]:rp.push(e)}var g6=o.ReactCurrentBatchConfig,v6=null;function y6(){return g6.transition}var kl={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var b6=function(e){for(var t=null,s=e;s!==null;)s.mode&A&&(t=s),s=s.return;return t},Mf=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},$v=[],Pv=[],Nv=[],Rv=[],Ov=[],Lv=[],zf=new Set;kl.recordUnsafeLifecycleWarnings=function(e,t){zf.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&$v.push(e),e.mode&A&&typeof t.UNSAFE_componentWillMount=="function"&&Pv.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nv.push(e),e.mode&A&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Rv.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ov.push(e),e.mode&A&&typeof t.UNSAFE_componentWillUpdate=="function"&&Lv.push(e))},kl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;$v.length>0&&($v.forEach(function(ee){e.add(Mt(ee)||"Component"),zf.add(ee.type)}),$v=[]);var t=new Set;Pv.length>0&&(Pv.forEach(function(ee){t.add(Mt(ee)||"Component"),zf.add(ee.type)}),Pv=[]);var s=new Set;Nv.length>0&&(Nv.forEach(function(ee){s.add(Mt(ee)||"Component"),zf.add(ee.type)}),Nv=[]);var l=new Set;Rv.length>0&&(Rv.forEach(function(ee){l.add(Mt(ee)||"Component"),zf.add(ee.type)}),Rv=[]);var p=new Set;Ov.length>0&&(Ov.forEach(function(ee){p.add(Mt(ee)||"Component"),zf.add(ee.type)}),Ov=[]);var y=new Set;if(Lv.length>0&&(Lv.forEach(function(ee){y.add(Mt(ee)||"Component"),zf.add(ee.type)}),Lv=[]),t.size>0){var w=Mf(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
|
|
@@ -223,17 +223,17 @@ Please update the following components: %s`,j)}if(p.size>0){var re=Mf(p);g(`comp
|
|
|
223
223
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
224
224
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
225
225
|
|
|
226
|
-
Please update the following components: %s`,re)}};var l0=new Map,
|
|
226
|
+
Please update the following components: %s`,re)}};var l0=new Map,nT=new Set;kl.recordLegacyContextWarning=function(e,t){var s=b6(e);if(s===null){v("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!nT.has(e.type)){var l=l0.get(s);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(l===void 0&&(l=[],l0.set(s,l)),l.push(e))}},kl.flushLegacyContextWarning=function(){l0.forEach(function(e,t){if(e.length!==0){var s=e[0],l=new Set;e.forEach(function(y){l.add(Mt(y)||"Component"),nT.add(y.type)});var p=Mf(l);try{Sn(s),v(`Legacy context API has been detected within a strict-mode tree.
|
|
227
227
|
|
|
228
228
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
229
229
|
|
|
230
230
|
Please update the following components: %s
|
|
231
231
|
|
|
232
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{zn()}}})},kl.discardPendingWarnings=function(){$v=[],Pv=[],Nv=[],Rv=[],Ov=[],Lv=[],l0=new Map}}var Iw,Mw,zw,Uw,Hw,
|
|
232
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)}finally{zn()}}})},kl.discardPendingWarnings=function(){$v=[],Pv=[],Nv=[],Rv=[],Ov=[],Lv=[],l0=new Map}}var Iw,Mw,zw,Uw,Hw,rT=function(e,t){};Iw=!1,Mw=!1,zw={},Uw={},Hw={},rT=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var s=Mt(t)||"Component";Uw[s]||(Uw[s]=!0,v('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function k6(e){return e.prototype&&e.prototype.isReactComponent}function Bv(e,t,s){var l=s.ref;if(l!==null&&typeof l!="function"&&typeof l!="object"){if((e.mode&A||ut)&&!(s._owner&&s._self&&s._owner.stateNode!==s._self)&&!(s._owner&&s._owner.tag!==_)&&!(typeof s.type=="function"&&!k6(s.type))&&s._owner){var p=Mt(e)||"Component";zw[p]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',p,l),zw[p]=!0)}if(s._owner){var y=s._owner,w;if(y){var x=y;if(x.tag!==_)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");w=x.stateNode}if(!w)throw new Error("Missing owner for string ref "+l+". This error is likely caused by a bug in React. Please file an issue.");var T=w;Yn(l,"ref");var L=""+l;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===L)return t.ref;var j=function(re){var ee=T.refs;re===null?delete ee[L]:ee[L]=re};return j._stringRef=L,j}else{if(typeof l!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!s._owner)throw new Error("Element ref was specified as a string ("+l+`) but no owner was set. This could happen for one of the following reasons:
|
|
233
233
|
1. You may be adding a ref to a function component
|
|
234
234
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
235
235
|
3. You have multiple copies of React loaded
|
|
236
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return l}function u0(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function c0(e){{var t=Mt(e)||"Component";if(Hw[t])return;Hw[t]=!0,v("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function rT(e){var t=e._payload,s=e._init;return s(t)}function aT(e){function t(se,Se){if(e){var le=se.deletions;le===null?(se.deletions=[Se],se.flags|=Cn):le.push(Se)}}function s(se,Se){if(!e)return null;for(var le=Se;le!==null;)t(se,le),le=le.sibling;return null}function l(se,Se){for(var le=new Map,Ue=Se;Ue!==null;)Ue.key!==null?le.set(Ue.key,Ue):le.set(Ue.index,Ue),Ue=Ue.sibling;return le}function p(se,Se){var le=Kf(se,Se);return le.index=0,le.sibling=null,le}function y(se,Se,le){if(se.index=le,!e)return se.flags|=lf,Se;var Ue=se.alternate;if(Ue!==null){var ft=Ue.index;return ft<Se?(se.flags|=tr,Se):ft}else return se.flags|=tr,Se}function w(se){return e&&se.alternate===null&&(se.flags|=tr),se}function x(se,Se,le,Ue){if(Se===null||Se.tag!==M){var ft=jD(le,se.mode,Ue);return ft.return=se,ft}else{var lt=p(Se,le);return lt.return=se,lt}}function T(se,Se,le,Ue){var ft=le.type;if(ft===oi)return j(se,Se,le.props.children,Ue,le.key);if(Se!==null&&(Se.elementType===ft||uF(Se,le)||typeof ft=="object"&&ft!==null&&ft.$$typeof===$t&&rT(ft)===Se.type)){var lt=p(Se,le.props);return lt.ref=Bv(se,Se,le),lt.return=se,lt._debugSource=le._source,lt._debugOwner=le._owner,lt}var jt=BD(le,se.mode,Ue);return jt.ref=Bv(se,Se,le),jt.return=se,jt}function L(se,Se,le,Ue){if(Se===null||Se.tag!==R||Se.stateNode.containerInfo!==le.containerInfo||Se.stateNode.implementation!==le.implementation){var ft=ID(le,se.mode,Ue);return ft.return=se,ft}else{var lt=p(Se,le.children||[]);return lt.return=se,lt}}function j(se,Se,le,Ue,ft){if(Se===null||Se.tag!==V){var lt=hp(le,se.mode,Ue,ft);return lt.return=se,lt}else{var jt=p(Se,le);return jt.return=se,jt}}function re(se,Se,le){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var Ue=jD(""+Se,se.mode,le);return Ue.return=se,Ue}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case Qi:{var ft=BD(Se,se.mode,le);return ft.ref=Bv(se,null,Se),ft.return=se,ft}case sa:{var lt=ID(Se,se.mode,le);return lt.return=se,lt}case $t:{var jt=Se._payload,Vt=Se._init;return re(se,Vt(jt),le)}}if(un(Se)||ya(Se)){var Zn=hp(Se,se.mode,le,null);return Zn.return=se,Zn}u0(se,Se)}return typeof Se=="function"&&c0(se),null}function ee(se,Se,le,Ue){var ft=Se!==null?Se.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return ft!==null?null:x(se,Se,""+le,Ue);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Qi:return le.key===ft?T(se,Se,le,Ue):null;case sa:return le.key===ft?L(se,Se,le,Ue):null;case $t:{var lt=le._payload,jt=le._init;return ee(se,Se,jt(lt),Ue)}}if(un(le)||ya(le))return ft!==null?null:j(se,Se,le,Ue,null);u0(se,le)}return typeof le=="function"&&c0(se),null}function de(se,Se,le,Ue,ft){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"){var lt=se.get(le)||null;return x(Se,lt,""+Ue,ft)}if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case Qi:{var jt=se.get(Ue.key===null?le:Ue.key)||null;return T(Se,jt,Ue,ft)}case sa:{var Vt=se.get(Ue.key===null?le:Ue.key)||null;return L(Se,Vt,Ue,ft)}case $t:var Zn=Ue._payload,Tn=Ue._init;return de(se,Se,le,Tn(Zn),ft)}if(un(Ue)||ya(Ue)){var na=se.get(le)||null;return j(Se,na,Ue,ft,null)}u0(Se,Ue)}return typeof Ue=="function"&&c0(Se),null}function me(se,Se,le){{if(typeof se!="object"||se===null)return Se;switch(se.$$typeof){case Qi:case sa:nT(se,le);var Ue=se.key;if(typeof Ue!="string")break;if(Se===null){Se=new Set,Se.add(Ue);break}if(!Se.has(Ue)){Se.add(Ue);break}v("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ue);break;case $t:var ft=se._payload,lt=se._init;me(lt(ft),Se,le);break}}return Se}function Ce(se,Se,le,Ue){for(var ft=null,lt=0;lt<le.length;lt++){var jt=le[lt];ft=me(jt,ft,se)}for(var Vt=null,Zn=null,Tn=Se,na=0,An=0,Qr=null;Tn!==null&&An<le.length;An++){Tn.index>An?(Qr=Tn,Tn=null):Qr=Tn.sibling;var Hi=ee(se,Tn,le[An],Ue);if(Hi===null){Tn===null&&(Tn=Qr);break}e&&Tn&&Hi.alternate===null&&t(se,Tn),na=y(Hi,na,An),Zn===null?Vt=Hi:Zn.sibling=Hi,Zn=Hi,Tn=Qr}if(An===le.length){if(s(se,Tn),mi()){var Di=An;Bf(se,Di)}return Vt}if(Tn===null){for(;An<le.length;An++){var os=re(se,le[An],Ue);os!==null&&(na=y(os,na,An),Zn===null?Vt=os:Zn.sibling=os,Zn=os)}if(mi()){var co=An;Bf(se,co)}return Vt}for(var po=l(se,Tn);An<le.length;An++){var qi=de(po,se,An,le[An],Ue);qi!==null&&(e&&qi.alternate!==null&&po.delete(qi.key===null?An:qi.key),na=y(qi,na,An),Zn===null?Vt=qi:Zn.sibling=qi,Zn=qi)}if(e&&po.forEach(function(Km){return t(se,Km)}),mi()){var Uc=An;Bf(se,Uc)}return Vt}function tt(se,Se,le,Ue){var ft=ya(le);if(typeof ft!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(Mw||v("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Mw=!0),le.entries===ft&&(Iw||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Iw=!0);var lt=ft.call(le);if(lt)for(var jt=null,Vt=lt.next();!Vt.done;Vt=lt.next()){var Zn=Vt.value;jt=me(Zn,jt,se)}}var Tn=ft.call(le);if(Tn==null)throw new Error("An iterable object provided no iterator.");for(var na=null,An=null,Qr=Se,Hi=0,Di=0,os=null,co=Tn.next();Qr!==null&&!co.done;Di++,co=Tn.next()){Qr.index>Di?(os=Qr,Qr=null):os=Qr.sibling;var po=ee(se,Qr,co.value,Ue);if(po===null){Qr===null&&(Qr=os);break}e&&Qr&&po.alternate===null&&t(se,Qr),Hi=y(po,Hi,Di),An===null?na=po:An.sibling=po,An=po,Qr=os}if(co.done){if(s(se,Qr),mi()){var qi=Di;Bf(se,qi)}return na}if(Qr===null){for(;!co.done;Di++,co=Tn.next()){var Uc=re(se,co.value,Ue);Uc!==null&&(Hi=y(Uc,Hi,Di),An===null?na=Uc:An.sibling=Uc,An=Uc)}if(mi()){var Km=Di;Bf(se,Km)}return na}for(var hy=l(se,Qr);!co.done;Di++,co=Tn.next()){var Fu=de(hy,se,Di,co.value,Ue);Fu!==null&&(e&&Fu.alternate!==null&&hy.delete(Fu.key===null?Di:Fu.key),Hi=y(Fu,Hi,Di),An===null?na=Fu:An.sibling=Fu,An=Fu)}if(e&&hy.forEach(function(W7){return t(se,W7)}),mi()){var q7=Di;Bf(se,q7)}return na}function Et(se,Se,le,Ue){if(Se!==null&&Se.tag===M){s(se,Se.sibling);var ft=p(Se,le);return ft.return=se,ft}s(se,Se);var lt=jD(le,se.mode,Ue);return lt.return=se,lt}function Nt(se,Se,le,Ue){for(var ft=le.key,lt=Se;lt!==null;){if(lt.key===ft){var jt=le.type;if(jt===oi){if(lt.tag===V){s(se,lt.sibling);var Vt=p(lt,le.props.children);return Vt.return=se,Vt._debugSource=le._source,Vt._debugOwner=le._owner,Vt}}else if(lt.elementType===jt||uF(lt,le)||typeof jt=="object"&&jt!==null&&jt.$$typeof===$t&&rT(jt)===lt.type){s(se,lt.sibling);var Zn=p(lt,le.props);return Zn.ref=Bv(se,lt,le),Zn.return=se,Zn._debugSource=le._source,Zn._debugOwner=le._owner,Zn}s(se,lt);break}else t(se,lt);lt=lt.sibling}if(le.type===oi){var Tn=hp(le.props.children,se.mode,Ue,le.key);return Tn.return=se,Tn}else{var na=BD(le,se.mode,Ue);return na.ref=Bv(se,Se,le),na.return=se,na}}function cn(se,Se,le,Ue){for(var ft=le.key,lt=Se;lt!==null;){if(lt.key===ft)if(lt.tag===R&<.stateNode.containerInfo===le.containerInfo&<.stateNode.implementation===le.implementation){s(se,lt.sibling);var jt=p(lt,le.children||[]);return jt.return=se,jt}else{s(se,lt);break}else t(se,lt);lt=lt.sibling}var Vt=ID(le,se.mode,Ue);return Vt.return=se,Vt}function on(se,Se,le,Ue){var ft=typeof le=="object"&&le!==null&&le.type===oi&&le.key===null;if(ft&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Qi:return w(Nt(se,Se,le,Ue));case sa:return w(cn(se,Se,le,Ue));case $t:var lt=le._payload,jt=le._init;return on(se,Se,jt(lt),Ue)}if(un(le))return Ce(se,Se,le,Ue);if(ya(le))return tt(se,Se,le,Ue);u0(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?w(Et(se,Se,""+le,Ue)):(typeof le=="function"&&c0(se),s(se,Se))}return on}var Pm=aT(!0),iT=aT(!1);function k6(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,l=Kf(s,s.pendingProps);for(t.child=l,l.return=t;s.sibling!==null;)s=s.sibling,l=l.sibling=Kf(s,s.pendingProps),l.return=t;l.sibling=null}}function w6(e,t){for(var s=e.child;s!==null;)l7(s,t),s=s.sibling}var qw=ep(null),Ww;Ww={};var d0=null,Nm=null,Vw=null,p0=!1;function f0(){d0=null,Nm=null,Vw=null,p0=!1}function oT(){p0=!0}function sT(){p0=!1}function lT(e,t,s){zi(qw,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Ww&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Ww}function Yw(e,t){var s=qw.current;Mi(qw,t),e._currentValue=s}function Gw(e,t,s){for(var l=e;l!==null;){var p=l.alternate;if(kc(l.childLanes,t)?p!==null&&!kc(p.childLanes,t)&&(p.childLanes=Kt(p.childLanes,t)):(l.childLanes=Kt(l.childLanes,t),p!==null&&(p.childLanes=Kt(p.childLanes,t))),l===s)break;l=l.return}l!==s&&v("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function D6(e,t,s){S6(e,t,s)}function S6(e,t,s){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var p=void 0,y=l.dependencies;if(y!==null){p=l.child;for(var w=y.firstContext;w!==null;){if(w.context===t){if(l.tag===_){var x=Bd(s),T=Lc(hr,x);T.tag=m0;var L=l.updateQueue;if(L!==null){var j=L.shared,re=j.pending;re===null?T.next=T:(T.next=re.next,re.next=T),j.pending=T}}l.lanes=Kt(l.lanes,s);var ee=l.alternate;ee!==null&&(ee.lanes=Kt(ee.lanes,s)),Gw(l.return,s,e),y.lanes=Kt(y.lanes,s);break}w=w.next}}else if(l.tag===K)p=l.type===e.type?null:l.child;else if(l.tag===Ve){var de=l.return;if(de===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");de.lanes=Kt(de.lanes,s);var me=de.alternate;me!==null&&(me.lanes=Kt(me.lanes,s)),Gw(de,s,e),p=l.sibling}else p=l.child;if(p!==null)p.return=l;else for(p=l;p!==null;){if(p===e){p=null;break}var Ce=p.sibling;if(Ce!==null){Ce.return=p.return,p=Ce;break}p=p.return}l=p}}function Rm(e,t){d0=e,Nm=null,Vw=null;var s=e.dependencies;if(s!==null){var l=s.firstContext;l!==null&&(Ii(s.lanes,t)&&Xv(),s.firstContext=null)}}function ma(e){p0&&v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(Vw!==e){var s={context:e,memoizedValue:t,next:null};if(Nm===null){if(d0===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Nm=s,d0.dependencies={lanes:De,firstContext:s}}else Nm=Nm.next=s}return t}var Uf=null;function Qw(e){Uf===null?Uf=[e]:Uf.push(e)}function C6(){if(Uf!==null){for(var e=0;e<Uf.length;e++){var t=Uf[e],s=t.interleaved;if(s!==null){t.interleaved=null;var l=s.next,p=t.pending;if(p!==null){var y=p.next;p.next=l,s.next=y}t.pending=s}}Uf=null}}function uT(e,t,s,l){var p=t.interleaved;return p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s,h0(e,l)}function x6(e,t,s,l){var p=t.interleaved;p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s}function E6(e,t,s,l){var p=t.interleaved;return p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s,h0(e,l)}function Lo(e,t){return h0(e,t)}var _6=h0;function h0(e,t){e.lanes=Kt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Kt(s.lanes,t)),s===null&&(e.flags&(tr|Pi))!==_t&&iF(e);for(var l=e,p=e.return;p!==null;)p.childLanes=Kt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Kt(s.childLanes,t):(p.flags&(tr|Pi))!==_t&&iF(e),l=p,p=p.return;if(l.tag===N){var y=l.stateNode;return y}else return null}var cT=0,dT=1,m0=2,Kw=3,g0=!1,Zw,v0;Zw=!1,v0=null;function Xw(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:De},effects:null};e.updateQueue=t}function pT(e,t){var s=t.updateQueue,l=e.updateQueue;if(s===l){var p={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects};t.updateQueue=p}}function Lc(e,t){var s={eventTime:e,lane:t,tag:cT,payload:null,callback:null,next:null};return s}function ap(e,t,s){var l=e.updateQueue;if(l===null)return null;var p=l.shared;if(v0===p&&!Zw&&(v("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Zw=!0),x9()){var y=p.pending;return y===null?t.next=t:(t.next=y.next,y.next=t),p.pending=t,_6(e,s)}else return E6(e,p,t,s)}function y0(e,t,s){var l=t.updateQueue;if(l!==null){var p=l.shared;if(Gg(s)){var y=p.lanes;y=tm(y,e.pendingLanes);var w=Kt(y,s);p.lanes=w,jd(e,w)}}}function Jw(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null){var p=l.updateQueue;if(s===p){var y=null,w=null,x=s.firstBaseUpdate;if(x!==null){var T=x;do{var L={eventTime:T.eventTime,lane:T.lane,tag:T.tag,payload:T.payload,callback:T.callback,next:null};w===null?y=w=L:(w.next=L,w=L),T=T.next}while(T!==null);w===null?y=w=t:(w.next=t,w=t)}else y=w=t;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var j=s.lastBaseUpdate;j===null?s.firstBaseUpdate=t:j.next=t,s.lastBaseUpdate=t}function T6(e,t,s,l,p,y){switch(s.tag){case dT:{var w=s.payload;if(typeof w=="function"){oT();var x=w.call(y,l,p);{if(e.mode&A){$r(!0);try{w.call(y,l,p)}finally{$r(!1)}}sT()}return x}return w}case Kw:e.flags=e.flags&~Lr|Ft;case cT:{var T=s.payload,L;if(typeof T=="function"){oT(),L=T.call(y,l,p);{if(e.mode&A){$r(!0);try{T.call(y,l,p)}finally{$r(!1)}}sT()}}else L=T;return L==null?l:Gt({},l,L)}case m0:return g0=!0,l}return l}function b0(e,t,s,l){var p=e.updateQueue;g0=!1,v0=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var T=x,L=T.next;T.next=null,w===null?y=L:w.next=L,w=T;var j=e.alternate;if(j!==null){var re=j.updateQueue,ee=re.lastBaseUpdate;ee!==w&&(ee===null?re.firstBaseUpdate=L:ee.next=L,re.lastBaseUpdate=T)}}if(y!==null){var de=p.baseState,me=De,Ce=null,tt=null,Et=null,Nt=y;do{var cn=Nt.lane,on=Nt.eventTime;if(kc(l,cn)){if(Et!==null){var se={eventTime:on,lane:Tt,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Et=Et.next=se}de=T6(e,p,Nt,de,t,s);var Se=Nt.callback;if(Se!==null&&Nt.lane!==Tt){e.flags|=Fi;var le=p.effects;le===null?p.effects=[Nt]:le.push(Nt)}}else{var Ue={eventTime:on,lane:cn,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Et===null?(tt=Et=Ue,Ce=de):Et=Et.next=Ue,me=Kt(me,cn)}if(Nt=Nt.next,Nt===null){if(x=p.shared.pending,x===null)break;var ft=x,lt=ft.next;ft.next=null,Nt=lt,p.lastBaseUpdate=ft,p.shared.pending=null}}while(!0);Et===null&&(Ce=de),p.baseState=Ce,p.firstBaseUpdate=tt,p.lastBaseUpdate=Et;var jt=p.shared.interleaved;if(jt!==null){var Vt=jt;do me=Kt(me,Vt.lane),Vt=Vt.next;while(Vt!==jt)}else y===null&&(p.shared.lanes=De);uy(me),e.lanes=me,e.memoizedState=de}v0=null}function A6(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function fT(){g0=!1}function k0(){return g0}function hT(e,t,s){var l=t.effects;if(t.effects=null,l!==null)for(var p=0;p<l.length;p++){var y=l[p],w=y.callback;w!==null&&(y.callback=null,A6(w,s))}}var jv={},ip=ep(jv),Iv=ep(jv),w0=ep(jv);function D0(e){if(e===jv)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function mT(){var e=D0(w0.current);return e}function e2(e,t){zi(w0,t,e),zi(Iv,e,e),zi(ip,jv,e);var s=VM(t);Mi(ip,e),zi(ip,s,e)}function Om(e){Mi(ip,e),Mi(Iv,e),Mi(w0,e)}function t2(){var e=D0(ip.current);return e}function gT(e){D0(w0.current);var t=D0(ip.current),s=YM(t,e.type);t!==s&&(zi(Iv,e,e),zi(ip,s,e))}function n2(e){Iv.current===e&&(Mi(ip,e),Mi(Iv,e))}var F6=0,vT=1,yT=1,Mv=2,wl=ep(F6);function r2(e,t){return(e&t)!==0}function Lm(e){return e&vT}function a2(e,t){return e&vT|t}function $6(e,t){return e|t}function op(e,t){zi(wl,t,e)}function Bm(e){Mi(wl,e)}function P6(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function S0(e){for(var t=e;t!==null;){if(t.tag===U){var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l===null||O_(l)||Dw(l))return t}}else if(t.tag===rt&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&Ft)!==_t;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,Ea=1,Su=2,_a=4,gi=8,i2=[];function o2(){for(var e=0;e<i2.length;e++){var t=i2[e];t._workInProgressVersionPrimary=null}i2.length=0}function N6(e,t){var s=t._getVersion,l=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,l]:e.mutableSourceEagerHydrationData.push(t,l)}var pt=o.ReactCurrentDispatcher,zv=o.ReactCurrentBatchConfig,s2,jm;s2=new Set;var Hf=De,Kn=null,Ta=null,Aa=null,C0=!1,Uv=!1,Hv=0,R6=0,O6=25,_e=null,Ms=null,sp=-1,l2=!1;function In(){{var e=_e;Ms===null?Ms=[e]:Ms.push(e)}}function Xe(){{var e=_e;Ms!==null&&(sp++,Ms[sp]!==e&&L6(e))}}function Im(e){e!=null&&!un(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",_e,typeof e)}function L6(e){{var t=Mt(Kn);if(!s2.has(t)&&(s2.add(t),Ms!==null)){for(var s="",l=30,p=0;p<=sp;p++){for(var y=Ms[p],w=p===sp?e:y,x=p+1+". "+y;x.length<l;)x+=" ";x+=w+`
|
|
236
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return l}function u0(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function c0(e){{var t=Mt(e)||"Component";if(Hw[t])return;Hw[t]=!0,v("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function aT(e){var t=e._payload,s=e._init;return s(t)}function iT(e){function t(se,Se){if(e){var le=se.deletions;le===null?(se.deletions=[Se],se.flags|=Cn):le.push(Se)}}function s(se,Se){if(!e)return null;for(var le=Se;le!==null;)t(se,le),le=le.sibling;return null}function l(se,Se){for(var le=new Map,Ue=Se;Ue!==null;)Ue.key!==null?le.set(Ue.key,Ue):le.set(Ue.index,Ue),Ue=Ue.sibling;return le}function p(se,Se){var le=Kf(se,Se);return le.index=0,le.sibling=null,le}function y(se,Se,le){if(se.index=le,!e)return se.flags|=lf,Se;var Ue=se.alternate;if(Ue!==null){var ft=Ue.index;return ft<Se?(se.flags|=tr,Se):ft}else return se.flags|=tr,Se}function w(se){return e&&se.alternate===null&&(se.flags|=tr),se}function x(se,Se,le,Ue){if(Se===null||Se.tag!==M){var ft=jD(le,se.mode,Ue);return ft.return=se,ft}else{var lt=p(Se,le);return lt.return=se,lt}}function T(se,Se,le,Ue){var ft=le.type;if(ft===oi)return j(se,Se,le.props.children,Ue,le.key);if(Se!==null&&(Se.elementType===ft||cF(Se,le)||typeof ft=="object"&&ft!==null&&ft.$$typeof===$t&&aT(ft)===Se.type)){var lt=p(Se,le.props);return lt.ref=Bv(se,Se,le),lt.return=se,lt._debugSource=le._source,lt._debugOwner=le._owner,lt}var jt=BD(le,se.mode,Ue);return jt.ref=Bv(se,Se,le),jt.return=se,jt}function L(se,Se,le,Ue){if(Se===null||Se.tag!==R||Se.stateNode.containerInfo!==le.containerInfo||Se.stateNode.implementation!==le.implementation){var ft=ID(le,se.mode,Ue);return ft.return=se,ft}else{var lt=p(Se,le.children||[]);return lt.return=se,lt}}function j(se,Se,le,Ue,ft){if(Se===null||Se.tag!==V){var lt=hp(le,se.mode,Ue,ft);return lt.return=se,lt}else{var jt=p(Se,le);return jt.return=se,jt}}function re(se,Se,le){if(typeof Se=="string"&&Se!==""||typeof Se=="number"){var Ue=jD(""+Se,se.mode,le);return Ue.return=se,Ue}if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case Qi:{var ft=BD(Se,se.mode,le);return ft.ref=Bv(se,null,Se),ft.return=se,ft}case sa:{var lt=ID(Se,se.mode,le);return lt.return=se,lt}case $t:{var jt=Se._payload,Vt=Se._init;return re(se,Vt(jt),le)}}if(un(Se)||ya(Se)){var Zn=hp(Se,se.mode,le,null);return Zn.return=se,Zn}u0(se,Se)}return typeof Se=="function"&&c0(se),null}function ee(se,Se,le,Ue){var ft=Se!==null?Se.key:null;if(typeof le=="string"&&le!==""||typeof le=="number")return ft!==null?null:x(se,Se,""+le,Ue);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case Qi:return le.key===ft?T(se,Se,le,Ue):null;case sa:return le.key===ft?L(se,Se,le,Ue):null;case $t:{var lt=le._payload,jt=le._init;return ee(se,Se,jt(lt),Ue)}}if(un(le)||ya(le))return ft!==null?null:j(se,Se,le,Ue,null);u0(se,le)}return typeof le=="function"&&c0(se),null}function de(se,Se,le,Ue,ft){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"){var lt=se.get(le)||null;return x(Se,lt,""+Ue,ft)}if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case Qi:{var jt=se.get(Ue.key===null?le:Ue.key)||null;return T(Se,jt,Ue,ft)}case sa:{var Vt=se.get(Ue.key===null?le:Ue.key)||null;return L(Se,Vt,Ue,ft)}case $t:var Zn=Ue._payload,Tn=Ue._init;return de(se,Se,le,Tn(Zn),ft)}if(un(Ue)||ya(Ue)){var na=se.get(le)||null;return j(Se,na,Ue,ft,null)}u0(Se,Ue)}return typeof Ue=="function"&&c0(Se),null}function me(se,Se,le){{if(typeof se!="object"||se===null)return Se;switch(se.$$typeof){case Qi:case sa:rT(se,le);var Ue=se.key;if(typeof Ue!="string")break;if(Se===null){Se=new Set,Se.add(Ue);break}if(!Se.has(Ue)){Se.add(Ue);break}v("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ue);break;case $t:var ft=se._payload,lt=se._init;me(lt(ft),Se,le);break}}return Se}function Ce(se,Se,le,Ue){for(var ft=null,lt=0;lt<le.length;lt++){var jt=le[lt];ft=me(jt,ft,se)}for(var Vt=null,Zn=null,Tn=Se,na=0,An=0,Qr=null;Tn!==null&&An<le.length;An++){Tn.index>An?(Qr=Tn,Tn=null):Qr=Tn.sibling;var Hi=ee(se,Tn,le[An],Ue);if(Hi===null){Tn===null&&(Tn=Qr);break}e&&Tn&&Hi.alternate===null&&t(se,Tn),na=y(Hi,na,An),Zn===null?Vt=Hi:Zn.sibling=Hi,Zn=Hi,Tn=Qr}if(An===le.length){if(s(se,Tn),mi()){var Di=An;Bf(se,Di)}return Vt}if(Tn===null){for(;An<le.length;An++){var os=re(se,le[An],Ue);os!==null&&(na=y(os,na,An),Zn===null?Vt=os:Zn.sibling=os,Zn=os)}if(mi()){var co=An;Bf(se,co)}return Vt}for(var po=l(se,Tn);An<le.length;An++){var qi=de(po,se,An,le[An],Ue);qi!==null&&(e&&qi.alternate!==null&&po.delete(qi.key===null?An:qi.key),na=y(qi,na,An),Zn===null?Vt=qi:Zn.sibling=qi,Zn=qi)}if(e&&po.forEach(function(Km){return t(se,Km)}),mi()){var Uc=An;Bf(se,Uc)}return Vt}function tt(se,Se,le,Ue){var ft=ya(le);if(typeof ft!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&le[Symbol.toStringTag]==="Generator"&&(Mw||v("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Mw=!0),le.entries===ft&&(Iw||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Iw=!0);var lt=ft.call(le);if(lt)for(var jt=null,Vt=lt.next();!Vt.done;Vt=lt.next()){var Zn=Vt.value;jt=me(Zn,jt,se)}}var Tn=ft.call(le);if(Tn==null)throw new Error("An iterable object provided no iterator.");for(var na=null,An=null,Qr=Se,Hi=0,Di=0,os=null,co=Tn.next();Qr!==null&&!co.done;Di++,co=Tn.next()){Qr.index>Di?(os=Qr,Qr=null):os=Qr.sibling;var po=ee(se,Qr,co.value,Ue);if(po===null){Qr===null&&(Qr=os);break}e&&Qr&&po.alternate===null&&t(se,Qr),Hi=y(po,Hi,Di),An===null?na=po:An.sibling=po,An=po,Qr=os}if(co.done){if(s(se,Qr),mi()){var qi=Di;Bf(se,qi)}return na}if(Qr===null){for(;!co.done;Di++,co=Tn.next()){var Uc=re(se,co.value,Ue);Uc!==null&&(Hi=y(Uc,Hi,Di),An===null?na=Uc:An.sibling=Uc,An=Uc)}if(mi()){var Km=Di;Bf(se,Km)}return na}for(var hy=l(se,Qr);!co.done;Di++,co=Tn.next()){var Fu=de(hy,se,Di,co.value,Ue);Fu!==null&&(e&&Fu.alternate!==null&&hy.delete(Fu.key===null?Di:Fu.key),Hi=y(Fu,Hi,Di),An===null?na=Fu:An.sibling=Fu,An=Fu)}if(e&&hy.forEach(function(V7){return t(se,V7)}),mi()){var W7=Di;Bf(se,W7)}return na}function Et(se,Se,le,Ue){if(Se!==null&&Se.tag===M){s(se,Se.sibling);var ft=p(Se,le);return ft.return=se,ft}s(se,Se);var lt=jD(le,se.mode,Ue);return lt.return=se,lt}function Nt(se,Se,le,Ue){for(var ft=le.key,lt=Se;lt!==null;){if(lt.key===ft){var jt=le.type;if(jt===oi){if(lt.tag===V){s(se,lt.sibling);var Vt=p(lt,le.props.children);return Vt.return=se,Vt._debugSource=le._source,Vt._debugOwner=le._owner,Vt}}else if(lt.elementType===jt||cF(lt,le)||typeof jt=="object"&&jt!==null&&jt.$$typeof===$t&&aT(jt)===lt.type){s(se,lt.sibling);var Zn=p(lt,le.props);return Zn.ref=Bv(se,lt,le),Zn.return=se,Zn._debugSource=le._source,Zn._debugOwner=le._owner,Zn}s(se,lt);break}else t(se,lt);lt=lt.sibling}if(le.type===oi){var Tn=hp(le.props.children,se.mode,Ue,le.key);return Tn.return=se,Tn}else{var na=BD(le,se.mode,Ue);return na.ref=Bv(se,Se,le),na.return=se,na}}function cn(se,Se,le,Ue){for(var ft=le.key,lt=Se;lt!==null;){if(lt.key===ft)if(lt.tag===R&<.stateNode.containerInfo===le.containerInfo&<.stateNode.implementation===le.implementation){s(se,lt.sibling);var jt=p(lt,le.children||[]);return jt.return=se,jt}else{s(se,lt);break}else t(se,lt);lt=lt.sibling}var Vt=ID(le,se.mode,Ue);return Vt.return=se,Vt}function on(se,Se,le,Ue){var ft=typeof le=="object"&&le!==null&&le.type===oi&&le.key===null;if(ft&&(le=le.props.children),typeof le=="object"&&le!==null){switch(le.$$typeof){case Qi:return w(Nt(se,Se,le,Ue));case sa:return w(cn(se,Se,le,Ue));case $t:var lt=le._payload,jt=le._init;return on(se,Se,jt(lt),Ue)}if(un(le))return Ce(se,Se,le,Ue);if(ya(le))return tt(se,Se,le,Ue);u0(se,le)}return typeof le=="string"&&le!==""||typeof le=="number"?w(Et(se,Se,""+le,Ue)):(typeof le=="function"&&c0(se),s(se,Se))}return on}var Pm=iT(!0),oT=iT(!1);function w6(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,l=Kf(s,s.pendingProps);for(t.child=l,l.return=t;s.sibling!==null;)s=s.sibling,l=l.sibling=Kf(s,s.pendingProps),l.return=t;l.sibling=null}}function D6(e,t){for(var s=e.child;s!==null;)u7(s,t),s=s.sibling}var qw=ep(null),Ww;Ww={};var d0=null,Nm=null,Vw=null,p0=!1;function f0(){d0=null,Nm=null,Vw=null,p0=!1}function sT(){p0=!0}function lT(){p0=!1}function uT(e,t,s){zi(qw,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Ww&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Ww}function Yw(e,t){var s=qw.current;Mi(qw,t),e._currentValue=s}function Gw(e,t,s){for(var l=e;l!==null;){var p=l.alternate;if(kc(l.childLanes,t)?p!==null&&!kc(p.childLanes,t)&&(p.childLanes=Kt(p.childLanes,t)):(l.childLanes=Kt(l.childLanes,t),p!==null&&(p.childLanes=Kt(p.childLanes,t))),l===s)break;l=l.return}l!==s&&v("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function S6(e,t,s){C6(e,t,s)}function C6(e,t,s){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var p=void 0,y=l.dependencies;if(y!==null){p=l.child;for(var w=y.firstContext;w!==null;){if(w.context===t){if(l.tag===_){var x=Bd(s),T=Lc(hr,x);T.tag=m0;var L=l.updateQueue;if(L!==null){var j=L.shared,re=j.pending;re===null?T.next=T:(T.next=re.next,re.next=T),j.pending=T}}l.lanes=Kt(l.lanes,s);var ee=l.alternate;ee!==null&&(ee.lanes=Kt(ee.lanes,s)),Gw(l.return,s,e),y.lanes=Kt(y.lanes,s);break}w=w.next}}else if(l.tag===K)p=l.type===e.type?null:l.child;else if(l.tag===Ve){var de=l.return;if(de===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");de.lanes=Kt(de.lanes,s);var me=de.alternate;me!==null&&(me.lanes=Kt(me.lanes,s)),Gw(de,s,e),p=l.sibling}else p=l.child;if(p!==null)p.return=l;else for(p=l;p!==null;){if(p===e){p=null;break}var Ce=p.sibling;if(Ce!==null){Ce.return=p.return,p=Ce;break}p=p.return}l=p}}function Rm(e,t){d0=e,Nm=null,Vw=null;var s=e.dependencies;if(s!==null){var l=s.firstContext;l!==null&&(Ii(s.lanes,t)&&Xv(),s.firstContext=null)}}function ma(e){p0&&v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(Vw!==e){var s={context:e,memoizedValue:t,next:null};if(Nm===null){if(d0===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Nm=s,d0.dependencies={lanes:De,firstContext:s}}else Nm=Nm.next=s}return t}var Uf=null;function Qw(e){Uf===null?Uf=[e]:Uf.push(e)}function x6(){if(Uf!==null){for(var e=0;e<Uf.length;e++){var t=Uf[e],s=t.interleaved;if(s!==null){t.interleaved=null;var l=s.next,p=t.pending;if(p!==null){var y=p.next;p.next=l,s.next=y}t.pending=s}}Uf=null}}function cT(e,t,s,l){var p=t.interleaved;return p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s,h0(e,l)}function E6(e,t,s,l){var p=t.interleaved;p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s}function _6(e,t,s,l){var p=t.interleaved;return p===null?(s.next=s,Qw(t)):(s.next=p.next,p.next=s),t.interleaved=s,h0(e,l)}function Lo(e,t){return h0(e,t)}var T6=h0;function h0(e,t){e.lanes=Kt(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Kt(s.lanes,t)),s===null&&(e.flags&(tr|Pi))!==_t&&oF(e);for(var l=e,p=e.return;p!==null;)p.childLanes=Kt(p.childLanes,t),s=p.alternate,s!==null?s.childLanes=Kt(s.childLanes,t):(p.flags&(tr|Pi))!==_t&&oF(e),l=p,p=p.return;if(l.tag===N){var y=l.stateNode;return y}else return null}var dT=0,pT=1,m0=2,Kw=3,g0=!1,Zw,v0;Zw=!1,v0=null;function Xw(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:De},effects:null};e.updateQueue=t}function fT(e,t){var s=t.updateQueue,l=e.updateQueue;if(s===l){var p={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects};t.updateQueue=p}}function Lc(e,t){var s={eventTime:e,lane:t,tag:dT,payload:null,callback:null,next:null};return s}function ap(e,t,s){var l=e.updateQueue;if(l===null)return null;var p=l.shared;if(v0===p&&!Zw&&(v("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Zw=!0),E9()){var y=p.pending;return y===null?t.next=t:(t.next=y.next,y.next=t),p.pending=t,T6(e,s)}else return _6(e,p,t,s)}function y0(e,t,s){var l=t.updateQueue;if(l!==null){var p=l.shared;if(Gg(s)){var y=p.lanes;y=tm(y,e.pendingLanes);var w=Kt(y,s);p.lanes=w,jd(e,w)}}}function Jw(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null){var p=l.updateQueue;if(s===p){var y=null,w=null,x=s.firstBaseUpdate;if(x!==null){var T=x;do{var L={eventTime:T.eventTime,lane:T.lane,tag:T.tag,payload:T.payload,callback:T.callback,next:null};w===null?y=w=L:(w.next=L,w=L),T=T.next}while(T!==null);w===null?y=w=t:(w.next=t,w=t)}else y=w=t;s={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:p.shared,effects:p.effects},e.updateQueue=s;return}}var j=s.lastBaseUpdate;j===null?s.firstBaseUpdate=t:j.next=t,s.lastBaseUpdate=t}function A6(e,t,s,l,p,y){switch(s.tag){case pT:{var w=s.payload;if(typeof w=="function"){sT();var x=w.call(y,l,p);{if(e.mode&A){$r(!0);try{w.call(y,l,p)}finally{$r(!1)}}lT()}return x}return w}case Kw:e.flags=e.flags&~Lr|Ft;case dT:{var T=s.payload,L;if(typeof T=="function"){sT(),L=T.call(y,l,p);{if(e.mode&A){$r(!0);try{T.call(y,l,p)}finally{$r(!1)}}lT()}}else L=T;return L==null?l:Gt({},l,L)}case m0:return g0=!0,l}return l}function b0(e,t,s,l){var p=e.updateQueue;g0=!1,v0=p.shared;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,x=p.shared.pending;if(x!==null){p.shared.pending=null;var T=x,L=T.next;T.next=null,w===null?y=L:w.next=L,w=T;var j=e.alternate;if(j!==null){var re=j.updateQueue,ee=re.lastBaseUpdate;ee!==w&&(ee===null?re.firstBaseUpdate=L:ee.next=L,re.lastBaseUpdate=T)}}if(y!==null){var de=p.baseState,me=De,Ce=null,tt=null,Et=null,Nt=y;do{var cn=Nt.lane,on=Nt.eventTime;if(kc(l,cn)){if(Et!==null){var se={eventTime:on,lane:Tt,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Et=Et.next=se}de=A6(e,p,Nt,de,t,s);var Se=Nt.callback;if(Se!==null&&Nt.lane!==Tt){e.flags|=Fi;var le=p.effects;le===null?p.effects=[Nt]:le.push(Nt)}}else{var Ue={eventTime:on,lane:cn,tag:Nt.tag,payload:Nt.payload,callback:Nt.callback,next:null};Et===null?(tt=Et=Ue,Ce=de):Et=Et.next=Ue,me=Kt(me,cn)}if(Nt=Nt.next,Nt===null){if(x=p.shared.pending,x===null)break;var ft=x,lt=ft.next;ft.next=null,Nt=lt,p.lastBaseUpdate=ft,p.shared.pending=null}}while(!0);Et===null&&(Ce=de),p.baseState=Ce,p.firstBaseUpdate=tt,p.lastBaseUpdate=Et;var jt=p.shared.interleaved;if(jt!==null){var Vt=jt;do me=Kt(me,Vt.lane),Vt=Vt.next;while(Vt!==jt)}else y===null&&(p.shared.lanes=De);uy(me),e.lanes=me,e.memoizedState=de}v0=null}function F6(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function hT(){g0=!1}function k0(){return g0}function mT(e,t,s){var l=t.effects;if(t.effects=null,l!==null)for(var p=0;p<l.length;p++){var y=l[p],w=y.callback;w!==null&&(y.callback=null,F6(w,s))}}var jv={},ip=ep(jv),Iv=ep(jv),w0=ep(jv);function D0(e){if(e===jv)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function gT(){var e=D0(w0.current);return e}function e2(e,t){zi(w0,t,e),zi(Iv,e,e),zi(ip,jv,e);var s=YM(t);Mi(ip,e),zi(ip,s,e)}function Om(e){Mi(ip,e),Mi(Iv,e),Mi(w0,e)}function t2(){var e=D0(ip.current);return e}function vT(e){D0(w0.current);var t=D0(ip.current),s=GM(t,e.type);t!==s&&(zi(Iv,e,e),zi(ip,s,e))}function n2(e){Iv.current===e&&(Mi(ip,e),Mi(Iv,e))}var $6=0,yT=1,bT=1,Mv=2,wl=ep($6);function r2(e,t){return(e&t)!==0}function Lm(e){return e&yT}function a2(e,t){return e&yT|t}function P6(e,t){return e|t}function op(e,t){zi(wl,t,e)}function Bm(e){Mi(wl,e)}function N6(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function S0(e){for(var t=e;t!==null;){if(t.tag===U){var s=t.memoizedState;if(s!==null){var l=s.dehydrated;if(l===null||L_(l)||Dw(l))return t}}else if(t.tag===rt&&t.memoizedProps.revealOrder!==void 0){var p=(t.flags&Ft)!==_t;if(p)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,Ea=1,Su=2,_a=4,gi=8,i2=[];function o2(){for(var e=0;e<i2.length;e++){var t=i2[e];t._workInProgressVersionPrimary=null}i2.length=0}function R6(e,t){var s=t._getVersion,l=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,l]:e.mutableSourceEagerHydrationData.push(t,l)}var pt=o.ReactCurrentDispatcher,zv=o.ReactCurrentBatchConfig,s2,jm;s2=new Set;var Hf=De,Kn=null,Ta=null,Aa=null,C0=!1,Uv=!1,Hv=0,O6=0,L6=25,_e=null,Ms=null,sp=-1,l2=!1;function In(){{var e=_e;Ms===null?Ms=[e]:Ms.push(e)}}function Xe(){{var e=_e;Ms!==null&&(sp++,Ms[sp]!==e&&B6(e))}}function Im(e){e!=null&&!un(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",_e,typeof e)}function B6(e){{var t=Mt(Kn);if(!s2.has(t)&&(s2.add(t),Ms!==null)){for(var s="",l=30,p=0;p<=sp;p++){for(var y=Ms[p],w=p===sp?e:y,x=p+1+". "+y;x.length<l;)x+=" ";x+=w+`
|
|
237
237
|
`,s+=x}v(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
238
238
|
|
|
239
239
|
Previous render Next render
|
|
@@ -246,11 +246,11 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
246
246
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function u2(e,t){if(l2)return!1;if(t===null)return v("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",_e),!1;e.length!==t.length&&v(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
247
247
|
|
|
248
248
|
Previous: %s
|
|
249
|
-
Incoming: %s`,_e,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!bt(e[s],t[s]))return!1;return!0}function Mm(e,t,s,l,p,y){Hf=y,Kn=t,Ms=e!==null?e._debugHookTypes:null,sp=-1,l2=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=De,e!==null&&e.memoizedState!==null?pt.current=MT:Ms!==null?pt.current=IT:pt.current=jT;var w=s(l,p);if(Uv){var x=0;do{if(Uv=!1,Hv=0,x>=O6)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");x+=1,l2=!1,Ta=null,Aa=null,t.updateQueue=null,sp=-1,pt.current=zT,w=s(l,p)}while(Uv)}pt.current=B0,t._debugHookTypes=Ms;var T=Ta!==null&&Ta.next!==null;if(Hf=De,Kn=null,Ta=null,Aa=null,_e=null,Ms=null,sp=-1,e!==null&&(e.flags&Xr)!==(t.flags&Xr)&&(e.mode&b)!==h&&v("Internal React error: Expected static flag was missing. Please notify the React team."),C0=!1,T)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function zm(){var e=Hv!==0;return Hv=0,e}function bT(e,t,s){t.updateQueue=e.updateQueue,(t.mode&I)!==h?t.flags&=~(sl|Ha|cr|Ge):t.flags&=~(cr|Ge),e.lanes=wf(e.lanes,s)}function kT(){if(pt.current=B0,C0){for(var e=Kn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}C0=!1}Hf=De,Kn=null,Ta=null,Aa=null,Ms=null,sp=-1,_e=null,NT=!1,Uv=!1,Hv=0}function Cu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Aa===null?Kn.memoizedState=Aa=e:Aa=Aa.next=e,Aa}function zs(){var e;if(Ta===null){var t=Kn.alternate;t!==null?e=t.memoizedState:e=null}else e=Ta.next;var s;if(Aa===null?s=Kn.memoizedState:s=Aa.next,s!==null)Aa=s,s=Aa.next,Ta=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Ta=e;var l={memoizedState:Ta.memoizedState,baseState:Ta.baseState,baseQueue:Ta.baseQueue,queue:Ta.queue,next:null};Aa===null?Kn.memoizedState=Aa=l:Aa=Aa.next=l}return Aa}function wT(){return{lastEffect:null,stores:null}}function c2(e,t){return typeof t=="function"?t(e):t}function d2(e,t,s){var l=Cu(),p;s!==void 0?p=s(t):p=t,l.memoizedState=l.baseState=p;var y={pending:null,interleaved:null,lanes:De,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};l.queue=y;var w=y.dispatch=M6.bind(null,Kn,y);return[l.memoizedState,w]}function p2(e,t,s){var l=zs(),p=l.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var y=Ta,w=y.baseQueue,x=p.pending;if(x!==null){if(w!==null){var T=w.next,L=x.next;w.next=L,x.next=T}y.baseQueue!==w&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=x,p.pending=null}if(w!==null){var j=w.next,re=y.baseState,ee=null,de=null,me=null,Ce=j;do{var tt=Ce.lane;if(kc(Hf,tt)){if(me!==null){var Et={lane:Tt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me=me.next=Et}if(Ce.hasEagerState)re=Ce.eagerState;else{var Nt=Ce.action;re=e(re,Nt)}}else{var cn={lane:tt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me===null?(de=me=cn,ee=re):me=me.next=cn,Kn.lanes=Kt(Kn.lanes,tt),uy(tt)}Ce=Ce.next}while(Ce!==null&&Ce!==j);me===null?ee=re:me.next=de,bt(re,l.memoizedState)||Xv(),l.memoizedState=re,l.baseState=ee,l.baseQueue=me,p.lastRenderedState=re}var on=p.interleaved;if(on!==null){var se=on;do{var Se=se.lane;Kn.lanes=Kt(Kn.lanes,Se),uy(Se),se=se.next}while(se!==on)}else w===null&&(p.lanes=De);var le=p.dispatch;return[l.memoizedState,le]}function f2(e,t,s){var l=zs(),p=l.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var y=p.dispatch,w=p.pending,x=l.memoizedState;if(w!==null){p.pending=null;var T=w.next,L=T;do{var j=L.action;x=e(x,j),L=L.next}while(L!==T);bt(x,l.memoizedState)||Xv(),l.memoizedState=x,l.baseQueue===null&&(l.baseState=x),p.lastRenderedState=x}return[x,y]}function h2(e,t,s){var l=Kn,p=Cu(),y,w=mi();if(w){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=s(),jm||y!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),jm=!0)}else{if(y=t(),!jm){var x=t();bt(y,x)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),jm=!0)}var T=rk();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");kf(T,Hf)||DT(l,t,y)}p.memoizedState=y;var L={value:y,getSnapshot:t};return p.queue=L,A0(CT.bind(null,l,L,e),[e]),l.flags|=cr,qv(Ea|gi,ST.bind(null,l,L,y,t),void 0,null),y}function x0(e,t,s){var l=Kn,p=zs(),y=t();if(!jm){var w=t();bt(y,w)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),jm=!0)}var x=p.memoizedState,T=!bt(x,y);T&&(p.memoizedState=y,Xv());var L=p.queue;if(Vv(CT.bind(null,l,L,e),[e]),L.getSnapshot!==t||T||Aa!==null&&Aa.memoizedState.tag&Ea){l.flags|=cr,qv(Ea|gi,ST.bind(null,l,L,y,t),void 0,null);var j=rk();if(j===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");kf(j,Hf)||DT(l,t,y)}return y}function DT(e,t,s){e.flags|=cc;var l={getSnapshot:t,value:s},p=Kn.updateQueue;if(p===null)p=wT(),Kn.updateQueue=p,p.stores=[l];else{var y=p.stores;y===null?p.stores=[l]:y.push(l)}}function ST(e,t,s,l){t.value=s,t.getSnapshot=l,xT(t)&&ET(e)}function CT(e,t,s){var l=function(){xT(t)&&ET(e)};return s(l)}function xT(e){var t=e.getSnapshot,s=e.value;try{var l=t();return!bt(s,l)}catch{return!0}}function ET(e){var t=Lo(e,ze);t!==null&&Na(t,e,ze,hr)}function E0(e){var t=Cu();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:De,dispatch:null,lastRenderedReducer:c2,lastRenderedState:e};t.queue=s;var l=s.dispatch=z6.bind(null,Kn,s);return[t.memoizedState,l]}function m2(e){return p2(c2)}function g2(e){return f2(c2)}function qv(e,t,s,l){var p={tag:e,create:t,destroy:s,deps:l,next:null},y=Kn.updateQueue;if(y===null)y=wT(),Kn.updateQueue=y,y.lastEffect=p.next=p;else{var w=y.lastEffect;if(w===null)y.lastEffect=p.next=p;else{var x=w.next;w.next=p,p.next=x,y.lastEffect=p}}return p}function v2(e){var t=Cu();{var s={current:e};return t.memoizedState=s,s}}function _0(e){var t=zs();return t.memoizedState}function Wv(e,t,s,l){var p=Cu(),y=l===void 0?null:l;Kn.flags|=e,p.memoizedState=qv(Ea|t,s,void 0,y)}function T0(e,t,s,l){var p=zs(),y=l===void 0?null:l,w=void 0;if(Ta!==null){var x=Ta.memoizedState;if(w=x.destroy,y!==null){var T=x.deps;if(u2(y,T)){p.memoizedState=qv(t,s,w,y);return}}}Kn.flags|=e,p.memoizedState=qv(Ea|t,s,w,y)}function A0(e,t){return(Kn.mode&I)!==h?Wv(sl|cr|Fs,gi,e,t):Wv(cr|Fs,gi,e,t)}function Vv(e,t){return T0(cr,gi,e,t)}function y2(e,t){return Wv(Ge,Su,e,t)}function F0(e,t){return T0(Ge,Su,e,t)}function b2(e,t){var s=Ge;return s|=Ua,(Kn.mode&I)!==h&&(s|=Ha),Wv(s,_a,e,t)}function $0(e,t){return T0(Ge,_a,e,t)}function _T(e,t){if(typeof t=="function"){var s=t,l=e();return s(l),function(){s(null)}}else if(t!=null){var p=t;p.hasOwnProperty("current")||v("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var y=e();return p.current=y,function(){p.current=null}}}function k2(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var l=s!=null?s.concat([e]):null,p=Ge;return p|=Ua,(Kn.mode&I)!==h&&(p|=Ha),Wv(p,_a,_T.bind(null,t,e),l)}function P0(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var l=s!=null?s.concat([e]):null;return T0(Ge,_a,_T.bind(null,t,e),l)}function B6(e,t){}var N0=B6;function w2(e,t){var s=Cu(),l=t===void 0?null:t;return s.memoizedState=[e,l],e}function R0(e,t){var s=zs(),l=t===void 0?null:t,p=s.memoizedState;if(p!==null&&l!==null){var y=p[1];if(u2(l,y))return p[0]}return s.memoizedState=[e,l],e}function D2(e,t){var s=Cu(),l=t===void 0?null:t,p=e();return s.memoizedState=[p,l],p}function O0(e,t){var s=zs(),l=t===void 0?null:t,p=s.memoizedState;if(p!==null&&l!==null){var y=p[1];if(u2(l,y))return p[0]}var w=e();return s.memoizedState=[w,l],w}function S2(e){var t=Cu();return t.memoizedState=e,e}function TT(e){var t=zs(),s=Ta,l=s.memoizedState;return FT(t,l,e)}function AT(e){var t=zs();if(Ta===null)return t.memoizedState=e,e;var s=Ta.memoizedState;return FT(t,s,e)}function FT(e,t,s){var l=!pb(Hf);if(l){if(!bt(s,t)){var p=mb();Kn.lanes=Kt(Kn.lanes,p),uy(p),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Xv()),e.memoizedState=s,s}function j6(e,t,s){var l=$o();Jr(Ka(l,xa)),e(!0);var p=zv.transition;zv.transition={};var y=zv.transition;zv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Jr(l),zv.transition=p,p===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&g("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),y._updatedFibers.clear()}}}function C2(){var e=E0(!1),t=e[0],s=e[1],l=j6.bind(null,s),p=Cu();return p.memoizedState=l,[t,l]}function $T(){var e=m2(),t=e[0],s=zs(),l=s.memoizedState;return[t,l]}function PT(){var e=g2(),t=e[0],s=zs(),l=s.memoizedState;return[t,l]}var NT=!1;function I6(){return NT}function x2(){var e=Cu(),t=rk(),s=t.identifierPrefix,l;if(mi()){var p=n6();l=":"+s+"R"+p;var y=Hv++;y>0&&(l+="H"+y.toString(32)),l+=":"}else{var w=R6++;l=":"+s+"r"+w.toString(32)+":"}return e.memoizedState=l,l}function L0(){var e=zs(),t=e.memoizedState;return t}function M6(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var l=pp(e),p={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(RT(e))OT(t,p);else{var y=uT(e,t,p,l);if(y!==null){var w=uo();Na(y,e,l,w),LT(y,t,l)}}BT(e,l)}function z6(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var l=pp(e),p={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(RT(e))OT(t,p);else{var y=e.alternate;if(e.lanes===De&&(y===null||y.lanes===De)){var w=t.lastRenderedReducer;if(w!==null){var x;x=pt.current,pt.current=Dl;try{var T=t.lastRenderedState,L=w(T,s);if(p.hasEagerState=!0,p.eagerState=L,bt(L,T)){x6(e,t,p,l);return}}catch{}finally{pt.current=x}}}var j=uT(e,t,p,l);if(j!==null){var re=uo();Na(j,e,l,re),LT(j,t,l)}}BT(e,l)}function RT(e){var t=e.alternate;return e===Kn||t!==null&&t===Kn}function OT(e,t){Uv=C0=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function LT(e,t,s){if(Gg(s)){var l=t.lanes;l=tm(l,e.pendingLanes);var p=Kt(l,s);t.lanes=p,jd(e,p)}}function BT(e,t,s){d(e,t)}var B0={readContext:ma,useCallback:Ui,useContext:Ui,useEffect:Ui,useImperativeHandle:Ui,useInsertionEffect:Ui,useLayoutEffect:Ui,useMemo:Ui,useReducer:Ui,useRef:Ui,useState:Ui,useDebugValue:Ui,useDeferredValue:Ui,useTransition:Ui,useMutableSource:Ui,useSyncExternalStore:Ui,useId:Ui,unstable_isNewReconciler:ve},jT=null,IT=null,MT=null,zT=null,xu=null,Dl=null,j0=null;{var E2=function(){v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},qt=function(){v("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};jT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",In(),Im(t),w2(e,t)},useContext:function(e){return _e="useContext",In(),ma(e)},useEffect:function(e,t){return _e="useEffect",In(),Im(t),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",In(),Im(s),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",In(),Im(t),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",In(),Im(t),b2(e,t)},useMemo:function(e,t){_e="useMemo",In(),Im(t);var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",In();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",In(),v2(e)},useState:function(e){_e="useState",In();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",In(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",In(),S2(e)},useTransition:function(){return _e="useTransition",In(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",In(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",In(),h2(e,t,s)},useId:function(){return _e="useId",In(),x2()},unstable_isNewReconciler:ve},IT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),w2(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),b2(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),v2(e)},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),S2(e)},useTransition:function(){return _e="useTransition",Xe(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),h2(e,t,s)},useId:function(){return _e="useId",Xe(),x2()},unstable_isNewReconciler:ve},MT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),R0(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=Dl;try{return p2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),_0()},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=Dl;try{return m2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),TT(e)},useTransition:function(){return _e="useTransition",Xe(),$T()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),x0(e,t)},useId:function(){return _e="useId",Xe(),L0()},unstable_isNewReconciler:ve},zT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),R0(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=j0;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=j0;try{return f2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),_0()},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=j0;try{return g2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),AT(e)},useTransition:function(){return _e="useTransition",Xe(),PT()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),x0(e,t)},useId:function(){return _e="useId",Xe(),L0()},unstable_isNewReconciler:ve},xu={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),In(),w2(e,t)},useContext:function(e){return _e="useContext",qt(),In(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),In(),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),In(),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),In(),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),In(),b2(e,t)},useMemo:function(e,t){_e="useMemo",qt(),In();var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),In();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),In(),v2(e)},useState:function(e){_e="useState",qt(),In();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),In(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",qt(),In(),S2(e)},useTransition:function(){return _e="useTransition",qt(),In(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),In(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),In(),h2(e,t,s)},useId:function(){return _e="useId",qt(),In(),x2()},unstable_isNewReconciler:ve},Dl={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),Xe(),R0(e,t)},useContext:function(e){return _e="useContext",qt(),Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",qt(),Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),Xe();var l=pt.current;pt.current=Dl;try{return p2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),Xe(),_0()},useState:function(e){_e="useState",qt(),Xe();var t=pt.current;pt.current=Dl;try{return m2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",qt(),Xe(),TT(e)},useTransition:function(){return _e="useTransition",qt(),Xe(),$T()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),Xe(),x0(e,t)},useId:function(){return _e="useId",qt(),Xe(),L0()},unstable_isNewReconciler:ve},j0={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),Xe(),R0(e,t)},useContext:function(e){return _e="useContext",qt(),Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",qt(),Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),Xe();var l=pt.current;pt.current=Dl;try{return f2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),Xe(),_0()},useState:function(e){_e="useState",qt(),Xe();var t=pt.current;pt.current=Dl;try{return g2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",qt(),Xe(),AT(e)},useTransition:function(){return _e="useTransition",qt(),Xe(),PT()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),Xe(),x0(e,t)},useId:function(){return _e="useId",qt(),Xe(),L0()},unstable_isNewReconciler:ve}}var lp=r.unstable_now,UT=0,I0=-1,Yv=-1,M0=-1,_2=!1,z0=!1;function HT(){return _2}function U6(){z0=!0}function H6(){_2=!1,z0=!1}function q6(){_2=z0,z0=!1}function qT(){return UT}function WT(){UT=lp()}function T2(e){Yv=lp(),e.actualStartTime<0&&(e.actualStartTime=lp())}function VT(e){Yv=-1}function U0(e,t){if(Yv>=0){var s=lp()-Yv;e.actualDuration+=s,t&&(e.selfBaseDuration=s),Yv=-1}}function Eu(e){if(I0>=0){var t=lp()-I0;I0=-1;for(var s=e.return;s!==null;){switch(s.tag){case N:var l=s.stateNode;l.effectDuration+=t;return;case ne:var p=s.stateNode;p.effectDuration+=t;return}s=s.return}}}function A2(e){if(M0>=0){var t=lp()-M0;M0=-1;for(var s=e.return;s!==null;){switch(s.tag){case N:var l=s.stateNode;l!==null&&(l.passiveEffectDuration+=t);return;case ne:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=t);return}s=s.return}}}function _u(){I0=lp()}function F2(){M0=lp()}function $2(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Sl(e,t){if(e&&e.defaultProps){var s=Gt({},t),l=e.defaultProps;for(var p in l)s[p]===void 0&&(s[p]=l[p]);return s}return t}var P2={},N2,R2,O2,L2,B2,YT,H0,j2,I2,M2,Gv;{N2=new Set,R2=new Set,O2=new Set,L2=new Set,j2=new Set,B2=new Set,I2=new Set,M2=new Set,Gv=new Set;var GT=new Set;H0=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;GT.has(s)||(GT.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},YT=function(e,t){if(t===void 0){var s=ln(e)||"Component";B2.has(s)||(B2.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(P2,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(P2)}function z2(e,t,s,l){var p=e.memoizedState,y=s(l,p);{if(e.mode&A){$r(!0);try{y=s(l,p)}finally{$r(!1)}}YT(t,y)}var w=y==null?p:Gt({},p,y);if(e.memoizedState=w,e.lanes===De){var x=e.updateQueue;x.baseState=w}}var U2={isMounted:pi,enqueueSetState:function(e,t,s){var l=Ai(e),p=uo(),y=pp(l),w=Lc(p,y);w.payload=t,s!=null&&(H0(s,"setState"),w.callback=s);var x=ap(l,w,y);x!==null&&(Na(x,l,y,p),y0(x,l,y)),d(l,y)},enqueueReplaceState:function(e,t,s){var l=Ai(e),p=uo(),y=pp(l),w=Lc(p,y);w.tag=dT,w.payload=t,s!=null&&(H0(s,"replaceState"),w.callback=s);var x=ap(l,w,y);x!==null&&(Na(x,l,y,p),y0(x,l,y)),d(l,y)},enqueueForceUpdate:function(e,t){var s=Ai(e),l=uo(),p=pp(s),y=Lc(l,p);y.tag=m0,t!=null&&(H0(t,"forceUpdate"),y.callback=t);var w=ap(s,y,p);w!==null&&(Na(w,s,p,l),y0(w,s,p)),$d(s,p)}};function QT(e,t,s,l,p,y,w){var x=e.stateNode;if(typeof x.shouldComponentUpdate=="function"){var T=x.shouldComponentUpdate(l,y,w);{if(e.mode&A){$r(!0);try{T=x.shouldComponentUpdate(l,y,w)}finally{$r(!1)}}T===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ln(t)||"Component")}return T}return t.prototype&&t.prototype.isPureReactComponent?!At(s,l)||!At(p,y):!0}function W6(e,t,s){var l=e.stateNode;{var p=ln(t)||"Component",y=l.render;y||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):v("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&v("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&v("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),l.propTypes&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),l.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),t.childContextTypes&&!Gv.has(t)&&(e.mode&A)===h&&(Gv.add(t),v(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
249
|
+
Incoming: %s`,_e,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!bt(e[s],t[s]))return!1;return!0}function Mm(e,t,s,l,p,y){Hf=y,Kn=t,Ms=e!==null?e._debugHookTypes:null,sp=-1,l2=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=De,e!==null&&e.memoizedState!==null?pt.current=zT:Ms!==null?pt.current=MT:pt.current=IT;var w=s(l,p);if(Uv){var x=0;do{if(Uv=!1,Hv=0,x>=L6)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");x+=1,l2=!1,Ta=null,Aa=null,t.updateQueue=null,sp=-1,pt.current=UT,w=s(l,p)}while(Uv)}pt.current=B0,t._debugHookTypes=Ms;var T=Ta!==null&&Ta.next!==null;if(Hf=De,Kn=null,Ta=null,Aa=null,_e=null,Ms=null,sp=-1,e!==null&&(e.flags&Xr)!==(t.flags&Xr)&&(e.mode&b)!==h&&v("Internal React error: Expected static flag was missing. Please notify the React team."),C0=!1,T)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return w}function zm(){var e=Hv!==0;return Hv=0,e}function kT(e,t,s){t.updateQueue=e.updateQueue,(t.mode&I)!==h?t.flags&=~(sl|Ha|cr|Ge):t.flags&=~(cr|Ge),e.lanes=wf(e.lanes,s)}function wT(){if(pt.current=B0,C0){for(var e=Kn.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}C0=!1}Hf=De,Kn=null,Ta=null,Aa=null,Ms=null,sp=-1,_e=null,RT=!1,Uv=!1,Hv=0}function Cu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Aa===null?Kn.memoizedState=Aa=e:Aa=Aa.next=e,Aa}function zs(){var e;if(Ta===null){var t=Kn.alternate;t!==null?e=t.memoizedState:e=null}else e=Ta.next;var s;if(Aa===null?s=Kn.memoizedState:s=Aa.next,s!==null)Aa=s,s=Aa.next,Ta=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Ta=e;var l={memoizedState:Ta.memoizedState,baseState:Ta.baseState,baseQueue:Ta.baseQueue,queue:Ta.queue,next:null};Aa===null?Kn.memoizedState=Aa=l:Aa=Aa.next=l}return Aa}function DT(){return{lastEffect:null,stores:null}}function c2(e,t){return typeof t=="function"?t(e):t}function d2(e,t,s){var l=Cu(),p;s!==void 0?p=s(t):p=t,l.memoizedState=l.baseState=p;var y={pending:null,interleaved:null,lanes:De,dispatch:null,lastRenderedReducer:e,lastRenderedState:p};l.queue=y;var w=y.dispatch=z6.bind(null,Kn,y);return[l.memoizedState,w]}function p2(e,t,s){var l=zs(),p=l.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var y=Ta,w=y.baseQueue,x=p.pending;if(x!==null){if(w!==null){var T=w.next,L=x.next;w.next=L,x.next=T}y.baseQueue!==w&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),y.baseQueue=w=x,p.pending=null}if(w!==null){var j=w.next,re=y.baseState,ee=null,de=null,me=null,Ce=j;do{var tt=Ce.lane;if(kc(Hf,tt)){if(me!==null){var Et={lane:Tt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me=me.next=Et}if(Ce.hasEagerState)re=Ce.eagerState;else{var Nt=Ce.action;re=e(re,Nt)}}else{var cn={lane:tt,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me===null?(de=me=cn,ee=re):me=me.next=cn,Kn.lanes=Kt(Kn.lanes,tt),uy(tt)}Ce=Ce.next}while(Ce!==null&&Ce!==j);me===null?ee=re:me.next=de,bt(re,l.memoizedState)||Xv(),l.memoizedState=re,l.baseState=ee,l.baseQueue=me,p.lastRenderedState=re}var on=p.interleaved;if(on!==null){var se=on;do{var Se=se.lane;Kn.lanes=Kt(Kn.lanes,Se),uy(Se),se=se.next}while(se!==on)}else w===null&&(p.lanes=De);var le=p.dispatch;return[l.memoizedState,le]}function f2(e,t,s){var l=zs(),p=l.queue;if(p===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");p.lastRenderedReducer=e;var y=p.dispatch,w=p.pending,x=l.memoizedState;if(w!==null){p.pending=null;var T=w.next,L=T;do{var j=L.action;x=e(x,j),L=L.next}while(L!==T);bt(x,l.memoizedState)||Xv(),l.memoizedState=x,l.baseQueue===null&&(l.baseState=x),p.lastRenderedState=x}return[x,y]}function h2(e,t,s){var l=Kn,p=Cu(),y,w=mi();if(w){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");y=s(),jm||y!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),jm=!0)}else{if(y=t(),!jm){var x=t();bt(y,x)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),jm=!0)}var T=rk();if(T===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");kf(T,Hf)||ST(l,t,y)}p.memoizedState=y;var L={value:y,getSnapshot:t};return p.queue=L,A0(xT.bind(null,l,L,e),[e]),l.flags|=cr,qv(Ea|gi,CT.bind(null,l,L,y,t),void 0,null),y}function x0(e,t,s){var l=Kn,p=zs(),y=t();if(!jm){var w=t();bt(y,w)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),jm=!0)}var x=p.memoizedState,T=!bt(x,y);T&&(p.memoizedState=y,Xv());var L=p.queue;if(Vv(xT.bind(null,l,L,e),[e]),L.getSnapshot!==t||T||Aa!==null&&Aa.memoizedState.tag&Ea){l.flags|=cr,qv(Ea|gi,CT.bind(null,l,L,y,t),void 0,null);var j=rk();if(j===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");kf(j,Hf)||ST(l,t,y)}return y}function ST(e,t,s){e.flags|=cc;var l={getSnapshot:t,value:s},p=Kn.updateQueue;if(p===null)p=DT(),Kn.updateQueue=p,p.stores=[l];else{var y=p.stores;y===null?p.stores=[l]:y.push(l)}}function CT(e,t,s,l){t.value=s,t.getSnapshot=l,ET(t)&&_T(e)}function xT(e,t,s){var l=function(){ET(t)&&_T(e)};return s(l)}function ET(e){var t=e.getSnapshot,s=e.value;try{var l=t();return!bt(s,l)}catch{return!0}}function _T(e){var t=Lo(e,ze);t!==null&&Na(t,e,ze,hr)}function E0(e){var t=Cu();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:De,dispatch:null,lastRenderedReducer:c2,lastRenderedState:e};t.queue=s;var l=s.dispatch=U6.bind(null,Kn,s);return[t.memoizedState,l]}function m2(e){return p2(c2)}function g2(e){return f2(c2)}function qv(e,t,s,l){var p={tag:e,create:t,destroy:s,deps:l,next:null},y=Kn.updateQueue;if(y===null)y=DT(),Kn.updateQueue=y,y.lastEffect=p.next=p;else{var w=y.lastEffect;if(w===null)y.lastEffect=p.next=p;else{var x=w.next;w.next=p,p.next=x,y.lastEffect=p}}return p}function v2(e){var t=Cu();{var s={current:e};return t.memoizedState=s,s}}function _0(e){var t=zs();return t.memoizedState}function Wv(e,t,s,l){var p=Cu(),y=l===void 0?null:l;Kn.flags|=e,p.memoizedState=qv(Ea|t,s,void 0,y)}function T0(e,t,s,l){var p=zs(),y=l===void 0?null:l,w=void 0;if(Ta!==null){var x=Ta.memoizedState;if(w=x.destroy,y!==null){var T=x.deps;if(u2(y,T)){p.memoizedState=qv(t,s,w,y);return}}}Kn.flags|=e,p.memoizedState=qv(Ea|t,s,w,y)}function A0(e,t){return(Kn.mode&I)!==h?Wv(sl|cr|Fs,gi,e,t):Wv(cr|Fs,gi,e,t)}function Vv(e,t){return T0(cr,gi,e,t)}function y2(e,t){return Wv(Ge,Su,e,t)}function F0(e,t){return T0(Ge,Su,e,t)}function b2(e,t){var s=Ge;return s|=Ua,(Kn.mode&I)!==h&&(s|=Ha),Wv(s,_a,e,t)}function $0(e,t){return T0(Ge,_a,e,t)}function TT(e,t){if(typeof t=="function"){var s=t,l=e();return s(l),function(){s(null)}}else if(t!=null){var p=t;p.hasOwnProperty("current")||v("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(p).join(", ")+"}");var y=e();return p.current=y,function(){p.current=null}}}function k2(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var l=s!=null?s.concat([e]):null,p=Ge;return p|=Ua,(Kn.mode&I)!==h&&(p|=Ha),Wv(p,_a,TT.bind(null,t,e),l)}function P0(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var l=s!=null?s.concat([e]):null;return T0(Ge,_a,TT.bind(null,t,e),l)}function j6(e,t){}var N0=j6;function w2(e,t){var s=Cu(),l=t===void 0?null:t;return s.memoizedState=[e,l],e}function R0(e,t){var s=zs(),l=t===void 0?null:t,p=s.memoizedState;if(p!==null&&l!==null){var y=p[1];if(u2(l,y))return p[0]}return s.memoizedState=[e,l],e}function D2(e,t){var s=Cu(),l=t===void 0?null:t,p=e();return s.memoizedState=[p,l],p}function O0(e,t){var s=zs(),l=t===void 0?null:t,p=s.memoizedState;if(p!==null&&l!==null){var y=p[1];if(u2(l,y))return p[0]}var w=e();return s.memoizedState=[w,l],w}function S2(e){var t=Cu();return t.memoizedState=e,e}function AT(e){var t=zs(),s=Ta,l=s.memoizedState;return $T(t,l,e)}function FT(e){var t=zs();if(Ta===null)return t.memoizedState=e,e;var s=Ta.memoizedState;return $T(t,s,e)}function $T(e,t,s){var l=!pb(Hf);if(l){if(!bt(s,t)){var p=mb();Kn.lanes=Kt(Kn.lanes,p),uy(p),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Xv()),e.memoizedState=s,s}function I6(e,t,s){var l=$o();Jr(Ka(l,xa)),e(!0);var p=zv.transition;zv.transition={};var y=zv.transition;zv.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Jr(l),zv.transition=p,p===null&&y._updatedFibers){var w=y._updatedFibers.size;w>10&&g("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),y._updatedFibers.clear()}}}function C2(){var e=E0(!1),t=e[0],s=e[1],l=I6.bind(null,s),p=Cu();return p.memoizedState=l,[t,l]}function PT(){var e=m2(),t=e[0],s=zs(),l=s.memoizedState;return[t,l]}function NT(){var e=g2(),t=e[0],s=zs(),l=s.memoizedState;return[t,l]}var RT=!1;function M6(){return RT}function x2(){var e=Cu(),t=rk(),s=t.identifierPrefix,l;if(mi()){var p=r6();l=":"+s+"R"+p;var y=Hv++;y>0&&(l+="H"+y.toString(32)),l+=":"}else{var w=O6++;l=":"+s+"r"+w.toString(32)+":"}return e.memoizedState=l,l}function L0(){var e=zs(),t=e.memoizedState;return t}function z6(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var l=pp(e),p={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(OT(e))LT(t,p);else{var y=cT(e,t,p,l);if(y!==null){var w=uo();Na(y,e,l,w),BT(y,t,l)}}jT(e,l)}function U6(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var l=pp(e),p={lane:l,action:s,hasEagerState:!1,eagerState:null,next:null};if(OT(e))LT(t,p);else{var y=e.alternate;if(e.lanes===De&&(y===null||y.lanes===De)){var w=t.lastRenderedReducer;if(w!==null){var x;x=pt.current,pt.current=Dl;try{var T=t.lastRenderedState,L=w(T,s);if(p.hasEagerState=!0,p.eagerState=L,bt(L,T)){E6(e,t,p,l);return}}catch{}finally{pt.current=x}}}var j=cT(e,t,p,l);if(j!==null){var re=uo();Na(j,e,l,re),BT(j,t,l)}}jT(e,l)}function OT(e){var t=e.alternate;return e===Kn||t!==null&&t===Kn}function LT(e,t){Uv=C0=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function BT(e,t,s){if(Gg(s)){var l=t.lanes;l=tm(l,e.pendingLanes);var p=Kt(l,s);t.lanes=p,jd(e,p)}}function jT(e,t,s){d(e,t)}var B0={readContext:ma,useCallback:Ui,useContext:Ui,useEffect:Ui,useImperativeHandle:Ui,useInsertionEffect:Ui,useLayoutEffect:Ui,useMemo:Ui,useReducer:Ui,useRef:Ui,useState:Ui,useDebugValue:Ui,useDeferredValue:Ui,useTransition:Ui,useMutableSource:Ui,useSyncExternalStore:Ui,useId:Ui,unstable_isNewReconciler:ve},IT=null,MT=null,zT=null,UT=null,xu=null,Dl=null,j0=null;{var E2=function(){v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},qt=function(){v("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};IT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",In(),Im(t),w2(e,t)},useContext:function(e){return _e="useContext",In(),ma(e)},useEffect:function(e,t){return _e="useEffect",In(),Im(t),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",In(),Im(s),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",In(),Im(t),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",In(),Im(t),b2(e,t)},useMemo:function(e,t){_e="useMemo",In(),Im(t);var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",In();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",In(),v2(e)},useState:function(e){_e="useState",In();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",In(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",In(),S2(e)},useTransition:function(){return _e="useTransition",In(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",In(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",In(),h2(e,t,s)},useId:function(){return _e="useId",In(),x2()},unstable_isNewReconciler:ve},MT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),w2(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),b2(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),v2(e)},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),S2(e)},useTransition:function(){return _e="useTransition",Xe(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),h2(e,t,s)},useId:function(){return _e="useId",Xe(),x2()},unstable_isNewReconciler:ve},zT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),R0(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=Dl;try{return p2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),_0()},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=Dl;try{return m2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),AT(e)},useTransition:function(){return _e="useTransition",Xe(),PT()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),x0(e,t)},useId:function(){return _e="useId",Xe(),L0()},unstable_isNewReconciler:ve},UT={readContext:function(e){return ma(e)},useCallback:function(e,t){return _e="useCallback",Xe(),R0(e,t)},useContext:function(e){return _e="useContext",Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",Xe();var s=pt.current;pt.current=j0;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",Xe();var l=pt.current;pt.current=j0;try{return f2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",Xe(),_0()},useState:function(e){_e="useState",Xe();var t=pt.current;pt.current=j0;try{return g2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",Xe(),FT(e)},useTransition:function(){return _e="useTransition",Xe(),NT()},useMutableSource:function(e,t,s){return _e="useMutableSource",Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",Xe(),x0(e,t)},useId:function(){return _e="useId",Xe(),L0()},unstable_isNewReconciler:ve},xu={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),In(),w2(e,t)},useContext:function(e){return _e="useContext",qt(),In(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),In(),A0(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),In(),k2(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),In(),y2(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),In(),b2(e,t)},useMemo:function(e,t){_e="useMemo",qt(),In();var s=pt.current;pt.current=xu;try{return D2(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),In();var l=pt.current;pt.current=xu;try{return d2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),In(),v2(e)},useState:function(e){_e="useState",qt(),In();var t=pt.current;pt.current=xu;try{return E0(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),In(),void 0},useDeferredValue:function(e){return _e="useDeferredValue",qt(),In(),S2(e)},useTransition:function(){return _e="useTransition",qt(),In(),C2()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),In(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),In(),h2(e,t,s)},useId:function(){return _e="useId",qt(),In(),x2()},unstable_isNewReconciler:ve},Dl={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),Xe(),R0(e,t)},useContext:function(e){return _e="useContext",qt(),Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",qt(),Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),Xe();var l=pt.current;pt.current=Dl;try{return p2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),Xe(),_0()},useState:function(e){_e="useState",qt(),Xe();var t=pt.current;pt.current=Dl;try{return m2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",qt(),Xe(),AT(e)},useTransition:function(){return _e="useTransition",qt(),Xe(),PT()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),Xe(),x0(e,t)},useId:function(){return _e="useId",qt(),Xe(),L0()},unstable_isNewReconciler:ve},j0={readContext:function(e){return E2(),ma(e)},useCallback:function(e,t){return _e="useCallback",qt(),Xe(),R0(e,t)},useContext:function(e){return _e="useContext",qt(),Xe(),ma(e)},useEffect:function(e,t){return _e="useEffect",qt(),Xe(),Vv(e,t)},useImperativeHandle:function(e,t,s){return _e="useImperativeHandle",qt(),Xe(),P0(e,t,s)},useInsertionEffect:function(e,t){return _e="useInsertionEffect",qt(),Xe(),F0(e,t)},useLayoutEffect:function(e,t){return _e="useLayoutEffect",qt(),Xe(),$0(e,t)},useMemo:function(e,t){_e="useMemo",qt(),Xe();var s=pt.current;pt.current=Dl;try{return O0(e,t)}finally{pt.current=s}},useReducer:function(e,t,s){_e="useReducer",qt(),Xe();var l=pt.current;pt.current=Dl;try{return f2(e,t,s)}finally{pt.current=l}},useRef:function(e){return _e="useRef",qt(),Xe(),_0()},useState:function(e){_e="useState",qt(),Xe();var t=pt.current;pt.current=Dl;try{return g2(e)}finally{pt.current=t}},useDebugValue:function(e,t){return _e="useDebugValue",qt(),Xe(),N0()},useDeferredValue:function(e){return _e="useDeferredValue",qt(),Xe(),FT(e)},useTransition:function(){return _e="useTransition",qt(),Xe(),NT()},useMutableSource:function(e,t,s){return _e="useMutableSource",qt(),Xe(),void 0},useSyncExternalStore:function(e,t,s){return _e="useSyncExternalStore",qt(),Xe(),x0(e,t)},useId:function(){return _e="useId",qt(),Xe(),L0()},unstable_isNewReconciler:ve}}var lp=r.unstable_now,HT=0,I0=-1,Yv=-1,M0=-1,_2=!1,z0=!1;function qT(){return _2}function H6(){z0=!0}function q6(){_2=!1,z0=!1}function W6(){_2=z0,z0=!1}function WT(){return HT}function VT(){HT=lp()}function T2(e){Yv=lp(),e.actualStartTime<0&&(e.actualStartTime=lp())}function YT(e){Yv=-1}function U0(e,t){if(Yv>=0){var s=lp()-Yv;e.actualDuration+=s,t&&(e.selfBaseDuration=s),Yv=-1}}function Eu(e){if(I0>=0){var t=lp()-I0;I0=-1;for(var s=e.return;s!==null;){switch(s.tag){case N:var l=s.stateNode;l.effectDuration+=t;return;case ne:var p=s.stateNode;p.effectDuration+=t;return}s=s.return}}}function A2(e){if(M0>=0){var t=lp()-M0;M0=-1;for(var s=e.return;s!==null;){switch(s.tag){case N:var l=s.stateNode;l!==null&&(l.passiveEffectDuration+=t);return;case ne:var p=s.stateNode;p!==null&&(p.passiveEffectDuration+=t);return}s=s.return}}}function _u(){I0=lp()}function F2(){M0=lp()}function $2(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Sl(e,t){if(e&&e.defaultProps){var s=Gt({},t),l=e.defaultProps;for(var p in l)s[p]===void 0&&(s[p]=l[p]);return s}return t}var P2={},N2,R2,O2,L2,B2,GT,H0,j2,I2,M2,Gv;{N2=new Set,R2=new Set,O2=new Set,L2=new Set,j2=new Set,B2=new Set,I2=new Set,M2=new Set,Gv=new Set;var QT=new Set;H0=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;QT.has(s)||(QT.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},GT=function(e,t){if(t===void 0){var s=ln(e)||"Component";B2.has(s)||(B2.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(P2,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(P2)}function z2(e,t,s,l){var p=e.memoizedState,y=s(l,p);{if(e.mode&A){$r(!0);try{y=s(l,p)}finally{$r(!1)}}GT(t,y)}var w=y==null?p:Gt({},p,y);if(e.memoizedState=w,e.lanes===De){var x=e.updateQueue;x.baseState=w}}var U2={isMounted:pi,enqueueSetState:function(e,t,s){var l=Ai(e),p=uo(),y=pp(l),w=Lc(p,y);w.payload=t,s!=null&&(H0(s,"setState"),w.callback=s);var x=ap(l,w,y);x!==null&&(Na(x,l,y,p),y0(x,l,y)),d(l,y)},enqueueReplaceState:function(e,t,s){var l=Ai(e),p=uo(),y=pp(l),w=Lc(p,y);w.tag=pT,w.payload=t,s!=null&&(H0(s,"replaceState"),w.callback=s);var x=ap(l,w,y);x!==null&&(Na(x,l,y,p),y0(x,l,y)),d(l,y)},enqueueForceUpdate:function(e,t){var s=Ai(e),l=uo(),p=pp(s),y=Lc(l,p);y.tag=m0,t!=null&&(H0(t,"forceUpdate"),y.callback=t);var w=ap(s,y,p);w!==null&&(Na(w,s,p,l),y0(w,s,p)),$d(s,p)}};function KT(e,t,s,l,p,y,w){var x=e.stateNode;if(typeof x.shouldComponentUpdate=="function"){var T=x.shouldComponentUpdate(l,y,w);{if(e.mode&A){$r(!0);try{T=x.shouldComponentUpdate(l,y,w)}finally{$r(!1)}}T===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ln(t)||"Component")}return T}return t.prototype&&t.prototype.isPureReactComponent?!At(s,l)||!At(p,y):!0}function V6(e,t,s){var l=e.stateNode;{var p=ln(t)||"Component",y=l.render;y||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",p):v("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",p)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&v("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",p),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&v("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",p),l.propTypes&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",p),l.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",p),t.childContextTypes&&!Gv.has(t)&&(e.mode&A)===h&&(Gv.add(t),v(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
250
250
|
|
|
251
251
|
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)),t.contextTypes&&!Gv.has(t)&&(e.mode&A)===h&&(Gv.add(t),v(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
252
252
|
|
|
253
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)),l.contextTypes&&v("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),t.contextType&&t.contextTypes&&!I2.has(t)&&(I2.add(t),v("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof l.componentShouldUpdate=="function"&&v("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),t.prototype&&t.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&v("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ln(t)||"A pure component"),typeof l.componentDidUnmount=="function"&&v("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof l.componentDidReceiveProps=="function"&&v("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof l.componentWillRecieveProps=="function"&&v("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof l.UNSAFE_componentWillRecieveProps=="function"&&v("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var w=l.props!==s;l.props!==void 0&&w&&v("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),l.defaultProps&&v("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!O2.has(t)&&(O2.add(t),v("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ln(t))),typeof l.getDerivedStateFromProps=="function"&&v("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof l.getDerivedStateFromError=="function"&&v("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof t.getSnapshotBeforeUpdate=="function"&&v("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var x=l.state;x&&(typeof x!="object"||un(x))&&v("%s.state: must be set to an object or null",p),typeof l.getChildContext=="function"&&typeof t.childContextTypes!="object"&&v("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function
|
|
253
|
+
Learn more about this warning here: https://reactjs.org/link/legacy-context`,p)),l.contextTypes&&v("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",p),t.contextType&&t.contextTypes&&!I2.has(t)&&(I2.add(t),v("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",p)),typeof l.componentShouldUpdate=="function"&&v("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",p),t.prototype&&t.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&v("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",ln(t)||"A pure component"),typeof l.componentDidUnmount=="function"&&v("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",p),typeof l.componentDidReceiveProps=="function"&&v("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",p),typeof l.componentWillRecieveProps=="function"&&v("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",p),typeof l.UNSAFE_componentWillRecieveProps=="function"&&v("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",p);var w=l.props!==s;l.props!==void 0&&w&&v("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",p,p),l.defaultProps&&v("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",p,p),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!O2.has(t)&&(O2.add(t),v("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ln(t))),typeof l.getDerivedStateFromProps=="function"&&v("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof l.getDerivedStateFromError=="function"&&v("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",p),typeof t.getSnapshotBeforeUpdate=="function"&&v("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",p);var x=l.state;x&&(typeof x!="object"||un(x))&&v("%s.state: must be set to an object or null",p),typeof l.getChildContext=="function"&&typeof t.childContextTypes!="object"&&v("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",p)}}function ZT(e,t){t.updater=U2,e.stateNode=t,il(t,e),t._reactInternalInstance=P2}function XT(e,t,s){var l=!1,p=as,y=as,w=t.contextType;if("contextType"in t){var x=w===null||w!==void 0&&w.$$typeof===$e&&w._context===void 0;if(!x&&!M2.has(t)){M2.add(t);var T="";w===void 0?T=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof w!="object"?T=" However, it is set to a "+typeof w+".":w.$$typeof===W?T=" Did you accidentally pass the Context.Provider instead?":w._context!==void 0?T=" Did you accidentally pass the Context.Consumer instead?":T=" However, it is set to an object with keys {"+Object.keys(w).join(", ")+"}.",v("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",ln(t)||"Component",T)}}if(typeof w=="object"&&w!==null)y=ma(w);else{p=_m(e,t,!0);var L=t.contextTypes;l=L!=null,y=l?Tm(e,p):as}var j=new t(s,y);if(e.mode&A){$r(!0);try{j=new t(s,y)}finally{$r(!1)}}var re=e.memoizedState=j.state!==null&&j.state!==void 0?j.state:null;ZT(e,j);{if(typeof t.getDerivedStateFromProps=="function"&&re===null){var ee=ln(t)||"Component";R2.has(ee)||(R2.add(ee),v("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",ee,j.state===null?"null":"undefined",ee))}if(typeof t.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"){var de=null,me=null,Ce=null;if(typeof j.componentWillMount=="function"&&j.componentWillMount.__suppressDeprecationWarning!==!0?de="componentWillMount":typeof j.UNSAFE_componentWillMount=="function"&&(de="UNSAFE_componentWillMount"),typeof j.componentWillReceiveProps=="function"&&j.componentWillReceiveProps.__suppressDeprecationWarning!==!0?me="componentWillReceiveProps":typeof j.UNSAFE_componentWillReceiveProps=="function"&&(me="UNSAFE_componentWillReceiveProps"),typeof j.componentWillUpdate=="function"&&j.componentWillUpdate.__suppressDeprecationWarning!==!0?Ce="componentWillUpdate":typeof j.UNSAFE_componentWillUpdate=="function"&&(Ce="UNSAFE_componentWillUpdate"),de!==null||me!==null||Ce!==null){var tt=ln(t)||"Component",Et=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";L2.has(tt)||(L2.add(tt),v(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
254
254
|
|
|
255
255
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
256
256
|
|
|
@@ -258,13 +258,13 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
258
258
|
https://reactjs.org/link/unsafe-component-lifecycles`,tt,Et,de!==null?`
|
|
259
259
|
`+de:"",me!==null?`
|
|
260
260
|
`+me:"",Ce!==null?`
|
|
261
|
-
`+Ce:""))}}}return l&&
|
|
261
|
+
`+Ce:""))}}}return l&&z_(e,p,y),j}function Y6(e,t){var s=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),s!==t.state&&(v("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Mt(e)||"Component"),U2.enqueueReplaceState(t,t.state,null))}function JT(e,t,s,l){var p=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,l),t.state!==p){{var y=Mt(e)||"Component";N2.has(y)||(N2.add(y),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",y))}U2.enqueueReplaceState(t,t.state,null)}}function H2(e,t,s,l){V6(e,t,s);var p=e.stateNode;p.props=s,p.state=e.memoizedState,p.refs={},Xw(e);var y=t.contextType;if(typeof y=="object"&&y!==null)p.context=ma(y);else{var w=_m(e,t,!0);p.context=Tm(e,w)}{if(p.state===s){var x=ln(t)||"Component";j2.has(x)||(j2.add(x),v("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",x))}e.mode&A&&kl.recordLegacyContextWarning(e,p),kl.recordUnsafeLifecycleWarnings(e,p)}p.state=e.memoizedState;var T=t.getDerivedStateFromProps;if(typeof T=="function"&&(z2(e,t,T,s),p.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof p.getSnapshotBeforeUpdate!="function"&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(Y6(e,p),b0(e,s,p,l),p.state=e.memoizedState),typeof p.componentDidMount=="function"){var L=Ge;L|=Ua,(e.mode&I)!==h&&(L|=Ha),e.flags|=L}}function G6(e,t,s,l){var p=e.stateNode,y=e.memoizedProps;p.props=y;var w=p.context,x=t.contextType,T=as;if(typeof x=="object"&&x!==null)T=ma(x);else{var L=_m(e,t,!0);T=Tm(e,L)}var j=t.getDerivedStateFromProps,re=typeof j=="function"||typeof p.getSnapshotBeforeUpdate=="function";!re&&(typeof p.UNSAFE_componentWillReceiveProps=="function"||typeof p.componentWillReceiveProps=="function")&&(y!==s||w!==T)&&JT(e,p,s,T),hT();var ee=e.memoizedState,de=p.state=ee;if(b0(e,s,p,l),de=e.memoizedState,y===s&&ee===de&&!e0()&&!k0()){if(typeof p.componentDidMount=="function"){var me=Ge;me|=Ua,(e.mode&I)!==h&&(me|=Ha),e.flags|=me}return!1}typeof j=="function"&&(z2(e,t,j,s),de=e.memoizedState);var Ce=k0()||KT(e,t,y,s,ee,de,T);if(Ce){if(!re&&(typeof p.UNSAFE_componentWillMount=="function"||typeof p.componentWillMount=="function")&&(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"){var tt=Ge;tt|=Ua,(e.mode&I)!==h&&(tt|=Ha),e.flags|=tt}}else{if(typeof p.componentDidMount=="function"){var Et=Ge;Et|=Ua,(e.mode&I)!==h&&(Et|=Ha),e.flags|=Et}e.memoizedProps=s,e.memoizedState=de}return p.props=s,p.state=de,p.context=T,Ce}function Q6(e,t,s,l,p){var y=t.stateNode;fT(e,t);var w=t.memoizedProps,x=t.type===t.elementType?w:Sl(t.type,w);y.props=x;var T=t.pendingProps,L=y.context,j=s.contextType,re=as;if(typeof j=="object"&&j!==null)re=ma(j);else{var ee=_m(t,s,!0);re=Tm(t,ee)}var de=s.getDerivedStateFromProps,me=typeof de=="function"||typeof y.getSnapshotBeforeUpdate=="function";!me&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(w!==T||L!==re)&&JT(t,y,l,re),hT();var Ce=t.memoizedState,tt=y.state=Ce;if(b0(t,l,y,p),tt=t.memoizedState,w===T&&Ce===tt&&!e0()&&!k0()&&!Re)return typeof y.componentDidUpdate=="function"&&(w!==e.memoizedProps||Ce!==e.memoizedState)&&(t.flags|=Ge),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==e.memoizedProps||Ce!==e.memoizedState)&&(t.flags|=$i),!1;typeof de=="function"&&(z2(t,s,de,l),tt=t.memoizedState);var Et=k0()||KT(t,s,x,l,Ce,tt,re)||Re;return Et?(!me&&(typeof y.UNSAFE_componentWillUpdate=="function"||typeof y.componentWillUpdate=="function")&&(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,tt,re),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,tt,re)),typeof y.componentDidUpdate=="function"&&(t.flags|=Ge),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=$i)):(typeof y.componentDidUpdate=="function"&&(w!==e.memoizedProps||Ce!==e.memoizedState)&&(t.flags|=Ge),typeof y.getSnapshotBeforeUpdate=="function"&&(w!==e.memoizedProps||Ce!==e.memoizedState)&&(t.flags|=$i),t.memoizedProps=l,t.memoizedState=tt),y.props=l,y.state=tt,y.context=re,Et}function qf(e,t){return{value:e,source:t,stack:Hl(t),digest:null}}function q2(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function K6(e,t){return!0}function W2(e,t){try{var s=K6(e,t);if(s===!1)return;var l=t.value,p=t.source,y=t.stack,w=y!==null?y:"";if(l!=null&&l._suppressLogging){if(e.tag===_)return;console.error(l)}var x=p?Mt(p):null,T=x?"The above error occurred in the <"+x+"> component:":"The above error occurred in one of your React components:",L;if(e.tag===N)L=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
262
262
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var j=Mt(e)||"Anonymous";L="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+j+".")}var re=T+`
|
|
263
263
|
`+w+`
|
|
264
264
|
|
|
265
|
-
`+(""+L);console.error(re)}catch(ee){setTimeout(function(){throw ee})}}var K6=typeof WeakMap=="function"?WeakMap:Map;function JT(e,t,s){var l=Lc(hr,s);l.tag=Kw,l.payload={element:null};var p=t.value;return l.callback=function(){U9(p),W2(e,t)},l}function V2(e,t,s){var l=Lc(hr,s);l.tag=Kw;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var y=t.value;l.payload=function(){return p(y)},l.callback=function(){cF(e),W2(e,t)}}var w=e.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(l.callback=function(){cF(e),W2(e,t),typeof p!="function"&&M9(this);var x=t.value,T=t.stack;this.componentDidCatch(x,{componentStack:T!==null?T:""}),typeof p!="function"&&(Ii(e.lanes,ze)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Mt(e)||"Unknown"))}),l}function eA(e,t,s){var l=e.pingCache,p;if(l===null?(l=e.pingCache=new K6,p=new Set,l.set(t,p)):(p=l.get(t),p===void 0&&(p=new Set,l.set(t,p))),!p.has(s)){p.add(s);var y=H9.bind(null,e,t,s);Va&&cy(e,s),t.then(y,y)}}function Z6(e,t,s,l){var p=e.updateQueue;if(p===null){var y=new Set;y.add(s),e.updateQueue=y}else p.add(s)}function X6(e,t){var s=e.tag;if((e.mode&b)===h&&(s===E||s===Y||s===oe)){var l=e.alternate;l?(e.updateQueue=l.updateQueue,e.memoizedState=l.memoizedState,e.lanes=l.lanes):(e.updateQueue=null,e.memoizedState=null)}}function tA(e){var t=e;do{if(t.tag===U&&P6(t))return t;t=t.return}while(t!==null);return null}function nA(e,t,s,l,p){if((e.mode&b)===h){if(e===t)e.flags|=Lr;else{if(e.flags|=Ft,s.flags|=ou,s.flags&=~(bd|za),s.tag===_){var y=s.alternate;if(y===null)s.tag=ye;else{var w=Lc(hr,ze);w.tag=m0,ap(s,w,ze)}}s.lanes=Kt(s.lanes,ze)}return e}return e.flags|=Lr,e.lanes=p,e}function J6(e,t,s,l,p){if(s.flags|=za,Va&&cy(e,p),l!==null&&typeof l=="object"&&typeof l.then=="function"){var y=l;X6(s),mi()&&s.mode&b&&Y_();var w=tA(t);if(w!==null){w.flags&=~kr,nA(w,t,s,e,p),w.mode&b&&eA(e,y,p),Z6(w,e,y);return}else{if(!Yg(p)){eA(e,y,p),xD();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");l=x}}else if(mi()&&s.mode&b){Y_();var T=tA(t);if(T!==null){(T.flags&Lr)===_t&&(T.flags|=kr),nA(T,t,s,e,p),jw(qf(l,s));return}}l=qf(l,s),P9(l);var L=t;do{switch(L.tag){case N:{var j=l;L.flags|=Lr;var re=Bd(p);L.lanes=Kt(L.lanes,re);var ee=JT(L,j,re);Jw(L,ee);return}case _:var de=l,me=L.type,Ce=L.stateNode;if((L.flags&Ft)===_t&&(typeof me.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!tF(Ce))){L.flags|=Lr;var tt=Bd(p);L.lanes=Kt(L.lanes,tt);var Et=V2(L,de,tt);Jw(L,Et);return}break}L=L.return}while(L!==null)}function e5(){return null}var Qv=o.ReactCurrentOwner,Cl=!1,Y2,Kv,G2,Q2,K2,Wf,Z2,q0,Zv;Y2={},Kv={},G2={},Q2={},K2={},Wf=!1,Z2={},q0={},Zv={};function so(e,t,s,l){e===null?t.child=iT(t,null,s,l):t.child=Pm(t,e.child,s,l)}function t5(e,t,s,l){t.child=Pm(t,e.child,null,l),t.child=Pm(t,null,s,l)}function rA(e,t,s,l,p){if(t.type!==t.elementType){var y=s.propTypes;y&&yl(y,l,"prop",ln(s))}var w=s.render,x=t.ref,T,L;Rm(t,p),uu(t);{if(Qv.current=t,ja(!0),T=Mm(e,t,w,l,x,p),L=zm(),t.mode&A){$r(!0);try{T=Mm(e,t,w,l,x,p),L=zm()}finally{$r(!1)}}ja(!1)}return Ya(),e!==null&&!Cl?(bT(e,t,p),Bc(e,t,p)):(mi()&&L&&Pw(t),t.flags|=As,so(e,t,T,p),t.child)}function aA(e,t,s,l,p){if(e===null){var y=s.type;if(o7(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=Qm(y),t.tag=oe,t.type=w,eD(t,y),iA(e,t,w,l,p)}{var x=y.propTypes;if(x&&yl(x,l,"prop",ln(y)),s.defaultProps!==void 0){var T=ln(y)||"Unknown";Zv[T]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",T),Zv[T]=!0)}}var L=LD(s.type,null,l,t,t.mode,p);return L.ref=t.ref,L.return=t,t.child=L,L}{var j=s.type,re=j.propTypes;re&&yl(re,l,"prop",ln(j))}var ee=e.child,de=oD(e,p);if(!de){var me=ee.memoizedProps,Ce=s.compare;if(Ce=Ce!==null?Ce:At,Ce(me,l)&&e.ref===t.ref)return Bc(e,t,p)}t.flags|=As;var tt=Kf(ee,l);return tt.ref=t.ref,tt.return=t,t.child=tt,tt}function iA(e,t,s,l,p){if(t.type!==t.elementType){var y=t.elementType;if(y.$$typeof===$t){var w=y,x=w._payload,T=w._init;try{y=T(x)}catch{y=null}var L=y&&y.propTypes;L&&yl(L,l,"prop",ln(y))}}if(e!==null){var j=e.memoizedProps;if(At(j,l)&&e.ref===t.ref&&t.type===e.type)if(Cl=!1,t.pendingProps=l=j,oD(e,p))(e.flags&ou)!==_t&&(Cl=!0);else return t.lanes=e.lanes,Bc(e,t,p)}return X2(e,t,s,l,p)}function oA(e,t,s){var l=t.pendingProps,p=l.children,y=e!==null?e.memoizedState:null;if(l.mode==="hidden"||xe)if((t.mode&b)===h){var w={baseLanes:De,cachePool:null,transitions:null};t.memoizedState=w,ak(t,s)}else if(Ii(s,Ga)){var x={baseLanes:De,cachePool:null,transitions:null};t.memoizedState=x;var T=y!==null?y.baseLanes:s;ak(t,T)}else{var L=null,j;if(y!==null){var re=y.baseLanes;j=Kt(re,s)}else j=s;t.lanes=t.childLanes=Ga;var ee={baseLanes:j,cachePool:L,transitions:null};return t.memoizedState=ee,t.updateQueue=null,ak(t,j),null}else{var de;y!==null?(de=Kt(y.baseLanes,s),t.memoizedState=null):de=s,ak(t,de)}return so(e,t,p,s),t.child}function n5(e,t,s){var l=t.pendingProps;return so(e,t,l,s),t.child}function r5(e,t,s){var l=t.pendingProps.children;return so(e,t,l,s),t.child}function a5(e,t,s){{t.flags|=Ge;{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}var p=t.pendingProps,y=p.children;return so(e,t,y,s),t.child}function sA(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Ma,t.flags|=su)}function X2(e,t,s,l,p){if(t.type!==t.elementType){var y=s.propTypes;y&&yl(y,l,"prop",ln(s))}var w;{var x=_m(t,s,!0);w=Tm(t,x)}var T,L;Rm(t,p),uu(t);{if(Qv.current=t,ja(!0),T=Mm(e,t,s,l,w,p),L=zm(),t.mode&A){$r(!0);try{T=Mm(e,t,s,l,w,p),L=zm()}finally{$r(!1)}}ja(!1)}return Ya(),e!==null&&!Cl?(bT(e,t,p),Bc(e,t,p)):(mi()&&L&&Pw(t),t.flags|=As,so(e,t,T,p),t.child)}function lA(e,t,s,l,p){{switch(w7(t)){case!1:{var y=t.stateNode,w=t.type,x=new w(t.memoizedProps,y.context),T=x.state;y.updater.enqueueSetState(y,T,null);break}case!0:{t.flags|=Ft,t.flags|=Lr;var L=new Error("Simulated error coming from DevTools"),j=Bd(p);t.lanes=Kt(t.lanes,j);var re=V2(t,qf(L,t),j);Jw(t,re);break}}if(t.type!==t.elementType){var ee=s.propTypes;ee&&yl(ee,l,"prop",ln(s))}}var de;Du(s)?(de=!0,n0(t)):de=!1,Rm(t,p);var me=t.stateNode,Ce;me===null?(V0(e,t),ZT(t,s,l),H2(t,s,l,p),Ce=!0):e===null?Ce=Y6(t,s,l,p):Ce=G6(e,t,s,l,p);var tt=J2(e,t,s,Ce,de,p);{var Et=t.stateNode;Ce&&Et.props!==l&&(Wf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Mt(t)||"a component"),Wf=!0)}return tt}function J2(e,t,s,l,p,y){sA(e,t);var w=(t.flags&Ft)!==_t;if(!l&&!w)return p&&H_(t,s,!1),Bc(e,t,y);var x=t.stateNode;Qv.current=t;var T;if(w&&typeof s.getDerivedStateFromError!="function")T=null,VT();else{uu(t);{if(ja(!0),T=x.render(),t.mode&A){$r(!0);try{x.render()}finally{$r(!1)}}ja(!1)}Ya()}return t.flags|=As,e!==null&&w?t5(e,t,T,y):so(e,t,T,y),t.memoizedState=x.state,p&&H_(t,s,!0),t.child}function uA(e){var t=e.stateNode;t.pendingContext?z_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&z_(e,t.context,!1),e2(e,t.containerInfo)}function i5(e,t,s){if(uA(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var l=t.pendingProps,p=t.memoizedState,y=p.element;pT(e,t),b0(t,l,null,s);var w=t.memoizedState;t.stateNode;var x=w.element;if(p.isDehydrated){var T={element:x,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},L=t.updateQueue;if(L.baseState=T,t.memoizedState=T,t.flags&kr){var j=qf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return cA(e,t,x,s,j)}else if(x!==y){var re=qf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return cA(e,t,x,s,re)}else{l6(t);var ee=iT(t,null,x,s);t.child=ee;for(var de=ee;de;)de.flags=de.flags&~tr|Pi,de=de.sibling}}else{if($m(),x===y)return Bc(e,t,s);so(e,t,x,s)}return t.child}function cA(e,t,s,l,p){return $m(),jw(p),t.flags|=kr,so(e,t,s,l),t.child}function o5(e,t,s){gT(t),e===null&&Bw(t);var l=t.type,p=t.pendingProps,y=e!==null?e.memoizedProps:null,w=p.children,x=yw(l,p);return x?w=null:y!==null&&yw(l,y)&&(t.flags|=gn),sA(e,t),so(e,t,w,s),t.child}function s5(e,t){return e===null&&Bw(t),null}function l5(e,t,s,l){V0(e,t);var p=t.pendingProps,y=s,w=y._payload,x=y._init,T=x(w);t.type=T;var L=t.tag=s7(T),j=Sl(T,p),re;switch(L){case E:return eD(t,T),t.type=T=Qm(T),re=X2(null,t,T,j,l),re;case _:return t.type=T=FD(T),re=lA(null,t,T,j,l),re;case Y:return t.type=T=$D(T),re=rA(null,t,T,j,l),re;case ae:{if(t.type!==t.elementType){var ee=T.propTypes;ee&&yl(ee,j,"prop",ln(T))}return re=aA(null,t,T,Sl(T.type,j),l),re}}var de="";throw T!==null&&typeof T=="object"&&T.$$typeof===$t&&(de=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+T+". "+("Lazy element type must resolve to a class or function."+de))}function u5(e,t,s,l,p){V0(e,t),t.tag=_;var y;return Du(s)?(y=!0,n0(t)):y=!1,Rm(t,p),ZT(t,s,l),H2(t,s,l,p),J2(null,t,s,!0,y,p)}function c5(e,t,s,l){V0(e,t);var p=t.pendingProps,y;{var w=_m(t,s,!1);y=Tm(t,w)}Rm(t,l);var x,T;uu(t);{if(s.prototype&&typeof s.prototype.render=="function"){var L=ln(s)||"Unknown";Y2[L]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",L,L),Y2[L]=!0)}t.mode&A&&kl.recordLegacyContextWarning(t,null),ja(!0),Qv.current=t,x=Mm(null,t,s,p,y,l),T=zm(),ja(!1)}if(Ya(),t.flags|=As,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var j=ln(s)||"Unknown";Kv[j]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",j,j,j),Kv[j]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var re=ln(s)||"Unknown";Kv[re]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),Kv[re]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var ee=!1;return Du(s)?(ee=!0,n0(t)):ee=!1,t.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Xw(t),KT(t,x),H2(t,s,p,l),J2(null,t,s,!0,ee,l)}else{if(t.tag=E,t.mode&A){$r(!0);try{x=Mm(null,t,s,p,y,l),T=zm()}finally{$r(!1)}}return mi()&&T&&Pw(t),so(null,t,x,l),eD(t,s),t.child}}function eD(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",l=ka();l&&(s+=`
|
|
265
|
+
`+(""+L);console.error(re)}catch(ee){setTimeout(function(){throw ee})}}var Z6=typeof WeakMap=="function"?WeakMap:Map;function eA(e,t,s){var l=Lc(hr,s);l.tag=Kw,l.payload={element:null};var p=t.value;return l.callback=function(){H9(p),W2(e,t)},l}function V2(e,t,s){var l=Lc(hr,s);l.tag=Kw;var p=e.type.getDerivedStateFromError;if(typeof p=="function"){var y=t.value;l.payload=function(){return p(y)},l.callback=function(){dF(e),W2(e,t)}}var w=e.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(l.callback=function(){dF(e),W2(e,t),typeof p!="function"&&z9(this);var x=t.value,T=t.stack;this.componentDidCatch(x,{componentStack:T!==null?T:""}),typeof p!="function"&&(Ii(e.lanes,ze)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Mt(e)||"Unknown"))}),l}function tA(e,t,s){var l=e.pingCache,p;if(l===null?(l=e.pingCache=new Z6,p=new Set,l.set(t,p)):(p=l.get(t),p===void 0&&(p=new Set,l.set(t,p))),!p.has(s)){p.add(s);var y=q9.bind(null,e,t,s);Va&&cy(e,s),t.then(y,y)}}function X6(e,t,s,l){var p=e.updateQueue;if(p===null){var y=new Set;y.add(s),e.updateQueue=y}else p.add(s)}function J6(e,t){var s=e.tag;if((e.mode&b)===h&&(s===E||s===Y||s===oe)){var l=e.alternate;l?(e.updateQueue=l.updateQueue,e.memoizedState=l.memoizedState,e.lanes=l.lanes):(e.updateQueue=null,e.memoizedState=null)}}function nA(e){var t=e;do{if(t.tag===U&&N6(t))return t;t=t.return}while(t!==null);return null}function rA(e,t,s,l,p){if((e.mode&b)===h){if(e===t)e.flags|=Lr;else{if(e.flags|=Ft,s.flags|=ou,s.flags&=~(bd|za),s.tag===_){var y=s.alternate;if(y===null)s.tag=ye;else{var w=Lc(hr,ze);w.tag=m0,ap(s,w,ze)}}s.lanes=Kt(s.lanes,ze)}return e}return e.flags|=Lr,e.lanes=p,e}function e5(e,t,s,l,p){if(s.flags|=za,Va&&cy(e,p),l!==null&&typeof l=="object"&&typeof l.then=="function"){var y=l;J6(s),mi()&&s.mode&b&&G_();var w=nA(t);if(w!==null){w.flags&=~kr,rA(w,t,s,e,p),w.mode&b&&tA(e,y,p),X6(w,e,y);return}else{if(!Yg(p)){tA(e,y,p),xD();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");l=x}}else if(mi()&&s.mode&b){G_();var T=nA(t);if(T!==null){(T.flags&Lr)===_t&&(T.flags|=kr),rA(T,t,s,e,p),jw(qf(l,s));return}}l=qf(l,s),N9(l);var L=t;do{switch(L.tag){case N:{var j=l;L.flags|=Lr;var re=Bd(p);L.lanes=Kt(L.lanes,re);var ee=eA(L,j,re);Jw(L,ee);return}case _:var de=l,me=L.type,Ce=L.stateNode;if((L.flags&Ft)===_t&&(typeof me.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!nF(Ce))){L.flags|=Lr;var tt=Bd(p);L.lanes=Kt(L.lanes,tt);var Et=V2(L,de,tt);Jw(L,Et);return}break}L=L.return}while(L!==null)}function t5(){return null}var Qv=o.ReactCurrentOwner,Cl=!1,Y2,Kv,G2,Q2,K2,Wf,Z2,q0,Zv;Y2={},Kv={},G2={},Q2={},K2={},Wf=!1,Z2={},q0={},Zv={};function so(e,t,s,l){e===null?t.child=oT(t,null,s,l):t.child=Pm(t,e.child,s,l)}function n5(e,t,s,l){t.child=Pm(t,e.child,null,l),t.child=Pm(t,null,s,l)}function aA(e,t,s,l,p){if(t.type!==t.elementType){var y=s.propTypes;y&&yl(y,l,"prop",ln(s))}var w=s.render,x=t.ref,T,L;Rm(t,p),uu(t);{if(Qv.current=t,ja(!0),T=Mm(e,t,w,l,x,p),L=zm(),t.mode&A){$r(!0);try{T=Mm(e,t,w,l,x,p),L=zm()}finally{$r(!1)}}ja(!1)}return Ya(),e!==null&&!Cl?(kT(e,t,p),Bc(e,t,p)):(mi()&&L&&Pw(t),t.flags|=As,so(e,t,T,p),t.child)}function iA(e,t,s,l,p){if(e===null){var y=s.type;if(s7(y)&&s.compare===null&&s.defaultProps===void 0){var w=y;return w=Qm(y),t.tag=oe,t.type=w,eD(t,y),oA(e,t,w,l,p)}{var x=y.propTypes;if(x&&yl(x,l,"prop",ln(y)),s.defaultProps!==void 0){var T=ln(y)||"Unknown";Zv[T]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",T),Zv[T]=!0)}}var L=LD(s.type,null,l,t,t.mode,p);return L.ref=t.ref,L.return=t,t.child=L,L}{var j=s.type,re=j.propTypes;re&&yl(re,l,"prop",ln(j))}var ee=e.child,de=oD(e,p);if(!de){var me=ee.memoizedProps,Ce=s.compare;if(Ce=Ce!==null?Ce:At,Ce(me,l)&&e.ref===t.ref)return Bc(e,t,p)}t.flags|=As;var tt=Kf(ee,l);return tt.ref=t.ref,tt.return=t,t.child=tt,tt}function oA(e,t,s,l,p){if(t.type!==t.elementType){var y=t.elementType;if(y.$$typeof===$t){var w=y,x=w._payload,T=w._init;try{y=T(x)}catch{y=null}var L=y&&y.propTypes;L&&yl(L,l,"prop",ln(y))}}if(e!==null){var j=e.memoizedProps;if(At(j,l)&&e.ref===t.ref&&t.type===e.type)if(Cl=!1,t.pendingProps=l=j,oD(e,p))(e.flags&ou)!==_t&&(Cl=!0);else return t.lanes=e.lanes,Bc(e,t,p)}return X2(e,t,s,l,p)}function sA(e,t,s){var l=t.pendingProps,p=l.children,y=e!==null?e.memoizedState:null;if(l.mode==="hidden"||xe)if((t.mode&b)===h){var w={baseLanes:De,cachePool:null,transitions:null};t.memoizedState=w,ak(t,s)}else if(Ii(s,Ga)){var x={baseLanes:De,cachePool:null,transitions:null};t.memoizedState=x;var T=y!==null?y.baseLanes:s;ak(t,T)}else{var L=null,j;if(y!==null){var re=y.baseLanes;j=Kt(re,s)}else j=s;t.lanes=t.childLanes=Ga;var ee={baseLanes:j,cachePool:L,transitions:null};return t.memoizedState=ee,t.updateQueue=null,ak(t,j),null}else{var de;y!==null?(de=Kt(y.baseLanes,s),t.memoizedState=null):de=s,ak(t,de)}return so(e,t,p,s),t.child}function r5(e,t,s){var l=t.pendingProps;return so(e,t,l,s),t.child}function a5(e,t,s){var l=t.pendingProps.children;return so(e,t,l,s),t.child}function i5(e,t,s){{t.flags|=Ge;{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}var p=t.pendingProps,y=p.children;return so(e,t,y,s),t.child}function lA(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=Ma,t.flags|=su)}function X2(e,t,s,l,p){if(t.type!==t.elementType){var y=s.propTypes;y&&yl(y,l,"prop",ln(s))}var w;{var x=_m(t,s,!0);w=Tm(t,x)}var T,L;Rm(t,p),uu(t);{if(Qv.current=t,ja(!0),T=Mm(e,t,s,l,w,p),L=zm(),t.mode&A){$r(!0);try{T=Mm(e,t,s,l,w,p),L=zm()}finally{$r(!1)}}ja(!1)}return Ya(),e!==null&&!Cl?(kT(e,t,p),Bc(e,t,p)):(mi()&&L&&Pw(t),t.flags|=As,so(e,t,T,p),t.child)}function uA(e,t,s,l,p){{switch(D7(t)){case!1:{var y=t.stateNode,w=t.type,x=new w(t.memoizedProps,y.context),T=x.state;y.updater.enqueueSetState(y,T,null);break}case!0:{t.flags|=Ft,t.flags|=Lr;var L=new Error("Simulated error coming from DevTools"),j=Bd(p);t.lanes=Kt(t.lanes,j);var re=V2(t,qf(L,t),j);Jw(t,re);break}}if(t.type!==t.elementType){var ee=s.propTypes;ee&&yl(ee,l,"prop",ln(s))}}var de;Du(s)?(de=!0,n0(t)):de=!1,Rm(t,p);var me=t.stateNode,Ce;me===null?(V0(e,t),XT(t,s,l),H2(t,s,l,p),Ce=!0):e===null?Ce=G6(t,s,l,p):Ce=Q6(e,t,s,l,p);var tt=J2(e,t,s,Ce,de,p);{var Et=t.stateNode;Ce&&Et.props!==l&&(Wf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Mt(t)||"a component"),Wf=!0)}return tt}function J2(e,t,s,l,p,y){lA(e,t);var w=(t.flags&Ft)!==_t;if(!l&&!w)return p&&q_(t,s,!1),Bc(e,t,y);var x=t.stateNode;Qv.current=t;var T;if(w&&typeof s.getDerivedStateFromError!="function")T=null,YT();else{uu(t);{if(ja(!0),T=x.render(),t.mode&A){$r(!0);try{x.render()}finally{$r(!1)}}ja(!1)}Ya()}return t.flags|=As,e!==null&&w?n5(e,t,T,y):so(e,t,T,y),t.memoizedState=x.state,p&&q_(t,s,!0),t.child}function cA(e){var t=e.stateNode;t.pendingContext?U_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&U_(e,t.context,!1),e2(e,t.containerInfo)}function o5(e,t,s){if(cA(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var l=t.pendingProps,p=t.memoizedState,y=p.element;fT(e,t),b0(t,l,null,s);var w=t.memoizedState;t.stateNode;var x=w.element;if(p.isDehydrated){var T={element:x,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},L=t.updateQueue;if(L.baseState=T,t.memoizedState=T,t.flags&kr){var j=qf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return dA(e,t,x,s,j)}else if(x!==y){var re=qf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return dA(e,t,x,s,re)}else{u6(t);var ee=oT(t,null,x,s);t.child=ee;for(var de=ee;de;)de.flags=de.flags&~tr|Pi,de=de.sibling}}else{if($m(),x===y)return Bc(e,t,s);so(e,t,x,s)}return t.child}function dA(e,t,s,l,p){return $m(),jw(p),t.flags|=kr,so(e,t,s,l),t.child}function s5(e,t,s){vT(t),e===null&&Bw(t);var l=t.type,p=t.pendingProps,y=e!==null?e.memoizedProps:null,w=p.children,x=yw(l,p);return x?w=null:y!==null&&yw(l,y)&&(t.flags|=gn),lA(e,t),so(e,t,w,s),t.child}function l5(e,t){return e===null&&Bw(t),null}function u5(e,t,s,l){V0(e,t);var p=t.pendingProps,y=s,w=y._payload,x=y._init,T=x(w);t.type=T;var L=t.tag=l7(T),j=Sl(T,p),re;switch(L){case E:return eD(t,T),t.type=T=Qm(T),re=X2(null,t,T,j,l),re;case _:return t.type=T=FD(T),re=uA(null,t,T,j,l),re;case Y:return t.type=T=$D(T),re=aA(null,t,T,j,l),re;case ae:{if(t.type!==t.elementType){var ee=T.propTypes;ee&&yl(ee,j,"prop",ln(T))}return re=iA(null,t,T,Sl(T.type,j),l),re}}var de="";throw T!==null&&typeof T=="object"&&T.$$typeof===$t&&(de=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+T+". "+("Lazy element type must resolve to a class or function."+de))}function c5(e,t,s,l,p){V0(e,t),t.tag=_;var y;return Du(s)?(y=!0,n0(t)):y=!1,Rm(t,p),XT(t,s,l),H2(t,s,l,p),J2(null,t,s,!0,y,p)}function d5(e,t,s,l){V0(e,t);var p=t.pendingProps,y;{var w=_m(t,s,!1);y=Tm(t,w)}Rm(t,l);var x,T;uu(t);{if(s.prototype&&typeof s.prototype.render=="function"){var L=ln(s)||"Unknown";Y2[L]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",L,L),Y2[L]=!0)}t.mode&A&&kl.recordLegacyContextWarning(t,null),ja(!0),Qv.current=t,x=Mm(null,t,s,p,y,l),T=zm(),ja(!1)}if(Ya(),t.flags|=As,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var j=ln(s)||"Unknown";Kv[j]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",j,j,j),Kv[j]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var re=ln(s)||"Unknown";Kv[re]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),Kv[re]=!0)}t.tag=_,t.memoizedState=null,t.updateQueue=null;var ee=!1;return Du(s)?(ee=!0,n0(t)):ee=!1,t.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Xw(t),ZT(t,x),H2(t,s,p,l),J2(null,t,s,!0,ee,l)}else{if(t.tag=E,t.mode&A){$r(!0);try{x=Mm(null,t,s,p,y,l),T=zm()}finally{$r(!1)}}return mi()&&T&&Pw(t),so(null,t,x,l),eD(t,s),t.child}}function eD(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",l=ka();l&&(s+=`
|
|
266
266
|
|
|
267
|
-
Check the render method of \``+l+"`.");var p=l||"",y=e._debugSource;y&&(p=y.fileName+":"+y.lineNumber),K2[p]||(K2[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var w=ln(t)||"Unknown";Zv[w]||(v("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),Zv[w]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var x=ln(t)||"Unknown";Q2[x]||(v("%s: Function components do not support getDerivedStateFromProps.",x),Q2[x]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var T=ln(t)||"Unknown";G2[T]||(v("%s: Function components do not support contextType.",T),G2[T]=!0)}}}var tD={dehydrated:null,treeContext:null,retryLane:Tt};function nD(e){return{baseLanes:e,cachePool:e5(),transitions:null}}function d5(e,t){var s=null;return{baseLanes:Kt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function p5(e,t,s,l){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return r2(e,Mv)}function f5(e,t){return wf(e.childLanes,t)}function dA(e,t,s){var l=t.pendingProps;D7(t)&&(t.flags|=Ft);var p=wl.current,y=!1,w=(t.flags&Ft)!==_t;if(w||p5(p,e)?(y=!0,t.flags&=~Ft):(e===null||e.memoizedState!==null)&&(p=$6(p,yT)),p=Lm(p),op(t,p),e===null){Bw(t);var x=t.memoizedState;if(x!==null){var T=x.dehydrated;if(T!==null)return y5(t,T)}var L=l.children,j=l.fallback;if(y){var re=h5(t,L,j,s),ee=t.child;return ee.memoizedState=nD(s),t.memoizedState=tD,re}else return rD(t,L)}else{var de=e.memoizedState;if(de!==null){var me=de.dehydrated;if(me!==null)return b5(e,t,w,l,me,de,s)}if(y){var Ce=l.fallback,tt=l.children,Et=g5(e,t,tt,Ce,s),Nt=t.child,cn=e.child.memoizedState;return Nt.memoizedState=cn===null?nD(s):d5(cn,s),Nt.childLanes=f5(e,s),t.memoizedState=tD,Et}else{var on=l.children,se=m5(e,t,on,s);return t.memoizedState=null,se}}}function rD(e,t,s){var l=e.mode,p={mode:"visible",children:t},y=aD(p,l);return y.return=e,e.child=y,y}function h5(e,t,s,l){var p=e.mode,y=e.child,w={mode:"hidden",children:t},x,T;return(p&b)===h&&y!==null?(x=y,x.childLanes=De,x.pendingProps=w,e.mode&C&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),T=hp(s,p,l,null)):(x=aD(w,p),T=hp(s,p,l,null)),x.return=e,T.return=e,x.sibling=T,e.child=x,T}function aD(e,t,s){return dF(e,t,De,null)}function pA(e,t){return Kf(e,t)}function m5(e,t,s,l){var p=e.child,y=p.sibling,w=pA(p,{mode:"visible",children:s});if((t.mode&b)===h&&(w.lanes=l),w.return=t,w.sibling=null,y!==null){var x=t.deletions;x===null?(t.deletions=[y],t.flags|=Cn):x.push(y)}return t.child=w,w}function g5(e,t,s,l,p){var y=t.mode,w=e.child,x=w.sibling,T={mode:"hidden",children:s},L;if((y&b)===h&&t.child!==w){var j=t.child;L=j,L.childLanes=De,L.pendingProps=T,t.mode&C&&(L.actualDuration=0,L.actualStartTime=-1,L.selfBaseDuration=w.selfBaseDuration,L.treeBaseDuration=w.treeBaseDuration),t.deletions=null}else L=pA(w,T),L.subtreeFlags=w.subtreeFlags&Xr;var re;return x!==null?re=Kf(x,l):(re=hp(l,y,p,null),re.flags|=tr),re.return=t,L.return=t,L.sibling=re,t.child=L,re}function W0(e,t,s,l){l!==null&&jw(l),Pm(t,e.child,null,s);var p=t.pendingProps,y=p.children,w=rD(t,y);return w.flags|=tr,t.memoizedState=null,w}function v5(e,t,s,l,p){var y=t.mode,w={mode:"visible",children:s},x=aD(w,y),T=hp(l,y,p,null);return T.flags|=tr,x.return=t,T.return=t,x.sibling=T,t.child=x,(t.mode&b)!==h&&Pm(t,e.child,null,p),T}function y5(e,t,s){return(e.mode&b)===h?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=ze):Dw(t)?e.lanes=nr:e.lanes=Ga,null}function b5(e,t,s,l,p,y,w){if(s)if(t.flags&kr){t.flags&=~kr;var x=q2(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return W0(e,t,w,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ft,null;var T=l.children,L=l.fallback,j=v5(e,t,T,L,w),re=t.child;return re.memoizedState=nD(w),t.memoizedState=tD,j}else{if(o6(),(t.mode&b)===h)return W0(e,t,w,null);if(Dw(p)){var ee,de,me;{var Ce=S8(p);ee=Ce.digest,de=Ce.message,me=Ce.stack}var tt;de?tt=new Error(de):tt=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Et=q2(tt,ee,me);return W0(e,t,w,Et)}var Nt=Ii(w,e.childLanes);if(Cl||Nt){var cn=rk();if(cn!==null){var on=H1(cn,w);if(on!==Tt&&on!==y.retryLane){y.retryLane=on;var se=hr;Lo(e,on),Na(cn,e,on,se)}}xD();var Se=q2(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return W0(e,t,w,Se)}else if(O_(p)){t.flags|=Ft,t.child=e.child;var le=q9.bind(null,e);return C8(p,le),null}else{u6(t,p,y.treeContext);var Ue=l.children,ft=rD(t,Ue);return ft.flags|=Pi,ft}}}function fA(e,t,s){e.lanes=Kt(e.lanes,t);var l=e.alternate;l!==null&&(l.lanes=Kt(l.lanes,t)),Gw(e.return,t,s)}function k5(e,t,s){for(var l=t;l!==null;){if(l.tag===U){var p=l.memoizedState;p!==null&&fA(l,s,e)}else if(l.tag===rt)fA(l,s,e);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)return;for(;l.sibling===null;){if(l.return===null||l.return===e)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function w5(e){for(var t=e,s=null;t!==null;){var l=t.alternate;l!==null&&S0(l)===null&&(s=t),t=t.sibling}return s}function D5(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Z2[e])if(Z2[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function S5(e,t){e!==void 0&&!q0[e]&&(e!=="collapsed"&&e!=="hidden"?(q0[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(q0[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function hA(e,t){{var s=un(e),l=!s&&typeof ya(e)=="function";if(s||l){var p=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function C5(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(un(e)){for(var s=0;s<e.length;s++)if(!hA(e[s],s))return}else{var l=ya(e);if(typeof l=="function"){var p=l.call(e);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!hA(y.value,w))return;w++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function iD(e,t,s,l,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:p}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=s,y.tailMode=p)}function mA(e,t,s){var l=t.pendingProps,p=l.revealOrder,y=l.tail,w=l.children;D5(p),S5(y,p),C5(w,p),so(e,t,w,s);var x=wl.current,T=r2(x,Mv);if(T)x=a2(x,Mv),t.flags|=Ft;else{var L=e!==null&&(e.flags&Ft)!==_t;L&&k5(t,t.child,s),x=Lm(x)}if(op(t,x),(t.mode&b)===h)t.memoizedState=null;else switch(p){case"forwards":{var j=w5(t.child),re;j===null?(re=t.child,t.child=null):(re=j.sibling,j.sibling=null),iD(t,!1,re,j,y);break}case"backwards":{var ee=null,de=t.child;for(t.child=null;de!==null;){var me=de.alternate;if(me!==null&&S0(me)===null){t.child=de;break}var Ce=de.sibling;de.sibling=ee,ee=de,de=Ce}iD(t,!0,ee,null,y);break}case"together":{iD(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function x5(e,t,s){e2(t,t.stateNode.containerInfo);var l=t.pendingProps;return e===null?t.child=Pm(t,null,l,s):so(e,t,l,s),t.child}var gA=!1;function E5(e,t,s){var l=t.type,p=l._context,y=t.pendingProps,w=t.memoizedProps,x=y.value;{"value"in y||gA||(gA=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var T=t.type.propTypes;T&&yl(T,y,"prop","Context.Provider")}if(lT(t,p,x),w!==null){var L=w.value;if(bt(L,x)){if(w.children===y.children&&!e0())return Bc(e,t,s)}else D6(t,p,s)}var j=y.children;return so(e,t,j,s),t.child}var vA=!1;function _5(e,t,s){var l=t.type;l._context===void 0?l!==l.Consumer&&(vA||(vA=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var p=t.pendingProps,y=p.children;typeof y!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Rm(t,s);var w=ma(l);uu(t);var x;return Qv.current=t,ja(!0),x=y(w),ja(!1),Ya(),t.flags|=As,so(e,t,x,s),t.child}function Xv(){Cl=!0}function V0(e,t){(t.mode&b)===h&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=tr)}function Bc(e,t,s){return e!==null&&(t.dependencies=e.dependencies),VT(),uy(t.lanes),Ii(s,t.childLanes)?(k6(e,t),t.child):null}function T5(e,t,s){{var l=t.return;if(l===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===l.child)l.child=s;else{var p=l.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var y=l.deletions;return y===null?(l.deletions=[e],l.flags|=Cn):y.push(e),s.flags|=tr,s}}function oD(e,t){var s=e.lanes;return!!Ii(s,t)}function A5(e,t,s){switch(t.tag){case N:uA(t),t.stateNode,$m();break;case B:gT(t);break;case _:{var l=t.type;Du(l)&&n0(t);break}case R:e2(t,t.stateNode.containerInfo);break;case K:{var p=t.memoizedProps.value,y=t.type._context;lT(t,y,p);break}case ne:{var w=Ii(s,t.childLanes);w&&(t.flags|=Ge);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case U:{var T=t.memoizedState;if(T!==null){if(T.dehydrated!==null)return op(t,Lm(wl.current)),t.flags|=Ft,null;var L=t.child,j=L.childLanes;if(Ii(s,j))return dA(e,t,s);op(t,Lm(wl.current));var re=Bc(e,t,s);return re!==null?re.sibling:null}else op(t,Lm(wl.current));break}case rt:{var ee=(e.flags&Ft)!==_t,de=Ii(s,t.childLanes);if(ee){if(de)return mA(e,t,s);t.flags|=Ft}var me=t.memoizedState;if(me!==null&&(me.rendering=null,me.tail=null,me.lastEffect=null),op(t,wl.current),de)break;return null}case Fe:case Pe:return t.lanes=De,oA(e,t,s)}return Bc(e,t,s)}function yA(e,t,s){if(t._debugNeedsRemount&&e!==null)return T5(e,t,LD(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var l=e.memoizedProps,p=t.pendingProps;if(l!==p||e0()||t.type!==e.type)Cl=!0;else{var y=oD(e,s);if(!y&&(t.flags&Ft)===_t)return Cl=!1,A5(e,t,s);(e.flags&ou)!==_t?Cl=!0:Cl=!1}}else if(Cl=!1,mi()&&e6(t)){var w=t.index,x=t6();V_(t,x,w)}switch(t.lanes=De,t.tag){case $:return c5(e,t,t.type,s);case Te:{var T=t.elementType;return l5(e,t,T,s)}case E:{var L=t.type,j=t.pendingProps,re=t.elementType===L?j:Sl(L,j);return X2(e,t,L,re,s)}case _:{var ee=t.type,de=t.pendingProps,me=t.elementType===ee?de:Sl(ee,de);return lA(e,t,ee,me,s)}case N:return i5(e,t,s);case B:return o5(e,t,s);case M:return s5(e,t);case U:return dA(e,t,s);case R:return x5(e,t,s);case Y:{var Ce=t.type,tt=t.pendingProps,Et=t.elementType===Ce?tt:Sl(Ce,tt);return rA(e,t,Ce,Et,s)}case V:return n5(e,t,s);case H:return r5(e,t,s);case ne:return a5(e,t,s);case K:return E5(e,t,s);case ge:return _5(e,t,s);case ae:{var Nt=t.type,cn=t.pendingProps,on=Sl(Nt,cn);if(t.type!==t.elementType){var se=Nt.propTypes;se&&yl(se,on,"prop",ln(Nt))}return on=Sl(Nt.type,on),aA(e,t,Nt,on,s)}case oe:return iA(e,t,t.type,t.pendingProps,s);case ye:{var Se=t.type,le=t.pendingProps,Ue=t.elementType===Se?le:Sl(Se,le);return u5(e,t,Se,Ue,s)}case rt:return mA(e,t,s);case Ye:break;case Fe:return oA(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Um(e){e.flags|=Ge}function bA(e){e.flags|=Ma,e.flags|=su}var kA,sD,wA,DA;kA=function(e,t,s,l){for(var p=t.child;p!==null;){if(p.tag===B||p.tag===M)ZM(e,p.stateNode);else if(p.tag!==R&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},sD=function(e,t){},wA=function(e,t,s,l,p){var y=e.memoizedProps;if(y!==l){var w=t.stateNode,x=t2(),T=JM(w,s,y,l,p,x);t.updateQueue=T,T&&Um(t)}},DA=function(e,t,s,l){s!==l&&Um(t)};function Jv(e,t){if(!mi())switch(e.tailMode){case"hidden":{for(var s=e.tail,l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?e.tail=null:l.sibling=null;break}case"collapsed":{for(var p=e.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:y.sibling=null;break}}}function vi(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=De,l=_t;if(t){if((e.mode&C)!==h){for(var p=e.selfBaseDuration,y=e.child;y!==null;)s=Kt(s,Kt(y.lanes,y.childLanes)),l|=y.subtreeFlags&Xr,l|=y.flags&Xr,p+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=p}else for(var w=e.child;w!==null;)s=Kt(s,Kt(w.lanes,w.childLanes)),l|=w.subtreeFlags&Xr,l|=w.flags&Xr,w.return=e,w=w.sibling;e.subtreeFlags|=l}else{if((e.mode&C)!==h){for(var x=e.actualDuration,T=e.selfBaseDuration,L=e.child;L!==null;)s=Kt(s,Kt(L.lanes,L.childLanes)),l|=L.subtreeFlags,l|=L.flags,x+=L.actualDuration,T+=L.treeBaseDuration,L=L.sibling;e.actualDuration=x,e.treeBaseDuration=T}else for(var j=e.child;j!==null;)s=Kt(s,Kt(j.lanes,j.childLanes)),l|=j.subtreeFlags,l|=j.flags,j.return=e,j=j.sibling;e.subtreeFlags|=l}return e.childLanes=s,t}function F5(e,t,s){if(h6()&&(t.mode&b)!==h&&(t.flags&Ft)===_t)return J_(t),$m(),t.flags|=kr|za|Lr,!1;var l=s0(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!l)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(p6(t),vi(t),(t.mode&C)!==h){var p=s!==null;if(p){var y=t.child;y!==null&&(t.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if($m(),(t.flags&Ft)===_t&&(t.memoizedState=null),t.flags|=Ge,vi(t),(t.mode&C)!==h){var w=s!==null;if(w){var x=t.child;x!==null&&(t.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return eT(),!0}function SA(e,t,s){var l=t.pendingProps;switch(Nw(t),t.tag){case $:case Te:case oe:case E:case Y:case V:case H:case ne:case ge:case ae:return vi(t),null;case _:{var p=t.type;return Du(p)&&t0(t),vi(t),null}case N:{var y=t.stateNode;if(Om(t),Aw(t),o2(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),e===null||e.child===null){var w=s0(t);if(w)Um(t);else if(e!==null){var x=e.memoizedState;(!x.isDehydrated||(t.flags&kr)!==_t)&&(t.flags|=$i,eT())}}return sD(e,t),vi(t),null}case B:{n2(t);var T=mT(),L=t.type;if(e!==null&&t.stateNode!=null)wA(e,t,L,l,T),e.ref!==t.ref&&bA(t);else{if(!l){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vi(t),null}var j=t2(),re=s0(t);if(re)c6(t,T,j)&&Um(t);else{var ee=KM(L,l,T,j,t);kA(ee,t,!1,!1),t.stateNode=ee,XM(ee,L,l,T)&&Um(t)}t.ref!==null&&bA(t)}return vi(t),null}case M:{var de=l;if(e&&t.stateNode!=null){var me=e.memoizedProps;DA(e,t,me,de)}else{if(typeof de!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=mT(),tt=t2(),Et=s0(t);Et?d6(t)&&Um(t):t.stateNode=e8(de,Ce,tt,t)}return vi(t),null}case U:{Bm(t);var Nt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var cn=F5(e,t,Nt);if(!cn)return t.flags&Lr?t:null}if((t.flags&Ft)!==_t)return t.lanes=s,(t.mode&C)!==h&&$2(t),t;var on=Nt!==null,se=e!==null&&e.memoizedState!==null;if(on!==se&&on){var Se=t.child;if(Se.flags|=Ca,(t.mode&b)!==h){var le=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!G);le||r2(wl.current,yT)?$9():xD()}}var Ue=t.updateQueue;if(Ue!==null&&(t.flags|=Ge),vi(t),(t.mode&C)!==h&&on){var ft=t.child;ft!==null&&(t.treeBaseDuration-=ft.treeBaseDuration)}return null}case R:return Om(t),sD(e,t),e===null&&Y8(t.stateNode.containerInfo),vi(t),null;case K:var lt=t.type._context;return Yw(lt,t),vi(t),null;case ye:{var jt=t.type;return Du(jt)&&t0(t),vi(t),null}case rt:{Bm(t);var Vt=t.memoizedState;if(Vt===null)return vi(t),null;var Zn=(t.flags&Ft)!==_t,Tn=Vt.rendering;if(Tn===null)if(Zn)Jv(Vt,!1);else{var na=N9()&&(e===null||(e.flags&Ft)===_t);if(!na)for(var An=t.child;An!==null;){var Qr=S0(An);if(Qr!==null){Zn=!0,t.flags|=Ft,Jv(Vt,!1);var Hi=Qr.updateQueue;return Hi!==null&&(t.updateQueue=Hi,t.flags|=Ge),t.subtreeFlags=_t,w6(t,s),op(t,a2(wl.current,Mv)),t.child}An=An.sibling}Vt.tail!==null&&gr()>qA()&&(t.flags|=Ft,Zn=!0,Jv(Vt,!1),t.lanes=sb)}else{if(!Zn){var Di=S0(Tn);if(Di!==null){t.flags|=Ft,Zn=!0;var os=Di.updateQueue;if(os!==null&&(t.updateQueue=os,t.flags|=Ge),Jv(Vt,!0),Vt.tail===null&&Vt.tailMode==="hidden"&&!Tn.alternate&&!mi())return vi(t),null}else gr()*2-Vt.renderingStartTime>qA()&&s!==Ga&&(t.flags|=Ft,Zn=!0,Jv(Vt,!1),t.lanes=sb)}if(Vt.isBackwards)Tn.sibling=t.child,t.child=Tn;else{var co=Vt.last;co!==null?co.sibling=Tn:t.child=Tn,Vt.last=Tn}}if(Vt.tail!==null){var po=Vt.tail;Vt.rendering=po,Vt.tail=po.sibling,Vt.renderingStartTime=gr(),po.sibling=null;var qi=wl.current;return Zn?qi=a2(qi,Mv):qi=Lm(qi),op(t,qi),po}return vi(t),null}case Ye:break;case Fe:case Pe:{CD(t);var Uc=t.memoizedState,Km=Uc!==null;if(e!==null){var hy=e.memoizedState,Fu=hy!==null;Fu!==Km&&!xe&&(t.flags|=Ca)}return!Km||(t.mode&b)===h?vi(t):Ii(Au,Ga)&&(vi(t),t.subtreeFlags&(tr|Ge)&&(t.flags|=Ca)),null}case Ze:return null;case Ne:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $5(e,t,s){switch(Nw(t),t.tag){case _:{var l=t.type;Du(l)&&t0(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ft,(t.mode&C)!==h&&$2(t),t):null}case N:{t.stateNode,Om(t),Aw(t),o2();var y=t.flags;return(y&Lr)!==_t&&(y&Ft)===_t?(t.flags=y&~Lr|Ft,t):null}case B:return n2(t),null;case U:{Bm(t);var w=t.memoizedState;if(w!==null&&w.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$m()}var x=t.flags;return x&Lr?(t.flags=x&~Lr|Ft,(t.mode&C)!==h&&$2(t),t):null}case rt:return Bm(t),null;case R:return Om(t),null;case K:var T=t.type._context;return Yw(T,t),null;case Fe:case Pe:return CD(t),null;case Ze:return null;default:return null}}function CA(e,t,s){switch(Nw(t),t.tag){case _:{var l=t.type.childContextTypes;l!=null&&t0(t);break}case N:{t.stateNode,Om(t),Aw(t),o2();break}case B:{n2(t);break}case R:Om(t);break;case U:Bm(t);break;case rt:Bm(t);break;case K:var p=t.type._context;Yw(p,t);break;case Fe:case Pe:CD(t);break}}var xA=null;xA=new Set;var Y0=!1,yi=!1,P5=typeof WeakSet=="function"?WeakSet:Set,kt=null,Hm=null,qm=null;function N5(e){_o(null,function(){throw e}),sf()}var R5=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&C)try{_u(),t.componentWillUnmount()}finally{Eu(e)}else t.componentWillUnmount()};function EA(e,t){try{up(_a,e)}catch(s){yr(e,t,s)}}function lD(e,t,s){try{R5(e,s)}catch(l){yr(e,t,l)}}function O5(e,t,s){try{s.componentDidMount()}catch(l){yr(e,t,l)}}function _A(e,t){try{AA(e)}catch(s){yr(e,t,s)}}function Wm(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var l;try{if(vt&&it&&e.mode&C)try{_u(),l=s(null)}finally{Eu(e)}else l=s(null)}catch(p){yr(e,t,p)}typeof l=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else s.current=null}function G0(e,t,s){try{s()}catch(l){yr(e,t,l)}}var TA=!1;function L5(e,t){GM(e.containerInfo),kt=t,B5();var s=TA;return TA=!1,s}function B5(){for(;kt!==null;){var e=kt,t=e.child;(e.subtreeFlags&ll)!==_t&&t!==null?(t.return=e,kt=t):j5()}}function j5(){for(;kt!==null;){var e=kt;Sn(e);try{I5(e)}catch(s){yr(e,e.return,s)}zn();var t=e.sibling;if(t!==null){t.return=e.return,kt=t;return}kt=e.return}}function I5(e){var t=e.alternate,s=e.flags;if((s&$i)!==_t){switch(Sn(e),e.tag){case E:case Y:case oe:break;case _:{if(t!==null){var l=t.memoizedProps,p=t.memoizedState,y=e.stateNode;e.type===e.elementType&&!Wf&&(y.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(e)||"instance"),y.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(e)||"instance"));var w=y.getSnapshotBeforeUpdate(e.elementType===e.type?l:Sl(e.type,l),p);{var x=xA;w===void 0&&!x.has(e.type)&&(x.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Mt(e)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case N:{{var T=e.stateNode;b8(T.containerInfo)}break}case B:case M:case R:case ye:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}zn()}}function xl(e,t,s){var l=t.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&e)===e){var x=w.destroy;w.destroy=void 0,x!==void 0&&((e&gi)!==Bo?Uh(t):(e&_a)!==Bo&&io(t),(e&Su)!==Bo&&dy(!0),G0(t,s,x),(e&Su)!==Bo&&dy(!1),(e&gi)!==Bo?cu():(e&_a)!==Bo&&du())}w=w.next}while(w!==y)}}function up(e,t){var s=t.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var p=l.next,y=p;do{if((y.tag&e)===e){(e&gi)!==Bo?Ps(t):(e&_a)!==Bo&&Hh(t);var w=y.create;(e&Su)!==Bo&&dy(!0),y.destroy=w(),(e&Su)!==Bo&&dy(!1),(e&gi)!==Bo?Ed():(e&_a)!==Bo&&hc();{var x=y.destroy;if(x!==void 0&&typeof x!="function"){var T=void 0;(y.tag&_a)!==_t?T="useLayoutEffect":(y.tag&Su)!==_t?T="useInsertionEffect":T="useEffect";var L=void 0;x===null?L=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?L=`
|
|
267
|
+
Check the render method of \``+l+"`.");var p=l||"",y=e._debugSource;y&&(p=y.fileName+":"+y.lineNumber),K2[p]||(K2[p]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var w=ln(t)||"Unknown";Zv[w]||(v("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),Zv[w]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var x=ln(t)||"Unknown";Q2[x]||(v("%s: Function components do not support getDerivedStateFromProps.",x),Q2[x]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var T=ln(t)||"Unknown";G2[T]||(v("%s: Function components do not support contextType.",T),G2[T]=!0)}}}var tD={dehydrated:null,treeContext:null,retryLane:Tt};function nD(e){return{baseLanes:e,cachePool:t5(),transitions:null}}function p5(e,t){var s=null;return{baseLanes:Kt(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function f5(e,t,s,l){if(t!==null){var p=t.memoizedState;if(p===null)return!1}return r2(e,Mv)}function h5(e,t){return wf(e.childLanes,t)}function pA(e,t,s){var l=t.pendingProps;S7(t)&&(t.flags|=Ft);var p=wl.current,y=!1,w=(t.flags&Ft)!==_t;if(w||f5(p,e)?(y=!0,t.flags&=~Ft):(e===null||e.memoizedState!==null)&&(p=P6(p,bT)),p=Lm(p),op(t,p),e===null){Bw(t);var x=t.memoizedState;if(x!==null){var T=x.dehydrated;if(T!==null)return b5(t,T)}var L=l.children,j=l.fallback;if(y){var re=m5(t,L,j,s),ee=t.child;return ee.memoizedState=nD(s),t.memoizedState=tD,re}else return rD(t,L)}else{var de=e.memoizedState;if(de!==null){var me=de.dehydrated;if(me!==null)return k5(e,t,w,l,me,de,s)}if(y){var Ce=l.fallback,tt=l.children,Et=v5(e,t,tt,Ce,s),Nt=t.child,cn=e.child.memoizedState;return Nt.memoizedState=cn===null?nD(s):p5(cn,s),Nt.childLanes=h5(e,s),t.memoizedState=tD,Et}else{var on=l.children,se=g5(e,t,on,s);return t.memoizedState=null,se}}}function rD(e,t,s){var l=e.mode,p={mode:"visible",children:t},y=aD(p,l);return y.return=e,e.child=y,y}function m5(e,t,s,l){var p=e.mode,y=e.child,w={mode:"hidden",children:t},x,T;return(p&b)===h&&y!==null?(x=y,x.childLanes=De,x.pendingProps=w,e.mode&C&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),T=hp(s,p,l,null)):(x=aD(w,p),T=hp(s,p,l,null)),x.return=e,T.return=e,x.sibling=T,e.child=x,T}function aD(e,t,s){return pF(e,t,De,null)}function fA(e,t){return Kf(e,t)}function g5(e,t,s,l){var p=e.child,y=p.sibling,w=fA(p,{mode:"visible",children:s});if((t.mode&b)===h&&(w.lanes=l),w.return=t,w.sibling=null,y!==null){var x=t.deletions;x===null?(t.deletions=[y],t.flags|=Cn):x.push(y)}return t.child=w,w}function v5(e,t,s,l,p){var y=t.mode,w=e.child,x=w.sibling,T={mode:"hidden",children:s},L;if((y&b)===h&&t.child!==w){var j=t.child;L=j,L.childLanes=De,L.pendingProps=T,t.mode&C&&(L.actualDuration=0,L.actualStartTime=-1,L.selfBaseDuration=w.selfBaseDuration,L.treeBaseDuration=w.treeBaseDuration),t.deletions=null}else L=fA(w,T),L.subtreeFlags=w.subtreeFlags&Xr;var re;return x!==null?re=Kf(x,l):(re=hp(l,y,p,null),re.flags|=tr),re.return=t,L.return=t,L.sibling=re,t.child=L,re}function W0(e,t,s,l){l!==null&&jw(l),Pm(t,e.child,null,s);var p=t.pendingProps,y=p.children,w=rD(t,y);return w.flags|=tr,t.memoizedState=null,w}function y5(e,t,s,l,p){var y=t.mode,w={mode:"visible",children:s},x=aD(w,y),T=hp(l,y,p,null);return T.flags|=tr,x.return=t,T.return=t,x.sibling=T,t.child=x,(t.mode&b)!==h&&Pm(t,e.child,null,p),T}function b5(e,t,s){return(e.mode&b)===h?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=ze):Dw(t)?e.lanes=nr:e.lanes=Ga,null}function k5(e,t,s,l,p,y,w){if(s)if(t.flags&kr){t.flags&=~kr;var x=q2(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return W0(e,t,w,x)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ft,null;var T=l.children,L=l.fallback,j=y5(e,t,T,L,w),re=t.child;return re.memoizedState=nD(w),t.memoizedState=tD,j}else{if(s6(),(t.mode&b)===h)return W0(e,t,w,null);if(Dw(p)){var ee,de,me;{var Ce=C8(p);ee=Ce.digest,de=Ce.message,me=Ce.stack}var tt;de?tt=new Error(de):tt=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Et=q2(tt,ee,me);return W0(e,t,w,Et)}var Nt=Ii(w,e.childLanes);if(Cl||Nt){var cn=rk();if(cn!==null){var on=H1(cn,w);if(on!==Tt&&on!==y.retryLane){y.retryLane=on;var se=hr;Lo(e,on),Na(cn,e,on,se)}}xD();var Se=q2(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return W0(e,t,w,Se)}else if(L_(p)){t.flags|=Ft,t.child=e.child;var le=W9.bind(null,e);return x8(p,le),null}else{c6(t,p,y.treeContext);var Ue=l.children,ft=rD(t,Ue);return ft.flags|=Pi,ft}}}function hA(e,t,s){e.lanes=Kt(e.lanes,t);var l=e.alternate;l!==null&&(l.lanes=Kt(l.lanes,t)),Gw(e.return,t,s)}function w5(e,t,s){for(var l=t;l!==null;){if(l.tag===U){var p=l.memoizedState;p!==null&&hA(l,s,e)}else if(l.tag===rt)hA(l,s,e);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)return;for(;l.sibling===null;){if(l.return===null||l.return===e)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function D5(e){for(var t=e,s=null;t!==null;){var l=t.alternate;l!==null&&S0(l)===null&&(s=t),t=t.sibling}return s}function S5(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!Z2[e])if(Z2[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function C5(e,t){e!==void 0&&!q0[e]&&(e!=="collapsed"&&e!=="hidden"?(q0[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(q0[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function mA(e,t){{var s=un(e),l=!s&&typeof ya(e)=="function";if(s||l){var p=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,t,p),!1}}return!0}function x5(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(un(e)){for(var s=0;s<e.length;s++)if(!mA(e[s],s))return}else{var l=ya(e);if(typeof l=="function"){var p=l.call(e);if(p)for(var y=p.next(),w=0;!y.done;y=p.next()){if(!mA(y.value,w))return;w++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function iD(e,t,s,l,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:p}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=s,y.tailMode=p)}function gA(e,t,s){var l=t.pendingProps,p=l.revealOrder,y=l.tail,w=l.children;S5(p),C5(y,p),x5(w,p),so(e,t,w,s);var x=wl.current,T=r2(x,Mv);if(T)x=a2(x,Mv),t.flags|=Ft;else{var L=e!==null&&(e.flags&Ft)!==_t;L&&w5(t,t.child,s),x=Lm(x)}if(op(t,x),(t.mode&b)===h)t.memoizedState=null;else switch(p){case"forwards":{var j=D5(t.child),re;j===null?(re=t.child,t.child=null):(re=j.sibling,j.sibling=null),iD(t,!1,re,j,y);break}case"backwards":{var ee=null,de=t.child;for(t.child=null;de!==null;){var me=de.alternate;if(me!==null&&S0(me)===null){t.child=de;break}var Ce=de.sibling;de.sibling=ee,ee=de,de=Ce}iD(t,!0,ee,null,y);break}case"together":{iD(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function E5(e,t,s){e2(t,t.stateNode.containerInfo);var l=t.pendingProps;return e===null?t.child=Pm(t,null,l,s):so(e,t,l,s),t.child}var vA=!1;function _5(e,t,s){var l=t.type,p=l._context,y=t.pendingProps,w=t.memoizedProps,x=y.value;{"value"in y||vA||(vA=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var T=t.type.propTypes;T&&yl(T,y,"prop","Context.Provider")}if(uT(t,p,x),w!==null){var L=w.value;if(bt(L,x)){if(w.children===y.children&&!e0())return Bc(e,t,s)}else S6(t,p,s)}var j=y.children;return so(e,t,j,s),t.child}var yA=!1;function T5(e,t,s){var l=t.type;l._context===void 0?l!==l.Consumer&&(yA||(yA=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):l=l._context;var p=t.pendingProps,y=p.children;typeof y!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Rm(t,s);var w=ma(l);uu(t);var x;return Qv.current=t,ja(!0),x=y(w),ja(!1),Ya(),t.flags|=As,so(e,t,x,s),t.child}function Xv(){Cl=!0}function V0(e,t){(t.mode&b)===h&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=tr)}function Bc(e,t,s){return e!==null&&(t.dependencies=e.dependencies),YT(),uy(t.lanes),Ii(s,t.childLanes)?(w6(e,t),t.child):null}function A5(e,t,s){{var l=t.return;if(l===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===l.child)l.child=s;else{var p=l.child;if(p===null)throw new Error("Expected parent to have a child.");for(;p.sibling!==t;)if(p=p.sibling,p===null)throw new Error("Expected to find the previous sibling.");p.sibling=s}var y=l.deletions;return y===null?(l.deletions=[e],l.flags|=Cn):y.push(e),s.flags|=tr,s}}function oD(e,t){var s=e.lanes;return!!Ii(s,t)}function F5(e,t,s){switch(t.tag){case N:cA(t),t.stateNode,$m();break;case B:vT(t);break;case _:{var l=t.type;Du(l)&&n0(t);break}case R:e2(t,t.stateNode.containerInfo);break;case K:{var p=t.memoizedProps.value,y=t.type._context;uT(t,y,p);break}case ne:{var w=Ii(s,t.childLanes);w&&(t.flags|=Ge);{var x=t.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case U:{var T=t.memoizedState;if(T!==null){if(T.dehydrated!==null)return op(t,Lm(wl.current)),t.flags|=Ft,null;var L=t.child,j=L.childLanes;if(Ii(s,j))return pA(e,t,s);op(t,Lm(wl.current));var re=Bc(e,t,s);return re!==null?re.sibling:null}else op(t,Lm(wl.current));break}case rt:{var ee=(e.flags&Ft)!==_t,de=Ii(s,t.childLanes);if(ee){if(de)return gA(e,t,s);t.flags|=Ft}var me=t.memoizedState;if(me!==null&&(me.rendering=null,me.tail=null,me.lastEffect=null),op(t,wl.current),de)break;return null}case Fe:case Pe:return t.lanes=De,sA(e,t,s)}return Bc(e,t,s)}function bA(e,t,s){if(t._debugNeedsRemount&&e!==null)return A5(e,t,LD(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var l=e.memoizedProps,p=t.pendingProps;if(l!==p||e0()||t.type!==e.type)Cl=!0;else{var y=oD(e,s);if(!y&&(t.flags&Ft)===_t)return Cl=!1,F5(e,t,s);(e.flags&ou)!==_t?Cl=!0:Cl=!1}}else if(Cl=!1,mi()&&t6(t)){var w=t.index,x=n6();Y_(t,x,w)}switch(t.lanes=De,t.tag){case $:return d5(e,t,t.type,s);case Te:{var T=t.elementType;return u5(e,t,T,s)}case E:{var L=t.type,j=t.pendingProps,re=t.elementType===L?j:Sl(L,j);return X2(e,t,L,re,s)}case _:{var ee=t.type,de=t.pendingProps,me=t.elementType===ee?de:Sl(ee,de);return uA(e,t,ee,me,s)}case N:return o5(e,t,s);case B:return s5(e,t,s);case M:return l5(e,t);case U:return pA(e,t,s);case R:return E5(e,t,s);case Y:{var Ce=t.type,tt=t.pendingProps,Et=t.elementType===Ce?tt:Sl(Ce,tt);return aA(e,t,Ce,Et,s)}case V:return r5(e,t,s);case H:return a5(e,t,s);case ne:return i5(e,t,s);case K:return _5(e,t,s);case ge:return T5(e,t,s);case ae:{var Nt=t.type,cn=t.pendingProps,on=Sl(Nt,cn);if(t.type!==t.elementType){var se=Nt.propTypes;se&&yl(se,on,"prop",ln(Nt))}return on=Sl(Nt.type,on),iA(e,t,Nt,on,s)}case oe:return oA(e,t,t.type,t.pendingProps,s);case ye:{var Se=t.type,le=t.pendingProps,Ue=t.elementType===Se?le:Sl(Se,le);return c5(e,t,Se,Ue,s)}case rt:return gA(e,t,s);case Ye:break;case Fe:return sA(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Um(e){e.flags|=Ge}function kA(e){e.flags|=Ma,e.flags|=su}var wA,sD,DA,SA;wA=function(e,t,s,l){for(var p=t.child;p!==null;){if(p.tag===B||p.tag===M)XM(e,p.stateNode);else if(p.tag!==R&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)return;for(;p.sibling===null;){if(p.return===null||p.return===t)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},sD=function(e,t){},DA=function(e,t,s,l,p){var y=e.memoizedProps;if(y!==l){var w=t.stateNode,x=t2(),T=e8(w,s,y,l,p,x);t.updateQueue=T,T&&Um(t)}},SA=function(e,t,s,l){s!==l&&Um(t)};function Jv(e,t){if(!mi())switch(e.tailMode){case"hidden":{for(var s=e.tail,l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?e.tail=null:l.sibling=null;break}case"collapsed":{for(var p=e.tail,y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:y.sibling=null;break}}}function vi(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=De,l=_t;if(t){if((e.mode&C)!==h){for(var p=e.selfBaseDuration,y=e.child;y!==null;)s=Kt(s,Kt(y.lanes,y.childLanes)),l|=y.subtreeFlags&Xr,l|=y.flags&Xr,p+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=p}else for(var w=e.child;w!==null;)s=Kt(s,Kt(w.lanes,w.childLanes)),l|=w.subtreeFlags&Xr,l|=w.flags&Xr,w.return=e,w=w.sibling;e.subtreeFlags|=l}else{if((e.mode&C)!==h){for(var x=e.actualDuration,T=e.selfBaseDuration,L=e.child;L!==null;)s=Kt(s,Kt(L.lanes,L.childLanes)),l|=L.subtreeFlags,l|=L.flags,x+=L.actualDuration,T+=L.treeBaseDuration,L=L.sibling;e.actualDuration=x,e.treeBaseDuration=T}else for(var j=e.child;j!==null;)s=Kt(s,Kt(j.lanes,j.childLanes)),l|=j.subtreeFlags,l|=j.flags,j.return=e,j=j.sibling;e.subtreeFlags|=l}return e.childLanes=s,t}function $5(e,t,s){if(m6()&&(t.mode&b)!==h&&(t.flags&Ft)===_t)return eT(t),$m(),t.flags|=kr|za|Lr,!1;var l=s0(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!l)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(f6(t),vi(t),(t.mode&C)!==h){var p=s!==null;if(p){var y=t.child;y!==null&&(t.treeBaseDuration-=y.treeBaseDuration)}}return!1}else{if($m(),(t.flags&Ft)===_t&&(t.memoizedState=null),t.flags|=Ge,vi(t),(t.mode&C)!==h){var w=s!==null;if(w){var x=t.child;x!==null&&(t.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return tT(),!0}function CA(e,t,s){var l=t.pendingProps;switch(Nw(t),t.tag){case $:case Te:case oe:case E:case Y:case V:case H:case ne:case ge:case ae:return vi(t),null;case _:{var p=t.type;return Du(p)&&t0(t),vi(t),null}case N:{var y=t.stateNode;if(Om(t),Aw(t),o2(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),e===null||e.child===null){var w=s0(t);if(w)Um(t);else if(e!==null){var x=e.memoizedState;(!x.isDehydrated||(t.flags&kr)!==_t)&&(t.flags|=$i,tT())}}return sD(e,t),vi(t),null}case B:{n2(t);var T=gT(),L=t.type;if(e!==null&&t.stateNode!=null)DA(e,t,L,l,T),e.ref!==t.ref&&kA(t);else{if(!l){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return vi(t),null}var j=t2(),re=s0(t);if(re)d6(t,T,j)&&Um(t);else{var ee=ZM(L,l,T,j,t);wA(ee,t,!1,!1),t.stateNode=ee,JM(ee,L,l,T)&&Um(t)}t.ref!==null&&kA(t)}return vi(t),null}case M:{var de=l;if(e&&t.stateNode!=null){var me=e.memoizedProps;SA(e,t,me,de)}else{if(typeof de!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=gT(),tt=t2(),Et=s0(t);Et?p6(t)&&Um(t):t.stateNode=t8(de,Ce,tt,t)}return vi(t),null}case U:{Bm(t);var Nt=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var cn=$5(e,t,Nt);if(!cn)return t.flags&Lr?t:null}if((t.flags&Ft)!==_t)return t.lanes=s,(t.mode&C)!==h&&$2(t),t;var on=Nt!==null,se=e!==null&&e.memoizedState!==null;if(on!==se&&on){var Se=t.child;if(Se.flags|=Ca,(t.mode&b)!==h){var le=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!G);le||r2(wl.current,bT)?P9():xD()}}var Ue=t.updateQueue;if(Ue!==null&&(t.flags|=Ge),vi(t),(t.mode&C)!==h&&on){var ft=t.child;ft!==null&&(t.treeBaseDuration-=ft.treeBaseDuration)}return null}case R:return Om(t),sD(e,t),e===null&&G8(t.stateNode.containerInfo),vi(t),null;case K:var lt=t.type._context;return Yw(lt,t),vi(t),null;case ye:{var jt=t.type;return Du(jt)&&t0(t),vi(t),null}case rt:{Bm(t);var Vt=t.memoizedState;if(Vt===null)return vi(t),null;var Zn=(t.flags&Ft)!==_t,Tn=Vt.rendering;if(Tn===null)if(Zn)Jv(Vt,!1);else{var na=R9()&&(e===null||(e.flags&Ft)===_t);if(!na)for(var An=t.child;An!==null;){var Qr=S0(An);if(Qr!==null){Zn=!0,t.flags|=Ft,Jv(Vt,!1);var Hi=Qr.updateQueue;return Hi!==null&&(t.updateQueue=Hi,t.flags|=Ge),t.subtreeFlags=_t,D6(t,s),op(t,a2(wl.current,Mv)),t.child}An=An.sibling}Vt.tail!==null&&gr()>WA()&&(t.flags|=Ft,Zn=!0,Jv(Vt,!1),t.lanes=sb)}else{if(!Zn){var Di=S0(Tn);if(Di!==null){t.flags|=Ft,Zn=!0;var os=Di.updateQueue;if(os!==null&&(t.updateQueue=os,t.flags|=Ge),Jv(Vt,!0),Vt.tail===null&&Vt.tailMode==="hidden"&&!Tn.alternate&&!mi())return vi(t),null}else gr()*2-Vt.renderingStartTime>WA()&&s!==Ga&&(t.flags|=Ft,Zn=!0,Jv(Vt,!1),t.lanes=sb)}if(Vt.isBackwards)Tn.sibling=t.child,t.child=Tn;else{var co=Vt.last;co!==null?co.sibling=Tn:t.child=Tn,Vt.last=Tn}}if(Vt.tail!==null){var po=Vt.tail;Vt.rendering=po,Vt.tail=po.sibling,Vt.renderingStartTime=gr(),po.sibling=null;var qi=wl.current;return Zn?qi=a2(qi,Mv):qi=Lm(qi),op(t,qi),po}return vi(t),null}case Ye:break;case Fe:case Pe:{CD(t);var Uc=t.memoizedState,Km=Uc!==null;if(e!==null){var hy=e.memoizedState,Fu=hy!==null;Fu!==Km&&!xe&&(t.flags|=Ca)}return!Km||(t.mode&b)===h?vi(t):Ii(Au,Ga)&&(vi(t),t.subtreeFlags&(tr|Ge)&&(t.flags|=Ca)),null}case Ze:return null;case Ne:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function P5(e,t,s){switch(Nw(t),t.tag){case _:{var l=t.type;Du(l)&&t0(t);var p=t.flags;return p&Lr?(t.flags=p&~Lr|Ft,(t.mode&C)!==h&&$2(t),t):null}case N:{t.stateNode,Om(t),Aw(t),o2();var y=t.flags;return(y&Lr)!==_t&&(y&Ft)===_t?(t.flags=y&~Lr|Ft,t):null}case B:return n2(t),null;case U:{Bm(t);var w=t.memoizedState;if(w!==null&&w.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");$m()}var x=t.flags;return x&Lr?(t.flags=x&~Lr|Ft,(t.mode&C)!==h&&$2(t),t):null}case rt:return Bm(t),null;case R:return Om(t),null;case K:var T=t.type._context;return Yw(T,t),null;case Fe:case Pe:return CD(t),null;case Ze:return null;default:return null}}function xA(e,t,s){switch(Nw(t),t.tag){case _:{var l=t.type.childContextTypes;l!=null&&t0(t);break}case N:{t.stateNode,Om(t),Aw(t),o2();break}case B:{n2(t);break}case R:Om(t);break;case U:Bm(t);break;case rt:Bm(t);break;case K:var p=t.type._context;Yw(p,t);break;case Fe:case Pe:CD(t);break}}var EA=null;EA=new Set;var Y0=!1,yi=!1,N5=typeof WeakSet=="function"?WeakSet:Set,kt=null,Hm=null,qm=null;function R5(e){_o(null,function(){throw e}),sf()}var O5=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&C)try{_u(),t.componentWillUnmount()}finally{Eu(e)}else t.componentWillUnmount()};function _A(e,t){try{up(_a,e)}catch(s){yr(e,t,s)}}function lD(e,t,s){try{O5(e,s)}catch(l){yr(e,t,l)}}function L5(e,t,s){try{s.componentDidMount()}catch(l){yr(e,t,l)}}function TA(e,t){try{FA(e)}catch(s){yr(e,t,s)}}function Wm(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var l;try{if(vt&&it&&e.mode&C)try{_u(),l=s(null)}finally{Eu(e)}else l=s(null)}catch(p){yr(e,t,p)}typeof l=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else s.current=null}function G0(e,t,s){try{s()}catch(l){yr(e,t,l)}}var AA=!1;function B5(e,t){QM(e.containerInfo),kt=t,j5();var s=AA;return AA=!1,s}function j5(){for(;kt!==null;){var e=kt,t=e.child;(e.subtreeFlags&ll)!==_t&&t!==null?(t.return=e,kt=t):I5()}}function I5(){for(;kt!==null;){var e=kt;Sn(e);try{M5(e)}catch(s){yr(e,e.return,s)}zn();var t=e.sibling;if(t!==null){t.return=e.return,kt=t;return}kt=e.return}}function M5(e){var t=e.alternate,s=e.flags;if((s&$i)!==_t){switch(Sn(e),e.tag){case E:case Y:case oe:break;case _:{if(t!==null){var l=t.memoizedProps,p=t.memoizedState,y=e.stateNode;e.type===e.elementType&&!Wf&&(y.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(e)||"instance"),y.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(e)||"instance"));var w=y.getSnapshotBeforeUpdate(e.elementType===e.type?l:Sl(e.type,l),p);{var x=EA;w===void 0&&!x.has(e.type)&&(x.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Mt(e)))}y.__reactInternalSnapshotBeforeUpdate=w}break}case N:{{var T=e.stateNode;k8(T.containerInfo)}break}case B:case M:case R:case ye:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}zn()}}function xl(e,t,s){var l=t.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var y=p.next,w=y;do{if((w.tag&e)===e){var x=w.destroy;w.destroy=void 0,x!==void 0&&((e&gi)!==Bo?Uh(t):(e&_a)!==Bo&&io(t),(e&Su)!==Bo&&dy(!0),G0(t,s,x),(e&Su)!==Bo&&dy(!1),(e&gi)!==Bo?cu():(e&_a)!==Bo&&du())}w=w.next}while(w!==y)}}function up(e,t){var s=t.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var p=l.next,y=p;do{if((y.tag&e)===e){(e&gi)!==Bo?Ps(t):(e&_a)!==Bo&&Hh(t);var w=y.create;(e&Su)!==Bo&&dy(!0),y.destroy=w(),(e&Su)!==Bo&&dy(!1),(e&gi)!==Bo?Ed():(e&_a)!==Bo&&hc();{var x=y.destroy;if(x!==void 0&&typeof x!="function"){var T=void 0;(y.tag&_a)!==_t?T="useLayoutEffect":(y.tag&Su)!==_t?T="useInsertionEffect":T="useEffect";var L=void 0;x===null?L=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?L=`
|
|
268
268
|
|
|
269
269
|
It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
270
270
|
|
|
@@ -277,11 +277,11 @@ It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, w
|
|
|
277
277
|
fetchData();
|
|
278
278
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
279
279
|
|
|
280
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:L=" You returned: "+x,v("%s must not return anything besides a function, which is used for clean-up.%s",T,L)}}}y=y.next}while(y!==p)}}function M5(e,t){if((t.flags&Ge)!==_t)switch(t.tag){case ne:{var s=t.stateNode.passiveEffectDuration,l=t.memoizedProps,p=l.id,y=l.onPostCommit,w=qT(),x=t.alternate===null?"mount":"update";HT()&&(x="nested-update"),typeof y=="function"&&y(p,x,s,w);var T=t.return;e:for(;T!==null;){switch(T.tag){case N:var L=T.stateNode;L.passiveEffectDuration+=s;break e;case ne:var j=T.stateNode;j.passiveEffectDuration+=s;break e}T=T.return}break}}}function z5(e,t,s,l){if((s.flags&da)!==_t)switch(s.tag){case E:case Y:case oe:{if(!yi)if(s.mode&C)try{_u(),up(_a|Ea,s)}finally{Eu(s)}else up(_a|Ea,s);break}case _:{var p=s.stateNode;if(s.flags&Ge&&!yi)if(t===null)if(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&C)try{_u(),p.componentDidMount()}finally{Eu(s)}else p.componentDidMount();else{var y=s.elementType===s.type?t.memoizedProps:Sl(s.type,t.memoizedProps),w=t.memoizedState;if(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&C)try{_u(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{Eu(s)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),hT(s,x,p));break}case N:{var T=s.updateQueue;if(T!==null){var L=null;if(s.child!==null)switch(s.child.tag){case B:L=s.child.stateNode;break;case _:L=s.child.stateNode;break}hT(s,T,L)}break}case B:{var j=s.stateNode;if(t===null&&s.flags&Ge){var re=s.type,ee=s.memoizedProps;i8(j,re,ee)}break}case M:break;case R:break;case ne:{{var de=s.memoizedProps,me=de.onCommit,Ce=de.onRender,tt=s.stateNode.effectDuration,Et=qT(),Nt=t===null?"mount":"update";HT()&&(Nt="nested-update"),typeof Ce=="function"&&Ce(s.memoizedProps.id,Nt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,Et);{typeof me=="function"&&me(s.memoizedProps.id,Nt,tt,Et),j9(s);var cn=s.return;e:for(;cn!==null;){switch(cn.tag){case N:var on=cn.stateNode;on.effectDuration+=tt;break e;case ne:var se=cn.stateNode;se.effectDuration+=tt;break e}cn=cn.return}}}break}case U:{Q5(e,s);break}case rt:case ye:case Ye:case Fe:case Pe:case Ne:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}yi||s.flags&Ma&&AA(s)}function U5(e){switch(e.tag){case E:case Y:case oe:{if(e.mode&C)try{_u(),EA(e,e.return)}finally{Eu(e)}else EA(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&O5(e,e.return,t),_A(e,e.return);break}case B:{_A(e,e.return);break}}}function H5(e,t){for(var s=null,l=e;;){if(l.tag===B){if(s===null){s=l;try{var p=l.stateNode;t?m8(p):v8(l.stateNode,l.memoizedProps)}catch(w){yr(e,e.return,w)}}}else if(l.tag===M){if(s===null)try{var y=l.stateNode;t?g8(y):y8(y,l.memoizedProps)}catch(w){yr(e,e.return,w)}}else if(!((l.tag===Fe||l.tag===Pe)&&l.memoizedState!==null&&l!==e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)return;for(;l.sibling===null;){if(l.return===null||l.return===e)return;s===l&&(s=null),l=l.return}s===l&&(s=null),l.sibling.return=l.return,l=l.sibling}}function AA(e){var t=e.ref;if(t!==null){var s=e.stateNode,l;switch(e.tag){case B:l=s;break;default:l=s}if(typeof t=="function"){var p;if(e.mode&C)try{_u(),p=t(l)}finally{Eu(e)}else p=t(l);typeof p=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Mt(e)),t.current=l}}function q5(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function FA(e){var t=e.alternate;t!==null&&(e.alternate=null,FA(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var s=e.stateNode;s!==null&&K8(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function W5(e){for(var t=e.return;t!==null;){if($A(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function $A(e){return e.tag===B||e.tag===N||e.tag===R}function PA(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||$A(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==B&&t.tag!==M&&t.tag!==Ve;){if(t.flags&tr||t.child===null||t.tag===R)continue e;t.child.return=t,t=t.child}if(!(t.flags&tr))return t.stateNode}}function V5(e){var t=W5(e);switch(t.tag){case B:{var s=t.stateNode;t.flags&gn&&(R_(s),t.flags&=~gn);var l=PA(e);cD(e,l,s);break}case N:case R:{var p=t.stateNode.containerInfo,y=PA(e);uD(e,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uD(e,t,s){var l=e.tag,p=l===B||l===M;if(p){var y=e.stateNode;t?d8(s,y,t):u8(s,y)}else if(l!==R){var w=e.child;if(w!==null){uD(w,t,s);for(var x=w.sibling;x!==null;)uD(x,t,s),x=x.sibling}}}function cD(e,t,s){var l=e.tag,p=l===B||l===M;if(p){var y=e.stateNode;t?c8(s,y,t):l8(s,y)}else if(l!==R){var w=e.child;if(w!==null){cD(w,t,s);for(var x=w.sibling;x!==null;)cD(x,t,s),x=x.sibling}}}var bi=null,El=!1;function Y5(e,t,s){{var l=t;e:for(;l!==null;){switch(l.tag){case B:{bi=l.stateNode,El=!1;break e}case N:{bi=l.stateNode.containerInfo,El=!0;break e}case R:{bi=l.stateNode.containerInfo,El=!0;break e}}l=l.return}if(bi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");NA(e,t,s),bi=null,El=!1}q5(s)}function cp(e,t,s){for(var l=s.child;l!==null;)NA(e,t,l),l=l.sibling}function NA(e,t,s){switch(cl(s),s.tag){case B:yi||Wm(s,t);case M:{{var l=bi,p=El;bi=null,cp(e,t,s),bi=l,El=p,bi!==null&&(El?f8(bi,s.stateNode):p8(bi,s.stateNode))}return}case Ve:{bi!==null&&(El?h8(bi,s.stateNode):ww(bi,s.stateNode));return}case R:{{var y=bi,w=El;bi=s.stateNode.containerInfo,El=!0,cp(e,t,s),bi=y,El=w}return}case E:case Y:case ae:case oe:{if(!yi){var x=s.updateQueue;if(x!==null){var T=x.lastEffect;if(T!==null){var L=T.next,j=L;do{var re=j,ee=re.destroy,de=re.tag;ee!==void 0&&((de&Su)!==Bo?G0(s,t,ee):(de&_a)!==Bo&&(io(s),s.mode&C?(_u(),G0(s,t,ee),Eu(s)):G0(s,t,ee),du())),j=j.next}while(j!==L)}}}cp(e,t,s);return}case _:{if(!yi){Wm(s,t);var me=s.stateNode;typeof me.componentWillUnmount=="function"&&lD(s,t,me)}cp(e,t,s);return}case Ye:{cp(e,t,s);return}case Fe:{if(s.mode&b){var Ce=yi;yi=Ce||s.memoizedState!==null,cp(e,t,s),yi=Ce}else cp(e,t,s);break}default:{cp(e,t,s);return}}}function G5(e){e.memoizedState}function Q5(e,t){var s=t.memoizedState;if(s===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&N8(y)}}}}function RA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new P5),t.forEach(function(l){var p=W9.bind(null,e,l);if(!s.has(l)){if(s.add(l),Va)if(Hm!==null&&qm!==null)cy(qm,Hm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");l.then(p,p)}})}}function K5(e,t,s){Hm=s,qm=e,Sn(t),OA(t,e),Sn(t),Hm=null,qm=null}function _l(e,t,s){var l=t.deletions;if(l!==null)for(var p=0;p<l.length;p++){var y=l[p];try{Y5(e,t,y)}catch(T){yr(y,t,T)}}var w=id();if(t.subtreeFlags&ca)for(var x=t.child;x!==null;)Sn(x),OA(x,e),x=x.sibling;Sn(w)}function OA(e,t,s){var l=e.alternate,p=e.flags;switch(e.tag){case E:case Y:case ae:case oe:{if(_l(t,e),Tu(e),p&Ge){try{xl(Su|Ea,e,e.return),up(Su|Ea,e)}catch(jt){yr(e,e.return,jt)}if(e.mode&C){try{_u(),xl(_a|Ea,e,e.return)}catch(jt){yr(e,e.return,jt)}Eu(e)}else try{xl(_a|Ea,e,e.return)}catch(jt){yr(e,e.return,jt)}}return}case _:{_l(t,e),Tu(e),p&Ma&&l!==null&&Wm(l,l.return);return}case B:{_l(t,e),Tu(e),p&Ma&&l!==null&&Wm(l,l.return);{if(e.flags&gn){var y=e.stateNode;try{R_(y)}catch(jt){yr(e,e.return,jt)}}if(p&Ge){var w=e.stateNode;if(w!=null){var x=e.memoizedProps,T=l!==null?l.memoizedProps:x,L=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{o8(w,j,L,T,x,e)}catch(jt){yr(e,e.return,jt)}}}}return}case M:{if(_l(t,e),Tu(e),p&Ge){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,ee=e.memoizedProps,de=l!==null?l.memoizedProps:ee;try{s8(re,de,ee)}catch(jt){yr(e,e.return,jt)}}return}case N:{if(_l(t,e),Tu(e),p&Ge&&l!==null){var me=l.memoizedState;if(me.isDehydrated)try{P8(t.containerInfo)}catch(jt){yr(e,e.return,jt)}}return}case R:{_l(t,e),Tu(e);return}case U:{_l(t,e),Tu(e);var Ce=e.child;if(Ce.flags&Ca){var tt=Ce.stateNode,Et=Ce.memoizedState,Nt=Et!==null;if(tt.isHidden=Nt,Nt){var cn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;cn||F9()}}if(p&Ge){try{G5(e)}catch(jt){yr(e,e.return,jt)}RA(e)}return}case Fe:{var on=l!==null&&l.memoizedState!==null;if(e.mode&b){var se=yi;yi=se||on,_l(t,e),yi=se}else _l(t,e);if(Tu(e),p&Ca){var Se=e.stateNode,le=e.memoizedState,Ue=le!==null,ft=e;if(Se.isHidden=Ue,Ue&&!on&&(ft.mode&b)!==h){kt=ft;for(var lt=ft.child;lt!==null;)kt=lt,X5(lt),lt=lt.sibling}H5(ft,Ue)}return}case rt:{_l(t,e),Tu(e),p&Ge&&RA(e);return}case Ye:return;default:{_l(t,e),Tu(e);return}}}function Tu(e){var t=e.flags;if(t&tr){try{V5(e)}catch(s){yr(e,e.return,s)}e.flags&=~tr}t&Pi&&(e.flags&=~Pi)}function Z5(e,t,s){Hm=s,qm=t,kt=e,LA(e,t,s),Hm=null,qm=null}function LA(e,t,s){for(var l=(e.mode&b)!==h;kt!==null;){var p=kt,y=p.child;if(p.tag===Fe&&l){var w=p.memoizedState!==null,x=w||Y0;if(x){dD(e,t,s);continue}else{var T=p.alternate,L=T!==null&&T.memoizedState!==null,j=L||yi,re=Y0,ee=yi;Y0=x,yi=j,yi&&!ee&&(kt=p,J5(p));for(var de=y;de!==null;)kt=de,LA(de,t,s),de=de.sibling;kt=p,Y0=re,yi=ee,dD(e,t,s);continue}}(p.subtreeFlags&da)!==_t&&y!==null?(y.return=p,kt=y):dD(e,t,s)}}function dD(e,t,s){for(;kt!==null;){var l=kt;if((l.flags&da)!==_t){var p=l.alternate;Sn(l);try{z5(t,p,l,s)}catch(w){yr(l,l.return,w)}zn()}if(l===e){kt=null;return}var y=l.sibling;if(y!==null){y.return=l.return,kt=y;return}kt=l.return}}function X5(e){for(;kt!==null;){var t=kt,s=t.child;switch(t.tag){case E:case Y:case ae:case oe:{if(t.mode&C)try{_u(),xl(_a,t,t.return)}finally{Eu(t)}else xl(_a,t,t.return);break}case _:{Wm(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&lD(t,t.return,l);break}case B:{Wm(t,t.return);break}case Fe:{var p=t.memoizedState!==null;if(p){BA(e);continue}break}}s!==null?(s.return=t,kt=s):BA(e)}}function BA(e){for(;kt!==null;){var t=kt;if(t===e){kt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,kt=s;return}kt=t.return}}function J5(e){for(;kt!==null;){var t=kt,s=t.child;if(t.tag===Fe){var l=t.memoizedState!==null;if(l){jA(e);continue}}s!==null?(s.return=t,kt=s):jA(e)}}function jA(e){for(;kt!==null;){var t=kt;Sn(t);try{U5(t)}catch(l){yr(t,t.return,l)}if(zn(),t===e){kt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,kt=s;return}kt=t.return}}function e9(e,t,s,l){kt=t,t9(t,e,s,l)}function t9(e,t,s,l){for(;kt!==null;){var p=kt,y=p.child;(p.subtreeFlags&Ni)!==_t&&y!==null?(y.return=p,kt=y):n9(e,t,s,l)}}function n9(e,t,s,l){for(;kt!==null;){var p=kt;if((p.flags&cr)!==_t){Sn(p);try{r9(t,p,s,l)}catch(w){yr(p,p.return,w)}zn()}if(p===e){kt=null;return}var y=p.sibling;if(y!==null){y.return=p.return,kt=y;return}kt=p.return}}function r9(e,t,s,l){switch(t.tag){case E:case Y:case oe:{if(t.mode&C){F2();try{up(gi|Ea,t)}finally{A2(t)}}else up(gi|Ea,t);break}}}function a9(e){kt=e,i9()}function i9(){for(;kt!==null;){var e=kt,t=e.child;if((kt.flags&Cn)!==_t){var s=e.deletions;if(s!==null){for(var l=0;l<s.length;l++){var p=s[l];kt=p,l9(p,e)}{var y=e.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}}kt=e}}(e.subtreeFlags&Ni)!==_t&&t!==null?(t.return=e,kt=t):o9()}}function o9(){for(;kt!==null;){var e=kt;(e.flags&cr)!==_t&&(Sn(e),s9(e),zn());var t=e.sibling;if(t!==null){t.return=e.return,kt=t;return}kt=e.return}}function s9(e){switch(e.tag){case E:case Y:case oe:{e.mode&C?(F2(),xl(gi|Ea,e,e.return),A2(e)):xl(gi|Ea,e,e.return);break}}}function l9(e,t){for(;kt!==null;){var s=kt;Sn(s),c9(s,t),zn();var l=s.child;l!==null?(l.return=s,kt=l):u9(e)}}function u9(e){for(;kt!==null;){var t=kt,s=t.sibling,l=t.return;if(FA(t),t===e){kt=null;return}if(s!==null){s.return=l,kt=s;return}kt=l}}function c9(e,t){switch(e.tag){case E:case Y:case oe:{e.mode&C?(F2(),xl(gi,e,t),A2(e)):xl(gi,e,t);break}}}function d9(e){switch(e.tag){case E:case Y:case oe:{try{up(_a|Ea,e)}catch(s){yr(e,e.return,s)}break}case _:{var t=e.stateNode;try{t.componentDidMount()}catch(s){yr(e,e.return,s)}break}}}function p9(e){switch(e.tag){case E:case Y:case oe:{try{up(gi|Ea,e)}catch(t){yr(e,e.return,t)}break}}}function f9(e){switch(e.tag){case E:case Y:case oe:{try{xl(_a|Ea,e,e.return)}catch(s){yr(e,e.return,s)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&lD(e,e.return,t);break}}}function h9(e){switch(e.tag){case E:case Y:case oe:try{xl(gi|Ea,e,e.return)}catch(t){yr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var ey=Symbol.for;ey("selector.component"),ey("selector.has_pseudo_class"),ey("selector.role"),ey("selector.test_id"),ey("selector.text")}var m9=[];function g9(){m9.forEach(function(e){return e()})}var v9=o.ReactCurrentActQueue;function y9(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function IA(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&v9.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var b9=Math.ceil,pD=o.ReactCurrentDispatcher,fD=o.ReactCurrentOwner,ki=o.ReactCurrentBatchConfig,Tl=o.ReactCurrentActQueue,Fa=0,MA=1,wi=2,Us=4,jc=0,ty=1,Vf=2,Q0=3,ny=4,zA=5,hD=6,bn=Fa,lo=null,Mr=null,$a=De,Au=De,mD=ep(De),Pa=jc,ry=null,K0=De,ay=De,Z0=De,iy=null,jo=null,gD=0,UA=500,HA=1/0,k9=500,Ic=null;function oy(){HA=gr()+k9}function qA(){return HA}var X0=!1,vD=null,Vm=null,Yf=!1,dp=null,sy=De,yD=[],bD=null,w9=50,ly=0,kD=null,wD=!1,J0=!1,D9=50,Ym=0,ek=null,tk=hr,nk=De,WA=!1;function rk(){return lo}function uo(){return(bn&(wi|Us))!==Fa?gr():(tk!==hr||(tk=gr()),tk)}function pp(e){var t=e.mode;if((t&b)===h)return ze;if((bn&wi)!==Fa&&$a!==De)return Bd($a);var s=v6()!==g6;if(s){if(ki.transition!==null){var l=ki.transition;l._updatedFibers||(l._updatedFibers=new Set),l._updatedFibers.add(e)}return nk===Tt&&(nk=mb()),nk}var p=$o();if(p!==Tt)return p;var y=t8();return y}function S9(e){var t=e.mode;return(t&b)===h?ze:ji()}function Na(e,t,s,l){Y9(),WA&&v("useInsertionEffect must not schedule updates."),wD&&(J0=!0),wc(e,s,l),(bn&wi)!==De&&e===lo?K9(t):(Va&&Xg(e,t,s),Z9(t),e===lo&&((bn&wi)===Fa&&(ay=Kt(ay,s)),Pa===ny&&fp(e,$a)),Io(e,l),s===ze&&bn===Fa&&(t.mode&b)===h&&!Tl.isBatchingLegacy&&(oy(),W_()))}function C9(e,t,s){var l=e.current;l.lanes=t,wc(e,t,s),Io(e,s)}function x9(e){return(bn&wi)!==Fa}function Io(e,t){var s=e.callbackNode;cb(e,t);var l=bc(e,e===lo?$a:De);if(l===De){s!==null&&sF(s),e.callbackNode=null,e.callbackPriority=Tt;return}var p=jr(l),y=e.callbackPriority;if(y===p&&!(Tl.current!==null&&s!==TD)){s==null&&y!==ze&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&sF(s);var w;if(p===ze)e.tag===tp?(Tl.isBatchingLegacy!==null&&(Tl.didScheduleLegacyUpdate=!0),J8(GA.bind(null,e))):q_(GA.bind(null,e)),Tl.current!==null?Tl.current.push(np):r8(function(){(bn&(wi|Us))===Fa&&np()}),w=null;else{var x;switch(Cf(l)){case Qa:x=Sd;break;case xa:x=ts;break;case fl:x=dr;break;case Df:x=Cd;break;default:x=dr;break}w=AD(x,VA.bind(null,e))}e.callbackPriority=p,e.callbackNode=w}function VA(e,t){if(H6(),tk=hr,nk=De,(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");var s=e.callbackNode,l=zc();if(l&&e.callbackNode!==s)return null;var p=bc(e,e===lo?$a:De);if(p===De)return null;var y=!kf(e,p)&&!hb(e,p)&&!t,w=y?O9(e,p):ik(e,p);if(w!==jc){if(w===Vf){var x=hu(e);x!==De&&(p=x,w=DD(e,x))}if(w===ty){var T=ry;throw Gf(e,De),fp(e,p),Io(e,gr()),T}if(w===hD)fp(e,p);else{var L=!kf(e,p),j=e.current.alternate;if(L&&!_9(j)){if(w=ik(e,p),w===Vf){var re=hu(e);re!==De&&(p=re,w=DD(e,re))}if(w===ty){var ee=ry;throw Gf(e,De),fp(e,p),Io(e,gr()),ee}}e.finishedWork=j,e.finishedLanes=p,E9(e,w,p)}}return Io(e,gr()),e.callbackNode===s?VA.bind(null,e):null}function DD(e,t){var s=iy;if(ea(e)){var l=Gf(e,t);l.flags|=kr,V8(e.containerInfo)}var p=ik(e,t);if(p!==Vf){var y=jo;jo=s,y!==null&&YA(y)}return p}function YA(e){jo===null?jo=e:jo.push.apply(jo,e)}function E9(e,t,s){switch(t){case jc:case ty:throw new Error("Root did not complete. This is a bug in React.");case Vf:{Qf(e,jo,Ic);break}case Q0:{if(fp(e,s),db(s)&&!lF()){var l=gD+UA-gr();if(l>10){var p=bc(e,De);if(p!==De)break;var y=e.suspendedLanes;if(!kc(y,s)){uo(),Kg(e,y);break}e.timeoutHandle=bw(Qf.bind(null,e,jo,Ic),l);break}}Qf(e,jo,Ic);break}case ny:{if(fp(e,s),fb(s))break;if(!lF()){var w=lb(e,s),x=w,T=gr()-x,L=V9(T)-T;if(L>10){e.timeoutHandle=bw(Qf.bind(null,e,jo,Ic),L);break}}Qf(e,jo,Ic);break}case zA:{Qf(e,jo,Ic);break}default:throw new Error("Unknown root exit status.")}}function _9(e){for(var t=e;;){if(t.flags&cc){var s=t.updateQueue;if(s!==null){var l=s.stores;if(l!==null)for(var p=0;p<l.length;p++){var y=l[p],w=y.getSnapshot,x=y.value;try{if(!bt(w(),x))return!1}catch{return!1}}}}var T=t.child;if(t.subtreeFlags&cc&&T!==null){T.return=t,t=T;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function fp(e,t){t=wf(t,Z0),t=wf(t,ay),Qg(e,t)}function GA(e){if(q6(),(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");zc();var t=bc(e,De);if(!Ii(t,ze))return Io(e,gr()),null;var s=ik(e,t);if(e.tag!==tp&&s===Vf){var l=hu(e);l!==De&&(t=l,s=DD(e,l))}if(s===ty){var p=ry;throw Gf(e,De),fp(e,t),Io(e,gr()),p}if(s===hD)throw new Error("Root did not complete. This is a bug in React.");var y=e.current.alternate;return e.finishedWork=y,e.finishedLanes=t,Qf(e,jo,Ic),Io(e,gr()),null}function T9(e,t){t!==De&&(jd(e,Kt(t,ze)),Io(e,gr()),(bn&(wi|Us))===Fa&&(oy(),np()))}function SD(e,t){var s=bn;bn|=MA;try{return e(t)}finally{bn=s,bn===Fa&&!Tl.isBatchingLegacy&&(oy(),W_())}}function A9(e,t,s,l,p){var y=$o(),w=ki.transition;try{return ki.transition=null,Jr(Qa),e(t,s,l,p)}finally{Jr(y),ki.transition=w,bn===Fa&&oy()}}function Mc(e){dp!==null&&dp.tag===tp&&(bn&(wi|Us))===Fa&&zc();var t=bn;bn|=MA;var s=ki.transition,l=$o();try{return ki.transition=null,Jr(Qa),e?e():void 0}finally{Jr(l),ki.transition=s,bn=t,(bn&(wi|Us))===Fa&&np()}}function QA(){return(bn&(wi|Us))!==Fa}function ak(e,t){zi(mD,Au,e),Au=Kt(Au,t)}function CD(e){Au=mD.current,Mi(mD,e)}function Gf(e,t){e.finishedWork=null,e.finishedLanes=De;var s=e.timeoutHandle;if(s!==kw&&(e.timeoutHandle=kw,n8(s)),Mr!==null)for(var l=Mr.return;l!==null;){var p=l.alternate;CA(p,l),l=l.return}lo=e;var y=Kf(e.current,null);return Mr=y,$a=Au=t,Pa=jc,ry=null,K0=De,ay=De,Z0=De,iy=null,jo=null,C6(),kl.discardPendingWarnings(),y}function KA(e,t){do{var s=Mr;try{if(f0(),kT(),zn(),fD.current=null,s===null||s.return===null){Pa=ty,ry=t,Mr=null;return}if(vt&&s.mode&C&&U0(s,!0),ct)if(Ya(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var l=t;dl(s,l,$a)}else pu(s,t,$a);J6(e,s.return,s,t,$a),eF(s)}catch(p){t=p,Mr===s&&s!==null?(s=s.return,Mr=s):s=Mr;continue}return}while(!0)}function ZA(){var e=pD.current;return pD.current=B0,e===null?B0:e}function XA(e){pD.current=e}function F9(){gD=gr()}function uy(e){K0=Kt(e,K0)}function $9(){Pa===jc&&(Pa=Q0)}function xD(){(Pa===jc||Pa===Q0||Pa===Vf)&&(Pa=ny),lo!==null&&(bf(K0)||bf(ay))&&fp(lo,$a)}function P9(e){Pa!==ny&&(Pa=Vf),iy===null?iy=[e]:iy.push(e)}function N9(){return Pa===jc}function ik(e,t){var s=bn;bn|=wi;var l=ZA();if(lo!==e||$a!==t){if(Va){var p=e.memoizedUpdaters;p.size>0&&(cy(e,$a),p.clear()),rm(e,t)}Ic=Jg(),Gf(e,t)}pr(t);do try{R9();break}catch(y){KA(e,y)}while(!0);if(f0(),bn=s,XA(l),Mr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Fd(),lo=null,$a=De,Pa}function R9(){for(;Mr!==null;)JA(Mr)}function O9(e,t){var s=bn;bn|=wi;var l=ZA();if(lo!==e||$a!==t){if(Va){var p=e.memoizedUpdaters;p.size>0&&(cy(e,$a),p.clear()),rm(e,t)}Ic=Jg(),oy(),Gf(e,t)}pr(t);do try{L9();break}catch(y){KA(e,y)}while(!0);return f0(),XA(l),bn=s,Mr!==null?(Ad(),jc):(Fd(),lo=null,$a=De,Pa)}function L9(){for(;Mr!==null&&!pc();)JA(Mr)}function JA(e){var t=e.alternate;Sn(e);var s;(e.mode&C)!==h?(T2(e),s=ED(t,e,Au),U0(e,!0)):s=ED(t,e,Au),zn(),e.memoizedProps=e.pendingProps,s===null?eF(e):Mr=s,fD.current=null}function eF(e){var t=e;do{var s=t.alternate,l=t.return;if((t.flags&za)===_t){Sn(t);var p=void 0;if((t.mode&C)===h?p=SA(s,t,Au):(T2(t),p=SA(s,t,Au),U0(t,!1)),zn(),p!==null){Mr=p;return}}else{var y=$5(s,t);if(y!==null){y.flags&=ol,Mr=y;return}if((t.mode&C)!==h){U0(t,!1);for(var w=t.actualDuration,x=t.child;x!==null;)w+=x.actualDuration,x=x.sibling;t.actualDuration=w}if(l!==null)l.flags|=za,l.subtreeFlags=_t,l.deletions=null;else{Pa=hD,Mr=null;return}}var T=t.sibling;if(T!==null){Mr=T;return}t=l,Mr=t}while(t!==null);Pa===jc&&(Pa=zA)}function Qf(e,t,s){var l=$o(),p=ki.transition;try{ki.transition=null,Jr(Qa),B9(e,t,s,l)}finally{ki.transition=p,Jr(l)}return null}function B9(e,t,s,l){do zc();while(dp!==null);if(G9(),(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");var p=e.finishedWork,y=e.finishedLanes;if($s(y),p===null)return xd(),null;if(y===De&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=De,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Tt;var w=Kt(p.lanes,p.childLanes);Zg(e,w),e===lo&&(lo=null,Mr=null,$a=De),((p.subtreeFlags&Ni)!==_t||(p.flags&Ni)!==_t)&&(Yf||(Yf=!0,bD=s,AD(dr,function(){return zc(),null})));var x=(p.subtreeFlags&(ll|ca|da|Ni))!==_t,T=(p.flags&(ll|ca|da|Ni))!==_t;if(x||T){var L=ki.transition;ki.transition=null;var j=$o();Jr(Qa);var re=bn;bn|=Us,fD.current=null,L5(e,p),WT(),K5(e,p,y),QM(e.containerInfo),e.current=p,_d(y),Z5(p,e,y),pl(),pf(),bn=re,Jr(j),ki.transition=L}else e.current=p,WT();var ee=Yf;if(Yf?(Yf=!1,dp=e,sy=y):(Ym=0,ek=null),w=e.pendingLanes,w===De&&(Vm=null),ee||aF(e.current,!1),Ao(p.stateNode,l),Va&&e.memoizedUpdaters.clear(),g9(),Io(e,gr()),t!==null)for(var de=e.onRecoverableError,me=0;me<t.length;me++){var Ce=t[me],tt=Ce.stack,Et=Ce.digest;de(Ce.value,{componentStack:tt,digest:Et})}if(X0){X0=!1;var Nt=vD;throw vD=null,Nt}return Ii(sy,ze)&&e.tag!==tp&&zc(),w=e.pendingLanes,Ii(w,ze)?(U6(),e===kD?ly++:(ly=0,kD=e)):ly=0,np(),xd(),null}function zc(){if(dp!==null){var e=Cf(sy),t=q1(fl,e),s=ki.transition,l=$o();try{return ki.transition=null,Jr(t),I9()}finally{Jr(l),ki.transition=s}}return!1}function j9(e){yD.push(e),Yf||(Yf=!0,AD(dr,function(){return zc(),null}))}function I9(){if(dp===null)return!1;var e=bD;bD=null;var t=dp,s=sy;if(dp=null,sy=De,(bn&(wi|Us))!==Fa)throw new Error("Cannot flush passive effects while already rendering.");wD=!0,J0=!1,mc(s);var l=bn;bn|=Us,a9(t.current),e9(t,t.current,s,e);{var p=yD;yD=[];for(var y=0;y<p.length;y++){var w=p[y];M5(t,w)}}Td(),aF(t.current,!0),bn=l,np(),J0?t===ek?Ym++:(Ym=0,ek=t):Ym=0,wD=!1,J0=!1,Li(t);{var x=t.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function tF(e){return Vm!==null&&Vm.has(e)}function M9(e){Vm===null?Vm=new Set([e]):Vm.add(e)}function z9(e){X0||(X0=!0,vD=e)}var U9=z9;function nF(e,t,s){var l=qf(s,t),p=JT(e,l,ze),y=ap(e,p,ze),w=uo();y!==null&&(wc(y,ze,w),Io(y,w))}function yr(e,t,s){if(N5(s),dy(!1),e.tag===N){nF(e,e,s);return}var l=null;for(l=t;l!==null;){if(l.tag===N){nF(l,e,s);return}else if(l.tag===_){var p=l.type,y=l.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!tF(y)){var w=qf(s,e),x=V2(l,w,ze),T=ap(l,x,ze),L=uo();T!==null&&(wc(T,ze,L),Io(T,L));return}}l=l.return}v(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
280
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:L=" You returned: "+x,v("%s must not return anything besides a function, which is used for clean-up.%s",T,L)}}}y=y.next}while(y!==p)}}function z5(e,t){if((t.flags&Ge)!==_t)switch(t.tag){case ne:{var s=t.stateNode.passiveEffectDuration,l=t.memoizedProps,p=l.id,y=l.onPostCommit,w=WT(),x=t.alternate===null?"mount":"update";qT()&&(x="nested-update"),typeof y=="function"&&y(p,x,s,w);var T=t.return;e:for(;T!==null;){switch(T.tag){case N:var L=T.stateNode;L.passiveEffectDuration+=s;break e;case ne:var j=T.stateNode;j.passiveEffectDuration+=s;break e}T=T.return}break}}}function U5(e,t,s,l){if((s.flags&da)!==_t)switch(s.tag){case E:case Y:case oe:{if(!yi)if(s.mode&C)try{_u(),up(_a|Ea,s)}finally{Eu(s)}else up(_a|Ea,s);break}case _:{var p=s.stateNode;if(s.flags&Ge&&!yi)if(t===null)if(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&C)try{_u(),p.componentDidMount()}finally{Eu(s)}else p.componentDidMount();else{var y=s.elementType===s.type?t.memoizedProps:Sl(s.type,t.memoizedProps),w=t.memoizedState;if(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),s.mode&C)try{_u(),p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}finally{Eu(s)}else p.componentDidUpdate(y,w,p.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&(s.type===s.elementType&&!Wf&&(p.props!==s.memoizedProps&&v("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),p.state!==s.memoizedState&&v("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance")),mT(s,x,p));break}case N:{var T=s.updateQueue;if(T!==null){var L=null;if(s.child!==null)switch(s.child.tag){case B:L=s.child.stateNode;break;case _:L=s.child.stateNode;break}mT(s,T,L)}break}case B:{var j=s.stateNode;if(t===null&&s.flags&Ge){var re=s.type,ee=s.memoizedProps;o8(j,re,ee)}break}case M:break;case R:break;case ne:{{var de=s.memoizedProps,me=de.onCommit,Ce=de.onRender,tt=s.stateNode.effectDuration,Et=WT(),Nt=t===null?"mount":"update";qT()&&(Nt="nested-update"),typeof Ce=="function"&&Ce(s.memoizedProps.id,Nt,s.actualDuration,s.treeBaseDuration,s.actualStartTime,Et);{typeof me=="function"&&me(s.memoizedProps.id,Nt,tt,Et),I9(s);var cn=s.return;e:for(;cn!==null;){switch(cn.tag){case N:var on=cn.stateNode;on.effectDuration+=tt;break e;case ne:var se=cn.stateNode;se.effectDuration+=tt;break e}cn=cn.return}}}break}case U:{K5(e,s);break}case rt:case ye:case Ye:case Fe:case Pe:case Ne:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}yi||s.flags&Ma&&FA(s)}function H5(e){switch(e.tag){case E:case Y:case oe:{if(e.mode&C)try{_u(),_A(e,e.return)}finally{Eu(e)}else _A(e,e.return);break}case _:{var t=e.stateNode;typeof t.componentDidMount=="function"&&L5(e,e.return,t),TA(e,e.return);break}case B:{TA(e,e.return);break}}}function q5(e,t){for(var s=null,l=e;;){if(l.tag===B){if(s===null){s=l;try{var p=l.stateNode;t?g8(p):y8(l.stateNode,l.memoizedProps)}catch(w){yr(e,e.return,w)}}}else if(l.tag===M){if(s===null)try{var y=l.stateNode;t?v8(y):b8(y,l.memoizedProps)}catch(w){yr(e,e.return,w)}}else if(!((l.tag===Fe||l.tag===Pe)&&l.memoizedState!==null&&l!==e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)return;for(;l.sibling===null;){if(l.return===null||l.return===e)return;s===l&&(s=null),l=l.return}s===l&&(s=null),l.sibling.return=l.return,l=l.sibling}}function FA(e){var t=e.ref;if(t!==null){var s=e.stateNode,l;switch(e.tag){case B:l=s;break;default:l=s}if(typeof t=="function"){var p;if(e.mode&C)try{_u(),p=t(l)}finally{Eu(e)}else p=t(l);typeof p=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Mt(e)),t.current=l}}function W5(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function $A(e){var t=e.alternate;t!==null&&(e.alternate=null,$A(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===B){var s=e.stateNode;s!==null&&Z8(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function V5(e){for(var t=e.return;t!==null;){if(PA(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function PA(e){return e.tag===B||e.tag===N||e.tag===R}function NA(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||PA(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==B&&t.tag!==M&&t.tag!==Ve;){if(t.flags&tr||t.child===null||t.tag===R)continue e;t.child.return=t,t=t.child}if(!(t.flags&tr))return t.stateNode}}function Y5(e){var t=V5(e);switch(t.tag){case B:{var s=t.stateNode;t.flags&gn&&(O_(s),t.flags&=~gn);var l=NA(e);cD(e,l,s);break}case N:case R:{var p=t.stateNode.containerInfo,y=NA(e);uD(e,y,p);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function uD(e,t,s){var l=e.tag,p=l===B||l===M;if(p){var y=e.stateNode;t?p8(s,y,t):c8(s,y)}else if(l!==R){var w=e.child;if(w!==null){uD(w,t,s);for(var x=w.sibling;x!==null;)uD(x,t,s),x=x.sibling}}}function cD(e,t,s){var l=e.tag,p=l===B||l===M;if(p){var y=e.stateNode;t?d8(s,y,t):u8(s,y)}else if(l!==R){var w=e.child;if(w!==null){cD(w,t,s);for(var x=w.sibling;x!==null;)cD(x,t,s),x=x.sibling}}}var bi=null,El=!1;function G5(e,t,s){{var l=t;e:for(;l!==null;){switch(l.tag){case B:{bi=l.stateNode,El=!1;break e}case N:{bi=l.stateNode.containerInfo,El=!0;break e}case R:{bi=l.stateNode.containerInfo,El=!0;break e}}l=l.return}if(bi===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");RA(e,t,s),bi=null,El=!1}W5(s)}function cp(e,t,s){for(var l=s.child;l!==null;)RA(e,t,l),l=l.sibling}function RA(e,t,s){switch(cl(s),s.tag){case B:yi||Wm(s,t);case M:{{var l=bi,p=El;bi=null,cp(e,t,s),bi=l,El=p,bi!==null&&(El?h8(bi,s.stateNode):f8(bi,s.stateNode))}return}case Ve:{bi!==null&&(El?m8(bi,s.stateNode):ww(bi,s.stateNode));return}case R:{{var y=bi,w=El;bi=s.stateNode.containerInfo,El=!0,cp(e,t,s),bi=y,El=w}return}case E:case Y:case ae:case oe:{if(!yi){var x=s.updateQueue;if(x!==null){var T=x.lastEffect;if(T!==null){var L=T.next,j=L;do{var re=j,ee=re.destroy,de=re.tag;ee!==void 0&&((de&Su)!==Bo?G0(s,t,ee):(de&_a)!==Bo&&(io(s),s.mode&C?(_u(),G0(s,t,ee),Eu(s)):G0(s,t,ee),du())),j=j.next}while(j!==L)}}}cp(e,t,s);return}case _:{if(!yi){Wm(s,t);var me=s.stateNode;typeof me.componentWillUnmount=="function"&&lD(s,t,me)}cp(e,t,s);return}case Ye:{cp(e,t,s);return}case Fe:{if(s.mode&b){var Ce=yi;yi=Ce||s.memoizedState!==null,cp(e,t,s),yi=Ce}else cp(e,t,s);break}default:{cp(e,t,s);return}}}function Q5(e){e.memoizedState}function K5(e,t){var s=t.memoizedState;if(s===null){var l=t.alternate;if(l!==null){var p=l.memoizedState;if(p!==null){var y=p.dehydrated;y!==null&&R8(y)}}}}function OA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new N5),t.forEach(function(l){var p=V9.bind(null,e,l);if(!s.has(l)){if(s.add(l),Va)if(Hm!==null&&qm!==null)cy(qm,Hm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");l.then(p,p)}})}}function Z5(e,t,s){Hm=s,qm=e,Sn(t),LA(t,e),Sn(t),Hm=null,qm=null}function _l(e,t,s){var l=t.deletions;if(l!==null)for(var p=0;p<l.length;p++){var y=l[p];try{G5(e,t,y)}catch(T){yr(y,t,T)}}var w=id();if(t.subtreeFlags&ca)for(var x=t.child;x!==null;)Sn(x),LA(x,e),x=x.sibling;Sn(w)}function LA(e,t,s){var l=e.alternate,p=e.flags;switch(e.tag){case E:case Y:case ae:case oe:{if(_l(t,e),Tu(e),p&Ge){try{xl(Su|Ea,e,e.return),up(Su|Ea,e)}catch(jt){yr(e,e.return,jt)}if(e.mode&C){try{_u(),xl(_a|Ea,e,e.return)}catch(jt){yr(e,e.return,jt)}Eu(e)}else try{xl(_a|Ea,e,e.return)}catch(jt){yr(e,e.return,jt)}}return}case _:{_l(t,e),Tu(e),p&Ma&&l!==null&&Wm(l,l.return);return}case B:{_l(t,e),Tu(e),p&Ma&&l!==null&&Wm(l,l.return);{if(e.flags&gn){var y=e.stateNode;try{O_(y)}catch(jt){yr(e,e.return,jt)}}if(p&Ge){var w=e.stateNode;if(w!=null){var x=e.memoizedProps,T=l!==null?l.memoizedProps:x,L=e.type,j=e.updateQueue;if(e.updateQueue=null,j!==null)try{s8(w,j,L,T,x,e)}catch(jt){yr(e,e.return,jt)}}}}return}case M:{if(_l(t,e),Tu(e),p&Ge){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,ee=e.memoizedProps,de=l!==null?l.memoizedProps:ee;try{l8(re,de,ee)}catch(jt){yr(e,e.return,jt)}}return}case N:{if(_l(t,e),Tu(e),p&Ge&&l!==null){var me=l.memoizedState;if(me.isDehydrated)try{N8(t.containerInfo)}catch(jt){yr(e,e.return,jt)}}return}case R:{_l(t,e),Tu(e);return}case U:{_l(t,e),Tu(e);var Ce=e.child;if(Ce.flags&Ca){var tt=Ce.stateNode,Et=Ce.memoizedState,Nt=Et!==null;if(tt.isHidden=Nt,Nt){var cn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;cn||$9()}}if(p&Ge){try{Q5(e)}catch(jt){yr(e,e.return,jt)}OA(e)}return}case Fe:{var on=l!==null&&l.memoizedState!==null;if(e.mode&b){var se=yi;yi=se||on,_l(t,e),yi=se}else _l(t,e);if(Tu(e),p&Ca){var Se=e.stateNode,le=e.memoizedState,Ue=le!==null,ft=e;if(Se.isHidden=Ue,Ue&&!on&&(ft.mode&b)!==h){kt=ft;for(var lt=ft.child;lt!==null;)kt=lt,J5(lt),lt=lt.sibling}q5(ft,Ue)}return}case rt:{_l(t,e),Tu(e),p&Ge&&OA(e);return}case Ye:return;default:{_l(t,e),Tu(e);return}}}function Tu(e){var t=e.flags;if(t&tr){try{Y5(e)}catch(s){yr(e,e.return,s)}e.flags&=~tr}t&Pi&&(e.flags&=~Pi)}function X5(e,t,s){Hm=s,qm=t,kt=e,BA(e,t,s),Hm=null,qm=null}function BA(e,t,s){for(var l=(e.mode&b)!==h;kt!==null;){var p=kt,y=p.child;if(p.tag===Fe&&l){var w=p.memoizedState!==null,x=w||Y0;if(x){dD(e,t,s);continue}else{var T=p.alternate,L=T!==null&&T.memoizedState!==null,j=L||yi,re=Y0,ee=yi;Y0=x,yi=j,yi&&!ee&&(kt=p,e9(p));for(var de=y;de!==null;)kt=de,BA(de,t,s),de=de.sibling;kt=p,Y0=re,yi=ee,dD(e,t,s);continue}}(p.subtreeFlags&da)!==_t&&y!==null?(y.return=p,kt=y):dD(e,t,s)}}function dD(e,t,s){for(;kt!==null;){var l=kt;if((l.flags&da)!==_t){var p=l.alternate;Sn(l);try{U5(t,p,l,s)}catch(w){yr(l,l.return,w)}zn()}if(l===e){kt=null;return}var y=l.sibling;if(y!==null){y.return=l.return,kt=y;return}kt=l.return}}function J5(e){for(;kt!==null;){var t=kt,s=t.child;switch(t.tag){case E:case Y:case ae:case oe:{if(t.mode&C)try{_u(),xl(_a,t,t.return)}finally{Eu(t)}else xl(_a,t,t.return);break}case _:{Wm(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&lD(t,t.return,l);break}case B:{Wm(t,t.return);break}case Fe:{var p=t.memoizedState!==null;if(p){jA(e);continue}break}}s!==null?(s.return=t,kt=s):jA(e)}}function jA(e){for(;kt!==null;){var t=kt;if(t===e){kt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,kt=s;return}kt=t.return}}function e9(e){for(;kt!==null;){var t=kt,s=t.child;if(t.tag===Fe){var l=t.memoizedState!==null;if(l){IA(e);continue}}s!==null?(s.return=t,kt=s):IA(e)}}function IA(e){for(;kt!==null;){var t=kt;Sn(t);try{H5(t)}catch(l){yr(t,t.return,l)}if(zn(),t===e){kt=null;return}var s=t.sibling;if(s!==null){s.return=t.return,kt=s;return}kt=t.return}}function t9(e,t,s,l){kt=t,n9(t,e,s,l)}function n9(e,t,s,l){for(;kt!==null;){var p=kt,y=p.child;(p.subtreeFlags&Ni)!==_t&&y!==null?(y.return=p,kt=y):r9(e,t,s,l)}}function r9(e,t,s,l){for(;kt!==null;){var p=kt;if((p.flags&cr)!==_t){Sn(p);try{a9(t,p,s,l)}catch(w){yr(p,p.return,w)}zn()}if(p===e){kt=null;return}var y=p.sibling;if(y!==null){y.return=p.return,kt=y;return}kt=p.return}}function a9(e,t,s,l){switch(t.tag){case E:case Y:case oe:{if(t.mode&C){F2();try{up(gi|Ea,t)}finally{A2(t)}}else up(gi|Ea,t);break}}}function i9(e){kt=e,o9()}function o9(){for(;kt!==null;){var e=kt,t=e.child;if((kt.flags&Cn)!==_t){var s=e.deletions;if(s!==null){for(var l=0;l<s.length;l++){var p=s[l];kt=p,u9(p,e)}{var y=e.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}}kt=e}}(e.subtreeFlags&Ni)!==_t&&t!==null?(t.return=e,kt=t):s9()}}function s9(){for(;kt!==null;){var e=kt;(e.flags&cr)!==_t&&(Sn(e),l9(e),zn());var t=e.sibling;if(t!==null){t.return=e.return,kt=t;return}kt=e.return}}function l9(e){switch(e.tag){case E:case Y:case oe:{e.mode&C?(F2(),xl(gi|Ea,e,e.return),A2(e)):xl(gi|Ea,e,e.return);break}}}function u9(e,t){for(;kt!==null;){var s=kt;Sn(s),d9(s,t),zn();var l=s.child;l!==null?(l.return=s,kt=l):c9(e)}}function c9(e){for(;kt!==null;){var t=kt,s=t.sibling,l=t.return;if($A(t),t===e){kt=null;return}if(s!==null){s.return=l,kt=s;return}kt=l}}function d9(e,t){switch(e.tag){case E:case Y:case oe:{e.mode&C?(F2(),xl(gi,e,t),A2(e)):xl(gi,e,t);break}}}function p9(e){switch(e.tag){case E:case Y:case oe:{try{up(_a|Ea,e)}catch(s){yr(e,e.return,s)}break}case _:{var t=e.stateNode;try{t.componentDidMount()}catch(s){yr(e,e.return,s)}break}}}function f9(e){switch(e.tag){case E:case Y:case oe:{try{up(gi|Ea,e)}catch(t){yr(e,e.return,t)}break}}}function h9(e){switch(e.tag){case E:case Y:case oe:{try{xl(_a|Ea,e,e.return)}catch(s){yr(e,e.return,s)}break}case _:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&lD(e,e.return,t);break}}}function m9(e){switch(e.tag){case E:case Y:case oe:try{xl(gi|Ea,e,e.return)}catch(t){yr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var ey=Symbol.for;ey("selector.component"),ey("selector.has_pseudo_class"),ey("selector.role"),ey("selector.test_id"),ey("selector.text")}var g9=[];function v9(){g9.forEach(function(e){return e()})}var y9=o.ReactCurrentActQueue;function b9(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function MA(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&y9.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var k9=Math.ceil,pD=o.ReactCurrentDispatcher,fD=o.ReactCurrentOwner,ki=o.ReactCurrentBatchConfig,Tl=o.ReactCurrentActQueue,Fa=0,zA=1,wi=2,Us=4,jc=0,ty=1,Vf=2,Q0=3,ny=4,UA=5,hD=6,bn=Fa,lo=null,Mr=null,$a=De,Au=De,mD=ep(De),Pa=jc,ry=null,K0=De,ay=De,Z0=De,iy=null,jo=null,gD=0,HA=500,qA=1/0,w9=500,Ic=null;function oy(){qA=gr()+w9}function WA(){return qA}var X0=!1,vD=null,Vm=null,Yf=!1,dp=null,sy=De,yD=[],bD=null,D9=50,ly=0,kD=null,wD=!1,J0=!1,S9=50,Ym=0,ek=null,tk=hr,nk=De,VA=!1;function rk(){return lo}function uo(){return(bn&(wi|Us))!==Fa?gr():(tk!==hr||(tk=gr()),tk)}function pp(e){var t=e.mode;if((t&b)===h)return ze;if((bn&wi)!==Fa&&$a!==De)return Bd($a);var s=y6()!==v6;if(s){if(ki.transition!==null){var l=ki.transition;l._updatedFibers||(l._updatedFibers=new Set),l._updatedFibers.add(e)}return nk===Tt&&(nk=mb()),nk}var p=$o();if(p!==Tt)return p;var y=n8();return y}function C9(e){var t=e.mode;return(t&b)===h?ze:ji()}function Na(e,t,s,l){G9(),VA&&v("useInsertionEffect must not schedule updates."),wD&&(J0=!0),wc(e,s,l),(bn&wi)!==De&&e===lo?Z9(t):(Va&&Xg(e,t,s),X9(t),e===lo&&((bn&wi)===Fa&&(ay=Kt(ay,s)),Pa===ny&&fp(e,$a)),Io(e,l),s===ze&&bn===Fa&&(t.mode&b)===h&&!Tl.isBatchingLegacy&&(oy(),V_()))}function x9(e,t,s){var l=e.current;l.lanes=t,wc(e,t,s),Io(e,s)}function E9(e){return(bn&wi)!==Fa}function Io(e,t){var s=e.callbackNode;cb(e,t);var l=bc(e,e===lo?$a:De);if(l===De){s!==null&&lF(s),e.callbackNode=null,e.callbackPriority=Tt;return}var p=jr(l),y=e.callbackPriority;if(y===p&&!(Tl.current!==null&&s!==TD)){s==null&&y!==ze&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&lF(s);var w;if(p===ze)e.tag===tp?(Tl.isBatchingLegacy!==null&&(Tl.didScheduleLegacyUpdate=!0),e6(QA.bind(null,e))):W_(QA.bind(null,e)),Tl.current!==null?Tl.current.push(np):a8(function(){(bn&(wi|Us))===Fa&&np()}),w=null;else{var x;switch(Cf(l)){case Qa:x=Sd;break;case xa:x=ts;break;case fl:x=dr;break;case Df:x=Cd;break;default:x=dr;break}w=AD(x,YA.bind(null,e))}e.callbackPriority=p,e.callbackNode=w}function YA(e,t){if(q6(),tk=hr,nk=De,(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");var s=e.callbackNode,l=zc();if(l&&e.callbackNode!==s)return null;var p=bc(e,e===lo?$a:De);if(p===De)return null;var y=!kf(e,p)&&!hb(e,p)&&!t,w=y?L9(e,p):ik(e,p);if(w!==jc){if(w===Vf){var x=hu(e);x!==De&&(p=x,w=DD(e,x))}if(w===ty){var T=ry;throw Gf(e,De),fp(e,p),Io(e,gr()),T}if(w===hD)fp(e,p);else{var L=!kf(e,p),j=e.current.alternate;if(L&&!T9(j)){if(w=ik(e,p),w===Vf){var re=hu(e);re!==De&&(p=re,w=DD(e,re))}if(w===ty){var ee=ry;throw Gf(e,De),fp(e,p),Io(e,gr()),ee}}e.finishedWork=j,e.finishedLanes=p,_9(e,w,p)}}return Io(e,gr()),e.callbackNode===s?YA.bind(null,e):null}function DD(e,t){var s=iy;if(ea(e)){var l=Gf(e,t);l.flags|=kr,Y8(e.containerInfo)}var p=ik(e,t);if(p!==Vf){var y=jo;jo=s,y!==null&&GA(y)}return p}function GA(e){jo===null?jo=e:jo.push.apply(jo,e)}function _9(e,t,s){switch(t){case jc:case ty:throw new Error("Root did not complete. This is a bug in React.");case Vf:{Qf(e,jo,Ic);break}case Q0:{if(fp(e,s),db(s)&&!uF()){var l=gD+HA-gr();if(l>10){var p=bc(e,De);if(p!==De)break;var y=e.suspendedLanes;if(!kc(y,s)){uo(),Kg(e,y);break}e.timeoutHandle=bw(Qf.bind(null,e,jo,Ic),l);break}}Qf(e,jo,Ic);break}case ny:{if(fp(e,s),fb(s))break;if(!uF()){var w=lb(e,s),x=w,T=gr()-x,L=Y9(T)-T;if(L>10){e.timeoutHandle=bw(Qf.bind(null,e,jo,Ic),L);break}}Qf(e,jo,Ic);break}case UA:{Qf(e,jo,Ic);break}default:throw new Error("Unknown root exit status.")}}function T9(e){for(var t=e;;){if(t.flags&cc){var s=t.updateQueue;if(s!==null){var l=s.stores;if(l!==null)for(var p=0;p<l.length;p++){var y=l[p],w=y.getSnapshot,x=y.value;try{if(!bt(w(),x))return!1}catch{return!1}}}}var T=t.child;if(t.subtreeFlags&cc&&T!==null){T.return=t,t=T;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function fp(e,t){t=wf(t,Z0),t=wf(t,ay),Qg(e,t)}function QA(e){if(W6(),(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");zc();var t=bc(e,De);if(!Ii(t,ze))return Io(e,gr()),null;var s=ik(e,t);if(e.tag!==tp&&s===Vf){var l=hu(e);l!==De&&(t=l,s=DD(e,l))}if(s===ty){var p=ry;throw Gf(e,De),fp(e,t),Io(e,gr()),p}if(s===hD)throw new Error("Root did not complete. This is a bug in React.");var y=e.current.alternate;return e.finishedWork=y,e.finishedLanes=t,Qf(e,jo,Ic),Io(e,gr()),null}function A9(e,t){t!==De&&(jd(e,Kt(t,ze)),Io(e,gr()),(bn&(wi|Us))===Fa&&(oy(),np()))}function SD(e,t){var s=bn;bn|=zA;try{return e(t)}finally{bn=s,bn===Fa&&!Tl.isBatchingLegacy&&(oy(),V_())}}function F9(e,t,s,l,p){var y=$o(),w=ki.transition;try{return ki.transition=null,Jr(Qa),e(t,s,l,p)}finally{Jr(y),ki.transition=w,bn===Fa&&oy()}}function Mc(e){dp!==null&&dp.tag===tp&&(bn&(wi|Us))===Fa&&zc();var t=bn;bn|=zA;var s=ki.transition,l=$o();try{return ki.transition=null,Jr(Qa),e?e():void 0}finally{Jr(l),ki.transition=s,bn=t,(bn&(wi|Us))===Fa&&np()}}function KA(){return(bn&(wi|Us))!==Fa}function ak(e,t){zi(mD,Au,e),Au=Kt(Au,t)}function CD(e){Au=mD.current,Mi(mD,e)}function Gf(e,t){e.finishedWork=null,e.finishedLanes=De;var s=e.timeoutHandle;if(s!==kw&&(e.timeoutHandle=kw,r8(s)),Mr!==null)for(var l=Mr.return;l!==null;){var p=l.alternate;xA(p,l),l=l.return}lo=e;var y=Kf(e.current,null);return Mr=y,$a=Au=t,Pa=jc,ry=null,K0=De,ay=De,Z0=De,iy=null,jo=null,x6(),kl.discardPendingWarnings(),y}function ZA(e,t){do{var s=Mr;try{if(f0(),wT(),zn(),fD.current=null,s===null||s.return===null){Pa=ty,ry=t,Mr=null;return}if(vt&&s.mode&C&&U0(s,!0),ct)if(Ya(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var l=t;dl(s,l,$a)}else pu(s,t,$a);e5(e,s.return,s,t,$a),tF(s)}catch(p){t=p,Mr===s&&s!==null?(s=s.return,Mr=s):s=Mr;continue}return}while(!0)}function XA(){var e=pD.current;return pD.current=B0,e===null?B0:e}function JA(e){pD.current=e}function $9(){gD=gr()}function uy(e){K0=Kt(e,K0)}function P9(){Pa===jc&&(Pa=Q0)}function xD(){(Pa===jc||Pa===Q0||Pa===Vf)&&(Pa=ny),lo!==null&&(bf(K0)||bf(ay))&&fp(lo,$a)}function N9(e){Pa!==ny&&(Pa=Vf),iy===null?iy=[e]:iy.push(e)}function R9(){return Pa===jc}function ik(e,t){var s=bn;bn|=wi;var l=XA();if(lo!==e||$a!==t){if(Va){var p=e.memoizedUpdaters;p.size>0&&(cy(e,$a),p.clear()),rm(e,t)}Ic=Jg(),Gf(e,t)}pr(t);do try{O9();break}catch(y){ZA(e,y)}while(!0);if(f0(),bn=s,JA(l),Mr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Fd(),lo=null,$a=De,Pa}function O9(){for(;Mr!==null;)eF(Mr)}function L9(e,t){var s=bn;bn|=wi;var l=XA();if(lo!==e||$a!==t){if(Va){var p=e.memoizedUpdaters;p.size>0&&(cy(e,$a),p.clear()),rm(e,t)}Ic=Jg(),oy(),Gf(e,t)}pr(t);do try{B9();break}catch(y){ZA(e,y)}while(!0);return f0(),JA(l),bn=s,Mr!==null?(Ad(),jc):(Fd(),lo=null,$a=De,Pa)}function B9(){for(;Mr!==null&&!pc();)eF(Mr)}function eF(e){var t=e.alternate;Sn(e);var s;(e.mode&C)!==h?(T2(e),s=ED(t,e,Au),U0(e,!0)):s=ED(t,e,Au),zn(),e.memoizedProps=e.pendingProps,s===null?tF(e):Mr=s,fD.current=null}function tF(e){var t=e;do{var s=t.alternate,l=t.return;if((t.flags&za)===_t){Sn(t);var p=void 0;if((t.mode&C)===h?p=CA(s,t,Au):(T2(t),p=CA(s,t,Au),U0(t,!1)),zn(),p!==null){Mr=p;return}}else{var y=P5(s,t);if(y!==null){y.flags&=ol,Mr=y;return}if((t.mode&C)!==h){U0(t,!1);for(var w=t.actualDuration,x=t.child;x!==null;)w+=x.actualDuration,x=x.sibling;t.actualDuration=w}if(l!==null)l.flags|=za,l.subtreeFlags=_t,l.deletions=null;else{Pa=hD,Mr=null;return}}var T=t.sibling;if(T!==null){Mr=T;return}t=l,Mr=t}while(t!==null);Pa===jc&&(Pa=UA)}function Qf(e,t,s){var l=$o(),p=ki.transition;try{ki.transition=null,Jr(Qa),j9(e,t,s,l)}finally{ki.transition=p,Jr(l)}return null}function j9(e,t,s,l){do zc();while(dp!==null);if(Q9(),(bn&(wi|Us))!==Fa)throw new Error("Should not already be working.");var p=e.finishedWork,y=e.finishedLanes;if($s(y),p===null)return xd(),null;if(y===De&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=De,p===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=Tt;var w=Kt(p.lanes,p.childLanes);Zg(e,w),e===lo&&(lo=null,Mr=null,$a=De),((p.subtreeFlags&Ni)!==_t||(p.flags&Ni)!==_t)&&(Yf||(Yf=!0,bD=s,AD(dr,function(){return zc(),null})));var x=(p.subtreeFlags&(ll|ca|da|Ni))!==_t,T=(p.flags&(ll|ca|da|Ni))!==_t;if(x||T){var L=ki.transition;ki.transition=null;var j=$o();Jr(Qa);var re=bn;bn|=Us,fD.current=null,B5(e,p),VT(),Z5(e,p,y),KM(e.containerInfo),e.current=p,_d(y),X5(p,e,y),pl(),pf(),bn=re,Jr(j),ki.transition=L}else e.current=p,VT();var ee=Yf;if(Yf?(Yf=!1,dp=e,sy=y):(Ym=0,ek=null),w=e.pendingLanes,w===De&&(Vm=null),ee||iF(e.current,!1),Ao(p.stateNode,l),Va&&e.memoizedUpdaters.clear(),v9(),Io(e,gr()),t!==null)for(var de=e.onRecoverableError,me=0;me<t.length;me++){var Ce=t[me],tt=Ce.stack,Et=Ce.digest;de(Ce.value,{componentStack:tt,digest:Et})}if(X0){X0=!1;var Nt=vD;throw vD=null,Nt}return Ii(sy,ze)&&e.tag!==tp&&zc(),w=e.pendingLanes,Ii(w,ze)?(H6(),e===kD?ly++:(ly=0,kD=e)):ly=0,np(),xd(),null}function zc(){if(dp!==null){var e=Cf(sy),t=q1(fl,e),s=ki.transition,l=$o();try{return ki.transition=null,Jr(t),M9()}finally{Jr(l),ki.transition=s}}return!1}function I9(e){yD.push(e),Yf||(Yf=!0,AD(dr,function(){return zc(),null}))}function M9(){if(dp===null)return!1;var e=bD;bD=null;var t=dp,s=sy;if(dp=null,sy=De,(bn&(wi|Us))!==Fa)throw new Error("Cannot flush passive effects while already rendering.");wD=!0,J0=!1,mc(s);var l=bn;bn|=Us,i9(t.current),t9(t,t.current,s,e);{var p=yD;yD=[];for(var y=0;y<p.length;y++){var w=p[y];z5(t,w)}}Td(),iF(t.current,!0),bn=l,np(),J0?t===ek?Ym++:(Ym=0,ek=t):Ym=0,wD=!1,J0=!1,Li(t);{var x=t.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function nF(e){return Vm!==null&&Vm.has(e)}function z9(e){Vm===null?Vm=new Set([e]):Vm.add(e)}function U9(e){X0||(X0=!0,vD=e)}var H9=U9;function rF(e,t,s){var l=qf(s,t),p=eA(e,l,ze),y=ap(e,p,ze),w=uo();y!==null&&(wc(y,ze,w),Io(y,w))}function yr(e,t,s){if(R5(s),dy(!1),e.tag===N){rF(e,e,s);return}var l=null;for(l=t;l!==null;){if(l.tag===N){rF(l,e,s);return}else if(l.tag===_){var p=l.type,y=l.stateNode;if(typeof p.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&!nF(y)){var w=qf(s,e),x=V2(l,w,ze),T=ap(l,x,ze),L=uo();T!==null&&(wc(T,ze,L),Io(T,L));return}}l=l.return}v(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
281
281
|
|
|
282
282
|
Error message:
|
|
283
283
|
|
|
284
|
-
%s`,s)}function
|
|
284
|
+
%s`,s)}function q9(e,t,s){var l=e.pingCache;l!==null&&l.delete(t);var p=uo();Kg(e,s),J9(e),lo===e&&kc($a,s)&&(Pa===ny||Pa===Q0&&db($a)&&gr()-gD<HA?Gf(e,De):Z0=Kt(Z0,s)),Io(e,p)}function aF(e,t){t===Tt&&(t=C9(e));var s=uo(),l=Lo(e,t);l!==null&&(wc(l,t,s),Io(l,s))}function W9(e){var t=e.memoizedState,s=Tt;t!==null&&(s=t.retryLane),aF(e,s)}function V9(e,t){var s=Tt,l;switch(e.tag){case U:l=e.stateNode;var p=e.memoizedState;p!==null&&(s=p.retryLane);break;case rt:l=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}l!==null&&l.delete(t),aF(e,s)}function Y9(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:k9(e/1960)*1960}function G9(){if(ly>D9)throw ly=0,kD=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ym>S9&&(Ym=0,ek=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Q9(){kl.flushLegacyContextWarning(),kl.flushPendingUnsafeLifecycleWarnings()}function iF(e,t){Sn(e),ok(e,Ha,h9),t&&ok(e,sl,m9),ok(e,Ha,p9),t&&ok(e,sl,f9),zn()}function ok(e,t,s){for(var l=e,p=null;l!==null;){var y=l.subtreeFlags&t;l!==p&&l.child!==null&&y!==_t?l=l.child:((l.flags&t)!==_t&&s(l),l.sibling!==null?l=l.sibling:l=p=l.return)}}var sk=null;function oF(e){{if((bn&wi)!==Fa||!(e.mode&b))return;var t=e.tag;if(t!==$&&t!==N&&t!==_&&t!==E&&t!==Y&&t!==ae&&t!==oe)return;var s=Mt(e)||"ReactComponent";if(sk!==null){if(sk.has(s))return;sk.add(s)}else sk=new Set([s]);var l=lr;try{Sn(e),v("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{l?Sn(e):zn()}}}var ED;{var K9=null;ED=function(e,t,s){var l=fF(K9,t);try{return bA(e,t,s)}catch(y){if(l6()||y!==null&&typeof y=="object"&&typeof y.then=="function")throw y;if(f0(),wT(),xA(e,t),fF(t,l),t.mode&C&&T2(t),_o(null,bA,null,e,t,s),Hg()){var p=sf();typeof p=="object"&&p!==null&&p._suppressLogging&&typeof y=="object"&&y!==null&&!y._suppressLogging&&(y._suppressLogging=!0)}throw y}}}var sF=!1,_D;_D=new Set;function Z9(e){if(Er&&!M6())switch(e.tag){case E:case Y:case oe:{var t=Mr&&Mt(Mr)||"Unknown",s=t;if(!_D.has(s)){_D.add(s);var l=Mt(e)||"Unknown";v("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",l,t,t)}break}case _:{sF||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sF=!0);break}}}function cy(e,t){if(Va){var s=e.memoizedUpdaters;s.forEach(function(l){Xg(e,l,t)})}}var TD={};function AD(e,t){{var s=Tl.current;return s!==null?(s.push(t),TD):wd(e,t)}}function lF(e){if(e!==TD)return df(e)}function uF(){return Tl.current!==null}function X9(e){{if(e.mode&b){if(!MA())return}else if(!b9()||bn!==Fa||e.tag!==E&&e.tag!==Y&&e.tag!==oe)return;if(Tl.current===null){var t=lr;try{Sn(e),v(`An update to %s inside a test was not wrapped in act(...).
|
|
285
285
|
|
|
286
286
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
287
287
|
|
|
@@ -290,7 +290,7 @@ act(() => {
|
|
|
290
290
|
});
|
|
291
291
|
/* assert on the output */
|
|
292
292
|
|
|
293
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Mt(e))}finally{t?Sn(e):zn()}}}}function
|
|
293
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Mt(e))}finally{t?Sn(e):zn()}}}}function J9(e){e.tag!==tp&&MA()&&Tl.current===null&&v(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
294
294
|
|
|
295
295
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
296
296
|
|
|
@@ -299,15 +299,15 @@ act(() => {
|
|
|
299
299
|
});
|
|
300
300
|
/* assert on the output */
|
|
301
301
|
|
|
302
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function dy(e){
|
|
302
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function dy(e){VA=e}var Hs=null,Gm=null,e7=function(e){Hs=e};function Qm(e){{if(Hs===null)return e;var t=Hs(e);return t===void 0?e:t.current}}function FD(e){return Qm(e)}function $D(e){{if(Hs===null)return e;var t=Hs(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=Qm(e.render);if(e.render!==s){var l={$$typeof:Me,render:s};return e.displayName!==void 0&&(l.displayName=e.displayName),l}}return e}return t.current}}function cF(e,t){{if(Hs===null)return!1;var s=e.elementType,l=t.type,p=!1,y=typeof l=="object"&&l!==null?l.$$typeof:null;switch(e.tag){case _:{typeof l=="function"&&(p=!0);break}case E:{(typeof l=="function"||y===$t)&&(p=!0);break}case Y:{(y===Me||y===$t)&&(p=!0);break}case ae:case oe:{(y===Jt||y===$t)&&(p=!0);break}default:return!1}if(p){var w=Hs(s);if(w!==void 0&&w===Hs(l))return!0}return!1}}function dF(e){{if(Hs===null||typeof WeakSet!="function")return;Gm===null&&(Gm=new WeakSet),Gm.add(e)}}var t7=function(e,t){{if(Hs===null)return;var s=t.staleFamilies,l=t.updatedFamilies;zc(),Mc(function(){PD(e.current,l,s)})}},n7=function(e,t){{if(e.context!==as)return;zc(),Mc(function(){py(t,e,null,null)})}};function PD(e,t,s){{var l=e.alternate,p=e.child,y=e.sibling,w=e.tag,x=e.type,T=null;switch(w){case E:case oe:case _:T=x;break;case Y:T=x.render;break}if(Hs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var L=!1,j=!1;if(T!==null){var re=Hs(T);re!==void 0&&(s.has(re)?j=!0:t.has(re)&&(w===_?j=!0:L=!0))}if(Gm!==null&&(Gm.has(e)||l!==null&&Gm.has(l))&&(j=!0),j&&(e._debugNeedsRemount=!0),j||L){var ee=Lo(e,ze);ee!==null&&Na(ee,e,ze,hr)}p!==null&&!j&&PD(p,t,s),y!==null&&PD(y,t,s)}}var r7=function(e,t){{var s=new Set,l=new Set(t.map(function(p){return p.current}));return ND(e.current,l,s),s}};function ND(e,t,s){{var l=e.child,p=e.sibling,y=e.tag,w=e.type,x=null;switch(y){case E:case oe:case _:x=w;break;case Y:x=w.render;break}var T=!1;x!==null&&t.has(x)&&(T=!0),T?a7(e,s):l!==null&&ND(l,t,s),p!==null&&ND(p,t,s)}}function a7(e,t){{var s=i7(e,t);if(s)return;for(var l=e;;){switch(l.tag){case B:t.add(l.stateNode);return;case R:t.add(l.stateNode.containerInfo);return;case N:t.add(l.stateNode.containerInfo);return}if(l.return===null)throw new Error("Expected to reach root first.");l=l.return}}}function i7(e,t){for(var s=e,l=!1;;){if(s.tag===B)l=!0,t.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return l;for(;s.sibling===null;){if(s.return===null||s.return===e)return l;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var RD;{RD=!1;try{var GU=Object.preventExtensions({})}catch{RD=!0}}function o7(e,t,s,l){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=l,this.flags=_t,this.subtreeFlags=_t,this.deletions=null,this.lanes=De,this.childLanes=De,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!RD&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var is=function(e,t,s,l){return new o7(e,t,s,l)};function OD(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function s7(e){return typeof e=="function"&&!OD(e)&&e.defaultProps===void 0}function l7(e){if(typeof e=="function")return OD(e)?_:E;if(e!=null){var t=e.$$typeof;if(t===Me)return Y;if(t===Jt)return ae}return $}function Kf(e,t){var s=e.alternate;s===null?(s=is(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=_t,s.subtreeFlags=_t,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&Xr,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var l=e.dependencies;switch(s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case $:case E:case oe:s.type=Qm(e.type);break;case _:s.type=FD(e.type);break;case Y:s.type=$D(e.type);break}return s}function u7(e,t){e.flags&=Xr|tr;var s=e.alternate;if(s===null)e.childLanes=De,e.lanes=t,e.child=null,e.subtreeFlags=_t,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=_t,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var l=s.dependencies;e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function c7(e,t,s){var l;return e===r0?(l=b,t===!0&&(l|=A,l|=I)):l=h,Va&&(l|=C),is(N,null,null,l)}function LD(e,t,s,l,p,y){var w=$,x=e;if(typeof e=="function")OD(e)?(w=_,x=FD(x)):x=Qm(x);else if(typeof e=="string")w=B;else e:switch(e){case oi:return hp(s.children,p,y,t);case wo:w=H,p|=A,(p&b)!==h&&(p|=I);break;case si:return d7(s,p,y,t);case St:return p7(s,p,y,t);case an:return f7(s,p,y,t);case Bn:return pF(s,p,y,t);case jn:case Yt:case la:case xr:case Fr:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:w=K;break e;case $e:w=ge;break e;case Me:w=Y,x=$D(x);break e;case Jt:w=ae;break e;case $t:w=Te,x=null;break e}var T="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(T+=" 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 L=l?Mt(l):null;L&&(T+=`
|
|
303
303
|
|
|
304
|
-
Check the render method of \``+L+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+T))}}var j=is(w,s,t,p);return j.elementType=e,j.type=x,j.lanes=y,j._debugOwner=l,j}function BD(e,t,s){var l=null;l=e._owner;var p=e.type,y=e.key,w=e.props,x=LD(p,y,w,l,t,s);return x._debugSource=e._source,x._debugOwner=e._owner,x}function hp(e,t,s,l){var p=is(V,e,l,t);return p.lanes=s,p}function
|
|
304
|
+
Check the render method of \``+L+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+T))}}var j=is(w,s,t,p);return j.elementType=e,j.type=x,j.lanes=y,j._debugOwner=l,j}function BD(e,t,s){var l=null;l=e._owner;var p=e.type,y=e.key,w=e.props,x=LD(p,y,w,l,t,s);return x._debugSource=e._source,x._debugOwner=e._owner,x}function hp(e,t,s,l){var p=is(V,e,l,t);return p.lanes=s,p}function d7(e,t,s,l){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var p=is(ne,e,l,t|C);return p.elementType=si,p.lanes=s,p.stateNode={effectDuration:0,passiveEffectDuration:0},p}function p7(e,t,s,l){var p=is(U,e,l,t);return p.elementType=St,p.lanes=s,p}function f7(e,t,s,l){var p=is(rt,e,l,t);return p.elementType=an,p.lanes=s,p}function pF(e,t,s,l){var p=is(Fe,e,l,t);p.elementType=Bn,p.lanes=s;var y={isHidden:!1};return p.stateNode=y,p}function jD(e,t,s){var l=is(M,e,null,t);return l.lanes=s,l}function h7(){var e=is(B,null,null,h);return e.elementType="DELETED",e}function m7(e){var t=is(Ve,null,null,h);return t.stateNode=e,t}function ID(e,t,s){var l=e.children!==null?e.children:[],p=is(R,l,e.key,t);return p.lanes=s,p.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},p}function fF(e,t){return e===null&&(e=is($,null,null,h)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function g7(e,t,s,l,p){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=kw,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Tt,this.eventTimes=nm(De),this.expirationTimes=nm(hr),this.pendingLanes=De,this.suspendedLanes=De,this.pingedLanes=De,this.expiredLanes=De,this.mutableReadLanes=De,this.finishedLanes=De,this.entangledLanes=De,this.entanglements=nm(De),this.identifierPrefix=l,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var y=this.pendingUpdatersLaneMap=[],w=0;w<st;w++)y.push(new Set)}switch(t){case r0:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case tp:this._debugRootType=s?"hydrate()":"render()";break}}function hF(e,t,s,l,p,y,w,x,T,L){var j=new g7(e,t,s,x,T),re=c7(t,y);j.current=re,re.stateNode=j;{var ee={element:l,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=ee}return Xw(re),j}var MD="18.3.1";function v7(e,t,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return va(l),{$$typeof:sa,key:l==null?null:""+l,children:e,containerInfo:t,implementation:s}}var zD,UD;zD=!1,UD={};function mF(e){if(!e)return as;var t=Ai(e),s=J8(t);if(t.tag===_){var l=t.type;if(Du(l))return H_(t,l,s)}return s}function y7(e,t){{var s=Ai(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var l=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+l)}var p=Ri(s);if(p===null)return null;if(p.mode&A){var y=Mt(s)||"Component";if(!UD[y]){UD[y]=!0;var w=lr;try{Sn(p),s.mode&A?v("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,y):v("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,y)}finally{w?Sn(w):zn()}}}return p.stateNode}}function gF(e,t,s,l,p,y,w,x){var T=!1,L=null;return hF(e,t,T,L,s,l,p,y,w)}function vF(e,t,s,l,p,y,w,x,T,L){var j=!0,re=hF(s,l,j,e,p,y,w,x,T);re.context=mF(null);var ee=re.current,de=uo(),me=pp(ee),Ce=Lc(de,me);return Ce.callback=t??null,ap(ee,Ce,me),x9(re,me,de),re}function py(e,t,s,l){mf(t,e);var p=t.current,y=uo(),w=pp(p);gf(w);var x=mF(s);t.context===null?t.context=x:t.pendingContext=x,Er&&lr!==null&&!zD&&(zD=!0,v(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
305
305
|
|
|
306
|
-
Check the render method of %s.`,Mt(lr)||"Unknown"));var T=Lc(y,w);T.payload={element:e},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l),T.callback=l);var L=ap(p,T,w);return L!==null&&(Na(L,p,w,y),y0(L,p,w)),w}function lk(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case B:return t.child.stateNode;default:return t.child.stateNode}}function
|
|
306
|
+
Check the render method of %s.`,Mt(lr)||"Unknown"));var T=Lc(y,w);T.payload={element:e},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l),T.callback=l);var L=ap(p,T,w);return L!==null&&(Na(L,p,w,y),y0(L,p,w)),w}function lk(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case B:return t.child.stateNode;default:return t.child.stateNode}}function b7(e){switch(e.tag){case N:{var t=e.stateNode;if(ea(t)){var s=Vg(t);A9(t,s)}break}case U:{Mc(function(){var p=Lo(e,ze);if(p!==null){var y=uo();Na(p,e,ze,y)}});var l=ze;HD(e,l);break}}}function yF(e,t){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=gb(s.retryLane,t))}function HD(e,t){yF(e,t);var s=e.alternate;s&&yF(s,t)}function k7(e){if(e.tag===U){var t=yf,s=Lo(e,t);if(s!==null){var l=uo();Na(s,e,t,l)}HD(e,t)}}function w7(e){if(e.tag===U){var t=pp(e),s=Lo(e,t);if(s!==null){var l=uo();Na(s,e,t,l)}HD(e,t)}}function bF(e){var t=Mh(e);return t===null?null:t.stateNode}var kF=function(e){return null};function D7(e){return kF(e)}var wF=function(e){return!1};function S7(e){return wF(e)}var DF=null,SF=null,CF=null,xF=null,EF=null,_F=null,TF=null,AF=null,FF=null;{var $F=function(e,t,s){var l=t[s],p=un(e)?e.slice():Gt({},e);return s+1===t.length?(un(p)?p.splice(l,1):delete p[l],p):(p[l]=$F(e[l],t,s+1),p)},PF=function(e,t){return $F(e,t,0)},NF=function(e,t,s,l){var p=t[l],y=un(e)?e.slice():Gt({},e);if(l+1===t.length){var w=s[l];y[w]=y[p],un(y)?y.splice(p,1):delete y[p]}else y[p]=NF(e[p],t,s,l+1);return y},RF=function(e,t,s){if(t.length!==s.length){g("copyWithRename() expects paths of the same length");return}else for(var l=0;l<s.length-1;l++)if(t[l]!==s[l]){g("copyWithRename() expects paths to be the same except for the deepest key");return}return NF(e,t,s,0)},OF=function(e,t,s,l){if(s>=t.length)return l;var p=t[s],y=un(e)?e.slice():Gt({},e);return y[p]=OF(e[p],t,s+1,l),y},LF=function(e,t,s){return OF(e,t,0,s)},qD=function(e,t){for(var s=e.memoizedState;s!==null&&t>0;)s=s.next,t--;return s};DF=function(e,t,s,l){var p=qD(e,t);if(p!==null){var y=LF(p.memoizedState,s,l);p.memoizedState=y,p.baseState=y,e.memoizedProps=Gt({},e.memoizedProps);var w=Lo(e,ze);w!==null&&Na(w,e,ze,hr)}},SF=function(e,t,s){var l=qD(e,t);if(l!==null){var p=PF(l.memoizedState,s);l.memoizedState=p,l.baseState=p,e.memoizedProps=Gt({},e.memoizedProps);var y=Lo(e,ze);y!==null&&Na(y,e,ze,hr)}},CF=function(e,t,s,l){var p=qD(e,t);if(p!==null){var y=RF(p.memoizedState,s,l);p.memoizedState=y,p.baseState=y,e.memoizedProps=Gt({},e.memoizedProps);var w=Lo(e,ze);w!==null&&Na(w,e,ze,hr)}},xF=function(e,t,s){e.pendingProps=LF(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var l=Lo(e,ze);l!==null&&Na(l,e,ze,hr)},EF=function(e,t){e.pendingProps=PF(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Lo(e,ze);s!==null&&Na(s,e,ze,hr)},_F=function(e,t,s){e.pendingProps=RF(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var l=Lo(e,ze);l!==null&&Na(l,e,ze,hr)},TF=function(e){var t=Lo(e,ze);t!==null&&Na(t,e,ze,hr)},AF=function(e){kF=e},FF=function(e){wF=e}}function C7(e){var t=Ri(e);return t===null?null:t.stateNode}function x7(e){return null}function E7(){return lr}function _7(e){var t=e.findFiberByHostInstance,s=o.ReactCurrentDispatcher;return hf({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:DF,overrideHookStateDeletePath:SF,overrideHookStateRenamePath:CF,overrideProps:xF,overridePropsDeletePath:EF,overridePropsRenamePath:_F,setErrorHandler:AF,setSuspenseHandler:FF,scheduleUpdate:TF,currentDispatcherRef:s,findHostInstanceByFiber:C7,findFiberByHostInstance:t||x7,findHostInstancesForRefresh:r7,scheduleRefresh:t7,scheduleRoot:n7,setRefreshHandler:e7,getCurrentFiber:E7,reconcilerVersion:MD})}var BF=typeof reportError=="function"?reportError:function(e){console.error(e)};function WD(e){this._internalRoot=e}uk.prototype.render=WD.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?v("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ck(arguments[1])?v("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&v("You passed a second argument to root.render(...) but it only accepts one argument.");var s=t.containerInfo;if(s.nodeType!==ur){var l=bF(t.current);l&&l.parentNode!==s&&v("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}py(e,t,null,null)},uk.prototype.unmount=WD.prototype.unmount=function(){typeof arguments[0]=="function"&&v("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;KA()&&v("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Mc(function(){py(null,e,null,null)}),j_(t)}};function T7(e,t){if(!ck(e))throw new Error("createRoot(...): Target container is not a DOM element.");jF(e);var s=!1,l=!1,p="",y=BF;t!=null&&(t.hydrate?g("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Qi&&v(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
307
307
|
|
|
308
308
|
let root = createRoot(domContainer);
|
|
309
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var w=
|
|
310
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Mo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YD,Mo.createPortal=j7,Mo.createRoot=M7,Mo.findDOMNode=N7,Mo.flushSync=U7,Mo.hydrate=R7,Mo.hydrateRoot=z7,Mo.render=O7,Mo.unmountComponentAtNode=B7,Mo.unstable_batchedUpdates=SD,Mo.unstable_renderSubtreeIntoContainer=I7,Mo.version=MD,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Mo}function LS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LS)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(LS(),bk.exports=k$()):bk.exports=w$();var BS=bk.exports,Dk,Cy=BS;if(process.env.NODE_ENV==="production")Dk=Cy.createRoot,Cy.hydrateRoot;else{var jS=Cy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Dk=function(n,r){jS.usingClientEntryPoint=!0;try{return Cy.createRoot(n,r)}finally{jS.usingClientEntryPoint=!1}}}const D$=n=>{const r=document.createElement("div"),o=Dk(r);return BS.flushSync(()=>{o.render(n)}),r.innerHTML},S$={hi:"Hei!"},C$={from:"Fra",to:"Til"},x$={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},E$={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"},_$={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."}},Ws={example:S$,generic:C$,calendar:x$,dates:E$,forms:_$};(function(){(function(n){const r=new WeakMap,o=new WeakMap,u=new WeakMap,f=new WeakMap,g=new WeakMap,v=new WeakMap,S=new WeakMap,E=new WeakMap,_=new WeakMap,$=new WeakMap,N=new WeakMap,R=new WeakMap,B=new WeakMap,M=new WeakMap,V=new WeakMap,H={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},ge=(be,Z)=>{for(let fe in H){Z[fe]=null;let Ee=null;const Ct=H[fe];Object.defineProperty(Z,fe,{get(){return Ee},set(It){Ee=It,be.isConnected?be.setAttribute(Ct,It):$.set(be,Z)}})}};function K(be){const Z=f.get(be),{form:fe}=Z;xe(be,fe,Z),Pe(be,Z.labels)}const Y=(be,Z=!1)=>{const fe=document.createTreeWalker(be,NodeFilter.SHOW_ELEMENT,{acceptNode(It){return f.has(It)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Ee=fe.nextNode();const Ct=!Z||be.disabled;for(;Ee;)Ee.formDisabledCallback&&Ct&&Ve(Ee,be.disabled),Ee=fe.nextNode()},ne={attributes:!0,attributeFilter:["disabled","name"]},U=ct()?new MutationObserver(be=>{for(const Z of be){const fe=Z.target;if(Z.attributeName==="disabled"&&(fe.constructor.formAssociated?Ve(fe,fe.hasAttribute("disabled")):fe.localName==="fieldset"&&Y(fe)),Z.attributeName==="name"&&fe.constructor.formAssociated){const Ee=f.get(fe),Ct=_.get(fe);Ee.setFormValue(Ct)}}}):{};function ae(be){be.forEach(Z=>{const{addedNodes:fe,removedNodes:Ee}=Z,Ct=Array.from(fe),It=Array.from(Ee);Ct.forEach(Ae=>{var Je;if(f.has(Ae)&&Ae.constructor.formAssociated&&K(Ae),$.has(Ae)){const at=$.get(Ae);Object.keys(H).filter(Ht=>at[Ht]!==null).forEach(Ht=>{Ae.setAttribute(H[Ht],at[Ht])}),$.delete(Ae)}if(V.has(Ae)){const at=V.get(Ae);Ae.setAttribute("internals-valid",at.validity.valid.toString()),Ae.setAttribute("internals-invalid",(!at.validity.valid).toString()),Ae.setAttribute("aria-invalid",(!at.validity.valid).toString()),V.delete(Ae)}if(Ae.localName==="form"){const at=E.get(Ae),Ht=document.createTreeWalker(Ae,NodeFilter.SHOW_ELEMENT,{acceptNode(Mn){return f.has(Mn)&&Mn.constructor.formAssociated&&!(at&&at.has(Mn))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let wn=Ht.nextNode();for(;wn;)K(wn),wn=Ht.nextNode()}Ae.localName==="fieldset"&&((Je=U.observe)===null||Je===void 0||Je.call(U,Ae,ne),Y(Ae,!0))}),It.forEach(Ae=>{const Je=f.get(Ae);Je&&u.get(Je)&&rt(Je),S.has(Ae)&&S.get(Ae).disconnect()})})}function oe(be){be.forEach(Z=>{const{removedNodes:fe}=Z;fe.forEach(Ee=>{const Ct=B.get(Z.target);f.has(Ee)&&ut(Ee),Ct.disconnect()})})}const Te=be=>{var Z,fe;const Ee=new MutationObserver(oe);!((Z=window==null?void 0:window.ShadyDOM)===null||Z===void 0)&&Z.inUse&&be.mode&&be.host&&(be=be.host),(fe=Ee.observe)===null||fe===void 0||fe.call(Ee,be,{childList:!0}),B.set(be,Ee)};ct()&&new MutationObserver(ae);const ye={childList:!0,subtree:!0},Ve=(be,Z)=>{be.toggleAttribute("internals-disabled",Z),Z?be.setAttribute("aria-disabled","true"):be.removeAttribute("aria-disabled"),be.formDisabledCallback&&be.formDisabledCallback.apply(be,[Z])},rt=be=>{u.get(be).forEach(Z=>{Z.remove()}),u.set(be,[])},Ye=(be,Z)=>{const fe=document.createElement("input");return fe.type="hidden",fe.name=be.getAttribute("name"),be.after(fe),u.get(Z).push(fe),fe},Fe=(be,Z)=>{var fe;u.set(Z,[]),(fe=U.observe)===null||fe===void 0||fe.call(U,be,ne)},Pe=(be,Z)=>{if(Z.length){Array.from(Z).forEach(Ee=>Ee.addEventListener("click",be.click.bind(be)));let fe=Z[0].id;Z[0].id||(fe=`${Z[0].htmlFor}_Label`,Z[0].id=fe),be.setAttribute("aria-labelledby",fe)}},Ze=be=>{const Z=Array.from(be.elements).filter(It=>!It.tagName.includes("-")&&It.validity).map(It=>It.validity.valid),fe=E.get(be)||[],Ee=Array.from(fe).filter(It=>It.isConnected).map(It=>f.get(It).validity.valid),Ct=[...Z,...Ee].includes(!1);be.toggleAttribute("internals-invalid",Ct),be.toggleAttribute("internals-valid",!Ct)},Ne=be=>{Ze(G(be.target))},Be=be=>{Ze(G(be.target))},ve=be=>{const Z=["button[type=submit]","input[type=submit]","button:not([type])"].map(fe=>`${fe}:not([disabled])`).map(fe=>`${fe}:not([form])${be.id?`,${fe}[form='${be.id}']`:""}`).join(",");be.addEventListener("click",fe=>{if(fe.target.closest(Z)){const Ee=E.get(be);if(be.noValidate)return;Ee.size&&Array.from(Ee).reverse().map(Ct=>f.get(Ct).reportValidity()).includes(!1)&&fe.preventDefault()}})},Re=be=>{const Z=E.get(be.target);Z&&Z.size&&Z.forEach(fe=>{fe.constructor.formAssociated&&fe.formResetCallback&&fe.formResetCallback.apply(fe)})},xe=(be,Z,fe)=>{if(Z){const Ee=E.get(Z);if(Ee)Ee.add(be);else{const Ct=new Set;Ct.add(be),E.set(Z,Ct),ve(Z),Z.addEventListener("reset",Re),Z.addEventListener("input",Ne),Z.addEventListener("change",Be)}v.set(Z,{ref:be,internals:fe}),be.constructor.formAssociated&&be.formAssociatedCallback&&setTimeout(()=>{be.formAssociatedCallback.apply(be,[Z])},0),Ze(Z)}},G=be=>{let Z=be.parentNode;return Z&&Z.tagName!=="FORM"&&(Z=G(Z)),Z},ce=(be,Z,fe=DOMException)=>{if(!be.constructor.formAssociated)throw new fe(Z)},gt=(be,Z,fe)=>{const Ee=E.get(be);return Ee&&Ee.size&&Ee.forEach(Ct=>{f.get(Ct)[fe]()||(Z=!1)}),Z},ut=be=>{if(be.constructor.formAssociated){const Z=f.get(be),{labels:fe,form:Ee}=Z;Pe(be,fe),xe(be,Ee,Z)}};function ct(){return typeof MutationObserver<"u"}class vt{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const it=be=>(be.badInput=!1,be.customError=!1,be.patternMismatch=!1,be.rangeOverflow=!1,be.rangeUnderflow=!1,be.stepMismatch=!1,be.tooLong=!1,be.tooShort=!1,be.typeMismatch=!1,be.valid=!0,be.valueMissing=!1,be),Rt=(be,Z,fe)=>(be.valid=Lt(Z),Object.keys(Z).forEach(Ee=>be[Ee]=Z[Ee]),fe&&Ze(fe),be),Lt=be=>{let Z=!0;for(let fe in be)fe!=="valid"&&be[fe]!==!1&&(Z=!1);return Z},sn=new WeakMap;function Fn(be,Z){be.toggleAttribute(Z,!0),be.part&&be.part.add(Z)}class br extends Set{static get isPolyfilled(){return!0}constructor(Z){if(super(),!Z||!Z.tagName||Z.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");sn.set(this,Z)}add(Z){if(!/^--/.test(Z)||typeof Z!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${Z} must start with '--'.`);const fe=super.add(Z),Ee=sn.get(this),Ct=`state${Z}`;return Ee.isConnected?Fn(Ee,Ct):setTimeout(()=>{Fn(Ee,Ct)}),fe}clear(){for(let[Z]of this.entries())this.delete(Z);super.clear()}delete(Z){const fe=super.delete(Z),Ee=sn.get(this);return Ee.isConnected?(Ee.toggleAttribute(`state${Z}`,!1),Ee.part&&Ee.part.remove(`state${Z}`)):setTimeout(()=>{Ee.toggleAttribute(`state${Z}`,!1),Ee.part&&Ee.part.remove(`state${Z}`)}),fe}}function nn(be,Z,fe,Ee){if(fe==="a"&&!Ee)throw new TypeError("Private accessor was defined without a getter");if(typeof Z=="function"?be!==Z||!Ee:!Z.has(be))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?Ee:fe==="a"?Ee.call(be):Ee?Ee.value:Z.get(be)}function ot(be,Z,fe,Ee,Ct){if(typeof Z=="function"?be!==Z||!Ct:!Z.has(be))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Z.set(be,fe),fe}var Ln;class Ut{constructor(Z){Ln.set(this,void 0),ot(this,Ln,Z);for(let fe=0;fe<Z.length;fe++){let Ee=Z[fe];this[fe]=Ee,Ee.hasAttribute("name")&&(this[Ee.getAttribute("name")]=Ee)}Object.freeze(this)}get length(){return nn(this,Ln,"f").length}[(Ln=new WeakMap,Symbol.iterator)](){return nn(this,Ln,"f")[Symbol.iterator]()}item(Z){return this[Z]==null?null:this[Z]}namedItem(Z){return this[Z]==null?null:this[Z]}}function Zt(){const be=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=fe;const Z=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=Ee;function fe(...It){let Ae=be.apply(this,It);return gt(this,Ae,"checkValidity")}function Ee(...It){let Ae=Z.apply(this,It);return gt(this,Ae,"reportValidity")}const{get:Ct}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...It){const Ae=Ct.call(this,...It),Je=Array.from(E.get(this)||[]);if(Je.length===0)return Ae;const at=Array.from(Ae).concat(Je).sort((Ht,wn)=>Ht.compareDocumentPosition?Ht.compareDocumentPosition(wn)&2?1:-1:0);return new Ut(at)}})}class Xt{static get isPolyfilled(){return!0}constructor(Z){if(!Z||!Z.tagName||Z.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const fe=Z.getRootNode(),Ee=new vt;this.states=new br(Z),r.set(this,Z),o.set(this,Ee),f.set(Z,this),ge(Z,this),Fe(Z,this),Object.seal(this),fe instanceof DocumentFragment&&Te(fe)}checkValidity(){const Z=r.get(this);if(ce(Z,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const fe=o.get(this);if(!fe.valid){const Ee=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});Z.dispatchEvent(Ee)}return fe.valid}get form(){const Z=r.get(this);ce(Z,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let fe;return Z.constructor.formAssociated===!0&&(fe=G(Z)),fe}get labels(){const Z=r.get(this);ce(Z,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const fe=Z.getAttribute("id"),Ee=Z.getRootNode();return Ee&&fe?Ee.querySelectorAll(`[for="${fe}"]`):[]}reportValidity(){const Z=r.get(this);if(ce(Z,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const fe=this.checkValidity(),Ee=R.get(this);if(Ee&&!Z.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!fe&&Ee&&(Z.focus(),Ee.focus()),fe}setFormValue(Z){const fe=r.get(this);if(ce(fe,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),rt(this),Z!=null&&!(Z instanceof FormData)){if(fe.getAttribute("name")){const Ee=Ye(fe,this);Ee.value=Z}}else Z!=null&&Z instanceof FormData&&Array.from(Z).reverse().forEach(([Ee,Ct])=>{if(typeof Ct=="string"){const It=Ye(fe,this);It.name=Ee,It.value=Ct}});_.set(fe,Z)}setValidity(Z,fe,Ee){const Ct=r.get(this);if(ce(Ct,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!Z)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");R.set(this,Ee);const It=o.get(this),Ae={};for(const Ht in Z)Ae[Ht]=Z[Ht];Object.keys(Ae).length===0&&it(It);const Je=Object.assign(Object.assign({},It),Ae);delete Je.valid;const{valid:at}=Rt(It,Je,this.form);if(!at&&!fe)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");g.set(this,at?"":fe),Ct.isConnected?(Ct.toggleAttribute("internals-invalid",!at),Ct.toggleAttribute("internals-valid",at),Ct.setAttribute("aria-invalid",`${!at}`)):V.set(Ct,this)}get shadowRoot(){const Z=r.get(this);return N.get(Z)||null}get validationMessage(){const Z=r.get(this);return ce(Z,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),g.get(this)}get validity(){const Z=r.get(this);return ce(Z,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get willValidate(){const Z=r.get(this);return ce(Z,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(Z.disabled||Z.hasAttribute("disabled")||Z.hasAttribute("readonly"))}}function va(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class be extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const Z=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(Z,be);const fe=new be;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(Ee=>Ee in fe.internals)}let Yn=!1,Cr=!1;function ar(be){Cr||(Cr=!0,window.CustomStateSet=br,be&&(HTMLElement.prototype.attachInternals=function(...Z){const fe=be.call(this,Z);return fe.states=new br(this),fe}))}function qr(be=!0){if(!Yn){if(Yn=!0,typeof window<"u"&&(window.ElementInternals=Xt),typeof CustomElementRegistry<"u"){const Z=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(fe,Ee,Ct){if(Ee.formAssociated){const It=Ee.prototype.connectedCallback;Ee.prototype.connectedCallback=function(){M.has(this)||(M.set(this,!0),this.hasAttribute("disabled")&&Ve(this,!0)),It!=null&&It.apply(this),ut(this)}}Z.call(this,fe,Ee,Ct)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(f.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Xt(this)}),typeof Element<"u"){let Z=function(...Ee){const Ct=fe.apply(this,Ee);if(N.set(this,Ct),ct()){const It=new MutationObserver(ae);window.ShadyDOM?It.observe(this,ye):It.observe(Ct,ye),S.set(this,It)}return Ct};const fe=Element.prototype.attachShadow;Element.prototype.attachShadow=Z}ct()&&typeof document<"u"&&new MutationObserver(ae).observe(document.documentElement,ye),typeof HTMLFormElement<"u"&&Zt(),(be||typeof window<"u"&&!window.CustomStateSet)&&ar()}}return customElements.polyfillWrapFlushCallback||(va()?typeof window<"u"&&!window.CustomStateSet&&ar(HTMLElement.prototype.attachInternals):qr(!1)),n.forceCustomStateSetPolyfill=ar,n.forceElementInternalsPolyfill=qr,Object.defineProperty(n,"__esModule",{value:!0}),n})({})})();var T$=Object.defineProperty,IS=(n,r,o,u)=>{for(var f=void 0,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=v(r,o,f)||f);return f&&T$(r,o,f),f};class ti extends og{constructor(){super(),this.strings=Ws,this.role=null}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}update(r){r.forEach((o,u)=>{typeof u=="string"&&this[u]&&typeof this[u]=="object"&&this[u].$$typeof&&(this[u]=D$(this[u]))}),super.update(r)}}IS([X({type:Object})],ti.prototype,"strings"),IS([X({type:String})],ti.prototype,"role");/**
|
|
309
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var w=gF(e,r0,null,s,l,p,y);Kb(w.current,e);var x=e.nodeType===ur?e.parentNode:e;return bv(x),new WD(w)}function uk(e){this._internalRoot=e}function A7(e){e&&Cb(e)}uk.prototype.unstable_scheduleHydration=A7;function F7(e,t,s){if(!ck(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");jF(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var l=s??null,p=s!=null&&s.hydratedSources||null,y=!1,w=!1,x="",T=BF;s!=null&&(s.unstable_strictMode===!0&&(y=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(T=s.onRecoverableError));var L=vF(t,null,e,r0,l,y,w,x,T);if(Kb(L.current,e),bv(e),p)for(var j=0;j<p.length;j++){var re=p[j];R6(L,re)}return new uk(L)}function ck(e){return!!(e&&(e.nodeType===wa||e.nodeType===Sa||e.nodeType===Co||!ce))}function fy(e){return!!(e&&(e.nodeType===wa||e.nodeType===Sa||e.nodeType===Co||e.nodeType===ur&&e.nodeValue===" react-mount-point-unstable "))}function jF(e){e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Fv(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var $7=o.ReactCurrentOwner,IF;IF=function(e){if(e._reactRootContainer&&e.nodeType!==ur){var t=bF(e._reactRootContainer.current);t&&t.parentNode!==e&&v("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,l=VD(e),p=!!(l&&Jd(l));p&&!s&&v("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===wa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function VD(e){return e?e.nodeType===Sa?e.documentElement:e.firstChild:null}function MF(){}function P7(e,t,s,l,p){if(p){if(typeof l=="function"){var y=l;l=function(){var ee=lk(w);y.call(ee)}}var w=vF(t,l,e,tp,null,!1,!1,"",MF);e._reactRootContainer=w,Kb(w.current,e);var x=e.nodeType===ur?e.parentNode:e;return bv(x),Mc(),w}else{for(var T;T=e.lastChild;)e.removeChild(T);if(typeof l=="function"){var L=l;l=function(){var ee=lk(j);L.call(ee)}}var j=gF(e,tp,null,!1,!1,"",MF);e._reactRootContainer=j,Kb(j.current,e);var re=e.nodeType===ur?e.parentNode:e;return bv(re),Mc(function(){py(t,j,s,l)}),j}}function N7(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function dk(e,t,s,l,p){IF(s),N7(p===void 0?null:p,"render");var y=s._reactRootContainer,w;if(!y)w=P7(s,t,e,p,l);else{if(w=y,typeof p=="function"){var x=p;p=function(){var T=lk(w);x.call(T)}}py(t,w,e,p)}return lk(w)}var zF=!1;function R7(e){{zF||(zF=!0,v("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=$7.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||v("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",ln(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===wa?e:y7(e,"findDOMNode")}function O7(e,t,s){if(v("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!fy(t))throw new Error("Target container is not a DOM element.");{var l=Fv(t)&&t._reactRootContainer===void 0;l&&v("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return dk(null,e,t,!0,s)}function L7(e,t,s){if(v("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!fy(t))throw new Error("Target container is not a DOM element.");{var l=Fv(t)&&t._reactRootContainer===void 0;l&&v("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return dk(null,e,t,!1,s)}function B7(e,t,s,l){if(v("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!fy(s))throw new Error("Target container is not a DOM element.");if(e==null||!uc(e))throw new Error("parentComponent must be a valid React Component");return dk(e,t,s,!1,l)}var UF=!1;function j7(e){if(UF||(UF=!0,v("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!fy(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=Fv(e)&&e._reactRootContainer===void 0;t&&v("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=VD(e),l=s&&!Jd(s);l&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Mc(function(){dk(null,null,e,!1,function(){e._reactRootContainer=null,j_(e)})}),!0}else{{var p=VD(e),y=!!(p&&Jd(p)),w=e.nodeType===wa&&fy(e.parentNode)&&!!e.parentNode._reactRootContainer;y&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",w?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}mt(b7),yb(k7),xf(w7),tv($o),kb(Sf),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&v("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),jh(MM),sc(SD,F9,Mc);function I7(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ck(t))throw new Error("Target container is not a DOM element.");return v7(e,t,null,s)}function M7(e,t,s,l){return B7(e,t,s,l)}var YD={usingClientEntryPoint:!1,Events:[Jd,Em,Zb,md,oc,SD]};function z7(e,t){return YD.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),T7(e,t)}function U7(e,t,s){return YD.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),F7(e,t,s)}function H7(e){return KA()&&v("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Mc(e)}var q7=_7({findFiberByHostInstance:Of,bundleType:1,version:MD,rendererPackageName:"react-dom"});if(!q7&&nn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HF=window.location.protocol;/^(https?|file):$/.test(HF)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HF==="file:"?`
|
|
310
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Mo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YD,Mo.createPortal=I7,Mo.createRoot=z7,Mo.findDOMNode=R7,Mo.flushSync=H7,Mo.hydrate=O7,Mo.hydrateRoot=U7,Mo.render=L7,Mo.unmountComponentAtNode=j7,Mo.unstable_batchedUpdates=SD,Mo.unstable_renderSubtreeIntoContainer=M7,Mo.version=MD,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Mo}function LS(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LS)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(LS(),bk.exports=w$()):bk.exports=D$();var BS=bk.exports,Dk,Cy=BS;if(process.env.NODE_ENV==="production")Dk=Cy.createRoot,Cy.hydrateRoot;else{var jS=Cy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Dk=function(n,r){jS.usingClientEntryPoint=!0;try{return Cy.createRoot(n,r)}finally{jS.usingClientEntryPoint=!1}}}const S$=n=>{const r=document.createElement("div"),o=Dk(r);return BS.flushSync(()=>{o.render(n)}),r.innerHTML},C$={hi:"Hei!"},x$={from:"Fra",to:"Til"},E$={buttonAltText:"Åpne kalender",deleteDate:"Fjern dato"},_$={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"},T$={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."}},Ws={example:C$,generic:x$,calendar:E$,dates:_$,forms:T$};(function(){(function(n){const r=new WeakMap,o=new WeakMap,u=new WeakMap,f=new WeakMap,g=new WeakMap,v=new WeakMap,S=new WeakMap,E=new WeakMap,_=new WeakMap,$=new WeakMap,N=new WeakMap,R=new WeakMap,B=new WeakMap,M=new WeakMap,V=new WeakMap,H={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},ge=(be,Z)=>{for(let fe in H){Z[fe]=null;let Ee=null;const Ct=H[fe];Object.defineProperty(Z,fe,{get(){return Ee},set(It){Ee=It,be.isConnected?be.setAttribute(Ct,It):$.set(be,Z)}})}};function K(be){const Z=f.get(be),{form:fe}=Z;xe(be,fe,Z),Pe(be,Z.labels)}const Y=(be,Z=!1)=>{const fe=document.createTreeWalker(be,NodeFilter.SHOW_ELEMENT,{acceptNode(It){return f.has(It)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let Ee=fe.nextNode();const Ct=!Z||be.disabled;for(;Ee;)Ee.formDisabledCallback&&Ct&&Ve(Ee,be.disabled),Ee=fe.nextNode()},ne={attributes:!0,attributeFilter:["disabled","name"]},U=ct()?new MutationObserver(be=>{for(const Z of be){const fe=Z.target;if(Z.attributeName==="disabled"&&(fe.constructor.formAssociated?Ve(fe,fe.hasAttribute("disabled")):fe.localName==="fieldset"&&Y(fe)),Z.attributeName==="name"&&fe.constructor.formAssociated){const Ee=f.get(fe),Ct=_.get(fe);Ee.setFormValue(Ct)}}}):{};function ae(be){be.forEach(Z=>{const{addedNodes:fe,removedNodes:Ee}=Z,Ct=Array.from(fe),It=Array.from(Ee);Ct.forEach(Ae=>{var Je;if(f.has(Ae)&&Ae.constructor.formAssociated&&K(Ae),$.has(Ae)){const at=$.get(Ae);Object.keys(H).filter(Ht=>at[Ht]!==null).forEach(Ht=>{Ae.setAttribute(H[Ht],at[Ht])}),$.delete(Ae)}if(V.has(Ae)){const at=V.get(Ae);Ae.setAttribute("internals-valid",at.validity.valid.toString()),Ae.setAttribute("internals-invalid",(!at.validity.valid).toString()),Ae.setAttribute("aria-invalid",(!at.validity.valid).toString()),V.delete(Ae)}if(Ae.localName==="form"){const at=E.get(Ae),Ht=document.createTreeWalker(Ae,NodeFilter.SHOW_ELEMENT,{acceptNode(Mn){return f.has(Mn)&&Mn.constructor.formAssociated&&!(at&&at.has(Mn))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let wn=Ht.nextNode();for(;wn;)K(wn),wn=Ht.nextNode()}Ae.localName==="fieldset"&&((Je=U.observe)===null||Je===void 0||Je.call(U,Ae,ne),Y(Ae,!0))}),It.forEach(Ae=>{const Je=f.get(Ae);Je&&u.get(Je)&&rt(Je),S.has(Ae)&&S.get(Ae).disconnect()})})}function oe(be){be.forEach(Z=>{const{removedNodes:fe}=Z;fe.forEach(Ee=>{const Ct=B.get(Z.target);f.has(Ee)&&ut(Ee),Ct.disconnect()})})}const Te=be=>{var Z,fe;const Ee=new MutationObserver(oe);!((Z=window==null?void 0:window.ShadyDOM)===null||Z===void 0)&&Z.inUse&&be.mode&&be.host&&(be=be.host),(fe=Ee.observe)===null||fe===void 0||fe.call(Ee,be,{childList:!0}),B.set(be,Ee)};ct()&&new MutationObserver(ae);const ye={childList:!0,subtree:!0},Ve=(be,Z)=>{be.toggleAttribute("internals-disabled",Z),Z?be.setAttribute("aria-disabled","true"):be.removeAttribute("aria-disabled"),be.formDisabledCallback&&be.formDisabledCallback.apply(be,[Z])},rt=be=>{u.get(be).forEach(Z=>{Z.remove()}),u.set(be,[])},Ye=(be,Z)=>{const fe=document.createElement("input");return fe.type="hidden",fe.name=be.getAttribute("name"),be.after(fe),u.get(Z).push(fe),fe},Fe=(be,Z)=>{var fe;u.set(Z,[]),(fe=U.observe)===null||fe===void 0||fe.call(U,be,ne)},Pe=(be,Z)=>{if(Z.length){Array.from(Z).forEach(Ee=>Ee.addEventListener("click",be.click.bind(be)));let fe=Z[0].id;Z[0].id||(fe=`${Z[0].htmlFor}_Label`,Z[0].id=fe),be.setAttribute("aria-labelledby",fe)}},Ze=be=>{const Z=Array.from(be.elements).filter(It=>!It.tagName.includes("-")&&It.validity).map(It=>It.validity.valid),fe=E.get(be)||[],Ee=Array.from(fe).filter(It=>It.isConnected).map(It=>f.get(It).validity.valid),Ct=[...Z,...Ee].includes(!1);be.toggleAttribute("internals-invalid",Ct),be.toggleAttribute("internals-valid",!Ct)},Ne=be=>{Ze(G(be.target))},Be=be=>{Ze(G(be.target))},ve=be=>{const Z=["button[type=submit]","input[type=submit]","button:not([type])"].map(fe=>`${fe}:not([disabled])`).map(fe=>`${fe}:not([form])${be.id?`,${fe}[form='${be.id}']`:""}`).join(",");be.addEventListener("click",fe=>{if(fe.target.closest(Z)){const Ee=E.get(be);if(be.noValidate)return;Ee.size&&Array.from(Ee).reverse().map(Ct=>f.get(Ct).reportValidity()).includes(!1)&&fe.preventDefault()}})},Re=be=>{const Z=E.get(be.target);Z&&Z.size&&Z.forEach(fe=>{fe.constructor.formAssociated&&fe.formResetCallback&&fe.formResetCallback.apply(fe)})},xe=(be,Z,fe)=>{if(Z){const Ee=E.get(Z);if(Ee)Ee.add(be);else{const Ct=new Set;Ct.add(be),E.set(Z,Ct),ve(Z),Z.addEventListener("reset",Re),Z.addEventListener("input",Ne),Z.addEventListener("change",Be)}v.set(Z,{ref:be,internals:fe}),be.constructor.formAssociated&&be.formAssociatedCallback&&setTimeout(()=>{be.formAssociatedCallback.apply(be,[Z])},0),Ze(Z)}},G=be=>{let Z=be.parentNode;return Z&&Z.tagName!=="FORM"&&(Z=G(Z)),Z},ce=(be,Z,fe=DOMException)=>{if(!be.constructor.formAssociated)throw new fe(Z)},gt=(be,Z,fe)=>{const Ee=E.get(be);return Ee&&Ee.size&&Ee.forEach(Ct=>{f.get(Ct)[fe]()||(Z=!1)}),Z},ut=be=>{if(be.constructor.formAssociated){const Z=f.get(be),{labels:fe,form:Ee}=Z;Pe(be,fe),xe(be,Ee,Z)}};function ct(){return typeof MutationObserver<"u"}class vt{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const it=be=>(be.badInput=!1,be.customError=!1,be.patternMismatch=!1,be.rangeOverflow=!1,be.rangeUnderflow=!1,be.stepMismatch=!1,be.tooLong=!1,be.tooShort=!1,be.typeMismatch=!1,be.valid=!0,be.valueMissing=!1,be),Rt=(be,Z,fe)=>(be.valid=Lt(Z),Object.keys(Z).forEach(Ee=>be[Ee]=Z[Ee]),fe&&Ze(fe),be),Lt=be=>{let Z=!0;for(let fe in be)fe!=="valid"&&be[fe]!==!1&&(Z=!1);return Z},sn=new WeakMap;function Fn(be,Z){be.toggleAttribute(Z,!0),be.part&&be.part.add(Z)}class br extends Set{static get isPolyfilled(){return!0}constructor(Z){if(super(),!Z||!Z.tagName||Z.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");sn.set(this,Z)}add(Z){if(!/^--/.test(Z)||typeof Z!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${Z} must start with '--'.`);const fe=super.add(Z),Ee=sn.get(this),Ct=`state${Z}`;return Ee.isConnected?Fn(Ee,Ct):setTimeout(()=>{Fn(Ee,Ct)}),fe}clear(){for(let[Z]of this.entries())this.delete(Z);super.clear()}delete(Z){const fe=super.delete(Z),Ee=sn.get(this);return Ee.isConnected?(Ee.toggleAttribute(`state${Z}`,!1),Ee.part&&Ee.part.remove(`state${Z}`)):setTimeout(()=>{Ee.toggleAttribute(`state${Z}`,!1),Ee.part&&Ee.part.remove(`state${Z}`)}),fe}}function nn(be,Z,fe,Ee){if(fe==="a"&&!Ee)throw new TypeError("Private accessor was defined without a getter");if(typeof Z=="function"?be!==Z||!Ee:!Z.has(be))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?Ee:fe==="a"?Ee.call(be):Ee?Ee.value:Z.get(be)}function ot(be,Z,fe,Ee,Ct){if(typeof Z=="function"?be!==Z||!Ct:!Z.has(be))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Z.set(be,fe),fe}var Ln;class Ut{constructor(Z){Ln.set(this,void 0),ot(this,Ln,Z);for(let fe=0;fe<Z.length;fe++){let Ee=Z[fe];this[fe]=Ee,Ee.hasAttribute("name")&&(this[Ee.getAttribute("name")]=Ee)}Object.freeze(this)}get length(){return nn(this,Ln,"f").length}[(Ln=new WeakMap,Symbol.iterator)](){return nn(this,Ln,"f")[Symbol.iterator]()}item(Z){return this[Z]==null?null:this[Z]}namedItem(Z){return this[Z]==null?null:this[Z]}}function Zt(){const be=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=fe;const Z=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=Ee;function fe(...It){let Ae=be.apply(this,It);return gt(this,Ae,"checkValidity")}function Ee(...It){let Ae=Z.apply(this,It);return gt(this,Ae,"reportValidity")}const{get:Ct}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...It){const Ae=Ct.call(this,...It),Je=Array.from(E.get(this)||[]);if(Je.length===0)return Ae;const at=Array.from(Ae).concat(Je).sort((Ht,wn)=>Ht.compareDocumentPosition?Ht.compareDocumentPosition(wn)&2?1:-1:0);return new Ut(at)}})}class Xt{static get isPolyfilled(){return!0}constructor(Z){if(!Z||!Z.tagName||Z.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const fe=Z.getRootNode(),Ee=new vt;this.states=new br(Z),r.set(this,Z),o.set(this,Ee),f.set(Z,this),ge(Z,this),Fe(Z,this),Object.seal(this),fe instanceof DocumentFragment&&Te(fe)}checkValidity(){const Z=r.get(this);if(ce(Z,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const fe=o.get(this);if(!fe.valid){const Ee=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});Z.dispatchEvent(Ee)}return fe.valid}get form(){const Z=r.get(this);ce(Z,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let fe;return Z.constructor.formAssociated===!0&&(fe=G(Z)),fe}get labels(){const Z=r.get(this);ce(Z,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const fe=Z.getAttribute("id"),Ee=Z.getRootNode();return Ee&&fe?Ee.querySelectorAll(`[for="${fe}"]`):[]}reportValidity(){const Z=r.get(this);if(ce(Z,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const fe=this.checkValidity(),Ee=R.get(this);if(Ee&&!Z.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!fe&&Ee&&(Z.focus(),Ee.focus()),fe}setFormValue(Z){const fe=r.get(this);if(ce(fe,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),rt(this),Z!=null&&!(Z instanceof FormData)){if(fe.getAttribute("name")){const Ee=Ye(fe,this);Ee.value=Z}}else Z!=null&&Z instanceof FormData&&Array.from(Z).reverse().forEach(([Ee,Ct])=>{if(typeof Ct=="string"){const It=Ye(fe,this);It.name=Ee,It.value=Ct}});_.set(fe,Z)}setValidity(Z,fe,Ee){const Ct=r.get(this);if(ce(Ct,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!Z)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");R.set(this,Ee);const It=o.get(this),Ae={};for(const Ht in Z)Ae[Ht]=Z[Ht];Object.keys(Ae).length===0&&it(It);const Je=Object.assign(Object.assign({},It),Ae);delete Je.valid;const{valid:at}=Rt(It,Je,this.form);if(!at&&!fe)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");g.set(this,at?"":fe),Ct.isConnected?(Ct.toggleAttribute("internals-invalid",!at),Ct.toggleAttribute("internals-valid",at),Ct.setAttribute("aria-invalid",`${!at}`)):V.set(Ct,this)}get shadowRoot(){const Z=r.get(this);return N.get(Z)||null}get validationMessage(){const Z=r.get(this);return ce(Z,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),g.get(this)}get validity(){const Z=r.get(this);return ce(Z,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),o.get(this)}get willValidate(){const Z=r.get(this);return ce(Z,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(Z.disabled||Z.hasAttribute("disabled")||Z.hasAttribute("readonly"))}}function va(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class be extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const Z=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(Z,be);const fe=new be;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(Ee=>Ee in fe.internals)}let Yn=!1,Cr=!1;function ar(be){Cr||(Cr=!0,window.CustomStateSet=br,be&&(HTMLElement.prototype.attachInternals=function(...Z){const fe=be.call(this,Z);return fe.states=new br(this),fe}))}function qr(be=!0){if(!Yn){if(Yn=!0,typeof window<"u"&&(window.ElementInternals=Xt),typeof CustomElementRegistry<"u"){const Z=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(fe,Ee,Ct){if(Ee.formAssociated){const It=Ee.prototype.connectedCallback;Ee.prototype.connectedCallback=function(){M.has(this)||(M.set(this,!0),this.hasAttribute("disabled")&&Ve(this,!0)),It!=null&&It.apply(this),ut(this)}}Z.call(this,fe,Ee,Ct)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(f.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Xt(this)}),typeof Element<"u"){let Z=function(...Ee){const Ct=fe.apply(this,Ee);if(N.set(this,Ct),ct()){const It=new MutationObserver(ae);window.ShadyDOM?It.observe(this,ye):It.observe(Ct,ye),S.set(this,It)}return Ct};const fe=Element.prototype.attachShadow;Element.prototype.attachShadow=Z}ct()&&typeof document<"u"&&new MutationObserver(ae).observe(document.documentElement,ye),typeof HTMLFormElement<"u"&&Zt(),(be||typeof window<"u"&&!window.CustomStateSet)&&ar()}}return customElements.polyfillWrapFlushCallback||(va()?typeof window<"u"&&!window.CustomStateSet&&ar(HTMLElement.prototype.attachInternals):qr(!1)),n.forceCustomStateSetPolyfill=ar,n.forceElementInternalsPolyfill=qr,Object.defineProperty(n,"__esModule",{value:!0}),n})({})})();var A$=Object.defineProperty,IS=(n,r,o,u)=>{for(var f=void 0,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=v(r,o,f)||f);return f&&A$(r,o,f),f};class ti extends og{constructor(){super(),this.strings=Ws,this.role=null}connectedCallback(){super.connectedCallback()}createRenderRoot(){return this}hotReplacedCallback(){this.requestUpdate()}update(r){r.forEach((o,u)=>{typeof u=="string"&&this[u]&&typeof this[u]=="object"&&this[u].$$typeof&&(this[u]=S$(this[u]))}),super.update(r)}}IS([X({type:Object})],ti.prototype,"strings"),IS([X({type:String})],ti.prototype,"role");/**
|
|
311
311
|
* @license
|
|
312
312
|
* Copyright 2018 Google LLC
|
|
313
313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -315,19 +315,19 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
315
315
|
* @license
|
|
316
316
|
* Copyright 2017 Google LLC
|
|
317
317
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
318
|
-
*/function zr(n){return X({...n,state:!0,attribute:!1})}function MS(n,r){return r.some(o=>o.value===n)}function
|
|
318
|
+
*/function zr(n){return X({...n,state:!0,attribute:!1})}function MS(n,r){return r.some(o=>o.value===n)}function F$(n,r){var o;return n.hasAttribute("data-skip")?[]:n===((o=r.value)==null?void 0:o.parentNode)?[]:n instanceof HTMLTemplateElement?Array.from(n.content.childNodes):[n]}function Sk(n){return typeof n.hasAttribute=="function"&&n.hasAttribute("data-skip")}function sg(n){return n.nodeName==="OPTION"||n.nodeName==="DATA"}function $$(n,r){return n.nodeType===Node.ELEMENT_NODE&&!MS(n,r)}function P$(n){var r;return n.nodeType===Node.TEXT_NODE&&((r=n.nodeValue)==null?void 0:r.trim())!==""}let Wi=class{constructor(r,...o){this.nodes=[],this.filledSlots=new Set,this.skipOptions=!1,this.updatingSlots=!1,this.host=r,this.host.addController(this),this.slots=o,this.nodes=[],this.observer=new MutationObserver(u=>this.handleMutations(u))}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(r=>{var o;if(!Sk(r)&&!(sg(r)&&this.skipOptions))if(r.nodeType===Node.TEXT_NODE&&(o=r.nodeValue)!=null&&o.trim()){const u=document==null?void 0:document.createElement("template");u.content.appendChild(r),this.nodes.push(u)}else MS(r,this.slots)||this.nodes.push(r)})}updateSlots(){if(this.updatingSlots)return;this.updatingSlots=!0;const r=new Set;this.slots.forEach(o=>{if(!o.value)return;const u=o.value.getAttribute("name"),f=this.nodes.flatMap(g=>g.getAttribute&&g.getAttribute("slot")==u&&!g.hasAttribute("data-skip")?F$(g,o):[]).filter(g=>o.value&&!o.value.contains(g)&&!g.contains(o.value));if(f.length>0)if(r.add(u),typeof o.value.replaceChildren!="function"){for(;o.value.firstChild;)o.value.removeChild(o.value.firstChild);o.value.append(...f)}else o.value.replaceChildren(...f)}),(this.filledSlots.size!==r.size||![...this.filledSlots].every(o=>r.has(o)))&&(this.filledSlots=r,Array.from(this.filledSlots).length&&!(Array.from(this.filledSlots).length===1&&Array.from(this.filledSlots)[0]!==null)&&this.host.requestUpdate()),this.updatingSlots=!1}handleMutations(r){let o=!1;r.forEach(u=>{u.type==="childList"&&(u.addedNodes.forEach(f=>{if(!Sk(f)&&!(sg(f)&&this.skipOptions)){if($$(f,this.slots))this.nodes.push(f),o=!0;else if(P$(f)){const g=document==null?void 0:document.createElement("template");g.content.appendChild(f),this.nodes.push(g),o=!0}}}),u.removedNodes.forEach(f=>{Sk(f)||sg(f)&&this.skipOptions||(this.nodes=this.nodes.filter(g=>g!==f),o=!0)}))}),o&&this.updateSlots()}};/**
|
|
319
319
|
* @license
|
|
320
320
|
* Copyright 2020 Google LLC
|
|
321
321
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
322
|
-
*/const{I:
|
|
322
|
+
*/const{I:N$}=r$,zS=n=>n.strings===void 0,US=()=>document.createComment(""),lg=(n,r,o)=>{var u;const f=n._$AA.parentNode,g=r===void 0?n._$AB:r._$AA;if(o===void 0){const v=f.insertBefore(US(),g),S=f.insertBefore(US(),g);o=new N$(v,S,n,n.options)}else{const v=o._$AB.nextSibling,S=o._$AM,E=S!==n;if(E){let _;(u=o._$AQ)==null||u.call(o,n),o._$AM=n,o._$AP!==void 0&&(_=n._$AU)!==S._$AU&&o._$AP(_)}if(v!==g||E){let _=o._$AA;for(;_!==v;){const $=_.nextSibling;f.insertBefore(_,g),_=$}}}return o},wp=(n,r,o=n)=>(n._$AI(r,o),n),R$={},HS=(n,r=R$)=>n._$AH=r,O$=n=>n._$AH,Ck=n=>{var r;(r=n._$AP)==null||r.call(n,!1,!0);let o=n._$AA;const u=n._$AB.nextSibling;for(;o!==u;){const f=o.nextSibling;o.remove(),o=f}};/**
|
|
323
323
|
* @license
|
|
324
324
|
* Copyright 2017 Google LLC
|
|
325
325
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
326
|
-
*/const ug=(n,r)=>{var o;const u=n._$AN;if(u===void 0)return!1;for(const f of u)(o=f._$AO)==null||o.call(f,r,!1),ug(f,r);return!0},xy=n=>{let r,o;do{if((r=n._$AM)===void 0)break;o=r._$AN,o.delete(n),n=r}while((o==null?void 0:o.size)===0)},qS=n=>{for(let r;r=n._$AM;n=r){let o=r._$AN;if(o===void 0)r._$AN=o=new Set;else if(o.has(n))break;o.add(n),
|
|
326
|
+
*/const ug=(n,r)=>{var o;const u=n._$AN;if(u===void 0)return!1;for(const f of u)(o=f._$AO)==null||o.call(f,r,!1),ug(f,r);return!0},xy=n=>{let r,o;do{if((r=n._$AM)===void 0)break;o=r._$AN,o.delete(n),n=r}while((o==null?void 0:o.size)===0)},qS=n=>{for(let r;r=n._$AM;n=r){let o=r._$AN;if(o===void 0)r._$AN=o=new Set;else if(o.has(n))break;o.add(n),j$(r)}};function L$(n){this._$AN!==void 0?(xy(this),this._$AM=n,qS(this)):this._$AM=n}function B$(n,r=!1,o=0){const u=this._$AH,f=this._$AN;if(f!==void 0&&f.size!==0)if(r)if(Array.isArray(u))for(let g=o;g<u.length;g++)ug(u[g],!1),xy(u[g]);else u!=null&&(ug(u,!1),xy(u));else ug(this,n)}const j$=n=>{n.type==qs.CHILD&&(n._$AP??(n._$AP=B$),n._$AQ??(n._$AQ=L$))};let I$=class extends Xf{constructor(){super(...arguments),this._$AN=void 0}_$AT(r,o,u){super._$AT(r,o,u),qS(this),this.isConnected=r._$AU}_$AO(r,o=!0){var u,f;r!==this.isConnected&&(this.isConnected=r,r?(u=this.reconnected)==null||u.call(this):(f=this.disconnected)==null||f.call(this)),o&&(ug(this,r),xy(this))}setValue(r){if(zS(this._$Ct))this._$Ct._$AI(r,this);else{const o=[...this._$Ct._$AH];o[this._$Ci]=r,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};/**
|
|
327
327
|
* @license
|
|
328
328
|
* Copyright 2020 Google LLC
|
|
329
329
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
330
|
-
*/const qn=()=>new
|
|
330
|
+
*/const qn=()=>new M$;let M$=class{};const xk=new WeakMap,Rn=kp(class extends I${render(n){return wt}update(n,[r]){var o;const u=r!==this.Y;return u&&this.Y!==void 0&&this.rt(void 0),(u||this.lt!==this.ct)&&(this.Y=r,this.ht=(o=n.options)==null?void 0:o.host,this.rt(this.ct=n.element)),wt}rt(n){if(this.isConnected||(n=void 0),typeof this.Y=="function"){const r=this.ht??globalThis;let o=xk.get(r);o===void 0&&(o=new WeakMap,xk.set(r,o)),o.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),o.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,r;return typeof this.Y=="function"?(n=xk.get(this.ht??globalThis))==null?void 0:n.get(this.Y):(r=this.Y)==null?void 0:r.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function WS(n,r,o){const u=n.getAttribute("class")||"",f=new Set(u.split(/\s+/).filter(Boolean));o?f.add(r):f.delete(r),n.setAttribute("class",Array.from(f).join(" "))}/**
|
|
331
331
|
* @license
|
|
332
332
|
* Copyright 2017 Google LLC
|
|
333
333
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -335,7 +335,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
335
335
|
* @license
|
|
336
336
|
* Copyright 2017 Google LLC
|
|
337
337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
|
-
*/let Ek=class extends Ey{};Ek.directiveName="unsafeSVG",Ek.resultType=2;const
|
|
338
|
+
*/let Ek=class extends Ey{};Ek.directiveName="unsafeSVG",Ek.resultType=2;const VS=kp(Ek);var z$=Object.defineProperty,U$=Object.getOwnPropertyDescriptor,cg=(n,r,o,u)=>{for(var f=u>1?void 0:u?U$(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&z$(r,o,f),f};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.29/icons/";const H$=n=>new Promise(r=>setTimeout(r,n)),Ty='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',_k={},q$=async(n,r)=>{let o=0;for(;_k[r+n+".svg"]==="fetching"&&(o++,!(o>50));)await H$(50);return localStorage.getItem(r+n+".svg")?Promise.resolve(localStorage.getItem(r+n+".svg")):typeof window.pktFetch=="function"?(_k[r+n+".svg"]="fetching",Promise.resolve(window.pktFetch(r+n+".svg").then(u=>u.ok?u.text():(console.error("Missing icon: "+r+n+".svg"),Ty)).then(u=>(u!==Ty&&localStorage.setItem(r+n+".svg",u),_k[r+n+".svg"]="fetched",u)))):Promise.resolve(Ty)};let Dp=class extends ti{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=VS(Ty),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(r,o,u){super.attributeChangedCallback(r,o,u),(r==="name"||r==="path")&&this.getIcon(this.name)}async updated(r){super.updated(r),(r.has("name")||r.has("path"))&&this.getIcon(this.name)}async getIcon(r=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=VS(await q$(this.name||"",this.path).then(o=>o)),this._updatedProps=[]):this._updatedProps.includes(r)||this._updatedProps.push(r)}render(){return qe`${this.name&&this.icon}`}};cg([X({type:String,reflect:!1})],Dp.prototype,"path",2),cg([X({type:String,reflect:!0})],Dp.prototype,"name",2),cg([X({type:SVGElement})],Dp.prototype,"icon",2),cg([X({type:Array,noAccessor:!0})],Dp.prototype,"_updatedProps",2),Dp=cg([ra("pkt-icon")],Dp);const W$="pkt-alert",V$=!0,Y$={onClose:{description:"React: Klikk-event for 'Lukk'-knappen"},close:{description:"Vue: Klikk-event for 'Lukk'-knappen"}},G$={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}},Q$={default:{description:"Innholdet i meldingen"}},Ay={name:W$,"css-class":"pkt-alert","dark-mode":!0,isElement:V$,events:Y$,props:G$,slots:Q$};var K$=Object.defineProperty,Z$=Object.getOwnPropertyDescriptor,Pu=(n,r,o,u)=>{for(var f=u>1?void 0:u?Z$(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&K$(r,o,f),f};let Vs=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.compact=Ay.props.compact.default,this.title="",this.skin=Ay.props.skin.default,this.ariaLive=Ay.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=Ay.props.closeAlert.default,this.date=null,this._isClosed=!1,this.close=r=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:r},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:r},bubbles:!0,composed:!0}))},this.slotController=new Wi(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(r,o,u){r==="ariaLive"&&(this["aria-live"]=u),super.attributeChangedCallback(r,o,u)}updated(r){super.updated(r),r.has("ariaLive")&&(this["aria-live"]=this.ariaLive),r.has("_isClosed")&&WS(this,"pkt-hide",this._isClosed)}render(){const r={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed};return qe`
|
|
339
339
|
<div class=${kn(r)}>
|
|
340
340
|
<pkt-icon
|
|
341
341
|
class="pkt-alert__icon"
|
|
@@ -361,7 +361,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
361
361
|
|
|
362
362
|
${this.date?qe`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>`:wt}
|
|
363
363
|
</div>
|
|
364
|
-
`}};Pu([X({type:Boolean,reflect:!1})],Vs.prototype,"compact",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"title",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"skin",2),Pu([X({type:String})],Vs.prototype,"ariaLive",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"aria-live",2),Pu([X({type:Boolean,reflect:!0})],Vs.prototype,"closeAlert",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"date",2),Pu([zr()],Vs.prototype,"_isClosed",2),Vs=Pu([ra("pkt-alert")],Vs);var
|
|
364
|
+
`}};Pu([X({type:Boolean,reflect:!1})],Vs.prototype,"compact",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"title",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"skin",2),Pu([X({type:String})],Vs.prototype,"ariaLive",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"aria-live",2),Pu([X({type:Boolean,reflect:!0})],Vs.prototype,"closeAlert",2),Pu([X({type:String,reflect:!0})],Vs.prototype,"date",2),Pu([zr()],Vs.prototype,"_isClosed",2),Vs=Pu([ra("pkt-alert")],Vs);var X$=Object.defineProperty,J$=Object.getOwnPropertyDescriptor,ss=(n,r,o,u)=>{for(var f=u>1?void 0:u?J$(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&X$(r,o,f),f};let Vi=class extends ti{constructor(){super(),this.internals=this.attachInternals(),this.defaultSlot=qn(),this.iconName="user",this.secondIconName="user",this.mode="light",this.size="medium",this.skin="primary",this.variant="label-only",this.state="normal",this.type="button",this.isLoading=!1,this.disabled=!1,this.slotController=new Wi(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}updated(r){super.updated(r),this.setAttribute("role","button"),this.disabled?(this.getAttribute("tabindex")!=="-1"&&this.setAttribute("tabindex","-1"),this.getAttribute("aria-disabled")!=="true"&&this.setAttribute("aria-disabled","true")):(this.getAttribute("tabindex")!=="0"&&this.setAttribute("tabindex","0"),this.getAttribute("aria-disabled")!=="false"&&this.setAttribute("aria-disabled","false")),this.isLoading?this.getAttribute("aria-busy")!=="true"&&this.setAttribute("aria-busy","true"):this.hasAttribute("aria-busy")&&this.removeAttribute("aria-busy"),this.updateElementClasses()}render(){return qe`
|
|
365
365
|
<div class="pkt-btn__element-content">
|
|
366
366
|
${this.isLoading?qe`<pkt-icon
|
|
367
367
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
@@ -372,7 +372,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
372
372
|
<span class="pkt-btn__text" ${Rn(this.defaultSlot)}></span>
|
|
373
373
|
${this.variant==="icons-right-and-left"?qe`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>`:wt}
|
|
374
374
|
</div>
|
|
375
|
-
`}updateElementClasses(){const r=new Set,o=this.getAttribute("class");r.add("pkt-btn"),o&&o.split(" ").forEach(u=>r.add(u)),this.size&&r.add(`pkt-btn--${this.size}`),this.skin&&r.add(`pkt-btn--${this.skin}`),this.variant&&r.add(`pkt-btn--${this.variant}`),this.color&&r.add(`pkt-btn--${this.color}`),this.isLoading&&r.add("pkt-btn--active"),this.state&&r.add(`pkt-btn--${this.state}`),this.disabled&&r.add("pkt-btn--disabled"),this.className=[...r].join(" ")}handleClick(r){if(this.disabled||this.isLoading){r.preventDefault(),r.stopImmediatePropagation();return}if(this.type==="submit"&&this.internals.form){this.internals.form.requestSubmit();return}if(this.type==="reset"&&this.internals.form){this.internals.form.reset();return}this.onClick&&typeof this.onClick=="function"&&this.onClick!==this.handleClick&&this.onClick(r),this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0,detail:{originalEvent:r}}))}handleKeydown(r){this.disabled||this.isLoading||(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.handleClick(r))}};Vi.formAssociated=!0,ss([X({type:String})],Vi.prototype,"iconName",2),ss([X({type:String})],Vi.prototype,"secondIconName",2),ss([X({type:String})],Vi.prototype,"mode",2),ss([X({type:String})],Vi.prototype,"size",2),ss([X({type:String})],Vi.prototype,"color",2),ss([X({type:String})],Vi.prototype,"skin",2),ss([X({type:String})],Vi.prototype,"variant",2),ss([X({type:String,reflect:!0})],Vi.prototype,"state",2),ss([X({type:String,reflect:!0})],Vi.prototype,"type",2),ss([X({type:Boolean,reflect:!0})],Vi.prototype,"isLoading",2),ss([X({type:Boolean,reflect:!0})],Vi.prototype,"disabled",2),Vi=ss([ra("pkt-button")],Vi);const VS=6048e5,J$=864e5,eP=36e5,YS=Symbol.for("constructDateFrom");function Ys(n,r){return typeof n=="function"?n(r):n&&typeof n=="object"&&YS in n?n[YS](r):n instanceof Date?new n.constructor(r):new Date(r)}function mo(n,r){return Ys(r||n,n)}function Tk(n,r,o){const u=mo(n,void 0);return isNaN(r)?Ys(n,NaN):(r&&u.setDate(u.getDate()+r),u)}function tP(n,r,o){return Ys(n,+mo(n)+r)}function dg(n,r,o){return tP(n,r*eP)}let nP={};function Fy(){return nP}function pg(n,r){var o,u,f,g;const v=Fy(),S=(r==null?void 0:r.weekStartsOn)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??v.weekStartsOn??((g=(f=v.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,E=mo(n,r==null?void 0:r.in),_=E.getDay(),$=(_<S?7:0)+_-S;return E.setDate(E.getDate()-$),E.setHours(0,0,0,0),E}function $y(n,r){return pg(n,{...r,weekStartsOn:1})}function GS(n,r){const o=mo(n,void 0),u=o.getFullYear(),f=Ys(o,0);f.setFullYear(u+1,0,4),f.setHours(0,0,0,0);const g=$y(f),v=Ys(o,0);v.setFullYear(u,0,4),v.setHours(0,0,0,0);const S=$y(v);return o.getTime()>=g.getTime()?u+1:o.getTime()>=S.getTime()?u:u-1}function QS(n){const r=mo(n),o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),+n-+o}function KS(n,...r){const o=Ys.bind(null,r.find(u=>typeof u=="object"));return r.map(o)}function ZS(n,r){const o=mo(n,void 0);return o.setHours(0,0,0,0),o}function rP(n,r,o){const[u,f]=KS(void 0,n,r),g=ZS(u),v=ZS(f),S=+g-QS(g),E=+v-QS(v);return Math.round((S-E)/J$)}function aP(n,r){const o=GS(n),u=Ys(n,0);return u.setFullYear(o,0,4),u.setHours(0,0,0,0),$y(u)}function iP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function oP(n){return!(!iP(n)&&typeof n!="number"||isNaN(+mo(n)))}function sP(n,r){const[o,u]=KS(n,r.start,r.end);return{start:o,end:u}}function Ak(n,r){const{start:o,end:u}=sP(void 0,n);let f=+o>+u;const g=f?+o:+u,v=f?u:o;v.setHours(0,0,0,0);let S=1;const E=[];for(;+v<=g;)E.push(Ys(o,v)),v.setDate(v.getDate()+S),v.setHours(0,0,0,0);return f?E.reverse():E}function lP(n,r){const o=mo(n,void 0);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const uP={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"}},cP=(n,r,o)=>{let u;const f=uP[n];return typeof f=="string"?u=f:r===1?u=f.one:u=f.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+u:u+" ago":u};function Fk(n){return(r={})=>{const o=r.width?String(r.width):n.defaultWidth;return n.formats[o]||n.formats[n.defaultWidth]}}const dP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hP={date:Fk({formats:dP,defaultWidth:"full"}),time:Fk({formats:pP,defaultWidth:"full"}),dateTime:Fk({formats:fP,defaultWidth:"full"})},mP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gP=(n,r,o,u)=>mP[n];function fg(n){return(r,o)=>{const u=o!=null&&o.context?String(o.context):"standalone";let f;if(u==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,S=o!=null&&o.width?String(o.width):v;f=n.formattingValues[S]||n.formattingValues[v]}else{const v=n.defaultWidth,S=o!=null&&o.width?String(o.width):n.defaultWidth;f=n.values[S]||n.values[v]}const g=n.argumentCallback?n.argumentCallback(r):r;return f[g]}}const vP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bP={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"]},kP={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"]},wP={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"}},DP={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"}},SP=(n,r)=>{const o=Number(n),u=o%100;if(u>20||u<10)switch(u%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},CP={ordinalNumber:SP,era:fg({values:vP,defaultWidth:"wide"}),quarter:fg({values:yP,defaultWidth:"wide",argumentCallback:n=>n-1}),month:fg({values:bP,defaultWidth:"wide"}),day:fg({values:kP,defaultWidth:"wide"}),dayPeriod:fg({values:wP,defaultWidth:"wide",formattingValues:DP,defaultFormattingWidth:"wide"})};function hg(n){return(r,o={})=>{const u=o.width,f=u&&n.matchPatterns[u]||n.matchPatterns[n.defaultMatchWidth],g=r.match(f);if(!g)return null;const v=g[0],S=u&&n.parsePatterns[u]||n.parsePatterns[n.defaultParseWidth],E=Array.isArray(S)?EP(S,N=>N.test(v)):xP(S,N=>N.test(v));let _;_=n.valueCallback?n.valueCallback(E):E,_=o.valueCallback?o.valueCallback(_):_;const $=r.slice(v.length);return{value:_,rest:$}}}function xP(n,r){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return o}function EP(n,r){for(let o=0;o<n.length;o++)if(r(n[o]))return o}function _P(n){return(r,o={})=>{const u=r.match(n.matchPattern);if(!u)return null;const f=u[0],g=r.match(n.parsePattern);if(!g)return null;let v=n.valueCallback?n.valueCallback(g[0]):g[0];v=o.valueCallback?o.valueCallback(v):v;const S=r.slice(f.length);return{value:v,rest:S}}}const TP=/^(\d+)(th|st|nd|rd)?/i,AP=/\d+/i,FP={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},$P={any:[/^b/i,/^(a|c)/i]},PP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},NP={any:[/1/i,/2/i,/3/i,/4/i]},RP={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},OP={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]},LP={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},BP={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]},jP={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},IP={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}},MP={ordinalNumber:_P({matchPattern:TP,parsePattern:AP,valueCallback:n=>parseInt(n,10)}),era:hg({matchPatterns:FP,defaultMatchWidth:"wide",parsePatterns:$P,defaultParseWidth:"any"}),quarter:hg({matchPatterns:PP,defaultMatchWidth:"wide",parsePatterns:NP,defaultParseWidth:"any",valueCallback:n=>n+1}),month:hg({matchPatterns:RP,defaultMatchWidth:"wide",parsePatterns:OP,defaultParseWidth:"any"}),day:hg({matchPatterns:LP,defaultMatchWidth:"wide",parsePatterns:BP,defaultParseWidth:"any"}),dayPeriod:hg({matchPatterns:jP,defaultMatchWidth:"any",parsePatterns:IP,defaultParseWidth:"any"})},zP={code:"en-US",formatDistance:cP,formatLong:hP,formatRelative:gP,localize:CP,match:MP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function UP(n,r){const o=mo(n,void 0);return rP(o,lP(o))+1}function HP(n,r){const o=mo(n,void 0),u=+$y(o)-+aP(o);return Math.round(u/VS)+1}function XS(n,r){var o,u,f,g;const v=mo(n,r==null?void 0:r.in),S=v.getFullYear(),E=Fy(),_=(r==null?void 0:r.firstWeekContainsDate)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??E.firstWeekContainsDate??((g=(f=E.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,$=Ys((r==null?void 0:r.in)||n,0);$.setFullYear(S+1,0,_),$.setHours(0,0,0,0);const N=pg($,r),R=Ys((r==null?void 0:r.in)||n,0);R.setFullYear(S,0,_),R.setHours(0,0,0,0);const B=pg(R,r);return+v>=+N?S+1:+v>=+B?S:S-1}function qP(n,r){var o,u,f,g;const v=Fy(),S=(r==null?void 0:r.firstWeekContainsDate)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??v.firstWeekContainsDate??((g=(f=v.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,E=XS(n,r),_=Ys((r==null?void 0:r.in)||n,0);return _.setFullYear(E,0,S),_.setHours(0,0,0,0),pg(_,r)}function JS(n,r){const o=mo(n,r==null?void 0:r.in),u=+pg(o,r)-+qP(o,r);return Math.round(u/VS)+1}function Xn(n,r){const o=n<0?"-":"",u=Math.abs(n).toString().padStart(r,"0");return o+u}const qc={y(n,r){const o=n.getFullYear(),u=o>0?o:1-o;return Xn(r==="yy"?u%100:u,r.length)},M(n,r){const o=n.getMonth();return r==="M"?String(o+1):Xn(o+1,2)},d(n,r){return Xn(n.getDate(),r.length)},a(n,r){const o=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(n,r){return Xn(n.getHours()%12||12,r.length)},H(n,r){return Xn(n.getHours(),r.length)},m(n,r){return Xn(n.getMinutes(),r.length)},s(n,r){return Xn(n.getSeconds(),r.length)},S(n,r){const o=r.length,u=n.getMilliseconds(),f=Math.trunc(u*Math.pow(10,o-3));return Xn(f,r.length)}},th={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eC={G:function(n,r,o){const u=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return o.era(u,{width:"abbreviated"});case"GGGGG":return o.era(u,{width:"narrow"});case"GGGG":default:return o.era(u,{width:"wide"})}},y:function(n,r,o){if(r==="yo"){const u=n.getFullYear(),f=u>0?u:1-u;return o.ordinalNumber(f,{unit:"year"})}return qc.y(n,r)},Y:function(n,r,o,u){const f=XS(n,u),g=f>0?f:1-f;if(r==="YY"){const v=g%100;return Xn(v,2)}return r==="Yo"?o.ordinalNumber(g,{unit:"year"}):Xn(g,r.length)},R:function(n,r){const o=GS(n);return Xn(o,r.length)},u:function(n,r){const o=n.getFullYear();return Xn(o,r.length)},Q:function(n,r,o){const u=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(u);case"QQ":return Xn(u,2);case"Qo":return o.ordinalNumber(u,{unit:"quarter"});case"QQQ":return o.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(u,{width:"wide",context:"formatting"})}},q:function(n,r,o){const u=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(u);case"qq":return Xn(u,2);case"qo":return o.ordinalNumber(u,{unit:"quarter"});case"qqq":return o.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(u,{width:"wide",context:"standalone"})}},M:function(n,r,o){const u=n.getMonth();switch(r){case"M":case"MM":return qc.M(n,r);case"Mo":return o.ordinalNumber(u+1,{unit:"month"});case"MMM":return o.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(u,{width:"wide",context:"formatting"})}},L:function(n,r,o){const u=n.getMonth();switch(r){case"L":return String(u+1);case"LL":return Xn(u+1,2);case"Lo":return o.ordinalNumber(u+1,{unit:"month"});case"LLL":return o.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(u,{width:"wide",context:"standalone"})}},w:function(n,r,o,u){const f=JS(n,u);return r==="wo"?o.ordinalNumber(f,{unit:"week"}):Xn(f,r.length)},I:function(n,r,o){const u=HP(n);return r==="Io"?o.ordinalNumber(u,{unit:"week"}):Xn(u,r.length)},d:function(n,r,o){return r==="do"?o.ordinalNumber(n.getDate(),{unit:"date"}):qc.d(n,r)},D:function(n,r,o){const u=UP(n);return r==="Do"?o.ordinalNumber(u,{unit:"dayOfYear"}):Xn(u,r.length)},E:function(n,r,o){const u=n.getDay();switch(r){case"E":case"EE":case"EEE":return o.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(u,{width:"short",context:"formatting"});case"EEEE":default:return o.day(u,{width:"wide",context:"formatting"})}},e:function(n,r,o,u){const f=n.getDay(),g=(f-u.weekStartsOn+8)%7||7;switch(r){case"e":return String(g);case"ee":return Xn(g,2);case"eo":return o.ordinalNumber(g,{unit:"day"});case"eee":return o.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(f,{width:"short",context:"formatting"});case"eeee":default:return o.day(f,{width:"wide",context:"formatting"})}},c:function(n,r,o,u){const f=n.getDay(),g=(f-u.weekStartsOn+8)%7||7;switch(r){case"c":return String(g);case"cc":return Xn(g,r.length);case"co":return o.ordinalNumber(g,{unit:"day"});case"ccc":return o.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(f,{width:"narrow",context:"standalone"});case"cccccc":return o.day(f,{width:"short",context:"standalone"});case"cccc":default:return o.day(f,{width:"wide",context:"standalone"})}},i:function(n,r,o){const u=n.getDay(),f=u===0?7:u;switch(r){case"i":return String(f);case"ii":return Xn(f,r.length);case"io":return o.ordinalNumber(f,{unit:"day"});case"iii":return o.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(u,{width:"short",context:"formatting"});case"iiii":default:return o.day(u,{width:"wide",context:"formatting"})}},a:function(n,r,o){const u=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return o.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(n,r,o){const u=n.getHours();let f;switch(u===12?f=th.noon:u===0?f=th.midnight:f=u/12>=1?"pm":"am",r){case"b":case"bb":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,r,o){const u=n.getHours();let f;switch(u>=17?f=th.evening:u>=12?f=th.afternoon:u>=4?f=th.morning:f=th.night,r){case"B":case"BB":case"BBB":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,r,o){if(r==="ho"){let u=n.getHours()%12;return u===0&&(u=12),o.ordinalNumber(u,{unit:"hour"})}return qc.h(n,r)},H:function(n,r,o){return r==="Ho"?o.ordinalNumber(n.getHours(),{unit:"hour"}):qc.H(n,r)},K:function(n,r,o){const u=n.getHours()%12;return r==="Ko"?o.ordinalNumber(u,{unit:"hour"}):Xn(u,r.length)},k:function(n,r,o){let u=n.getHours();return u===0&&(u=24),r==="ko"?o.ordinalNumber(u,{unit:"hour"}):Xn(u,r.length)},m:function(n,r,o){return r==="mo"?o.ordinalNumber(n.getMinutes(),{unit:"minute"}):qc.m(n,r)},s:function(n,r,o){return r==="so"?o.ordinalNumber(n.getSeconds(),{unit:"second"}):qc.s(n,r)},S:function(n,r){return qc.S(n,r)},X:function(n,r,o){const u=n.getTimezoneOffset();if(u===0)return"Z";switch(r){case"X":return nC(u);case"XXXX":case"XX":return Sp(u);case"XXXXX":case"XXX":default:return Sp(u,":")}},x:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"x":return nC(u);case"xxxx":case"xx":return Sp(u);case"xxxxx":case"xxx":default:return Sp(u,":")}},O:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+tC(u,":");case"OOOO":default:return"GMT"+Sp(u,":")}},z:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+tC(u,":");case"zzzz":default:return"GMT"+Sp(u,":")}},t:function(n,r,o){const u=Math.trunc(+n/1e3);return Xn(u,r.length)},T:function(n,r,o){return Xn(+n,r.length)}};function tC(n,r=""){const o=n>0?"-":"+",u=Math.abs(n),f=Math.trunc(u/60),g=u%60;return g===0?o+String(f):o+String(f)+r+Xn(g,2)}function nC(n,r){return n%60===0?(n>0?"-":"+")+Xn(Math.abs(n)/60,2):Sp(n,r)}function Sp(n,r=""){const o=n>0?"-":"+",u=Math.abs(n),f=Xn(Math.trunc(u/60),2),g=Xn(u%60,2);return o+f+r+g}const rC=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},aC=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},WP=(n,r)=>{const o=n.match(/(P+)(p+)?/)||[],u=o[1],f=o[2];if(!f)return rC(n,r);let g;switch(u){case"P":g=r.dateTime({width:"short"});break;case"PP":g=r.dateTime({width:"medium"});break;case"PPP":g=r.dateTime({width:"long"});break;case"PPPP":default:g=r.dateTime({width:"full"});break}return g.replace("{{date}}",rC(u,r)).replace("{{time}}",aC(f,r))},VP={p:aC,P:WP},YP=/^D+$/,GP=/^Y+$/,QP=["D","DD","YY","YYYY"];function KP(n){return YP.test(n)}function ZP(n){return GP.test(n)}function XP(n,r,o){const u=JP(n,r,o);if(console.warn(u),QP.includes(n))throw new RangeError(u)}function JP(n,r,o){const u=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${u} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const eN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nN=/^'([^]*?)'?$/,rN=/''/g,aN=/[a-zA-Z]/;function iN(n,r,o){var u,f,g,v;const S=Fy(),E=S.locale??zP,_=S.firstWeekContainsDate??((f=(u=S.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,$=S.weekStartsOn??((v=(g=S.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,N=mo(n,void 0);if(!oP(N))throw new RangeError("Invalid time value");let R=r.match(tN).map(M=>{const V=M[0];if(V==="p"||V==="P"){const H=VP[V];return H(M,E.formatLong)}return M}).join("").match(eN).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const V=M[0];if(V==="'")return{isToken:!1,value:oN(M)};if(eC[V])return{isToken:!0,value:M};if(V.match(aN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return{isToken:!1,value:M}});E.localize.preprocessor&&(R=E.localize.preprocessor(N,R));const B={firstWeekContainsDate:_,weekStartsOn:$,locale:E};return R.map(M=>{if(!M.isToken)return M.value;const V=M.value;(ZP(V)||KP(V))&&XP(V,r,String(n));const H=eC[V[0]];return H(N,V,E.localize,B)}).join("")}function oN(n){const r=n.match(nN);return r?r[1].replace(rN,"'"):n}function sN(n,r){const o=mo(n,void 0).getDay();return o===0?7:o}const iC={},mg={};function gg(n,r){try{const o=(iC[n]||(iC[n]=new Intl.DateTimeFormat("en-GB",{timeZone:n,hour:"numeric",timeZoneName:"longOffset"}).format))(r).split("GMT")[1]||"";return o in mg?mg[o]:oC(o,o.split(":"))}catch{if(n in mg)return mg[n];const o=n==null?void 0:n.match(lN);return o?oC(n,o.slice(1)):NaN}}const lN=/([+-]\d\d):?(\d\d)?/;function oC(n,r){const o=+r[0],u=+(r[1]||0);return mg[n]=o>0?o*60+u:o*60-u}let vg=class my extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(gg(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),lC(this),$k(this)):this.setTime(Date.now())}static tz(r,...o){return o.length?new my(...o,r):new my(Date.now(),r)}withTimeZone(r){return new my(+this,r)}getTimezoneOffset(){return-gg(this.timeZone,this)}setTime(r){return Date.prototype.setTime.apply(this,arguments),$k(this),+this}[Symbol.for("constructDateFrom")](r){return new my(+new Date(r),this.timeZone)}};const sC=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(n=>{if(!sC.test(n))return;const r=n.replace(sC,"$1UTC");vg.prototype[r]&&(n.startsWith("get")?vg.prototype[n]=function(){return this.internal[r]()}:(vg.prototype[n]=function(){return Date.prototype[r].apply(this.internal,arguments),uN(this),+this},vg.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),$k(this),+this}))});function $k(n){n.internal.setTime(+n),n.internal.setUTCMinutes(n.internal.getUTCMinutes()-n.getTimezoneOffset())}function uN(n){Date.prototype.setFullYear.call(n,n.internal.getUTCFullYear(),n.internal.getUTCMonth(),n.internal.getUTCDate()),Date.prototype.setHours.call(n,n.internal.getUTCHours(),n.internal.getUTCMinutes(),n.internal.getUTCSeconds(),n.internal.getUTCMilliseconds()),lC(n)}function lC(n){const r=gg(n.timeZone,n),o=new Date(+n);o.setUTCHours(o.getUTCHours()-1);const u=-new Date(+n).getTimezoneOffset(),f=-new Date(+o).getTimezoneOffset(),g=u-f,v=Date.prototype.getHours.apply(n)!==n.internal.getUTCHours();g&&v&&n.internal.setUTCMinutes(n.internal.getUTCMinutes()+g);const S=u-r;S&&Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+S);const E=gg(n.timeZone,n),_=-new Date(+n).getTimezoneOffset()-E,$=E!==r,N=_-S;if($&&N){Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+N);const R=gg(n.timeZone,n),B=E-R;B&&(n.internal.setUTCMinutes(n.internal.getUTCMinutes()+B),Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+B))}}let Py=class gy extends vg{static tz(r,...o){return o.length?new gy(...o,r):new gy(Date.now(),r)}toISOString(){const[r,o,u]=this.tzComponents(),f=`${r}${o}:${u}`;return this.internal.toISOString().slice(0,-1)+f}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[r,o,u,f]=this.internal.toUTCString().split(" ");return`${r==null?void 0:r.slice(0,-1)} ${u} ${o} ${f}`}toTimeString(){const r=this.internal.toUTCString().split(" ")[4],[o,u,f]=this.tzComponents();return`${r} GMT${o}${u}${f} (${cN(this.timeZone,this)})`}toLocaleString(r,o){return Date.prototype.toLocaleString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleDateString(r,o){return Date.prototype.toLocaleDateString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleTimeString(r,o){return Date.prototype.toLocaleTimeString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}tzComponents(){const r=this.getTimezoneOffset(),o=r>0?"-":"+",u=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),f=String(Math.abs(r)%60).padStart(2,"0");return[o,u,f]}withTimeZone(r){return new gy(+this,r)}[Symbol.for("constructDateFrom")](r){return new gy(+new Date(r),this.timeZone)}};function cN(n,r){return new Intl.DateTimeFormat("en-GB",{timeZone:n,timeZoneName:"long"}).format(r).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const Oa=n=>n.toISOString().split("T")[0],Pk=n=>{if(!n)return null;const r=dg(new Py(n,window.pktTz),12);return isNaN(r.getTime())?null:r},uC=(n,r)=>{const o=aa(n);return isNaN(o.getTime())?"":iN(o,r)},aa=(n="")=>dg(n===""||!n?new Py(new Date,window.pktTz):new Py(n,window.pktTz),12),Wc=(n,r,o=1)=>dg(new Py(n,r,o,window.pktTz),12),dN=n=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(n),cC=n=>{if(Array.isArray(n))return n;if(typeof n=="string")return n.split(",")},pN=n=>n?new Date(n):null,fN=n=>{if(typeof n=="string")return n.split(",").map(r=>new Date(r));if(Array.isArray(n))return n.map(r=>new Date(r))},nh={csvToArray:cC,stringToDate:pN,stringsToDate:fN},hN="pkt-calendar",mN={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"}},gN={"date-selected":{description:"Returns ISO formatted date string"}},Cp={name:hN,"css-class":"pkt-calendar",props:mN,events:gN};var vN=Object.defineProperty,yN=Object.getOwnPropertyDescriptor,rr=(n,r,o,u)=>{for(var f=u>1?void 0:u?yN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&vN(r,o,f),f};let Jn=class extends ti{constructor(){super(...arguments),this.multiple=Cp.props.multiple.default,this.maxMultiple=Cp.props.maxMultiple.default,this.range=Cp.props.range.default,this.weeknumbers=Cp.props.weeknumbers.default,this.withcontrols=Cp.props.withcontrols.default,this.selected=[],this.earliest=Cp.props.earliest.default,this.latest=Cp.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(r,o,u){r==="selected"&&u&&this.convertSelected(),super.attributeChangedCallback(r,o,u)}updated(r){super.updated(r),r.has("selected")&&this.convertSelected()}firstUpdated(r){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(r=>aa(r)),this.range&&this.selected.length===2){const r=Ak({start:aa(this.selected[0]),end:aa(this.selected[1])});if(this.inRange={},Array.isArray(r)&&r.length){const o={};for(let u=0;u<r.length;u++)o[Oa(r[u])]=this.isInRange(r[u]);this.inRange=o}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=aa(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=aa()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(r){switch(r.key){case"ArrowLeft":this.handleArrowKey(r,-1);break;case"ArrowRight":this.handleArrowKey(r,1);break;case"ArrowUp":this.handleArrowKey(r,-7);break;case"ArrowDown":this.handleArrowKey(r,7);break}}handleArrowKey(r,o){var u,f,g;if(((u=r.target)==null?void 0:u.nodeName)==="INPUT"||((f=r.target)==null?void 0:f.nodeName)==="SELECT"||((g=r.target)==null?void 0:g.nodeName)==="BUTTON")return;r.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const v=this.focusedDate?aa(this.focusedDate):Wc(this.year,this.month,1);let S=Tk(v,o);if(S){let E=this.querySelector(`div[data-date="${Oa(S)}"]`);if(E instanceof HTMLDivElement){if(E.dataset.disabled){S=Tk(S,o);let _=this.querySelector(`div[data-date="${Oa(S)}"]`);for(;_&&_ instanceof HTMLDivElement&&_.dataset.disabled;)S=Tk(S,o),_=this.querySelector(`div[data-date="${Oa(S)}"]`);E=_}E instanceof HTMLDivElement&&!E.dataset.disabled&&(this.focusedDate=Oa(S),E.focus())}}}render(){return qe`
|
|
375
|
+
`}updateElementClasses(){const r=new Set,o=this.getAttribute("class");r.add("pkt-btn"),o&&o.split(" ").forEach(u=>r.add(u)),this.size&&r.add(`pkt-btn--${this.size}`),this.skin&&r.add(`pkt-btn--${this.skin}`),this.variant&&r.add(`pkt-btn--${this.variant}`),this.color&&r.add(`pkt-btn--${this.color}`),this.isLoading&&r.add("pkt-btn--active"),this.state&&r.add(`pkt-btn--${this.state}`),this.disabled&&r.add("pkt-btn--disabled"),this.className=[...r].join(" ")}handleClick(r){if(this.disabled||this.isLoading){r.preventDefault(),r.stopImmediatePropagation();return}if(this.type==="submit"&&this.internals.form){this.internals.form.requestSubmit();return}if(this.type==="reset"&&this.internals.form){this.internals.form.reset();return}this.onClick&&typeof this.onClick=="function"&&this.onClick!==this.handleClick&&this.onClick(r),this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0,detail:{originalEvent:r}}))}handleKeydown(r){this.disabled||this.isLoading||(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.handleClick(r))}};Vi.formAssociated=!0,ss([X({type:String})],Vi.prototype,"iconName",2),ss([X({type:String})],Vi.prototype,"secondIconName",2),ss([X({type:String})],Vi.prototype,"mode",2),ss([X({type:String})],Vi.prototype,"size",2),ss([X({type:String})],Vi.prototype,"color",2),ss([X({type:String})],Vi.prototype,"skin",2),ss([X({type:String})],Vi.prototype,"variant",2),ss([X({type:String,reflect:!0})],Vi.prototype,"state",2),ss([X({type:String,reflect:!0})],Vi.prototype,"type",2),ss([X({type:Boolean,reflect:!0})],Vi.prototype,"isLoading",2),ss([X({type:Boolean,reflect:!0})],Vi.prototype,"disabled",2),Vi=ss([ra("pkt-button")],Vi);const YS=6048e5,eP=864e5,tP=36e5,GS=Symbol.for("constructDateFrom");function Ys(n,r){return typeof n=="function"?n(r):n&&typeof n=="object"&&GS in n?n[GS](r):n instanceof Date?new n.constructor(r):new Date(r)}function mo(n,r){return Ys(r||n,n)}function Tk(n,r,o){const u=mo(n,void 0);return isNaN(r)?Ys(n,NaN):(r&&u.setDate(u.getDate()+r),u)}function nP(n,r,o){return Ys(n,+mo(n)+r)}function dg(n,r,o){return nP(n,r*tP)}let rP={};function Fy(){return rP}function pg(n,r){var o,u,f,g;const v=Fy(),S=(r==null?void 0:r.weekStartsOn)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.weekStartsOn)??v.weekStartsOn??((g=(f=v.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,E=mo(n,r==null?void 0:r.in),_=E.getDay(),$=(_<S?7:0)+_-S;return E.setDate(E.getDate()-$),E.setHours(0,0,0,0),E}function $y(n,r){return pg(n,{...r,weekStartsOn:1})}function QS(n,r){const o=mo(n,void 0),u=o.getFullYear(),f=Ys(o,0);f.setFullYear(u+1,0,4),f.setHours(0,0,0,0);const g=$y(f),v=Ys(o,0);v.setFullYear(u,0,4),v.setHours(0,0,0,0);const S=$y(v);return o.getTime()>=g.getTime()?u+1:o.getTime()>=S.getTime()?u:u-1}function KS(n){const r=mo(n),o=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return o.setUTCFullYear(r.getFullYear()),+n-+o}function ZS(n,...r){const o=Ys.bind(null,r.find(u=>typeof u=="object"));return r.map(o)}function XS(n,r){const o=mo(n,void 0);return o.setHours(0,0,0,0),o}function aP(n,r,o){const[u,f]=ZS(void 0,n,r),g=XS(u),v=XS(f),S=+g-KS(g),E=+v-KS(v);return Math.round((S-E)/eP)}function iP(n,r){const o=QS(n),u=Ys(n,0);return u.setFullYear(o,0,4),u.setHours(0,0,0,0),$y(u)}function oP(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function sP(n){return!(!oP(n)&&typeof n!="number"||isNaN(+mo(n)))}function lP(n,r){const[o,u]=ZS(n,r.start,r.end);return{start:o,end:u}}function Ak(n,r){const{start:o,end:u}=lP(void 0,n);let f=+o>+u;const g=f?+o:+u,v=f?u:o;v.setHours(0,0,0,0);let S=1;const E=[];for(;+v<=g;)E.push(Ys(o,v)),v.setDate(v.getDate()+S),v.setHours(0,0,0,0);return f?E.reverse():E}function uP(n,r){const o=mo(n,void 0);return o.setFullYear(o.getFullYear(),0,1),o.setHours(0,0,0,0),o}const cP={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"}},dP=(n,r,o)=>{let u;const f=cP[n];return typeof f=="string"?u=f:r===1?u=f.one:u=f.other.replace("{{count}}",r.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+u:u+" ago":u};function Fk(n){return(r={})=>{const o=r.width?String(r.width):n.defaultWidth;return n.formats[o]||n.formats[n.defaultWidth]}}const pP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mP={date:Fk({formats:pP,defaultWidth:"full"}),time:Fk({formats:fP,defaultWidth:"full"}),dateTime:Fk({formats:hP,defaultWidth:"full"})},gP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vP=(n,r,o,u)=>gP[n];function fg(n){return(r,o)=>{const u=o!=null&&o.context?String(o.context):"standalone";let f;if(u==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,S=o!=null&&o.width?String(o.width):v;f=n.formattingValues[S]||n.formattingValues[v]}else{const v=n.defaultWidth,S=o!=null&&o.width?String(o.width):n.defaultWidth;f=n.values[S]||n.values[v]}const g=n.argumentCallback?n.argumentCallback(r):r;return f[g]}}const yP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kP={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"]},wP={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"]},DP={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"}},SP={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"}},CP=(n,r)=>{const o=Number(n),u=o%100;if(u>20||u<10)switch(u%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},xP={ordinalNumber:CP,era:fg({values:yP,defaultWidth:"wide"}),quarter:fg({values:bP,defaultWidth:"wide",argumentCallback:n=>n-1}),month:fg({values:kP,defaultWidth:"wide"}),day:fg({values:wP,defaultWidth:"wide"}),dayPeriod:fg({values:DP,defaultWidth:"wide",formattingValues:SP,defaultFormattingWidth:"wide"})};function hg(n){return(r,o={})=>{const u=o.width,f=u&&n.matchPatterns[u]||n.matchPatterns[n.defaultMatchWidth],g=r.match(f);if(!g)return null;const v=g[0],S=u&&n.parsePatterns[u]||n.parsePatterns[n.defaultParseWidth],E=Array.isArray(S)?_P(S,N=>N.test(v)):EP(S,N=>N.test(v));let _;_=n.valueCallback?n.valueCallback(E):E,_=o.valueCallback?o.valueCallback(_):_;const $=r.slice(v.length);return{value:_,rest:$}}}function EP(n,r){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return o}function _P(n,r){for(let o=0;o<n.length;o++)if(r(n[o]))return o}function TP(n){return(r,o={})=>{const u=r.match(n.matchPattern);if(!u)return null;const f=u[0],g=r.match(n.parsePattern);if(!g)return null;let v=n.valueCallback?n.valueCallback(g[0]):g[0];v=o.valueCallback?o.valueCallback(v):v;const S=r.slice(f.length);return{value:v,rest:S}}}const AP=/^(\d+)(th|st|nd|rd)?/i,FP=/\d+/i,$P={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},PP={any:[/^b/i,/^(a|c)/i]},NP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RP={any:[/1/i,/2/i,/3/i,/4/i]},OP={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},LP={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]},BP={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},jP={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]},IP={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},MP={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}},zP={ordinalNumber:TP({matchPattern:AP,parsePattern:FP,valueCallback:n=>parseInt(n,10)}),era:hg({matchPatterns:$P,defaultMatchWidth:"wide",parsePatterns:PP,defaultParseWidth:"any"}),quarter:hg({matchPatterns:NP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any",valueCallback:n=>n+1}),month:hg({matchPatterns:OP,defaultMatchWidth:"wide",parsePatterns:LP,defaultParseWidth:"any"}),day:hg({matchPatterns:BP,defaultMatchWidth:"wide",parsePatterns:jP,defaultParseWidth:"any"}),dayPeriod:hg({matchPatterns:IP,defaultMatchWidth:"any",parsePatterns:MP,defaultParseWidth:"any"})},UP={code:"en-US",formatDistance:dP,formatLong:mP,formatRelative:vP,localize:xP,match:zP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function HP(n,r){const o=mo(n,void 0);return aP(o,uP(o))+1}function qP(n,r){const o=mo(n,void 0),u=+$y(o)-+iP(o);return Math.round(u/YS)+1}function JS(n,r){var o,u,f,g;const v=mo(n,r==null?void 0:r.in),S=v.getFullYear(),E=Fy(),_=(r==null?void 0:r.firstWeekContainsDate)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??E.firstWeekContainsDate??((g=(f=E.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,$=Ys((r==null?void 0:r.in)||n,0);$.setFullYear(S+1,0,_),$.setHours(0,0,0,0);const N=pg($,r),R=Ys((r==null?void 0:r.in)||n,0);R.setFullYear(S,0,_),R.setHours(0,0,0,0);const B=pg(R,r);return+v>=+N?S+1:+v>=+B?S:S-1}function WP(n,r){var o,u,f,g;const v=Fy(),S=(r==null?void 0:r.firstWeekContainsDate)??((u=(o=r==null?void 0:r.locale)==null?void 0:o.options)==null?void 0:u.firstWeekContainsDate)??v.firstWeekContainsDate??((g=(f=v.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,E=JS(n,r),_=Ys((r==null?void 0:r.in)||n,0);return _.setFullYear(E,0,S),_.setHours(0,0,0,0),pg(_,r)}function eC(n,r){const o=mo(n,r==null?void 0:r.in),u=+pg(o,r)-+WP(o,r);return Math.round(u/YS)+1}function Xn(n,r){const o=n<0?"-":"",u=Math.abs(n).toString().padStart(r,"0");return o+u}const qc={y(n,r){const o=n.getFullYear(),u=o>0?o:1-o;return Xn(r==="yy"?u%100:u,r.length)},M(n,r){const o=n.getMonth();return r==="M"?String(o+1):Xn(o+1,2)},d(n,r){return Xn(n.getDate(),r.length)},a(n,r){const o=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h(n,r){return Xn(n.getHours()%12||12,r.length)},H(n,r){return Xn(n.getHours(),r.length)},m(n,r){return Xn(n.getMinutes(),r.length)},s(n,r){return Xn(n.getSeconds(),r.length)},S(n,r){const o=r.length,u=n.getMilliseconds(),f=Math.trunc(u*Math.pow(10,o-3));return Xn(f,r.length)}},th={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},tC={G:function(n,r,o){const u=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return o.era(u,{width:"abbreviated"});case"GGGGG":return o.era(u,{width:"narrow"});case"GGGG":default:return o.era(u,{width:"wide"})}},y:function(n,r,o){if(r==="yo"){const u=n.getFullYear(),f=u>0?u:1-u;return o.ordinalNumber(f,{unit:"year"})}return qc.y(n,r)},Y:function(n,r,o,u){const f=JS(n,u),g=f>0?f:1-f;if(r==="YY"){const v=g%100;return Xn(v,2)}return r==="Yo"?o.ordinalNumber(g,{unit:"year"}):Xn(g,r.length)},R:function(n,r){const o=QS(n);return Xn(o,r.length)},u:function(n,r){const o=n.getFullYear();return Xn(o,r.length)},Q:function(n,r,o){const u=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(u);case"QQ":return Xn(u,2);case"Qo":return o.ordinalNumber(u,{unit:"quarter"});case"QQQ":return o.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(u,{width:"wide",context:"formatting"})}},q:function(n,r,o){const u=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(u);case"qq":return Xn(u,2);case"qo":return o.ordinalNumber(u,{unit:"quarter"});case"qqq":return o.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(u,{width:"wide",context:"standalone"})}},M:function(n,r,o){const u=n.getMonth();switch(r){case"M":case"MM":return qc.M(n,r);case"Mo":return o.ordinalNumber(u+1,{unit:"month"});case"MMM":return o.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(u,{width:"wide",context:"formatting"})}},L:function(n,r,o){const u=n.getMonth();switch(r){case"L":return String(u+1);case"LL":return Xn(u+1,2);case"Lo":return o.ordinalNumber(u+1,{unit:"month"});case"LLL":return o.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(u,{width:"wide",context:"standalone"})}},w:function(n,r,o,u){const f=eC(n,u);return r==="wo"?o.ordinalNumber(f,{unit:"week"}):Xn(f,r.length)},I:function(n,r,o){const u=qP(n);return r==="Io"?o.ordinalNumber(u,{unit:"week"}):Xn(u,r.length)},d:function(n,r,o){return r==="do"?o.ordinalNumber(n.getDate(),{unit:"date"}):qc.d(n,r)},D:function(n,r,o){const u=HP(n);return r==="Do"?o.ordinalNumber(u,{unit:"dayOfYear"}):Xn(u,r.length)},E:function(n,r,o){const u=n.getDay();switch(r){case"E":case"EE":case"EEE":return o.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(u,{width:"short",context:"formatting"});case"EEEE":default:return o.day(u,{width:"wide",context:"formatting"})}},e:function(n,r,o,u){const f=n.getDay(),g=(f-u.weekStartsOn+8)%7||7;switch(r){case"e":return String(g);case"ee":return Xn(g,2);case"eo":return o.ordinalNumber(g,{unit:"day"});case"eee":return o.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(f,{width:"short",context:"formatting"});case"eeee":default:return o.day(f,{width:"wide",context:"formatting"})}},c:function(n,r,o,u){const f=n.getDay(),g=(f-u.weekStartsOn+8)%7||7;switch(r){case"c":return String(g);case"cc":return Xn(g,r.length);case"co":return o.ordinalNumber(g,{unit:"day"});case"ccc":return o.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(f,{width:"narrow",context:"standalone"});case"cccccc":return o.day(f,{width:"short",context:"standalone"});case"cccc":default:return o.day(f,{width:"wide",context:"standalone"})}},i:function(n,r,o){const u=n.getDay(),f=u===0?7:u;switch(r){case"i":return String(f);case"ii":return Xn(f,r.length);case"io":return o.ordinalNumber(f,{unit:"day"});case"iii":return o.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(u,{width:"short",context:"formatting"});case"iiii":default:return o.day(u,{width:"wide",context:"formatting"})}},a:function(n,r,o){const u=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return o.dayPeriod(u,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(u,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(u,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(u,{width:"wide",context:"formatting"})}},b:function(n,r,o){const u=n.getHours();let f;switch(u===12?f=th.noon:u===0?f=th.midnight:f=u/12>=1?"pm":"am",r){case"b":case"bb":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,r,o){const u=n.getHours();let f;switch(u>=17?f=th.evening:u>=12?f=th.afternoon:u>=4?f=th.morning:f=th.night,r){case"B":case"BB":case"BBB":return o.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,r,o){if(r==="ho"){let u=n.getHours()%12;return u===0&&(u=12),o.ordinalNumber(u,{unit:"hour"})}return qc.h(n,r)},H:function(n,r,o){return r==="Ho"?o.ordinalNumber(n.getHours(),{unit:"hour"}):qc.H(n,r)},K:function(n,r,o){const u=n.getHours()%12;return r==="Ko"?o.ordinalNumber(u,{unit:"hour"}):Xn(u,r.length)},k:function(n,r,o){let u=n.getHours();return u===0&&(u=24),r==="ko"?o.ordinalNumber(u,{unit:"hour"}):Xn(u,r.length)},m:function(n,r,o){return r==="mo"?o.ordinalNumber(n.getMinutes(),{unit:"minute"}):qc.m(n,r)},s:function(n,r,o){return r==="so"?o.ordinalNumber(n.getSeconds(),{unit:"second"}):qc.s(n,r)},S:function(n,r){return qc.S(n,r)},X:function(n,r,o){const u=n.getTimezoneOffset();if(u===0)return"Z";switch(r){case"X":return rC(u);case"XXXX":case"XX":return Sp(u);case"XXXXX":case"XXX":default:return Sp(u,":")}},x:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"x":return rC(u);case"xxxx":case"xx":return Sp(u);case"xxxxx":case"xxx":default:return Sp(u,":")}},O:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+nC(u,":");case"OOOO":default:return"GMT"+Sp(u,":")}},z:function(n,r,o){const u=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+nC(u,":");case"zzzz":default:return"GMT"+Sp(u,":")}},t:function(n,r,o){const u=Math.trunc(+n/1e3);return Xn(u,r.length)},T:function(n,r,o){return Xn(+n,r.length)}};function nC(n,r=""){const o=n>0?"-":"+",u=Math.abs(n),f=Math.trunc(u/60),g=u%60;return g===0?o+String(f):o+String(f)+r+Xn(g,2)}function rC(n,r){return n%60===0?(n>0?"-":"+")+Xn(Math.abs(n)/60,2):Sp(n,r)}function Sp(n,r=""){const o=n>0?"-":"+",u=Math.abs(n),f=Xn(Math.trunc(u/60),2),g=Xn(u%60,2);return o+f+r+g}const aC=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},iC=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},VP=(n,r)=>{const o=n.match(/(P+)(p+)?/)||[],u=o[1],f=o[2];if(!f)return aC(n,r);let g;switch(u){case"P":g=r.dateTime({width:"short"});break;case"PP":g=r.dateTime({width:"medium"});break;case"PPP":g=r.dateTime({width:"long"});break;case"PPPP":default:g=r.dateTime({width:"full"});break}return g.replace("{{date}}",aC(u,r)).replace("{{time}}",iC(f,r))},YP={p:iC,P:VP},GP=/^D+$/,QP=/^Y+$/,KP=["D","DD","YY","YYYY"];function ZP(n){return GP.test(n)}function XP(n){return QP.test(n)}function JP(n,r,o){const u=eN(n,r,o);if(console.warn(u),KP.includes(n))throw new RangeError(u)}function eN(n,r,o){const u=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${u} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rN=/^'([^]*?)'?$/,aN=/''/g,iN=/[a-zA-Z]/;function oN(n,r,o){var u,f,g,v;const S=Fy(),E=S.locale??UP,_=S.firstWeekContainsDate??((f=(u=S.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,$=S.weekStartsOn??((v=(g=S.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,N=mo(n,void 0);if(!sP(N))throw new RangeError("Invalid time value");let R=r.match(nN).map(M=>{const V=M[0];if(V==="p"||V==="P"){const H=YP[V];return H(M,E.formatLong)}return M}).join("").match(tN).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const V=M[0];if(V==="'")return{isToken:!1,value:sN(M)};if(tC[V])return{isToken:!0,value:M};if(V.match(iN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");return{isToken:!1,value:M}});E.localize.preprocessor&&(R=E.localize.preprocessor(N,R));const B={firstWeekContainsDate:_,weekStartsOn:$,locale:E};return R.map(M=>{if(!M.isToken)return M.value;const V=M.value;(XP(V)||ZP(V))&&JP(V,r,String(n));const H=tC[V[0]];return H(N,V,E.localize,B)}).join("")}function sN(n){const r=n.match(rN);return r?r[1].replace(aN,"'"):n}function lN(n,r){const o=mo(n,void 0).getDay();return o===0?7:o}const oC={},mg={};function gg(n,r){try{const o=(oC[n]||(oC[n]=new Intl.DateTimeFormat("en-GB",{timeZone:n,hour:"numeric",timeZoneName:"longOffset"}).format))(r).split("GMT")[1]||"";return o in mg?mg[o]:sC(o,o.split(":"))}catch{if(n in mg)return mg[n];const o=n==null?void 0:n.match(uN);return o?sC(n,o.slice(1)):NaN}}const uN=/([+-]\d\d):?(\d\d)?/;function sC(n,r){const o=+r[0],u=+(r[1]||0);return mg[n]=o>0?o*60+u:o*60-u}let vg=class my extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(gg(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),uC(this),$k(this)):this.setTime(Date.now())}static tz(r,...o){return o.length?new my(...o,r):new my(Date.now(),r)}withTimeZone(r){return new my(+this,r)}getTimezoneOffset(){return-gg(this.timeZone,this)}setTime(r){return Date.prototype.setTime.apply(this,arguments),$k(this),+this}[Symbol.for("constructDateFrom")](r){return new my(+new Date(r),this.timeZone)}};const lC=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(n=>{if(!lC.test(n))return;const r=n.replace(lC,"$1UTC");vg.prototype[r]&&(n.startsWith("get")?vg.prototype[n]=function(){return this.internal[r]()}:(vg.prototype[n]=function(){return Date.prototype[r].apply(this.internal,arguments),cN(this),+this},vg.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),$k(this),+this}))});function $k(n){n.internal.setTime(+n),n.internal.setUTCMinutes(n.internal.getUTCMinutes()-n.getTimezoneOffset())}function cN(n){Date.prototype.setFullYear.call(n,n.internal.getUTCFullYear(),n.internal.getUTCMonth(),n.internal.getUTCDate()),Date.prototype.setHours.call(n,n.internal.getUTCHours(),n.internal.getUTCMinutes(),n.internal.getUTCSeconds(),n.internal.getUTCMilliseconds()),uC(n)}function uC(n){const r=gg(n.timeZone,n),o=new Date(+n);o.setUTCHours(o.getUTCHours()-1);const u=-new Date(+n).getTimezoneOffset(),f=-new Date(+o).getTimezoneOffset(),g=u-f,v=Date.prototype.getHours.apply(n)!==n.internal.getUTCHours();g&&v&&n.internal.setUTCMinutes(n.internal.getUTCMinutes()+g);const S=u-r;S&&Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+S);const E=gg(n.timeZone,n),_=-new Date(+n).getTimezoneOffset()-E,$=E!==r,N=_-S;if($&&N){Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+N);const R=gg(n.timeZone,n),B=E-R;B&&(n.internal.setUTCMinutes(n.internal.getUTCMinutes()+B),Date.prototype.setUTCMinutes.call(n,Date.prototype.getUTCMinutes.call(n)+B))}}let Py=class gy extends vg{static tz(r,...o){return o.length?new gy(...o,r):new gy(Date.now(),r)}toISOString(){const[r,o,u]=this.tzComponents(),f=`${r}${o}:${u}`;return this.internal.toISOString().slice(0,-1)+f}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[r,o,u,f]=this.internal.toUTCString().split(" ");return`${r==null?void 0:r.slice(0,-1)} ${u} ${o} ${f}`}toTimeString(){const r=this.internal.toUTCString().split(" ")[4],[o,u,f]=this.tzComponents();return`${r} GMT${o}${u}${f} (${dN(this.timeZone,this)})`}toLocaleString(r,o){return Date.prototype.toLocaleString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleDateString(r,o){return Date.prototype.toLocaleDateString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}toLocaleTimeString(r,o){return Date.prototype.toLocaleTimeString.call(this,r,{...o,timeZone:(o==null?void 0:o.timeZone)||this.timeZone})}tzComponents(){const r=this.getTimezoneOffset(),o=r>0?"-":"+",u=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),f=String(Math.abs(r)%60).padStart(2,"0");return[o,u,f]}withTimeZone(r){return new gy(+this,r)}[Symbol.for("constructDateFrom")](r){return new gy(+new Date(r),this.timeZone)}};function dN(n,r){return new Intl.DateTimeFormat("en-GB",{timeZone:n,timeZoneName:"long"}).format(r).slice(12)}window.pktTz=window.pktTz===void 0?"Europe/Oslo":window.pktTz;const Oa=n=>n.toISOString().split("T")[0],Pk=n=>{if(!n)return null;const r=dg(new Py(n,window.pktTz),12);return isNaN(r.getTime())?null:r},cC=(n,r)=>{const o=aa(n);return isNaN(o.getTime())?"":oN(o,r)},aa=(n="")=>dg(n===""||!n?new Py(new Date,window.pktTz):new Py(n,window.pktTz),12),Wc=(n,r,o=1)=>dg(new Py(n,r,o,window.pktTz),12),pN=n=>new Intl.DateTimeFormat("no",{dateStyle:"full",timeZone:window.pktTz}).format(n),dC=n=>{if(Array.isArray(n))return n;if(typeof n=="string")return n.split(",")},fN=n=>n?new Date(n):null,hN=n=>{if(typeof n=="string")return n.split(",").map(r=>new Date(r));if(Array.isArray(n))return n.map(r=>new Date(r))},nh={csvToArray:dC,stringToDate:fN,stringsToDate:hN},mN="pkt-calendar",gN={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"}},vN={"date-selected":{description:"Returns ISO formatted date string"}},Cp={name:mN,"css-class":"pkt-calendar",props:gN,events:vN};var yN=Object.defineProperty,bN=Object.getOwnPropertyDescriptor,rr=(n,r,o,u)=>{for(var f=u>1?void 0:u?bN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&yN(r,o,f),f};let Jn=class extends ti{constructor(){super(...arguments),this.multiple=Cp.props.multiple.default,this.maxMultiple=Cp.props.maxMultiple.default,this.range=Cp.props.range.default,this.weeknumbers=Cp.props.weeknumbers.default,this.withcontrols=Cp.props.withcontrols.default,this.selected=[],this.earliest=Cp.props.earliest.default,this.latest=Cp.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(r,o,u){r==="selected"&&u&&this.convertSelected(),super.attributeChangedCallback(r,o,u)}updated(r){super.updated(r),r.has("selected")&&this.convertSelected()}firstUpdated(r){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(r=>aa(r)),this.range&&this.selected.length===2){const r=Ak({start:aa(this.selected[0]),end:aa(this.selected[1])});if(this.inRange={},Array.isArray(r)&&r.length){const o={};for(let u=0;u<r.length;u++)o[Oa(r[u])]=this.isInRange(r[u]);this.inRange=o}}this.setCurrentMonth()}setCurrentMonth(){if(this.currentmonth===null&&!this.currentmonthtouched){this.currentmonthtouched=!0;return}this.selected.length&&this.selected[0]!==""?this.currentmonth=aa(this.selected[this.selected.length-1]):this.currentmonth===null&&(this.currentmonth=aa()),this.year=this.currentmonth.getFullYear(),this.month=this.currentmonth.getMonth()}handleKeydown(r){switch(r.key){case"ArrowLeft":this.handleArrowKey(r,-1);break;case"ArrowRight":this.handleArrowKey(r,1);break;case"ArrowUp":this.handleArrowKey(r,-7);break;case"ArrowDown":this.handleArrowKey(r,7);break}}handleArrowKey(r,o){var u,f,g;if(((u=r.target)==null?void 0:u.nodeName)==="INPUT"||((f=r.target)==null?void 0:f.nodeName)==="SELECT"||((g=r.target)==null?void 0:g.nodeName)==="BUTTON")return;r.preventDefault(),this.focusedDate||this.focusOnCurrentDate();const v=this.focusedDate?aa(this.focusedDate):Wc(this.year,this.month,1);let S=Tk(v,o);if(S){let E=this.querySelector(`div[data-date="${Oa(S)}"]`);if(E instanceof HTMLDivElement){if(E.dataset.disabled){S=Tk(S,o);let _=this.querySelector(`div[data-date="${Oa(S)}"]`);for(;_&&_ instanceof HTMLDivElement&&_.dataset.disabled;)S=Tk(S,o),_=this.querySelector(`div[data-date="${Oa(S)}"]`);E=_}E instanceof HTMLDivElement&&!E.dataset.disabled&&(this.focusedDate=Oa(S),E.focus())}}}render(){return qe`
|
|
376
376
|
<div
|
|
377
377
|
class="pkt-calendar ${this.weeknumbers?"pkt-cal-weeknumbers":wt}"
|
|
378
378
|
@focusout=${this.closeEvent}
|
|
@@ -447,7 +447,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
447
447
|
/>
|
|
448
448
|
</div> `):r.push(qe`<div class="pkt-txt-16-medium" aria-live="polite">
|
|
449
449
|
${this.monthStrings[this.month]} ${this.year}
|
|
450
|
-
</div>`),r}renderDayView(r,o,u){var f;const g=Wc(this.year,this.month,r),v=Oa(g),S=v===Oa(o),E=this.selected.includes(v),_=
|
|
450
|
+
</div>`),r}renderDayView(r,o,u){var f;const g=Wc(this.year,this.month,r),v=Oa(g),S=v===Oa(o),E=this.selected.includes(v),_=pN(g),$=this.isExcluded(u,g)||!E&&this.multiple&&this.maxMultiple>0&&this.selected.length>=this.maxMultiple,N=this.focusedDate?this.focusedDate===v&&!$?"0":"-1":!$&&this.tabIndexSet===0||this.tabIndexSet===r?"0":"-1";N==="0"&&(this.tabIndexSet=r),this.selectableDates.push({currentDateISO:v,isDisabled:$,tabindex:N});const R={"pkt-cal-today":S,"pkt-cal-selected":E,"pkt-cal-in-range":this.inRange[v],"pkt-cal-excluded":this.isExcluded(u,g),"pkt-cal-in-range-first":this.range&&(this.selected.length===2||this.rangeHovered!==null)&&v===this.selected[0],"pkt-cal-in-range-last":this.range&&this.selected.length===2&&v===this.selected[1],"pkt-cal-range-hover":this.rangeHovered!==null&&v===Oa(this.rangeHovered)};return qe`<td class=${kn(R)}>
|
|
451
451
|
<div
|
|
452
452
|
?aria-selected=${E}
|
|
453
453
|
role="gridcell"
|
|
@@ -463,7 +463,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
463
463
|
>
|
|
464
464
|
<span class="pkt-btn__text pkt-txt-14-light">${r}</span>
|
|
465
465
|
</div>
|
|
466
|
-
</td>`}renderCalendarBody(){const r=aa(),o=Wc(this.year,this.month,1),u=Wc(this.year,this.month+1,0),f=(o.getDay()+6)%7,g=u.getDate(),v=Math.ceil((g+f)/7),S=Wc(this.year,this.month,0).getDate();let E=1;this.week=
|
|
466
|
+
</td>`}renderCalendarBody(){const r=aa(),o=Wc(this.year,this.month,1),u=Wc(this.year,this.month+1,0),f=(o.getDay()+6)%7,g=u.getDate(),v=Math.ceil((g+f)/7),S=Wc(this.year,this.month,0).getDate();let E=1;this.week=eC(Wc(this.year,this.month,1));const _=[];for(let $=0;$<v;$++){const N=[];this.weeknumbers&&N.push(qe`<td class="pkt-cal-week">${this.week}</td>`),this.week++;for(let R=1;R<8;R++)if($===0&&R<f+1){const B=S-(f-R);N.push(qe`<td class="pkt-cal-other">
|
|
467
467
|
<div
|
|
468
468
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
469
469
|
data-disabled="disabled"
|
|
@@ -479,11 +479,11 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
479
479
|
</div>
|
|
480
480
|
</td>`),E++):(N.push(this.renderDayView(E,r,R)),E++);_.push(qe`<tr class="pkt-cal-week-row" role="row">
|
|
481
481
|
${N}
|
|
482
|
-
</tr>`)}return _}isExcluded(r,o){return this.excludeweekdays.includes(r.toString())||this.earliest&&dg(o,1)<aa(this.earliest)||this.latest&&dg(o,-1)>aa(this.latest)?!0:this.excludedates.some(u=>typeof u=="string"?u===Oa(o):u.toDateString()===o.toDateString())}isPrevMonthAllowed(){const r=Wc(this.year,this.month,0);return!(this.earliest&&aa(this.earliest)>r)}prevMonth(){const r=this.month===0?11:this.month-1,o=this.month===0?this.year-1:this.year;this.changeMonth(o,r)}isNextMonthAllowed(){const r=Wc(this.month===11?this.year+1:this.year,this.month===11?0:this.month+1,1);return!(this.latest&&aa(this.latest)<r)}nextMonth(){const r=this.month===11?0:this.month+1,o=this.month===11?this.year+1:this.year;this.changeMonth(o,r)}changeMonth(r,o){this.year=typeof r=="string"?parseInt(r):r,this.month=typeof o=="string"?parseInt(o):o,this.tabIndexSet=0,this.focusedDate=null,this.selectableDates=[]}isInRange(r){if(this.range&&this.selected.length===2){if(r>aa(this.selected[0])&&r<aa(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&r>aa(this.selected[0])&&r<this.rangeHovered)return!0;return!1}isRangeAllowed(r){let o=!0;if(this._selected.length===1){const u=Ak({start:this._selected[0],end:r});if(Array.isArray(u)&&u.length)for(let f=0;f<u.length;f++)this.excludedates.forEach(g=>{g>this._selected[0]&&g<r&&(o=!1)}),this.excludeweekdays.includes(
|
|
482
|
+
</tr>`)}return _}isExcluded(r,o){return this.excludeweekdays.includes(r.toString())||this.earliest&&dg(o,1)<aa(this.earliest)||this.latest&&dg(o,-1)>aa(this.latest)?!0:this.excludedates.some(u=>typeof u=="string"?u===Oa(o):u.toDateString()===o.toDateString())}isPrevMonthAllowed(){const r=Wc(this.year,this.month,0);return!(this.earliest&&aa(this.earliest)>r)}prevMonth(){const r=this.month===0?11:this.month-1,o=this.month===0?this.year-1:this.year;this.changeMonth(o,r)}isNextMonthAllowed(){const r=Wc(this.month===11?this.year+1:this.year,this.month===11?0:this.month+1,1);return!(this.latest&&aa(this.latest)<r)}nextMonth(){const r=this.month===11?0:this.month+1,o=this.month===11?this.year+1:this.year;this.changeMonth(o,r)}changeMonth(r,o){this.year=typeof r=="string"?parseInt(r):r,this.month=typeof o=="string"?parseInt(o):o,this.tabIndexSet=0,this.focusedDate=null,this.selectableDates=[]}isInRange(r){if(this.range&&this.selected.length===2){if(r>aa(this.selected[0])&&r<aa(this.selected[1]))return!0}else if(this.range&&this.selected.length===1&&this.rangeHovered&&r>aa(this.selected[0])&&r<this.rangeHovered)return!0;return!1}isRangeAllowed(r){let o=!0;if(this._selected.length===1){const u=Ak({start:this._selected[0],end:r});if(Array.isArray(u)&&u.length)for(let f=0;f<u.length;f++)this.excludedates.forEach(g=>{g>this._selected[0]&&g<r&&(o=!1)}),this.excludeweekdays.includes(lN(u[f]).toString())&&(o=!1)}return o}emptySelected(){this.selected=[],this._selected=[],this.inRange={}}addToSelected(r){this.selected.includes(Oa(r))||(this.selected=[...this.selected,Oa(r)],this._selected=[...this._selected,r],this.range&&this.selected.length===2&&this.close())}removeFromSelected(r){if(this.selected.length===1)this.emptySelected();else{const o=this.selected.indexOf(Oa(r)),u=[...this.selected],f=[...this._selected];u.splice(o,1),f.splice(o,1),this.selected=u,this._selected=f}}toggleSelected(r){const o=Oa(r);this.selected.includes(o)?this.removeFromSelected(r):this.maxMultiple&&this.selected.length>=this.maxMultiple||this.addToSelected(r)}handleRangeSelect(r){const o=Oa(r);return this.selected.includes(o)?this.selected.indexOf(o)===0?this.emptySelected():this.removeFromSelected(r):this.selected.length>1?(this.emptySelected(),this.addToSelected(r)):(this.selected.length===1&&!this.isRangeAllowed(r)&&this.emptySelected(),this.selected.length===1&&this._selected[0]>r&&this.emptySelected(),this.addToSelected(r)),Promise.resolve()}handleRangeHover(r){if(this.range&&this._selected.length===1&&this.isRangeAllowed(r)&&this._selected[0]<r){this.rangeHovered=r,this.inRange={};const o=Ak({start:this._selected[0],end:r});if(Array.isArray(o)&&o.length)for(let u=0;u<o.length;u++)this.inRange[Oa(o[u])]=this.isInRange(o[u])}else this.rangeHovered=null}handleDateSelect(r){if(r)return this.range?this.handleRangeSelect(r):this.multiple?this.toggleSelected(r):(this.selected.includes(Oa(r))?this.emptySelected():(this.emptySelected(),this.addToSelected(r)),this.close()),this.dispatchEvent(new CustomEvent("date-selected",{detail:this.selected,bubbles:!0,composed:!0})),Promise.resolve()}focusOnCurrentDate(){const r=Oa(aa()),o=this.querySelector(`div[data-date="${r}"]`);if(o instanceof HTMLDivElement)this.focusedDate=r,o.focus();else{const u=this.selectableDates.find(f=>!f.isDisabled);if(u){const f=this.querySelector(`div[data-date="${u.currentDateISO}"]`);f instanceof HTMLDivElement&&(this.focusedDate=u.currentDateISO,f.focus())}}}closeEvent(r){!this.contains(r.relatedTarget)&&!r.target.classList.contains("pkt-hide")&&this.close()}close(){this.dispatchEvent(new CustomEvent("close",{detail:!0,bubbles:!0,composed:!0}))}};rr([X({type:Boolean})],Jn.prototype,"multiple",2),rr([X({type:Number})],Jn.prototype,"maxMultiple",2),rr([X({type:Boolean})],Jn.prototype,"range",2),rr([X({type:Boolean})],Jn.prototype,"weeknumbers",2),rr([X({type:Boolean})],Jn.prototype,"withcontrols",2),rr([X({converter:nh.csvToArray})],Jn.prototype,"selected",2),rr([X({type:String})],Jn.prototype,"earliest",2),rr([X({type:String})],Jn.prototype,"latest",2),rr([X({converter:nh.stringsToDate})],Jn.prototype,"excludedates",2),rr([X({converter:nh.csvToArray})],Jn.prototype,"excludeweekdays",2),rr([X({converter:nh.stringToDate})],Jn.prototype,"currentmonth",2),rr([X({type:Array})],Jn.prototype,"dayStrings",2),rr([X({type:Array})],Jn.prototype,"dayStringsLong",2),rr([X({type:Array})],Jn.prototype,"monthStrings",2),rr([X({type:String})],Jn.prototype,"weekString",2),rr([X({type:String})],Jn.prototype,"prevMonthString",2),rr([X({type:String})],Jn.prototype,"nextMonthString",2),rr([X({type:Array})],Jn.prototype,"_selected",2),rr([X({type:Number})],Jn.prototype,"year",2),rr([X({type:Number})],Jn.prototype,"month",2),rr([X({type:Number})],Jn.prototype,"week",2),rr([X({type:Date})],Jn.prototype,"rangeHovered",2),rr([zr()],Jn.prototype,"inRange",2),rr([zr()],Jn.prototype,"focusedDate",2),rr([zr()],Jn.prototype,"selectableDates",2),rr([zr()],Jn.prototype,"currentmonthtouched",2),rr([zr()],Jn.prototype,"tabIndexSet",2),Jn=rr([ra("pkt-calendar")],Jn);/**
|
|
483
483
|
* @license
|
|
484
484
|
* Copyright 2018 Google LLC
|
|
485
485
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
486
|
-
*/const Dr=n=>n??wt,
|
|
486
|
+
*/const Dr=n=>n??wt,kN="pkt-tag",wN=!0,DN={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","blue-light","blue-dark","green","red","beige","yellow","gray"]},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"}},SN={default:{description:"Teksten til tag"}},rh={name:kN,"css-class":"pkt-tag",isElement:wN,props:DN,slots:SN};var CN=Object.defineProperty,xN=Object.getOwnPropertyDescriptor,Nu=(n,r,o,u)=>{for(var f=u>1?void 0:u?xN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&CN(r,o,f),f};let Gs=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.closeTag=rh.props.closeTag.default,this.size=rh.props.size.default,this.skin=rh.props.skin.default,this.textStyle=rh.props.textStyle.default,this.iconName=void 0,this.type=rh.props.type.default,this.ariaLabel=rh.props.ariaLabel.default,this._isClosed=!1,this.close=r=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:r},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:r},bubbles:!0,composed:!0}))},this.slotController=new Wi(this,this.defaultSlot),this._isClosed=!1}render(){const r={"pkt-tag":!0,[`pkt-tag--${this.size}`]:!!this.size,[`pkt-tag--${this.skin}`]:!!this.skin,[`pkt-tag--${this.textStyle}`]:!!this.textStyle},o={"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?qe`
|
|
487
487
|
<button
|
|
488
488
|
class=${kn(o)}
|
|
489
489
|
type=${this.type}
|
|
@@ -499,7 +499,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
499
499
|
${this.iconName&&qe` <pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon> `}
|
|
500
500
|
<span ${Rn(this.defaultSlot)}></span>
|
|
501
501
|
</span>
|
|
502
|
-
`}};Nu([X({type:Boolean,reflect:!0})],Gs.prototype,"closeTag",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"size",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"skin",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"textStyle",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"iconName",2),Nu([X({type:String})],Gs.prototype,"type",2),Nu([X({type:String})],Gs.prototype,"ariaLabel",2),Nu([zr()],Gs.prototype,"_isClosed",2),Gs=Nu([ra("pkt-tag")],Gs);const
|
|
502
|
+
`}};Nu([X({type:Boolean,reflect:!0})],Gs.prototype,"closeTag",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"size",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"skin",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"textStyle",2),Nu([X({type:String,reflect:!0})],Gs.prototype,"iconName",2),Nu([X({type:String})],Gs.prototype,"type",2),Nu([X({type:String})],Gs.prototype,"ariaLabel",2),Nu([zr()],Gs.prototype,"_isClosed",2),Gs=Nu([ra("pkt-tag")],Gs);const EN="pkt-card",_N=!0,TN={heading:{type:"string",name:"Heading",description:"Tittel på kortet"},subheading:{type:"string",name:"Subheading",description:"Undertittel på kortet"},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"},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}}}},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}}}},AN={default:{description:"Innholdet i kortet"}},pC={name:EN,"css-class":"pkt-card",isElement:_N,props:TN,slots:AN};var FN=Object.defineProperty,$N=Object.getOwnPropertyDescriptor,xp=(n,r,o,u)=>{for(var f=u>1?void 0:u?$N(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&FN(r,o,f),f};let Ru=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.skin=pC.props.skin.default,this.direction=pC.props.direction.default,this.image={src:"",alt:""},this.heading="",this.subheading="",this.tags=[],this.slotController=new Wi(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){const r={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction};return qe`
|
|
503
503
|
<div class=${kn(r)}>
|
|
504
504
|
${this.image.src&&qe`
|
|
505
505
|
<div class="pkt-card__image">
|
|
@@ -526,7 +526,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
526
526
|
${this.defaultSlot&&qe`<div class="pkt-card__content" ${Rn(this.defaultSlot)}></div>`}
|
|
527
527
|
</div>
|
|
528
528
|
</div>
|
|
529
|
-
`}};xp([X({type:String,reflect:!0})],Ru.prototype,"skin",2),xp([X({type:String,reflect:!0})],Ru.prototype,"direction",2),xp([X({type:Object,reflect:!0})],Ru.prototype,"image",2),xp([X({type:String,reflect:!0})],Ru.prototype,"heading",2),xp([X({type:String,reflect:!0})],Ru.prototype,"subheading",2),xp([X({type:Array,reflect:!0})],Ru.prototype,"tags",2),Ru=xp([ra("pkt-card")],Ru);const pC=()=>("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16),ah=()=>{const n=pC(),r=pC();return n.slice(0,8)+"-"+n.slice(8,12)+"-4"+n.slice(13)+"-a"+r.slice(1,4)+"-"+r.slice(4)},$N="pkt-inputwrapper",PN={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},NN={forId:{name:"For ID",description:"Id-en til skjemaelementet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for skjemaelementet",type:"string",required:!0},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for skjemaelementet",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"},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver skjemaelementet",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i skjemaelementet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn i teller",description:"Maks antall tegn som kan skrives i skjemaelementet",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 skjemaelementet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til skjemaelementet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at skjemaelementet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at skjemaelementet skal flyte sammen med sidens innhold",type:"boolean",default:!1},hasFieldset:{name:"Har fieldset",description:"Indikerer at skjemaelementet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om skjemaelementet skal bruke en wrapper",type:"boolean",displayAsFalse:!0,default:!0}},zo={name:$N,"css-class":"pkt-inputwrapper",isElement:!0,events:PN,props:NN};var RN=Object.defineProperty,On=(n,r,o,u)=>{for(var f=void 0,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=v(r,o,f)||f);return f&&RN(r,o,f),f};let fn=class extends ti{constructor(){super(),this.defaultValue=null,this.disabled=!1,this.readonly=!1,this.required=!1,this.max=null,this.maxlength=null,this.min=null,this.minlength=null,this.ariaDescribedBy=null,this.ariaLabelledby=null,this.name="",this.pattern=null,this.placeholder=null,this.id=ah(),this.counter=!1,this.hasError=!1,this.inline=!1,this.optionalTag=!1,this.requiredTag=!1,this.skipForwardTestid=!1,this.useWrapper=!0,this.fullwidth=!1,this.counterMaxLength=0,this.errorMessage="",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=zo.props.helptextDropdownButton.default,this.label=null,this.optionalText=Ws.forms.labels.optional,this.requiredText=Ws.forms.labels.required,this.dataTestid="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(r){var o,u,f,g,v,S,E,_;r&&(this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Ws.forms.messages.required,r):(o=r.validity)!=null&&o.typeMismatch||(u=r.validity)!=null&&u.badInput?this.internals.setValidity({typeMismatch:!0},Ws.forms.messages.invalid,r):(f=r.validity)!=null&&f.patternMismatch?this.internals.setValidity({patternMismatch:!0},Ws.forms.messages.invalidPattern,r):(g=r.validity)!=null&&g.tooShort||this.minlength&&this.minlength>0&&this.value.length<this.minlength?this.internals.setValidity({tooShort:!0},Ws.forms.messages.tooShort,r):(v=r.validity)!=null&&v.tooLong||this.maxlength&&this.maxlength>0&&this.value.length>this.maxlength?this.internals.setValidity({tooLong:!0},Ws.forms.messages.tooLong,r):(S=r.validity)!=null&&S.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},Ws.forms.messages.rangeUnderflow,r):(E=r.validity)!=null&&E.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},Ws.forms.messages.rangeOverflow,r):(_=r.validity)!=null&&_.customError?this.internals.setValidity({customError:!0},r.validationMessage,r):this.internals.setValidity({}))}setFormValue(r){if(this.internals)if(Array.isArray(r)){const o=new FormData;r.forEach(u=>{o.append(this.name,u)}),this.internals.setFormValue(o)}else this.internals.setFormValue(r)}valueChecked(r){this.touched&&(typeof r=="string"?(this.checked=r==="true",this.internals.ariaChecked=r==="true"):typeof r=="boolean"&&(this.checked=r,this.internals.ariaChecked=r),this.checked?this.internals.states.add("--checked"):this.internals.states.delete("--checked"),this.internals.setFormValue(this.checked?this.value:null,this.checked?"checked":"unchecked"),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:this.checked,bubbles:!0,composed:!0})),this.internals.reportValidity())}valueChanged(r,o){(o!==this.value||o!==this._value)&&(typeof r=="string"?((this.multiple||this.range)&&r.includes(",")&&(r=r.split(",")),this.value=r,this._value=Array.isArray(r)?r:[r]):Array.isArray(r)?(this.value=r,this._value=r):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&o&&o.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(o==null?void 0:o.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate()))}clearInputValue(){const r=this.multiple||this.range?[]:"";this.value=r,this.internals.setFormValue(r),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:r,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(r){if(!this.touched){this.touched=!0,r&&this.setFormValue(r);return}typeof r!="string"&&!Array.isArray(r)||((this.range||this.multiple)&&!Array.isArray(r)&&r.includes(",")&&(r=r.split(",")),!this.multiple&&!this.range&&Array.isArray(r)&&(r=r[0]),this.setFormValue(r),this.manageValidity(this.inputRef.value),this.inputRefTo&&this.manageValidity(this.inputRefTo.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:r,bubbles:!0,composed:!0})),this.internals.reportValidity())}updated(r){super.updated(r),r.has("dataTestid")&&this.dataTestid&&this.inputRef.value&&(this.skipForwardTestid?this.hasAttribute("data-testid")||this.setAttribute("data-testid",this.dataTestid):(this.inputRef.value.dataset.testid=this.dataTestid,this.removeAttribute("data-testid")))}firstUpdated(r){super.firstUpdated(r),this.value&&this.defaultValue!==null&&(this.defaultValue=this.value),this.defaultValue!==null&&!this.value&&this.valueChanged(this.defaultValue,null),this.defaultChecked&&(this.internals.ariaChecked=!0,this.checked=!0),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.ariaDisabled=!0),this.id&&!this.name&&(this.name=this.id),this.setFormValue(this.value),this.inputRef&&this.inputRef.value&&(this.inputRef.value.setAttribute("form",""),this.manageValidity(this.inputRef.value)),this.inputRefTo&&this.inputRefTo.value&&(this.inputRefTo.value.setAttribute("form",""),this.manageValidity(this.inputRefTo.value))}};On([X()],fn.prototype,"defaultValue"),On([X({type:Boolean,reflect:!0})],fn.prototype,"disabled"),On([X({type:Boolean,reflect:!0})],fn.prototype,"readonly"),On([X({type:Boolean,reflect:!0})],fn.prototype,"required"),On([X({type:Number,reflect:!0})],fn.prototype,"max"),On([X({type:Number,reflect:!0})],fn.prototype,"maxlength"),On([X({type:Number,reflect:!0})],fn.prototype,"min"),On([X({type:Number,reflect:!0})],fn.prototype,"minlength"),On([X({type:String})],fn.prototype,"ariaDescribedBy"),On([X({type:String})],fn.prototype,"ariaLabelledby"),On([X({type:String,reflect:!0})],fn.prototype,"name"),On([X({type:String,reflect:!0})],fn.prototype,"pattern"),On([X({type:String,reflect:!0})],fn.prototype,"placeholder"),On([X({type:String,reflect:!0})],fn.prototype,"id"),On([X({type:Boolean})],fn.prototype,"counter"),On([X({type:Boolean})],fn.prototype,"hasError"),On([X({type:Boolean})],fn.prototype,"inline"),On([X({type:Boolean})],fn.prototype,"optionalTag"),On([X({type:Boolean})],fn.prototype,"requiredTag"),On([X({type:Boolean})],fn.prototype,"skipForwardTestid"),On([X({type:Boolean})],fn.prototype,"useWrapper"),On([X({type:Boolean,reflect:!0})],fn.prototype,"fullwidth"),On([X({type:Number})],fn.prototype,"counterMaxLength"),On([X({type:String})],fn.prototype,"errorMessage"),On([X({type:String})],fn.prototype,"helptext"),On([X({type:String})],fn.prototype,"helptextDropdown"),On([X({type:String})],fn.prototype,"helptextDropdownButton"),On([X({type:String})],fn.prototype,"label"),On([X({type:String})],fn.prototype,"optionalText"),On([X({type:String})],fn.prototype,"requiredText"),On([X({type:String,attribute:"data-testid"})],fn.prototype,"dataTestid"),On([zr()],fn.prototype,"touched");var ON=Object.defineProperty,LN=Object.getOwnPropertyDescriptor,Al=(n,r,o,u)=>{for(var f=u>1?void 0:u?LN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&ON(r,o,f),f};let ls=class extends fn{constructor(){super(...arguments),this.inputRef=qn(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.isSwitch=!1,this.labelPosition="right",this.hideLabel=!1,this.checked=!1,this.type="checkbox"}connectedCallback(){super.connectedCallback()}attributeChangedCallback(r,o,u){r==="defaultChecked"&&!this.checked&&(this.checked=this.defaultChecked),r==="checked"&&(this.checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(r,o,u)}firstUpdated(r){r.has("defaultChecked")&&!this.checked&&(this.checked=this.defaultChecked),super.firstUpdated(r)}render(){const r=kn({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),o=kn({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),u=kn({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--left":this.labelPosition==="left","pkt-input-check__input-label--right":this.labelPosition==="right","pkt-sr-only":this.hideLabel}),f=()=>qe`
|
|
529
|
+
`}};xp([X({type:String,reflect:!0})],Ru.prototype,"skin",2),xp([X({type:String,reflect:!0})],Ru.prototype,"direction",2),xp([X({type:Object,reflect:!0})],Ru.prototype,"image",2),xp([X({type:String,reflect:!0})],Ru.prototype,"heading",2),xp([X({type:String,reflect:!0})],Ru.prototype,"subheading",2),xp([X({type:Array,reflect:!0})],Ru.prototype,"tags",2),Ru=xp([ra("pkt-card")],Ru);const fC=()=>("00000000000000000"+(Math.random()*18446744073709552e3).toString(16)).slice(-16),ah=()=>{const n=fC(),r=fC();return n.slice(0,8)+"-"+n.slice(8,12)+"-4"+n.slice(13)+"-a"+r.slice(1,4)+"-"+r.slice(4)},PN="pkt-inputwrapper",NN={toggleHelpText:{description:"Event for å vise eller skjule hjelpetekst i dropdown"}},RN={forId:{name:"For ID",description:"Id-en til skjemaelementet som dette wrapper rundt",type:"string",required:!0},label:{name:"Merkelapp",description:"Merkelapp for skjemaelementet",type:"string",required:!0},helptext:{name:"Hjelpetekst",description:"Hjelpetekst for skjemaelementet",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"},ariaDescribedby:{name:"aria-describedby",description:"Id-en til elementet som beskriver skjemaelementet",type:"string"},counter:{name:"Teller",description:"Teller for antall tegn i skjemaelementet",type:"boolean",default:!1},counterCurrent:{name:"Tellerverdi",description:"Tellerens nåværende verdi",type:"number"},counterMaxLength:{name:"Maks tegn i teller",description:"Maks antall tegn som kan skrives i skjemaelementet",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 skjemaelementet har en feil",type:"boolean",default:!1},errorMessage:{name:"Feilmelding",description:"Feilmelding som vises i tilknytning til skjemaelementet",type:"string"},disabled:{name:"Deaktivert",description:"Indikerer at skjemaelementet er deaktivert",type:"boolean",default:!1},inline:{name:"Inline",description:"Indikerer at skjemaelementet skal flyte sammen med sidens innhold",type:"boolean",default:!1},hasFieldset:{name:"Har fieldset",description:"Indikerer at skjemaelementet er en del av et fieldset",type:"boolean",default:!1},useWrapper:{name:"Bruk wrapper",description:"Indikerer om skjemaelementet skal bruke en wrapper",type:"boolean",displayAsFalse:!0,default:!0}},zo={name:PN,"css-class":"pkt-inputwrapper",isElement:!0,events:NN,props:RN};var ON=Object.defineProperty,On=(n,r,o,u)=>{for(var f=void 0,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=v(r,o,f)||f);return f&&ON(r,o,f),f};let fn=class extends ti{constructor(){super(),this.defaultValue=null,this.disabled=!1,this.readonly=!1,this.required=!1,this.max=null,this.maxlength=null,this.min=null,this.minlength=null,this.ariaDescribedBy=null,this.ariaLabelledby=null,this.name="",this.pattern=null,this.placeholder=null,this.id=ah(),this.counter=!1,this.hasError=!1,this.inline=!1,this.optionalTag=!1,this.requiredTag=!1,this.skipForwardTestid=!1,this.useWrapper=!0,this.fullwidth=!1,this.counterMaxLength=0,this.errorMessage="",this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=zo.props.helptextDropdownButton.default,this.label=null,this.optionalText=Ws.forms.labels.optional,this.requiredText=Ws.forms.labels.required,this.dataTestid="",this.touched=!1,this.internals=this.attachInternals()}static get formAssociated(){return!0}manageValidity(r){var o,u,f,g,v,S,E,_;r&&(this.required&&!this.value?this.internals.setValidity({valueMissing:!0},Ws.forms.messages.required,r):(o=r.validity)!=null&&o.typeMismatch||(u=r.validity)!=null&&u.badInput?this.internals.setValidity({typeMismatch:!0},Ws.forms.messages.invalid,r):(f=r.validity)!=null&&f.patternMismatch?this.internals.setValidity({patternMismatch:!0},Ws.forms.messages.invalidPattern,r):(g=r.validity)!=null&&g.tooShort||this.minlength&&this.minlength>0&&this.value.length<this.minlength?this.internals.setValidity({tooShort:!0},Ws.forms.messages.tooShort,r):(v=r.validity)!=null&&v.tooLong||this.maxlength&&this.maxlength>0&&this.value.length>this.maxlength?this.internals.setValidity({tooLong:!0},Ws.forms.messages.tooLong,r):(S=r.validity)!=null&&S.rangeUnderflow?this.internals.setValidity({rangeUnderflow:!0},Ws.forms.messages.rangeUnderflow,r):(E=r.validity)!=null&&E.rangeOverflow?this.internals.setValidity({rangeOverflow:!0},Ws.forms.messages.rangeOverflow,r):(_=r.validity)!=null&&_.customError?this.internals.setValidity({customError:!0},r.validationMessage,r):this.internals.setValidity({}))}setFormValue(r){if(this.internals)if(Array.isArray(r)){const o=new FormData;r.forEach(u=>{o.append(this.name,u)}),this.internals.setFormValue(o)}else this.internals.setFormValue(r)}valueChecked(r){this.touched&&(typeof r=="string"?(this.checked=r==="true",this.internals.ariaChecked=r==="true"):typeof r=="boolean"&&(this.checked=r,this.internals.ariaChecked=r),this.checked?this.internals.states.add("--checked"):this.internals.states.delete("--checked"),this.internals.setFormValue(this.checked?this.value:null,this.checked?"checked":"unchecked"),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:this.checked,bubbles:!0,composed:!0})),this.internals.reportValidity())}valueChanged(r,o){(o!==this.value||o!==this._value)&&(typeof r=="string"?((this.multiple||this.range)&&r.includes(",")&&(r=r.split(",")),this.value=r,this._value=Array.isArray(r)?r:[r]):Array.isArray(r)?(this.value=r,this._value=r):(this.value="",this._value=[]),(!this.value||this.value.length===0)&&o&&o.length!==0?this.clearInputValue():this.value&&this.value.toString()!==(o==null?void 0:o.toString())&&this.onChange(this.value),this.updateComplete.then(()=>this.requestUpdate()))}clearInputValue(){const r=this.multiple||this.range?[]:"";this.value=r,this.internals.setFormValue(r),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:r,bubbles:!0,composed:!0}))}onFocus(){this.dispatchEvent(new FocusEvent("focus"))}onBlur(){this.dispatchEvent(new FocusEvent("blur"))}onInput(){this.dispatchEvent(new InputEvent("input"))}onChange(r){if(!this.touched){this.touched=!0,r&&this.setFormValue(r);return}typeof r!="string"&&!Array.isArray(r)||((this.range||this.multiple)&&!Array.isArray(r)&&r.includes(",")&&(r=r.split(",")),!this.multiple&&!this.range&&Array.isArray(r)&&(r=r[0]),this.setFormValue(r),this.manageValidity(this.inputRef.value),this.inputRefTo&&this.manageValidity(this.inputRefTo.value),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("value-change",{detail:r,bubbles:!0,composed:!0})),this.internals.reportValidity())}updated(r){super.updated(r),r.has("dataTestid")&&this.dataTestid&&this.inputRef.value&&(this.skipForwardTestid?this.hasAttribute("data-testid")||this.setAttribute("data-testid",this.dataTestid):(this.inputRef.value.dataset.testid=this.dataTestid,this.removeAttribute("data-testid")))}firstUpdated(r){super.firstUpdated(r),this.value&&this.defaultValue!==null&&(this.defaultValue=this.value),this.defaultValue!==null&&!this.value&&this.valueChanged(this.defaultValue,null),this.defaultChecked&&(this.internals.ariaChecked=!0,this.checked=!0),this.required&&(this.internals.ariaRequired=!0),this.disabled&&(this.internals.ariaDisabled=!0),this.id&&!this.name&&(this.name=this.id),this.setFormValue(this.value),this.inputRef&&this.inputRef.value&&(this.inputRef.value.setAttribute("form",""),this.manageValidity(this.inputRef.value)),this.inputRefTo&&this.inputRefTo.value&&(this.inputRefTo.value.setAttribute("form",""),this.manageValidity(this.inputRefTo.value))}};On([X()],fn.prototype,"defaultValue"),On([X({type:Boolean,reflect:!0})],fn.prototype,"disabled"),On([X({type:Boolean,reflect:!0})],fn.prototype,"readonly"),On([X({type:Boolean,reflect:!0})],fn.prototype,"required"),On([X({type:Number,reflect:!0})],fn.prototype,"max"),On([X({type:Number,reflect:!0})],fn.prototype,"maxlength"),On([X({type:Number,reflect:!0})],fn.prototype,"min"),On([X({type:Number,reflect:!0})],fn.prototype,"minlength"),On([X({type:String})],fn.prototype,"ariaDescribedBy"),On([X({type:String})],fn.prototype,"ariaLabelledby"),On([X({type:String,reflect:!0})],fn.prototype,"name"),On([X({type:String,reflect:!0})],fn.prototype,"pattern"),On([X({type:String,reflect:!0})],fn.prototype,"placeholder"),On([X({type:String,reflect:!0})],fn.prototype,"id"),On([X({type:Boolean})],fn.prototype,"counter"),On([X({type:Boolean})],fn.prototype,"hasError"),On([X({type:Boolean})],fn.prototype,"inline"),On([X({type:Boolean})],fn.prototype,"optionalTag"),On([X({type:Boolean})],fn.prototype,"requiredTag"),On([X({type:Boolean})],fn.prototype,"skipForwardTestid"),On([X({type:Boolean})],fn.prototype,"useWrapper"),On([X({type:Boolean,reflect:!0})],fn.prototype,"fullwidth"),On([X({type:Number})],fn.prototype,"counterMaxLength"),On([X({type:String})],fn.prototype,"errorMessage"),On([X({type:String})],fn.prototype,"helptext"),On([X({type:String})],fn.prototype,"helptextDropdown"),On([X({type:String})],fn.prototype,"helptextDropdownButton"),On([X({type:String})],fn.prototype,"label"),On([X({type:String})],fn.prototype,"optionalText"),On([X({type:String})],fn.prototype,"requiredText"),On([X({type:String,attribute:"data-testid"})],fn.prototype,"dataTestid"),On([zr()],fn.prototype,"touched");var LN=Object.defineProperty,BN=Object.getOwnPropertyDescriptor,Al=(n,r,o,u)=>{for(var f=u>1?void 0:u?BN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&LN(r,o,f),f};let ls=class extends fn{constructor(){super(...arguments),this.inputRef=qn(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.isSwitch=!1,this.labelPosition="right",this.hideLabel=!1,this.checked=!1,this.type="checkbox"}connectedCallback(){super.connectedCallback()}attributeChangedCallback(r,o,u){r==="defaultChecked"&&!this.checked&&(this.checked=this.defaultChecked),r==="checked"&&(this.checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(r,o,u)}firstUpdated(r){r.has("defaultChecked")&&!this.checked&&(this.checked=this.defaultChecked),super.firstUpdated(r)}render(){const r=kn({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),o=kn({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError}),u=kn({"pkt-input-check__input-label":!0,"pkt-input-check__input-label--left":this.labelPosition==="left","pkt-input-check__input-label--right":this.labelPosition==="right","pkt-sr-only":this.hideLabel}),f=()=>qe`
|
|
530
530
|
<label class=${u} for=${this.id+"-internal"}>
|
|
531
531
|
${this.label}
|
|
532
532
|
${this.checkHelptext?qe`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>`:wt}
|
|
@@ -551,7 +551,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
551
551
|
${this.labelPosition==="right"?f():wt}
|
|
552
552
|
</div>
|
|
553
553
|
</div>
|
|
554
|
-
`}toggleChecked(r){r.stopImmediatePropagation(),this.touched=!0,this.inputRef.value&&(this.checked=this.inputRef.value.matches(":checked"),this.valueChecked(this.checked))}};Al([X({type:String,reflect:!0})],ls.prototype,"value",2),Al([X({type:String})],ls.prototype,"checkHelptext",2),Al([X({type:Boolean})],ls.prototype,"defaultChecked",2),Al([X({type:Boolean})],ls.prototype,"hasTile",2),Al([X({type:Boolean})],ls.prototype,"isSwitch",2),Al([X({type:String})],ls.prototype,"labelPosition",2),Al([X({type:Boolean})],ls.prototype,"hideLabel",2),Al([X({type:Boolean,reflect:!0})],ls.prototype,"checked",2),Al([X({type:String,reflect:!0})],ls.prototype,"type",2),ls=Al([ra("pkt-checkbox")],ls);var
|
|
554
|
+
`}toggleChecked(r){r.stopImmediatePropagation(),this.touched=!0,this.inputRef.value&&(this.checked=this.inputRef.value.matches(":checked"),this.valueChecked(this.checked))}};Al([X({type:String,reflect:!0})],ls.prototype,"value",2),Al([X({type:String})],ls.prototype,"checkHelptext",2),Al([X({type:Boolean})],ls.prototype,"defaultChecked",2),Al([X({type:Boolean})],ls.prototype,"hasTile",2),Al([X({type:Boolean})],ls.prototype,"isSwitch",2),Al([X({type:String})],ls.prototype,"labelPosition",2),Al([X({type:Boolean})],ls.prototype,"hideLabel",2),Al([X({type:Boolean,reflect:!0})],ls.prototype,"checked",2),Al([X({type:String,reflect:!0})],ls.prototype,"type",2),ls=Al([ra("pkt-checkbox")],ls);var jN=Object.defineProperty,IN=Object.getOwnPropertyDescriptor,ih=(n,r,o,u)=>{for(var f=u>1?void 0:u?IN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&jN(r,o,f),f};let Vc=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.forId=ah(),this.helptext="",this.helptextDropdown="",this.helptextDropdownButton=zo.props.helptextDropdownButton.default,this.isHelpTextOpen=!1,this.slotController=new Wi(this,this.defaultSlot)}render(){const n=()=>{const o=!this.isHelpTextOpen;this.isHelpTextOpen=o,this.dispatchEvent(new CustomEvent("toggleHelpText",{bubbles:!0,detail:{isOpen:o}}))},r=()=>this.helptextDropdown?qe`<div class="pkt-inputwrapper__helptext-expandable">
|
|
555
555
|
<button
|
|
556
556
|
class="pkt-link pkt-link--icon-right pkt-btn pkt-btn--small pkt-btn--tertiary pkt-btn--icon-right"
|
|
557
557
|
type="button"
|
|
@@ -574,7 +574,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
574
574
|
${this.helptext&&_y(this.helptext)}
|
|
575
575
|
</div>
|
|
576
576
|
${r()}
|
|
577
|
-
</div>`}`}};ih([X({type:String,reflect:!0})],Vc.prototype,"forId",2),ih([X({type:String})],Vc.prototype,"helptext",2),ih([X({type:String})],Vc.prototype,"helptextDropdown",2),ih([X({type:String})],Vc.prototype,"helptextDropdownButton",2),ih([zr()],Vc.prototype,"isHelpTextOpen",2),Vc=ih([ra("pkt-helptext")],Vc);var
|
|
577
|
+
</div>`}`}};ih([X({type:String,reflect:!0})],Vc.prototype,"forId",2),ih([X({type:String})],Vc.prototype,"helptext",2),ih([X({type:String})],Vc.prototype,"helptextDropdown",2),ih([X({type:String})],Vc.prototype,"helptextDropdownButton",2),ih([zr()],Vc.prototype,"isHelpTextOpen",2),Vc=ih([ra("pkt-helptext")],Vc);var MN=Object.defineProperty,zN=Object.getOwnPropertyDescriptor,Ur=(n,r,o,u)=>{for(var f=u>1?void 0:u?zN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&MN(r,o,f),f};let Ar=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.helptextSlot=qn(),this.hasHelptextSlot=!1,this.forId=ah(),this.label="",this.helptext=null,this.helptextDropdown=null,this.helptextDropdownButton=null,this.counter=zo.props.counter.default,this.counterCurrent=0,this.counterMaxLength=0,this.optionalTag=zo.props.optionalTag.default,this.optionalText=zo.props.optionalText.default,this.requiredTag=zo.props.requiredTag.default,this.requiredText=zo.props.requiredText.default,this.hasError=zo.props.hasError.default,this.errorMessage="",this.disabled=zo.props.disabled.default,this.inline=zo.props.inline.default,this.ariaDescribedby=void 0,this.hasFieldset=zo.props.hasFieldset.default,this.useWrapper=zo.props.useWrapper.default,this.role="group",this.slotController=new Wi(this,this.defaultSlot,this.helptextSlot)}updateSlots(){this.hasHelptextSlot=this.slotController.filledSlots.has("helptext")}updated(r){this.updateSlots(),super.updated(r)}render(){const r={"pkt-inputwrapper":!0,"pkt-inputwrapper--error":this.hasError,"pkt-inputwrapper--disabled":this.disabled,"pkt-inputwrapper--inline":this.inline},o={"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},u=!!this.helptextDropdown,f={"pkt-inputwrapper__label":!0,"pkt-inputwrapper__fieldset":this.hasFieldset,"pkt-inputwrapper__legend":this.hasFieldset},g=this.ariaDescribedby?this.ariaDescribedby:this.helptext?`${this.forId}-helptext`:wt,v=()=>this.optionalTag||this.requiredTag?qe`<span class=${kn(o)}
|
|
578
578
|
>${this.optionalTag?this.optionalText:this.requiredTag?this.requiredText:wt}</span
|
|
579
579
|
>`:wt,S=()=>this.useWrapper?this.hasFieldset?qe`<legend class="pkt-inputwrapper__legend" id="${this.forId}-label">
|
|
580
580
|
${this.label} ${v()}
|
|
@@ -627,7 +627,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
627
627
|
* @license
|
|
628
628
|
* Copyright 2017 Google LLC
|
|
629
629
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
630
|
-
*/const
|
|
630
|
+
*/const hC=(n,r,o)=>{const u=new Map;for(let f=r;f<=o;f++)u.set(n[f],f);return u},UN=kp(class extends Xf{constructor(n){if(super(n),n.type!==qs.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,r,o){let u;o===void 0?o=r:r!==void 0&&(u=r);const f=[],g=[];let v=0;for(const S of n)f[v]=u?u(S,v):v,g[v]=o(S,v),v++;return{values:g,keys:f}}render(n,r,o){return this.dt(n,r,o).values}update(n,[r,o,u]){const f=O$(n),{values:g,keys:v}=this.dt(r,o,u);if(!Array.isArray(f))return this.ut=v,g;const S=this.ut??(this.ut=[]),E=[];let _,$,N=0,R=f.length-1,B=0,M=g.length-1;for(;N<=R&&B<=M;)if(f[N]===null)N++;else if(f[R]===null)R--;else if(S[N]===v[B])E[B]=wp(f[N],g[B]),N++,B++;else if(S[R]===v[M])E[M]=wp(f[R],g[M]),R--,M--;else if(S[N]===v[M])E[M]=wp(f[N],g[M]),lg(n,E[M+1],f[N]),N++,M--;else if(S[R]===v[B])E[B]=wp(f[R],g[B]),lg(n,f[N],f[R]),R--,B++;else if(_===void 0&&(_=hC(v,B,M),$=hC(S,N,R)),_.has(S[N]))if(_.has(S[R])){const V=$.get(v[B]),H=V!==void 0?f[V]:null;if(H===null){const ge=lg(n,f[N]);wp(ge,g[B]),E[B]=ge}else E[B]=wp(H,g[B]),lg(n,f[N],H),f[V]=null;B++}else Ck(f[R]),R--;else Ck(f[N]),N++;for(;B<=M;){const V=lg(n,E[M+1]);wp(V,g[B]),E[B++]=V}for(;N<=R;){const V=f[N++];V!==null&&Ck(V)}return this.ut=v,HS(n,E),fo}}),HN="pkt-datepicker",qN=!0,WN={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"},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",default:!1,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",displayAsFalse:!0,default:!0},id:{type:"string",name:"ID",description:"Unik identifikasjon for datovelgeren"}},VN={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"}},Ep={name:HN,"css-class":"pkt-datepicker",isElement:qN,props:WN,events:VN};var YN=Object.defineProperty,GN=Object.getOwnPropertyDescriptor,ia=(n,r,o,u)=>{for(var f=u>1?void 0:u?GN(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&YN(r,o,f),f};const mC=n=>new Promise(r=>setTimeout(r,n));let Hr=class extends fn{constructor(){super(),this.value="",this._value=this.value?Array.isArray(this.value)?this.value:this.value.split(","):[],this.label="Datovelger",this.dateformat=Ep.props.dateformat.default,this.multiple=Ep.props.multiple.default,this.maxlength=null,this.range=Ep.props.range.default,this.showRangeLabels=!1,this.min=null,this.max=null,this.weeknumbers=Ep.props.weeknumbers.default,this.withcontrols=Ep.props.withcontrols.default,this.excludedates=[],this.excludeweekdays=[],this.currentmonth=null,this.calendarOpen=!1,this.timezone="Europe/Oslo",this.inputClasses={},this.buttonClasses={},this.inputRef=qn(),this.inputRefTo=qn(),this.btnRef=qn(),this.calRef=qn(),this.popupRef=qn(),this.helptextSlot=qn(),this.addToSelected=r=>{const o=r.target;if(!o.value)return;const u=this.min?aa(this.min):null,f=this.max?aa(this.max):null,g=aa(o.value.split(",")[0]);g&&!isNaN(g.getTime())&&(!u||g>=u)&&(!f||g<=f)&&this.calRef.value&&this.calRef.value.handleDateSelect(g),o.value=""},this.slotController=new Wi(this,this.helptextSlot)}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",r=>{var o,u;(o=this.inputRef)!=null&&o.value&&(u=this.btnRef)!=null&&u.value&&!this.inputRef.value.contains(r.target)&&!(this.inputRefTo.value&&this.inputRefTo.value.contains(r.target))&&!this.btnRef.value.contains(r.target)&&!r.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||Ep.props.min.default,this.max=this.max||Ep.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 mC(20),this.handleCalendarPosition())}disconnectedCallback(){super.disconnectedCallback(),document&&document.body.removeEventListener("click",r=>{var o,u;(o=this.inputRef)!=null&&o.value&&(u=this.btnRef)!=null&&u.value&&!this.inputRef.value.contains(r.target)&&!this.btnRef.value.contains(r.target)&&this.hideCalendar()})}attributeChangedCallback(r,o,u){if(r==="value"){if(this.range&&(u==null?void 0:u.split(",").length)===1)return;this.value!==o&&this.valueChanged(u,o)}r==="excludedates"&&typeof this.excludedates=="string"&&(this.excludedates=(u==null?void 0:u.split(","))??[]),r==="excludeweekdays"&&typeof this.excludeweekdays=="string"&&(this.excludeweekdays=(u==null?void 0:u.split(","))??[]),super.attributeChangedCallback(r,o,u)}updated(r){if(r.has("value")){if(this.range&&this.value.length===1)return;this.valueChanged(this.value,r.get("value"))}super.updated(r)}renderInput(){return qe`
|
|
631
631
|
<input
|
|
632
632
|
class="${kn(this.inputClasses)}"
|
|
633
633
|
.type=${this.inputType}
|
|
@@ -701,13 +701,13 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
701
701
|
/>
|
|
702
702
|
`}renderTags(){return qe`
|
|
703
703
|
<div class="pkt-datepicker__tags" aria-live="polite">
|
|
704
|
-
${this._value[0]?
|
|
704
|
+
${this._value[0]?UN(this._value??[],r=>r,r=>qe`
|
|
705
705
|
<pkt-tag
|
|
706
706
|
.id="${this.id+r+"-tag"}"
|
|
707
707
|
closeTag
|
|
708
|
-
ariaLabel="${this.strings.calendar.deleteDate} ${
|
|
708
|
+
ariaLabel="${this.strings.calendar.deleteDate} ${cC(r,this.dateformat)}"
|
|
709
709
|
@close=${()=>{var o;return(o=this.calRef.value)==null?void 0:o.handleDateSelect(Pk(r))}}
|
|
710
|
-
><time datetime="${r}">${
|
|
710
|
+
><time datetime="${r}">${cC(r,this.dateformat)}</time></pkt-tag
|
|
711
711
|
>
|
|
712
712
|
`):wt}
|
|
713
713
|
</div>
|
|
@@ -777,14 +777,14 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
777
777
|
</div>
|
|
778
778
|
</pkt-input-wrapper>
|
|
779
779
|
${this.renderCalendar()}
|
|
780
|
-
`}handleCalendarPosition(){var r;if(this.popupRef.value&&this.inputRef.value){const o=this.multiple&&!!this.maxlength,u=((r=this.inputRef.value.parentElement)==null?void 0:r.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),f=o?u.height+30:u.height,g=this.popupRef.value.getBoundingClientRect().height;let v=o?"calc(100% - 30px)":"100%";u&&u.top+g>window.innerHeight&&u.top-g>0&&(v=`calc(100% - ${f}px - ${g}px)`),this.popupRef.value.style.top=v}}handleFocusOut(r){this.contains(r.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var r;this.calendarOpen=!0,await
|
|
780
|
+
`}handleCalendarPosition(){var r;if(this.popupRef.value&&this.inputRef.value){const o=this.multiple&&!!this.maxlength,u=((r=this.inputRef.value.parentElement)==null?void 0:r.getBoundingClientRect())||this.inputRef.value.getBoundingClientRect(),f=o?u.height+30:u.height,g=this.popupRef.value.getBoundingClientRect().height;let v=o?"calc(100% - 30px)":"100%";u&&u.top+g>window.innerHeight&&u.top-g>0&&(v=`calc(100% - ${f}px - ${g}px)`),this.popupRef.value.style.top=v}}handleFocusOut(r){this.contains(r.target)||(this.onBlur(),this.hideCalendar())}async showCalendar(){var r;this.calendarOpen=!0,await mC(20),this.handleCalendarPosition(),this.isMobileSafari&&((r=this.calRef.value)==null||r.focusOnCurrentDate())}hideCalendar(){this.calendarOpen=!1}async toggleCalendar(r){r.preventDefault(),this.calendarOpen?this.hideCalendar():this.showCalendar()}};ia([X({type:String,reflect:!0})],Hr.prototype,"value",2),ia([X({type:Array})],Hr.prototype,"_value",2),ia([X({type:String,reflect:!0})],Hr.prototype,"label",2),ia([X({type:String})],Hr.prototype,"dateformat",2),ia([X({type:Boolean,reflect:!0})],Hr.prototype,"multiple",2),ia([X({type:Number,reflect:!0})],Hr.prototype,"maxlength",2),ia([X({type:Boolean,reflect:!0})],Hr.prototype,"range",2),ia([X({type:Boolean})],Hr.prototype,"showRangeLabels",2),ia([X({type:String,reflect:!0})],Hr.prototype,"min",2),ia([X({type:String,reflect:!0})],Hr.prototype,"max",2),ia([X({type:Boolean})],Hr.prototype,"weeknumbers",2),ia([X({type:Boolean,reflect:!0})],Hr.prototype,"withcontrols",2),ia([X({converter:nh.csvToArray})],Hr.prototype,"excludedates",2),ia([X({converter:nh.csvToArray})],Hr.prototype,"excludeweekdays",2),ia([X({type:String})],Hr.prototype,"currentmonth",2),ia([X({type:Boolean,reflect:!0})],Hr.prototype,"calendarOpen",2),ia([X({type:String})],Hr.prototype,"timezone",2),ia([zr()],Hr.prototype,"inputClasses",2),ia([zr()],Hr.prototype,"buttonClasses",2),Hr=ia([ra("pkt-datepicker")],Hr);const QN="pkt-link",KN=!0,ZN={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}},XN={default:{description:"Innholdet i lenken"}},Nk={name:QN,"css-class":"pkt-link","dark-mode":!0,isElement:KN,props:ZN,slots:XN};var JN=Object.defineProperty,e3=Object.getOwnPropertyDescriptor,oh=(n,r,o,u)=>{for(var f=u>1?void 0:u?e3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&JN(r,o,f),f};let Yc=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.href=Nk.props.href.default,this.iconName=void 0,this.iconPosition=void 0,this.external=Nk.props.external.default,this.target=Nk.props.target.default,this.slotController=new Wi(this,this.defaultSlot)}render(){const n={"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 qe`<a
|
|
781
781
|
class=${kn(n)}
|
|
782
782
|
href=${this.href}
|
|
783
783
|
@click=${this.handleClick}
|
|
784
784
|
.target=${this.target}
|
|
785
785
|
.rel=${this.external?"noopener noreferrer":wt}
|
|
786
786
|
>${this.iconName?qe`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>`:""} <span ${Rn(this.defaultSlot)}>Link</span></a
|
|
787
|
-
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};oh([X({type:String,reflect:!0})],Yc.prototype,"href",2),oh([X({type:String,reflect:!0})],Yc.prototype,"iconName",2),oh([X({type:String,reflect:!0})],Yc.prototype,"iconPosition",2),oh([X({type:Boolean,reflect:!0})],Yc.prototype,"external",2),oh([X({type:String,reflect:!0})],Yc.prototype,"target",2),Yc=oh([ra("pkt-link")],Yc);var
|
|
787
|
+
>`}handleClick(){this.dispatchEvent(new CustomEvent("click",{detail:"pkt-link-clicked",bubbles:!0}))}};oh([X({type:String,reflect:!0})],Yc.prototype,"href",2),oh([X({type:String,reflect:!0})],Yc.prototype,"iconName",2),oh([X({type:String,reflect:!0})],Yc.prototype,"iconPosition",2),oh([X({type:Boolean,reflect:!0})],Yc.prototype,"external",2),oh([X({type:String,reflect:!0})],Yc.prototype,"target",2),Yc=oh([ra("pkt-link")],Yc);var t3=Object.defineProperty,n3=Object.getOwnPropertyDescriptor,_p=(n,r,o,u)=>{for(var f=u>1?void 0:u?n3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&t3(r,o,f),f};let Ou=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.title="",this.href="#",this.iconName="",this.external=!1,this.openInNewTab=!1,this.skin="normal",this.slotController=new Wi(this,this.defaultSlot)}render(){const r=["pkt-linkcard",this.skin&&`pkt-linkcard--${this.skin}`].filter(Boolean).join(" "),o=["pkt-linkcard__title",this.external&&"pkt-link pkt-link--external"].filter(Boolean).join(" ");return qe`
|
|
788
788
|
<a
|
|
789
789
|
href=${this.href}
|
|
790
790
|
class=${r}
|
|
@@ -796,7 +796,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
796
796
|
|
|
797
797
|
<div class="pkt-linkcard__text" ${Rn(this.defaultSlot)}></div>
|
|
798
798
|
</a>
|
|
799
|
-
`}};_p([X({type:String,reflect:!0})],Ou.prototype,"title",2),_p([X({type:String,reflect:!0})],Ou.prototype,"href",2),_p([X({type:String,reflect:!0})],Ou.prototype,"iconName",2),_p([X({type:Boolean,reflect:!0})],Ou.prototype,"external",2),_p([X({type:Boolean,reflect:!0})],Ou.prototype,"openInNewTab",2),_p([X({type:String,reflect:!0})],Ou.prototype,"skin",2),Ou=_p([ra("pkt-linkcard")],Ou);const
|
|
799
|
+
`}};_p([X({type:String,reflect:!0})],Ou.prototype,"title",2),_p([X({type:String,reflect:!0})],Ou.prototype,"href",2),_p([X({type:String,reflect:!0})],Ou.prototype,"iconName",2),_p([X({type:Boolean,reflect:!0})],Ou.prototype,"external",2),_p([X({type:Boolean,reflect:!0})],Ou.prototype,"openInNewTab",2),_p([X({type:String,reflect:!0})],Ou.prototype,"skin",2),Ou=_p([ra("pkt-linkcard")],Ou);const r3="pkt-messagebox",a3=!0,i3={onClose:{description:"React: Event som trigges når meldingsboksen lukkes"},"on-close":{description:"Vue: Event som trigges når meldingsboksen lukkes"}},o3={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}},s3={default:{description:"Innholdet i meldingsboksen"}},Rk={name:r3,"css-class":"pkt-messagebox",isElement:a3,events:i3,props:o3,slots:s3};var l3=Object.defineProperty,u3=Object.getOwnPropertyDescriptor,sh=(n,r,o,u)=>{for(var f=u>1?void 0:u?u3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&l3(r,o,f),f};let Gc=class extends ti{constructor(){super(),this.defaultSlot=qn(),this.closable=Rk.props.closable.default,this.compact=Rk.props.compact.default,this.title="",this.skin=Rk.props.skin.default,this._isClosed=!1,this.close=r=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:r},bubbles:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:r},bubbles:!0}))},this.slotController=new Wi(this,this.defaultSlot),this._isClosed=!1}updated(r){super.updated(r),r.has("_isClosed")&&WS(this,"pkt-hide",this._isClosed)}render(){const r={"pkt-messagebox":!0,"pkt-messagebox--compact":this.compact,[`pkt-messagebox--${this.skin}`]:this.skin,"pkt-messagebox--closable":this.closable,"pkt-hide":this._isClosed};return qe`<div class=${kn(r)}>
|
|
800
800
|
${this.closable?qe`<div class="pkt-messagebox__close">
|
|
801
801
|
<button
|
|
802
802
|
@click=${this.close}
|
|
@@ -807,7 +807,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
807
807
|
</div>`:wt}
|
|
808
808
|
${this.title?qe`<div class="pkt-messagebox__title">${this.title}</div>`:wt}
|
|
809
809
|
<div class="pkt-messagebox__text" ${Rn(this.defaultSlot)}></div>
|
|
810
|
-
</div>`}};sh([X({type:Boolean,reflect:!0})],Gc.prototype,"closable",2),sh([X({type:Boolean,reflect:!0})],Gc.prototype,"compact",2),sh([X({type:String,reflect:!0})],Gc.prototype,"title",2),sh([X({type:String,reflect:!0})],Gc.prototype,"skin",2),sh([zr()],Gc.prototype,"_isClosed",2),Gc=sh([ra("pkt-messagebox")],Gc);const
|
|
810
|
+
</div>`}};sh([X({type:Boolean,reflect:!0})],Gc.prototype,"closable",2),sh([X({type:Boolean,reflect:!0})],Gc.prototype,"compact",2),sh([X({type:String,reflect:!0})],Gc.prototype,"title",2),sh([X({type:String,reflect:!0})],Gc.prototype,"skin",2),sh([zr()],Gc.prototype,"_isClosed",2),Gc=sh([ra("pkt-messagebox")],Gc);const c3="pkt-modal",d3=!0,p3={"background-click":{description:"Event som trigges når bakgrunnen trykkes på"},close:{description:"Event som trigges når meldingsboksen lukkes"}},f3={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},closeButtonSkin:{name:"Stil på lukkeknappen",description:"Stil på lukkeknappen",type:["blue","yellow-filled"],default:"blue"},size:{name:"Størrelse",description:"Størrelsen på modalen",type:["small","medium","large"],default:"medium"}},h3={default:{description:"Innholdet i meldingen. Her tilbyr vi støtteklasser for å style 1-3 knapper i modalen."}},Ok={name:c3,"css-class":"pkt-modal",isElements:d3,events:p3,props:f3,slots:h3};var m3=Object.defineProperty,g3=Object.getOwnPropertyDescriptor,Qc=(n,r,o,u)=>{for(var f=u>1?void 0:u?g3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&m3(r,o,f),f};let Fl=class extends ti{constructor(){super(),this.headingText="",this.removePadding=!1,this.hideCloseButton=Ok.props.hideCloseButton.default,this.closeOnBackdropClick=Ok.props.closeOnBackdropClick.default,this.closeButtonSkin="blue",this.size=Ok.props.size.default,this.defaultSlot=qn(),this.dialogRef=qn(),this._isOpen=!1,this.close=(r,o=!1)=>{var u;if(!this._isOpen)return;this._isOpen=!1,document.body.classList.remove("pkt-modal--open");const f=document.activeElement;f&&!this.isElementInViewport(f)&&f.scrollIntoView({behavior:"smooth",block:"nearest"}),this.dispatchEvent(new CustomEvent("close",{detail:{origin:r},bubbles:!0,composed:!0})),o||(u=this.dialogRef.value)==null||u.close(),this.requestUpdate()},this.showModal=r=>{var o;this._isOpen=!0,(o=this.dialogRef.value)==null||o.showModal();const u=document.querySelector(".pkt-modal");requestAnimationFrame(()=>{var f;this.dialogRef.value&&((f=this.dialogRef.value)==null||f.focus())}),u&&document.body.classList.add("pkt-modal--open"),this.dispatchEvent(new CustomEvent("showModal",{detail:{origin:r},bubbles:!0,composed:!0})),this.requestUpdate()},this.slotController=new Wi(this,this.defaultSlot),this._isOpen=!1}async connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleBackdropClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleBackdropClick)}handleKeyDown(r){r.key==="Escape"&&this.close(r)}handleBackdropClick(r){var o;this.closeOnBackdropClick&&r.target===((o=this.dialogRef)==null?void 0:o.value)&&this.close(r)}isElementInViewport(r){const o=r.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}render(){const r={"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},o={"pkt-modal__headingText":!0,"pkt-txt-24":!0},u={"pkt-modal__content":!0,"pkt-txt-18-light":!0},f=this.closeButtonSkin==="blue",g={"pkt-modal__closeButton":!0,[`pkt-modal__closeButton--${this.closeButtonSkin}`]:!0},v={"pkt-btn":!0,[`pkt-btn--${f?"tertiary":"primary"}`]:!0,"pkt-btn--icon-only":!0,"pkt-btn--medium":!0};return qe`
|
|
811
811
|
<dialog
|
|
812
812
|
class=${kn(r)}
|
|
813
813
|
${Rn(this.dialogRef)}
|
|
@@ -821,13 +821,14 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
821
821
|
${this.headingText}
|
|
822
822
|
</h1>`:wt}
|
|
823
823
|
${this.hideCloseButton?wt:qe`<div class="${kn(g)}">
|
|
824
|
-
<button
|
|
824
|
+
<pkt-button
|
|
825
825
|
@click=${S=>this.close(S)}
|
|
826
826
|
class=${kn(v)}
|
|
827
827
|
aria-label="close"
|
|
828
|
+
iconname="close"
|
|
829
|
+
variant="icon-only"
|
|
828
830
|
>
|
|
829
|
-
|
|
830
|
-
</button>
|
|
831
|
+
</pkt-button>
|
|
831
832
|
</div>`}
|
|
832
833
|
</div>
|
|
833
834
|
<div class="pkt-modal__container">
|
|
@@ -842,10 +843,10 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
842
843
|
* @license
|
|
843
844
|
* Copyright 2018 Google LLC
|
|
844
845
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
845
|
-
*/const
|
|
846
|
+
*/const gC="important",v3=" !"+gC,y3=kp(class extends Xf{constructor(n){var r;if(super(n),n.type!==qs.ATTRIBUTE||n.name!=="style"||((r=n.strings)==null?void 0:r.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((r,o)=>{const u=n[o];return u==null?r:r+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${u};`},"")}update(n,[r]){const{style:o}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);for(const u of this.ft)r[u]==null&&(this.ft.delete(u),u.includes("-")?o.removeProperty(u):o[u]=null);for(const u in r){const f=r[u];if(f!=null){this.ft.add(u);const g=typeof f=="string"&&f.endsWith(v3);u.includes("-")||g?o.setProperty(u,g?f.slice(0,-11):f,g?gC:""):o[u]=f}}return fo}});var b3=Object.defineProperty,k3=Object.getOwnPropertyDescriptor,ga=(n,r,o,u)=>{for(var f=u>1?void 0:u?k3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&b3(r,o,f),f};let Kr=class extends ti{constructor(){super(),this.ariaLabel=null,this.ariaLabelledby=null,this.ariaValueText=null,this.ariaLive="polite",this.id=ah(),this.role="progressbar",this.skin="dark-blue",this.statusPlacement="following",this.statusType="none",this.title="",this.titlePosition="left",this.valueCurrent=0,this.valueMax=100,this.valueMin=0,this.labelWidth=0,this.progressbarId=this.id,this.computedAriaLabelledby=null,this.computedAriaValueText="",this.labelRef=qn(),this.progressBarRef=qn()}firstUpdated(n){super.firstUpdated(n),this.setComputedValues(),this.syncAttributes()}updated(n){super.updated(n),n.has("valueCurrent")&&this.labelRef.value&&(this.labelWidth=this.labelRef.value.getBoundingClientRect().width||0),n.has("id")&&this.id&&(this.progressBarId=this.id),(n.has("statusType")||n.has("id")||n.has("ariaLabelledby"))&&(this.progressbarId=this.id||ah(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`),(n.has("ariaValueText")||n.has("valueCurrent")||n.has("valueMax"))&&(this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""),this.syncAttributes()}render(){const n=this.statusType!=="none",r=this.valueMax-this.valueMin,o=this.valueCurrent/r*100,u=this.statusType==="fraction"?Math.round(o):Math.round((this.valueCurrent-this.valueMin)/(this.valueMax-this.valueMin)*100),f=`${this.valueCurrent} av ${r}`,g=kn({"pkt-progressbar__bar":!0,[`pkt-progressbar__bar--${this.skin}`]:!!this.skin}),v=kn({"pkt-progressbar__title":!0,"pkt-progressbar__title-center":this.titlePosition==="center"}),S=kn({"pkt-progressbar__status":!0,"pkt-progressbar__status--center":this.statusPlacement==="center"}),E=kn({"pkt-progressbar__status-placement--following":this.statusPlacement==="following","pkt-progressbar__status-placement--center":this.statusPlacement==="center","pkt-progressbar__status-placement--left":this.statusPlacement==="left"});return qe` <div
|
|
846
847
|
class="pkt-progressbar__container"
|
|
847
848
|
.ref=${this.progressBarRef}
|
|
848
|
-
style=${
|
|
849
|
+
style=${y3({"--pkt-progress-label-width":`${this.labelWidth}px`,"--pkt-progress-width":`${u}%`})}
|
|
849
850
|
>
|
|
850
851
|
${this.title?qe`<p id=${`${this.progressBarId}-title`} class=${v}>${this.title}</p>`:wt}
|
|
851
852
|
|
|
@@ -858,7 +859,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
858
859
|
${this.statusType==="percentage"?`${u}%`:f}
|
|
859
860
|
</span>
|
|
860
861
|
</div>`:wt}
|
|
861
|
-
</div>`}setComputedValues(){this.progressbarId=this.id||ah(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`,this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""}syncAttributes(){this._handleAttribute("aria-live",this.ariaLive),this._handleAttribute("aria-valuenow",this.valueCurrent),this._handleAttribute("aria-valuemin",this.valueMin),this._handleAttribute("aria-valuemax",this.valueMax),this._handleAttribute("aria-valuetext",this.computedAriaValueText),this._handleAttribute("aria-label",this.ariaLabel),this._handleAttribute("role",this.role),this._handleAttribute("aria-atomic","true"),this._handleAttribute("id",this.progressbarId),this.ariaLabel||this._handleAttribute("aria-labelledby",this.computedAriaLabelledby)}_handleAttribute(n,r){r==null||r===""?this.removeAttribute(n):this.setAttribute(n,String(r))}};ga([X({type:String})],Kr.prototype,"ariaLabel",2),ga([X({type:String,reflect:!0})],Kr.prototype,"ariaLabelledby",2),ga([X({type:String,reflect:!0})],Kr.prototype,"ariaValueText",2),ga([X({type:String})],Kr.prototype,"ariaLive",2),ga([X({type:String,reflect:!0})],Kr.prototype,"id",2),ga([X({type:String})],Kr.prototype,"role",2),ga([X({type:String})],Kr.prototype,"skin",2),ga([X({type:String})],Kr.prototype,"statusPlacement",2),ga([X({type:String})],Kr.prototype,"statusType",2),ga([X({type:String,reflect:!0})],Kr.prototype,"title",2),ga([X({type:String})],Kr.prototype,"titlePosition",2),ga([X({type:Number,reflect:!0})],Kr.prototype,"valueCurrent",2),ga([X({type:Number})],Kr.prototype,"valueMax",2),ga([X({type:Number})],Kr.prototype,"valueMin",2),ga([zr()],Kr.prototype,"labelWidth",2),ga([zr()],Kr.prototype,"progressbarId",2),ga([zr()],Kr.prototype,"computedAriaLabelledby",2),ga([zr()],Kr.prototype,"computedAriaValueText",2),Kr=ga([ra("pkt-progressbar")],Kr);var
|
|
862
|
+
</div>`}setComputedValues(){this.progressbarId=this.id||ah(),this.computedAriaLabelledby=this.ariaLabelledby||`${this.progressbarId}-title`,this.computedAriaValueText=this.statusType==="fraction"&&!this.ariaValueText?`${this.valueCurrent} av ${this.valueMax-this.valueMin}`:this.ariaValueText||""}syncAttributes(){this._handleAttribute("aria-live",this.ariaLive),this._handleAttribute("aria-valuenow",this.valueCurrent),this._handleAttribute("aria-valuemin",this.valueMin),this._handleAttribute("aria-valuemax",this.valueMax),this._handleAttribute("aria-valuetext",this.computedAriaValueText),this._handleAttribute("aria-label",this.ariaLabel),this._handleAttribute("role",this.role),this._handleAttribute("aria-atomic","true"),this._handleAttribute("id",this.progressbarId),this.ariaLabel||this._handleAttribute("aria-labelledby",this.computedAriaLabelledby)}_handleAttribute(n,r){r==null||r===""?this.removeAttribute(n):this.setAttribute(n,String(r))}};ga([X({type:String})],Kr.prototype,"ariaLabel",2),ga([X({type:String,reflect:!0})],Kr.prototype,"ariaLabelledby",2),ga([X({type:String,reflect:!0})],Kr.prototype,"ariaValueText",2),ga([X({type:String})],Kr.prototype,"ariaLive",2),ga([X({type:String,reflect:!0})],Kr.prototype,"id",2),ga([X({type:String})],Kr.prototype,"role",2),ga([X({type:String})],Kr.prototype,"skin",2),ga([X({type:String})],Kr.prototype,"statusPlacement",2),ga([X({type:String})],Kr.prototype,"statusType",2),ga([X({type:String,reflect:!0})],Kr.prototype,"title",2),ga([X({type:String})],Kr.prototype,"titlePosition",2),ga([X({type:Number,reflect:!0})],Kr.prototype,"valueCurrent",2),ga([X({type:Number})],Kr.prototype,"valueMax",2),ga([X({type:Number})],Kr.prototype,"valueMin",2),ga([zr()],Kr.prototype,"labelWidth",2),ga([zr()],Kr.prototype,"progressbarId",2),ga([zr()],Kr.prototype,"computedAriaLabelledby",2),ga([zr()],Kr.prototype,"computedAriaValueText",2),Kr=ga([ra("pkt-progressbar")],Kr);var w3=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,Kc=(n,r,o,u)=>{for(var f=u>1?void 0:u?D3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&w3(r,o,f),f};let $l=class extends fn{constructor(){super(...arguments),this.inputRef=qn(),this.value="",this.checkHelptext=null,this.defaultChecked=!1,this.hasTile=!1,this.checked=!1,this.type="radio",this._checked=!1}connectedCallback(){super.connectedCallback()}attributeChangedCallback(n,r,o){n==="defaultChecked"&&(this._checked=this.defaultChecked),n==="checked"&&(this._checked=this.checked===""||this.checked==="true"||this.checked===!0),super.attributeChangedCallback(n,r,o)}updated(n){super.updated(n)}render(){const n=kn({"pkt-input-check__input":!0,"pkt-input-check__input--tile":this.hasTile,"pkt-input-check__input--tile-disabled":this.disabled&&this.hasTile}),r=kn({"pkt-input-check__input-checkbox":!0,"pkt-input-check__input-checkbox--error":this.hasError});return qe`
|
|
862
863
|
<div class="pkt-input-check">
|
|
863
864
|
<div class=${n}>
|
|
864
865
|
<input
|
|
@@ -885,7 +886,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
885
886
|
* @license
|
|
886
887
|
* Copyright 2020 Google LLC
|
|
887
888
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
888
|
-
*/const
|
|
889
|
+
*/const S3=kp(class extends Xf{constructor(n){if(super(n),n.type!==qs.PROPERTY&&n.type!==qs.ATTRIBUTE&&n.type!==qs.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!zS(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[r]){if(r===fo||r===wt)return r;const o=n.element,u=n.name;if(n.type===qs.PROPERTY){if(r===o[u])return fo}else if(n.type===qs.BOOLEAN_ATTRIBUTE){if(!!r===o.hasAttribute(u))return fo}else if(n.type===qs.ATTRIBUTE&&o.getAttribute(u)===r+"")return fo;return HS(n),r}});var C3=Object.defineProperty,x3=Object.getOwnPropertyDescriptor,lh=(n,r,o,u)=>{for(var f=u>1?void 0:u?x3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&C3(r,o,f),f};let Zc=class extends fn{constructor(){super(),this.inputRef=qn(),this.helptextSlot=qn(),this.value="",this.autocomplete="off",this.placeholder="",this.rows=null,this.counterCurrent=0,this.slotController=new Wi(this,this.helptextSlot)}attributeChangedCallback(n,r,o){n==="value"&&this.value!==r&&(this.counterCurrent=o?o.length:0,this.valueChanged(o,r)),super.attributeChangedCallback(n,r,o)}updated(n){var r;super.updated(n),n.has("value")&&(this.counterCurrent=((r=this.value)==null?void 0:r.length)||0,this.valueChanged(this.value,n.get("value"))),n.has("id")&&!this.name&&this.id&&(this.name=this.id)}render(){const n=kn({"pkt-input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-input--counter-error":this.counter&&this.counterMaxLength&&this.value.length&&this.value.length>this.counterMaxLength}),r=this.ariaLabelledby||`${this.id}-input-label`;return qe`<pkt-input-wrapper
|
|
889
890
|
label=${this.label}
|
|
890
891
|
?counter=${this.counter}
|
|
891
892
|
?disabled=${this.disabled}
|
|
@@ -914,7 +915,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
914
915
|
id=${this.id+"-input"}
|
|
915
916
|
name=${(this.name||this.id)+"-input"}
|
|
916
917
|
placeholder=${Dr(this.placeholder)}
|
|
917
|
-
.value=${
|
|
918
|
+
.value=${S3(this.value)}
|
|
918
919
|
minlength=${Dr(this.minlength)}
|
|
919
920
|
maxlength=${Dr(this.maxlength)}
|
|
920
921
|
?readonly=${this.readonly}
|
|
@@ -929,7 +930,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
929
930
|
@focus=${o=>{this.onFocus(),o.stopImmediatePropagation()}}
|
|
930
931
|
@blur=${o=>{this.value=o.target.value,this.onBlur(),o.stopImmediatePropagation()}}
|
|
931
932
|
></textarea>
|
|
932
|
-
</pkt-input-wrapper>`}};lh([X({type:String,reflect:!0})],Zc.prototype,"value",2),lh([X({type:String})],Zc.prototype,"autocomplete",2),lh([X({type:String})],Zc.prototype,"placeholder",2),lh([X({type:Number})],Zc.prototype,"rows",2),lh([zr()],Zc.prototype,"counterCurrent",2),Zc=lh([ra("pkt-textarea")],Zc);var
|
|
933
|
+
</pkt-input-wrapper>`}};lh([X({type:String,reflect:!0})],Zc.prototype,"value",2),lh([X({type:String})],Zc.prototype,"autocomplete",2),lh([X({type:String})],Zc.prototype,"placeholder",2),lh([X({type:Number})],Zc.prototype,"rows",2),lh([zr()],Zc.prototype,"counterCurrent",2),Zc=lh([ra("pkt-textarea")],Zc);var E3=Object.defineProperty,_3=Object.getOwnPropertyDescriptor,Pl=(n,r,o,u)=>{for(var f=u>1?void 0:u?_3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&E3(r,o,f),f};let us=class extends fn{constructor(){super(),this.inputRef=qn(),this.helptextSlot=qn(),this.value="",this.type="text",this.size=null,this.autocomplete="off",this.iconNameRight=null,this.prefix=null,this.suffix=null,this.omitSearchIcon=!1,this.counterCurrent=0,this.slotController=new Wi(this,this.helptextSlot)}attributeChangedCallback(r,o,u){r==="value"&&this.value!==o&&(this.counterCurrent=u?u.length:0,this.valueChanged(u,o)),super.attributeChangedCallback(r,o,u)}updated(r){var o;super.updated(r),r.has("value")&&(this.counterCurrent=((o=this.value)==null?void 0:o.length)||0,this.valueChanged(this.value,r.get("value"))),r.has("id")&&!this.name&&this.id&&(this.name=this.id)}render(){const r=this.type==="search"&&!this.iconNameRight&&!this.omitSearchIcon,o=kn({"pkt-input":!0,"pkt-input--fullwidth":this.fullwidth,"pkt-input--counter-error":this.counter&&this.counterMaxLength&&this.value.length&&this.value.length>this.counterMaxLength}),u=this.ariaLabelledby||`${this.id}-input-label`;return qe`
|
|
933
934
|
<pkt-input-wrapper
|
|
934
935
|
label="${this.label}"
|
|
935
936
|
?counter=${this.counter}
|
|
@@ -992,7 +993,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
992
993
|
${!this.suffix&&r?qe`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>`:wt}
|
|
993
994
|
</div>
|
|
994
995
|
</pkt-input-wrapper>
|
|
995
|
-
`}};Pl([X({type:String,reflect:!0})],us.prototype,"value",2),Pl([X({type:String})],us.prototype,"type",2),Pl([X({type:Number})],us.prototype,"size",2),Pl([X({type:String})],us.prototype,"autocomplete",2),Pl([X({type:String})],us.prototype,"iconNameRight",2),Pl([X({type:String})],us.prototype,"prefix",2),Pl([X({type:String})],us.prototype,"suffix",2),Pl([X({type:Boolean})],us.prototype,"omitSearchIcon",2),Pl([zr()],us.prototype,"counterCurrent",2),us=Pl([ra("pkt-textinput")],us);let
|
|
996
|
+
`}};Pl([X({type:String,reflect:!0})],us.prototype,"value",2),Pl([X({type:String})],us.prototype,"type",2),Pl([X({type:Number})],us.prototype,"size",2),Pl([X({type:String})],us.prototype,"autocomplete",2),Pl([X({type:String})],us.prototype,"iconNameRight",2),Pl([X({type:String})],us.prototype,"prefix",2),Pl([X({type:String})],us.prototype,"suffix",2),Pl([X({type:Boolean})],us.prototype,"omitSearchIcon",2),Pl([zr()],us.prototype,"counterCurrent",2),us=Pl([ra("pkt-textinput")],us);let T3=class{constructor(r){this.nodes=[],this.options=[],this.host=r,this.host.addController(this),this.nodes=[],this.options=[],this.observer=new MutationObserver(o=>this.handleMutations(o))}hostConnected(){Array.from(this.host.childNodes).forEach(r=>{(r.nodeName==="OPTION"||r.nodeName==="DATA")&&this.addNode(r)}),this.observer.observe(this.host,{childList:!0})}hostDisconnected(){this.observer.disconnect()}addNode(r){(r.nodeName==="OPTION"||r.nodeName==="DATA")&&(r.setAttribute("class","pkt-hide"),r.setAttribute("aria-hidden","true"),r.setAttribute("data-skip","true"),this.nodes.push(r))}createOptions(){this.options=this.nodes.map(r=>({value:r.getAttribute("value")||r.textContent||"",label:r.textContent||r.getAttribute("value")||"",selected:!!r.getAttribute("selected"),disabled:!!r.getAttribute("disabled")})),this.host.setAttribute("options",JSON.stringify(this.options))}handleMutations(r){let o=!1;r.forEach(u=>{u.type==="childList"&&(u.addedNodes.forEach(f=>{sg(f)&&(this.addNode(f),o=!0)}),u.removedNodes.forEach(f=>{sg(f)&&(this.nodes=this.nodes.filter(g=>g!==f),o=!0)}))}),o&&this.createOptions()}};var A3=Object.defineProperty,F3=Object.getOwnPropertyDescriptor,Ny=(n,r,o,u)=>{for(var f=u>1?void 0:u?F3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&A3(r,o,f),f};let uh=class extends fn{constructor(){super(),this.inputRef=qn(),this.helptextSlot=qn(),this.options=[],this.value="",this._options=[],this.optionsController=new T3(this),this.slotController=new Wi(this,this.helptextSlot),this.slotController.skipOptions=!0}connectedCallback(){super.connectedCallback();const r=this.options.length>0,o=this.optionsController.nodes.length&&this.optionsController.nodes.length>0;!r&&o?this.optionsController.nodes.forEach(u=>{const f={value:u.getAttribute("value")||u.textContent||"",label:u.textContent||u.getAttribute("value")||"",disabled:!!u.getAttribute("disabled")};u.getAttribute("selected")&&!this.value&&(this.value=f.value),this._options.push(f)}):this._options=this.options}attributeChangedCallback(r,o,u){r==="options"&&(this._options=u?JSON.parse(u):[]),r==="value"&&this.value!==o&&this.valueChanged(u,o),super.attributeChangedCallback(r,o,u)}updated(r){var o;super.updated(r),r.has("value")&&(this.counterCurrent=((o=this.value)==null?void 0:o.length)||0,this.valueChanged(this.value,r.get("value"))),r.has("id")&&!this.name&&this.id&&(this.name=this.id)}firstUpdated(r){super.firstUpdated(r),this.options.length&&(this._options=this.options)}render(){const r=`pkt-input ${this.fullwidth?"pkt-input--fullwidth":""}`;return qe`
|
|
996
997
|
<pkt-input-wrapper
|
|
997
998
|
?counter=${this.counter}
|
|
998
999
|
?disabled=${this.disabled}
|
|
@@ -1039,7 +1040,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1039
1040
|
</select>
|
|
1040
1041
|
<div class="pkt-contents" ${Rn(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
1041
1042
|
</pkt-input-wrapper>
|
|
1042
|
-
`}};Ny([X({type:Array})],uh.prototype,"options",2),Ny([X({type:String,reflect:!0})],uh.prototype,"value",2),Ny([zr()],uh.prototype,"_options",2),uh=Ny([ra("pkt-select")],uh);var
|
|
1043
|
+
`}};Ny([X({type:Array})],uh.prototype,"options",2),Ny([X({type:String,reflect:!0})],uh.prototype,"value",2),Ny([zr()],uh.prototype,"_options",2),uh=Ny([ra("pkt-select")],uh);var $3=Object.defineProperty,P3=Object.getOwnPropertyDescriptor,yg=(n,r,o,u)=>{for(var f=u>1?void 0:u?P3(r,o):r,g=n.length-1,v;g>=0;g--)(v=n[g])&&(f=(u?v(r,o,f):v(f))||f);return u&&f&&$3(r,o,f),f};let ch=class extends ti{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=qn(),this.namedSlot=qn(),this.slotController=new Wi(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(n=>{this._list.push(n.toUpperCase())}),super.connectedCallback()}render(){const n={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return qe`
|
|
1043
1044
|
<div class="${kn(n)}">
|
|
1044
1045
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
1045
1046
|
|
|
@@ -1067,20 +1068,20 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1067
1068
|
<ul>
|
|
1068
1069
|
${n.map(r=>qe`<li>${r}</li>`)}
|
|
1069
1070
|
</ul>
|
|
1070
|
-
`}doStuff(n){return n.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};yg([X({type:String})],ch.prototype,"string",2),yg([X({converter:
|
|
1071
|
+
`}doStuff(n){return n.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};yg([X({type:String})],ch.prototype,"string",2),yg([X({converter:dC})],ch.prototype,"strings",2),yg([X({type:Boolean})],ch.prototype,"darkmode",2),yg([X({type:Array})],ch.prototype,"_list",2),ch=yg([ra("pkt-component")],ch);const er=Ra({tagName:"pkt-icon",elementClass:Dp,react:je,displayName:"PktIcon",events:{}});var vC={exports:{}};/*!
|
|
1071
1072
|
Copyright (c) 2018 Jed Watson.
|
|
1072
1073
|
Licensed under the MIT License (MIT), see
|
|
1073
1074
|
http://jedwatson.github.io/classnames
|
|
1074
|
-
*/(function(n){(function(){var r={}.hasOwnProperty;function o(){for(var g="",v=0;v<arguments.length;v++){var S=arguments[v];S&&(g=f(g,u(S)))}return g}function u(g){if(typeof g=="string"||typeof g=="number")return g;if(typeof g!="object")return"";if(Array.isArray(g))return o.apply(null,g);if(g.toString!==Object.prototype.toString&&!g.toString.toString().includes("[native code]"))return g.toString();var v="";for(var S in g)r.call(g,S)&&g[S]&&(v=f(v,S));return v}function f(g,v){return v?g?g+" "+v:g+v:g}n.exports?(o.default=o,n.exports=o):window.classNames=o})()})(gC);var P3=gC.exports;const cs=yy(P3),N3=je.forwardRef(({title:n,className:r,children:o,toggleProps:u,defaultOpen:f=!1,id:g},v)=>{const[S,E]=je.useState(f),_=u?u.isOpen:S,$=B=>B??void 0,N=(B,M)=>{B.preventDefault(),u!==void 0&&u.onToggleClick(B,M),E(!_)},R=cs(r,"pkt-accordion-item");return O.jsxs("details",{className:R,ref:v,id:g,open:$(u?u.isOpen:S),children:[O.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${g}`,onClick:B=>N(B,g),children:[n,O.jsx(er,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),O.jsx("div",{id:`pkt-accordion-item-content-${g}`,role:"region",className:"pkt-accordion-item__content",children:o})]})}),R3=Ra({tagName:"pkt-alert",elementClass:Vs,react:je,displayName:"PktAlert",events:{onClose:"close"}}),vC=je.forwardRef(({children:n,...r},o)=>O.jsx(R3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));vC.displayName="PktAlert";const yC=je.forwardRef(({href:n,text:r,onClick:o,className:u,...f},g)=>{const v=[u,"pkt-back-link"].filter(Boolean).join(" "),S=E=>{o&&o(E)};return O.jsx("nav",{ref:g,className:v,"aria-label":"Gå tilbake et steg",children:O.jsxs("a",{href:n||"/",className:"pkt-link pkt-link--icon-left",onClick:S,...f,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),O.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});yC.displayName="PktBackLink";const O3=je.forwardRef(({breadcrumbs:n,navigationType:r,className:o,...u},f)=>{const g=n.slice(0,4),v=g[g.length-2],S=[o,"pkt-breadcrumbs"].filter(Boolean).join(" ");return O.jsxs("nav",{ref:f,"aria-label":"brødsmulemeny",className:S,children:[O.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:g.map((E,_)=>O.jsx("li",{className:"pkt-breadcrumbs__item",children:_===g.length-1?O.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})}):r==="router"?O.jsxs(mp.Link,{to:E.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(er,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})]}):O.jsxs("a",{href:E.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(er,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})]})},`breadcrumb-${_}`))}),r==="router"?O.jsxs(mp.Link,{to:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]}):O.jsxs("a",{href:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]})]})}),L3=Ra({tagName:"pkt-button",elementClass:Vi,react:je,displayName:"PktButton",events:{onButtonClick:"button-click"}}),Xc=je.forwardRef(({children:n,...r},o)=>O.jsx(L3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));Xc.displayName="PktButton";const B3=Ra({tagName:"pkt-card",elementClass:Ru,react:je,displayName:"PktCard",events:{}}),bC=je.forwardRef(({children:n,...r},o)=>O.jsx(B3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));bC.displayName="PktCard";const Lk=Ra({tagName:"pkt-checkbox",elementClass:ls,react:je,displayName:"PktCheckbox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),j3=Ra({tagName:"pkt-datepicker",elementClass:Hr,react:je,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Bk=je.forwardRef(({helptext:n,...r},o)=>O.jsx(j3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",slot:"helptext",children:n})}));Bk.displayName="PktDatepicker";const I3=({columnOne:n,columnTwo:r,socialLinks:o,className:u,openLinksInNewTab:f=!1,personvernOgInfoLink:g="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:v="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var E,_;const S=[u,"pkt-footer"].filter(Boolean).join(" ");return O.jsx("footer",{className:S,"data-mode":"dark",children:O.jsxs("div",{className:"pkt-footer__container",children:[O.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:n.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&O.jsx("li",{className:"pkt-footer__text",children:n.text}),(E=n.links)==null?void 0:E.map(($,N)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${$.external?"pkt-link--external":""}`,href:$.href,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),$.text]})},`links-${N}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:r.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&O.jsx("li",{className:"pkt-footer__text",children:r.text}),(_=r.links)==null?void 0:_.map(($,N)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${$.external?"pkt-link--external":""}`,href:$.href,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),$.text]})},`links-${N}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),O.jsxs("ul",{className:"pkt-footer__list",children:[O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:g,target:f?"_blank":"_self",rel:f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:v,target:f?"_blank":"_self",rel:f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),o&&O.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[O.jsx("div",{className:"pkt-footer__social-languages",children:o.filter($=>$.language).map(($,N)=>O.jsx("div",{className:"pkt-footer__social-language",children:O.jsx("a",{href:$.href,"aria-label":`til ${$.language} versjon av nettsiden`,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:$.language})},`sociallinks-language-${N}`))}),O.jsx("div",{className:"pkt-footer__social-icons",children:o.filter($=>$.iconName).map(($,N)=>O.jsx(je.Fragment,{children:O.jsx("a",{href:$.href,"aria-label":`til ${$.iconName}`,className:"pkt-footer__social-icon-link",target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:O.jsx(er,{className:"pkt-footer__social-icon",name:$.iconName})})},`sociallinks-${N}`))})]})]})})},M3=({links:n=[],openLinksInNewTab:r=!1,personvernOgInfoLink:o="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:u="https://www.oslo.kommune.no/tilgjengelighet/",className:f})=>{const g=[f,"pkt-footer-simple"].filter(Boolean).join(" ");return O.jsx("footer",{className:g,"data-mode":"dark",children:O.jsx("div",{className:"pkt-footer-simple__container",children:O.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((v,S)=>O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:`pkt-footer-simple__link ${v.external?" pkt-link--external":""}`,href:v.href,target:v.openInNewTab||r?"_blank":"_self",rel:v.openInNewTab||r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),v.text]})},S)),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:o,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:u,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},z3=je.forwardRef(({className:n,logoLink:r="https://www.oslo.kommune.no/",serviceName:o,fixed:u=!0,scrollToHide:f=!0,user:g,userMenu:v,representing:S,userOptions:E,userMenuFooter:_,canChangeRepresentation:$=!0,showMenuButton:N=!1,showLogOutButton:R=!1,openMenu:B,logOut:M,changeRepresentation:V,children:H,...ge},K)=>{const Y=je.useMemo(()=>typeof(g==null?void 0:g.lastLoggedIn)=="string"?g.lastLoggedIn:g!=null&&g.lastLoggedIn?new Date(g.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[g]),[ne,U]=je.useState(!1),[ae,oe]=je.useState(0),[Te,ye]=je.useState(!1),Ve=je.useRef(null);je.useEffect(()=>(document&&(document.addEventListener("mouseup",Ye),window.addEventListener("scroll",Fe)),()=>{document&&(document.removeEventListener("mouseup",Ye),window.removeEventListener("scroll",Fe))}));const rt=()=>{ye(!Te)},Ye=Pe=>{Ve.current&&!Ve.current.contains(Pe.target)&&ye(!1)},Fe=()=>{if(f){const Pe=window.pageYOffset||document.documentElement.scrollTop;if(Pe<0||Math.abs(Pe-ae)<60)return;U(Pe>ae),oe(Pe)}};return O.jsxs("header",{...ge,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:cs(n,"pkt-header",{"pkt-header--fixed":u,"pkt-header--scroll-to-hide":f,"pkt-header--hidden":ne}),ref:K,children:[O.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?O.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:O.jsx(er,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.29/logos/"})}):O.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:O.jsx(er,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.29/logos/"})}),O.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:o})]}),O.jsx("nav",{className:"pkt-header__actions",children:O.jsxs("ul",{className:"pkt-header__actions-row",children:[N&&O.jsx("li",{children:O.jsx(Xc,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:B,children:"Meny"})}),(g||S)&&O.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${Te&&!ne?"pkt-header--open-dropdown":""}`,ref:Ve,children:[O.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":Te,onClick:rt,children:[O.jsx(er,{name:"user",className:"pkt-btn__icon"}),O.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(S==null?void 0:S.name)||(g==null?void 0:g.name)}),O.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(S==null?void 0:S.shortname)||(g==null?void 0:g.shortname)}),O.jsx(er,{name:"chevron-thin-down",className:"pkt-btn--closed"}),O.jsx(er,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),O.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[g&&O.jsxs("li",{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:g.name}),g.lastLoggedIn&&O.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",O.jsx("time",{children:Y})]})]}),v&&O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:v.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsxs("a",{href:Pe.target,className:"pkt-link",children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]})},`userMenu-${Ze}`))})}),(S||$)&&O.jsxs("li",{children:[S&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:S.name}),S.orgNumber&&O.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",S.orgNumber]})]}),O.jsx("ul",{className:"pkt-list mt-size-16",children:$&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:V,children:[O.jsx(er,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:(E||!R)&&O.jsxs(O.Fragment,{children:[E==null?void 0:E.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsxs("a",{href:Pe.target,className:"pkt-link",children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]})},`userOptions-${Ze}`)),!R&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M,children:[O.jsx(er,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),_&&O.jsx("li",{className:"footer",children:O.jsx("ul",{className:"pkt-list-horizontal bordered",children:_.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsx("a",{href:Pe.target,className:"pkt-link",children:Pe.title}):O.jsx("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:Pe.title})},`userMenuFooter-${Ze}`))})})]})]}),H&&O.jsx("li",{children:H}),R&&O.jsx("li",{children:O.jsx(Xc,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:M,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),U3=Ra({tagName:"pkt-helptext",elementClass:Vc,react:je,displayName:"PktHelptext",events:{onToggleHelpText:"toggleHelpText"}}),kC=je.forwardRef(({children:n,...r},o)=>O.jsx(U3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));kC.displayName="PktHelptext";const wC=je.forwardRef(({label:n,id:r,children:o,...u},f)=>O.jsxs("div",{className:"pkt-form-group",children:[O.jsx("label",{htmlFor:r,className:"pkt-form-label",children:n}),O.jsx("input",{className:"pkt-form-input",id:r,...u,ref:f}),o]}));wC.displayName="PktInput";const H3=Ra({tagName:"pkt-input-wrapper",elementClass:Ar,react:je,displayName:"PktInputWrapper",events:{onToggleHelpText:"toggleHelpText"}}),DC=je.forwardRef(({children:n,helptext:r,...o},u)=>O.jsxs(H3,{ref:u,...o,children:[O.jsx("div",{className:"pkt-contents",slot:"helptext",children:r}),O.jsx("div",{className:"pkt-contents",children:n})]})),q3=Ra({tagName:"pkt-link",elementClass:Yc,react:je,displayName:"PktLink",events:{onClick:"click"}}),SC=je.forwardRef(({children:n,...r},o)=>O.jsx(q3,{...r,ref:o,children:O.jsx("span",{className:"pkt-contents",children:n})}));SC.displayName="PktLink";const W3=Ra({tagName:"pkt-linkcard",elementClass:Ou,react:je,displayName:"PktLinkCard",events:{}}),CC=je.forwardRef(({children:n,...r},o)=>O.jsx(W3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));CC.displayName="PktLinkCard";const xC=je.forwardRef(({className:n,message:r,size:o="medium",inline:u=!1,isLoading:f=!0,variant:g="rainbow",delay:v=0,children:S,...E},_)=>{const $=`pkt-loader pkt-loader--${o}`,[N,R]=je.useState(!(v>0));v>0&&setTimeout(()=>{R(!0)},v);const B=M=>M==="shapes"?"loader":M==="blue"?"spinner-blue":"spinner";return O.jsx("div",{role:"status","aria-live":"polite","aria-busy":f,className:`pkt-loader--${u?"inline":"box"} ${n||""}`,children:f?O.jsx(O.Fragment,{children:N?O.jsxs("div",{className:$,"data-testid":"pkt-loader",ref:_,...E,children:[O.jsx(er,{name:B(g),path:"https://punkt-cdn.oslo.kommune.no/12.29/animations/",className:`pkt-loader__svg pkt-loader__${g}`}),r&&O.jsx("p",{children:r})]}):null}):S})});xC.displayName="PktLoader";const V3=Ra({tagName:"pkt-messagebox",elementClass:Gc,react:je,displayName:"PktMessagebox",events:{onClose:"close"}}),EC=je.forwardRef(({children:n,...r},o)=>O.jsx(V3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));EC.displayName="PktMessagebox";const Y3=Ra({tagName:"pkt-modal",elementClass:Fl,react:je,displayName:"PktModal",events:{}}),_C=je.forwardRef(({children:n,...r},o)=>O.jsx(Y3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));_C.displayName="PktModal";/*!
|
|
1075
|
+
*/(function(n){(function(){var r={}.hasOwnProperty;function o(){for(var g="",v=0;v<arguments.length;v++){var S=arguments[v];S&&(g=f(g,u(S)))}return g}function u(g){if(typeof g=="string"||typeof g=="number")return g;if(typeof g!="object")return"";if(Array.isArray(g))return o.apply(null,g);if(g.toString!==Object.prototype.toString&&!g.toString.toString().includes("[native code]"))return g.toString();var v="";for(var S in g)r.call(g,S)&&g[S]&&(v=f(v,S));return v}function f(g,v){return v?g?g+" "+v:g+v:g}n.exports?(o.default=o,n.exports=o):window.classNames=o})()})(vC);var N3=vC.exports;const cs=yy(N3),R3=je.forwardRef(({title:n,className:r,children:o,toggleProps:u,defaultOpen:f=!1,id:g},v)=>{const[S,E]=je.useState(f),_=u?u.isOpen:S,$=B=>B??void 0,N=(B,M)=>{B.preventDefault(),u!==void 0&&u.onToggleClick(B,M),E(!_)},R=cs(r,"pkt-accordion-item");return O.jsxs("details",{className:R,ref:v,id:g,open:$(u?u.isOpen:S),children:[O.jsxs("summary",{className:"pkt-accordion-item__title",id:`pkt-accordion-item-summary-${g}`,onClick:B=>N(B,g),children:[n,O.jsx(er,{name:"chevron-thin-down",className:"pkt-accordion-item__icon","aria-hidden":"true"})]}),O.jsx("div",{id:`pkt-accordion-item-content-${g}`,role:"region",className:"pkt-accordion-item__content",children:o})]})}),O3=Ra({tagName:"pkt-alert",elementClass:Vs,react:je,displayName:"PktAlert",events:{onClose:"close"}}),yC=je.forwardRef(({children:n,...r},o)=>O.jsx(O3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));yC.displayName="PktAlert";const bC=je.forwardRef(({href:n,text:r,onClick:o,className:u,...f},g)=>{const v=[u,"pkt-back-link"].filter(Boolean).join(" "),S=E=>{o&&o(E)};return O.jsx("nav",{ref:g,className:v,"aria-label":"Gå tilbake et steg",children:O.jsxs("a",{href:n||"/",className:"pkt-link pkt-link--icon-left",onClick:S,...f,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),O.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});bC.displayName="PktBackLink";const L3=je.forwardRef(({breadcrumbs:n,navigationType:r,className:o,...u},f)=>{const g=n.slice(0,4),v=g[g.length-2],S=[o,"pkt-breadcrumbs"].filter(Boolean).join(" ");return O.jsxs("nav",{ref:f,"aria-label":"brødsmulemeny",className:S,children:[O.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:g.map((E,_)=>O.jsx("li",{className:"pkt-breadcrumbs__item",children:_===g.length-1?O.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})}):r==="router"?O.jsxs(mp.Link,{to:E.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(er,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})]}):O.jsxs("a",{href:E.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...u,children:[O.jsx(er,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:E.text})]})},`breadcrumb-${_}`))}),r==="router"?O.jsxs(mp.Link,{to:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]}):O.jsxs("a",{href:v.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...u,children:[O.jsx(er,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),O.jsx("span",{className:"pkt-breadcrumbs__text",children:v.text})]})]})}),B3=Ra({tagName:"pkt-button",elementClass:Vi,react:je,displayName:"PktButton",events:{onButtonClick:"button-click"}}),Xc=je.forwardRef(({children:n,...r},o)=>O.jsx(B3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));Xc.displayName="PktButton";const j3=Ra({tagName:"pkt-card",elementClass:Ru,react:je,displayName:"PktCard",events:{}}),kC=je.forwardRef(({children:n,...r},o)=>O.jsx(j3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));kC.displayName="PktCard";const Lk=Ra({tagName:"pkt-checkbox",elementClass:ls,react:je,displayName:"PktCheckbox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),I3=Ra({tagName:"pkt-datepicker",elementClass:Hr,react:je,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),Bk=je.forwardRef(({helptext:n,...r},o)=>O.jsx(I3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",slot:"helptext",children:n})}));Bk.displayName="PktDatepicker";const M3=({columnOne:n,columnTwo:r,socialLinks:o,className:u,openLinksInNewTab:f=!1,personvernOgInfoLink:g="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:v="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var E,_;const S=[u,"pkt-footer"].filter(Boolean).join(" ");return O.jsx("footer",{className:S,"data-mode":"dark",children:O.jsxs("div",{className:"pkt-footer__container",children:[O.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:n.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&O.jsx("li",{className:"pkt-footer__text",children:n.text}),(E=n.links)==null?void 0:E.map(($,N)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${$.external?"pkt-link--external":""}`,href:$.href,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),$.text]})},`links-${N}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:r.title}),O.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&O.jsx("li",{className:"pkt-footer__text",children:r.text}),(_=r.links)==null?void 0:_.map(($,N)=>O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:`pkt-footer__link ${$.external?"pkt-link--external":""}`,href:$.href,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),$.text]})},`links-${N}`))]})]}),O.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[O.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),O.jsxs("ul",{className:"pkt-footer__list",children:[O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:g,target:f?"_blank":"_self",rel:f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer__list-item",children:O.jsxs("a",{className:"pkt-footer__link",href:v,target:f?"_blank":"_self",rel:f?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),o&&O.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[O.jsx("div",{className:"pkt-footer__social-languages",children:o.filter($=>$.language).map(($,N)=>O.jsx("div",{className:"pkt-footer__social-language",children:O.jsx("a",{href:$.href,"aria-label":`til ${$.language} versjon av nettsiden`,target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:$.language})},`sociallinks-language-${N}`))}),O.jsx("div",{className:"pkt-footer__social-icons",children:o.filter($=>$.iconName).map(($,N)=>O.jsx(je.Fragment,{children:O.jsx("a",{href:$.href,"aria-label":`til ${$.iconName}`,className:"pkt-footer__social-icon-link",target:$.openInNewTab||f?"_blank":"_self",rel:$.openInNewTab||f?"noopener noreferrer":void 0,children:O.jsx(er,{className:"pkt-footer__social-icon",name:$.iconName})})},`sociallinks-${N}`))})]})]})})},z3=({links:n=[],openLinksInNewTab:r=!1,personvernOgInfoLink:o="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:u="https://www.oslo.kommune.no/tilgjengelighet/",className:f})=>{const g=[f,"pkt-footer-simple"].filter(Boolean).join(" ");return O.jsx("footer",{className:g,"data-mode":"dark",children:O.jsx("div",{className:"pkt-footer-simple__container",children:O.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((v,S)=>O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:`pkt-footer-simple__link ${v.external?" pkt-link--external":""}`,href:v.href,target:v.openInNewTab||r?"_blank":"_self",rel:v.openInNewTab||r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),v.text]})},S)),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:o,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),O.jsx("li",{className:"pkt-footer-simple__list-item",children:O.jsxs("a",{className:"pkt-footer-simple__link",href:u,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[O.jsx(er,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})},U3=je.forwardRef(({className:n,logoLink:r="https://www.oslo.kommune.no/",serviceName:o,fixed:u=!0,scrollToHide:f=!0,user:g,userMenu:v,representing:S,userOptions:E,userMenuFooter:_,canChangeRepresentation:$=!0,showMenuButton:N=!1,showLogOutButton:R=!1,openMenu:B,logOut:M,changeRepresentation:V,children:H,...ge},K)=>{const Y=je.useMemo(()=>typeof(g==null?void 0:g.lastLoggedIn)=="string"?g.lastLoggedIn:g!=null&&g.lastLoggedIn?new Date(g.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[g]),[ne,U]=je.useState(!1),[ae,oe]=je.useState(0),[Te,ye]=je.useState(!1),Ve=je.useRef(null);je.useEffect(()=>(document&&(document.addEventListener("mouseup",Ye),window.addEventListener("scroll",Fe)),()=>{document&&(document.removeEventListener("mouseup",Ye),window.removeEventListener("scroll",Fe))}));const rt=()=>{ye(!Te)},Ye=Pe=>{Ve.current&&!Ve.current.contains(Pe.target)&&ye(!1)},Fe=()=>{if(f){const Pe=window.pageYOffset||document.documentElement.scrollTop;if(Pe<0||Math.abs(Pe-ae)<60)return;U(Pe>ae),oe(Pe)}};return O.jsxs("header",{...ge,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:cs(n,"pkt-header",{"pkt-header--fixed":u,"pkt-header--scroll-to-hide":f,"pkt-header--hidden":ne}),ref:K,children:[O.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?O.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:O.jsx(er,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.29/logos/"})}):O.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:O.jsx(er,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.29/logos/"})}),O.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:o})]}),O.jsx("nav",{className:"pkt-header__actions",children:O.jsxs("ul",{className:"pkt-header__actions-row",children:[N&&O.jsx("li",{children:O.jsx(Xc,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:B,children:"Meny"})}),(g||S)&&O.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${Te&&!ne?"pkt-header--open-dropdown":""}`,ref:Ve,children:[O.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":Te,onClick:rt,children:[O.jsx(er,{name:"user",className:"pkt-btn__icon"}),O.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(S==null?void 0:S.name)||(g==null?void 0:g.name)}),O.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(S==null?void 0:S.shortname)||(g==null?void 0:g.shortname)}),O.jsx(er,{name:"chevron-thin-down",className:"pkt-btn--closed"}),O.jsx(er,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),O.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[g&&O.jsxs("li",{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:g.name}),g.lastLoggedIn&&O.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",O.jsx("time",{children:Y})]})]}),v&&O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:v.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsxs("a",{href:Pe.target,className:"pkt-link",children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]})},`userMenu-${Ze}`))})}),(S||$)&&O.jsxs("li",{children:[S&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),O.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:S.name}),S.orgNumber&&O.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",S.orgNumber]})]}),O.jsx("ul",{className:"pkt-list mt-size-16",children:$&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:V,children:[O.jsx(er,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),O.jsx("li",{children:O.jsx("ul",{className:"pkt-list",children:(E||!R)&&O.jsxs(O.Fragment,{children:[E==null?void 0:E.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsxs("a",{href:Pe.target,className:"pkt-link",children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]}):O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:[Pe.iconName&&O.jsx(er,{name:Pe.iconName,className:"pkt-link__icon"}),Pe.title]})},`userOptions-${Ze}`)),!R&&O.jsx("li",{children:O.jsxs("button",{className:"pkt-link-button pkt-link",onClick:M,children:[O.jsx(er,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),_&&O.jsx("li",{className:"footer",children:O.jsx("ul",{className:"pkt-list-horizontal bordered",children:_.map((Pe,Ze)=>O.jsx("li",{children:typeof Pe.target=="string"?O.jsx("a",{href:Pe.target,className:"pkt-link",children:Pe.title}):O.jsx("button",{className:"pkt-link-button pkt-link",onClick:Pe.target,children:Pe.title})},`userMenuFooter-${Ze}`))})})]})]}),H&&O.jsx("li",{children:H}),R&&O.jsx("li",{children:O.jsx(Xc,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:M,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),H3=Ra({tagName:"pkt-helptext",elementClass:Vc,react:je,displayName:"PktHelptext",events:{onToggleHelpText:"toggleHelpText"}}),wC=je.forwardRef(({children:n,...r},o)=>O.jsx(H3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));wC.displayName="PktHelptext";const DC=je.forwardRef(({label:n,id:r,children:o,...u},f)=>O.jsxs("div",{className:"pkt-form-group",children:[O.jsx("label",{htmlFor:r,className:"pkt-form-label",children:n}),O.jsx("input",{className:"pkt-form-input",id:r,...u,ref:f}),o]}));DC.displayName="PktInput";const q3=Ra({tagName:"pkt-input-wrapper",elementClass:Ar,react:je,displayName:"PktInputWrapper",events:{onToggleHelpText:"toggleHelpText"}}),SC=je.forwardRef(({children:n,helptext:r,...o},u)=>O.jsxs(q3,{ref:u,...o,children:[O.jsx("div",{className:"pkt-contents",slot:"helptext",children:r}),O.jsx("div",{className:"pkt-contents",children:n})]})),W3=Ra({tagName:"pkt-link",elementClass:Yc,react:je,displayName:"PktLink",events:{onClick:"click"}}),CC=je.forwardRef(({children:n,...r},o)=>O.jsx(W3,{...r,ref:o,children:O.jsx("span",{className:"pkt-contents",children:n})}));CC.displayName="PktLink";const V3=Ra({tagName:"pkt-linkcard",elementClass:Ou,react:je,displayName:"PktLinkCard",events:{}}),xC=je.forwardRef(({children:n,...r},o)=>O.jsx(V3,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));xC.displayName="PktLinkCard";const EC=je.forwardRef(({className:n,message:r,size:o="medium",inline:u=!1,isLoading:f=!0,variant:g="rainbow",delay:v=0,children:S,...E},_)=>{const $=`pkt-loader pkt-loader--${o}`,[N,R]=je.useState(!(v>0));v>0&&setTimeout(()=>{R(!0)},v);const B=M=>M==="shapes"?"loader":M==="blue"?"spinner-blue":"spinner";return O.jsx("div",{role:"status","aria-live":"polite","aria-busy":f,className:`pkt-loader--${u?"inline":"box"} ${n||""}`,children:f?O.jsx(O.Fragment,{children:N?O.jsxs("div",{className:$,"data-testid":"pkt-loader",ref:_,...E,children:[O.jsx(er,{name:B(g),path:"https://punkt-cdn.oslo.kommune.no/12.29/animations/",className:`pkt-loader__svg pkt-loader__${g}`}),r&&O.jsx("p",{children:r})]}):null}):S})});EC.displayName="PktLoader";const Y3=Ra({tagName:"pkt-messagebox",elementClass:Gc,react:je,displayName:"PktMessagebox",events:{onClose:"close"}}),_C=je.forwardRef(({children:n,...r},o)=>O.jsx(Y3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));_C.displayName="PktMessagebox";const G3=Ra({tagName:"pkt-modal",elementClass:Fl,react:je,displayName:"PktModal",events:{}}),TC=je.forwardRef(({children:n,...r},o)=>O.jsx(G3,{...r,ref:o,children:O.jsx("div",{className:"pkt-contents",children:n})}));TC.displayName="PktModal";/*!
|
|
1075
1076
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
1076
1077
|
*
|
|
1077
1078
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
1078
1079
|
* Released under the MIT License.
|
|
1079
|
-
*/function
|
|
1080
|
+
*/function AC(n){return Object.prototype.toString.call(n)==="[object Object]"}function Q3(n){var r,o;return AC(n)===!1?!1:(r=n.constructor,r===void 0?!0:(o=r.prototype,!(AC(o)===!1||o.hasOwnProperty("isPrototypeOf")===!1)))}var FC={},Ry=Hc&&Hc.__assign||function(){return Ry=Object.assign||function(n){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(n[f]=r[f])}return n},Ry.apply(this,arguments)},K3=Hc&&Hc.__spreadArrays||function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;for(var u=Array(n),f=0,r=0;r<o;r++)for(var g=arguments[r],v=0,S=g.length;v<S;v++,f++)u[f]=g[v];return u};Object.defineProperty(FC,"__esModule",{value:!0});var bg=[];function Z3(n){var r=typeof n;return n!==null&&(r==="object"||r==="function")}function X3(n){return Object.prototype.toString.call(n)==="[object RegExp]"}function J3(n){return Object.getOwnPropertySymbols(n).filter(function(r){return Object.prototype.propertyIsEnumerable.call(n,r)})}function Oy(n,r,o){o===void 0&&(o="");var u={indent:" ",singleQuotes:!0},f=Ry(Ry({},u),r),g;f.inlineCharacterLimit===void 0?g={newLine:`
|
|
1080
1081
|
`,newLineOrSpace:`
|
|
1081
1082
|
`,pad:o,indent:o+f.indent}:g={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var v=function(_){if(f.inlineCharacterLimit===void 0)return _;var $=_.replace(new RegExp(g.newLine,"g"),"").replace(new RegExp(g.newLineOrSpace,"g")," ").replace(new RegExp(g.pad+"|"+g.indent,"g"),"");return $.length<=f.inlineCharacterLimit?$:_.replace(new RegExp(g.newLine+"|"+g.newLineOrSpace,"g"),`
|
|
1082
|
-
`).replace(new RegExp(g.pad,"g"),o).replace(new RegExp(g.indent,"g"),o+f.indent)};if(bg.indexOf(n)!==-1)return'"[Circular]"';if(n==null||typeof n=="number"||typeof n=="boolean"||typeof n=="function"||typeof n=="symbol"||
|
|
1083
|
-
`?"\\n":"\\r"}),f.singleQuotes?(n=n.replace(/\\?'/g,"\\'"),"'"+n+"'"):(n=n.replace(/"/g,'\\"'),'"'+n+'"')}var
|
|
1083
|
+
`).replace(new RegExp(g.pad,"g"),o).replace(new RegExp(g.indent,"g"),o+f.indent)};if(bg.indexOf(n)!==-1)return'"[Circular]"';if(n==null||typeof n=="number"||typeof n=="boolean"||typeof n=="function"||typeof n=="symbol"||X3(n))return String(n);if(n instanceof Date)return"new Date('"+n.toISOString()+"')";if(Array.isArray(n)){if(n.length===0)return"[]";bg.push(n);var S="["+g.newLine+n.map(function(_,$){var N=n.length-1===$?g.newLine:","+g.newLineOrSpace,R=Oy(_,f,o+f.indent);return f.transform&&(R=f.transform(n,$,R)),g.indent+R+N}).join("")+g.pad+"]";return bg.pop(),v(S)}if(Z3(n)){var E=K3(Object.keys(n),J3(n));if(f.filter&&(E=E.filter(function($){return f.filter&&f.filter(n,$)})),E.length===0)return"{}";bg.push(n);var S="{"+g.newLine+E.map(function($,N){var R=E.length-1===N?g.newLine:","+g.newLineOrSpace,B=typeof $=="symbol",M=!B&&/^[a-z$_][a-z$_0-9]*$/i.test($.toString()),V=B||M?$:Oy($,f),H=Oy(n[$],f,o+f.indent);return f.transform&&(H=f.transform(n,$,H)),g.indent+String(V)+": "+H+R}).join("")+g.pad+"}";return bg.pop(),v(S)}return n=String(n).replace(/[\r\n]/g,function(_){return _===`
|
|
1084
|
+
`?"\\n":"\\r"}),f.singleQuotes?(n=n.replace(/\\?'/g,"\\'"),"'"+n+"'"):(n=n.replace(/"/g,'\\"'),'"'+n+'"')}var eR=FC.prettyPrint=Oy,jk={exports:{}},Wn={};/**
|
|
1084
1085
|
* @license React
|
|
1085
1086
|
* react-is.production.min.js
|
|
1086
1087
|
*
|
|
@@ -1088,7 +1089,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1088
1089
|
*
|
|
1089
1090
|
* This source code is licensed under the MIT license found in the
|
|
1090
1091
|
* LICENSE file in the root directory of this source tree.
|
|
1091
|
-
*/var
|
|
1092
|
+
*/var $C;function tR(){if($C)return Wn;$C=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.server_context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M;M=Symbol.for("react.module.reference");function V(H){if(typeof H=="object"&&H!==null){var ge=H.$$typeof;switch(ge){case n:switch(H=H.type,H){case o:case f:case u:case _:case $:return H;default:switch(H=H&&H.$$typeof,H){case S:case v:case E:case R:case N:case g:return H;default:return ge}}case r:return ge}}}return Wn.ContextConsumer=v,Wn.ContextProvider=g,Wn.Element=n,Wn.ForwardRef=E,Wn.Fragment=o,Wn.Lazy=R,Wn.Memo=N,Wn.Portal=r,Wn.Profiler=f,Wn.StrictMode=u,Wn.Suspense=_,Wn.SuspenseList=$,Wn.isAsyncMode=function(){return!1},Wn.isConcurrentMode=function(){return!1},Wn.isContextConsumer=function(H){return V(H)===v},Wn.isContextProvider=function(H){return V(H)===g},Wn.isElement=function(H){return typeof H=="object"&&H!==null&&H.$$typeof===n},Wn.isForwardRef=function(H){return V(H)===E},Wn.isFragment=function(H){return V(H)===o},Wn.isLazy=function(H){return V(H)===R},Wn.isMemo=function(H){return V(H)===N},Wn.isPortal=function(H){return V(H)===r},Wn.isProfiler=function(H){return V(H)===f},Wn.isStrictMode=function(H){return V(H)===u},Wn.isSuspense=function(H){return V(H)===_},Wn.isSuspenseList=function(H){return V(H)===$},Wn.isValidElementType=function(H){return typeof H=="string"||typeof H=="function"||H===o||H===f||H===u||H===_||H===$||H===B||typeof H=="object"&&H!==null&&(H.$$typeof===R||H.$$typeof===N||H.$$typeof===g||H.$$typeof===v||H.$$typeof===E||H.$$typeof===M||H.getModuleId!==void 0)},Wn.typeOf=V,Wn}var Vn={};/**
|
|
1092
1093
|
* @license React
|
|
1093
1094
|
* react-is.development.js
|
|
1094
1095
|
*
|
|
@@ -1096,52 +1097,52 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1096
1097
|
*
|
|
1097
1098
|
* This source code is licensed under the MIT license found in the
|
|
1098
1099
|
* LICENSE file in the root directory of this source tree.
|
|
1099
|
-
*/var
|
|
1100
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mk(n,r){return n===null||kg(n)!=="object"||n instanceof Date||n instanceof RegExp||
|
|
1101
|
-
`).map(function(o){return o.trim()}).join("")},
|
|
1102
|
-
`.concat(Lu(o+1,u.tabStop),"$1"))},
|
|
1100
|
+
*/var PC;function nR(){return PC||(PC=1,process.env.NODE_ENV!=="production"&&function(){var n=!1,r=!1,o=!1,u=!1,f=!1,g=Symbol.for("react.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),N=Symbol.for("react.context"),R=Symbol.for("react.server_context"),B=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Y;Y=Symbol.for("react.module.reference");function ne(ot){return!!(typeof ot=="string"||typeof ot=="function"||ot===S||ot===_||f||ot===E||ot===M||ot===V||u||ot===K||n||r||o||typeof ot=="object"&&ot!==null&&(ot.$$typeof===ge||ot.$$typeof===H||ot.$$typeof===$||ot.$$typeof===N||ot.$$typeof===B||ot.$$typeof===Y||ot.getModuleId!==void 0))}function U(ot){if(typeof ot=="object"&&ot!==null){var Ln=ot.$$typeof;switch(Ln){case g:var Ut=ot.type;switch(Ut){case S:case _:case E:case M:case V:return Ut;default:var Zt=Ut&&Ut.$$typeof;switch(Zt){case R:case N:case B:case ge:case H:case $:return Zt;default:return Ln}}case v:return Ln}}}var ae=N,oe=$,Te=g,ye=B,Ve=S,rt=ge,Ye=H,Fe=v,Pe=_,Ze=E,Ne=M,Be=V,ve=!1,Re=!1;function xe(ot){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ot){return Re||(Re=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ce(ot){return U(ot)===N}function gt(ot){return U(ot)===$}function ut(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===g}function ct(ot){return U(ot)===B}function vt(ot){return U(ot)===S}function it(ot){return U(ot)===ge}function Rt(ot){return U(ot)===H}function Lt(ot){return U(ot)===v}function sn(ot){return U(ot)===_}function Fn(ot){return U(ot)===E}function br(ot){return U(ot)===M}function nn(ot){return U(ot)===V}Vn.ContextConsumer=ae,Vn.ContextProvider=oe,Vn.Element=Te,Vn.ForwardRef=ye,Vn.Fragment=Ve,Vn.Lazy=rt,Vn.Memo=Ye,Vn.Portal=Fe,Vn.Profiler=Pe,Vn.StrictMode=Ze,Vn.Suspense=Ne,Vn.SuspenseList=Be,Vn.isAsyncMode=xe,Vn.isConcurrentMode=G,Vn.isContextConsumer=ce,Vn.isContextProvider=gt,Vn.isElement=ut,Vn.isForwardRef=ct,Vn.isFragment=vt,Vn.isLazy=it,Vn.isMemo=Rt,Vn.isPortal=Lt,Vn.isProfiler=sn,Vn.isStrictMode=Fn,Vn.isSuspense=br,Vn.isSuspenseList=nn,Vn.isValidElementType=ne,Vn.typeOf=U}()),Vn}process.env.NODE_ENV==="production"?jk.exports=tR():jk.exports=nR();var Nl=jk.exports,Lu=function(n,r){return n===0?"":new Array(n*r).fill(" ").join("")};function kg(n){"@babel/helpers - typeof";return kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kg(n)}function NC(n){return rR(n)||aR(n)||iR(n)||oR()}function rR(n){if(Array.isArray(n))return Ik(n)}function aR(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function iR(n,r){if(n){if(typeof n=="string")return Ik(n,r);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ik(n,r)}}function Ik(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,u=new Array(r);o<r;o++)u[o]=n[o];return u}function oR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1101
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mk(n,r){return n===null||kg(n)!=="object"||n instanceof Date||n instanceof RegExp||KF.isValidElement(n)?n:(r.add(n),Array.isArray(n)?n.map(function(o){return Mk(o,r)}):Object.keys(n).sort().reduce(function(o,u){return u==="_owner"||(u==="current"||r.has(n[u])?o[u]="[Circular]":o[u]=Mk(n[u],r)),o},{}))}function sR(n){return Mk(n,new WeakSet)}var RC=function(r){return{type:"string",value:r}},lR=function(r){return{type:"number",value:r}},uR=function(r,o,u,f){return{type:"ReactElement",displayName:r,props:o,defaultProps:u,childrens:f}},cR=function(r,o){return{type:"ReactFragment",key:r,childrens:o}},dR=!!je.Fragment,OC=function(r){return!r.name||r.name==="_default"?"No Display Name":r.name},pR=function n(r){switch(!0){case!!r.displayName:return r.displayName;case r.$$typeof===Nl.Memo:return n(r.type);case r.$$typeof===Nl.ForwardRef:return n(r.render);default:return OC(r)}},fR=function(r){switch(!0){case typeof r.type=="string":return r.type;case typeof r.type=="function":return r.type.displayName?r.type.displayName:OC(r.type);case Nl.isForwardRef(r):case Nl.isMemo(r):return pR(r.type);case Nl.isContextConsumer(r):return"".concat(r.type._context.displayName||"Context",".Consumer");case Nl.isContextProvider(r):return"".concat(r.type._context.displayName||"Context",".Provider");case Nl.isLazy(r):return"Lazy";case Nl.isProfiler(r):return"Profiler";case Nl.isStrictMode(r):return"StrictMode";case Nl.isSuspense(r):return"Suspense";default:return"UnknownElementType"}},LC=function(r,o){return o!=="children"},hR=function(r){return r!==!0&&r!==!1&&r!==null&&r!==""},BC=function(r,o){var u={};return Object.keys(r).filter(function(f){return o(r[f],f)}).forEach(function(f){return u[f]=r[f]}),u},zk=function n(r,o){var u=o.displayName,f=u===void 0?fR:u;if(typeof r=="string")return RC(r);if(typeof r=="number")return lR(r);if(!je.isValidElement(r))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(kg(r),"`"));var g=f(r),v=BC(r.props,LC);r.ref!==null&&(v.ref=r.ref);var S=r.key;typeof S=="string"&&S.search(/^\./)&&(v.key=S);var E=BC(r.type.defaultProps||{},LC),_=je.Children.toArray(r.props.children).filter(hR).map(function($){return n($,o)});return dR&&r.type===je.Fragment?cR(S,_):uR(g,v,E,_)};function mR(){}var gR=function(r){return r.toString().split(`
|
|
1102
|
+
`).map(function(o){return o.trim()}).join("")},jC=gR,IC=function(n,r){var o=r.functionValue,u=o===void 0?jC:o,f=r.showFunctions;return u(!f&&u===jC?mR:n)},vR=function(n,r,o,u){var f=sR(n),g=eR(f,{transform:function(S,E,_){var $=S[E];return $&&je.isValidElement($)?Ly(zk($,u),!0,o,u):typeof $=="function"?IC($,u):_}});return r?g.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):g.replace(/\t/g,Lu(1,u.tabStop)).replace(/\n([^$])/g,`
|
|
1103
|
+
`.concat(Lu(o+1,u.tabStop),"$1"))},yR=function(r){return r.replace(/"/g,""")},bR=function(r,o,u,f){if(typeof r=="number")return"{".concat(String(r),"}");if(typeof r=="string")return'"'.concat(yR(r),'"');if(kg(r)==="symbol"){var g=r.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return g?"{Symbol('".concat(g,"')}"):"{Symbol()}"}return typeof r=="function"?"{".concat(IC(r,f),"}"):je.isValidElement(r)?"{".concat(Ly(zk(r,f),!0,u,f),"}"):r instanceof Date?isNaN(r.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(r.toISOString(),'")}'):Q3(r)||Array.isArray(r)?"{".concat(vR(r,o,u,f),"}"):"{".concat(String(r),"}")},kR=function(n,r,o,u,f,g,v,S){if(!r&&!u)throw new Error('The prop "'.concat(n,'" has no value and no default: could not be formatted'));var E=r?o:f,_=S.useBooleanShorthandSyntax,$=S.tabStop,N=bR(E,g,v,S),R=" ",B=`
|
|
1103
1104
|
`.concat(Lu(v+1,$)),M=N.includes(`
|
|
1104
|
-
`);return _&&N==="{false}"&&!u?(R="",B=""):_&&N==="{true}"?(R+="".concat(n),B+="".concat(n)):(R+="".concat(n,"=").concat(N),B+="".concat(n,"=").concat(N)),{attributeFormattedInline:R,attributeFormattedMultiline:B,isMultilineAttribute:M}},
|
|
1105
|
+
`);return _&&N==="{false}"&&!u?(R="",B=""):_&&N==="{true}"?(R+="".concat(n),B+="".concat(n)):(R+="".concat(n,"=").concat(N),B+="".concat(n,"=").concat(N)),{attributeFormattedInline:R,attributeFormattedMultiline:B,isMultilineAttribute:M}},wR=function(n,r){var o=n.slice(0,n.length>0?n.length-1:0),u=n[n.length-1];return u&&(r.type==="string"||r.type==="number")&&(u.type==="string"||u.type==="number")?o.push(RC(String(u.value)+String(r.value))):(u&&o.push(u),o.push(r)),o},DR=function(r){return["key","ref"].includes(r)},SR=function(n){return function(r){var o=r.includes("key"),u=r.includes("ref"),f=r.filter(function(v){return!DR(v)}),g=NC(n?f.sort():f);return u&&g.unshift("ref"),o&&g.unshift("key"),g}};function CR(n,r){return Array.isArray(r)?function(o){return r.indexOf(o)===-1}:function(o){return r(n[o],o)}}var xR=function(r,o,u,f,g){var v=g.tabStop;return r.type==="string"?o.split(`
|
|
1105
1106
|
`).map(function(S,E){return E===0?S:"".concat(Lu(f,v)).concat(S)}).join(`
|
|
1106
|
-
`):o},
|
|
1107
|
-
`.concat(Lu(o,H)),
|
|
1108
|
-
`,ge+=Lu(Te,H)),ge+=S.reduce(
|
|
1107
|
+
`):o},ER=function(r,o,u){return function(f){return xR(f,Ly(f,r,o,u),r,o,u)}},_R=function(r,o){return function(u){var f=Object.keys(r).includes(u);return!f||f&&r[u]!==o[u]}},MC=function(r,o,u,f,g){return g?Lu(u,f).length+o.length>g:r.length>1},TR=function(r,o,u,f,g,v,S){return(MC(r,o,g,v,S)||u)&&!f},zC=function(n,r,o,u){var f=n.type,g=n.displayName,v=g===void 0?"":g,S=n.childrens,E=n.props,_=E===void 0?{}:E,$=n.defaultProps,N=$===void 0?{}:$;if(f!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(f));var R=u.filterProps,B=u.maxInlineAttributesLineLength,M=u.showDefaultProps,V=u.sortProps,H=u.tabStop,ge="<".concat(v),K=ge,Y=ge,ne=!1,U=[],ae=CR(_,R);Object.keys(_).filter(ae).filter(_R(N,_)).forEach(function(ye){return U.push(ye)}),Object.keys(N).filter(ae).filter(function(){return M}).filter(function(ye){return!U.includes(ye)}).forEach(function(ye){return U.push(ye)});var oe=SR(V)(U);if(oe.forEach(function(ye){var Ve=kR(ye,Object.keys(_).includes(ye),_[ye],Object.keys(N).includes(ye),N[ye],r,o,u),rt=Ve.attributeFormattedInline,Ye=Ve.attributeFormattedMultiline,Fe=Ve.isMultilineAttribute;Fe&&(ne=!0),K+=rt,Y+=Ye}),Y+=`
|
|
1108
|
+
`.concat(Lu(o,H)),TR(oe,K,ne,r,o,H,B)?ge=Y:ge=K,S&&S.length>0){var Te=o+1;ge+=">",r||(ge+=`
|
|
1109
|
+
`,ge+=Lu(Te,H)),ge+=S.reduce(wR,[]).map(ER(r,Te,u)).join(r?"":`
|
|
1109
1110
|
`.concat(Lu(Te,H))),r||(ge+=`
|
|
1110
|
-
`,ge+=Lu(Te-1,H)),ge+="</".concat(v,">")}else
|
|
1111
|
+
`,ge+=Lu(Te-1,H)),ge+="</".concat(v,">")}else MC(oe,K,o,H,B)||(ge+=" "),ge+="/>";return ge},AR="",UC="React.Fragment",FR=function(r,o,u){var f={};return o&&(f={key:o}),{type:"ReactElement",displayName:r,props:f,defaultProps:{},childrens:u}},$R=function(r){var o=r.key;return!!o},PR=function(r){var o=r.childrens;return o.length===0},NR=function(n,r,o,u){var f=n.type,g=n.key,v=n.childrens;if(f!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(f));var S=u.useFragmentShortSyntax,E;return S?PR(n)||$R(n)?E=UC:E=AR:E=UC,zC(FR(E,g,v),r,o,u)},RR=["<",">","{","}"],OR=function(r){return RR.some(function(o){return r.includes(o)})},LR=function(r){return OR(r)?"{`".concat(r,"`}"):r},BR=function(r){var o=r;return o.endsWith(" ")&&(o=o.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),o.startsWith(" ")&&(o=o.replace(/^(\s+)(.*)$/,"{'$1'}$2")),o},Ly=function(n,r,o,u){if(n.type==="number")return String(n.value);if(n.type==="string")return n.value?"".concat(BR(LR(String(n.value)))):"";if(n.type==="ReactElement")return zC(n,r,o,u);if(n.type==="ReactFragment")return NR(n,r,o,u);throw new TypeError('Unknow format type "'.concat(n.type,'"'))},jR=function(n,r){return Ly(n,!1,0,r)},IR=function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=o.filterProps,f=u===void 0?[]:u,g=o.showDefaultProps,v=g===void 0?!0:g,S=o.showFunctions,E=S===void 0?!1:S,_=o.functionValue,$=o.tabStop,N=$===void 0?2:$,R=o.useBooleanShorthandSyntax,B=R===void 0?!0:R,M=o.useFragmentShortSyntax,V=M===void 0?!0:M,H=o.sortProps,ge=H===void 0?!0:H,K=o.maxInlineAttributesLineLength,Y=o.displayName;if(!r)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var ne={filterProps:f,showDefaultProps:v,showFunctions:E,functionValue:_,tabStop:N,useBooleanShorthandSyntax:B,useFragmentShortSyntax:V,sortProps:ge,maxInlineAttributesLineLength:K,displayName:Y};return jR(zk(r,ne),ne)},MR=Object.create,By=Object.defineProperty,zR=Object.getOwnPropertyDescriptor,UR=Object.getOwnPropertyNames,HR=Object.getPrototypeOf,qR=Object.prototype.hasOwnProperty,HC=n=>{throw TypeError(n)},WR=(n,r)=>()=>(n&&(r=n(n=0)),r),Uk=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),jy=(n,r)=>{for(var o in r)By(n,o,{get:r[o],enumerable:!0})},qC=(n,r,o,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of UR(r))!qR.call(n,f)&&f!==o&&By(n,f,{get:()=>r[f],enumerable:!(u=zR(r,f))||u.enumerable});return n},Iy=(n,r,o)=>(o=n!=null?MR(HR(n)):{},qC(By(o,"default",{value:n,enumerable:!0}),n)),VR=n=>qC(By({},"__esModule",{value:!0}),n),YR=(n,r,o)=>r.has(n)||HC("Cannot "+o),GR=(n,r,o)=>r.has(n)?HC("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,o),wg=(n,r,o)=>(YR(n,r,"access private method"),o),Hk=Uk((n,r)=>{var o=new Proxy(String,{get:()=>o});r.exports=o}),WC={};jy(WC,{default:()=>YC,shouldHighlight:()=>VC});var VC,YC,QR=WR(()=>{VC=()=>!1,YC=String}),KR=Uk((n,r)=>{var o=String,u=function(){return{isColorSupported:!1,reset:o,bold:o,dim:o,italic:o,underline:o,inverse:o,hidden:o,strikethrough:o,black:o,red:o,green:o,yellow:o,blue:o,magenta:o,cyan:o,white:o,gray:o,bgBlack:o,bgRed:o,bgGreen:o,bgYellow:o,bgBlue:o,bgMagenta:o,bgCyan:o,bgWhite:o}};r.exports=u(),r.exports.createColors=u}),ZR=Uk(n=>{Object.defineProperty(n,"__esModule",{value:!0}),n.codeFrameColumns=B,n.default=M;var r=(QR(),VR(WC)),o=f(KR(),!0);function u(V){if(typeof WeakMap!="function")return null;var H=new WeakMap,ge=new WeakMap;return(u=function(K){return K?ge:H})(V)}function f(V,H){if(V===null||typeof V!="object"&&typeof V!="function")return{default:V};var ge=u(H);if(ge&&ge.has(V))return ge.get(V);var K={__proto__:null},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in V)if(ne!=="default"&&{}.hasOwnProperty.call(V,ne)){var U=Y?Object.getOwnPropertyDescriptor(V,ne):null;U&&(U.get||U.set)?Object.defineProperty(K,ne,U):K[ne]=V[ne]}return K.default=V,ge&&ge.set(V,K),K}var g=o.default,v=(V,H)=>ge=>V(H(ge)),S;function E(V){return V?(S!=null||(S=(0,o.createColors)(!0)),S):g}var _=!1;function $(V){return{gutter:V.gray,marker:v(V.red,V.bold),message:v(V.red,V.bold)}}var N=/\r\n|[\n\r\u2028\u2029]/;function R(V,H,ge){let K=Object.assign({column:0,line:-1},V.start),Y=Object.assign({},K,V.end),{linesAbove:ne=2,linesBelow:U=3}=ge||{},ae=K.line,oe=K.column,Te=Y.line,ye=Y.column,Ve=Math.max(ae-(ne+1),0),rt=Math.min(H.length,Te+U);ae===-1&&(Ve=0),Te===-1&&(rt=H.length);let Ye=Te-ae,Fe={};if(Ye)for(let Pe=0;Pe<=Ye;Pe++){let Ze=Pe+ae;if(!oe)Fe[Ze]=!0;else if(Pe===0){let Ne=H[Ze-1].length;Fe[Ze]=[oe,Ne-oe+1]}else if(Pe===Ye)Fe[Ze]=[0,ye];else{let Ne=H[Ze-Pe].length;Fe[Ze]=[0,Ne]}}else oe===ye?oe?Fe[ae]=[oe,0]:Fe[ae]=!0:Fe[ae]=[oe,ye-oe];return{start:Ve,end:rt,markerLines:Fe}}function B(V,H,ge={}){let K=(ge.highlightCode||ge.forceColor)&&(0,r.shouldHighlight)(ge),Y=E(ge.forceColor),ne=$(Y),U=(Fe,Pe)=>K?Fe(Pe):Pe,ae=V.split(N),{start:oe,end:Te,markerLines:ye}=R(H,ae,ge),Ve=H.start&&typeof H.start.column=="number",rt=String(Te).length,Ye=(K?(0,r.default)(V,ge):V).split(N,Te).slice(oe,Te).map((Fe,Pe)=>{let Ze=oe+1+Pe,Ne=` ${` ${Ze}`.slice(-rt)} |`,Be=ye[Ze],ve=!ye[Ze+1];if(Be){let Re="";if(Array.isArray(Be)){let xe=Fe.slice(0,Math.max(Be[0]-1,0)).replace(/[^\t]/g," "),G=Be[1]||1;Re=[`
|
|
1111
1112
|
`,U(ne.gutter,Ne.replace(/\d/g," "))," ",xe,U(ne.marker,"^").repeat(G)].join(""),ve&&ge.message&&(Re+=" "+U(ne.message,ge.message))}return[U(ne.marker,">"),U(ne.gutter,Ne),Fe.length>0?` ${Fe}`:"",Re].join("")}else return` ${U(ne.gutter,Ne)}${Fe.length>0?` ${Fe}`:""}`}).join(`
|
|
1112
1113
|
`);return ge.message&&!Ve&&(Ye=`${" ".repeat(rt+1)}${ge.message}
|
|
1113
|
-
${Ye}`),K?Y.reset(Ye):Ye}function M(V,H,ge,K={}){if(!_){_=!0;let Y="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let ne=new Error(Y);ne.name="DeprecationWarning",console.warn(new Error(Y))}}return ge=Math.max(ge,0),B(V,{start:{column:ge,line:H}},K)}}),
|
|
1114
|
-
`));var r=[],o=n.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var u=0;u<o.length;u++){var f=o[u];u%2&&!this.options.newlineIsToken?r[r.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),r.push(f))}return r};var
|
|
1114
|
+
${Ye}`),K?Y.reset(Ye):Ye}function M(V,H,ge,K={}){if(!_){_=!0;let Y="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let ne=new Error(Y);ne.name="DeprecationWarning",console.warn(new Error(Y))}}return ge=Math.max(ge,0),B(V,{start:{column:ge,line:H}},K)}}),XR={};jy(XR,{__debug:()=>ej,check:()=>XB,doc:()=>oE,format:()=>Xy,formatWithCursor:()=>lE,getSupportInfo:()=>JB,util:()=>sE,version:()=>TB});var JR=(n,r,o,u)=>{if(!(n&&r==null))return r.replaceAll?r.replaceAll(o,u):o.global?r.replace(o,u):r.split(o).join(u)},My=JR;function Jc(){}Jc.prototype={diff:function(n,r){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=u.callback;typeof u=="function"&&(f=u,u={}),this.options=u;var g=this;function v(Y){return f?(setTimeout(function(){f(void 0,Y)},0),!0):Y}n=this.castInput(n),r=this.castInput(r),n=this.removeEmpty(this.tokenize(n)),r=this.removeEmpty(this.tokenize(r));var S=r.length,E=n.length,_=1,$=S+E;u.maxEditLength&&($=Math.min($,u.maxEditLength));var N=(o=u.timeout)!==null&&o!==void 0?o:1/0,R=Date.now()+N,B=[{oldPos:-1,lastComponent:void 0}],M=this.extractCommon(B[0],r,n,0);if(B[0].oldPos+1>=E&&M+1>=S)return v([{value:this.join(r),count:r.length}]);var V=-1/0,H=1/0;function ge(){for(var Y=Math.max(V,-_);Y<=Math.min(H,_);Y+=2){var ne=void 0,U=B[Y-1],ae=B[Y+1];U&&(B[Y-1]=void 0);var oe=!1;if(ae){var Te=ae.oldPos-Y;oe=ae&&0<=Te&&Te<S}var ye=U&&U.oldPos+1<E;if(!oe&&!ye){B[Y]=void 0;continue}if(!ye||oe&&U.oldPos+1<ae.oldPos?ne=g.addToPath(ae,!0,void 0,0):ne=g.addToPath(U,void 0,!0,1),M=g.extractCommon(ne,r,n,Y),ne.oldPos+1>=E&&M+1>=S)return v(eO(g,ne.lastComponent,r,n,g.useLongestToken));B[Y]=ne,ne.oldPos+1>=E&&(H=Math.min(H,Y-1)),M+1>=S&&(V=Math.max(V,Y+1))}_++}if(f)(function Y(){setTimeout(function(){if(_>$||Date.now()>R)return f();ge()||Y()},0)})();else for(;_<=$&&Date.now()<=R;){var K=ge();if(K)return K}},addToPath:function(n,r,o,u){var f=n.lastComponent;return f&&f.added===r&&f.removed===o?{oldPos:n.oldPos+u,lastComponent:{count:f.count+1,added:r,removed:o,previousComponent:f.previousComponent}}:{oldPos:n.oldPos+u,lastComponent:{count:1,added:r,removed:o,previousComponent:f}}},extractCommon:function(n,r,o,u){for(var f=r.length,g=o.length,v=n.oldPos,S=v-u,E=0;S+1<f&&v+1<g&&this.equals(r[S+1],o[v+1]);)S++,v++,E++;return E&&(n.lastComponent={count:E,previousComponent:n.lastComponent}),n.oldPos=v,S},equals:function(n,r){return this.options.comparator?this.options.comparator(n,r):n===r||this.options.ignoreCase&&n.toLowerCase()===r.toLowerCase()},removeEmpty:function(n){for(var r=[],o=0;o<n.length;o++)n[o]&&r.push(n[o]);return r},castInput:function(n){return n},tokenize:function(n){return n.split("")},join:function(n){return n.join("")}};function eO(n,r,o,u,f){for(var g=[],v;r;)g.push(r),v=r.previousComponent,delete r.previousComponent,r=v;g.reverse();for(var S=0,E=g.length,_=0,$=0;S<E;S++){var N=g[S];if(N.removed){if(N.value=n.join(u.slice($,$+N.count)),$+=N.count,S&&g[S-1].added){var R=g[S-1];g[S-1]=g[S],g[S]=R}}else{if(!N.added&&f){var B=o.slice(_,_+N.count);B=B.map(function(V,H){var ge=u[$+H];return ge.length>V.length?ge:V}),N.value=n.join(B)}else N.value=n.join(o.slice(_,_+N.count));_+=N.count,N.added||($+=N.count)}}var M=g[E-1];return E>1&&typeof M.value=="string"&&(M.added||M.removed)&&n.equals("",M.value)&&(g[E-2].value+=M.value,g.pop()),g}var GC=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,QC=/\S/,KC=new Jc;KC.equals=function(n,r){return this.options.ignoreCase&&(n=n.toLowerCase(),r=r.toLowerCase()),n===r||this.options.ignoreWhitespace&&!QC.test(n)&&!QC.test(r)},KC.tokenize=function(n){for(var r=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<r.length-1;o++)!r[o+1]&&r[o+2]&&GC.test(r[o])&&GC.test(r[o+2])&&(r[o]+=r[o+2],r.splice(o+1,2),o--);return r};var ZC=new Jc;ZC.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
|
|
1115
|
+
`));var r=[],o=n.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var u=0;u<o.length;u++){var f=o[u];u%2&&!this.options.newlineIsToken?r[r.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),r.push(f))}return r};var tO=new Jc;tO.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var nO=new Jc;nO.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function zy(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zy=function(r){return typeof r}:zy=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zy(n)}var rO=Object.prototype.toString,Dg=new Jc;Dg.useLongestToken=!0,Dg.tokenize=ZC.tokenize,Dg.castInput=function(n){var r=this.options,o=r.undefinedReplacement,u=r.stringifyReplacer,f=u===void 0?function(g,v){return typeof v>"u"?o:v}:u;return typeof n=="string"?n:JSON.stringify(qk(n,null,null,f),f," ")},Dg.equals=function(n,r){return Jc.prototype.equals.call(Dg,n.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function qk(n,r,o,u,f){r=r||[],o=o||[],u&&(n=u(f,n));var g;for(g=0;g<r.length;g+=1)if(r[g]===n)return o[g];var v;if(rO.call(n)==="[object Array]"){for(r.push(n),v=new Array(n.length),o.push(v),g=0;g<n.length;g+=1)v[g]=qk(n[g],r,o,u,f);return r.pop(),o.pop(),v}if(n&&n.toJSON&&(n=n.toJSON()),zy(n)==="object"&&n!==null){r.push(n),v={},o.push(v);var S=[],E;for(E in n)n.hasOwnProperty(E)&&S.push(E);for(S.sort(),g=0;g<S.length;g+=1)E=S[g],v[E]=qk(n[E],r,o,u,E);r.pop(),o.pop()}else v=n;return v}var Uy=new Jc;Uy.tokenize=function(n){return n.slice()},Uy.join=Uy.removeEmpty=function(n){return n};function aO(n,r,o){return Uy.diff(n,r,o)}function iO(n){let r=n.indexOf("\r");return r>=0?n.charAt(r+1)===`
|
|
1115
1116
|
`?"crlf":"cr":"lf"}function Wk(n){switch(n){case"cr":return"\r";case"crlf":return`\r
|
|
1116
1117
|
`;default:return`
|
|
1117
|
-
`}}function
|
|
1118
|
+
`}}function XC(n,r){let o;switch(r){case`
|
|
1118
1119
|
`:o=/\n/gu;break;case"\r":o=/\r/gu;break;case`\r
|
|
1119
|
-
`:o=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(r)}.`)}let u=n.match(o);return u?u.length:0}function
|
|
1120
|
-
`)}var Tp="string",Bu="array",Ap="cursor",ju="indent",Iu="align",Mu="trim",go="group",Rl="fill",Uo="if-break",zu="indent-if-break",Uu="line-suffix",Hu="line-suffix-boundary",ni="line",Ol="label",ds="break-parent",
|
|
1121
|
-
Expected it to be 'string' or 'object'.`;if(Fp(n))throw new Error("doc is valid.");let o=Object.prototype.toString.call(n);if(o!=="[object Object]")return`Unexpected doc '${o}'.`;let u=
|
|
1122
|
-
Expected it to be ${u}.`}var uO=class extends Error{constructor(r){super(lO(r));Zm(this,"name","InvalidDocError");this.doc=r}},dh=uO,JC={};function cO(n,r,o,u){let f=[n];for(;f.length>0;){let g=f.pop();if(g===JC){o(f.pop());continue}o&&f.push(g,JC);let v=Fp(g);if(!v)throw new dh(g);if((r==null?void 0:r(g))!==!1)switch(v){case Bu:case Rl:{let S=v===Bu?g:g.parts;for(let E=S.length,_=E-1;_>=0;--_)f.push(S[_]);break}case Uo:f.push(g.flatContents,g.breakContents);break;case go:if(u&&g.expandedStates)for(let S=g.expandedStates.length,E=S-1;E>=0;--E)f.push(g.expandedStates[E]);else f.push(g.contents);break;case Iu:case ju:case zu:case Ol:case Uu:f.push(g.contents);break;case Tp:case Ap:case Mu:case Hu:case ni:case ds:break;default:throw new dh(g)}}}var Vk=cO,dO=()=>{},pO=dO;function Hy(n){return{type:ju,contents:n}}function ph(n,r){return{type:Iu,contents:r,n}}function ex(n,r={}){return pO(r.expandedStates),{type:go,id:r.id,contents:n,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function fO(n){return ph(Number.NEGATIVE_INFINITY,n)}function hO(n){return ph({type:"root"},n)}function mO(n){return ph(-1,n)}function gO(n,r){return ex(n[0],{...r,expandedStates:n})}function tx(n){return{type:Rl,parts:n}}function vO(n,r="",o={}){return{type:Uo,breakContents:n,flatContents:r,groupId:o.groupId}}function yO(n,r){return{type:zu,contents:n,groupId:r.groupId,negate:r.negate}}function Yk(n){return{type:Uu,contents:n}}var bO={type:Hu},qy={type:ds},kO={type:Mu},Gk={type:ni,hard:!0},nx={type:ni,hard:!0,literal:!0},rx={type:ni},wO={type:ni,soft:!0},$p=[Gk,qy],ax=[nx,qy],Qk={type:Ap};function ix(n,r){let o=[];for(let u=0;u<r.length;u++)u!==0&&o.push(n),o.push(r[u]);return o}function ox(n,r,o){let u=n;if(r>0){for(let f=0;f<Math.floor(r/o);++f)u=Hy(u);u=ph(r%o,u),u=ph(Number.NEGATIVE_INFINITY,u)}return u}function DO(n,r){return n?{type:Ol,label:n,contents:r}:r}function qu(n){var r;if(!n)return"";if(Array.isArray(n)){let o=[];for(let u of n)if(Array.isArray(u))o.push(...qu(u));else{let f=qu(u);f!==""&&o.push(f)}return o}return n.type===Uo?{...n,breakContents:qu(n.breakContents),flatContents:qu(n.flatContents)}:n.type===go?{...n,contents:qu(n.contents),expandedStates:(r=n.expandedStates)==null?void 0:r.map(qu)}:n.type===Rl?{type:"fill",parts:n.parts.map(qu)}:n.contents?{...n,contents:qu(n.contents)}:n}function SO(n){let r=Object.create(null),o=new Set;return u(qu(n));function u(g,v,S){var E,_;if(typeof g=="string")return JSON.stringify(g);if(Array.isArray(g)){let $=g.map(u).filter(Boolean);return $.length===1?$[0]:`[${$.join(", ")}]`}if(g.type===ni){let $=((E=S==null?void 0:S[v+1])==null?void 0:E.type)===ds;return g.literal?$?"literalline":"literallineWithoutBreakParent":g.hard?$?"hardline":"hardlineWithoutBreakParent":g.soft?"softline":"line"}if(g.type===ds)return((_=S==null?void 0:S[v-1])==null?void 0:_.type)===ni&&S[v-1].hard?void 0:"breakParent";if(g.type===Mu)return"trim";if(g.type===ju)return"indent("+u(g.contents)+")";if(g.type===Iu)return g.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+u(g.contents)+")":g.n<0?"dedent("+u(g.contents)+")":g.n.type==="root"?"markAsRoot("+u(g.contents)+")":"align("+JSON.stringify(g.n)+", "+u(g.contents)+")";if(g.type===Uo)return"ifBreak("+u(g.breakContents)+(g.flatContents?", "+u(g.flatContents):"")+(g.groupId?(g.flatContents?"":', ""')+`, { groupId: ${f(g.groupId)} }`:"")+")";if(g.type===zu){let $=[];g.negate&&$.push("negate: true"),g.groupId&&$.push(`groupId: ${f(g.groupId)}`);let N=$.length>0?`, { ${$.join(", ")} }`:"";return`indentIfBreak(${u(g.contents)}${N})`}if(g.type===go){let $=[];g.break&&g.break!=="propagated"&&$.push("shouldBreak: true"),g.id&&$.push(`id: ${f(g.id)}`);let N=$.length>0?`, { ${$.join(", ")} }`:"";return g.expandedStates?`conditionalGroup([${g.expandedStates.map(R=>u(R)).join(",")}]${N})`:`group(${u(g.contents)}${N})`}if(g.type===Rl)return`fill([${g.parts.map($=>u($)).join(", ")}])`;if(g.type===Uu)return"lineSuffix("+u(g.contents)+")";if(g.type===Hu)return"lineSuffixBoundary";if(g.type===Ol)return`label(${JSON.stringify(g.label)}, ${u(g.contents)})`;throw new Error("Unknown doc type "+g.type)}function f(g){if(typeof g!="symbol")return JSON.stringify(String(g));if(g in r)return r[g];let v=g.description||"symbol";for(let S=0;;S++){let E=v+(S>0?` #${S}`:"");if(!o.has(E))return o.add(E),r[g]=`Symbol.for(${JSON.stringify(E)})`}}}var CO=(n,r,o)=>{if(!(n&&r==null))return Array.isArray(r)||typeof r=="string"?r[o<0?r.length+o:o]:r.at(o)},La=CO,xO=()=>/[#*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 EO(n){return n===12288||n>=65281&&n<=65376||n>=65504&&n<=65510}function _O(n){return n>=4352&&n<=4447||n===8986||n===8987||n===9001||n===9002||n>=9193&&n<=9196||n===9200||n===9203||n===9725||n===9726||n===9748||n===9749||n>=9800&&n<=9811||n===9855||n===9875||n===9889||n===9898||n===9899||n===9917||n===9918||n===9924||n===9925||n===9934||n===9940||n===9962||n===9970||n===9971||n===9973||n===9978||n===9981||n===9989||n===9994||n===9995||n===10024||n===10060||n===10062||n>=10067&&n<=10069||n===10071||n>=10133&&n<=10135||n===10160||n===10175||n===11035||n===11036||n===11088||n===11093||n>=11904&&n<=11929||n>=11931&&n<=12019||n>=12032&&n<=12245||n>=12272&&n<=12287||n>=12289&&n<=12350||n>=12353&&n<=12438||n>=12441&&n<=12543||n>=12549&&n<=12591||n>=12593&&n<=12686||n>=12688&&n<=12771||n>=12783&&n<=12830||n>=12832&&n<=12871||n>=12880&&n<=19903||n>=19968&&n<=42124||n>=42128&&n<=42182||n>=43360&&n<=43388||n>=44032&&n<=55203||n>=63744&&n<=64255||n>=65040&&n<=65049||n>=65072&&n<=65106||n>=65108&&n<=65126||n>=65128&&n<=65131||n>=94176&&n<=94180||n===94192||n===94193||n>=94208&&n<=100343||n>=100352&&n<=101589||n>=101632&&n<=101640||n>=110576&&n<=110579||n>=110581&&n<=110587||n===110589||n===110590||n>=110592&&n<=110882||n===110898||n>=110928&&n<=110930||n===110933||n>=110948&&n<=110951||n>=110960&&n<=111355||n===126980||n===127183||n===127374||n>=127377&&n<=127386||n>=127488&&n<=127490||n>=127504&&n<=127547||n>=127552&&n<=127560||n===127568||n===127569||n>=127584&&n<=127589||n>=127744&&n<=127776||n>=127789&&n<=127797||n>=127799&&n<=127868||n>=127870&&n<=127891||n>=127904&&n<=127946||n>=127951&&n<=127955||n>=127968&&n<=127984||n===127988||n>=127992&&n<=128062||n===128064||n>=128066&&n<=128252||n>=128255&&n<=128317||n>=128331&&n<=128334||n>=128336&&n<=128359||n===128378||n===128405||n===128406||n===128420||n>=128507&&n<=128591||n>=128640&&n<=128709||n===128716||n>=128720&&n<=128722||n>=128725&&n<=128727||n>=128732&&n<=128735||n===128747||n===128748||n>=128756&&n<=128764||n>=128992&&n<=129003||n===129008||n>=129292&&n<=129338||n>=129340&&n<=129349||n>=129351&&n<=129535||n>=129648&&n<=129660||n>=129664&&n<=129672||n>=129680&&n<=129725||n>=129727&&n<=129733||n>=129742&&n<=129755||n>=129760&&n<=129768||n>=129776&&n<=129784||n>=131072&&n<=196605||n>=196608&&n<=262141}var TO=n=>!(EO(n)||_O(n)),AO=/[^\x20-\x7F]/u;function FO(n){if(!n)return 0;if(!AO.test(n))return n.length;n=n.replace(xO()," ");let r=0;for(let o of n){let u=o.codePointAt(0);u<=31||u>=127&&u<=159||u>=768&&u<=879||(r+=TO(u)?1:2)}return r}var Kk=FO;function Wy(n,r){if(typeof n=="string")return r(n);let o=new Map;return u(n);function u(g){if(o.has(g))return o.get(g);let v=f(g);return o.set(g,v),v}function f(g){switch(Fp(g)){case Bu:return r(g.map(u));case Rl:return r({...g,parts:g.parts.map(u)});case Uo:return r({...g,breakContents:u(g.breakContents),flatContents:u(g.flatContents)});case go:{let{expandedStates:v,contents:S}=g;return v?(v=v.map(u),S=v[0]):S=u(S),r({...g,contents:S,expandedStates:v})}case Iu:case ju:case zu:case Ol:case Uu:return r({...g,contents:u(g.contents)});case Tp:case Ap:case Mu:case Hu:case ni:case ds:return r(g);default:throw new dh(g)}}}function Zk(n,r,o){let u=o,f=!1;function g(v){if(f)return!1;let S=r(v);S!==void 0&&(f=!0,u=S)}return Vk(n,g),u}function $O(n){if(n.type===go&&n.break||n.type===ni&&n.hard||n.type===ds)return!0}function PO(n){return Zk(n,$O,!1)}function sx(n){if(n.length>0){let r=La(!1,n,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function NO(n){let r=new Set,o=[];function u(g){if(g.type===ds&&sx(o),g.type===go){if(o.push(g),r.has(g))return!1;r.add(g)}}function f(g){g.type===go&&o.pop().break&&sx(o)}Vk(n,u,f,!0)}function RO(n){return n.type===ni&&!n.hard?n.soft?"":" ":n.type===Uo?n.flatContents:n}function OO(n){return Wy(n,RO)}function lx(n){for(n=[...n];n.length>=2&&La(!1,n,-2).type===ni&&La(!1,n,-1).type===ds;)n.length-=2;if(n.length>0){let r=Sg(La(!1,n,-1));n[n.length-1]=r}return n}function Sg(n){switch(Fp(n)){case ju:case zu:case go:case Uu:case Ol:{let r=Sg(n.contents);return{...n,contents:r}}case Uo:return{...n,breakContents:Sg(n.breakContents),flatContents:Sg(n.flatContents)};case Rl:return{...n,parts:lx(n.parts)};case Bu:return lx(n);case Tp:return n.replace(/[\n\r]*$/u,"");case Iu:case Ap:case Mu:case Hu:case ni:case ds:break;default:throw new dh(n)}return n}function ux(n){return Sg(BO(n))}function LO(n){switch(Fp(n)){case Rl:if(n.parts.every(r=>r===""))return"";break;case go:if(!n.contents&&!n.id&&!n.break&&!n.expandedStates)return"";if(n.contents.type===go&&n.contents.id===n.id&&n.contents.break===n.break&&n.contents.expandedStates===n.expandedStates)return n.contents;break;case Iu:case ju:case zu:case Uu:if(!n.contents)return"";break;case Uo:if(!n.flatContents&&!n.breakContents)return"";break;case Bu:{let r=[];for(let o of n){if(!o)continue;let[u,...f]=Array.isArray(o)?o:[o];typeof u=="string"&&typeof La(!1,r,-1)=="string"?r[r.length-1]+=u:r.push(u),r.push(...f)}return r.length===0?"":r.length===1?r[0]:r}case Tp:case Ap:case Mu:case Hu:case ni:case Ol:case ds:break;default:throw new dh(n)}return n}function BO(n){return Wy(n,r=>LO(r))}function jO(n,r=ax){return Wy(n,o=>typeof o=="string"?ix(r,o.split(`
|
|
1123
|
-
`)):o)}function
|
|
1120
|
+
`:o=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(r)}.`)}let u=n.match(o);return u?u.length:0}function oO(n){return My(!1,n,/\r\n?/gu,`
|
|
1121
|
+
`)}var Tp="string",Bu="array",Ap="cursor",ju="indent",Iu="align",Mu="trim",go="group",Rl="fill",Uo="if-break",zu="indent-if-break",Uu="line-suffix",Hu="line-suffix-boundary",ni="line",Ol="label",ds="break-parent",JC=new Set([Ap,ju,Iu,Mu,go,Rl,Uo,zu,Uu,Hu,ni,Ol,ds]);function sO(n){if(typeof n=="string")return Tp;if(Array.isArray(n))return Bu;if(!n)return;let{type:r}=n;if(JC.has(r))return r}var Fp=sO,lO=n=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(n);function uO(n){let r=n===null?"null":typeof n;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}',
|
|
1122
|
+
Expected it to be 'string' or 'object'.`;if(Fp(n))throw new Error("doc is valid.");let o=Object.prototype.toString.call(n);if(o!=="[object Object]")return`Unexpected doc '${o}'.`;let u=lO([...JC].map(f=>`'${f}'`));return`Unexpected doc.type '${n.type}'.
|
|
1123
|
+
Expected it to be ${u}.`}var cO=class extends Error{constructor(r){super(uO(r));Zm(this,"name","InvalidDocError");this.doc=r}},dh=cO,ex={};function dO(n,r,o,u){let f=[n];for(;f.length>0;){let g=f.pop();if(g===ex){o(f.pop());continue}o&&f.push(g,ex);let v=Fp(g);if(!v)throw new dh(g);if((r==null?void 0:r(g))!==!1)switch(v){case Bu:case Rl:{let S=v===Bu?g:g.parts;for(let E=S.length,_=E-1;_>=0;--_)f.push(S[_]);break}case Uo:f.push(g.flatContents,g.breakContents);break;case go:if(u&&g.expandedStates)for(let S=g.expandedStates.length,E=S-1;E>=0;--E)f.push(g.expandedStates[E]);else f.push(g.contents);break;case Iu:case ju:case zu:case Ol:case Uu:f.push(g.contents);break;case Tp:case Ap:case Mu:case Hu:case ni:case ds:break;default:throw new dh(g)}}}var Vk=dO,pO=()=>{},fO=pO;function Hy(n){return{type:ju,contents:n}}function ph(n,r){return{type:Iu,contents:r,n}}function tx(n,r={}){return fO(r.expandedStates),{type:go,id:r.id,contents:n,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function hO(n){return ph(Number.NEGATIVE_INFINITY,n)}function mO(n){return ph({type:"root"},n)}function gO(n){return ph(-1,n)}function vO(n,r){return tx(n[0],{...r,expandedStates:n})}function nx(n){return{type:Rl,parts:n}}function yO(n,r="",o={}){return{type:Uo,breakContents:n,flatContents:r,groupId:o.groupId}}function bO(n,r){return{type:zu,contents:n,groupId:r.groupId,negate:r.negate}}function Yk(n){return{type:Uu,contents:n}}var kO={type:Hu},qy={type:ds},wO={type:Mu},Gk={type:ni,hard:!0},rx={type:ni,hard:!0,literal:!0},ax={type:ni},DO={type:ni,soft:!0},$p=[Gk,qy],ix=[rx,qy],Qk={type:Ap};function ox(n,r){let o=[];for(let u=0;u<r.length;u++)u!==0&&o.push(n),o.push(r[u]);return o}function sx(n,r,o){let u=n;if(r>0){for(let f=0;f<Math.floor(r/o);++f)u=Hy(u);u=ph(r%o,u),u=ph(Number.NEGATIVE_INFINITY,u)}return u}function SO(n,r){return n?{type:Ol,label:n,contents:r}:r}function qu(n){var r;if(!n)return"";if(Array.isArray(n)){let o=[];for(let u of n)if(Array.isArray(u))o.push(...qu(u));else{let f=qu(u);f!==""&&o.push(f)}return o}return n.type===Uo?{...n,breakContents:qu(n.breakContents),flatContents:qu(n.flatContents)}:n.type===go?{...n,contents:qu(n.contents),expandedStates:(r=n.expandedStates)==null?void 0:r.map(qu)}:n.type===Rl?{type:"fill",parts:n.parts.map(qu)}:n.contents?{...n,contents:qu(n.contents)}:n}function CO(n){let r=Object.create(null),o=new Set;return u(qu(n));function u(g,v,S){var E,_;if(typeof g=="string")return JSON.stringify(g);if(Array.isArray(g)){let $=g.map(u).filter(Boolean);return $.length===1?$[0]:`[${$.join(", ")}]`}if(g.type===ni){let $=((E=S==null?void 0:S[v+1])==null?void 0:E.type)===ds;return g.literal?$?"literalline":"literallineWithoutBreakParent":g.hard?$?"hardline":"hardlineWithoutBreakParent":g.soft?"softline":"line"}if(g.type===ds)return((_=S==null?void 0:S[v-1])==null?void 0:_.type)===ni&&S[v-1].hard?void 0:"breakParent";if(g.type===Mu)return"trim";if(g.type===ju)return"indent("+u(g.contents)+")";if(g.type===Iu)return g.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+u(g.contents)+")":g.n<0?"dedent("+u(g.contents)+")":g.n.type==="root"?"markAsRoot("+u(g.contents)+")":"align("+JSON.stringify(g.n)+", "+u(g.contents)+")";if(g.type===Uo)return"ifBreak("+u(g.breakContents)+(g.flatContents?", "+u(g.flatContents):"")+(g.groupId?(g.flatContents?"":', ""')+`, { groupId: ${f(g.groupId)} }`:"")+")";if(g.type===zu){let $=[];g.negate&&$.push("negate: true"),g.groupId&&$.push(`groupId: ${f(g.groupId)}`);let N=$.length>0?`, { ${$.join(", ")} }`:"";return`indentIfBreak(${u(g.contents)}${N})`}if(g.type===go){let $=[];g.break&&g.break!=="propagated"&&$.push("shouldBreak: true"),g.id&&$.push(`id: ${f(g.id)}`);let N=$.length>0?`, { ${$.join(", ")} }`:"";return g.expandedStates?`conditionalGroup([${g.expandedStates.map(R=>u(R)).join(",")}]${N})`:`group(${u(g.contents)}${N})`}if(g.type===Rl)return`fill([${g.parts.map($=>u($)).join(", ")}])`;if(g.type===Uu)return"lineSuffix("+u(g.contents)+")";if(g.type===Hu)return"lineSuffixBoundary";if(g.type===Ol)return`label(${JSON.stringify(g.label)}, ${u(g.contents)})`;throw new Error("Unknown doc type "+g.type)}function f(g){if(typeof g!="symbol")return JSON.stringify(String(g));if(g in r)return r[g];let v=g.description||"symbol";for(let S=0;;S++){let E=v+(S>0?` #${S}`:"");if(!o.has(E))return o.add(E),r[g]=`Symbol.for(${JSON.stringify(E)})`}}}var xO=(n,r,o)=>{if(!(n&&r==null))return Array.isArray(r)||typeof r=="string"?r[o<0?r.length+o:o]:r.at(o)},La=xO,EO=()=>/[#*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 _O(n){return n===12288||n>=65281&&n<=65376||n>=65504&&n<=65510}function TO(n){return n>=4352&&n<=4447||n===8986||n===8987||n===9001||n===9002||n>=9193&&n<=9196||n===9200||n===9203||n===9725||n===9726||n===9748||n===9749||n>=9800&&n<=9811||n===9855||n===9875||n===9889||n===9898||n===9899||n===9917||n===9918||n===9924||n===9925||n===9934||n===9940||n===9962||n===9970||n===9971||n===9973||n===9978||n===9981||n===9989||n===9994||n===9995||n===10024||n===10060||n===10062||n>=10067&&n<=10069||n===10071||n>=10133&&n<=10135||n===10160||n===10175||n===11035||n===11036||n===11088||n===11093||n>=11904&&n<=11929||n>=11931&&n<=12019||n>=12032&&n<=12245||n>=12272&&n<=12287||n>=12289&&n<=12350||n>=12353&&n<=12438||n>=12441&&n<=12543||n>=12549&&n<=12591||n>=12593&&n<=12686||n>=12688&&n<=12771||n>=12783&&n<=12830||n>=12832&&n<=12871||n>=12880&&n<=19903||n>=19968&&n<=42124||n>=42128&&n<=42182||n>=43360&&n<=43388||n>=44032&&n<=55203||n>=63744&&n<=64255||n>=65040&&n<=65049||n>=65072&&n<=65106||n>=65108&&n<=65126||n>=65128&&n<=65131||n>=94176&&n<=94180||n===94192||n===94193||n>=94208&&n<=100343||n>=100352&&n<=101589||n>=101632&&n<=101640||n>=110576&&n<=110579||n>=110581&&n<=110587||n===110589||n===110590||n>=110592&&n<=110882||n===110898||n>=110928&&n<=110930||n===110933||n>=110948&&n<=110951||n>=110960&&n<=111355||n===126980||n===127183||n===127374||n>=127377&&n<=127386||n>=127488&&n<=127490||n>=127504&&n<=127547||n>=127552&&n<=127560||n===127568||n===127569||n>=127584&&n<=127589||n>=127744&&n<=127776||n>=127789&&n<=127797||n>=127799&&n<=127868||n>=127870&&n<=127891||n>=127904&&n<=127946||n>=127951&&n<=127955||n>=127968&&n<=127984||n===127988||n>=127992&&n<=128062||n===128064||n>=128066&&n<=128252||n>=128255&&n<=128317||n>=128331&&n<=128334||n>=128336&&n<=128359||n===128378||n===128405||n===128406||n===128420||n>=128507&&n<=128591||n>=128640&&n<=128709||n===128716||n>=128720&&n<=128722||n>=128725&&n<=128727||n>=128732&&n<=128735||n===128747||n===128748||n>=128756&&n<=128764||n>=128992&&n<=129003||n===129008||n>=129292&&n<=129338||n>=129340&&n<=129349||n>=129351&&n<=129535||n>=129648&&n<=129660||n>=129664&&n<=129672||n>=129680&&n<=129725||n>=129727&&n<=129733||n>=129742&&n<=129755||n>=129760&&n<=129768||n>=129776&&n<=129784||n>=131072&&n<=196605||n>=196608&&n<=262141}var AO=n=>!(_O(n)||TO(n)),FO=/[^\x20-\x7F]/u;function $O(n){if(!n)return 0;if(!FO.test(n))return n.length;n=n.replace(EO()," ");let r=0;for(let o of n){let u=o.codePointAt(0);u<=31||u>=127&&u<=159||u>=768&&u<=879||(r+=AO(u)?1:2)}return r}var Kk=$O;function Wy(n,r){if(typeof n=="string")return r(n);let o=new Map;return u(n);function u(g){if(o.has(g))return o.get(g);let v=f(g);return o.set(g,v),v}function f(g){switch(Fp(g)){case Bu:return r(g.map(u));case Rl:return r({...g,parts:g.parts.map(u)});case Uo:return r({...g,breakContents:u(g.breakContents),flatContents:u(g.flatContents)});case go:{let{expandedStates:v,contents:S}=g;return v?(v=v.map(u),S=v[0]):S=u(S),r({...g,contents:S,expandedStates:v})}case Iu:case ju:case zu:case Ol:case Uu:return r({...g,contents:u(g.contents)});case Tp:case Ap:case Mu:case Hu:case ni:case ds:return r(g);default:throw new dh(g)}}}function Zk(n,r,o){let u=o,f=!1;function g(v){if(f)return!1;let S=r(v);S!==void 0&&(f=!0,u=S)}return Vk(n,g),u}function PO(n){if(n.type===go&&n.break||n.type===ni&&n.hard||n.type===ds)return!0}function NO(n){return Zk(n,PO,!1)}function lx(n){if(n.length>0){let r=La(!1,n,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function RO(n){let r=new Set,o=[];function u(g){if(g.type===ds&&lx(o),g.type===go){if(o.push(g),r.has(g))return!1;r.add(g)}}function f(g){g.type===go&&o.pop().break&&lx(o)}Vk(n,u,f,!0)}function OO(n){return n.type===ni&&!n.hard?n.soft?"":" ":n.type===Uo?n.flatContents:n}function LO(n){return Wy(n,OO)}function ux(n){for(n=[...n];n.length>=2&&La(!1,n,-2).type===ni&&La(!1,n,-1).type===ds;)n.length-=2;if(n.length>0){let r=Sg(La(!1,n,-1));n[n.length-1]=r}return n}function Sg(n){switch(Fp(n)){case ju:case zu:case go:case Uu:case Ol:{let r=Sg(n.contents);return{...n,contents:r}}case Uo:return{...n,breakContents:Sg(n.breakContents),flatContents:Sg(n.flatContents)};case Rl:return{...n,parts:ux(n.parts)};case Bu:return ux(n);case Tp:return n.replace(/[\n\r]*$/u,"");case Iu:case Ap:case Mu:case Hu:case ni:case ds:break;default:throw new dh(n)}return n}function cx(n){return Sg(jO(n))}function BO(n){switch(Fp(n)){case Rl:if(n.parts.every(r=>r===""))return"";break;case go:if(!n.contents&&!n.id&&!n.break&&!n.expandedStates)return"";if(n.contents.type===go&&n.contents.id===n.id&&n.contents.break===n.break&&n.contents.expandedStates===n.expandedStates)return n.contents;break;case Iu:case ju:case zu:case Uu:if(!n.contents)return"";break;case Uo:if(!n.flatContents&&!n.breakContents)return"";break;case Bu:{let r=[];for(let o of n){if(!o)continue;let[u,...f]=Array.isArray(o)?o:[o];typeof u=="string"&&typeof La(!1,r,-1)=="string"?r[r.length-1]+=u:r.push(u),r.push(...f)}return r.length===0?"":r.length===1?r[0]:r}case Tp:case Ap:case Mu:case Hu:case ni:case Ol:case ds:break;default:throw new dh(n)}return n}function jO(n){return Wy(n,r=>BO(r))}function IO(n,r=ix){return Wy(n,o=>typeof o=="string"?ox(r,o.split(`
|
|
1124
|
+
`)):o)}function MO(n){if(n.type===ni)return!0}function zO(n){return Zk(n,MO,!1)}function dx(n,r){return n.type===Ol?{...n,contents:r(n.contents)}:r(n)}var vo=Symbol("MODE_BREAK"),Ll=Symbol("MODE_FLAT"),Cg=Symbol("cursor");function px(){return{value:"",length:0,queue:[]}}function UO(n,r){return Xk(n,{type:"indent"},r)}function HO(n,r,o){return r===Number.NEGATIVE_INFINITY?n.root||px():r<0?Xk(n,{type:"dedent"},o):r?r.type==="root"?{...n,root:n}:Xk(n,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},o):n}function Xk(n,r,o){let u=r.type==="dedent"?n.queue.slice(0,-1):[...n.queue,r],f="",g=0,v=0,S=0;for(let M of u)switch(M.type){case"indent":$(),o.useTabs?E(1):_(o.tabWidth);break;case"stringAlign":$(),f+=M.n,g+=M.n.length;break;case"numberAlign":v+=1,S+=M.n;break;default:throw new Error(`Unexpected type '${M.type}'`)}return R(),{...n,value:f,length:g,queue:u};function E(M){f+=" ".repeat(M),g+=o.tabWidth*M}function _(M){f+=" ".repeat(M),g+=M}function $(){o.useTabs?N():R()}function N(){v>0&&E(v),B()}function R(){S>0&&_(S),B()}function B(){v=0,S=0}}function Jk(n){let r=0,o=0,u=n.length;e:for(;u--;){let f=n[u];if(f===Cg){o++;continue}for(let g=f.length-1;g>=0;g--){let v=f[g];if(v===" "||v===" ")r++;else{n[u]=f.slice(0,g+1);break e}}}if(r>0||o>0)for(n.length=u+1;o-- >0;)n.push(Cg);return r}function Vy(n,r,o,u,f,g){if(o===Number.POSITIVE_INFINITY)return!0;let v=r.length,S=[n],E=[];for(;o>=0;){if(S.length===0){if(v===0)return!0;S.push(r[--v]);continue}let{mode:_,doc:$}=S.pop(),N=Fp($);switch(N){case Tp:E.push($),o-=Kk($);break;case Bu:case Rl:{let R=N===Bu?$:$.parts;for(let B=R.length-1;B>=0;B--)S.push({mode:_,doc:R[B]});break}case ju:case Iu:case zu:case Ol:S.push({mode:_,doc:$.contents});break;case Mu:o+=Jk(E);break;case go:{if(g&&$.break)return!1;let R=$.break?vo:_,B=$.expandedStates&&R===vo?La(!1,$.expandedStates,-1):$.contents;S.push({mode:R,doc:B});break}case Uo:{let R=($.groupId?f[$.groupId]||Ll:_)===vo?$.breakContents:$.flatContents;R&&S.push({mode:_,doc:R});break}case ni:if(_===vo||$.hard)return!0;$.soft||(E.push(" "),o--);break;case Uu:u=!0;break;case Hu:if(u)return!1;break}}return!1}function Yy(n,r){let o={},u=r.printWidth,f=Wk(r.endOfLine),g=0,v=[{ind:px(),mode:vo,doc:n}],S=[],E=!1,_=[],$=0;for(RO(n);v.length>0;){let{ind:R,mode:B,doc:M}=v.pop();switch(Fp(M)){case Tp:{let V=f!==`
|
|
1124
1125
|
`?My(!1,M,`
|
|
1125
|
-
`,f):M;S.push(V),v.length>0&&(g+=Kk(V));break}case Bu:for(let V=M.length-1;V>=0;V--)v.push({ind:R,mode:B,doc:M[V]});break;case Ap:if($>=2)throw new Error("There are too many 'cursor' in doc.");S.push(Cg),$++;break;case ju:v.push({ind:
|
|
1126
|
+
`,f):M;S.push(V),v.length>0&&(g+=Kk(V));break}case Bu:for(let V=M.length-1;V>=0;V--)v.push({ind:R,mode:B,doc:M[V]});break;case Ap:if($>=2)throw new Error("There are too many 'cursor' in doc.");S.push(Cg),$++;break;case ju:v.push({ind:UO(R,r),mode:B,doc:M.contents});break;case Iu:v.push({ind:HO(R,M.n,r),mode:B,doc:M.contents});break;case Mu:g-=Jk(S);break;case go:switch(B){case Ll:if(!E){v.push({ind:R,mode:M.break?vo:Ll,doc:M.contents});break}case vo:{E=!1;let V={ind:R,mode:Ll,doc:M.contents},H=u-g,ge=_.length>0;if(!M.break&&Vy(V,v,H,ge,o))v.push(V);else if(M.expandedStates){let K=La(!1,M.expandedStates,-1);if(M.break){v.push({ind:R,mode:vo,doc:K});break}else for(let Y=1;Y<M.expandedStates.length+1;Y++)if(Y>=M.expandedStates.length){v.push({ind:R,mode:vo,doc:K});break}else{let ne=M.expandedStates[Y],U={ind:R,mode:Ll,doc:ne};if(Vy(U,v,H,ge,o)){v.push(U);break}}}else v.push({ind:R,mode:vo,doc:M.contents});break}}M.id&&(o[M.id]=La(!1,v,-1).mode);break;case Rl:{let V=u-g,{parts:H}=M;if(H.length===0)break;let[ge,K]=H,Y={ind:R,mode:Ll,doc:ge},ne={ind:R,mode:vo,doc:ge},U=Vy(Y,[],V,_.length>0,o,!0);if(H.length===1){U?v.push(Y):v.push(ne);break}let ae={ind:R,mode:Ll,doc:K},oe={ind:R,mode:vo,doc:K};if(H.length===2){U?v.push(ae,Y):v.push(oe,ne);break}H.splice(0,2);let Te={ind:R,mode:B,doc:nx(H)},ye=H[0];Vy({ind:R,mode:Ll,doc:[ge,K,ye]},[],V,_.length>0,o,!0)?v.push(Te,ae,Y):U?v.push(Te,oe,Y):v.push(Te,oe,ne);break}case Uo:case zu:{let V=M.groupId?o[M.groupId]:B;if(V===vo){let H=M.type===Uo?M.breakContents:M.negate?M.contents:Hy(M.contents);H&&v.push({ind:R,mode:B,doc:H})}if(V===Ll){let H=M.type===Uo?M.flatContents:M.negate?Hy(M.contents):M.contents;H&&v.push({ind:R,mode:B,doc:H})}break}case Uu:_.push({ind:R,mode:B,doc:M.contents});break;case Hu:_.length>0&&v.push({ind:R,mode:B,doc:Gk});break;case ni:switch(B){case Ll:if(M.hard)E=!0;else{M.soft||(S.push(" "),g+=1);break}case vo:if(_.length>0){v.push({ind:R,mode:B,doc:M},..._.reverse()),_.length=0;break}M.literal?R.root?(S.push(f,R.root.value),g=R.root.length):(S.push(f),g=0):(g-=Jk(S),S.push(f+R.value),g=R.length);break}break;case Ol:v.push({ind:R,mode:B,doc:M.contents});break;case ds:break;default:throw new dh(M)}v.length===0&&_.length>0&&(v.push(..._.reverse()),_.length=0)}let N=S.indexOf(Cg);if(N!==-1){let R=S.indexOf(Cg,N+1),B=S.slice(0,N).join(""),M=S.slice(N+1,R).join(""),V=S.slice(R+1).join("");return{formatted:B+M+V,cursorNodeStart:B.length,cursorNodeText:M}}return{formatted:S.join("")}}function qO(n,r,o=0){let u=0;for(let f=o;f<n.length;++f)n[f]===" "?u=u+r-u%r:u++;return u}var e1=qO,Pp,t1,Gy,WO=class{constructor(n){GR(this,Pp),this.stack=[n]}get key(){let{stack:n,siblings:r}=this;return La(!1,n,r===null?-2:-4)??null}get index(){return this.siblings===null?null:La(!1,this.stack,-2)}get node(){return La(!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:n}=this,r=La(!1,n,-3);return Array.isArray(r)?r:null}get next(){let{siblings:n}=this;return n===null?null:n[this.index+1]}get previous(){let{siblings:n}=this;return n===null?null:n[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:n,index:r}=this;return n!==null&&r===n.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...wg(this,Pp,Gy).call(this)]}getName(){let{stack:n}=this,{length:r}=n;return r>1?La(!1,n,-2):null}getValue(){return La(!1,this.stack,-1)}getNode(n=0){let r=wg(this,Pp,t1).call(this,n);return r===-1?null:this.stack[r]}getParentNode(n=0){return this.getNode(n+1)}call(n,...r){let{stack:o}=this,{length:u}=o,f=La(!1,o,-1);for(let g of r)f=f[g],o.push(g,f);try{return n(this)}finally{o.length=u}}callParent(n,r=0){let o=wg(this,Pp,t1).call(this,r+1),u=this.stack.splice(o+1);try{return n(this)}finally{this.stack.push(...u)}}each(n,...r){let{stack:o}=this,{length:u}=o,f=La(!1,o,-1);for(let g of r)f=f[g],o.push(g,f);try{for(let g=0;g<f.length;++g)o.push(g,f[g]),n(this,g,f),o.length-=2}finally{o.length=u}}map(n,...r){let o=[];return this.each((u,f,g)=>{o[f]=n(u,f,g)},...r),o}match(...n){let r=this.stack.length-1,o=null,u=this.stack[r--];for(let f of n){if(u===void 0)return!1;let g=null;if(typeof o=="number"&&(g=o,o=this.stack[r--],u=this.stack[r--]),f&&!f(u,o,g))return!1;o=this.stack[r--],u=this.stack[r--]}return!0}findAncestor(n){for(let r of wg(this,Pp,Gy).call(this))if(n(r))return r}hasAncestor(n){for(let r of wg(this,Pp,Gy).call(this))if(n(r))return!0;return!1}};Pp=new WeakSet,t1=function(n){let{stack:r}=this;for(let o=r.length-1;o>=0;o-=2)if(!Array.isArray(r[o])&&--n<0)return o;return-1},Gy=function*(){let{stack:n}=this;for(let r=n.length-3;r>=0;r-=2){let o=n[r];Array.isArray(o)||(yield o)}};var VO=WO,fx=new Proxy(()=>{},{get:()=>fx}),n1=fx;function YO(n){return n!==null&&typeof n=="object"}var GO=YO;function*hx(n,r){let{getVisitorKeys:o,filter:u=()=>!0}=r,f=g=>GO(g)&&u(g);for(let g of o(n)){let v=n[g];if(Array.isArray(v))for(let S of v)f(S)&&(yield S);else f(v)&&(yield v)}}function*QO(n,r){let o=[n];for(let u=0;u<o.length;u++){let f=o[u];for(let g of hx(f,r))yield g,o.push(g)}}function xg(n){return(r,o,u)=>{let f=!!(u!=null&&u.backwards);if(o===!1)return!1;let{length:g}=r,v=o;for(;v>=0&&v<g;){let S=r.charAt(v);if(n instanceof RegExp){if(!n.test(S))return v}else if(!n.includes(S))return v;f?v--:v++}return v===-1||v===g?v:!1}}var KO=xg(/\s/u),ed=xg(" "),mx=xg(",; "),gx=xg(/[^\n\r]/u);function ZO(n,r,o){let u=!!(o!=null&&o.backwards);if(r===!1)return!1;let f=n.charAt(r);if(u){if(n.charAt(r-1)==="\r"&&f===`
|
|
1126
1127
|
`)return r-2;if(f===`
|
|
1127
1128
|
`||f==="\r"||f==="\u2028"||f==="\u2029")return r-1}else{if(f==="\r"&&n.charAt(r+1)===`
|
|
1128
1129
|
`)return r+2;if(f===`
|
|
1129
|
-
`||f==="\r"||f==="\u2028"||f==="\u2029")return r+1}return r}var Np=
|
|
1130
|
+
`||f==="\r"||f==="\u2028"||f==="\u2029")return r+1}return r}var Np=ZO;function XO(n,r,o={}){let u=ed(n,o.backwards?r-1:r,o),f=Np(n,u,o);return u!==f}var td=XO;function JO(n){return Array.isArray(n)&&n.length>0}var eL=JO,vx=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),tL=n=>Object.keys(n).filter(r=>!vx.has(r));function nL(n){return n?r=>n(r,vx):tL}var Qy=nL;function rL(n){let r=n.type||n.kind||"(unknown type)",o=String(n.name||n.id&&(typeof n.id=="object"?n.id.name:n.id)||n.key&&(typeof n.key=="object"?n.key.name:n.key)||n.value&&(typeof n.value=="object"?"":String(n.value))||n.operator||"");return o.length>20&&(o=o.slice(0,19)+"…"),r+(o?" "+o:"")}function r1(n,r){(n.comments??(n.comments=[])).push(r),r.printed=!1,r.nodeDescription=rL(n)}function fh(n,r){r.leading=!0,r.trailing=!1,r1(n,r)}function Rp(n,r,o){r.leading=!1,r.trailing=!1,o&&(r.marker=o),r1(n,r)}function hh(n,r){r.leading=!1,r.trailing=!0,r1(n,r)}var a1=new WeakMap;function i1(n,r){if(a1.has(n))return a1.get(n);let{printer:{getCommentChildNodes:o,canAttachComment:u,getVisitorKeys:f},locStart:g,locEnd:v}=r;if(!u)return[];let S=((o==null?void 0:o(n,r))??[...hx(n,{getVisitorKeys:Qy(f)})]).flatMap(E=>u(E)?[E]:i1(E,r));return S.sort((E,_)=>g(E)-g(_)||v(E)-v(_)),a1.set(n,S),S}function yx(n,r,o,u){let{locStart:f,locEnd:g}=o,v=f(r),S=g(r),E=i1(n,o),_,$,N=0,R=E.length;for(;N<R;){let B=N+R>>1,M=E[B],V=f(M),H=g(M);if(V<=v&&S<=H)return yx(M,r,o,M);if(H<=v){_=M,N=B+1;continue}if(S<=V){$=M,R=B;continue}throw new Error("Comment location overlaps with node location")}if((u==null?void 0:u.type)==="TemplateLiteral"){let{quasis:B}=u,M=s1(B,r,o);_&&s1(B,_,o)!==M&&(_=null),$&&s1(B,$,o)!==M&&($=null)}return{enclosingNode:u,precedingNode:_,followingNode:$}}var o1=()=>!1;function aL(n,r){let{comments:o}=n;if(delete n.comments,!eL(o)||!r.printer.canAttachComment)return;let u=[],{locStart:f,locEnd:g,printer:{experimentalFeatures:{avoidAstMutation:v=!1}={},handleComments:S={}},originalText:E}=r,{ownLine:_=o1,endOfLine:$=o1,remaining:N=o1}=S,R=o.map((B,M)=>({...yx(n,B,r),comment:B,text:E,options:r,ast:n,isLastComment:o.length-1===M}));for(let[B,M]of R.entries()){let{comment:V,precedingNode:H,enclosingNode:ge,followingNode:K,text:Y,options:ne,ast:U,isLastComment:ae}=M;if(ne.parser==="json"||ne.parser==="json5"||ne.parser==="jsonc"||ne.parser==="__js_expression"||ne.parser==="__ts_expression"||ne.parser==="__vue_expression"||ne.parser==="__vue_ts_expression"){if(f(V)-f(U)<=0){fh(U,V);continue}if(g(V)-g(U)>=0){hh(U,V);continue}}let oe;if(v?oe=[M]:(V.enclosingNode=ge,V.precedingNode=H,V.followingNode=K,oe=[V,Y,ne,U,ae]),iL(Y,ne,R,B))V.placement="ownLine",_(...oe)||(K?fh(K,V):H?hh(H,V):Rp(ge||U,V));else if(oL(Y,ne,R,B))V.placement="endOfLine",$(...oe)||(H?hh(H,V):K?fh(K,V):Rp(ge||U,V));else if(V.placement="remaining",!N(...oe))if(H&&K){let Te=u.length;Te>0&&u[Te-1].followingNode!==K&&kx(u,ne),u.push(M)}else H?hh(H,V):K?fh(K,V):Rp(ge||U,V)}if(kx(u,r),!v)for(let B of o)delete B.precedingNode,delete B.enclosingNode,delete B.followingNode}var bx=n=>!/[\S\n\u2028\u2029]/u.test(n);function iL(n,r,o,u){let{comment:f,precedingNode:g}=o[u],{locStart:v,locEnd:S}=r,E=v(f);if(g)for(let _=u-1;_>=0;_--){let{comment:$,precedingNode:N}=o[_];if(N!==g||!bx(n.slice(S($),E)))break;E=v($)}return td(n,E,{backwards:!0})}function oL(n,r,o,u){let{comment:f,followingNode:g}=o[u],{locStart:v,locEnd:S}=r,E=S(f);if(g)for(let _=u+1;_<o.length;_++){let{comment:$,followingNode:N}=o[_];if(N!==g||!bx(n.slice(E,v($))))break;E=S($)}return td(n,E)}function kx(n,r){var o,u;let f=n.length;if(f===0)return;let{precedingNode:g,followingNode:v}=n[0],S=r.locStart(v),E;for(E=f;E>0;--E){let{comment:_,precedingNode:$,followingNode:N}=n[E-1];n1.strictEqual($,g),n1.strictEqual(N,v);let R=r.originalText.slice(r.locEnd(_),S);if(((u=(o=r.printer).isGap)==null?void 0:u.call(o,R,r))??/^[\s(]*$/u.test(R))S=r.locStart(_);else break}for(let[_,{comment:$}]of n.entries())_<E?hh(g,$):fh(v,$);for(let _ of[g,v])_.comments&&_.comments.length>1&&_.comments.sort(($,N)=>r.locStart($)-r.locStart(N));n.length=0}function s1(n,r,o){let u=o.locStart(r)-1;for(let f=1;f<n.length;++f)if(u<o.locStart(n[f]))return f-1;return 0}function sL(n,r){let o=r-1;o=ed(n,o,{backwards:!0}),o=Np(n,o,{backwards:!0}),o=ed(n,o,{backwards:!0});let u=Np(n,o,{backwards:!0});return o!==u}var l1=sL;function wx(n,r){let o=n.node;return o.printed=!0,r.printer.printComment(n,r)}function lL(n,r){var o;let u=n.node,f=[wx(n,r)],{printer:g,originalText:v,locStart:S,locEnd:E}=r;if((o=g.isBlockComment)!=null&&o.call(g,u)){let $=td(v,E(u))?td(v,S(u),{backwards:!0})?$p:ax:" ";f.push($)}else f.push($p);let _=Np(v,ed(v,E(u)));return _!==!1&&td(v,_)&&f.push($p),f}function uL(n,r,o){var u;let f=n.node,g=wx(n,r),{printer:v,originalText:S,locStart:E}=r,_=(u=v.isBlockComment)==null?void 0:u.call(v,f);if(o!=null&&o.hasLineSuffix&&!(o!=null&&o.isBlock)||td(S,E(f),{backwards:!0})){let $=l1(S,E(f));return{doc:Yk([$p,$?$p:"",g]),isBlock:_,hasLineSuffix:!0}}return!_||o!=null&&o.hasLineSuffix?{doc:[Yk([" ",g]),qy],isBlock:_,hasLineSuffix:!0}:{doc:[" ",g],isBlock:_,hasLineSuffix:!1}}function cL(n,r){let o=n.node;if(!o)return{};let u=r[Symbol.for("printedComments")];if((o.comments||[]).filter(S=>!u.has(S)).length===0)return{leading:"",trailing:""};let f=[],g=[],v;return n.each(()=>{let S=n.node;if(u!=null&&u.has(S))return;let{leading:E,trailing:_}=S;E?f.push(lL(n,r)):_&&(v=uL(n,r,v),g.push(v.doc))},"comments"),{leading:f,trailing:g}}function dL(n,r,o){let{leading:u,trailing:f}=cL(n,o);return!u&&!f?r:dx(r,g=>[u,g,f])}function pL(n){let{[Symbol.for("comments")]:r,[Symbol.for("printedComments")]:o}=n;for(let u of r){if(!u.printed&&!o.has(u))throw new Error('Comment "'+u.value.trim()+'" was not printed. Please report this error!');delete u.printed}}var Dx=class extends Error{constructor(){super(...arguments);Zm(this,"name","ConfigError")}},Sx=class extends Error{constructor(){super(...arguments);Zm(this,"name","UndefinedParserError")}},fL={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
|
|
1130
1131
|
(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:n=>typeof n=="string"||typeof n=="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:n=>typeof n=="string"||typeof n=="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).
|
|
1131
1132
|
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.
|
|
1132
1133
|
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
|
|
1133
|
-
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
|
|
1134
|
-
`))
|
|
1135
|
-
`))
|
|
1136
|
-
`,1)[0].length);return f>r&&f>g?u:o}var $x=Iy(Hk()),u1=[],Px=[];function wL(n,r){if(n===r)return 0;let o=n;n.length>r.length&&(n=r,r=o);let u=n.length,f=r.length;for(;u>0&&n.charCodeAt(~-u)===r.charCodeAt(~-f);)u--,f--;let g=0;for(;g<u&&n.charCodeAt(g)===r.charCodeAt(g);)g++;if(u-=g,f-=g,u===0)return f;let v,S,E,_,$=0,N=0;for(;$<u;)Px[$]=n.charCodeAt(g+$),u1[$]=++$;for(;N<f;)for(v=r.charCodeAt(g+N),E=N++,S=N,$=0;$<u;$++)_=v===Px[$]?E:E+1,E=u1[$],S=u1[$]=E>S?_>S?S+1:_:_>E?E+1:_;return S}var Nx=(n,r,{descriptor:o,logger:u,schemas:f})=>{let g=[`Ignored unknown option ${$x.default.yellow(o.pair({key:n,value:r}))}.`],v=Object.keys(f).sort().find(S=>wL(n,S)<3);v&&g.push(`Did you mean ${$x.default.blue(o.key(v))}?`),u.warn(g.join(" "))},DL=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function SL(n,r){let o=new n(r),u=Object.create(o);for(let f of DL)f in r&&(u[f]=CL(r[f],o,nd.prototype[f].length));return u}var nd=class{static create(n){return SL(this,n)}constructor(n){this.name=n.name}default(n){}expected(n){return"nothing"}validate(n,r){return!1}deprecated(n,r){return!1}forward(n,r){}redirect(n,r){}overlap(n,r,o){return n}preprocess(n,r){return n}postprocess(n,r){return Ky}};function CL(n,r,o){return typeof n=="function"?(...u)=>n(...u.slice(0,o-1),r,...u.slice(o-1)):()=>n}var xL=class extends nd{constructor(n){super(n),this._sourceName=n.sourceName}expected(n){return n.schemas[this._sourceName].expected(n)}validate(n,r){return r.schemas[this._sourceName].validate(n,r)}redirect(n,r){return this._sourceName}},EL=class extends nd{expected(){return"anything"}validate(){return!0}},_L=class extends nd{constructor({valueSchema:n,name:r=n.name,...o}){super({...o,name:r}),this._valueSchema=n}expected(n){let{text:r,list:o}=n.normalizeExpectedResult(this._valueSchema.expected(n));return{text:r&&`an array of ${r}`,list:o&&{title:"an array of the following values",values:[{list:o}]}}}validate(n,r){if(!Array.isArray(n))return!1;let o=[];for(let u of n){let f=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);f!==!0&&o.push(f.value)}return o.length===0?!0:{value:o}}deprecated(n,r){let o=[];for(let u of n){let f=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);f!==!1&&o.push(...f.map(({value:g})=>({value:[g]})))}return o}forward(n,r){let o=[];for(let u of n){let f=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);o.push(...f.map(Rx))}return o}redirect(n,r){let o=[],u=[];for(let f of n){let g=r.normalizeRedirectResult(this._valueSchema.redirect(f,r),f);"remain"in g&&o.push(g.remain),u.push(...g.redirect.map(Rx))}return o.length===0?{redirect:u}:{redirect:u,remain:o}}overlap(n,r){return n.concat(r)}};function Rx({from:n,to:r}){return{from:[n],to:r}}var TL=class extends nd{expected(){return"true or false"}validate(n){return typeof n=="boolean"}};function AL(n,r){let o=Object.create(null);for(let u of n){let f=u[r];if(o[f])throw new Error(`Duplicate ${r} ${JSON.stringify(f)}`);o[f]=u}return o}function FL(n,r){let o=new Map;for(let u of n){let f=u[r];if(o.has(f))throw new Error(`Duplicate ${r} ${JSON.stringify(f)}`);o.set(f,u)}return o}function $L(){let n=Object.create(null);return r=>{let o=JSON.stringify(r);return n[o]?!0:(n[o]=!0,!1)}}function PL(n,r){let o=[],u=[];for(let f of n)r(f)?o.push(f):u.push(f);return[o,u]}function NL(n){return n===Math.floor(n)}function RL(n,r){if(n===r)return 0;let o=typeof n,u=typeof r,f=["undefined","object","boolean","number","string"];return o!==u?f.indexOf(o)-f.indexOf(u):o!=="string"?Number(n)-Number(r):n.localeCompare(r)}function OL(n){return(...r)=>{let o=n(...r);return typeof o=="string"?new Error(o):o}}function Ox(n){return n===void 0?{}:n}function Lx(n){if(typeof n=="string")return{text:n};let{text:r,list:o}=n;return LL((r||o)!==void 0,"Unexpected `expected` result, there should be at least one field."),o?{text:r,list:{title:o.title,values:o.values.map(Lx)}}:{text:r}}function Bx(n,r){return n===!0?!0:n===!1?{value:r}:n}function jx(n,r,o=!1){return n===!1?!1:n===!0?o?!0:[{value:r}]:"value"in n?[n]:n.length===0?!1:n}function Ix(n,r){return typeof n=="string"||"key"in n?{from:r,to:n}:"from"in n?{from:n.from,to:n.to}:{from:r,to:n.to}}function c1(n,r){return n===void 0?[]:Array.isArray(n)?n.map(o=>Ix(o,r)):[Ix(n,r)]}function Mx(n,r){let o=c1(typeof n=="object"&&"redirect"in n?n.redirect:n,r);return o.length===0?{remain:r,redirect:o}:typeof n=="object"&&"remain"in n?{remain:n.remain,redirect:o}:{redirect:o}}function LL(n,r){if(!n)throw new Error(r)}var BL=class extends nd{constructor(n){super(n),this._choices=FL(n.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:n}){let r=Array.from(this._choices.keys()).map(f=>this._choices.get(f)).filter(({hidden:f})=>!f).map(f=>f.value).sort(RL).map(n.value),o=r.slice(0,-2),u=r.slice(-2);return{text:o.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(n){return this._choices.has(n)}deprecated(n){let r=this._choices.get(n);return r&&r.deprecated?{value:n}:!1}forward(n){let r=this._choices.get(n);return r?r.forward:void 0}redirect(n){let r=this._choices.get(n);return r?r.redirect:void 0}},jL=class extends nd{expected(){return"a number"}validate(n,r){return typeof n=="number"}},IL=class extends jL{expected(){return"an integer"}validate(n,r){return r.normalizeValidateResult(super.validate(n,r),n)===!0&&NL(n)}},zx=class extends nd{expected(){return"a string"}validate(n){return typeof n=="string"}},ML=mh,zL=Nx,UL=kL,HL=bL,qL=class{constructor(n,r){let{logger:o=console,loggerPrintWidth:u=80,descriptor:f=ML,unknown:g=zL,invalid:v=UL,deprecated:S=HL,missing:E=()=>!1,required:_=()=>!1,preprocess:$=R=>R,postprocess:N=()=>Ky}=r||{};this._utils={descriptor:f,logger:o||{warn:()=>{}},loggerPrintWidth:u,schemas:AL(n,"name"),normalizeDefaultResult:Ox,normalizeExpectedResult:Lx,normalizeDeprecatedResult:jx,normalizeForwardResult:c1,normalizeRedirectResult:Mx,normalizeValidateResult:Bx},this._unknownHandler=g,this._invalidHandler=OL(v),this._deprecatedHandler=S,this._identifyMissing=(R,B)=>!(R in B)||E(R,B),this._identifyRequired=_,this._preprocess=$,this._postprocess=N,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=$L()}normalize(n){let r={},o=[this._preprocess(n,this._utils)],u=()=>{for(;o.length!==0;){let f=o.shift(),g=this._applyNormalization(f,r);o.push(...g)}};u();for(let f of Object.keys(this._utils.schemas)){let g=this._utils.schemas[f];if(!(f in r)){let v=Ox(g.default(this._utils));"value"in v&&o.push({[f]:v.value})}}u();for(let f of Object.keys(this._utils.schemas)){if(!(f in r))continue;let g=this._utils.schemas[f],v=r[f],S=g.postprocess(v,this._utils);S!==Ky&&(this._applyValidation(S,f,g),r[f]=S)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(n,r){let o=[],{knownKeys:u,unknownKeys:f}=this._partitionOptionKeys(n);for(let g of u){let v=this._utils.schemas[g],S=v.preprocess(n[g],this._utils);this._applyValidation(S,g,v);let E=({from:N,to:R})=>{o.push(typeof R=="string"?{[R]:N}:{[R.key]:R.value})},_=({value:N,redirectTo:R})=>{let B=jx(v.deprecated(N,this._utils),S,!0);if(B!==!1)if(B===!0)this._hasDeprecationWarned(g)||this._utils.logger.warn(this._deprecatedHandler(g,R,this._utils));else for(let{value:M}of B){let V={key:g,value:M};if(!this._hasDeprecationWarned(V)){let H=typeof R=="string"?{key:R,value:M}:R;this._utils.logger.warn(this._deprecatedHandler(V,H,this._utils))}}};c1(v.forward(S,this._utils),S).forEach(E);let $=Mx(v.redirect(S,this._utils),S);if($.redirect.forEach(E),"remain"in $){let N=$.remain;r[g]=g in r?v.overlap(r[g],N,this._utils):N,_({value:N})}for(let{from:N,to:R}of $.redirect)_({value:N,redirectTo:R})}for(let g of f){let v=n[g];this._applyUnknownHandler(g,v,r,(S,E)=>{o.push({[S]:E})})}return o}_applyRequiredCheck(n){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,n)&&this._identifyRequired(r))throw this._invalidHandler(r,Ex,this._utils)}_partitionOptionKeys(n){let[r,o]=PL(Object.keys(n).filter(u=>!this._identifyMissing(u,n)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:o}}_applyValidation(n,r,o){let u=Bx(o.validate(n,this._utils),n);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(n,r,o,u){let f=this._unknownHandler(n,r,this._utils);if(f)for(let g of Object.keys(f)){if(this._identifyMissing(g,f))continue;let v=f[g];g in this._utils.schemas?u(g,v):o[g]=v}}_applyPostprocess(n){let r=this._postprocess(n,this._utils);if(r!==Ky){if(r.delete)for(let o of r.delete)delete n[o];if(r.override){let{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let f of o){let g=r.override[f];this._applyValidation(g,f,this._utils.schemas[f]),n[f]=g}for(let f of u){let g=r.override[f];this._applyUnknownHandler(f,g,n,(v,S)=>{let E=this._utils.schemas[v];this._applyValidation(S,v,E),n[v]=S})}}}}},d1;function WL(n,r,{logger:o=!1,isCLI:u=!1,passThrough:f=!1,FlagSchema:g,descriptor:v}={}){if(u){if(!g)throw new Error("'FlagSchema' option is required.");if(!v)throw new Error("'descriptor' option is required.")}else v=mh;let S=f?Array.isArray(f)?(R,B)=>f.includes(R)?{[R]:B}:void 0:(R,B)=>({[R]:B}):(R,B,M)=>{let{_:V,...H}=M.schemas;return Nx(R,B,{...M,schemas:H})},E=VL(r,{isCLI:u,FlagSchema:g}),_=new qL(E,{logger:o,unknown:S,descriptor:v}),$=o!==!1;$&&d1&&(_._hasDeprecationWarned=d1);let N=_.normalize(n);return $&&(d1=_._hasDeprecationWarned),N}function VL(n,{isCLI:r,FlagSchema:o}){let u=[];r&&u.push(EL.create({name:"_"}));for(let f of n)u.push(YL(f,{isCLI:r,optionInfos:n,FlagSchema:o})),f.alias&&r&&u.push(xL.create({name:f.alias,sourceName:f.name}));return u}function YL(n,{isCLI:r,optionInfos:o,FlagSchema:u}){let{name:f}=n,g={name:f},v,S={};switch(n.type){case"int":v=IL,r&&(g.preprocess=Number);break;case"string":v=zx;break;case"choice":v=BL,g.choices=n.choices.map(E=>E!=null&&E.redirect?{...E,redirect:{to:{key:n.name,value:E.redirect}}}:E);break;case"boolean":v=TL;break;case"flag":v=u,g.flags=o.flatMap(E=>[E.alias,E.description&&E.name,E.oppositeDescription&&`no-${E.name}`].filter(Boolean));break;case"path":v=zx;break;default:throw new Error(`Unexpected type ${n.type}`)}if(n.exception?g.validate=(E,_,$)=>n.exception(E)||_.validate(E,$):g.validate=(E,_,$)=>E===void 0||_.validate(E,$),n.redirect&&(S.redirect=E=>E?{to:typeof n.redirect=="string"?n.redirect:{key:n.redirect.option,value:n.redirect.value}}:void 0),n.deprecated&&(S.deprecated=!0),r&&!n.array){let E=g.preprocess||(_=>_);g.preprocess=(_,$,N)=>$.preprocess(E(Array.isArray(_)?La(!1,_,-1):_),N)}return n.array?_L.create({...r?{preprocess:E=>Array.isArray(E)?E:[E]}:{},...S,valueSchema:v.create(g)}):v.create({...g,...S})}var GL=WL,QL=(n,r,o)=>{if(!(n&&r==null)){if(r.findLast)return r.findLast(o);for(let u=r.length-1;u>=0;u--){let f=r[u];if(o(f,u,r))return f}}},Ux=QL;function Hx(n,r){if(!r)throw new Error("parserName is required.");let o=Ux(!1,n,f=>f.parsers&&Object.prototype.hasOwnProperty.call(f.parsers,r));if(o)return o;let u=`Couldn't resolve parser "${r}".`;throw u+=" Plugins must be explicitly added to the standalone bundle.",new wx(u)}function KL(n,r){if(!r)throw new Error("astFormat is required.");let o=Ux(!1,n,f=>f.printers&&Object.prototype.hasOwnProperty.call(f.printers,r));if(o)return o;let u=`Couldn't find plugin for AST format "${r}".`;throw u+=" Plugins must be explicitly added to the standalone bundle.",new wx(u)}function qx({plugins:n,parser:r}){let o=Hx(n,r);return Wx(o,r)}function Wx(n,r){let o=n.parsers[r];return typeof o=="function"?o():o}function ZL(n,r){let o=n.printers[r];return typeof o=="function"?o():o}var Vx={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function XL(n,r={}){var o;let u={...n};if(!u.parser)if(u.filepath){if(u.parser=yL(u,{physicalFile:u.filepath}),!u.parser)throw new Dx(`No parser could be inferred for file "${u.filepath}".`)}else throw new Dx("No parser and no file path given, couldn't infer a parser.");let f=Sx({plugins:n.plugins,showDeprecated:!0}).options,g={...Vx,...Object.fromEntries(f.filter(R=>R.default!==void 0).map(R=>[R.name,R.default]))},v=Hx(u.plugins,u.parser),S=await Wx(v,u.parser);u.astFormat=S.astFormat,u.locEnd=S.locEnd,u.locStart=S.locStart;let E=(o=v.printers)!=null&&o[S.astFormat]?v:KL(u.plugins,S.astFormat),_=await ZL(E,S.astFormat);u.printer=_;let $=E.defaultOptions?Object.fromEntries(Object.entries(E.defaultOptions).filter(([,R])=>R!==void 0)):{},N={...g,...$};for(let[R,B]of Object.entries(N))(u[R]===null||u[R]===void 0)&&(u[R]=B);return u.parser==="json"&&(u.trailingComma="none"),GL(u,f,{passThrough:Object.keys(Vx),...r})}var vh=XL,JL=Iy(KR());async function eB(n,r){let o=await qx(r),u=o.preprocess?o.preprocess(n,r):n;r.originalText=u;let f;try{f=await o.parse(u,r,r)}catch(g){tB(g,n)}return{text:u,ast:f}}function tB(n,r){let{loc:o}=n;if(o){let u=(0,JL.codeFrameColumns)(r,o,{highlightCode:!0});throw n.message+=`
|
|
1137
|
-
`+u,n.codeFrame=u,n}throw n}var Eg=
|
|
1138
|
-
`,f)+1),E=u.slice(S,f).match(/^\s*/u)[0],_=e1(E,r.tabWidth),$=await
|
|
1139
|
-
`&&(R+=
|
|
1134
|
+
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 Cx({plugins:n=[],showDeprecated:r=!1}={}){let o=n.flatMap(f=>f.languages??[]),u=[];for(let f of mL(Object.assign({},...n.map(({options:g})=>g),fL)))!r&&f.deprecated||(Array.isArray(f.choices)&&(r||(f.choices=f.choices.filter(g=>!g.deprecated)),f.name==="parser"&&(f.choices=[...f.choices,...hL(f.choices,o,n)])),f.pluginDefaults=Object.fromEntries(n.filter(g=>{var v;return((v=g.defaultOptions)==null?void 0:v[f.name])!==void 0}).map(g=>[g.name,g.defaultOptions[f.name]])),u.push(f));return{languages:o,options:u}}function*hL(n,r,o){let u=new Set(n.map(f=>f.value));for(let f of r)if(f.parsers){for(let g of f.parsers)if(!u.has(g)){u.add(g);let v=o.find(E=>E.parsers&&Object.prototype.hasOwnProperty.call(E.parsers,g)),S=f.name;v!=null&&v.name&&(S+=` (plugin: ${v.name})`),yield{value:g,description:S}}}}function mL(n){let r=[];for(let[o,u]of Object.entries(n)){let f={name:o,...u};Array.isArray(f.default)&&(f.default=La(!1,f.default,-1).value),r.push(f)}return r}var gL=n=>String(n).split(/[/\\]/u).pop();function xx(n,r){if(!r)return;let o=gL(r).toLowerCase();return n.find(({filenames:u})=>u==null?void 0:u.some(f=>f.toLowerCase()===o))??n.find(({extensions:u})=>u==null?void 0:u.some(f=>o.endsWith(f)))}function vL(n,r){if(r)return n.find(({name:o})=>o.toLowerCase()===r)??n.find(({aliases:o})=>o==null?void 0:o.includes(r))??n.find(({extensions:o})=>o==null?void 0:o.includes(`.${r}`))}function yL(n,r){let o=n.plugins.flatMap(f=>f.languages??[]),u=vL(o,r.language)??xx(o,r.physicalFile)??xx(o,r.file)??(r.physicalFile,void 0);return u==null?void 0:u.parsers[0]}var bL=yL,mh={key:n=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(n)?n:JSON.stringify(n),value(n){if(n===null||typeof n!="object")return JSON.stringify(n);if(Array.isArray(n))return`[${n.map(o=>mh.value(o)).join(", ")}]`;let r=Object.keys(n);return r.length===0?"{}":`{ ${r.map(o=>`${mh.key(o)}: ${mh.value(n[o])}`).join(", ")} }`},pair:({key:n,value:r})=>mh.value({[n]:r})},Ex=Iy(Hk()),kL=(n,r,{descriptor:o})=>{let u=[`${Ex.default.yellow(typeof n=="string"?o.key(n):o.pair(n))} is deprecated`];return r&&u.push(`we now treat it as ${Ex.default.blue(typeof r=="string"?o.key(r):o.pair(r))}`),u.join("; ")+"."},gh=Iy(Hk()),_x=Symbol.for("vnopts.VALUE_NOT_EXIST"),Ky=Symbol.for("vnopts.VALUE_UNCHANGED"),Tx=" ".repeat(2),wL=(n,r,o)=>{let{text:u,list:f}=o.normalizeExpectedResult(o.schemas[n].expected(o)),g=[];return u&&g.push(Ax(n,r,u,o.descriptor)),f&&g.push([Ax(n,r,f.title,o.descriptor)].concat(f.values.map(v=>Fx(v,o.loggerPrintWidth))).join(`
|
|
1135
|
+
`)),$x(g,o.loggerPrintWidth)};function Ax(n,r,o,u){return[`Invalid ${gh.default.red(u.key(n))} value.`,`Expected ${gh.default.blue(o)},`,`but received ${r===_x?gh.default.gray("nothing"):gh.default.red(u.value(r))}.`].join(" ")}function Fx({text:n,list:r},o){let u=[];return n&&u.push(`- ${gh.default.blue(n)}`),r&&u.push([`- ${gh.default.blue(r.title)}:`].concat(r.values.map(f=>Fx(f,o-Tx.length).replace(/^|\n/g,`$&${Tx}`))).join(`
|
|
1136
|
+
`)),$x(u,o)}function $x(n,r){if(n.length===1)return n[0];let[o,u]=n,[f,g]=n.map(v=>v.split(`
|
|
1137
|
+
`,1)[0].length);return f>r&&f>g?u:o}var Px=Iy(Hk()),u1=[],Nx=[];function DL(n,r){if(n===r)return 0;let o=n;n.length>r.length&&(n=r,r=o);let u=n.length,f=r.length;for(;u>0&&n.charCodeAt(~-u)===r.charCodeAt(~-f);)u--,f--;let g=0;for(;g<u&&n.charCodeAt(g)===r.charCodeAt(g);)g++;if(u-=g,f-=g,u===0)return f;let v,S,E,_,$=0,N=0;for(;$<u;)Nx[$]=n.charCodeAt(g+$),u1[$]=++$;for(;N<f;)for(v=r.charCodeAt(g+N),E=N++,S=N,$=0;$<u;$++)_=v===Nx[$]?E:E+1,E=u1[$],S=u1[$]=E>S?_>S?S+1:_:_>E?E+1:_;return S}var Rx=(n,r,{descriptor:o,logger:u,schemas:f})=>{let g=[`Ignored unknown option ${Px.default.yellow(o.pair({key:n,value:r}))}.`],v=Object.keys(f).sort().find(S=>DL(n,S)<3);v&&g.push(`Did you mean ${Px.default.blue(o.key(v))}?`),u.warn(g.join(" "))},SL=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function CL(n,r){let o=new n(r),u=Object.create(o);for(let f of SL)f in r&&(u[f]=xL(r[f],o,nd.prototype[f].length));return u}var nd=class{static create(n){return CL(this,n)}constructor(n){this.name=n.name}default(n){}expected(n){return"nothing"}validate(n,r){return!1}deprecated(n,r){return!1}forward(n,r){}redirect(n,r){}overlap(n,r,o){return n}preprocess(n,r){return n}postprocess(n,r){return Ky}};function xL(n,r,o){return typeof n=="function"?(...u)=>n(...u.slice(0,o-1),r,...u.slice(o-1)):()=>n}var EL=class extends nd{constructor(n){super(n),this._sourceName=n.sourceName}expected(n){return n.schemas[this._sourceName].expected(n)}validate(n,r){return r.schemas[this._sourceName].validate(n,r)}redirect(n,r){return this._sourceName}},_L=class extends nd{expected(){return"anything"}validate(){return!0}},TL=class extends nd{constructor({valueSchema:n,name:r=n.name,...o}){super({...o,name:r}),this._valueSchema=n}expected(n){let{text:r,list:o}=n.normalizeExpectedResult(this._valueSchema.expected(n));return{text:r&&`an array of ${r}`,list:o&&{title:"an array of the following values",values:[{list:o}]}}}validate(n,r){if(!Array.isArray(n))return!1;let o=[];for(let u of n){let f=r.normalizeValidateResult(this._valueSchema.validate(u,r),u);f!==!0&&o.push(f.value)}return o.length===0?!0:{value:o}}deprecated(n,r){let o=[];for(let u of n){let f=r.normalizeDeprecatedResult(this._valueSchema.deprecated(u,r),u);f!==!1&&o.push(...f.map(({value:g})=>({value:[g]})))}return o}forward(n,r){let o=[];for(let u of n){let f=r.normalizeForwardResult(this._valueSchema.forward(u,r),u);o.push(...f.map(Ox))}return o}redirect(n,r){let o=[],u=[];for(let f of n){let g=r.normalizeRedirectResult(this._valueSchema.redirect(f,r),f);"remain"in g&&o.push(g.remain),u.push(...g.redirect.map(Ox))}return o.length===0?{redirect:u}:{redirect:u,remain:o}}overlap(n,r){return n.concat(r)}};function Ox({from:n,to:r}){return{from:[n],to:r}}var AL=class extends nd{expected(){return"true or false"}validate(n){return typeof n=="boolean"}};function FL(n,r){let o=Object.create(null);for(let u of n){let f=u[r];if(o[f])throw new Error(`Duplicate ${r} ${JSON.stringify(f)}`);o[f]=u}return o}function $L(n,r){let o=new Map;for(let u of n){let f=u[r];if(o.has(f))throw new Error(`Duplicate ${r} ${JSON.stringify(f)}`);o.set(f,u)}return o}function PL(){let n=Object.create(null);return r=>{let o=JSON.stringify(r);return n[o]?!0:(n[o]=!0,!1)}}function NL(n,r){let o=[],u=[];for(let f of n)r(f)?o.push(f):u.push(f);return[o,u]}function RL(n){return n===Math.floor(n)}function OL(n,r){if(n===r)return 0;let o=typeof n,u=typeof r,f=["undefined","object","boolean","number","string"];return o!==u?f.indexOf(o)-f.indexOf(u):o!=="string"?Number(n)-Number(r):n.localeCompare(r)}function LL(n){return(...r)=>{let o=n(...r);return typeof o=="string"?new Error(o):o}}function Lx(n){return n===void 0?{}:n}function Bx(n){if(typeof n=="string")return{text:n};let{text:r,list:o}=n;return BL((r||o)!==void 0,"Unexpected `expected` result, there should be at least one field."),o?{text:r,list:{title:o.title,values:o.values.map(Bx)}}:{text:r}}function jx(n,r){return n===!0?!0:n===!1?{value:r}:n}function Ix(n,r,o=!1){return n===!1?!1:n===!0?o?!0:[{value:r}]:"value"in n?[n]:n.length===0?!1:n}function Mx(n,r){return typeof n=="string"||"key"in n?{from:r,to:n}:"from"in n?{from:n.from,to:n.to}:{from:r,to:n.to}}function c1(n,r){return n===void 0?[]:Array.isArray(n)?n.map(o=>Mx(o,r)):[Mx(n,r)]}function zx(n,r){let o=c1(typeof n=="object"&&"redirect"in n?n.redirect:n,r);return o.length===0?{remain:r,redirect:o}:typeof n=="object"&&"remain"in n?{remain:n.remain,redirect:o}:{redirect:o}}function BL(n,r){if(!n)throw new Error(r)}var jL=class extends nd{constructor(n){super(n),this._choices=$L(n.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:n}){let r=Array.from(this._choices.keys()).map(f=>this._choices.get(f)).filter(({hidden:f})=>!f).map(f=>f.value).sort(OL).map(n.value),o=r.slice(0,-2),u=r.slice(-2);return{text:o.concat(u.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(n){return this._choices.has(n)}deprecated(n){let r=this._choices.get(n);return r&&r.deprecated?{value:n}:!1}forward(n){let r=this._choices.get(n);return r?r.forward:void 0}redirect(n){let r=this._choices.get(n);return r?r.redirect:void 0}},IL=class extends nd{expected(){return"a number"}validate(n,r){return typeof n=="number"}},ML=class extends IL{expected(){return"an integer"}validate(n,r){return r.normalizeValidateResult(super.validate(n,r),n)===!0&&RL(n)}},Ux=class extends nd{expected(){return"a string"}validate(n){return typeof n=="string"}},zL=mh,UL=Rx,HL=wL,qL=kL,WL=class{constructor(n,r){let{logger:o=console,loggerPrintWidth:u=80,descriptor:f=zL,unknown:g=UL,invalid:v=HL,deprecated:S=qL,missing:E=()=>!1,required:_=()=>!1,preprocess:$=R=>R,postprocess:N=()=>Ky}=r||{};this._utils={descriptor:f,logger:o||{warn:()=>{}},loggerPrintWidth:u,schemas:FL(n,"name"),normalizeDefaultResult:Lx,normalizeExpectedResult:Bx,normalizeDeprecatedResult:Ix,normalizeForwardResult:c1,normalizeRedirectResult:zx,normalizeValidateResult:jx},this._unknownHandler=g,this._invalidHandler=LL(v),this._deprecatedHandler=S,this._identifyMissing=(R,B)=>!(R in B)||E(R,B),this._identifyRequired=_,this._preprocess=$,this._postprocess=N,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=PL()}normalize(n){let r={},o=[this._preprocess(n,this._utils)],u=()=>{for(;o.length!==0;){let f=o.shift(),g=this._applyNormalization(f,r);o.push(...g)}};u();for(let f of Object.keys(this._utils.schemas)){let g=this._utils.schemas[f];if(!(f in r)){let v=Lx(g.default(this._utils));"value"in v&&o.push({[f]:v.value})}}u();for(let f of Object.keys(this._utils.schemas)){if(!(f in r))continue;let g=this._utils.schemas[f],v=r[f],S=g.postprocess(v,this._utils);S!==Ky&&(this._applyValidation(S,f,g),r[f]=S)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(n,r){let o=[],{knownKeys:u,unknownKeys:f}=this._partitionOptionKeys(n);for(let g of u){let v=this._utils.schemas[g],S=v.preprocess(n[g],this._utils);this._applyValidation(S,g,v);let E=({from:N,to:R})=>{o.push(typeof R=="string"?{[R]:N}:{[R.key]:R.value})},_=({value:N,redirectTo:R})=>{let B=Ix(v.deprecated(N,this._utils),S,!0);if(B!==!1)if(B===!0)this._hasDeprecationWarned(g)||this._utils.logger.warn(this._deprecatedHandler(g,R,this._utils));else for(let{value:M}of B){let V={key:g,value:M};if(!this._hasDeprecationWarned(V)){let H=typeof R=="string"?{key:R,value:M}:R;this._utils.logger.warn(this._deprecatedHandler(V,H,this._utils))}}};c1(v.forward(S,this._utils),S).forEach(E);let $=zx(v.redirect(S,this._utils),S);if($.redirect.forEach(E),"remain"in $){let N=$.remain;r[g]=g in r?v.overlap(r[g],N,this._utils):N,_({value:N})}for(let{from:N,to:R}of $.redirect)_({value:N,redirectTo:R})}for(let g of f){let v=n[g];this._applyUnknownHandler(g,v,r,(S,E)=>{o.push({[S]:E})})}return o}_applyRequiredCheck(n){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,n)&&this._identifyRequired(r))throw this._invalidHandler(r,_x,this._utils)}_partitionOptionKeys(n){let[r,o]=NL(Object.keys(n).filter(u=>!this._identifyMissing(u,n)),u=>u in this._utils.schemas);return{knownKeys:r,unknownKeys:o}}_applyValidation(n,r,o){let u=jx(o.validate(n,this._utils),n);if(u!==!0)throw this._invalidHandler(r,u.value,this._utils)}_applyUnknownHandler(n,r,o,u){let f=this._unknownHandler(n,r,this._utils);if(f)for(let g of Object.keys(f)){if(this._identifyMissing(g,f))continue;let v=f[g];g in this._utils.schemas?u(g,v):o[g]=v}}_applyPostprocess(n){let r=this._postprocess(n,this._utils);if(r!==Ky){if(r.delete)for(let o of r.delete)delete n[o];if(r.override){let{knownKeys:o,unknownKeys:u}=this._partitionOptionKeys(r.override);for(let f of o){let g=r.override[f];this._applyValidation(g,f,this._utils.schemas[f]),n[f]=g}for(let f of u){let g=r.override[f];this._applyUnknownHandler(f,g,n,(v,S)=>{let E=this._utils.schemas[v];this._applyValidation(S,v,E),n[v]=S})}}}}},d1;function VL(n,r,{logger:o=!1,isCLI:u=!1,passThrough:f=!1,FlagSchema:g,descriptor:v}={}){if(u){if(!g)throw new Error("'FlagSchema' option is required.");if(!v)throw new Error("'descriptor' option is required.")}else v=mh;let S=f?Array.isArray(f)?(R,B)=>f.includes(R)?{[R]:B}:void 0:(R,B)=>({[R]:B}):(R,B,M)=>{let{_:V,...H}=M.schemas;return Rx(R,B,{...M,schemas:H})},E=YL(r,{isCLI:u,FlagSchema:g}),_=new WL(E,{logger:o,unknown:S,descriptor:v}),$=o!==!1;$&&d1&&(_._hasDeprecationWarned=d1);let N=_.normalize(n);return $&&(d1=_._hasDeprecationWarned),N}function YL(n,{isCLI:r,FlagSchema:o}){let u=[];r&&u.push(_L.create({name:"_"}));for(let f of n)u.push(GL(f,{isCLI:r,optionInfos:n,FlagSchema:o})),f.alias&&r&&u.push(EL.create({name:f.alias,sourceName:f.name}));return u}function GL(n,{isCLI:r,optionInfos:o,FlagSchema:u}){let{name:f}=n,g={name:f},v,S={};switch(n.type){case"int":v=ML,r&&(g.preprocess=Number);break;case"string":v=Ux;break;case"choice":v=jL,g.choices=n.choices.map(E=>E!=null&&E.redirect?{...E,redirect:{to:{key:n.name,value:E.redirect}}}:E);break;case"boolean":v=AL;break;case"flag":v=u,g.flags=o.flatMap(E=>[E.alias,E.description&&E.name,E.oppositeDescription&&`no-${E.name}`].filter(Boolean));break;case"path":v=Ux;break;default:throw new Error(`Unexpected type ${n.type}`)}if(n.exception?g.validate=(E,_,$)=>n.exception(E)||_.validate(E,$):g.validate=(E,_,$)=>E===void 0||_.validate(E,$),n.redirect&&(S.redirect=E=>E?{to:typeof n.redirect=="string"?n.redirect:{key:n.redirect.option,value:n.redirect.value}}:void 0),n.deprecated&&(S.deprecated=!0),r&&!n.array){let E=g.preprocess||(_=>_);g.preprocess=(_,$,N)=>$.preprocess(E(Array.isArray(_)?La(!1,_,-1):_),N)}return n.array?TL.create({...r?{preprocess:E=>Array.isArray(E)?E:[E]}:{},...S,valueSchema:v.create(g)}):v.create({...g,...S})}var QL=VL,KL=(n,r,o)=>{if(!(n&&r==null)){if(r.findLast)return r.findLast(o);for(let u=r.length-1;u>=0;u--){let f=r[u];if(o(f,u,r))return f}}},Hx=KL;function qx(n,r){if(!r)throw new Error("parserName is required.");let o=Hx(!1,n,f=>f.parsers&&Object.prototype.hasOwnProperty.call(f.parsers,r));if(o)return o;let u=`Couldn't resolve parser "${r}".`;throw u+=" Plugins must be explicitly added to the standalone bundle.",new Dx(u)}function ZL(n,r){if(!r)throw new Error("astFormat is required.");let o=Hx(!1,n,f=>f.printers&&Object.prototype.hasOwnProperty.call(f.printers,r));if(o)return o;let u=`Couldn't find plugin for AST format "${r}".`;throw u+=" Plugins must be explicitly added to the standalone bundle.",new Dx(u)}function Wx({plugins:n,parser:r}){let o=qx(n,r);return Vx(o,r)}function Vx(n,r){let o=n.parsers[r];return typeof o=="function"?o():o}function XL(n,r){let o=n.printers[r];return typeof o=="function"?o():o}var Yx={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function JL(n,r={}){var o;let u={...n};if(!u.parser)if(u.filepath){if(u.parser=bL(u,{physicalFile:u.filepath}),!u.parser)throw new Sx(`No parser could be inferred for file "${u.filepath}".`)}else throw new Sx("No parser and no file path given, couldn't infer a parser.");let f=Cx({plugins:n.plugins,showDeprecated:!0}).options,g={...Yx,...Object.fromEntries(f.filter(R=>R.default!==void 0).map(R=>[R.name,R.default]))},v=qx(u.plugins,u.parser),S=await Vx(v,u.parser);u.astFormat=S.astFormat,u.locEnd=S.locEnd,u.locStart=S.locStart;let E=(o=v.printers)!=null&&o[S.astFormat]?v:ZL(u.plugins,S.astFormat),_=await XL(E,S.astFormat);u.printer=_;let $=E.defaultOptions?Object.fromEntries(Object.entries(E.defaultOptions).filter(([,R])=>R!==void 0)):{},N={...g,...$};for(let[R,B]of Object.entries(N))(u[R]===null||u[R]===void 0)&&(u[R]=B);return u.parser==="json"&&(u.trailingComma="none"),QL(u,f,{passThrough:Object.keys(Yx),...r})}var vh=JL,eB=Iy(ZR());async function tB(n,r){let o=await Wx(r),u=o.preprocess?o.preprocess(n,r):n;r.originalText=u;let f;try{f=await o.parse(u,r,r)}catch(g){nB(g,n)}return{text:u,ast:f}}function nB(n,r){let{loc:o}=n;if(o){let u=(0,eB.codeFrameColumns)(r,o,{highlightCode:!0});throw n.message+=`
|
|
1138
|
+
`+u,n.codeFrame=u,n}throw n}var Eg=tB;async function rB(n,r,o,u,f){let{embeddedLanguageFormatting:g,printer:{embed:v,hasPrettierIgnore:S=()=>!1,getVisitorKeys:E}}=o;if(!v||g!=="auto")return;if(v.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 _=Qy(v.getVisitorKeys??E),$=[];B();let N=n.stack;for(let{print:M,node:V,pathStack:H}of $)try{n.stack=H;let ge=await M(R,r,n,o);ge&&f.set(V,ge)}catch(ge){if(globalThis.PRETTIER_DEBUG)throw ge}n.stack=N;function R(M,V){return aB(M,V,o,u)}function B(){let{node:M}=n;if(M===null||typeof M!="object"||S(n))return;for(let H of _(M))Array.isArray(M[H])?n.each(B,H):n.call(B,H);let V=v(n,o);if(V){if(typeof V=="function"){$.push({print:V,node:M,pathStack:[...n.stack]});return}f.set(M,V)}}}async function aB(n,r,o,u){let f=await vh({...o,...r,parentParser:o.parser,originalText:n},{passThrough:!0}),{ast:g}=await Eg(n,f),v=await u(g,f);return cx(v)}function iB(n,r){let{originalText:o,[Symbol.for("comments")]:u,locStart:f,locEnd:g,[Symbol.for("printedComments")]:v}=r,{node:S}=n,E=f(S),_=g(S);for(let $ of u)f($)>=E&&g($)<=_&&v.add($);return o.slice(E,_)}var oB=iB;async function Zy(n,r){({ast:n}=await Qx(n,r));let o=new Map,u=new VO(n),f=new Map;await rB(u,v,r,Zy,f);let g=await Gx(u,r,v,void 0,f);return pL(r),g;function v(E,_){return E===void 0||E===u?S(_):Array.isArray(E)?u.call(()=>S(_),...E):u.call(()=>S(_),E)}function S(E){let _=u.node;if(_==null)return"";let $=_&&typeof _=="object"&&E===void 0;if($&&o.has(_))return o.get(_);let N=Gx(u,r,v,E,f);return $&&o.set(_,N),N}}function Gx(n,r,o,u,f){var g;let{node:v}=n,{printer:S}=r,E;return(g=S.hasPrettierIgnore)!=null&&g.call(S,n)?E=oB(n,r):f.has(v)?E=f.get(v):E=S.print(n,r,o,u),v===r.cursorNode&&(E=dx(E,_=>[Qk,_,Qk])),S.printComment&&(!S.willPrintOwnComments||!S.willPrintOwnComments(n,r))&&(E=dL(n,E,r)),E}async function Qx(n,r){let o=n.comments??[];r[Symbol.for("comments")]=o,r[Symbol.for("tokens")]=n.tokens??[],r[Symbol.for("printedComments")]=new Set,aL(n,r);let{printer:{preprocess:u}}=r;return n=u?await u(n,r):n,{ast:n,comments:o}}function sB(n,r){let{cursorOffset:o,locStart:u,locEnd:f}=r,g=Qy(r.printer.getVisitorKeys),v=E=>u(E)<=o&&f(E)>=o,S=n;for(let E of QO(n,{getVisitorKeys:g,filter:v}))S=E;return S}var lB=sB;function uB(n,r){let{printer:{massageAstNode:o,getVisitorKeys:u}}=r;if(!o)return n;let f=Qy(u),g=o.ignoredProperties??new Set;return v(n);function v(S,E){if(!(S!==null&&typeof S=="object"))return S;if(Array.isArray(S))return S.map(R=>v(R,E)).filter(Boolean);let _={},$=new Set(f(S));for(let R in S)!Object.prototype.hasOwnProperty.call(S,R)||g.has(R)||($.has(R)?_[R]=v(S[R],S):_[R]=S[R]);let N=o(S,_,E);if(N!==null)return N??_}}var cB=uB,dB=(n,r,o)=>{if(!(n&&r==null)){if(r.findLastIndex)return r.findLastIndex(o);for(let u=r.length-1;u>=0;u--){let f=r[u];if(o(f,u,r))return u}return-1}},pB=dB,fB=({parser:n})=>n==="json"||n==="json5"||n==="jsonc"||n==="json-stringify";function hB(n,r){let o=[n.node,...n.parentNodes],u=new Set([r.node,...r.parentNodes]);return o.find(f=>Zx.has(f.type)&&u.has(f))}function Kx(n){let r=pB(!1,n,o=>o.type!=="Program"&&o.type!=="File");return r===-1?n:n.slice(0,r+1)}function mB(n,r,{locStart:o,locEnd:u}){let f=n.node,g=r.node;if(f===g)return{startNode:f,endNode:g};let v=o(n.node);for(let E of Kx(r.parentNodes))if(o(E)>=v)g=E;else break;let S=u(r.node);for(let E of Kx(n.parentNodes)){if(u(E)<=S)f=E;else break;if(f===g)break}return{startNode:f,endNode:g}}function p1(n,r,o,u,f=[],g){let{locStart:v,locEnd:S}=o,E=v(n),_=S(n);if(!(r>_||r<E||g==="rangeEnd"&&r===E||g==="rangeStart"&&r===_)){for(let $ of i1(n,o)){let N=p1($,r,o,u,[n,...f],g);if(N)return N}if(!u||u(n,f[0]))return{node:n,parentNodes:f}}}function gB(n,r){return r!=="DeclareExportDeclaration"&&n!=="TypeParameterDeclaration"&&(n==="Directive"||n==="TypeAlias"||n==="TSExportAssignment"||n.startsWith("Declare")||n.startsWith("TSDeclare")||n.endsWith("Statement")||n.endsWith("Declaration"))}var Zx=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),vB=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Xx(n,r,o){if(!r)return!1;switch(n.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return gB(r.type,o==null?void 0:o.type);case"json":case"json5":case"jsonc":case"json-stringify":return Zx.has(r.type);case"graphql":return vB.has(r.kind);case"vue":return r.tag!=="root"}return!1}function yB(n,r,o){let{rangeStart:u,rangeEnd:f,locStart:g,locEnd:v}=r;n1.ok(f>u);let S=n.slice(u,f).search(/\S/u),E=S===-1;if(!E)for(u+=S;f>u&&!/\S/u.test(n[f-1]);--f);let _=p1(o,u,r,(B,M)=>Xx(r,B,M),[],"rangeStart"),$=E?_:p1(o,f,r,B=>Xx(r,B),[],"rangeEnd");if(!_||!$)return{rangeStart:0,rangeEnd:0};let N,R;if(fB(r)){let B=hB(_,$);N=B,R=B}else({startNode:N,endNode:R}=mB(_,$,r));return{rangeStart:Math.min(g(N),g(R)),rangeEnd:Math.max(v(N),v(R))}}var Jx="\uFEFF",eE=Symbol("cursor");async function tE(n,r,o=0){if(!n||n.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:u,text:f}=await Eg(n,r);r.cursorOffset>=0&&(r.cursorNode=lB(u,r));let g=await Zy(u,r);o>0&&(g=sx([$p,g],o,r.tabWidth));let v=Yy(g,r);if(o>0){let E=v.formatted.trim();v.cursorNodeStart!==void 0&&(v.cursorNodeStart-=v.formatted.indexOf(E)),v.formatted=E+Wk(r.endOfLine)}let S=r[Symbol.for("comments")];if(r.cursorOffset>=0){let E,_,$,N,R;if(r.cursorNode&&v.cursorNodeText?(E=r.locStart(r.cursorNode),_=f.slice(E,r.locEnd(r.cursorNode)),$=r.cursorOffset-E,N=v.cursorNodeStart,R=v.cursorNodeText):(E=0,_=f,$=r.cursorOffset,N=0,R=v.formatted),_===R)return{formatted:v.formatted,cursorOffset:N+$,comments:S};let B=_.split("");B.splice($,0,eE);let M=R.split(""),V=aO(B,M),H=N;for(let ge of V)if(ge.removed){if(ge.value.includes(eE))break}else H+=ge.count;return{formatted:v.formatted,cursorOffset:H,comments:S}}return{formatted:v.formatted,cursorOffset:-1,comments:S}}async function bB(n,r){let{ast:o,text:u}=await Eg(n,r),{rangeStart:f,rangeEnd:g}=yB(u,r,o),v=u.slice(f,g),S=Math.min(f,u.lastIndexOf(`
|
|
1139
|
+
`,f)+1),E=u.slice(S,f).match(/^\s*/u)[0],_=e1(E,r.tabWidth),$=await tE(v,{...r,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:r.cursorOffset>f&&r.cursorOffset<=g?r.cursorOffset-f:-1,endOfLine:"lf"},_),N=$.formatted.trimEnd(),{cursorOffset:R}=r;R>g?R+=N.length-v.length:$.cursorOffset>=0&&(R=$.cursorOffset+f);let B=u.slice(0,f)+N+u.slice(g);if(r.endOfLine!=="lf"){let M=Wk(r.endOfLine);R>=0&&M===`\r
|
|
1140
|
+
`&&(R+=XC(B.slice(0,R),`
|
|
1140
1141
|
`)),B=My(!1,B,`
|
|
1141
|
-
`,M)}return{formatted:B,cursorOffset:R,comments:$.comments}}function f1(n,r,o){return typeof r!="number"||Number.isNaN(r)||r<0||r>n.length?o:r}function
|
|
1142
|
-
`);o-=S(o),u-=S(u),f-=S(f),n=
|
|
1143
|
-
`);return o===-1?0:e1(n.slice(o+1).match(/^[\t ]*/u)[0],r)}var NB
|
|
1144
|
-
`)return!0;return!1}var MB
|
|
1142
|
+
`,M)}return{formatted:B,cursorOffset:R,comments:$.comments}}function f1(n,r,o){return typeof r!="number"||Number.isNaN(r)||r<0||r>n.length?o:r}function nE(n,r){let{cursorOffset:o,rangeStart:u,rangeEnd:f}=r;return o=f1(n,o,-1),u=f1(n,u,0),f=f1(n,f,n.length),{...r,cursorOffset:o,rangeStart:u,rangeEnd:f}}function rE(n,r){let{cursorOffset:o,rangeStart:u,rangeEnd:f,endOfLine:g}=nE(n,r),v=n.charAt(0)===Jx;if(v&&(n=n.slice(1),o--,u--,f--),g==="auto"&&(g=iO(n)),n.includes("\r")){let S=E=>XC(n.slice(0,Math.max(E,0)),`\r
|
|
1143
|
+
`);o-=S(o),u-=S(u),f-=S(f),n=oO(n)}return{hasBOM:v,text:n,options:nE(n,{...r,cursorOffset:o,rangeStart:u,rangeEnd:f,endOfLine:g})}}async function aE(n,r){let o=await Wx(r);return!o.hasPragma||o.hasPragma(n)}async function iE(n,r){let{hasBOM:o,text:u,options:f}=rE(n,await vh(r));if(f.rangeStart>=f.rangeEnd&&u!==""||f.requirePragma&&!await aE(u,f))return{formatted:n,cursorOffset:r.cursorOffset,comments:[]};let g;return f.rangeStart>0||f.rangeEnd<u.length?g=await bB(u,f):(!f.requirePragma&&f.insertPragma&&f.printer.insertPragma&&!await aE(u,f)&&(u=f.printer.insertPragma(u)),g=await tE(u,f)),o&&(g.formatted=Jx+g.formatted,g.cursorOffset>=0&&g.cursorOffset++),g}async function kB(n,r,o){let{text:u,options:f}=rE(n,await vh(r)),g=await Eg(u,f);return o&&(o.preprocessForPrint&&(g.ast=await Qx(g.ast,f)),o.massage&&(g.ast=cB(g.ast,f))),g}async function wB(n,r){r=await vh(r);let o=await Zy(n,r);return Yy(o,r)}async function DB(n,r){let o=CO(n),{formatted:u}=await iE(o,{...r,parser:"__js_expression"});return u}async function SB(n,r){r=await vh(r);let{ast:o}=await Eg(n,r);return Zy(o,r)}async function CB(n,r){return Yy(n,await vh(r))}var oE={};jy(oE,{builders:()=>xB,printer:()=>EB,utils:()=>_B});var xB={join:ox,line:ax,softline:DO,hardline:$p,literalline:ix,group:tx,conditionalGroup:vO,fill:nx,lineSuffix:Yk,lineSuffixBoundary:kO,cursor:Qk,breakParent:qy,ifBreak:yO,trim:wO,indent:Hy,indentIfBreak:bO,align:ph,addAlignmentToDoc:sx,markAsRoot:mO,dedentToRoot:hO,dedent:gO,hardlineWithoutBreakParent:Gk,literallineWithoutBreakParent:rx,label:SO,concat:n=>n},EB={printDocToString:Yy},_B={willBreak:NO,traverseDoc:Vk,findInDoc:Zk,mapDoc:Wy,removeLines:LO,stripTrailingHardline:cx,replaceEndOfLine:IO,canBreak:zO},TB="3.3.3",sE={};jy(sE,{addDanglingComment:()=>Rp,addLeadingComment:()=>fh,addTrailingComment:()=>hh,getAlignmentSize:()=>e1,getIndentSize:()=>RB,getMaxContinuousCount:()=>BB,getNextNonSpaceNonCommentCharacter:()=>IB,getNextNonSpaceNonCommentCharacterIndex:()=>YB,getStringWidth:()=>Kk,hasNewline:()=>td,hasNewlineInRange:()=>zB,hasSpaces:()=>HB,isNextLineEmpty:()=>ZB,isNextLineEmptyAfterIndex:()=>v1,isPreviousLineEmpty:()=>QB,makeString:()=>WB,skip:()=>xg,skipEverythingButNewLine:()=>gx,skipInlineComment:()=>h1,skipNewline:()=>Np,skipSpaces:()=>ed,skipToLineEnd:()=>mx,skipTrailingComment:()=>m1,skipWhitespace:()=>KO});function AB(n,r){if(r===!1)return!1;if(n.charAt(r)==="/"&&n.charAt(r+1)==="*"){for(let o=r+2;o<n.length;++o)if(n.charAt(o)==="*"&&n.charAt(o+1)==="/")return o+2}return r}var h1=AB;function FB(n,r){return r===!1?!1:n.charAt(r)==="/"&&n.charAt(r+1)==="/"?gx(n,r):r}var m1=FB;function $B(n,r){let o=null,u=r;for(;u!==o;)o=u,u=ed(n,u),u=h1(n,u),u=m1(n,u),u=Np(n,u);return u}var g1=$B;function PB(n,r){let o=null,u=r;for(;u!==o;)o=u,u=mx(n,u),u=h1(n,u),u=ed(n,u);return u=m1(n,u),u=Np(n,u),u!==!1&&td(n,u)}var v1=PB;function NB(n,r){let o=n.lastIndexOf(`
|
|
1144
|
+
`);return o===-1?0:e1(n.slice(o+1).match(/^[\t ]*/u)[0],r)}var RB=NB;function OB(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function LB(n,r){let o=n.match(new RegExp(`(${OB(r)})+`,"gu"));return o===null?0:o.reduce((u,f)=>Math.max(u,f.length/r.length),0)}var BB=LB;function jB(n,r){let o=g1(n,r);return o===!1?"":n.charAt(o)}var IB=jB;function MB(n,r,o){for(let u=r;u<o;++u)if(n.charAt(u)===`
|
|
1145
|
+
`)return!0;return!1}var zB=MB;function UB(n,r,o={}){return ed(n,o.backwards?r-1:r,o)!==r}var HB=UB;function qB(n,r,o){let u=r==='"'?"'":'"',f=My(!1,n,/\\(.)|(["'])/gsu,(g,v,S)=>v===u?v:S===r?"\\"+S:S||(o&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(v)?v:"\\"+v));return r+f+r}var WB=qB;function VB(n,r,o){return g1(n,o(r))}function YB(n,r){return arguments.length===2||typeof r=="number"?g1(n,r):VB(...arguments)}function GB(n,r,o){return l1(n,o(r))}function QB(n,r){return arguments.length===2||typeof r=="number"?l1(n,r):GB(...arguments)}function KB(n,r,o){return v1(n,o(r))}function ZB(n,r){return arguments.length===2||typeof r=="number"?v1(n,r):KB(...arguments)}function Op(n,r=1){return async(...o)=>{let u=o[r]??{},f=u.plugins??[];return o[r]={...u,plugins:Array.isArray(f)?f:Object.values(f)},n(...o)}}var lE=Op(iE);async function Xy(n,r){let{formatted:o}=await lE(n,{...r,cursorOffset:-1});return o}async function XB(n,r){return await Xy(n,r)===n}var JB=Op(Cx,0),ej={parse:Op(kB),formatAST:Op(wB),formatDoc:Op(DB),printToDoc:Op(SB),printDocToString:Op(CB)},uE={exports:{}};(function(n,r){(function(o){function u(){var f=o();return f.default||f}n.exports=u()})(function(){var o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,v=d=>{throw TypeError(d)},S=(d,h)=>{for(var b in h)o(d,b,{get:h[b],enumerable:!0})},E=(d,h,b,C)=>{if(h&&typeof h=="object"||typeof h=="function")for(let A of f(h))!g.call(d,A)&&A!==b&&o(d,A,{get:()=>h[A],enumerable:!(C=u(h,A))||C.enumerable});return d},_=d=>E(o({},"__esModule",{value:!0}),d),$=(d,h,b)=>h.has(d)||v("Cannot "+b),N=(d,h,b)=>($(d,h,"read from private field"),h.get(d)),R=(d,h,b)=>h.has(d)?v("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(d):h.set(d,b),B=(d,h,b,C)=>($(d,h,"write to private field"),h.set(d,b),b),M={};S(M,{languages:()=>oc,options:()=>Ug,parsers:()=>vd,printers:()=>$d});var V=(d,h,b,C)=>{if(!(d&&h==null))return h.replaceAll?h.replaceAll(b,C):b.global?h.replace(b,C):h.split(b).join(C)},H=V,ge="string",K="array",Y="cursor",ne="indent",U="align",ae="trim",oe="group",Te="fill",ye="if-break",Ve="indent-if-break",rt="line-suffix",Ye="line-suffix-boundary",Fe="line",Pe="label",Ze="break-parent",Ne=new Set([Y,ne,U,ae,oe,Te,ye,Ve,rt,Ye,Fe,Pe,Ze]);function Be(d){if(typeof d=="string")return ge;if(Array.isArray(d))return K;if(!d)return;let{type:h}=d;if(Ne.has(h))return h}var ve=Be,Re=d=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(d);function xe(d){let h=d===null?"null":typeof d;if(h!=="string"&&h!=="object")return`Unexpected doc '${h}',
|
|
1145
1146
|
Expected it to be 'string' or 'object'.`;if(ve(d))throw new Error("doc is valid.");let b=Object.prototype.toString.call(d);if(b!=="[object Object]")return`Unexpected doc '${b}'.`;let C=Re([...Ne].map(A=>`'${A}'`));return`Unexpected doc.type '${d.type}'.
|
|
1146
1147
|
Expected it to be ${C}.`}var G=class extends Error{constructor(h){super(xe(h));Zm(this,"name","InvalidDocError");this.doc=h}},ce=G,gt=()=>{},ut=gt;function ct(d){return{type:ne,contents:d}}function vt(d,h){return{type:U,contents:h,n:d}}function it(d,h={}){return ut(h.expandedStates),{type:oe,id:h.id,contents:d,break:!!h.shouldBreak,expandedStates:h.expandedStates}}function Rt(d){return vt(Number.NEGATIVE_INFINITY,d)}function Lt(d){return vt({type:"root"},d)}function sn(d){return{type:Te,parts:d}}function Fn(d,h="",b={}){return{type:ye,breakContents:d,flatContents:h,groupId:b.groupId}}function br(d,h){return{type:Ve,contents:d,groupId:h.groupId,negate:h.negate}}var nn={type:Ze},ot={type:Fe,hard:!0},Ln={type:Fe,hard:!0,literal:!0},Ut={type:Fe},Zt={type:Fe,soft:!0},Xt=[ot,nn],va=[Ln,nn];function Yn(d,h){let b=[];for(let C=0;C<h.length;C++)C!==0&&b.push(d),b.push(h[C]);return b}var Cr=(d,h,b)=>{if(!(d&&h==null))return Array.isArray(h)||typeof h=="string"?h[b<0?h.length+b:b]:h.at(b)},ar=Cr;function qr(d,h){if(typeof d=="string")return h(d);let b=new Map;return C(d);function C(I){if(b.has(I))return b.get(I);let J=A(I);return b.set(I,J),J}function A(I){switch(ve(I)){case K:return h(I.map(C));case Te:return h({...I,parts:I.parts.map(C)});case ye:return h({...I,breakContents:C(I.breakContents),flatContents:C(I.flatContents)});case oe:{let{expandedStates:J,contents:ke}=I;return J?(J=J.map(C),ke=J[0]):ke=C(ke),h({...I,contents:ke,expandedStates:J})}case U:case ne:case Ve:case Pe:case rt:return h({...I,contents:C(I.contents)});case ge:case Y:case ae:case Ye:case Fe:case Ze:return h(I);default:throw new ce(I)}}}function be(d){switch(ve(d)){case Te:if(d.parts.every(h=>h===""))return"";break;case oe:if(!d.contents&&!d.id&&!d.break&&!d.expandedStates)return"";if(d.contents.type===oe&&d.contents.id===d.id&&d.contents.break===d.break&&d.contents.expandedStates===d.expandedStates)return d.contents;break;case U:case ne:case Ve:case rt:if(!d.contents)return"";break;case ye:if(!d.flatContents&&!d.breakContents)return"";break;case K:{let h=[];for(let b of d){if(!b)continue;let[C,...A]=Array.isArray(b)?b:[b];typeof C=="string"&&typeof ar(!1,h,-1)=="string"?h[h.length-1]+=C:h.push(C),h.push(...A)}return h.length===0?"":h.length===1?h[0]:h}case ge:case Y:case ae:case Ye:case Fe:case Pe:case Ze:break;default:throw new ce(d)}return d}function Z(d){return qr(d,h=>be(h))}function fe(d,h=va){return qr(d,b=>typeof b=="string"?Yn(h,b.split(`
|
|
1147
1148
|
`)):b)}var Ee="'",Ct='"';function It(d,h){let b=h===!0||h===Ee?Ee:Ct,C=b===Ee?Ct:Ee,A=0,I=0;for(let J of d)J===b?A++:J===C&&I++;return A>I?C:b}var Ae=It;function Je(d){if(typeof d!="string")throw new TypeError("Expected a string");return d.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var at,Ht=class{constructor(d){R(this,at),B(this,at,new Set(d))}getLeadingWhitespaceCount(d){let h=N(this,at),b=0;for(let C=0;C<d.length&&h.has(d.charAt(C));C++)b++;return b}getTrailingWhitespaceCount(d){let h=N(this,at),b=0;for(let C=d.length-1;C>=0&&h.has(d.charAt(C));C--)b++;return b}getLeadingWhitespace(d){let h=this.getLeadingWhitespaceCount(d);return d.slice(0,h)}getTrailingWhitespace(d){let h=this.getTrailingWhitespaceCount(d);return d.slice(d.length-h)}hasLeadingWhitespace(d){return N(this,at).has(d.charAt(0))}hasTrailingWhitespace(d){return N(this,at).has(ar(!1,d,-1))}trimStart(d){let h=this.getLeadingWhitespaceCount(d);return d.slice(h)}trimEnd(d){let h=this.getTrailingWhitespaceCount(d);return d.slice(0,d.length-h)}trim(d){return this.trimEnd(this.trimStart(d))}split(d,h=!1){let b=`[${Je([...N(this,at)].join(""))}]+`,C=new RegExp(h?`(${b})`:b,"u");return d.split(C)}hasWhitespaceCharacter(d){let h=N(this,at);return Array.prototype.some.call(d,b=>h.has(b))}hasNonWhitespaceCharacter(d){let h=N(this,at);return Array.prototype.some.call(d,b=>!h.has(b))}isWhitespaceOnly(d){let h=N(this,at);return Array.prototype.every.call(d,b=>h.has(b))}};at=new WeakMap;var wn=Ht,Mn=[" ",`
|
|
@@ -1151,32 +1152,32 @@ Expected it to be ${C}.`}var G=class extends Error{constructor(h){super(xe(h));Z
|
|
|
1151
1152
|
`)}function lr(d){return H(!1,H(!1,d,"'","'"),""",'"')}function Er(d){return lr(d.value)}var ka=new Set(["template","style","script"]);function Xi(d,h){return zn(d,h)&&!ka.has(d.fullName)}function zn(d,h){return h.parser==="vue"&&d.type==="element"&&d.parent.type==="root"&&d.fullName.toLowerCase()!=="html"}function Sn(d,h){return zn(d,h)&&(Xi(d,h)||d.attrMap.lang&&d.attrMap.lang!=="html")}function id(d){let h=d.fullName;return h.charAt(0)==="#"||h==="slot-scope"||h==="v-slot"||h.startsWith("v-slot:")}function ja(d,h){let b=d.parent;if(!zn(b,h))return!1;let C=b.fullName,A=d.fullName;return C==="script"&&A==="setup"||C==="style"&&A==="vars"}function Or(d,h=d.value){return d.parent.isWhitespaceSensitive?d.parent.isIndentationSensitive?fe(h):fe(ys(Yt(h)),Xt):Yn(Ut,or.split(h))}function Ji(d,h){return zn(d,h)&&d.name==="script"}var Yu=/\{\{(.+?)\}\}/su;async function Vo(d,h){let b=[];for(let[C,A]of d.split(Yu).entries())if(C%2===0)b.push(fe(A));else try{b.push(it(["{{",ct([Ut,await mr(A,h,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Ut,"}}"]))}catch{b.push("{{",fe(A),"}}")}return b}function So({parser:d}){return(h,b,C)=>mr(Er(C.node),h,{parser:d},ai)}var od=So({parser:"__ng_action"}),xi=So({parser:"__ng_binding"}),bs=So({parser:"__ng_directive"});function Yo(d,h){if(h.parser!=="angular")return;let{node:b}=d,C=b.fullName;if(C.startsWith("(")&&C.endsWith(")")||C.startsWith("on-"))return od;if(C.startsWith("[")&&C.endsWith("]")||/^bind(?:on)?-/u.test(C)||/^ng-(?:if|show|hide|class|style)$/u.test(C))return xi;if(C.startsWith("*"))return bs;let A=Er(b);if(/^i18n(?:-.+)?$/u.test(C))return()=>Si(sn(Or(b,A.trim())),!A.includes("@@"));if(Yu.test(A))return I=>Vo(A,I)}var Ei=Yo;function Wl(d,h){let{node:b}=d,C=Er(b);if(b.fullName==="class"&&!h.parentParser&&!C.includes("{{"))return()=>C.trim().split(/\s+/u).join(" ")}var ks=Wl;function Go(d){return d===" "||d===`
|
|
1152
1153
|
`||d==="\f"||d==="\r"||d===" "}var tl=/^[ \t\n\r\u000c]+/,Vl=/^[, \t\n\r\u000c]+/,Gu=/^[^ \t\n\r\u000c]+/,eo=/[,]+$/,F=/^\d+$/,q=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function pe(d){let h=d.length,b,C,A,I,J,ke=0,Qe;function nt(ze){let Qt,xn=ze.exec(d.substring(ke));if(xn)return[Qt]=xn,ke+=Qt.length,Qt}let st=[];for(;;){if(nt(Vl),ke>=h){if(st.length===0)throw new Error("Must contain one or more image candidate strings.");return st}Qe=ke,b=nt(Gu),C=[],b.slice(-1)===","?(b=b.replace(eo,""),Tt()):De()}function De(){for(nt(tl),A="",I="in descriptor";;){if(J=d.charAt(ke),I==="in descriptor")if(Go(J))A&&(C.push(A),A="",I="after descriptor");else if(J===","){ke+=1,A&&C.push(A),Tt();return}else if(J==="(")A+=J,I="in parens";else if(J===""){A&&C.push(A),Tt();return}else A+=J;else if(I==="in parens")if(J===")")A+=J,I="in descriptor";else if(J===""){C.push(A),Tt();return}else A+=J;else if(I==="after descriptor"&&!Go(J))if(J===""){Tt();return}else I="in descriptor",ke-=1;ke+=1}}function Tt(){let ze=!1,Qt,xn,nr,Hn,ht={},Wt,fr,vr,Yr,ns;for(Hn=0;Hn<C.length;Hn++)Wt=C[Hn],fr=Wt[Wt.length-1],vr=Wt.substring(0,Wt.length-1),Yr=parseInt(vr,10),ns=parseFloat(vr),F.test(vr)&&fr==="w"?((Qt||xn)&&(ze=!0),Yr===0?ze=!0:Qt=Yr):q.test(vr)&&fr==="x"?((Qt||xn||nr)&&(ze=!0),ns<0?ze=!0:xn=ns):F.test(vr)&&fr==="h"?((nr||xn)&&(ze=!0),Yr===0?ze=!0:nr=Yr):ze=!0;if(!ze)ht.source={value:b,startOffset:Qe},Qt&&(ht.width={value:Qt}),xn&&(ht.density={value:xn}),nr&&(ht.height={value:nr}),st.push(ht);else throw new Error(`Invalid srcset descriptor found in "${d}" at "${Wt}".`)}}var we=pe;function He(d){if(d.node.fullName==="srcset"&&(d.parent.fullName==="img"||d.parent.fullName==="source"))return()=>Pt(Er(d.node))}var Ot={width:"w",height:"h",density:"x"},et=Object.keys(Ot);function Pt(d){let h=we(d),b=et.filter(st=>h.some(De=>Object.prototype.hasOwnProperty.call(De,st)));if(b.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[C]=b,A=Ot[C],I=h.map(st=>st.source.value),J=Math.max(...I.map(st=>st.length)),ke=h.map(st=>st[C]?String(st[C].value):""),Qe=ke.map(st=>{let De=st.indexOf(".");return De===-1?st.length:De}),nt=Math.max(...Qe);return Si(Yn([",",Ut],I.map((st,De)=>{let Tt=[st],ze=ke[De];if(ze){let Qt=J-st.length+1,xn=nt-Qe[De],nr=" ".repeat(Qt+xn);Tt.push(Fn(nr," "),ze+A)}return Tt})))}var rn=He;function mn(d,h){let{node:b}=d,C=Er(d.node).trim();if(b.fullName==="style"&&!h.parentParser&&!C.includes("{{"))return async A=>Si(await A(C,{parser:"css",__isHTMLStyleAttribute:!0}))}var $n=new WeakMap;function Pn(d,h){let{root:b}=d;return $n.has(b)||$n.set(b,b.children.some(C=>Ji(C,h)&&["ts","typescript"].includes(C.attrMap.lang))),$n.get(b)}var Nn=Pn;function Gn(d,h,b){let{node:C}=b,A=Er(C);return mr(`type T<${A}> = any`,d,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},ai)}function un(d,h,{parseWithTs:b}){return mr(`function _(${d}) {}`,h,{parser:b?"babel-ts":"babel",__isVueBindings:!0})}function Qo(d){let h=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u,b=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu,C=d.trim();return h.test(C)||b.test(C)}async function Yl(d,h,b,C){let A=Er(b.node),{left:I,operator:J,right:ke}=Qu(A),Qe=Nn(b,C);return[it(await mr(`function _(${I}) {}`,d,{parser:Qe?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",J," ",await mr(ke,d,{parser:Qe?"__ts_expression":"__js_expression"})]}function Qu(d){let h=/(.*?)\s+(in|of)\s+(.*)/su,b=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,C=/^\(|\)$/gu,A=d.match(h);if(!A)return;let I={};if(I.for=A[3].trim(),!I.for)return;let J=H(!1,A[1].trim(),C,""),ke=J.match(b);ke?(I.alias=J.replace(b,""),I.iterator1=ke[1].trim(),ke[2]&&(I.iterator2=ke[2].trim())):I.alias=J;let Qe=[I.alias,I.iterator1,I.iterator2];if(!Qe.some((nt,st)=>!nt&&(st===0||Qe.slice(st+1).some(Boolean))))return{left:Qe.filter(Boolean).join(","),operator:A[2],right:I.for}}function Mp(d,h){if(h.parser!=="vue")return;let{node:b}=d,C=b.fullName;if(C==="v-for")return Yl;if(C==="generic"&&Ji(b.parent,h))return Gn;let A=Er(b),I=Nn(d,h);if(id(b)||ja(b,h))return J=>un(A,J,{parseWithTs:I});if(C.startsWith("@")||C.startsWith("v-on:"))return J=>to(A,J,{parseWithTs:I});if(C.startsWith(":")||C.startsWith("v-bind:"))return J=>Ku(A,J,{parseWithTs:I});if(C.startsWith("v-"))return J=>Gl(A,J,{parseWithTs:I})}function to(d,h,{parseWithTs:b}){return Qo(d)?Gl(d,h,{parseWithTs:b}):mr(d,h,{parser:b?"__vue_ts_event_binding":"__vue_event_binding"},ai)}function Ku(d,h,{parseWithTs:b}){return mr(d,h,{parser:b?"__vue_ts_expression":"__vue_expression"},ai)}function Gl(d,h,{parseWithTs:b}){return mr(d,h,{parser:b?"__ts_expression":"__js_expression"},ai)}var zp=Mp;function Og(d,h){let{node:b}=d;if(b.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(h.originalText.slice(b.valueSpan.start.offset,b.valueSpan.end.offset))||h.parser==="lwc"&&b.value.startsWith("{")&&b.value.endsWith("}"))return[b.rawName,"=",b.value];for(let C of[rn,mn,ks,zp,Ei]){let A=C(d,h);if(A)return Lg(A)}}}function Lg(d){return async(h,b,C,A)=>{let I=await d(h,b,C,A);if(I)return I=qr(I,J=>typeof J=="string"?H(!1,J,'"',"""):J),[C.node.rawName,'="',it(I),'"']}}var Up=Og,sd=new Proxy(()=>{},{get:()=>sd}),Hp=sd;function Sh(d){return Array.isArray(d)&&d.length>0}var ld=Sh;function Ql(d){return d.sourceSpan.start.offset}function _i(d){return d.sourceSpan.end.offset}function qp(d,h){return[d.isSelfClosing?"":Wp(d,h),ws(d,h)]}function Wp(d,h){return d.lastChild&&Sa(d.lastChild)?"":[Vp(d,h),Kl(d,h)]}function ws(d,h){return(d.next?Da(d.next):ur(d.parent))?"":[Zl(d,h),nl(d,h)]}function Vp(d,h){return ur(d)?Zl(d.lastChild,h):""}function nl(d,h){return Sa(d)?Kl(d.parent,h):Co(d)?Yp(d.next):""}function Kl(d,h){if(Hp(!d.isSelfClosing),wa(d,h))return"";switch(d.type){case"ieConditionalComment":return"<!";case"element":if(d.hasHtmComponentClosingTag)return"<//";default:return`</${d.rawName}`}}function Zl(d,h){if(wa(d,h))return"";switch(d.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(d.isSelfClosing)return"/>";default:return">"}}function wa(d,h){return!d.isSelfClosing&&!d.endSourceSpan&&(jn(d)||Bn(d.parent,h))}function Da(d){return d.prev&&d.prev.type!=="docType"&&d.type!=="angularControlFlowBlock"&&!xr(d.prev)&&d.isLeadingSpaceSensitive&&!d.hasLeadingSpaces}function ur(d){var h;return((h=d.lastChild)==null?void 0:h.isTrailingSpaceSensitive)&&!d.lastChild.hasTrailingSpaces&&!xr(li(d.lastChild))&&!Zi(d)}function Sa(d){return!d.next&&!d.hasTrailingSpaces&&d.isTrailingSpaceSensitive&&xr(li(d))}function Co(d){return d.next&&!xr(d.next)&&xr(d)&&d.isTrailingSpaceSensitive&&!d.hasTrailingSpaces}function ud(d){let h=d.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return h?h[1]?h[1].split(/\s+/u):!0:!1}function Zu(d){return!d.prev&&d.isLeadingSpaceSensitive&&!d.hasLeadingSpaces}function Xl(d,h,b){var C;let{node:A}=d;if(!ld(A.attrs))return A.isSelfClosing?" ":"";let I=((C=A.prev)==null?void 0:C.type)==="comment"&&ud(A.prev.value),J=typeof I=="boolean"?()=>I:Array.isArray(I)?De=>I.includes(De.rawName):()=>!1,ke=d.map(({node:De})=>J(De)?fe(h.originalText.slice(Ql(De),_i(De))):b(),"attrs"),Qe=A.type==="element"&&A.fullName==="script"&&A.attrs.length===1&&A.attrs[0].fullName==="src"&&A.children.length===0,nt=h.singleAttributePerLine&&A.attrs.length>1&&!zn(A,h)?Xt:Ut,st=[ct([Qe?" ":Ut,Yn(nt,ke)])];return A.firstChild&&Zu(A.firstChild)||A.isSelfClosing&&ur(A.parent)||Qe?st.push(A.isSelfClosing?" ":""):st.push(h.bracketSameLine?A.isSelfClosing?" ":"":A.isSelfClosing?Ut:Zt),st}function Ch(d){return d.firstChild&&Zu(d.firstChild)?"":Gp(d)}function cd(d,h,b){let{node:C}=d;return[Ds(C,h),Xl(d,h,b),C.isSelfClosing?"":Ch(C)]}function Ds(d,h){return d.prev&&Co(d.prev)?"":[Ti(d,h),Yp(d)]}function Ti(d,h){return Zu(d)?Gp(d.parent):Da(d)?Zl(d.prev,h):""}function Yp(d){switch(d.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${d.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return d.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(d.condition)return`<!--[if ${d.condition}]><!--><${d.rawName}`;default:return`<${d.rawName}`}}function Gp(d){switch(Hp(!d.isSelfClosing),d.type){case"ieConditionalComment":return"]>";case"element":if(d.condition)return"><!--<![endif]-->";default:return">"}}function xh(d,h){if(!d.endSourceSpan)return"";let b=d.startSourceSpan.end.offset;d.firstChild&&Zu(d.firstChild)&&(b-=Gp(d).length);let C=d.endSourceSpan.start.offset;return d.lastChild&&Sa(d.lastChild)?C+=Kl(d,h).length:ur(d)&&(C-=Zl(d.lastChild,h).length),h.originalText.slice(b,C)}var Qp=xh,Eh=new Set(["if","else if","for","switch","case"]);function Xu(d,h){let{node:b}=d;switch(b.type){case"element":if(en(b)||b.type==="interpolation")return;if(!b.isSelfClosing&&Sn(b,h)){let C=Xs(b,h);return C?async(A,I)=>{let J=Qp(b,h),ke=/^\s*$/u.test(J),Qe="";return ke||(Qe=await A(Yt(J),{parser:C,__embeddedInHtml:!0}),ke=Qe===""),[Ti(b,h),it(cd(d,h,I)),ke?"":Xt,Qe,ke?"":Xt,qp(b,h),nl(b,h)]}:void 0}break;case"text":if(en(b.parent)){let C=Xs(b.parent,h);if(C)return async A=>{let I=C==="markdown"?ys(b.value.replace(/^[^\S\n]*\n/u,"")):b.value,J={parser:C,__embeddedInHtml:!0};if(h.parser==="html"&&C==="babel"){let ke="script",{attrMap:Qe}=b.parent;Qe&&(Qe.type==="module"||Qe.type==="text/babel"&&Qe["data-type"]==="module")&&(ke="module"),J.__babelSourceType=ke}return[nn,Ti(b,h),await A(I,J),nl(b,h)]}}else if(b.parent.type==="interpolation")return async C=>{let A={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return h.parser==="angular"?A.parser="__ng_interpolation":h.parser==="vue"?A.parser=Nn(d,h)?"__vue_ts_expression":"__vue_expression":A.parser="__js_expression",[ct([Ut,await C(b.value,A)]),b.parent.next&&Da(b.parent.next)?" ":Ut]};break;case"attribute":return Up(d,h);case"front-matter":return C=>jl(b,C);case"angularControlFlowBlockParameters":return Eh.has(d.parent.name)?ii:void 0;case"angularLetDeclarationInitializer":return C=>mr(b.value,C,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var Jl=Xu,xo=null;function Eo(d){if(xo!==null&&typeof xo.property){let h=xo;return xo=Eo.prototype=null,h}return xo=Eo.prototype=d??Object.create(null),new Eo}var _h=10;for(let d=0;d<=_h;d++)Eo();function Kp(d){return Eo(d)}function Zp(d,h="type"){Kp(d);function b(C){let A=C[h],I=d[A];if(!Array.isArray(I))throw Object.assign(new Error(`Missing visitor keys for '${A}'.`),{node:C});return I}return b}var Xp=Zp,Th={"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"]},Ah=Th,Fh=Xp(Ah),Bg=Fh;function jg(d){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(d)}function Ig(d){return`<!-- @format -->
|
|
1153
1154
|
|
|
1154
|
-
`+d}var $h=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 Ph(d){let h=_i(d);return d.type==="element"&&!d.endSourceSpan&&ld(d.children)?Math.max(h,Ph(ar(!1,d.children,-1))):h}function ua(d,h,b){let C=d.node;if(jn(C)){let A=Ph(C);return[Ti(C,h),fe(or.trimEnd(h.originalText.slice(Ql(C)+(C.prev&&Co(C.prev)?Yp(C).length:0),A-(C.next&&Da(C.next)?Zl(C,h).length:0)))),nl(C,h)]}return b()}function Ss(d,h){return xr(d)&&xr(h)?d.isTrailingSpaceSensitive?d.hasTrailingSpaces?Zr(h)?Xt:Ut:"":Zr(h)?Xt:Zt:Co(d)&&(jn(h)||h.firstChild||h.isSelfClosing||h.type==="element"&&h.attrs.length>0)||d.type==="element"&&d.isSelfClosing&&Da(h)?"":!h.isLeadingSpaceSensitive||Zr(h)||Da(h)&&d.lastChild&&Sa(d.lastChild)&&d.lastChild.lastChild&&Sa(d.lastChild.lastChild)?Xt:h.hasLeadingSpaces?Ut:Zt}function dd(d,h,b){let{node:C}=d;if(Ml(C))return[nn,...d.map(I=>{let J=I.node,ke=J.prev?Ss(J.prev,J):"";return[ke?[ke,Ki(J.prev)?Xt:""]:"",ua(I,h,b)]},"children")];let A=C.children.map(()=>Symbol(""));return d.map((I,J)=>{let ke=I.node;if(xr(ke)){if(ke.prev&&xr(ke.prev)){let Qt=Ss(ke.prev,ke);if(Qt)return Ki(ke.prev)?[Xt,Xt,ua(I,h,b)]:[Qt,ua(I,h,b)]}return ua(I,h,b)}let Qe=[],nt=[],st=[],De=[],Tt=ke.prev?Ss(ke.prev,ke):"",ze=ke.next?Ss(ke,ke.next):"";return Tt&&(Ki(ke.prev)?Qe.push(Xt,Xt):Tt===Xt?Qe.push(Xt):xr(ke.prev)?nt.push(Tt):nt.push(Fn("",Zt,{groupId:A[J-1]}))),ze&&(Ki(ke)?xr(ke.next)&&De.push(Xt,Xt):ze===Xt?xr(ke.next)&&De.push(Xt):st.push(ze)),[...Qe,it([...nt,it([ua(I,h,b),...st],{id:A[J]})]),...De]},"children")}function Nh(d,h,b){let{node:C}=d,A=[];pd(d)&&A.push("} "),A.push("@",C.name),C.parameters&&A.push(" (",it(b("parameters")),")"),A.push(" {");let I=Jp(C);return C.children.length>0?(C.firstChild.hasLeadingSpaces=!0,C.lastChild.hasTrailingSpaces=!0,A.push(ct([Xt,dd(d,h,b)])),I&&A.push(Xt,"}")):I&&A.push("}"),it(A,{shouldBreak:!0})}function Jp(d){var h,b;return!(((h=d.next)==null?void 0:h.type)==="angularControlFlowBlock"&&(b=$h.get(d.name))!=null&&b.has(d.next.name))}function pd(d){let{previous:h}=d;return(h==null?void 0:h.type)==="angularControlFlowBlock"&&!jn(h)&&!Jp(h)}function Ko(d,h,b){return[ct([Zt,Yn([";",Ut],d.map(b,"children"))]),Zt]}function fd(d,h,b){let{node:C}=d;return[Ds(C,h),it([C.switchValue.trim(),", ",C.clause,C.cases.length>0?[",",ct([Ut,Yn(Ut,d.map(b,"cases"))])]:"",Zt]),ws(C,h)]}function Rh(d,h,b){let{node:C}=d;return[C.value," {",it([ct([Zt,d.map(({node:A})=>A.type==="text"&&!or.trim(A.value)?"":b(),"expression")]),Zt]),"}"]}function no(d,h,b){let{node:C}=d;if(Bn(C,h))return[Ti(C,h),it(cd(d,h,b)),fe(Qp(C,h)),...qp(C,h),nl(C,h)];let A=C.children.length===1&&(C.firstChild.type==="interpolation"||C.firstChild.type==="angularIcuExpression")&&C.firstChild.isLeadingSpaceSensitive&&!C.firstChild.hasLeadingSpaces&&C.lastChild.isTrailingSpaceSensitive&&!C.lastChild.hasTrailingSpaces,I=Symbol("element-attr-group-id"),J=st=>it([it(cd(d,h,b),{id:I}),st,qp(C,h)]),ke=st=>A?br(st,{groupId:I}):(en(C)||Xi(C,h))&&C.parent.type==="root"&&h.parser==="vue"&&!h.vueIndentScriptAndStyle?st:ct(st),Qe=()=>A?Fn(Zt,"",{groupId:I}):C.firstChild.hasLeadingSpaces&&C.firstChild.isLeadingSpaceSensitive?Ut:C.firstChild.type==="text"&&C.isWhitespaceSensitive&&C.isIndentationSensitive?Rt(Zt):Zt,nt=()=>(C.next?Da(C.next):ur(C.parent))?C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?" ":"":A?Fn(Zt,"",{groupId:I}):C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?Ut:(C.lastChild.type==="comment"||C.lastChild.type==="text"&&C.isWhitespaceSensitive&&C.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${h.tabWidth*(d.ancestors.length-1)}}$`,"u").test(C.lastChild.value)?"":Zt;return C.children.length===0?J(C.hasDanglingSpaces&&C.isDanglingSpaceSensitive?Ut:""):J([Ba(C)?nn:"",ke([Qe(),dd(d,h,b)]),nt()])}function eu(d){return d>=9&&d<=32||d==160}function rl(d){return 48<=d&&d<=57}function tu(d){return d>=97&&d<=122||d>=65&&d<=90}function Oh(d){return d>=97&&d<=102||d>=65&&d<=70||rl(d)}function nu(d){return d===10||d===13}function Cs(d){return 48<=d&&d<=55}function Ju(d){return d===39||d===34||d===96}var ef=/-+([a-z0-9])/g;function Vr(d){return d.replace(ef,(...h)=>h[1].toUpperCase())}var ec=class
|
|
1155
|
-
`);J=ke>0?A-ke:A}else J--;for(;A<C&&h>0;){let ke=b.charCodeAt(A);A++,h--,ke==10?(I++,J=0):J++}return new
|
|
1155
|
+
`+d}var $h=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 Ph(d){let h=_i(d);return d.type==="element"&&!d.endSourceSpan&&ld(d.children)?Math.max(h,Ph(ar(!1,d.children,-1))):h}function ua(d,h,b){let C=d.node;if(jn(C)){let A=Ph(C);return[Ti(C,h),fe(or.trimEnd(h.originalText.slice(Ql(C)+(C.prev&&Co(C.prev)?Yp(C).length:0),A-(C.next&&Da(C.next)?Zl(C,h).length:0)))),nl(C,h)]}return b()}function Ss(d,h){return xr(d)&&xr(h)?d.isTrailingSpaceSensitive?d.hasTrailingSpaces?Zr(h)?Xt:Ut:"":Zr(h)?Xt:Zt:Co(d)&&(jn(h)||h.firstChild||h.isSelfClosing||h.type==="element"&&h.attrs.length>0)||d.type==="element"&&d.isSelfClosing&&Da(h)?"":!h.isLeadingSpaceSensitive||Zr(h)||Da(h)&&d.lastChild&&Sa(d.lastChild)&&d.lastChild.lastChild&&Sa(d.lastChild.lastChild)?Xt:h.hasLeadingSpaces?Ut:Zt}function dd(d,h,b){let{node:C}=d;if(Ml(C))return[nn,...d.map(I=>{let J=I.node,ke=J.prev?Ss(J.prev,J):"";return[ke?[ke,Ki(J.prev)?Xt:""]:"",ua(I,h,b)]},"children")];let A=C.children.map(()=>Symbol(""));return d.map((I,J)=>{let ke=I.node;if(xr(ke)){if(ke.prev&&xr(ke.prev)){let Qt=Ss(ke.prev,ke);if(Qt)return Ki(ke.prev)?[Xt,Xt,ua(I,h,b)]:[Qt,ua(I,h,b)]}return ua(I,h,b)}let Qe=[],nt=[],st=[],De=[],Tt=ke.prev?Ss(ke.prev,ke):"",ze=ke.next?Ss(ke,ke.next):"";return Tt&&(Ki(ke.prev)?Qe.push(Xt,Xt):Tt===Xt?Qe.push(Xt):xr(ke.prev)?nt.push(Tt):nt.push(Fn("",Zt,{groupId:A[J-1]}))),ze&&(Ki(ke)?xr(ke.next)&&De.push(Xt,Xt):ze===Xt?xr(ke.next)&&De.push(Xt):st.push(ze)),[...Qe,it([...nt,it([ua(I,h,b),...st],{id:A[J]})]),...De]},"children")}function Nh(d,h,b){let{node:C}=d,A=[];pd(d)&&A.push("} "),A.push("@",C.name),C.parameters&&A.push(" (",it(b("parameters")),")"),A.push(" {");let I=Jp(C);return C.children.length>0?(C.firstChild.hasLeadingSpaces=!0,C.lastChild.hasTrailingSpaces=!0,A.push(ct([Xt,dd(d,h,b)])),I&&A.push(Xt,"}")):I&&A.push("}"),it(A,{shouldBreak:!0})}function Jp(d){var h,b;return!(((h=d.next)==null?void 0:h.type)==="angularControlFlowBlock"&&(b=$h.get(d.name))!=null&&b.has(d.next.name))}function pd(d){let{previous:h}=d;return(h==null?void 0:h.type)==="angularControlFlowBlock"&&!jn(h)&&!Jp(h)}function Ko(d,h,b){return[ct([Zt,Yn([";",Ut],d.map(b,"children"))]),Zt]}function fd(d,h,b){let{node:C}=d;return[Ds(C,h),it([C.switchValue.trim(),", ",C.clause,C.cases.length>0?[",",ct([Ut,Yn(Ut,d.map(b,"cases"))])]:"",Zt]),ws(C,h)]}function Rh(d,h,b){let{node:C}=d;return[C.value," {",it([ct([Zt,d.map(({node:A})=>A.type==="text"&&!or.trim(A.value)?"":b(),"expression")]),Zt]),"}"]}function no(d,h,b){let{node:C}=d;if(Bn(C,h))return[Ti(C,h),it(cd(d,h,b)),fe(Qp(C,h)),...qp(C,h),nl(C,h)];let A=C.children.length===1&&(C.firstChild.type==="interpolation"||C.firstChild.type==="angularIcuExpression")&&C.firstChild.isLeadingSpaceSensitive&&!C.firstChild.hasLeadingSpaces&&C.lastChild.isTrailingSpaceSensitive&&!C.lastChild.hasTrailingSpaces,I=Symbol("element-attr-group-id"),J=st=>it([it(cd(d,h,b),{id:I}),st,qp(C,h)]),ke=st=>A?br(st,{groupId:I}):(en(C)||Xi(C,h))&&C.parent.type==="root"&&h.parser==="vue"&&!h.vueIndentScriptAndStyle?st:ct(st),Qe=()=>A?Fn(Zt,"",{groupId:I}):C.firstChild.hasLeadingSpaces&&C.firstChild.isLeadingSpaceSensitive?Ut:C.firstChild.type==="text"&&C.isWhitespaceSensitive&&C.isIndentationSensitive?Rt(Zt):Zt,nt=()=>(C.next?Da(C.next):ur(C.parent))?C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?" ":"":A?Fn(Zt,"",{groupId:I}):C.lastChild.hasTrailingSpaces&&C.lastChild.isTrailingSpaceSensitive?Ut:(C.lastChild.type==="comment"||C.lastChild.type==="text"&&C.isWhitespaceSensitive&&C.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${h.tabWidth*(d.ancestors.length-1)}}$`,"u").test(C.lastChild.value)?"":Zt;return C.children.length===0?J(C.hasDanglingSpaces&&C.isDanglingSpaceSensitive?Ut:""):J([Ba(C)?nn:"",ke([Qe(),dd(d,h,b)]),nt()])}function eu(d){return d>=9&&d<=32||d==160}function rl(d){return 48<=d&&d<=57}function tu(d){return d>=97&&d<=122||d>=65&&d<=90}function Oh(d){return d>=97&&d<=102||d>=65&&d<=70||rl(d)}function nu(d){return d===10||d===13}function Cs(d){return 48<=d&&d<=55}function Ju(d){return d===39||d===34||d===96}var ef=/-+([a-z0-9])/g;function Vr(d){return d.replace(ef,(...h)=>h[1].toUpperCase())}var ec=class qF{constructor(h,b,C,A){this.file=h,this.offset=b,this.line=C,this.col=A}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(h){let b=this.file.content,C=b.length,A=this.offset,I=this.line,J=this.col;for(;A>0&&h<0;)if(A--,h++,b.charCodeAt(A)==10){I--;let ke=b.substring(0,A-1).lastIndexOf(`
|
|
1156
|
+
`);J=ke>0?A-ke:A}else J--;for(;A<C&&h>0;){let ke=b.charCodeAt(A);A++,h--,ke==10?(I++,J=0):J++}return new qF(this.file,A,I,J)}getContext(h,b){let C=this.file.content,A=this.offset;if(A!=null){A>C.length-1&&(A=C.length-1);let I=A,J=0,ke=0;for(;J<h&&A>0&&(A--,J++,!(C[A]==`
|
|
1156
1157
|
`&&++ke==b)););for(J=0,ke=0;J<h&&I<C.length-1&&(I++,J++,!(C[I]==`
|
|
1157
1158
|
`&&++ke==b)););return{before:C.substring(A,this.offset),after:C.substring(this.offset,I+1)}}return null}},tf=class{constructor(d,h){this.content=d,this.url=h}},tn=class{constructor(d,h,b=d,C=null){this.start=d,this.end=h,this.fullStart=b,this.details=C}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},tc;(function(d){d[d.WARNING=0]="WARNING",d[d.ERROR=1]="ERROR"})(tc||(tc={}));var nf=class{constructor(d,h,b=tc.ERROR){this.span=d,this.msg=h,this.level=b}contextualMessage(){let d=this.span.start.getContext(100,3);return d?`${this.msg} ("${d.before}[${tc[this.level]} ->]${d.after}")`:this.msg}toString(){let d=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${d}`}},Lh=[nc,al,rc,zg,Bh,xs,hd,Un,Xo,ac];function Zo(d,h){for(let b of Lh)b(d,h);return d}function nc(d){d.walk(h=>{if(h.type==="element"&&h.tagDefinition.ignoreFirstLf&&h.children.length>0&&h.children[0].type==="text"&&h.children[0].value[0]===`
|
|
1158
1159
|
`){let b=h.children[0];b.value.length===1?h.removeChild(b):b.value=b.value.slice(1)}})}function al(d){let h=b=>{var C,A;return b.type==="element"&&((C=b.prev)==null?void 0:C.type)==="ieConditionalStartComment"&&b.prev.sourceSpan.end.offset===b.startSourceSpan.start.offset&&((A=b.firstChild)==null?void 0:A.type)==="ieConditionalEndComment"&&b.firstChild.sourceSpan.start.offset===b.startSourceSpan.end.offset};d.walk(b=>{if(b.children)for(let C=0;C<b.children.length;C++){let A=b.children[C];if(!h(A))continue;let I=A.prev,J=A.firstChild;b.removeChild(I),C--;let ke=new tn(I.sourceSpan.start,J.sourceSpan.end),Qe=new tn(ke.start,A.sourceSpan.end);A.condition=I.condition,A.sourceSpan=Qe,A.startSourceSpan=ke,A.removeChild(J)}})}function Mg(d,h,b){d.walk(C=>{if(C.children)for(let A=0;A<C.children.length;A++){let I=C.children[A];if(I.type!=="text"&&!h(I))continue;I.type!=="text"&&(I.type="text",I.value=b(I));let J=I.prev;!J||J.type!=="text"||(J.value+=I.value,J.sourceSpan=new tn(J.sourceSpan.start,I.sourceSpan.end),C.removeChild(I),A--)}})}function rc(d){return Mg(d,h=>h.type==="cdata",h=>`<![CDATA[${h.value}]]>`)}function ac(d){let h=b=>{var C,A;return b.type==="element"&&b.attrs.length===0&&b.children.length===1&&b.firstChild.type==="text"&&!or.hasWhitespaceCharacter(b.children[0].value)&&!b.firstChild.hasLeadingSpaces&&!b.firstChild.hasTrailingSpaces&&b.isLeadingSpaceSensitive&&!b.hasLeadingSpaces&&b.isTrailingSpaceSensitive&&!b.hasTrailingSpaces&&((C=b.prev)==null?void 0:C.type)==="text"&&((A=b.next)==null?void 0:A.type)==="text"};d.walk(b=>{if(b.children)for(let C=0;C<b.children.length;C++){let A=b.children[C];if(!h(A))continue;let I=A.prev,J=A.next;I.value+=`<${A.rawName}>`+A.firstChild.value+`</${A.rawName}>`+J.value,I.sourceSpan=new tn(I.sourceSpan.start,J.sourceSpan.end),I.isTrailingSpaceSensitive=J.isTrailingSpaceSensitive,I.hasTrailingSpaces=J.hasTrailingSpaces,b.removeChild(A),C--,b.removeChild(J)}})}function zg(d,h){if(h.parser==="html")return;let b=/\{\{(.+?)\}\}/su;d.walk(C=>{if(Wr(C))for(let A of C.children){if(A.type!=="text")continue;let I=A.sourceSpan.start,J=null,ke=A.value.split(b);for(let Qe=0;Qe<ke.length;Qe++,I=J){let nt=ke[Qe];if(Qe%2===0){J=I.moveBy(nt.length),nt.length>0&&C.insertChildBefore(A,{type:"text",value:nt,sourceSpan:new tn(I,J)});continue}J=I.moveBy(nt.length+4),C.insertChildBefore(A,{type:"interpolation",sourceSpan:new tn(I,J),children:nt.length===0?[]:[{type:"text",value:nt,sourceSpan:new tn(I.moveBy(2),J.moveBy(-2))}]})}C.removeChild(A)}})}function Bh(d){d.walk(h=>{if(!h.children)return;if(h.children.length===0||h.children.length===1&&h.children[0].type==="text"&&or.trim(h.children[0].value).length===0){h.hasDanglingSpaces=h.children.length>0,h.children=[];return}let b=ya(h),C=Gt(h);if(!b)for(let A=0;A<h.children.length;A++){let I=h.children[A];if(I.type!=="text")continue;let{leadingWhitespace:J,text:ke,trailingWhitespace:Qe}=Fr(I.value),nt=I.prev,st=I.next;ke?(I.value=ke,I.sourceSpan=new tn(I.sourceSpan.start.moveBy(J.length),I.sourceSpan.end.moveBy(-Qe.length)),J&&(nt&&(nt.hasTrailingSpaces=!0),I.hasLeadingSpaces=!0),Qe&&(I.hasTrailingSpaces=!0,st&&(st.hasLeadingSpaces=!0))):(h.removeChild(I),A--,(J||Qe)&&(nt&&(nt.hasTrailingSpaces=!0),st&&(st.hasLeadingSpaces=!0)))}h.isWhitespaceSensitive=b,h.isIndentationSensitive=C})}function hd(d){d.walk(h=>{h.isSelfClosing=!h.children||h.type==="element"&&(h.tagDefinition.isVoid||h.endSourceSpan&&h.startSourceSpan.start===h.endSourceSpan.start&&h.startSourceSpan.end===h.endSourceSpan.end)})}function Un(d,h){d.walk(b=>{b.type==="element"&&(b.hasHtmComponentClosingTag=b.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(h.originalText.slice(b.endSourceSpan.start.offset,b.endSourceSpan.end.offset)))})}function xs(d,h){d.walk(b=>{b.cssDisplay=ql(b,h)})}function Xo(d,h){d.walk(b=>{let{children:C}=b;if(C){if(C.length===0){b.isDanglingSpaceSensitive=Il(b);return}for(let A of C)A.isLeadingSpaceSensitive=Ci(A,h),A.isTrailingSpaceSensitive=ms(A,h);for(let A=0;A<C.length;A++){let I=C[A];I.isLeadingSpaceSensitive=(A===0||I.prev.isTrailingSpaceSensitive)&&I.isLeadingSpaceSensitive,I.isTrailingSpaceSensitive=(A===C.length-1||I.next.isLeadingSpaceSensitive)&&I.isTrailingSpaceSensitive}}})}var ru=Zo;function jh(d,h,b){let{node:C}=d;switch(C.type){case"front-matter":return fe(C.raw);case"root":return h.__onHtmlRoot&&h.__onHtmlRoot(C),[it(dd(d,h,b)),Xt];case"element":case"ieConditionalComment":return no(d,h,b);case"angularControlFlowBlock":return Nh(d,h,b);case"angularControlFlowBlockParameters":return Ko(d,h,b);case"angularControlFlowBlockParameter":return or.trim(C.expression);case"angularLetDeclaration":return it(["@let ",it([C.id," =",it(ct([Ut,b("init")]))]),";"]);case"angularLetDeclarationInitializer":return C.value;case"angularIcuExpression":return fd(d,h,b);case"angularIcuCase":return Rh(d,h,b);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ds(C),ws(C)];case"interpolation":return[Ds(C,h),...d.map(b,"children"),ws(C,h)];case"text":{if(C.parent.type==="interpolation"){let I=/\n[^\S\n]*$/u,J=I.test(C.value),ke=J?C.value.replace(I,""):C.value;return[fe(ke),J?Xt:""]}let A=Z([Ti(C,h),...Or(C),nl(C,h)]);return Array.isArray(A)?sn(A):A}case"docType":return[it([Ds(C,h)," ",H(!1,C.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ws(C,h)];case"comment":return[Ti(C,h),fe(h.originalText.slice(Ql(C),_i(C))),nl(C,h)];case"attribute":{if(C.value===null)return C.rawName;let A=lr(C.value),I=Ae(A,'"');return[C.rawName,"=",I,fe(I==='"'?H(!1,A,'"',"""):H(!1,A,"'","'")),I]}case"cdata":default:throw new Rr(C,"HTML")}}var md={preprocess:ru,print:jh,insertPragma:Ig,massageAstNode:hs,embed:Jl,getVisitorKeys:Bg},ic=md,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"]}],Es={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."}},gd="HTML",rf={bracketSameLine:Es.bracketSameLine,htmlWhitespaceSensitivity:{category:gd,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:Es.singleAttributePerLine,vueIndentScriptAndStyle:{category:gd,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Ug=rf,vd={};S(vd,{angular:()=>Ad,html:()=>pr,lwc:()=>gf,vue:()=>Fd});var sc;(function(d){d[d.Emulated=0]="Emulated",d[d.None=2]="None",d[d.ShadowDom=3]="ShadowDom"})(sc||(sc={}));var lc;(function(d){d[d.OnPush=0]="OnPush",d[d.Default=1]="Default"})(lc||(lc={}));var yd;(function(d){d[d.None=0]="None",d[d.SignalBased=1]="SignalBased",d[d.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(yd||(yd={}));var _s={name:"custom-elements"},au={name:"no-errors-schema"},ci;(function(d){d[d.NONE=0]="NONE",d[d.HTML=1]="HTML",d[d.STYLE=2]="STYLE",d[d.SCRIPT=3]="SCRIPT",d[d.URL=4]="URL",d[d.RESOURCE_URL=5]="RESOURCE_URL"})(ci||(ci={}));var af;(function(d){d[d.Error=0]="Error",d[d.Warning=1]="Warning",d[d.Ignore=2]="Ignore"})(af||(af={}));var di;(function(d){d[d.RAW_TEXT=0]="RAW_TEXT",d[d.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",d[d.PARSABLE_DATA=2]="PARSABLE_DATA"})(di||(di={}));function iu(d,h=!0){if(d[0]!=":")return[null,d];let b=d.indexOf(":",1);if(b===-1){if(h)throw new Error(`Unsupported format "${d}" expecting ":namespace:name"`);return[null,d]}return[d.slice(1,b),d.slice(b+1)]}function Ih(d){return iu(d)[1]==="ng-container"}function Jo(d){return iu(d)[1]==="ng-content"}function Ia(d){return d===null?null:iu(d)[0]}function Ts(d,h){return d?`:${d}:${h}`:h}var ro;function ao(){return ro||(ro={},_o(ci.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),_o(ci.STYLE,["*|style"]),_o(ci.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"]),_o(ci.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"])),ro}function _o(d,h){for(let b of h)ro[b.toLowerCase()]=d}var es=class{},of="boolean",Hg="number",sf="string",Ai="object",uc=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],il=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),_t=Array.from(il).reduce((d,[h,b])=>(d.set(h,b),d),new Map),As=class extends es{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,uc.forEach(d=>{let h=new Map,b=new Set,[C,A]=d.split("|"),I=A.split(","),[J,ke]=C.split("^");J.split(",").forEach(nt=>{this._schema.set(nt.toLowerCase(),h),this._eventSchema.set(nt.toLowerCase(),b)});let Qe=ke&&this._schema.get(ke.toLowerCase());if(Qe){for(let[nt,st]of Qe)h.set(nt,st);for(let nt of this._eventSchema.get(ke.toLowerCase()))b.add(nt)}I.forEach(nt=>{if(nt.length>0)switch(nt[0]){case"*":b.add(nt.substring(1));break;case"!":h.set(nt.substring(1),of);break;case"#":h.set(nt.substring(1),Hg);break;case"%":h.set(nt.substring(1),Ai);break;default:h.set(nt,sf)}})})}hasProperty(d,h,b){if(b.some(C=>C.name===au.name))return!0;if(d.indexOf("-")>-1){if(Ih(d)||Jo(d))return!1;if(b.some(C=>C.name===_s.name))return!0}return(this._schema.get(d.toLowerCase())||this._schema.get("unknown")).has(h)}hasElement(d,h){return h.some(b=>b.name===au.name)||d.indexOf("-")>-1&&(Ih(d)||Jo(d)||h.some(b=>b.name===_s.name))?!0:this._schema.has(d.toLowerCase())}securityContext(d,h,b){b&&(h=this.getMappedPropName(h)),d=d.toLowerCase(),h=h.toLowerCase();let C=ao()[d+"|"+h];return C||(C=ao()["*|"+h],C||ci.NONE)}getMappedPropName(d){return il.get(d)??d}getDefaultComponentElementName(){return"ng-component"}validateProperty(d){return d.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${d}' is disallowed for security reasons, please use (${d.slice(2)})=...
|
|
1159
1160
|
If '${d}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(d){return d.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${d}' is disallowed for security reasons, please use (${d.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(d){let h=this._schema.get(d.toLowerCase())||this._schema.get("unknown");return Array.from(h.keys()).map(b=>_t.get(b)??b)}allKnownEventsOfElement(d){return Array.from(this._eventSchema.get(d.toLowerCase())??[])}normalizeAnimationStyleProperty(d){return Vr(d)}normalizeAnimationStyleValue(d,h,b){let C="",A=b.toString().trim(),I=null;if(tr(d)&&b!==0&&b!=="0")if(typeof b=="number")C="px";else{let J=b.match(/^[+-]?[\d\.]+([a-z]*)$/);J&&J[1].length==0&&(I=`Please provide a CSS unit value for ${h}:${b}`)}return{error:I,value:A+C}}};function tr(d){switch(d){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 Ge=class{constructor({closedByChildren:d,implicitNamespacePrefix:h,contentType:b=di.PARSABLE_DATA,closedByParent:C=!1,isVoid:A=!1,ignoreFirstLf:I=!1,preventNamespaceInheritance:J=!1,canSelfClose:ke=!1}={}){this.closedByChildren={},this.closedByParent=!1,d&&d.length>0&&d.forEach(Qe=>this.closedByChildren[Qe]=!0),this.isVoid=A,this.closedByParent=C||A,this.implicitNamespacePrefix=h||null,this.contentType=b,this.ignoreFirstLf=I,this.preventNamespaceInheritance=J,this.canSelfClose=ke??A}isClosedByChild(d){return this.isVoid||d.toLowerCase()in this.closedByChildren}getContentType(d){return typeof this.contentType=="object"?(d===void 0?void 0:this.contentType[d])??this.contentType.default:this.contentType}},Cn,gn;function Fi(d){return gn||(Cn=new Ge({canSelfClose:!0}),gn=Object.assign(Object.create(null),{base:new Ge({isVoid:!0}),meta:new Ge({isVoid:!0}),area:new Ge({isVoid:!0}),embed:new Ge({isVoid:!0}),link:new Ge({isVoid:!0}),img:new Ge({isVoid:!0}),input:new Ge({isVoid:!0}),param:new Ge({isVoid:!0}),hr:new Ge({isVoid:!0}),br:new Ge({isVoid:!0}),source:new Ge({isVoid:!0}),track:new Ge({isVoid:!0}),wbr:new Ge({isVoid:!0}),p:new Ge({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 Ge({closedByChildren:["tbody","tfoot"]}),tbody:new Ge({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Ge({closedByChildren:["tbody"],closedByParent:!0}),tr:new Ge({closedByChildren:["tr"],closedByParent:!0}),td:new Ge({closedByChildren:["td","th"],closedByParent:!0}),th:new Ge({closedByChildren:["td","th"],closedByParent:!0}),col:new Ge({isVoid:!0}),svg:new Ge({implicitNamespacePrefix:"svg"}),foreignObject:new Ge({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Ge({implicitNamespacePrefix:"math"}),li:new Ge({closedByChildren:["li"],closedByParent:!0}),dt:new Ge({closedByChildren:["dt","dd"]}),dd:new Ge({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Ge({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Ge({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Ge({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Ge({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Ge({closedByChildren:["optgroup"],closedByParent:!0}),option:new Ge({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Ge({ignoreFirstLf:!0}),listing:new Ge({ignoreFirstLf:!0}),style:new Ge({contentType:di.RAW_TEXT}),script:new Ge({contentType:di.RAW_TEXT}),title:new Ge({contentType:{default:di.ESCAPABLE_RAW_TEXT,svg:di.PARSABLE_DATA}}),textarea:new Ge({contentType:di.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new As().allKnownElementNames().forEach(h=>{!gn[h]&&Ia(h)===null&&(gn[h]=new Ge({canSelfClose:!1}))})),gn[d]??Cn}var Ft=class{constructor(d,h){this.sourceSpan=d,this.i18n=h}},kr=class extends Ft{constructor(d,h,b,C){super(h,C),this.value=d,this.tokens=b,this.type="text"}visit(d,h){return d.visitText(this,h)}},Ma=class extends Ft{constructor(d,h,b,C){super(h,C),this.value=d,this.tokens=b,this.type="cdata"}visit(d,h){return d.visitCdata(this,h)}},$i=class extends Ft{constructor(d,h,b,C,A,I){super(C,I),this.switchValue=d,this.type=h,this.cases=b,this.switchValueSourceSpan=A}visit(d,h){return d.visitExpansion(this,h)}},cr=class{constructor(d,h,b,C,A){this.value=d,this.expression=h,this.sourceSpan=b,this.valueSourceSpan=C,this.expSourceSpan=A,this.type="expansionCase"}visit(d,h){return d.visitExpansionCase(this,h)}},Pi=class extends Ft{constructor(d,h,b,C,A,I,J){super(b,J),this.name=d,this.value=h,this.keySpan=C,this.valueSpan=A,this.valueTokens=I,this.type="attribute"}visit(d,h){return d.visitAttribute(this,h)}get nameSpan(){return this.keySpan}},Ca=class extends Ft{constructor(d,h,b,C,A,I=null,J=null,ke){super(C,ke),this.name=d,this.attrs=h,this.children=b,this.startSourceSpan=A,this.endSourceSpan=I,this.nameSpan=J,this.type="element"}visit(d,h){return d.visitElement(this,h)}},cc=class{constructor(d,h){this.value=d,this.sourceSpan=h,this.type="comment"}visit(d,h){return d.visitComment(this,h)}},bd=class{constructor(d,h){this.value=d,this.sourceSpan=h,this.type="docType"}visit(d,h){return d.visitDocType(this,h)}},ol=class extends Ft{constructor(d,h,b,C,A,I,J=null,ke){super(C,ke),this.name=d,this.parameters=h,this.children=b,this.nameSpan=A,this.startSourceSpan=I,this.endSourceSpan=J,this.type="block"}visit(d,h){return d.visitBlock(this,h)}},za=class{constructor(d,h){this.expression=d,this.sourceSpan=h,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(d,h){return d.visitBlockParameter(this,h)}},Lr=class{constructor(d,h,b,C,A){this.name=d,this.value=h,this.sourceSpan=b,this.nameSpan=C,this.valueSpan=A,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(d,h){return d.visitLetDeclaration(this,h)}};function ou(d,h,b=null){let C=[],A=d.visit?I=>d.visit(I,b)||I.visit(d,b):I=>I.visit(d,b);return h.forEach(I=>{let J=A(I);J&&C.push(J)}),C}var lf=class{constructor(){}visitElement(d,h){this.visitChildren(h,b=>{b(d.attrs),b(d.children)})}visitAttribute(d,h){}visitText(d,h){}visitCdata(d,h){}visitComment(d,h){}visitDocType(d,h){}visitExpansion(d,h){return this.visitChildren(h,b=>{b(d.cases)})}visitExpansionCase(d,h){}visitBlock(d,h){this.visitChildren(h,b=>{b(d.parameters),b(d.children)})}visitBlockParameter(d,h){}visitLetDeclaration(d,h){}visitChildren(d,h){let b=[],C=this;function A(I){I&&b.push(ou(C,I,d))}return h(A),Array.prototype.concat.apply([],b)}},su={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:`
|
|
1160
|
-
`,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:""},Ua="";su.ngsp=Ua;var Fs=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ha(d,h){if(h!=null&&!(Array.isArray(h)&&h.length==2))throw new Error(`Expected '${d}' to be an array, [start, end].`);if(h!=null){let b=h[0],C=h[1];Fs.forEach(A=>{if(A.test(b)||A.test(C))throw new Error(`['${b}', '${C}'] contains unusable interpolation symbol.`)})}}var sl=class qF{static fromArray(h){return h?(Ha("interpolation",h),new qF(h[0],h[1])):ll}constructor(h,b){this.start=h,this.end=b}},ll=new sl("{{","}}"),ca=class extends nf{constructor(d,h,b){super(b,d),this.tokenType=h}},da=class{constructor(d,h,b){this.tokens=d,this.errors=h,this.nonNormalizedIcuExpressions=b}};function Ni(d,h,b,C={}){let A=new pi(new tf(d,h),b,C);return A.tokenize(),new da(gr(A.tokens),A.errors,A.nonNormalizedIcuExpressions)}var Xr=/\r\n?/g;function qa(d){return`Unexpected character "${d===0?"EOF":String.fromCharCode(d)}"`}function Wa(d){return`Unknown entity "${d}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function uf(d,h){return`Unable to parse entity "${h}" - ${d} character reference entities must end with ";"`}var ul;(function(d){d.HEX="hexadecimal",d.DEC="decimal"})(ul||(ul={}));var dc=class{constructor(d){this.error=d}},pi=class{constructor(d,h,b){this._getTagContentType=h,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=b.tokenizeExpansionForms||!1,this._interpolationConfig=b.interpolationConfig||ll,this._leadingTriviaCodePoints=b.leadingTriviaChars&&b.leadingTriviaChars.map(A=>A.codePointAt(0)||0),this._canSelfClose=b.canSelfClose||!1,this._allowHtmComponentClosingTags=b.allowHtmComponentClosingTags||!1;let C=b.range||{endPos:d.content.length,startPos:0,startLine:0,startCol:0};this._cursor=b.escapedString?new Sd(d,C):new Dd(d,C),this._preserveLineEndings=b.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=b.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=b.tokenizeBlocks??!0,this._tokenizeLet=b.tokenizeLet??!0;try{this._cursor.init()}catch(A){this.handleError(A)}}_processCarriageReturns(d){return this._preserveLineEndings?d:d.replace(Xr,`
|
|
1161
|
-
`)}tokenize(){for(;this._cursor.peek()!==0;){let d=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(d):this._attemptStr("--")?this._consumeComment(d):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(d):this._consumeBogusComment(d);else if(this._attemptCharCode(47))this._consumeTagClose(d);else{let h=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=h,this._consumeBogusComment(d)):this._consumeTagOpen(d)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(d):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(d):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(d):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(h){this.handleError(h)}}this._beginToken(34),this._endToken([])}_getBlockName(){let d=!1,h=this._cursor.clone();return this._attemptCharCodeUntilFn(b=>eu(b)?!d:pc(b)?(d=!0,!1):!0),this._cursor.getChars(h).trim()}_consumeBlockStart(d){this._beginToken(25,d);let h=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(yn),this._attemptCharCode(41))this._attemptCharCodeUntilFn(yn);else{h.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):h.type=29}_consumeBlockEnd(d){this._beginToken(27,d),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(pf);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let d=this._cursor.clone(),h=null,b=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||h!==null;){let C=this._cursor.peek();if(C===92)this._cursor.advance();else if(C===h)h=null;else if(h===null&&Ju(C))h=C;else if(C===40&&h===null)b++;else if(C===41&&h===null){if(b===0)break;b>0&&b--}this._cursor.advance()}this._endToken([this._cursor.getChars(d)]),this._attemptCharCodeUntilFn(pf)}}_consumeLetDeclaration(d){if(this._beginToken(30,d),eu(this._cursor.peek()))this._attemptCharCodeUntilFn(yn);else{let b=this._endToken([this._cursor.getChars(d)]);b.type=33;return}let h=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(yn),!this._attemptCharCode(61)){h.type=33;return}this._attemptCharCodeUntilFn(b=>yn(b)&&!nu(b)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(h.type=33,h.sourceSpan=this._cursor.getSpan(d))}_getLetDeclarationName(){let d=this._cursor.clone(),h=!1;return this._attemptCharCodeUntilFn(b=>tu(b)||b==36||b===95||h&&rl(b)?(h=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeLetDeclarationValue(){let d=this._cursor.clone();for(this._beginToken(31,d);this._cursor.peek()!==0;){let h=this._cursor.peek();if(h===59)break;Ju(h)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(b=>b===92?(this._cursor.advance(),!1):b===h)),this._cursor.advance()}this._endToken([this._cursor.getChars(d)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(kd(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(d,h=this._cursor.clone()){this._currentTokenStart=h,this._currentTokenType=d}_endToken(d,h){if(this._currentTokenStart===null)throw new ca("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(h));if(this._currentTokenType===null)throw new ca("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let b={type:this._currentTokenType,parts:d,sourceSpan:(h??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(b),this._currentTokenStart=null,this._currentTokenType=null,b}_createError(d,h){this._isInExpansionForm()&&(d+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let b=new ca(d,this._currentTokenType,h);return this._currentTokenStart=null,this._currentTokenType=null,new dc(b)}handleError(d){if(d instanceof ts&&(d=this._createError(d.msg,this._cursor.getSpan(d.cursor))),d instanceof dc)this.errors.push(d.error);else throw d}_attemptCharCode(d){return this._cursor.peek()===d?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(d){return wd(this._cursor.peek(),d)?(this._cursor.advance(),!0):!1}_requireCharCode(d){let h=this._cursor.clone();if(!this._attemptCharCode(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_attemptStr(d){let h=d.length;if(this._cursor.charsLeft()<h)return!1;let b=this._cursor.clone();for(let C=0;C<h;C++)if(!this._attemptCharCode(d.charCodeAt(C)))return this._cursor=b,!1;return!0}_attemptStrCaseInsensitive(d){for(let h=0;h<d.length;h++)if(!this._attemptCharCodeCaseInsensitive(d.charCodeAt(h)))return!1;return!0}_requireStr(d){let h=this._cursor.clone();if(!this._attemptStr(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_requireStrCaseInsensitive(d){let h=this._cursor.clone();if(!this._attemptStrCaseInsensitive(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_attemptCharCodeUntilFn(d){for(;!d(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(d,h){let b=this._cursor.clone();if(this._attemptCharCodeUntilFn(d),this._cursor.diff(b)<h)throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(b))}_attemptUntilChar(d){for(;this._cursor.peek()!==d;)this._cursor.advance()}_readChar(){let d=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),d}_consumeEntity(d){this._beginToken(9);let h=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let b=this._attemptCharCode(120)||this._attemptCharCode(88),C=this._cursor.clone();if(this._attemptCharCodeUntilFn(cf),this._cursor.peek()!=59){this._cursor.advance();let I=b?ul.HEX:ul.DEC;throw this._createError(uf(I,this._cursor.getChars(h)),this._cursor.getSpan())}let A=this._cursor.getChars(C);this._cursor.advance();try{let I=parseInt(A,b?16:10);this._endToken([String.fromCharCode(I),this._cursor.getChars(h)])}catch{throw this._createError(Wa(this._cursor.getChars(h)),this._cursor.getSpan())}}else{let b=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mh),this._cursor.peek()!=59)this._beginToken(d,h),this._cursor=b,this._endToken(["&"]);else{let C=this._cursor.getChars(b);this._cursor.advance();let A=su[C];if(!A)throw this._createError(Wa(C),this._cursor.getSpan(h));this._endToken([A,`&${C};`])}}}_consumeRawText(d,h){this._beginToken(d?6:7);let b=[];for(;;){let C=this._cursor.clone(),A=h();if(this._cursor=C,A)break;d&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(b.join(""))]),b.length=0,this._consumeEntity(6),this._beginToken(6)):b.push(this._readChar())}this._endToken([this._processCarriageReturns(b.join(""))])}_consumeComment(d){this._beginToken(10,d),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(d){this._beginToken(10,d),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(d){this._beginToken(12,d),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(d){this._beginToken(18,d),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let d=this._cursor.clone(),h="";for(;this._cursor.peek()!==58&&!Ri(this._cursor.peek());)this._cursor.advance();let b;this._cursor.peek()===58?(h=this._cursor.getChars(d),this._cursor.advance(),b=this._cursor.clone()):b=d,this._requireCharCodeUntilFn(Qn,h===""?0:1);let C=this._cursor.getChars(b);return[h,C]}_consumeTagOpen(d){let h,b,C,A=[];try{if(!tu(this._cursor.peek()))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(d));for(C=this._consumeTagOpenStart(d),b=C.parts[0],h=C.parts[1],this._attemptCharCodeUntilFn(yn);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[J,ke]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(yn),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(yn);let Qe=this._consumeAttributeValue();A.push({prefix:J,name:ke,value:Qe})}else A.push({prefix:J,name:ke});this._attemptCharCodeUntilFn(yn)}this._consumeTagOpenEnd()}catch(J){if(J instanceof dc){C?C.type=4:(this._beginToken(5,d),this._endToken(["<"]));return}throw J}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let I=this._getTagContentType(h,b,this._fullNameStack.length>0,A);this._handleFullNameStackForTagOpen(b,h),I===di.RAW_TEXT?this._consumeRawTextWithTagClose(b,h,!1):I===di.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,h,!0)}_consumeRawTextWithTagClose(d,h,b){this._consumeRawText(b,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(yn),!this._attemptStrCaseInsensitive(d?`${d}:${h}`:h))?!1:(this._attemptCharCodeUntilFn(yn),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(C=>C===62,3),this._cursor.advance(),this._endToken([d,h]),this._handleFullNameStackForTagClose(d,h)}_consumeTagOpenStart(d){this._beginToken(0,d);let h=this._consumePrefixAndName();return this._endToken(h)}_consumeAttributeName(){let d=this._cursor.peek();if(d===39||d===34)throw this._createError(qa(d),this._cursor.getSpan());this._beginToken(14);let h=this._consumePrefixAndName();return this._endToken(h),h}_consumeAttributeValue(){let d;if(this._cursor.peek()===39||this._cursor.peek()===34){let h=this._cursor.peek();this._consumeQuote(h);let b=()=>this._cursor.peek()===h;d=this._consumeWithInterpolation(16,17,b,b),this._consumeQuote(h)}else{let h=()=>Qn(this._cursor.peek());d=this._consumeWithInterpolation(16,17,h,h)}return d}_consumeQuote(d){this._beginToken(15),this._requireCharCode(d),this._endToken([String.fromCodePoint(d)])}_consumeTagOpenEnd(){let d=this._attemptCharCode(47)?2:1;this._beginToken(d),this._requireCharCode(62),this._endToken([])}_consumeTagClose(d){if(this._beginToken(3,d),this._attemptCharCodeUntilFn(yn),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(yn),this._requireCharCode(62),this._endToken([]);else{let[h,b]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(yn),this._requireCharCode(62),this._endToken([h,b]),this._handleFullNameStackForTagClose(h,b)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let d=this._readUntil(44),h=this._processCarriageReturns(d);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([h]);else{let C=this._endToken([d]);h!==d&&this.nonNormalizedIcuExpressions.push(C)}this._requireCharCode(44),this._attemptCharCodeUntilFn(yn),this._beginToken(7);let b=this._readUntil(44);this._endToken([b]),this._requireCharCode(44),this._attemptCharCodeUntilFn(yn)}_consumeExpansionCaseStart(){this._beginToken(21);let d=this._readUntil(123).trim();this._endToken([d]),this._attemptCharCodeUntilFn(yn),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(yn),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(yn),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(d,h,b,C){this._beginToken(d);let A=[];for(;!b();){let J=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(A.join(""))],J),A.length=0,this._consumeInterpolation(h,J,C),this._beginToken(d)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(A.join(""))]),A.length=0,this._consumeEntity(d),this._beginToken(d)):A.push(this._readChar())}this._inInterpolation=!1;let I=this._processCarriageReturns(A.join(""));return this._endToken([I]),I}_consumeInterpolation(d,h,b){let C=[];this._beginToken(d,h),C.push(this._interpolationConfig.start);let A=this._cursor.clone(),I=null,J=!1;for(;this._cursor.peek()!==0&&(b===null||!b());){let ke=this._cursor.clone();if(this._isTagStart()){this._cursor=ke,C.push(this._getProcessedChars(A,ke)),this._endToken(C);return}if(I===null)if(this._attemptStr(this._interpolationConfig.end)){C.push(this._getProcessedChars(A,ke)),C.push(this._interpolationConfig.end),this._endToken(C);return}else this._attemptStr("//")&&(J=!0);let Qe=this._cursor.peek();this._cursor.advance(),Qe===92?this._cursor.advance():Qe===I?I=null:!J&&I===null&&Ju(Qe)&&(I=Qe)}C.push(this._getProcessedChars(A,this._cursor)),this._endToken(C)}_getProcessedChars(d,h){return this._processCarriageReturns(h.getChars(d))}_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 d=this._cursor.clone();d.advance();let h=d.peek();if(97<=h&&h<=122||65<=h&&h<=90||h===47||h===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let d=this._cursor.clone();if(d.advance(),pc(d.peek()))return!0}return!1}_readUntil(d){let h=this._cursor.clone();return this._attemptUntilChar(d),this._cursor.getChars(h)}_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 d=this._cursor.clone(),h=this._attemptStr(this._interpolationConfig.start);return this._cursor=d,!h}return!0}_handleFullNameStackForTagOpen(d,h){let b=Ts(d,h);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===b)&&this._fullNameStack.push(b)}_handleFullNameStackForTagClose(d,h){let b=Ts(d,h);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===b&&this._fullNameStack.pop()}};function yn(d){return!eu(d)||d===0}function Qn(d){return eu(d)||d===62||d===60||d===47||d===39||d===34||d===61||d===0}function Ri(d){return(d<97||122<d)&&(d<65||90<d)&&(d<48||d>57)}function cf(d){return d===59||d===0||!Oh(d)}function Mh(d){return d===59||d===0||!tu(d)}function kd(d){return d!==125}function wd(d,h){return df(d)===df(h)}function df(d){return d>=97&&d<=122?d-97+65:d}function pc(d){return tu(d)||rl(d)||d===95}function pf(d){return d!==59&&yn(d)}function gr(d){let h=[],b;for(let C=0;C<d.length;C++){let A=d[C];b&&b.type===5&&A.type===5||b&&b.type===16&&A.type===16?(b.parts[0]+=A.parts[0],b.sourceSpan.end=A.sourceSpan.end):(b=A,h.push(b))}return h}var Dd=class GD{constructor(h,b){if(h instanceof GD){this.file=h.file,this.input=h.input,this.end=h.end;let C=h.state;this.state={peek:C.peek,offset:C.offset,line:C.line,column:C.column}}else{if(!b)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=h,this.input=h.content,this.end=b.endPos,this.state={peek:-1,offset:b.startPos,line:b.startLine,column:b.startCol}}}clone(){return new GD(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(h){return this.state.offset-h.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(h,b){h=h||this;let C=h;if(b)for(;this.diff(h)>0&&b.indexOf(h.peek())!==-1;)C===h&&(h=h.clone()),h.advance();let A=this.locationFromCursor(h),I=this.locationFromCursor(this),J=C!==h?this.locationFromCursor(C):A;return new tn(A,I,J)}getChars(h){return this.input.substring(h.state.offset,this.state.offset)}charAt(h){return this.input.charCodeAt(h)}advanceState(h){if(h.offset>=this.end)throw this.state=h,new ts('Unexpected character "EOF"',this);let b=this.charAt(h.offset);b===10?(h.line++,h.column=0):nu(b)||h.column++,h.offset++,this.updatePeek(h)}updatePeek(h){h.peek=h.offset>=this.end?0:this.charAt(h.offset)}locationFromCursor(h){return new ec(h.file,h.state.offset,h.state.line,h.state.column)}},Sd=class QD extends Dd{constructor(h,b){h instanceof QD?(super(h),this.internalState={...h.internalState}):(super(h,b),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new QD(this)}getChars(h){let b=h.clone(),C="";for(;b.internalState.offset<this.internalState.offset;)C+=String.fromCodePoint(b.peek()),b.advance();return C}processEscapeSequence(){let h=()=>this.internalState.peek;if(h()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),h()===110)this.state.peek=10;else if(h()===114)this.state.peek=13;else if(h()===118)this.state.peek=11;else if(h()===116)this.state.peek=9;else if(h()===98)this.state.peek=8;else if(h()===102)this.state.peek=12;else if(h()===117)if(this.advanceState(this.internalState),h()===123){this.advanceState(this.internalState);let b=this.clone(),C=0;for(;h()!==125;)this.advanceState(this.internalState),C++;this.state.peek=this.decodeHexDigits(b,C)}else{let b=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(b,4)}else if(h()===120){this.advanceState(this.internalState);let b=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(b,2)}else if(Cs(h())){let b="",C=0,A=this.clone();for(;Cs(h())&&C<3;)A=this.clone(),b+=String.fromCodePoint(h()),this.advanceState(this.internalState),C++;this.state.peek=parseInt(b,8),this.internalState=A.internalState}else nu(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(h,b){let C=this.input.slice(h.internalState.offset,h.internalState.offset+b),A=parseInt(C,16);if(isNaN(A))throw h.state=h.internalState,new ts("Invalid hexadecimal escape sequence",h);return A}},ts=class{constructor(d,h){this.msg=d,this.cursor=h}},dr=class WF extends nf{static create(h,b,C){return new WF(h,b,C)}constructor(h,b,C){super(b,C),this.elementName=h}},zh=class{constructor(d,h){this.rootNodes=d,this.errors=h}},Cd=class{constructor(d){this.getTagDefinition=d}parse(d,h,b,C=!1,A){let I=ze=>(Qt,...xn)=>ze(Qt.toLowerCase(),...xn),J=C?this.getTagDefinition:I(this.getTagDefinition),ke=ze=>J(ze).getContentType(),Qe=C?A:I(A),nt=Ni(d,h,A?(ze,Qt,xn,nr)=>{let Hn=Qe(ze,Qt,xn,nr);return Hn!==void 0?Hn:ke(ze)}:ke,b),st=b&&b.canSelfClose||!1,De=b&&b.allowHtmComponentClosingTags||!1,Tt=new lu(nt.tokens,J,st,De,C);return Tt.build(),new zh(Tt.rootNodes,nt.errors.concat(Tt.errors))}},lu=class VF{constructor(h,b,C,A,I){this.tokens=h,this.getTagDefinition=b,this.canSelfClose=C,this.allowHtmComponentClosingTags=A,this.isTagNameCaseSensitive=I,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 h of this._containerStack)h instanceof ol&&this.errors.push(dr.create(h.name,h.sourceSpan,`Unclosed block "${h.name}"`))}_advance(){let h=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],h}_advanceIf(h){return this._peek.type===h?this._advance():null}_consumeCdata(h){let b=this._advance(),C=this._getText(b),A=this._advanceIf(13);this._addToParent(new Ma(C,new tn(h.sourceSpan.start,(A||b).sourceSpan.end),[b]))}_consumeComment(h){let b=this._advanceIf(7),C=this._advanceIf(11),A=b!=null?b.parts[0].trim():null,I=C==null?h.sourceSpan:new tn(h.sourceSpan.start,C.sourceSpan.end,h.sourceSpan.fullStart);this._addToParent(new cc(A,I))}_consumeDocType(h){let b=this._advanceIf(7),C=this._advanceIf(19),A=b!=null?b.parts[0].trim():null,I=new tn(h.sourceSpan.start,(C||b||h).sourceSpan.end);this._addToParent(new bd(A,I))}_consumeExpansion(h){let b=this._advance(),C=this._advance(),A=[];for(;this._peek.type===21;){let J=this._parseExpansionCase();if(!J)return;A.push(J)}if(this._peek.type!==24){this.errors.push(dr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let I=new tn(h.sourceSpan.start,this._peek.sourceSpan.end,h.sourceSpan.fullStart);this._addToParent(new $i(b.parts[0],C.parts[0],A,I,b.sourceSpan)),this._advance()}_parseExpansionCase(){let h=this._advance();if(this._peek.type!==22)return this.errors.push(dr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let b=this._advance(),C=this._collectExpansionExpTokens(b);if(!C)return null;let A=this._advance();C.push({type:34,parts:[],sourceSpan:A.sourceSpan});let I=new VF(C,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(I.build(),I.errors.length>0)return this.errors=this.errors.concat(I.errors),null;let J=new tn(h.sourceSpan.start,A.sourceSpan.end,h.sourceSpan.fullStart),ke=new tn(b.sourceSpan.start,A.sourceSpan.end,b.sourceSpan.fullStart);return new cr(h.parts[0],I.rootNodes,J,h.sourceSpan,ke)}_collectExpansionExpTokens(h){let b=[],C=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&C.push(this._peek.type),this._peek.type===23)if(ff(C,22)){if(C.pop(),C.length===0)return b}else return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(ff(C,20))C.pop();else return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;b.push(this._advance())}}_getText(h){let b=h.parts[0];if(b.length>0&&b[0]==`
|
|
1161
|
+
`,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:""},Ua="";su.ngsp=Ua;var Fs=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Ha(d,h){if(h!=null&&!(Array.isArray(h)&&h.length==2))throw new Error(`Expected '${d}' to be an array, [start, end].`);if(h!=null){let b=h[0],C=h[1];Fs.forEach(A=>{if(A.test(b)||A.test(C))throw new Error(`['${b}', '${C}'] contains unusable interpolation symbol.`)})}}var sl=class WF{static fromArray(h){return h?(Ha("interpolation",h),new WF(h[0],h[1])):ll}constructor(h,b){this.start=h,this.end=b}},ll=new sl("{{","}}"),ca=class extends nf{constructor(d,h,b){super(b,d),this.tokenType=h}},da=class{constructor(d,h,b){this.tokens=d,this.errors=h,this.nonNormalizedIcuExpressions=b}};function Ni(d,h,b,C={}){let A=new pi(new tf(d,h),b,C);return A.tokenize(),new da(gr(A.tokens),A.errors,A.nonNormalizedIcuExpressions)}var Xr=/\r\n?/g;function qa(d){return`Unexpected character "${d===0?"EOF":String.fromCharCode(d)}"`}function Wa(d){return`Unknown entity "${d}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function uf(d,h){return`Unable to parse entity "${h}" - ${d} character reference entities must end with ";"`}var ul;(function(d){d.HEX="hexadecimal",d.DEC="decimal"})(ul||(ul={}));var dc=class{constructor(d){this.error=d}},pi=class{constructor(d,h,b){this._getTagContentType=h,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=b.tokenizeExpansionForms||!1,this._interpolationConfig=b.interpolationConfig||ll,this._leadingTriviaCodePoints=b.leadingTriviaChars&&b.leadingTriviaChars.map(A=>A.codePointAt(0)||0),this._canSelfClose=b.canSelfClose||!1,this._allowHtmComponentClosingTags=b.allowHtmComponentClosingTags||!1;let C=b.range||{endPos:d.content.length,startPos:0,startLine:0,startCol:0};this._cursor=b.escapedString?new Sd(d,C):new Dd(d,C),this._preserveLineEndings=b.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=b.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=b.tokenizeBlocks??!0,this._tokenizeLet=b.tokenizeLet??!0;try{this._cursor.init()}catch(A){this.handleError(A)}}_processCarriageReturns(d){return this._preserveLineEndings?d:d.replace(Xr,`
|
|
1162
|
+
`)}tokenize(){for(;this._cursor.peek()!==0;){let d=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(d):this._attemptStr("--")?this._consumeComment(d):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(d):this._consumeBogusComment(d);else if(this._attemptCharCode(47))this._consumeTagClose(d);else{let h=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=h,this._consumeBogusComment(d)):this._consumeTagOpen(d)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(d):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(d):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(d):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(h){this.handleError(h)}}this._beginToken(34),this._endToken([])}_getBlockName(){let d=!1,h=this._cursor.clone();return this._attemptCharCodeUntilFn(b=>eu(b)?!d:pc(b)?(d=!0,!1):!0),this._cursor.getChars(h).trim()}_consumeBlockStart(d){this._beginToken(25,d);let h=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(yn),this._attemptCharCode(41))this._attemptCharCodeUntilFn(yn);else{h.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):h.type=29}_consumeBlockEnd(d){this._beginToken(27,d),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(pf);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let d=this._cursor.clone(),h=null,b=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||h!==null;){let C=this._cursor.peek();if(C===92)this._cursor.advance();else if(C===h)h=null;else if(h===null&&Ju(C))h=C;else if(C===40&&h===null)b++;else if(C===41&&h===null){if(b===0)break;b>0&&b--}this._cursor.advance()}this._endToken([this._cursor.getChars(d)]),this._attemptCharCodeUntilFn(pf)}}_consumeLetDeclaration(d){if(this._beginToken(30,d),eu(this._cursor.peek()))this._attemptCharCodeUntilFn(yn);else{let b=this._endToken([this._cursor.getChars(d)]);b.type=33;return}let h=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(yn),!this._attemptCharCode(61)){h.type=33;return}this._attemptCharCodeUntilFn(b=>yn(b)&&!nu(b)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(h.type=33,h.sourceSpan=this._cursor.getSpan(d))}_getLetDeclarationName(){let d=this._cursor.clone(),h=!1;return this._attemptCharCodeUntilFn(b=>tu(b)||b==36||b===95||h&&rl(b)?(h=!0,!1):!0),this._cursor.getChars(d).trim()}_consumeLetDeclarationValue(){let d=this._cursor.clone();for(this._beginToken(31,d);this._cursor.peek()!==0;){let h=this._cursor.peek();if(h===59)break;Ju(h)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(b=>b===92?(this._cursor.advance(),!1):b===h)),this._cursor.advance()}this._endToken([this._cursor.getChars(d)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(kd(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(d,h=this._cursor.clone()){this._currentTokenStart=h,this._currentTokenType=d}_endToken(d,h){if(this._currentTokenStart===null)throw new ca("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(h));if(this._currentTokenType===null)throw new ca("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let b={type:this._currentTokenType,parts:d,sourceSpan:(h??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(b),this._currentTokenStart=null,this._currentTokenType=null,b}_createError(d,h){this._isInExpansionForm()&&(d+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let b=new ca(d,this._currentTokenType,h);return this._currentTokenStart=null,this._currentTokenType=null,new dc(b)}handleError(d){if(d instanceof ts&&(d=this._createError(d.msg,this._cursor.getSpan(d.cursor))),d instanceof dc)this.errors.push(d.error);else throw d}_attemptCharCode(d){return this._cursor.peek()===d?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(d){return wd(this._cursor.peek(),d)?(this._cursor.advance(),!0):!1}_requireCharCode(d){let h=this._cursor.clone();if(!this._attemptCharCode(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_attemptStr(d){let h=d.length;if(this._cursor.charsLeft()<h)return!1;let b=this._cursor.clone();for(let C=0;C<h;C++)if(!this._attemptCharCode(d.charCodeAt(C)))return this._cursor=b,!1;return!0}_attemptStrCaseInsensitive(d){for(let h=0;h<d.length;h++)if(!this._attemptCharCodeCaseInsensitive(d.charCodeAt(h)))return!1;return!0}_requireStr(d){let h=this._cursor.clone();if(!this._attemptStr(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_requireStrCaseInsensitive(d){let h=this._cursor.clone();if(!this._attemptStrCaseInsensitive(d))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(h))}_attemptCharCodeUntilFn(d){for(;!d(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(d,h){let b=this._cursor.clone();if(this._attemptCharCodeUntilFn(d),this._cursor.diff(b)<h)throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(b))}_attemptUntilChar(d){for(;this._cursor.peek()!==d;)this._cursor.advance()}_readChar(){let d=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),d}_consumeEntity(d){this._beginToken(9);let h=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let b=this._attemptCharCode(120)||this._attemptCharCode(88),C=this._cursor.clone();if(this._attemptCharCodeUntilFn(cf),this._cursor.peek()!=59){this._cursor.advance();let I=b?ul.HEX:ul.DEC;throw this._createError(uf(I,this._cursor.getChars(h)),this._cursor.getSpan())}let A=this._cursor.getChars(C);this._cursor.advance();try{let I=parseInt(A,b?16:10);this._endToken([String.fromCharCode(I),this._cursor.getChars(h)])}catch{throw this._createError(Wa(this._cursor.getChars(h)),this._cursor.getSpan())}}else{let b=this._cursor.clone();if(this._attemptCharCodeUntilFn(Mh),this._cursor.peek()!=59)this._beginToken(d,h),this._cursor=b,this._endToken(["&"]);else{let C=this._cursor.getChars(b);this._cursor.advance();let A=su[C];if(!A)throw this._createError(Wa(C),this._cursor.getSpan(h));this._endToken([A,`&${C};`])}}}_consumeRawText(d,h){this._beginToken(d?6:7);let b=[];for(;;){let C=this._cursor.clone(),A=h();if(this._cursor=C,A)break;d&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(b.join(""))]),b.length=0,this._consumeEntity(6),this._beginToken(6)):b.push(this._readChar())}this._endToken([this._processCarriageReturns(b.join(""))])}_consumeComment(d){this._beginToken(10,d),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(d){this._beginToken(10,d),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(d){this._beginToken(12,d),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(d){this._beginToken(18,d),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let d=this._cursor.clone(),h="";for(;this._cursor.peek()!==58&&!Ri(this._cursor.peek());)this._cursor.advance();let b;this._cursor.peek()===58?(h=this._cursor.getChars(d),this._cursor.advance(),b=this._cursor.clone()):b=d,this._requireCharCodeUntilFn(Qn,h===""?0:1);let C=this._cursor.getChars(b);return[h,C]}_consumeTagOpen(d){let h,b,C,A=[];try{if(!tu(this._cursor.peek()))throw this._createError(qa(this._cursor.peek()),this._cursor.getSpan(d));for(C=this._consumeTagOpenStart(d),b=C.parts[0],h=C.parts[1],this._attemptCharCodeUntilFn(yn);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[J,ke]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(yn),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(yn);let Qe=this._consumeAttributeValue();A.push({prefix:J,name:ke,value:Qe})}else A.push({prefix:J,name:ke});this._attemptCharCodeUntilFn(yn)}this._consumeTagOpenEnd()}catch(J){if(J instanceof dc){C?C.type=4:(this._beginToken(5,d),this._endToken(["<"]));return}throw J}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let I=this._getTagContentType(h,b,this._fullNameStack.length>0,A);this._handleFullNameStackForTagOpen(b,h),I===di.RAW_TEXT?this._consumeRawTextWithTagClose(b,h,!1):I===di.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,h,!0)}_consumeRawTextWithTagClose(d,h,b){this._consumeRawText(b,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(yn),!this._attemptStrCaseInsensitive(d?`${d}:${h}`:h))?!1:(this._attemptCharCodeUntilFn(yn),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(C=>C===62,3),this._cursor.advance(),this._endToken([d,h]),this._handleFullNameStackForTagClose(d,h)}_consumeTagOpenStart(d){this._beginToken(0,d);let h=this._consumePrefixAndName();return this._endToken(h)}_consumeAttributeName(){let d=this._cursor.peek();if(d===39||d===34)throw this._createError(qa(d),this._cursor.getSpan());this._beginToken(14);let h=this._consumePrefixAndName();return this._endToken(h),h}_consumeAttributeValue(){let d;if(this._cursor.peek()===39||this._cursor.peek()===34){let h=this._cursor.peek();this._consumeQuote(h);let b=()=>this._cursor.peek()===h;d=this._consumeWithInterpolation(16,17,b,b),this._consumeQuote(h)}else{let h=()=>Qn(this._cursor.peek());d=this._consumeWithInterpolation(16,17,h,h)}return d}_consumeQuote(d){this._beginToken(15),this._requireCharCode(d),this._endToken([String.fromCodePoint(d)])}_consumeTagOpenEnd(){let d=this._attemptCharCode(47)?2:1;this._beginToken(d),this._requireCharCode(62),this._endToken([])}_consumeTagClose(d){if(this._beginToken(3,d),this._attemptCharCodeUntilFn(yn),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(yn),this._requireCharCode(62),this._endToken([]);else{let[h,b]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(yn),this._requireCharCode(62),this._endToken([h,b]),this._handleFullNameStackForTagClose(h,b)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let d=this._readUntil(44),h=this._processCarriageReturns(d);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([h]);else{let C=this._endToken([d]);h!==d&&this.nonNormalizedIcuExpressions.push(C)}this._requireCharCode(44),this._attemptCharCodeUntilFn(yn),this._beginToken(7);let b=this._readUntil(44);this._endToken([b]),this._requireCharCode(44),this._attemptCharCodeUntilFn(yn)}_consumeExpansionCaseStart(){this._beginToken(21);let d=this._readUntil(123).trim();this._endToken([d]),this._attemptCharCodeUntilFn(yn),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(yn),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(yn),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(d,h,b,C){this._beginToken(d);let A=[];for(;!b();){let J=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(A.join(""))],J),A.length=0,this._consumeInterpolation(h,J,C),this._beginToken(d)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(A.join(""))]),A.length=0,this._consumeEntity(d),this._beginToken(d)):A.push(this._readChar())}this._inInterpolation=!1;let I=this._processCarriageReturns(A.join(""));return this._endToken([I]),I}_consumeInterpolation(d,h,b){let C=[];this._beginToken(d,h),C.push(this._interpolationConfig.start);let A=this._cursor.clone(),I=null,J=!1;for(;this._cursor.peek()!==0&&(b===null||!b());){let ke=this._cursor.clone();if(this._isTagStart()){this._cursor=ke,C.push(this._getProcessedChars(A,ke)),this._endToken(C);return}if(I===null)if(this._attemptStr(this._interpolationConfig.end)){C.push(this._getProcessedChars(A,ke)),C.push(this._interpolationConfig.end),this._endToken(C);return}else this._attemptStr("//")&&(J=!0);let Qe=this._cursor.peek();this._cursor.advance(),Qe===92?this._cursor.advance():Qe===I?I=null:!J&&I===null&&Ju(Qe)&&(I=Qe)}C.push(this._getProcessedChars(A,this._cursor)),this._endToken(C)}_getProcessedChars(d,h){return this._processCarriageReturns(h.getChars(d))}_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 d=this._cursor.clone();d.advance();let h=d.peek();if(97<=h&&h<=122||65<=h&&h<=90||h===47||h===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let d=this._cursor.clone();if(d.advance(),pc(d.peek()))return!0}return!1}_readUntil(d){let h=this._cursor.clone();return this._attemptUntilChar(d),this._cursor.getChars(h)}_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 d=this._cursor.clone(),h=this._attemptStr(this._interpolationConfig.start);return this._cursor=d,!h}return!0}_handleFullNameStackForTagOpen(d,h){let b=Ts(d,h);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===b)&&this._fullNameStack.push(b)}_handleFullNameStackForTagClose(d,h){let b=Ts(d,h);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===b&&this._fullNameStack.pop()}};function yn(d){return!eu(d)||d===0}function Qn(d){return eu(d)||d===62||d===60||d===47||d===39||d===34||d===61||d===0}function Ri(d){return(d<97||122<d)&&(d<65||90<d)&&(d<48||d>57)}function cf(d){return d===59||d===0||!Oh(d)}function Mh(d){return d===59||d===0||!tu(d)}function kd(d){return d!==125}function wd(d,h){return df(d)===df(h)}function df(d){return d>=97&&d<=122?d-97+65:d}function pc(d){return tu(d)||rl(d)||d===95}function pf(d){return d!==59&&yn(d)}function gr(d){let h=[],b;for(let C=0;C<d.length;C++){let A=d[C];b&&b.type===5&&A.type===5||b&&b.type===16&&A.type===16?(b.parts[0]+=A.parts[0],b.sourceSpan.end=A.sourceSpan.end):(b=A,h.push(b))}return h}var Dd=class GD{constructor(h,b){if(h instanceof GD){this.file=h.file,this.input=h.input,this.end=h.end;let C=h.state;this.state={peek:C.peek,offset:C.offset,line:C.line,column:C.column}}else{if(!b)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=h,this.input=h.content,this.end=b.endPos,this.state={peek:-1,offset:b.startPos,line:b.startLine,column:b.startCol}}}clone(){return new GD(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(h){return this.state.offset-h.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(h,b){h=h||this;let C=h;if(b)for(;this.diff(h)>0&&b.indexOf(h.peek())!==-1;)C===h&&(h=h.clone()),h.advance();let A=this.locationFromCursor(h),I=this.locationFromCursor(this),J=C!==h?this.locationFromCursor(C):A;return new tn(A,I,J)}getChars(h){return this.input.substring(h.state.offset,this.state.offset)}charAt(h){return this.input.charCodeAt(h)}advanceState(h){if(h.offset>=this.end)throw this.state=h,new ts('Unexpected character "EOF"',this);let b=this.charAt(h.offset);b===10?(h.line++,h.column=0):nu(b)||h.column++,h.offset++,this.updatePeek(h)}updatePeek(h){h.peek=h.offset>=this.end?0:this.charAt(h.offset)}locationFromCursor(h){return new ec(h.file,h.state.offset,h.state.line,h.state.column)}},Sd=class QD extends Dd{constructor(h,b){h instanceof QD?(super(h),this.internalState={...h.internalState}):(super(h,b),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new QD(this)}getChars(h){let b=h.clone(),C="";for(;b.internalState.offset<this.internalState.offset;)C+=String.fromCodePoint(b.peek()),b.advance();return C}processEscapeSequence(){let h=()=>this.internalState.peek;if(h()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),h()===110)this.state.peek=10;else if(h()===114)this.state.peek=13;else if(h()===118)this.state.peek=11;else if(h()===116)this.state.peek=9;else if(h()===98)this.state.peek=8;else if(h()===102)this.state.peek=12;else if(h()===117)if(this.advanceState(this.internalState),h()===123){this.advanceState(this.internalState);let b=this.clone(),C=0;for(;h()!==125;)this.advanceState(this.internalState),C++;this.state.peek=this.decodeHexDigits(b,C)}else{let b=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(b,4)}else if(h()===120){this.advanceState(this.internalState);let b=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(b,2)}else if(Cs(h())){let b="",C=0,A=this.clone();for(;Cs(h())&&C<3;)A=this.clone(),b+=String.fromCodePoint(h()),this.advanceState(this.internalState),C++;this.state.peek=parseInt(b,8),this.internalState=A.internalState}else nu(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(h,b){let C=this.input.slice(h.internalState.offset,h.internalState.offset+b),A=parseInt(C,16);if(isNaN(A))throw h.state=h.internalState,new ts("Invalid hexadecimal escape sequence",h);return A}},ts=class{constructor(d,h){this.msg=d,this.cursor=h}},dr=class VF extends nf{static create(h,b,C){return new VF(h,b,C)}constructor(h,b,C){super(b,C),this.elementName=h}},zh=class{constructor(d,h){this.rootNodes=d,this.errors=h}},Cd=class{constructor(d){this.getTagDefinition=d}parse(d,h,b,C=!1,A){let I=ze=>(Qt,...xn)=>ze(Qt.toLowerCase(),...xn),J=C?this.getTagDefinition:I(this.getTagDefinition),ke=ze=>J(ze).getContentType(),Qe=C?A:I(A),nt=Ni(d,h,A?(ze,Qt,xn,nr)=>{let Hn=Qe(ze,Qt,xn,nr);return Hn!==void 0?Hn:ke(ze)}:ke,b),st=b&&b.canSelfClose||!1,De=b&&b.allowHtmComponentClosingTags||!1,Tt=new lu(nt.tokens,J,st,De,C);return Tt.build(),new zh(Tt.rootNodes,nt.errors.concat(Tt.errors))}},lu=class YF{constructor(h,b,C,A,I){this.tokens=h,this.getTagDefinition=b,this.canSelfClose=C,this.allowHtmComponentClosingTags=A,this.isTagNameCaseSensitive=I,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 h of this._containerStack)h instanceof ol&&this.errors.push(dr.create(h.name,h.sourceSpan,`Unclosed block "${h.name}"`))}_advance(){let h=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],h}_advanceIf(h){return this._peek.type===h?this._advance():null}_consumeCdata(h){let b=this._advance(),C=this._getText(b),A=this._advanceIf(13);this._addToParent(new Ma(C,new tn(h.sourceSpan.start,(A||b).sourceSpan.end),[b]))}_consumeComment(h){let b=this._advanceIf(7),C=this._advanceIf(11),A=b!=null?b.parts[0].trim():null,I=C==null?h.sourceSpan:new tn(h.sourceSpan.start,C.sourceSpan.end,h.sourceSpan.fullStart);this._addToParent(new cc(A,I))}_consumeDocType(h){let b=this._advanceIf(7),C=this._advanceIf(19),A=b!=null?b.parts[0].trim():null,I=new tn(h.sourceSpan.start,(C||b||h).sourceSpan.end);this._addToParent(new bd(A,I))}_consumeExpansion(h){let b=this._advance(),C=this._advance(),A=[];for(;this._peek.type===21;){let J=this._parseExpansionCase();if(!J)return;A.push(J)}if(this._peek.type!==24){this.errors.push(dr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let I=new tn(h.sourceSpan.start,this._peek.sourceSpan.end,h.sourceSpan.fullStart);this._addToParent(new $i(b.parts[0],C.parts[0],A,I,b.sourceSpan)),this._advance()}_parseExpansionCase(){let h=this._advance();if(this._peek.type!==22)return this.errors.push(dr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let b=this._advance(),C=this._collectExpansionExpTokens(b);if(!C)return null;let A=this._advance();C.push({type:34,parts:[],sourceSpan:A.sourceSpan});let I=new YF(C,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(I.build(),I.errors.length>0)return this.errors=this.errors.concat(I.errors),null;let J=new tn(h.sourceSpan.start,A.sourceSpan.end,h.sourceSpan.fullStart),ke=new tn(b.sourceSpan.start,A.sourceSpan.end,b.sourceSpan.fullStart);return new cr(h.parts[0],I.rootNodes,J,h.sourceSpan,ke)}_collectExpansionExpTokens(h){let b=[],C=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&C.push(this._peek.type),this._peek.type===23)if(ff(C,22)){if(C.pop(),C.length===0)return b}else return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(ff(C,20))C.pop();else return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(dr.create(null,h.sourceSpan,"Invalid ICU message. Missing '}'.")),null;b.push(this._advance())}}_getText(h){let b=h.parts[0];if(b.length>0&&b[0]==`
|
|
1162
1163
|
`){let C=this._getClosestParentElement();C!=null&&C.children.length==0&&this.getTagDefinition(C.name).ignoreFirstLf&&(b=b.substring(1))}return b}_consumeText(h){let b=[h],C=h.sourceSpan,A=h.parts[0];if(A.length>0&&A[0]===`
|
|
1163
1164
|
`){let I=this._getContainer();I!=null&&I.children.length===0&&this.getTagDefinition(I.name).ignoreFirstLf&&(A=A.substring(1),b[0]={type:h.type,sourceSpan:h.sourceSpan,parts:[A]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)h=this._advance(),b.push(h),h.type===8?A+=h.parts.join("").replace(/&([^;]+);/g,To):h.type===9?A+=h.parts[0]:A+=h.parts.join("");if(A.length>0){let I=h.sourceSpan;this._addToParent(new kr(A,new tn(C.start,I.end,C.fullStart,C.details),b))}}_closeVoidElement(){let h=this._getContainer();h instanceof Ca&&this.getTagDefinition(h.name).isVoid&&this._containerStack.pop()}_consumeStartTag(h){let[b,C]=h.parts,A=[];for(;this._peek.type===14;)A.push(this._consumeAttr(this._advance()));let I=this._getElementFullName(b,C,this._getClosestParentElement()),J=!1;if(this._peek.type===2){this._advance(),J=!0;let ze=this.getTagDefinition(I);this.canSelfClose||ze.canSelfClose||Ia(I)!==null||ze.isVoid||this.errors.push(dr.create(I,h.sourceSpan,`Only void, custom and foreign elements can be self closed "${h.parts[1]}"`))}else this._peek.type===1&&(this._advance(),J=!1);let ke=this._peek.sourceSpan.fullStart,Qe=new tn(h.sourceSpan.start,ke,h.sourceSpan.fullStart),nt=new tn(h.sourceSpan.start,ke,h.sourceSpan.fullStart),st=new tn(h.sourceSpan.start.moveBy(1),h.sourceSpan.end),De=new Ca(I,A,[],Qe,nt,void 0,st),Tt=this._getContainer();this._pushContainer(De,Tt instanceof Ca&&this.getTagDefinition(Tt.name).isClosedByChild(De.name)),J?this._popContainer(I,Ca,Qe):h.type===4&&(this._popContainer(I,Ca,null),this.errors.push(dr.create(I,Qe,`Opening tag "${I}" not terminated.`)))}_pushContainer(h,b){b&&this._containerStack.pop(),this._addToParent(h),this._containerStack.push(h)}_consumeEndTag(h){let b=this.allowHtmComponentClosingTags&&h.parts.length===0?null:this._getElementFullName(h.parts[0],h.parts[1],this._getClosestParentElement());if(b&&this.getTagDefinition(b).isVoid)this.errors.push(dr.create(b,h.sourceSpan,`Void elements do not have end tags "${h.parts[1]}"`));else if(!this._popContainer(b,Ca,h.sourceSpan)){let C=`Unexpected closing tag "${b}". 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(dr.create(b,h.sourceSpan,C))}}_popContainer(h,b,C){let A=!1;for(let I=this._containerStack.length-1;I>=0;I--){let J=this._containerStack[I];if(Ia(J.name)?J.name===h:(h==null||J.name.toLowerCase()===h.toLowerCase())&&J instanceof b)return J.endSourceSpan=C,J.sourceSpan.end=C!==null?C.end:J.sourceSpan.end,this._containerStack.splice(I,this._containerStack.length-I),!A;(J instanceof ol||J instanceof Ca&&!this.getTagDefinition(J.name).closedByParent)&&(A=!0)}return!1}_consumeAttr(h){let b=Ts(h.parts[0],h.parts[1]),C=h.sourceSpan.end,A;this._peek.type===15&&(A=this._advance());let I="",J=[],ke,Qe;if(this._peek.type===16)for(ke=this._peek.sourceSpan,Qe=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let st=this._advance();J.push(st),st.type===17?I+=st.parts.join("").replace(/&([^;]+);/g,To):st.type===9?I+=st.parts[0]:I+=st.parts.join(""),Qe=C=st.sourceSpan.end}this._peek.type===15&&(Qe=C=this._advance().sourceSpan.end);let nt=ke&&Qe&&new tn((A==null?void 0:A.sourceSpan.start)??ke.start,Qe,(A==null?void 0:A.sourceSpan.fullStart)??ke.fullStart);return new Pi(b,I,new tn(h.sourceSpan.start,C,h.sourceSpan.fullStart),h.sourceSpan,nt,J.length>0?J:void 0,void 0)}_consumeBlockOpen(h){let b=[];for(;this._peek.type===28;){let ke=this._advance();b.push(new za(ke.parts[0],ke.sourceSpan))}this._peek.type===26&&this._advance();let C=this._peek.sourceSpan.fullStart,A=new tn(h.sourceSpan.start,C,h.sourceSpan.fullStart),I=new tn(h.sourceSpan.start,C,h.sourceSpan.fullStart),J=new ol(h.parts[0],b,[],A,h.sourceSpan,I);this._pushContainer(J,!1)}_consumeBlockClose(h){this._popContainer(null,ol,h.sourceSpan)||this.errors.push(dr.create(null,h.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(h){let b=[];for(;this._peek.type===28;){let ke=this._advance();b.push(new za(ke.parts[0],ke.sourceSpan))}let C=this._peek.sourceSpan.fullStart,A=new tn(h.sourceSpan.start,C,h.sourceSpan.fullStart),I=new tn(h.sourceSpan.start,C,h.sourceSpan.fullStart),J=new ol(h.parts[0],b,[],A,h.sourceSpan,I);this._pushContainer(J,!1),this._popContainer(null,ol,null),this.errors.push(dr.create(h.parts[0],A,`Incomplete block "${h.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(h){let b=h.parts[0],C,A;if(this._peek.type!==31){this.errors.push(dr.create(h.parts[0],h.sourceSpan,`Invalid @let declaration "${b}". Declaration must have a value.`));return}else C=this._advance();if(this._peek.type!==32){this.errors.push(dr.create(h.parts[0],h.sourceSpan,`Unterminated @let declaration "${b}". Declaration must be terminated with a semicolon.`));return}else A=this._advance();let I=A.sourceSpan.fullStart,J=new tn(h.sourceSpan.start,I,h.sourceSpan.fullStart),ke=h.sourceSpan.toString().lastIndexOf(b),Qe=h.sourceSpan.start.moveBy(ke),nt=new tn(Qe,h.sourceSpan.end),st=new Lr(b,C.parts[0],J,nt,C.sourceSpan);this._addToParent(st)}_consumeIncompleteLet(h){let b=h.parts[0]??"",C=b?` "${b}"`:"";if(b.length>0){let A=h.sourceSpan.toString().lastIndexOf(b),I=h.sourceSpan.start.moveBy(A),J=new tn(I,h.sourceSpan.end),ke=new tn(h.sourceSpan.start,h.sourceSpan.start.moveBy(0)),Qe=new Lr(b,"",h.sourceSpan,J,ke);this._addToParent(Qe)}this.errors.push(dr.create(h.parts[0],h.sourceSpan,`Incomplete @let declaration${C}. @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 h=this._containerStack.length-1;h>-1;h--)if(this._containerStack[h]instanceof Ca)return this._containerStack[h];return null}_addToParent(h){let b=this._getContainer();b===null?this.rootNodes.push(h):b.children.push(h)}_getElementFullName(h,b,C){if(h===""&&(h=this.getTagDefinition(b).implicitNamespacePrefix||"",h===""&&C!=null)){let A=iu(C.name)[1];this.getTagDefinition(A).preventNamespaceInheritance||(h=Ia(C.name))}return Ts(h,b)}};function ff(d,h){return d.length>0&&d[d.length-1]===h}function To(d,h){return su[h]!==void 0?su[h]||d:/^#x[a-f0-9]+$/i.test(h)?String.fromCodePoint(parseInt(h.slice(2),16)):/^#\d+$/.test(h)?String.fromCodePoint(parseInt(h.slice(1),10)):d}var Br=class extends Cd{constructor(){super(Fi)}parse(d,h,b,C=!1,A){return super.parse(d,h,b,C,A)}},Ke=null,Oi=()=>(Ke||(Ke=new Br),Ke);function Va(d,h={}){let{canSelfClose:b=!1,allowHtmComponentClosingTags:C=!1,isTagNameCaseSensitive:A=!1,getTagContentType:I,tokenizeAngularBlocks:J=!1,tokenizeAngularLetDeclaration:ke=!1}=h;return Oi().parse(d,"angular-html-parser",{tokenizeExpansionForms:J,interpolationConfig:void 0,canSelfClose:b,allowHtmComponentClosingTags:C,tokenizeBlocks:J,tokenizeLet:ke},A,I)}function hf(d,h){let b=new SyntaxError(d+" ("+h.loc.start.line+":"+h.loc.start.column+")");return Object.assign(b,h)}var mf=hf,Ao=3;function Li(d){let h=d.slice(0,Ao);if(h!=="---"&&h!=="+++")return;let b=d.indexOf(`
|
|
1164
1165
|
`,Ao);if(b===-1)return;let C=d.slice(Ao,b).trim(),A=d.indexOf(`
|
|
1165
1166
|
${h}`,b),I=C;if(I||(I=h==="+++"?"toml":"yaml"),A===-1&&h==="---"&&I==="yaml"&&(A=d.indexOf(`
|
|
1166
|
-
...`,b)),A===-1)return;let J=A+1+Ao,ke=d.charAt(J+1);if(!/\s?/u.test(ke))return;let Qe=d.slice(0,J);return{type:"front-matter",language:I,explicitLanguage:C,value:d.slice(b+1,A),startDelimiter:h,endDelimiter:Qe.slice(-Ao),raw:Qe}}function cl(d){let h=Li(d);if(!h)return{content:d};let{raw:b}=h;return{frontMatter:h,content:H(!1,b,/[^\n]/gu," ")+d.slice(b.length)}}var $r=cl,fc={attrs:!0,children:!0,cases:!0,expression:!0},Fo=new Set(["parent"]),$s=class vy{constructor(h={}){for(let b of new Set([...Fo,...Object.keys(h)]))this.setProperty(b,h[b])}setProperty(h,b){if(this[h]!==b){if(h in fc&&(b=b.map(C=>this.createChild(C))),!Fo.has(h)){this[h]=b;return}Object.defineProperty(this,h,{value:b,enumerable:!1,configurable:!0})}}map(h){let b;for(let C in fc){let A=this[C];if(A){let I=xd(A,J=>J.map(h));b!==A&&(b||(b=new vy({parent:this.parent})),b.setProperty(C,I))}}if(b)for(let C in this)C in fc||(b[C]=this[C]);return h(b||this)}walk(h){for(let b in fc){let C=this[b];if(C)for(let A=0;A<C.length;A++)C[A].walk(h)}h(this)}createChild(h){let b=h instanceof vy?h.clone():new vy(h);return b.setProperty("parent",this),b}insertChildBefore(h,b){this.children.splice(this.children.indexOf(h),0,this.createChild(b))}removeChild(h){this.children.splice(this.children.indexOf(h),1)}replaceChild(h,b){this.children[this.children.indexOf(h)]=this.createChild(b)}clone(){return new vy(this)}get firstChild(){var h;return(h=this.children)==null?void 0:h[0]}get lastChild(){var h;return(h=this.children)==null?void 0:h[this.children.length-1]}get prev(){var h,b;return(b=(h=this.parent)==null?void 0:h.children)==null?void 0:b[this.parent.children.indexOf(this)-1]}get next(){var h,b;return(b=(h=this.parent)==null?void 0:h.children)==null?void 0:b[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(h=>[h.fullName,h.value]))}};function xd(d,h){let b=d.map(h);return b.some((C,A)=>C!==d[A])?b:d}var uu=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Ps},{regex:/^\[if([^\]]*)\]><!$/u,parse:Ed},{regex:/^<!\s*\[endif\]$/u,parse:Uh}];function Ya(d,h){if(d.value)for(let{regex:b,parse:C}of uu){let A=d.value.match(b);if(A)return C(d,h,A)}return null}function Ps(d,h,b){let[,C,A,I]=b,J=4+C.length,ke=d.sourceSpan.start.moveBy(J),Qe=ke.moveBy(I.length),[nt,st]=(()=>{try{return[!0,h(I,ke).children]}catch{return[!1,[{type:"text",value:I,sourceSpan:new tn(ke,Qe)}]]}})();return{type:"ieConditionalComment",complete:nt,children:st,condition:H(!1,A.trim(),/\s+/gu," "),sourceSpan:d.sourceSpan,startSourceSpan:new tn(d.sourceSpan.start,ke),endSourceSpan:new tn(Qe,d.sourceSpan.end)}}function Ed(d,h,b){let[,C]=b;return{type:"ieConditionalStartComment",condition:H(!1,C.trim(),/\s+/gu," "),sourceSpan:d.sourceSpan}}function Uh(d){return{type:"ieConditionalEndComment",sourceSpan:d.sourceSpan}}var cu=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"])]]),Hh=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 hc(d){if(d.type==="block"){if(d.name=H(!1,d.name.toLowerCase(),/\s+/gu," ").trim(),d.type="angularControlFlowBlock",!ld(d.parameters)){delete d.parameters;return}for(let h of d.parameters)h.type="angularControlFlowBlockParameter";d.parameters={type:"angularControlFlowBlockParameters",children:d.parameters,sourceSpan:new tn(d.parameters[0].sourceSpan.start,ar(!1,d.parameters,-1).sourceSpan.end)}}}function io(d){d.type==="letDeclaration"&&(d.type="angularLetDeclaration",d.id=d.name,d.init={type:"angularLetDeclarationInitializer",sourceSpan:new tn(d.valueSpan.start,d.valueSpan.end),value:d.value},delete d.name,delete d.value)}function du(d){(d.type==="plural"||d.type==="select")&&(d.clause=d.type,d.type="angularIcuExpression"),d.type==="expansionCase"&&(d.type="angularIcuCase")}function pu(d,h,b){let{name:C,canSelfClose:A=!0,normalizeTagName:I=!1,normalizeAttributeName:J=!1,allowHtmComponentClosingTags:ke=!1,isTagNameCaseSensitive:Qe=!1,shouldParseAsRawText:nt}=h,{rootNodes:st,errors:De}=Va(d,{canSelfClose:A,allowHtmComponentClosingTags:ke,isTagNameCaseSensitive:Qe,getTagContentType:nt?(...ht)=>nt(...ht)?di.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:C==="angular"?!0:void 0,tokenizeAngularLetDeclaration:C==="angular"?!0:void 0});if(C==="vue"){if(st.some(vr=>vr.type==="docType"&&vr.value==="html"||vr.type==="element"&&vr.name.toLowerCase()==="html"))return pu(d,Td,b);let ht,Wt=()=>ht??(ht=Va(d,{canSelfClose:A,allowHtmComponentClosingTags:ke,isTagNameCaseSensitive:Qe})),fr=vr=>Wt().rootNodes.find(({startSourceSpan:Yr})=>Yr&&Yr.start.offset===vr.startSourceSpan.start.offset)??vr;for(let[vr,Yr]of st.entries()){let{endSourceSpan:ns,startSourceSpan:Pd}=Yr;if(ns===null)De=Wt().errors,st[vr]=fr(Yr);else if(dl(Yr,b)){let gc=Wt().errors.find(Ns=>Ns.span.start.offset>Pd.start.offset&&Ns.span.start.offset<ns.end.offset);gc&&_d(gc),st[vr]=fr(Yr)}}}De.length>0&&_d(De[0]);let Tt=ht=>{let Wt=ht.name.startsWith(":")?ht.name.slice(1).split(":")[0]:null,fr=ht.nameSpan.toString(),vr=Wt!==null&&fr.startsWith(`${Wt}:`),Yr=vr?fr.slice(Wt.length+1):fr;ht.name=Yr,ht.namespace=Wt,ht.hasExplicitNamespace=vr},ze=ht=>{switch(ht.type){case"element":Tt(ht);for(let Wt of ht.attrs)Tt(Wt),Wt.valueSpan?(Wt.value=Wt.valueSpan.toString(),/["']/u.test(Wt.value[0])&&(Wt.value=Wt.value.slice(1,-1))):Wt.value=null;break;case"comment":ht.value=ht.sourceSpan.toString().slice(4,-3);break;case"text":ht.value=ht.sourceSpan.toString();break}},Qt=(ht,Wt)=>{let fr=ht.toLowerCase();return Wt(fr)?fr:ht},xn=ht=>{if(ht.type==="element"&&(I&&(!ht.namespace||ht.namespace===ht.tagDefinition.implicitNamespacePrefix||Jt(ht))&&(ht.name=Qt(ht.name,Wt=>Hh.has(Wt))),J))for(let Wt of ht.attrs)Wt.namespace||(Wt.name=Qt(Wt.name,fr=>cu.has(ht.name)&&(cu.get("*").has(fr)||cu.get(ht.name).has(fr))))},nr=ht=>{ht.sourceSpan&&ht.endSourceSpan&&(ht.sourceSpan=new tn(ht.sourceSpan.start,ht.endSourceSpan.end))},Hn=ht=>{if(ht.type==="element"){let Wt=Fi(Qe?ht.name:ht.name.toLowerCase());!ht.namespace||ht.namespace===Wt.implicitNamespacePrefix||Jt(ht)?ht.tagDefinition=Wt:ht.tagDefinition=Fi("")}};return ou(new class extends lf{visitExpansionCase(ht,Wt){C==="angular"&&this.visitChildren(Wt,fr=>{fr(ht.expression)})}visit(ht){ze(ht),Hn(ht),xn(ht),nr(ht)}},st),st}function dl(d,h){var b;if(d.type!=="element"||d.name!=="template")return!1;let C=(b=d.attrs.find(A=>A.name==="lang"))==null?void 0:b.value;return!C||si(h,{language:C})==="html"}function _d(d){let{msg:h,span:{start:b,end:C}}=d;throw mf(h,{loc:{start:{line:b.line+1,column:b.col+1},end:{line:C.line+1,column:C.col+1}},cause:d})}function pl(d,h,b={},C=!0){let{frontMatter:A,content:I}=C?$r(d):{frontMatter:null,content:d},J=new tf(d,b.filepath),ke=new ec(J,0,0,0),Qe=ke.moveBy(d.length),nt={type:"root",sourceSpan:new tn(ke,Qe),children:pu(I,h,b)};if(A){let Tt=new ec(J,0,0,0),ze=Tt.moveBy(A.raw.length);A.sourceSpan=new tn(Tt,ze),nt.children.unshift(A)}let st=new $s(nt),De=(Tt,ze)=>{let{offset:Qt}=ze,xn=H(!1,d.slice(0,Qt),/[^\n\r]/gu," "),nr=pl(xn+Tt,h,b,!1);nr.sourceSpan=new tn(ze,ar(!1,nr.children,-1).sourceSpan.end);let Hn=nr.children[0];return Hn.length===Qt?nr.children.shift():(Hn.sourceSpan=new tn(Hn.sourceSpan.start.moveBy(Qt),Hn.sourceSpan.end),Hn.value=Hn.value.slice(Qt)),nr};return st.walk(Tt=>{if(Tt.type==="comment"){let ze=Ya(Tt,De);ze&&Tt.parent.replaceChild(Tt,ze)}hc(Tt),io(Tt),du(Tt)}),st}function mc(d){return{parse:(h,b)=>pl(h,d,b),hasPragma:jg,astFormat:"html",locStart:Ql,locEnd:_i}}var Td={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},pr=mc(Td),Ad=mc({name:"angular"}),Fd=mc({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(d,h,b,C){return d.toLowerCase()!=="html"&&!b&&(d!=="template"||C.some(({name:A,value:I})=>A==="lang"&&I!=="html"&&I!==""&&I!==void 0))}}),gf=mc({name:"lwc",canSelfClose:!1}),$d={html:ic};return _(M)})})(lE);var uE=lE.exports;const cE=GF({__proto__:null,default:yy(uE)},[uE]);function ej(n,r){if(n==null)return{};var o={};for(var u in n)if({}.hasOwnProperty.call(n,u)){if(r.includes(u))continue;o[u]=n[u]}return o}function tj(n,r){if(n==null)return{};var o,u,f=ej(n,r);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(n);for(u=0;u<g.length;u++)o=g[u],r.includes(o)||{}.propertyIsEnumerable.call(n,o)&&(f[o]=n[o])}return f}function y1(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,u=Array(r);o<r;o++)u[o]=n[o];return u}function nj(n){if(Array.isArray(n))return y1(n)}function rj(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function aj(n,r){if(n){if(typeof n=="string")return y1(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y1(n,r):void 0}}function ij(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1167
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b1(n){return
|
|
1168
|
-
`))})}function
|
|
1169
|
-
`),style:v,startingLineNumber:S}))}function
|
|
1167
|
+
...`,b)),A===-1)return;let J=A+1+Ao,ke=d.charAt(J+1);if(!/\s?/u.test(ke))return;let Qe=d.slice(0,J);return{type:"front-matter",language:I,explicitLanguage:C,value:d.slice(b+1,A),startDelimiter:h,endDelimiter:Qe.slice(-Ao),raw:Qe}}function cl(d){let h=Li(d);if(!h)return{content:d};let{raw:b}=h;return{frontMatter:h,content:H(!1,b,/[^\n]/gu," ")+d.slice(b.length)}}var $r=cl,fc={attrs:!0,children:!0,cases:!0,expression:!0},Fo=new Set(["parent"]),$s=class vy{constructor(h={}){for(let b of new Set([...Fo,...Object.keys(h)]))this.setProperty(b,h[b])}setProperty(h,b){if(this[h]!==b){if(h in fc&&(b=b.map(C=>this.createChild(C))),!Fo.has(h)){this[h]=b;return}Object.defineProperty(this,h,{value:b,enumerable:!1,configurable:!0})}}map(h){let b;for(let C in fc){let A=this[C];if(A){let I=xd(A,J=>J.map(h));b!==A&&(b||(b=new vy({parent:this.parent})),b.setProperty(C,I))}}if(b)for(let C in this)C in fc||(b[C]=this[C]);return h(b||this)}walk(h){for(let b in fc){let C=this[b];if(C)for(let A=0;A<C.length;A++)C[A].walk(h)}h(this)}createChild(h){let b=h instanceof vy?h.clone():new vy(h);return b.setProperty("parent",this),b}insertChildBefore(h,b){this.children.splice(this.children.indexOf(h),0,this.createChild(b))}removeChild(h){this.children.splice(this.children.indexOf(h),1)}replaceChild(h,b){this.children[this.children.indexOf(h)]=this.createChild(b)}clone(){return new vy(this)}get firstChild(){var h;return(h=this.children)==null?void 0:h[0]}get lastChild(){var h;return(h=this.children)==null?void 0:h[this.children.length-1]}get prev(){var h,b;return(b=(h=this.parent)==null?void 0:h.children)==null?void 0:b[this.parent.children.indexOf(this)-1]}get next(){var h,b;return(b=(h=this.parent)==null?void 0:h.children)==null?void 0:b[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(h=>[h.fullName,h.value]))}};function xd(d,h){let b=d.map(h);return b.some((C,A)=>C!==d[A])?b:d}var uu=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Ps},{regex:/^\[if([^\]]*)\]><!$/u,parse:Ed},{regex:/^<!\s*\[endif\]$/u,parse:Uh}];function Ya(d,h){if(d.value)for(let{regex:b,parse:C}of uu){let A=d.value.match(b);if(A)return C(d,h,A)}return null}function Ps(d,h,b){let[,C,A,I]=b,J=4+C.length,ke=d.sourceSpan.start.moveBy(J),Qe=ke.moveBy(I.length),[nt,st]=(()=>{try{return[!0,h(I,ke).children]}catch{return[!1,[{type:"text",value:I,sourceSpan:new tn(ke,Qe)}]]}})();return{type:"ieConditionalComment",complete:nt,children:st,condition:H(!1,A.trim(),/\s+/gu," "),sourceSpan:d.sourceSpan,startSourceSpan:new tn(d.sourceSpan.start,ke),endSourceSpan:new tn(Qe,d.sourceSpan.end)}}function Ed(d,h,b){let[,C]=b;return{type:"ieConditionalStartComment",condition:H(!1,C.trim(),/\s+/gu," "),sourceSpan:d.sourceSpan}}function Uh(d){return{type:"ieConditionalEndComment",sourceSpan:d.sourceSpan}}var cu=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"])]]),Hh=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 hc(d){if(d.type==="block"){if(d.name=H(!1,d.name.toLowerCase(),/\s+/gu," ").trim(),d.type="angularControlFlowBlock",!ld(d.parameters)){delete d.parameters;return}for(let h of d.parameters)h.type="angularControlFlowBlockParameter";d.parameters={type:"angularControlFlowBlockParameters",children:d.parameters,sourceSpan:new tn(d.parameters[0].sourceSpan.start,ar(!1,d.parameters,-1).sourceSpan.end)}}}function io(d){d.type==="letDeclaration"&&(d.type="angularLetDeclaration",d.id=d.name,d.init={type:"angularLetDeclarationInitializer",sourceSpan:new tn(d.valueSpan.start,d.valueSpan.end),value:d.value},delete d.name,delete d.value)}function du(d){(d.type==="plural"||d.type==="select")&&(d.clause=d.type,d.type="angularIcuExpression"),d.type==="expansionCase"&&(d.type="angularIcuCase")}function pu(d,h,b){let{name:C,canSelfClose:A=!0,normalizeTagName:I=!1,normalizeAttributeName:J=!1,allowHtmComponentClosingTags:ke=!1,isTagNameCaseSensitive:Qe=!1,shouldParseAsRawText:nt}=h,{rootNodes:st,errors:De}=Va(d,{canSelfClose:A,allowHtmComponentClosingTags:ke,isTagNameCaseSensitive:Qe,getTagContentType:nt?(...ht)=>nt(...ht)?di.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:C==="angular"?!0:void 0,tokenizeAngularLetDeclaration:C==="angular"?!0:void 0});if(C==="vue"){if(st.some(vr=>vr.type==="docType"&&vr.value==="html"||vr.type==="element"&&vr.name.toLowerCase()==="html"))return pu(d,Td,b);let ht,Wt=()=>ht??(ht=Va(d,{canSelfClose:A,allowHtmComponentClosingTags:ke,isTagNameCaseSensitive:Qe})),fr=vr=>Wt().rootNodes.find(({startSourceSpan:Yr})=>Yr&&Yr.start.offset===vr.startSourceSpan.start.offset)??vr;for(let[vr,Yr]of st.entries()){let{endSourceSpan:ns,startSourceSpan:Pd}=Yr;if(ns===null)De=Wt().errors,st[vr]=fr(Yr);else if(dl(Yr,b)){let gc=Wt().errors.find(Ns=>Ns.span.start.offset>Pd.start.offset&&Ns.span.start.offset<ns.end.offset);gc&&_d(gc),st[vr]=fr(Yr)}}}De.length>0&&_d(De[0]);let Tt=ht=>{let Wt=ht.name.startsWith(":")?ht.name.slice(1).split(":")[0]:null,fr=ht.nameSpan.toString(),vr=Wt!==null&&fr.startsWith(`${Wt}:`),Yr=vr?fr.slice(Wt.length+1):fr;ht.name=Yr,ht.namespace=Wt,ht.hasExplicitNamespace=vr},ze=ht=>{switch(ht.type){case"element":Tt(ht);for(let Wt of ht.attrs)Tt(Wt),Wt.valueSpan?(Wt.value=Wt.valueSpan.toString(),/["']/u.test(Wt.value[0])&&(Wt.value=Wt.value.slice(1,-1))):Wt.value=null;break;case"comment":ht.value=ht.sourceSpan.toString().slice(4,-3);break;case"text":ht.value=ht.sourceSpan.toString();break}},Qt=(ht,Wt)=>{let fr=ht.toLowerCase();return Wt(fr)?fr:ht},xn=ht=>{if(ht.type==="element"&&(I&&(!ht.namespace||ht.namespace===ht.tagDefinition.implicitNamespacePrefix||Jt(ht))&&(ht.name=Qt(ht.name,Wt=>Hh.has(Wt))),J))for(let Wt of ht.attrs)Wt.namespace||(Wt.name=Qt(Wt.name,fr=>cu.has(ht.name)&&(cu.get("*").has(fr)||cu.get(ht.name).has(fr))))},nr=ht=>{ht.sourceSpan&&ht.endSourceSpan&&(ht.sourceSpan=new tn(ht.sourceSpan.start,ht.endSourceSpan.end))},Hn=ht=>{if(ht.type==="element"){let Wt=Fi(Qe?ht.name:ht.name.toLowerCase());!ht.namespace||ht.namespace===Wt.implicitNamespacePrefix||Jt(ht)?ht.tagDefinition=Wt:ht.tagDefinition=Fi("")}};return ou(new class extends lf{visitExpansionCase(ht,Wt){C==="angular"&&this.visitChildren(Wt,fr=>{fr(ht.expression)})}visit(ht){ze(ht),Hn(ht),xn(ht),nr(ht)}},st),st}function dl(d,h){var b;if(d.type!=="element"||d.name!=="template")return!1;let C=(b=d.attrs.find(A=>A.name==="lang"))==null?void 0:b.value;return!C||si(h,{language:C})==="html"}function _d(d){let{msg:h,span:{start:b,end:C}}=d;throw mf(h,{loc:{start:{line:b.line+1,column:b.col+1},end:{line:C.line+1,column:C.col+1}},cause:d})}function pl(d,h,b={},C=!0){let{frontMatter:A,content:I}=C?$r(d):{frontMatter:null,content:d},J=new tf(d,b.filepath),ke=new ec(J,0,0,0),Qe=ke.moveBy(d.length),nt={type:"root",sourceSpan:new tn(ke,Qe),children:pu(I,h,b)};if(A){let Tt=new ec(J,0,0,0),ze=Tt.moveBy(A.raw.length);A.sourceSpan=new tn(Tt,ze),nt.children.unshift(A)}let st=new $s(nt),De=(Tt,ze)=>{let{offset:Qt}=ze,xn=H(!1,d.slice(0,Qt),/[^\n\r]/gu," "),nr=pl(xn+Tt,h,b,!1);nr.sourceSpan=new tn(ze,ar(!1,nr.children,-1).sourceSpan.end);let Hn=nr.children[0];return Hn.length===Qt?nr.children.shift():(Hn.sourceSpan=new tn(Hn.sourceSpan.start.moveBy(Qt),Hn.sourceSpan.end),Hn.value=Hn.value.slice(Qt)),nr};return st.walk(Tt=>{if(Tt.type==="comment"){let ze=Ya(Tt,De);ze&&Tt.parent.replaceChild(Tt,ze)}hc(Tt),io(Tt),du(Tt)}),st}function mc(d){return{parse:(h,b)=>pl(h,d,b),hasPragma:jg,astFormat:"html",locStart:Ql,locEnd:_i}}var Td={name:"html",normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0},pr=mc(Td),Ad=mc({name:"angular"}),Fd=mc({name:"vue",isTagNameCaseSensitive:!0,shouldParseAsRawText(d,h,b,C){return d.toLowerCase()!=="html"&&!b&&(d!=="template"||C.some(({name:A,value:I})=>A==="lang"&&I!=="html"&&I!==""&&I!==void 0))}}),gf=mc({name:"lwc",canSelfClose:!1}),$d={html:ic};return _(M)})})(uE);var cE=uE.exports;const dE=QF({__proto__:null,default:yy(cE)},[cE]);function tj(n,r){if(n==null)return{};var o={};for(var u in n)if({}.hasOwnProperty.call(n,u)){if(r.includes(u))continue;o[u]=n[u]}return o}function nj(n,r){if(n==null)return{};var o,u,f=tj(n,r);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(n);for(u=0;u<g.length;u++)o=g[u],r.includes(o)||{}.propertyIsEnumerable.call(n,o)&&(f[o]=n[o])}return f}function y1(n,r){(r==null||r>n.length)&&(r=n.length);for(var o=0,u=Array(r);o<r;o++)u[o]=n[o];return u}function rj(n){if(Array.isArray(n))return y1(n)}function aj(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function ij(n,r){if(n){if(typeof n=="string")return y1(n,r);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?y1(n,r):void 0}}function oj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1168
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b1(n){return rj(n)||aj(n)||ij(n)||oj()}function _g(n){"@babel/helpers - typeof";return _g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_g(n)}function sj(n,r){if(_g(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var u=o.call(n,r||"default");if(_g(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function lj(n){var r=sj(n,"string");return _g(r)=="symbol"?r:r+""}function pE(n,r,o){return(r=lj(r))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n}function k1(){return k1=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var u in o)({}).hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},k1.apply(null,arguments)}function fE(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),o.push.apply(o,u)}return o}function yh(n){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?fE(Object(o),!0).forEach(function(u){pE(n,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):fE(Object(o)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(o,u))})}return n}function uj(n){var r=n.length;if(r===0||r===1)return n;if(r===2)return[n[0],n[1],"".concat(n[0],".").concat(n[1]),"".concat(n[1],".").concat(n[0])];if(r===3)return[n[0],n[1],n[2],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0])];if(r>=4)return[n[0],n[1],n[2],n[3],"".concat(n[0],".").concat(n[1]),"".concat(n[0],".").concat(n[2]),"".concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[0]),"".concat(n[1],".").concat(n[2]),"".concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[1]),"".concat(n[2],".").concat(n[3]),"".concat(n[3],".").concat(n[0]),"".concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[0]),"".concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[0],".").concat(n[1],".").concat(n[2],".").concat(n[3]),"".concat(n[0],".").concat(n[1],".").concat(n[3],".").concat(n[2]),"".concat(n[0],".").concat(n[2],".").concat(n[1],".").concat(n[3]),"".concat(n[0],".").concat(n[2],".").concat(n[3],".").concat(n[1]),"".concat(n[0],".").concat(n[3],".").concat(n[1],".").concat(n[2]),"".concat(n[0],".").concat(n[3],".").concat(n[2],".").concat(n[1]),"".concat(n[1],".").concat(n[0],".").concat(n[2],".").concat(n[3]),"".concat(n[1],".").concat(n[0],".").concat(n[3],".").concat(n[2]),"".concat(n[1],".").concat(n[2],".").concat(n[0],".").concat(n[3]),"".concat(n[1],".").concat(n[2],".").concat(n[3],".").concat(n[0]),"".concat(n[1],".").concat(n[3],".").concat(n[0],".").concat(n[2]),"".concat(n[1],".").concat(n[3],".").concat(n[2],".").concat(n[0]),"".concat(n[2],".").concat(n[0],".").concat(n[1],".").concat(n[3]),"".concat(n[2],".").concat(n[0],".").concat(n[3],".").concat(n[1]),"".concat(n[2],".").concat(n[1],".").concat(n[0],".").concat(n[3]),"".concat(n[2],".").concat(n[1],".").concat(n[3],".").concat(n[0]),"".concat(n[2],".").concat(n[3],".").concat(n[0],".").concat(n[1]),"".concat(n[2],".").concat(n[3],".").concat(n[1],".").concat(n[0]),"".concat(n[3],".").concat(n[0],".").concat(n[1],".").concat(n[2]),"".concat(n[3],".").concat(n[0],".").concat(n[2],".").concat(n[1]),"".concat(n[3],".").concat(n[1],".").concat(n[0],".").concat(n[2]),"".concat(n[3],".").concat(n[1],".").concat(n[2],".").concat(n[0]),"".concat(n[3],".").concat(n[2],".").concat(n[0],".").concat(n[1]),"".concat(n[3],".").concat(n[2],".").concat(n[1],".").concat(n[0])]}var w1={};function cj(n){if(n.length===0||n.length===1)return n;var r=n.join(".");return w1[r]||(w1[r]=uj(n)),w1[r]}function dj(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,u=n.filter(function(g){return g!=="token"}),f=cj(u);return f.reduce(function(g,v){return yh(yh({},g),o[v])},r)}function hE(n){return n.join(" ")}function pj(n,r){var o=0;return function(u){return o+=1,u.map(function(f,g){return mE({node:f,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(o,"-").concat(g)})})}}function mE(n){var r=n.node,o=n.stylesheet,u=n.style,f=u===void 0?{}:u,g=n.useInlineStyles,v=n.key,S=r.properties,E=r.type,_=r.tagName,$=r.value;if(E==="text")return $;if(_){var N=pj(o,g),R;if(!g)R=yh(yh({},S),{},{className:hE(S.className)});else{var B=Object.keys(o).reduce(function(ge,K){return K.split(".").forEach(function(Y){ge.includes(Y)||ge.push(Y)}),ge},[]),M=S.className&&S.className.includes("token")?["token"]:[],V=S.className&&M.concat(S.className.filter(function(ge){return!B.includes(ge)}));R=yh(yh({},S),{},{className:hE(V)||void 0,style:dj(S.className,Object.assign({},S.style,f),o)})}var H=N(r.children);return je.createElement(_,k1({key:v},R),H)}}const fj=function(n,r){var o=n.listLanguages();return o.indexOf(r)!==-1};var hj=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function gE(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);r&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),o.push.apply(o,u)}return o}function rd(n){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?gE(Object(o),!0).forEach(function(u){pE(n,u,o[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):gE(Object(o)).forEach(function(u){Object.defineProperty(n,u,Object.getOwnPropertyDescriptor(o,u))})}return n}var mj=/\n/g;function gj(n){return n.match(mj)}function vj(n){var r=n.lines,o=n.startingLineNumber,u=n.style;return r.map(function(f,g){var v=g+o;return je.createElement("span",{key:"line-".concat(g),className:"react-syntax-highlighter-line-number",style:typeof u=="function"?u(v):u},"".concat(v,`
|
|
1169
|
+
`))})}function yj(n){var r=n.codeString,o=n.codeStyle,u=n.containerStyle,f=u===void 0?{float:"left",paddingRight:"10px"}:u,g=n.numberStyle,v=g===void 0?{}:g,S=n.startingLineNumber;return je.createElement("code",{style:Object.assign({},o,f)},vj({lines:r.replace(/\n$/,"").split(`
|
|
1170
|
+
`),style:v,startingLineNumber:S}))}function bj(n){return"".concat(n.toString().length,".25em")}function vE(n,r){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(n),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:r},children:[{type:"text",value:n}]}}function yE(n,r,o){var u={display:"inline-block",minWidth:bj(o),paddingRight:"1em",textAlign:"right",userSelect:"none"},f=typeof n=="function"?n(r):n,g=rd(rd({},u),f);return g}function Jy(n){var r=n.children,o=n.lineNumber,u=n.lineNumberStyle,f=n.largestLineNumber,g=n.showInlineLineNumbers,v=n.lineProps,S=v===void 0?{}:v,E=n.className,_=E===void 0?[]:E,$=n.showLineNumbers,N=n.wrapLongLines,R=n.wrapLines,B=R===void 0?!1:R,M=B?rd({},typeof S=="function"?S(o):S):{};if(M.className=M.className?[].concat(b1(M.className.trim().split(/\s+/)),b1(_)):_,o&&g){var V=yE(u,o,f);r.unshift(vE(o,V))}return N&$&&(M.style=rd({display:"flex"},M.style)),{type:"element",tagName:"span",properties:M,children:r}}function bE(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],u=0;u<n.length;u++){var f=n[u];if(f.type==="text")o.push(Jy({children:[f],className:b1(new Set(r))}));else if(f.children){var g=r.concat(f.properties.className);bE(f.children,g).forEach(function(v){return o.push(v)})}}return o}function kj(n,r,o,u,f,g,v,S,E){var _,$=bE(n.value),N=[],R=-1,B=0;function M(U,ae){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Jy({children:U,lineNumber:ae,lineNumberStyle:S,largestLineNumber:v,showInlineLineNumbers:f,lineProps:o,className:oe,showLineNumbers:u,wrapLongLines:E,wrapLines:r})}function V(U,ae){if(u&&ae&&f){var oe=yE(S,ae,v);U.unshift(vE(ae,oe))}return U}function H(U,ae){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return r||oe.length>0?M(U,ae,oe):V(U,ae)}for(var ge=function(){var ae=$[B],oe=ae.children[0].value,Te=gj(oe);if(Te){var ye=oe.split(`
|
|
1170
1171
|
`);ye.forEach(function(Ve,rt){var Ye=u&&N.length+g,Fe={type:"text",value:"".concat(Ve,`
|
|
1171
|
-
`)};if(rt===0){var Pe=$.slice(R+1,B).concat(Jy({children:[Fe],className:ae.properties.className})),Ze=H(Pe,Ye);N.push(Ze)}else if(rt===ye.length-1){var Ne=$[B+1]&&$[B+1].children&&$[B+1].children[0],Be={type:"text",value:"".concat(Ve)};if(Ne){var ve=Jy({children:[Be],className:ae.properties.className});$.splice(B+1,0,ve)}else{var Re=[Be],xe=H(Re,Ye,ae.properties.className);N.push(xe)}}else{var G=[Fe],ce=H(G,Ye,ae.properties.className);N.push(ce)}}),R=B}B++};B<$.length;)ge();if(R!==$.length-1){var K=$.slice(R+1,$.length);if(K&&K.length){var Y=u&&N.length+g,ne=H(K,Y);N.push(ne)}}return r?N:(_=[]).concat.apply(_,N)}function
|
|
1172
|
-
`).length);var Rt=it+Y,Lt=bj(vt,oe,rt,V,ge,Y,Rt,ae,ye);return je.createElement(Pe,ut,je.createElement(Ne,N,!ge&&G,Ye({rows:Lt,stylesheet:S,useInlineStyles:B})))}}var Sj=xj,Cj=Object.prototype.hasOwnProperty;function xj(){for(var n={},r=0;r<arguments.length;r++){var o=arguments[r];for(var u in o)Cj.call(o,u)&&(n[u]=o[u])}return n}var kE=wE,D1=wE.prototype;D1.space=null,D1.normal={},D1.property={};function wE(n,r,o){this.property=n,this.normal=r,o&&(this.space=o)}var DE=Sj,Ej=kE,_j=Tj;function Tj(n){for(var r=n.length,o=[],u=[],f=-1,g,v;++f<r;)g=n[f],o.push(g.property),u.push(g.normal),v=g.space;return new Ej(DE.apply(null,o),DE.apply(null,u),v)}var S1=Aj;function Aj(n){return n.toLowerCase()}var SE=CE,ps=CE.prototype;ps.space=null,ps.attribute=null,ps.property=null,ps.boolean=!1,ps.booleanish=!1,ps.overloadedBoolean=!1,ps.number=!1,ps.commaSeparated=!1,ps.spaceSeparated=!1,ps.commaOrSpaceSeparated=!1,ps.mustUseProperty=!1,ps.defined=!1;function CE(n,r){this.property=n,this.attribute=r}var Bl={},Fj=0;Bl.boolean=Lp(),Bl.booleanish=Lp(),Bl.overloadedBoolean=Lp(),Bl.number=Lp(),Bl.spaceSeparated=Lp(),Bl.commaSeparated=Lp(),Bl.commaOrSpaceSeparated=Lp();function Lp(){return Math.pow(2,++Fj)}var xE=SE,EE=Bl,_E=C1;C1.prototype=new xE,C1.prototype.defined=!0;var TE=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],$j=TE.length;function C1(n,r,o,u){var f=-1,g;for(AE(this,"space",u),xE.call(this,n,r);++f<$j;)g=TE[f],AE(this,g,(o&EE[g])===EE[g])}function AE(n,r,o){o&&(n[r]=o)}var FE=S1,Pj=kE,Nj=_E,Tg=Rj;function Rj(n){var r=n.space,o=n.mustUseProperty||[],u=n.attributes||{},f=n.properties,g=n.transform,v={},S={},E,_;for(E in f)_=new Nj(E,g(u,E),f[E],r),o.indexOf(E)!==-1&&(_.mustUseProperty=!0),v[E]=_,S[FE(E)]=E,S[FE(_.attribute)]=E;return new Pj(v,S,r)}var Oj=Tg,Lj=Oj({space:"xlink",transform:Bj,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function Bj(n,r){return"xlink:"+r.slice(5).toLowerCase()}var jj=Tg,Ij=jj({space:"xml",transform:Mj,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Mj(n,r){return"xml:"+r.slice(3).toLowerCase()}var zj=Uj;function Uj(n,r){return r in n?n[r]:r}var Hj=zj,$E=qj;function qj(n,r){return Hj(n,r.toLowerCase())}var Wj=Tg,Vj=$E,Yj=Wj({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Vj,properties:{xmlns:null,xmlnsXLink:null}}),x1=Bl,Gj=Tg,yo=x1.booleanish,fs=x1.number,Bp=x1.spaceSeparated,Qj=Gj({transform:Kj,properties:{ariaActiveDescendant:null,ariaAtomic:yo,ariaAutoComplete:null,ariaBusy:yo,ariaChecked:yo,ariaColCount:fs,ariaColIndex:fs,ariaColSpan:fs,ariaControls:Bp,ariaCurrent:null,ariaDescribedBy:Bp,ariaDetails:null,ariaDisabled:yo,ariaDropEffect:Bp,ariaErrorMessage:null,ariaExpanded:yo,ariaFlowTo:Bp,ariaGrabbed:yo,ariaHasPopup:null,ariaHidden:yo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bp,ariaLevel:fs,ariaLive:null,ariaModal:yo,ariaMultiLine:yo,ariaMultiSelectable:yo,ariaOrientation:null,ariaOwns:Bp,ariaPlaceholder:null,ariaPosInSet:fs,ariaPressed:yo,ariaReadOnly:yo,ariaRelevant:null,ariaRequired:yo,ariaRoleDescription:Bp,ariaRowCount:fs,ariaRowIndex:fs,ariaRowSpan:fs,ariaSelected:yo,ariaSetSize:fs,ariaSort:null,ariaValueMax:fs,ariaValueMin:fs,ariaValueNow:fs,ariaValueText:null,role:null}});function Kj(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}var bh=Bl,Zj=Tg,Xj=$E,hn=bh.boolean,Jj=bh.overloadedBoolean,Ag=bh.booleanish,Sr=bh.number,Yi=bh.spaceSeparated,eb=bh.commaSeparated,eI=Zj({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Xj,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eb,acceptCharset:Yi,accessKey:Yi,action:null,allow:null,allowFullScreen:hn,allowPaymentRequest:hn,allowUserMedia:hn,alt:null,as:null,async:hn,autoCapitalize:null,autoComplete:Yi,autoFocus:hn,autoPlay:hn,capture:hn,charSet:null,checked:hn,cite:null,className:Yi,cols:Sr,colSpan:null,content:null,contentEditable:Ag,controls:hn,controlsList:Yi,coords:Sr|eb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:hn,defer:hn,dir:null,dirName:null,disabled:hn,download:Jj,draggable:Ag,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:hn,formTarget:null,headers:Yi,height:Sr,hidden:hn,high:Sr,href:null,hrefLang:null,htmlFor:Yi,httpEquiv:Yi,id:null,imageSizes:null,imageSrcSet:eb,inputMode:null,integrity:null,is:null,isMap:hn,itemId:null,itemProp:Yi,itemRef:Yi,itemScope:hn,itemType:Yi,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:hn,low:Sr,manifest:null,max:null,maxLength:Sr,media:null,method:null,min:null,minLength:Sr,multiple:hn,muted:hn,name:null,nonce:null,noModule:hn,noValidate:hn,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:hn,optimum:Sr,pattern:null,ping:Yi,placeholder:null,playsInline:hn,poster:null,preload:null,readOnly:hn,referrerPolicy:null,rel:Yi,required:hn,reversed:hn,rows:Sr,rowSpan:Sr,sandbox:Yi,scope:null,scoped:hn,seamless:hn,selected:hn,shape:null,size:Sr,sizes:null,slot:null,span:Sr,spellCheck:Ag,src:null,srcDoc:null,srcLang:null,srcSet:eb,start:Sr,step:null,style:null,tabIndex:Sr,target:null,title:null,translate:null,type:null,typeMustMatch:hn,useMap:null,value:Ag,width:Sr,wrap:null,align:null,aLink:null,archive:Yi,axis:null,background:null,bgColor:null,border:Sr,borderColor:null,bottomMargin:Sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:hn,declare:hn,event:null,face:null,frame:null,frameBorder:null,hSpace:Sr,leftMargin:Sr,link:null,longDesc:null,lowSrc:null,marginHeight:Sr,marginWidth:Sr,noResize:hn,noHref:hn,noShade:hn,noWrap:hn,object:null,profile:null,prompt:null,rev:null,rightMargin:Sr,rules:null,scheme:null,scrolling:Ag,standby:null,summary:null,text:null,topMargin:Sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:hn,disableRemotePlayback:hn,prefix:null,property:null,results:Sr,security:null,unselectable:null}}),tI=_j,nI=Lj,rI=Ij,aI=Yj,iI=Qj,oI=eI,sI=tI([rI,nI,aI,iI,oI]),lI=S1,uI=_E,cI=SE,E1="data",dI=hI,pI=/^data[-\w.:]+$/i,PE=/-[a-z]/g,fI=/[A-Z]/g;function hI(n,r){var o=lI(r),u=r,f=cI;return o in n.normal?n.property[n.normal[o]]:(o.length>4&&o.slice(0,4)===E1&&pI.test(r)&&(r.charAt(4)==="-"?u=mI(r):r=gI(r),f=uI),new f(u,r))}function mI(n){var r=n.slice(5).replace(PE,yI);return E1+r.charAt(0).toUpperCase()+r.slice(1)}function gI(n){var r=n.slice(4);return PE.test(r)?n:(r=r.replace(fI,vI),r.charAt(0)!=="-"&&(r="-"+r),E1+r)}function vI(n){return"-"+n.toLowerCase()}function yI(n){return n.charAt(1).toUpperCase()}var bI=kI,NE=/[#.]/g;function kI(n,r){for(var o=n||"",u=r||"div",f={},g=0,v,S,E;g<o.length;)NE.lastIndex=g,E=NE.exec(o),v=o.slice(g,E?E.index:o.length),v&&(S?S==="#"?f.id=v:f.className?f.className.push(v):f.className=[v]:u=v,g+=v.length),E&&(S=E[0],g++);return{type:"element",tagName:u,properties:f,children:[]}}var _1={};_1.parse=SI,_1.stringify=CI;var RE="",wI=" ",DI=/[ \t\n\r\f]+/g;function SI(n){var r=String(n||RE).trim();return r===RE?[]:r.split(DI)}function CI(n){return n.join(wI).trim()}var T1={};T1.parse=xI,T1.stringify=EI;var A1=",",OE=" ",Fg="";function xI(n){for(var r=[],o=String(n||Fg),u=o.indexOf(A1),f=0,g=!1,v;!g;)u===-1&&(u=o.length,g=!0),v=o.slice(f,u).trim(),(v||!g)&&r.push(v),f=u+1,u=o.indexOf(A1,f);return r}function EI(n,r){var o=r||{},u=o.padLeft===!1?Fg:OE,f=o.padRight?OE:Fg;return n[n.length-1]===Fg&&(n=n.concat(Fg)),n.join(f+A1+u).trim()}var _I=dI,LE=S1,TI=bI,BE=_1.parse,jE=T1.parse,AI=$I,FI={}.hasOwnProperty;function $I(n,r,o){var u=o?LI(o):null;return f;function f(v,S){var E=TI(v,r),_=Array.prototype.slice.call(arguments,2),$=E.tagName.toLowerCase(),N;if(E.tagName=u&&FI.call(u,$)?u[$]:$,S&&PI(S,E)&&(_.unshift(S),S=null),S)for(N in S)g(E.properties,N,S[N]);return IE(E.children,_),E.tagName==="template"&&(E.content={type:"root",children:E.children},E.children=[]),E}function g(v,S,E){var _,$,N;E==null||E!==E||(_=_I(n,S),$=_.property,N=E,typeof N=="string"&&(_.spaceSeparated?N=BE(N):_.commaSeparated?N=jE(N):_.commaOrSpaceSeparated&&(N=BE(jE(N).join(" ")))),$==="style"&&typeof E!="string"&&(N=OI(N)),$==="className"&&v.className&&(N=v.className.concat(N)),v[$]=RI(_,$,N))}}function PI(n,r){return typeof n=="string"||"length"in n||NI(r.tagName,n)}function NI(n,r){var o=r.type;return n==="input"||!o||typeof o!="string"?!1:typeof r.children=="object"&&"length"in r.children?!0:(o=o.toLowerCase(),n==="button"?o!=="menu"&&o!=="submit"&&o!=="reset"&&o!=="button":"value"in r)}function IE(n,r){var o,u;if(typeof r=="string"||typeof r=="number"){n.push({type:"text",value:String(r)});return}if(typeof r=="object"&&"length"in r){for(o=-1,u=r.length;++o<u;)IE(n,r[o]);return}if(typeof r!="object"||!("type"in r))throw new Error("Expected node, nodes, or string, got `"+r+"`");n.push(r)}function RI(n,r,o){var u,f,g;if(typeof o!="object"||!("length"in o))return ME(n,r,o);for(f=o.length,u=-1,g=[];++u<f;)g[u]=ME(n,r,o[u]);return g}function ME(n,r,o){var u=o;return n.number||n.positiveNumber?!isNaN(u)&&u!==""&&(u=Number(u)):(n.boolean||n.overloadedBoolean)&&typeof u=="string"&&(u===""||LE(o)===LE(r))&&(u=!0),u}function OI(n){var r=[],o;for(o in n)r.push([o,n[o]].join(": "));return r.join("; ")}function LI(n){for(var r=n.length,o=-1,u={},f;++o<r;)f=n[o],u[f.toLowerCase()]=f;return u}var BI=sI,jI=AI,zE=jI(BI,"div");zE.displayName="html";var II=zE,MI=II;const zI={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:"ÿ"},UI={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 UE=HI;function HI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=48&&r<=57}var qI=WI;function WI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}var VI=YI;function YI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=97&&r<=122||r>=65&&r<=90}var GI=VI,QI=UE,KI=ZI;function ZI(n){return GI(n)||QI(n)}var tb,XI=59,JI=e4;function e4(n){var r="&"+n+";",o;return tb=tb||document.createElement("i"),tb.innerHTML=r,o=tb.textContent,o.charCodeAt(o.length-1)===XI&&n!=="semi"||o===r?!1:o}var HE=zI,qE=UI,t4=UE,n4=qI,WE=KI,r4=JI,a4=v4,i4={}.hasOwnProperty,kh=String.fromCharCode,o4=Function.prototype,VE={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},s4=9,YE=10,l4=12,u4=32,GE=38,c4=59,d4=60,p4=61,f4=35,h4=88,m4=120,g4=65533,wh="named",F1="hexadecimal",$1="decimal",P1={};P1[F1]=16,P1[$1]=10;var nb={};nb[wh]=WE,nb[$1]=t4,nb[F1]=n4;var QE=1,KE=2,ZE=3,XE=4,JE=5,N1=6,e_=7,ad={};ad[QE]="Named character references must be terminated by a semicolon",ad[KE]="Numeric character references must be terminated by a semicolon",ad[ZE]="Named character references cannot be empty",ad[XE]="Numeric character references cannot be empty",ad[JE]="Named character references must be known",ad[N1]="Numeric character references cannot be disallowed",ad[e_]="Numeric character references cannot be outside the permissible Unicode range";function v4(n,r){var o={},u,f;r||(r={});for(f in VE)u=r[f],o[f]=u??VE[f];return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),y4(n,o)}function y4(n,r){var o=r.additional,u=r.nonTerminated,f=r.text,g=r.reference,v=r.warning,S=r.textContext,E=r.referenceContext,_=r.warningContext,$=r.position,N=r.indent||[],R=n.length,B=0,M=-1,V=$.column||1,H=$.line||1,ge="",K=[],Y,ne,U,ae,oe,Te,ye,Ve,rt,Ye,Fe,Pe,Ze,Ne,Be,ve,Re,xe,G;for(typeof o=="string"&&(o=o.charCodeAt(0)),ve=ce(),Ve=v?gt:o4,B--,R++;++B<R;)if(oe===YE&&(V=N[M]||1),oe=n.charCodeAt(B),oe===GE){if(ye=n.charCodeAt(B+1),ye===s4||ye===YE||ye===l4||ye===u4||ye===GE||ye===d4||ye!==ye||o&&ye===o){ge+=kh(oe),V++;continue}for(Ze=B+1,Pe=Ze,G=Ze,ye===f4?(G=++Pe,ye=n.charCodeAt(G),ye===h4||ye===m4?(Ne=F1,G=++Pe):Ne=$1):Ne=wh,Y="",Fe="",ae="",Be=nb[Ne],G--;++G<R&&(ye=n.charCodeAt(G),!!Be(ye));)ae+=kh(ye),Ne===wh&&i4.call(HE,ae)&&(Y=ae,Fe=HE[ae]);U=n.charCodeAt(G)===c4,U&&(G++,ne=Ne===wh?r4(ae):!1,ne&&(Y=ae,Fe=ne)),xe=1+G-Ze,!U&&!u||(ae?Ne===wh?(U&&!Fe?Ve(JE,1):(Y!==ae&&(G=Pe+Y.length,xe=1+G-Pe,U=!1),U||(rt=Y?QE:ZE,r.attribute?(ye=n.charCodeAt(G),ye===p4?(Ve(rt,xe),Fe=null):WE(ye)?Fe=null:Ve(rt,xe)):Ve(rt,xe))),Te=Fe):(U||Ve(KE,xe),Te=parseInt(ae,P1[Ne]),b4(Te)?(Ve(e_,xe),Te=kh(g4)):Te in qE?(Ve(N1,xe),Te=qE[Te]):(Ye="",k4(Te)&&Ve(N1,xe),Te>65535&&(Te-=65536,Ye+=kh(Te>>>10|55296),Te=56320|Te&1023),Te=Ye+kh(Te))):Ne!==wh&&Ve(XE,xe)),Te?(ut(),ve=ce(),B=G-1,V+=G-Ze+1,K.push(Te),Re=ce(),Re.offset++,g&&g.call(E,Te,{start:ve,end:Re},n.slice(Ze-1,G)),ve=Re):(ae=n.slice(Ze-1,G),ge+=ae,V+=ae.length,B=G-1)}else oe===10&&(H++,M++,V=0),oe===oe?(ge+=kh(oe),V++):ut();return K.join("");function ce(){return{line:H,column:V,offset:B+($.offset||0)}}function gt(ct,vt){var it=ce();it.column+=vt,it.offset+=vt,v.call(_,ad[ct],it,ct)}function ut(){ge&&(K.push(ge),f&&f.call(S,ge,{start:ve,end:ce()}),ge="")}}function b4(n){return n>=55296&&n<=57343||n>1114111}function k4(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}var t_={exports:{}};(function(n){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1172
|
+
`)};if(rt===0){var Pe=$.slice(R+1,B).concat(Jy({children:[Fe],className:ae.properties.className})),Ze=H(Pe,Ye);N.push(Ze)}else if(rt===ye.length-1){var Ne=$[B+1]&&$[B+1].children&&$[B+1].children[0],Be={type:"text",value:"".concat(Ve)};if(Ne){var ve=Jy({children:[Be],className:ae.properties.className});$.splice(B+1,0,ve)}else{var Re=[Be],xe=H(Re,Ye,ae.properties.className);N.push(xe)}}else{var G=[Fe],ce=H(G,Ye,ae.properties.className);N.push(ce)}}),R=B}B++};B<$.length;)ge();if(R!==$.length-1){var K=$.slice(R+1,$.length);if(K&&K.length){var Y=u&&N.length+g,ne=H(K,Y);N.push(ne)}}return r?N:(_=[]).concat.apply(_,N)}function wj(n){var r=n.rows,o=n.stylesheet,u=n.useInlineStyles;return r.map(function(f,g){return mE({node:f,stylesheet:o,useInlineStyles:u,key:"code-segement".concat(g)})})}function kE(n){return n&&typeof n.highlightAuto<"u"}function Dj(n){var r=n.astGenerator,o=n.language,u=n.code,f=n.defaultCodeValue;if(kE(r)){var g=fj(r,o);return o==="text"?{value:f,language:"text"}:g?r.highlight(o,u):r.highlightAuto(u)}try{return o&&o!=="text"?{value:r.highlight(u,o)}:{value:f}}catch{return{value:f}}}function Sj(n,r){return function(u){var f=u.language,g=u.children,v=u.style,S=v===void 0?r:v,E=u.customStyle,_=E===void 0?{}:E,$=u.codeTagProps,N=$===void 0?{className:f?"language-".concat(f):void 0,style:rd(rd({},S['code[class*="language-"]']),S['code[class*="language-'.concat(f,'"]')])}:$,R=u.useInlineStyles,B=R===void 0?!0:R,M=u.showLineNumbers,V=M===void 0?!1:M,H=u.showInlineLineNumbers,ge=H===void 0?!0:H,K=u.startingLineNumber,Y=K===void 0?1:K,ne=u.lineNumberContainerStyle,U=u.lineNumberStyle,ae=U===void 0?{}:U,oe=u.wrapLines,Te=u.wrapLongLines,ye=Te===void 0?!1:Te,Ve=u.lineProps,rt=Ve===void 0?{}:Ve,Ye=u.renderer,Fe=u.PreTag,Pe=Fe===void 0?"pre":Fe,Ze=u.CodeTag,Ne=Ze===void 0?"code":Ze,Be=u.code,ve=Be===void 0?(Array.isArray(g)?g[0]:g)||"":Be,Re=u.astGenerator,xe=nj(u,hj);Re=Re||n;var G=V?je.createElement(yj,{containerStyle:ne,codeStyle:N.style||{},numberStyle:ae,startingLineNumber:Y,codeString:ve}):null,ce=S.hljs||S['pre[class*="language-"]']||{backgroundColor:"#fff"},gt=kE(Re)?"hljs":"prismjs",ut=B?Object.assign({},xe,{style:Object.assign({},ce,_)}):Object.assign({},xe,{className:xe.className?"".concat(gt," ").concat(xe.className):gt,style:Object.assign({},_)});if(ye?N.style=rd({whiteSpace:"pre-wrap"},N.style):N.style=rd({whiteSpace:"pre"},N.style),!Re)return je.createElement(Pe,ut,G,je.createElement(Ne,N,ve));(oe===void 0&&Ye||ye)&&(oe=!0),Ye=Ye||wj;var ct=[{type:"text",value:ve}],vt=Dj({astGenerator:Re,language:f,code:ve,defaultCodeValue:ct});vt.language===null&&(vt.value=ct);var it=vt.value.length;it===1&&vt.value[0].type==="text"&&(it=vt.value[0].value.split(`
|
|
1173
|
+
`).length);var Rt=it+Y,Lt=kj(vt,oe,rt,V,ge,Y,Rt,ae,ye);return je.createElement(Pe,ut,je.createElement(Ne,N,!ge&&G,Ye({rows:Lt,stylesheet:S,useInlineStyles:B})))}}var Cj=Ej,xj=Object.prototype.hasOwnProperty;function Ej(){for(var n={},r=0;r<arguments.length;r++){var o=arguments[r];for(var u in o)xj.call(o,u)&&(n[u]=o[u])}return n}var wE=DE,D1=DE.prototype;D1.space=null,D1.normal={},D1.property={};function DE(n,r,o){this.property=n,this.normal=r,o&&(this.space=o)}var SE=Cj,_j=wE,Tj=Aj;function Aj(n){for(var r=n.length,o=[],u=[],f=-1,g,v;++f<r;)g=n[f],o.push(g.property),u.push(g.normal),v=g.space;return new _j(SE.apply(null,o),SE.apply(null,u),v)}var S1=Fj;function Fj(n){return n.toLowerCase()}var CE=xE,ps=xE.prototype;ps.space=null,ps.attribute=null,ps.property=null,ps.boolean=!1,ps.booleanish=!1,ps.overloadedBoolean=!1,ps.number=!1,ps.commaSeparated=!1,ps.spaceSeparated=!1,ps.commaOrSpaceSeparated=!1,ps.mustUseProperty=!1,ps.defined=!1;function xE(n,r){this.property=n,this.attribute=r}var Bl={},$j=0;Bl.boolean=Lp(),Bl.booleanish=Lp(),Bl.overloadedBoolean=Lp(),Bl.number=Lp(),Bl.spaceSeparated=Lp(),Bl.commaSeparated=Lp(),Bl.commaOrSpaceSeparated=Lp();function Lp(){return Math.pow(2,++$j)}var EE=CE,_E=Bl,TE=C1;C1.prototype=new EE,C1.prototype.defined=!0;var AE=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],Pj=AE.length;function C1(n,r,o,u){var f=-1,g;for(FE(this,"space",u),EE.call(this,n,r);++f<Pj;)g=AE[f],FE(this,g,(o&_E[g])===_E[g])}function FE(n,r,o){o&&(n[r]=o)}var $E=S1,Nj=wE,Rj=TE,Tg=Oj;function Oj(n){var r=n.space,o=n.mustUseProperty||[],u=n.attributes||{},f=n.properties,g=n.transform,v={},S={},E,_;for(E in f)_=new Rj(E,g(u,E),f[E],r),o.indexOf(E)!==-1&&(_.mustUseProperty=!0),v[E]=_,S[$E(E)]=E,S[$E(_.attribute)]=E;return new Nj(v,S,r)}var Lj=Tg,Bj=Lj({space:"xlink",transform:jj,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function jj(n,r){return"xlink:"+r.slice(5).toLowerCase()}var Ij=Tg,Mj=Ij({space:"xml",transform:zj,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zj(n,r){return"xml:"+r.slice(3).toLowerCase()}var Uj=Hj;function Hj(n,r){return r in n?n[r]:r}var qj=Uj,PE=Wj;function Wj(n,r){return qj(n,r.toLowerCase())}var Vj=Tg,Yj=PE,Gj=Vj({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Yj,properties:{xmlns:null,xmlnsXLink:null}}),x1=Bl,Qj=Tg,yo=x1.booleanish,fs=x1.number,Bp=x1.spaceSeparated,Kj=Qj({transform:Zj,properties:{ariaActiveDescendant:null,ariaAtomic:yo,ariaAutoComplete:null,ariaBusy:yo,ariaChecked:yo,ariaColCount:fs,ariaColIndex:fs,ariaColSpan:fs,ariaControls:Bp,ariaCurrent:null,ariaDescribedBy:Bp,ariaDetails:null,ariaDisabled:yo,ariaDropEffect:Bp,ariaErrorMessage:null,ariaExpanded:yo,ariaFlowTo:Bp,ariaGrabbed:yo,ariaHasPopup:null,ariaHidden:yo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bp,ariaLevel:fs,ariaLive:null,ariaModal:yo,ariaMultiLine:yo,ariaMultiSelectable:yo,ariaOrientation:null,ariaOwns:Bp,ariaPlaceholder:null,ariaPosInSet:fs,ariaPressed:yo,ariaReadOnly:yo,ariaRelevant:null,ariaRequired:yo,ariaRoleDescription:Bp,ariaRowCount:fs,ariaRowIndex:fs,ariaRowSpan:fs,ariaSelected:yo,ariaSetSize:fs,ariaSort:null,ariaValueMax:fs,ariaValueMin:fs,ariaValueNow:fs,ariaValueText:null,role:null}});function Zj(n,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}var bh=Bl,Xj=Tg,Jj=PE,hn=bh.boolean,eI=bh.overloadedBoolean,Ag=bh.booleanish,Sr=bh.number,Yi=bh.spaceSeparated,eb=bh.commaSeparated,tI=Xj({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Jj,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eb,acceptCharset:Yi,accessKey:Yi,action:null,allow:null,allowFullScreen:hn,allowPaymentRequest:hn,allowUserMedia:hn,alt:null,as:null,async:hn,autoCapitalize:null,autoComplete:Yi,autoFocus:hn,autoPlay:hn,capture:hn,charSet:null,checked:hn,cite:null,className:Yi,cols:Sr,colSpan:null,content:null,contentEditable:Ag,controls:hn,controlsList:Yi,coords:Sr|eb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:hn,defer:hn,dir:null,dirName:null,disabled:hn,download:eI,draggable:Ag,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:hn,formTarget:null,headers:Yi,height:Sr,hidden:hn,high:Sr,href:null,hrefLang:null,htmlFor:Yi,httpEquiv:Yi,id:null,imageSizes:null,imageSrcSet:eb,inputMode:null,integrity:null,is:null,isMap:hn,itemId:null,itemProp:Yi,itemRef:Yi,itemScope:hn,itemType:Yi,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:hn,low:Sr,manifest:null,max:null,maxLength:Sr,media:null,method:null,min:null,minLength:Sr,multiple:hn,muted:hn,name:null,nonce:null,noModule:hn,noValidate:hn,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:hn,optimum:Sr,pattern:null,ping:Yi,placeholder:null,playsInline:hn,poster:null,preload:null,readOnly:hn,referrerPolicy:null,rel:Yi,required:hn,reversed:hn,rows:Sr,rowSpan:Sr,sandbox:Yi,scope:null,scoped:hn,seamless:hn,selected:hn,shape:null,size:Sr,sizes:null,slot:null,span:Sr,spellCheck:Ag,src:null,srcDoc:null,srcLang:null,srcSet:eb,start:Sr,step:null,style:null,tabIndex:Sr,target:null,title:null,translate:null,type:null,typeMustMatch:hn,useMap:null,value:Ag,width:Sr,wrap:null,align:null,aLink:null,archive:Yi,axis:null,background:null,bgColor:null,border:Sr,borderColor:null,bottomMargin:Sr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:hn,declare:hn,event:null,face:null,frame:null,frameBorder:null,hSpace:Sr,leftMargin:Sr,link:null,longDesc:null,lowSrc:null,marginHeight:Sr,marginWidth:Sr,noResize:hn,noHref:hn,noShade:hn,noWrap:hn,object:null,profile:null,prompt:null,rev:null,rightMargin:Sr,rules:null,scheme:null,scrolling:Ag,standby:null,summary:null,text:null,topMargin:Sr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Sr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:hn,disableRemotePlayback:hn,prefix:null,property:null,results:Sr,security:null,unselectable:null}}),nI=Tj,rI=Bj,aI=Mj,iI=Gj,oI=Kj,sI=tI,lI=nI([aI,rI,iI,oI,sI]),uI=S1,cI=TE,dI=CE,E1="data",pI=mI,fI=/^data[-\w.:]+$/i,NE=/-[a-z]/g,hI=/[A-Z]/g;function mI(n,r){var o=uI(r),u=r,f=dI;return o in n.normal?n.property[n.normal[o]]:(o.length>4&&o.slice(0,4)===E1&&fI.test(r)&&(r.charAt(4)==="-"?u=gI(r):r=vI(r),f=cI),new f(u,r))}function gI(n){var r=n.slice(5).replace(NE,bI);return E1+r.charAt(0).toUpperCase()+r.slice(1)}function vI(n){var r=n.slice(4);return NE.test(r)?n:(r=r.replace(hI,yI),r.charAt(0)!=="-"&&(r="-"+r),E1+r)}function yI(n){return"-"+n.toLowerCase()}function bI(n){return n.charAt(1).toUpperCase()}var kI=wI,RE=/[#.]/g;function wI(n,r){for(var o=n||"",u=r||"div",f={},g=0,v,S,E;g<o.length;)RE.lastIndex=g,E=RE.exec(o),v=o.slice(g,E?E.index:o.length),v&&(S?S==="#"?f.id=v:f.className?f.className.push(v):f.className=[v]:u=v,g+=v.length),E&&(S=E[0],g++);return{type:"element",tagName:u,properties:f,children:[]}}var _1={};_1.parse=CI,_1.stringify=xI;var OE="",DI=" ",SI=/[ \t\n\r\f]+/g;function CI(n){var r=String(n||OE).trim();return r===OE?[]:r.split(SI)}function xI(n){return n.join(DI).trim()}var T1={};T1.parse=EI,T1.stringify=_I;var A1=",",LE=" ",Fg="";function EI(n){for(var r=[],o=String(n||Fg),u=o.indexOf(A1),f=0,g=!1,v;!g;)u===-1&&(u=o.length,g=!0),v=o.slice(f,u).trim(),(v||!g)&&r.push(v),f=u+1,u=o.indexOf(A1,f);return r}function _I(n,r){var o=r||{},u=o.padLeft===!1?Fg:LE,f=o.padRight?LE:Fg;return n[n.length-1]===Fg&&(n=n.concat(Fg)),n.join(f+A1+u).trim()}var TI=pI,BE=S1,AI=kI,jE=_1.parse,IE=T1.parse,FI=PI,$I={}.hasOwnProperty;function PI(n,r,o){var u=o?BI(o):null;return f;function f(v,S){var E=AI(v,r),_=Array.prototype.slice.call(arguments,2),$=E.tagName.toLowerCase(),N;if(E.tagName=u&&$I.call(u,$)?u[$]:$,S&&NI(S,E)&&(_.unshift(S),S=null),S)for(N in S)g(E.properties,N,S[N]);return ME(E.children,_),E.tagName==="template"&&(E.content={type:"root",children:E.children},E.children=[]),E}function g(v,S,E){var _,$,N;E==null||E!==E||(_=TI(n,S),$=_.property,N=E,typeof N=="string"&&(_.spaceSeparated?N=jE(N):_.commaSeparated?N=IE(N):_.commaOrSpaceSeparated&&(N=jE(IE(N).join(" ")))),$==="style"&&typeof E!="string"&&(N=LI(N)),$==="className"&&v.className&&(N=v.className.concat(N)),v[$]=OI(_,$,N))}}function NI(n,r){return typeof n=="string"||"length"in n||RI(r.tagName,n)}function RI(n,r){var o=r.type;return n==="input"||!o||typeof o!="string"?!1:typeof r.children=="object"&&"length"in r.children?!0:(o=o.toLowerCase(),n==="button"?o!=="menu"&&o!=="submit"&&o!=="reset"&&o!=="button":"value"in r)}function ME(n,r){var o,u;if(typeof r=="string"||typeof r=="number"){n.push({type:"text",value:String(r)});return}if(typeof r=="object"&&"length"in r){for(o=-1,u=r.length;++o<u;)ME(n,r[o]);return}if(typeof r!="object"||!("type"in r))throw new Error("Expected node, nodes, or string, got `"+r+"`");n.push(r)}function OI(n,r,o){var u,f,g;if(typeof o!="object"||!("length"in o))return zE(n,r,o);for(f=o.length,u=-1,g=[];++u<f;)g[u]=zE(n,r,o[u]);return g}function zE(n,r,o){var u=o;return n.number||n.positiveNumber?!isNaN(u)&&u!==""&&(u=Number(u)):(n.boolean||n.overloadedBoolean)&&typeof u=="string"&&(u===""||BE(o)===BE(r))&&(u=!0),u}function LI(n){var r=[],o;for(o in n)r.push([o,n[o]].join(": "));return r.join("; ")}function BI(n){for(var r=n.length,o=-1,u={},f;++o<r;)f=n[o],u[f.toLowerCase()]=f;return u}var jI=lI,II=FI,UE=II(jI,"div");UE.displayName="html";var MI=UE,zI=MI;const UI={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:"ÿ"},HI={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 HE=qI;function qI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=48&&r<=57}var WI=VI;function VI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}var YI=GI;function GI(n){var r=typeof n=="string"?n.charCodeAt(0):n;return r>=97&&r<=122||r>=65&&r<=90}var QI=YI,KI=HE,ZI=XI;function XI(n){return QI(n)||KI(n)}var tb,JI=59,e4=t4;function t4(n){var r="&"+n+";",o;return tb=tb||document.createElement("i"),tb.innerHTML=r,o=tb.textContent,o.charCodeAt(o.length-1)===JI&&n!=="semi"||o===r?!1:o}var qE=UI,WE=HI,n4=HE,r4=WI,VE=ZI,a4=e4,i4=y4,o4={}.hasOwnProperty,kh=String.fromCharCode,s4=Function.prototype,YE={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},l4=9,GE=10,u4=12,c4=32,QE=38,d4=59,p4=60,f4=61,h4=35,m4=88,g4=120,v4=65533,wh="named",F1="hexadecimal",$1="decimal",P1={};P1[F1]=16,P1[$1]=10;var nb={};nb[wh]=VE,nb[$1]=n4,nb[F1]=r4;var KE=1,ZE=2,XE=3,JE=4,e_=5,N1=6,t_=7,ad={};ad[KE]="Named character references must be terminated by a semicolon",ad[ZE]="Numeric character references must be terminated by a semicolon",ad[XE]="Named character references cannot be empty",ad[JE]="Numeric character references cannot be empty",ad[e_]="Named character references must be known",ad[N1]="Numeric character references cannot be disallowed",ad[t_]="Numeric character references cannot be outside the permissible Unicode range";function y4(n,r){var o={},u,f;r||(r={});for(f in YE)u=r[f],o[f]=u??YE[f];return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),b4(n,o)}function b4(n,r){var o=r.additional,u=r.nonTerminated,f=r.text,g=r.reference,v=r.warning,S=r.textContext,E=r.referenceContext,_=r.warningContext,$=r.position,N=r.indent||[],R=n.length,B=0,M=-1,V=$.column||1,H=$.line||1,ge="",K=[],Y,ne,U,ae,oe,Te,ye,Ve,rt,Ye,Fe,Pe,Ze,Ne,Be,ve,Re,xe,G;for(typeof o=="string"&&(o=o.charCodeAt(0)),ve=ce(),Ve=v?gt:s4,B--,R++;++B<R;)if(oe===GE&&(V=N[M]||1),oe=n.charCodeAt(B),oe===QE){if(ye=n.charCodeAt(B+1),ye===l4||ye===GE||ye===u4||ye===c4||ye===QE||ye===p4||ye!==ye||o&&ye===o){ge+=kh(oe),V++;continue}for(Ze=B+1,Pe=Ze,G=Ze,ye===h4?(G=++Pe,ye=n.charCodeAt(G),ye===m4||ye===g4?(Ne=F1,G=++Pe):Ne=$1):Ne=wh,Y="",Fe="",ae="",Be=nb[Ne],G--;++G<R&&(ye=n.charCodeAt(G),!!Be(ye));)ae+=kh(ye),Ne===wh&&o4.call(qE,ae)&&(Y=ae,Fe=qE[ae]);U=n.charCodeAt(G)===d4,U&&(G++,ne=Ne===wh?a4(ae):!1,ne&&(Y=ae,Fe=ne)),xe=1+G-Ze,!U&&!u||(ae?Ne===wh?(U&&!Fe?Ve(e_,1):(Y!==ae&&(G=Pe+Y.length,xe=1+G-Pe,U=!1),U||(rt=Y?KE:XE,r.attribute?(ye=n.charCodeAt(G),ye===f4?(Ve(rt,xe),Fe=null):VE(ye)?Fe=null:Ve(rt,xe)):Ve(rt,xe))),Te=Fe):(U||Ve(ZE,xe),Te=parseInt(ae,P1[Ne]),k4(Te)?(Ve(t_,xe),Te=kh(v4)):Te in WE?(Ve(N1,xe),Te=WE[Te]):(Ye="",w4(Te)&&Ve(N1,xe),Te>65535&&(Te-=65536,Ye+=kh(Te>>>10|55296),Te=56320|Te&1023),Te=Ye+kh(Te))):Ne!==wh&&Ve(JE,xe)),Te?(ut(),ve=ce(),B=G-1,V+=G-Ze+1,K.push(Te),Re=ce(),Re.offset++,g&&g.call(E,Te,{start:ve,end:Re},n.slice(Ze-1,G)),ve=Re):(ae=n.slice(Ze-1,G),ge+=ae,V+=ae.length,B=G-1)}else oe===10&&(H++,M++,V=0),oe===oe?(ge+=kh(oe),V++):ut();return K.join("");function ce(){return{line:H,column:V,offset:B+($.offset||0)}}function gt(ct,vt){var it=ce();it.column+=vt,it.offset+=vt,v.call(_,ad[ct],it,ct)}function ut(){ge&&(K.push(ge),f&&f.call(S,ge,{start:ve,end:ce()}),ge="")}}function k4(n){return n>=55296&&n<=57343||n>1114111}function w4(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}var n_={exports:{}};(function(n){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1173
1174
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
1174
1175
|
*
|
|
1175
1176
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
1176
1177
|
* @author Lea Verou <https://lea.verou.me>
|
|
1177
1178
|
* @namespace
|
|
1178
1179
|
* @public
|
|
1179
|
-
*/var o=function(u){var f=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,v={},S={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function K(Y){return Y instanceof E?new E(Y.type,K(Y.content),Y.alias):Array.isArray(Y)?Y.map(K):Y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(K){return Object.prototype.toString.call(K).slice(8,-1)},objId:function(K){return K.__id||Object.defineProperty(K,"__id",{value:++g}),K.__id},clone:function K(Y,ne){ne=ne||{};var U,ae;switch(S.util.type(Y)){case"Object":if(ae=S.util.objId(Y),ne[ae])return ne[ae];U={},ne[ae]=U;for(var oe in Y)Y.hasOwnProperty(oe)&&(U[oe]=K(Y[oe],ne));return U;case"Array":return ae=S.util.objId(Y),ne[ae]?ne[ae]:(U=[],ne[ae]=U,Y.forEach(function(Te,ye){U[ye]=K(Te,ne)}),U);default:return Y}},getLanguage:function(K){for(;K;){var Y=f.exec(K.className);if(Y)return Y[1].toLowerCase();K=K.parentElement}return"none"},setLanguage:function(K,Y){K.className=K.className.replace(RegExp(f,"gi"),""),K.classList.add("language-"+Y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(U){var K=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(U.stack)||[])[1];if(K){var Y=document.getElementsByTagName("script");for(var ne in Y)if(Y[ne].src==K)return Y[ne]}return null}},isActive:function(K,Y,ne){for(var U="no-"+Y;K;){var ae=K.classList;if(ae.contains(Y))return!0;if(ae.contains(U))return!1;K=K.parentElement}return!!ne}},languages:{plain:v,plaintext:v,text:v,txt:v,extend:function(K,Y){var ne=S.util.clone(S.languages[K]);for(var U in Y)ne[U]=Y[U];return ne},insertBefore:function(K,Y,ne,U){U=U||S.languages;var ae=U[K],oe={};for(var Te in ae)if(ae.hasOwnProperty(Te)){if(Te==Y)for(var ye in ne)ne.hasOwnProperty(ye)&&(oe[ye]=ne[ye]);ne.hasOwnProperty(Te)||(oe[Te]=ae[Te])}var Ve=U[K];return U[K]=oe,S.languages.DFS(S.languages,function(rt,Ye){Ye===Ve&&rt!=K&&(this[rt]=oe)}),oe},DFS:function K(Y,ne,U,ae){ae=ae||{};var oe=S.util.objId;for(var Te in Y)if(Y.hasOwnProperty(Te)){ne.call(Y,Te,Y[Te],U||Te);var ye=Y[Te],Ve=S.util.type(ye);Ve==="Object"&&!ae[oe(ye)]?(ae[oe(ye)]=!0,K(ye,ne,null,ae)):Ve==="Array"&&!ae[oe(ye)]&&(ae[oe(ye)]=!0,K(ye,ne,Te,ae))}}},plugins:{},highlightAll:function(K,Y){S.highlightAllUnder(document,K,Y)},highlightAllUnder:function(K,Y,ne){var U={callback:ne,container:K,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};S.hooks.run("before-highlightall",U),U.elements=Array.prototype.slice.apply(U.container.querySelectorAll(U.selector)),S.hooks.run("before-all-elements-highlight",U);for(var ae=0,oe;oe=U.elements[ae++];)S.highlightElement(oe,Y===!0,U.callback)},highlightElement:function(K,Y,ne){var U=S.util.getLanguage(K),ae=S.languages[U];S.util.setLanguage(K,U);var oe=K.parentElement;oe&&oe.nodeName.toLowerCase()==="pre"&&S.util.setLanguage(oe,U);var Te=K.textContent,ye={element:K,language:U,grammar:ae,code:Te};function Ve(Ye){ye.highlightedCode=Ye,S.hooks.run("before-insert",ye),ye.element.innerHTML=ye.highlightedCode,S.hooks.run("after-highlight",ye),S.hooks.run("complete",ye),ne&&ne.call(ye.element)}if(S.hooks.run("before-sanity-check",ye),oe=ye.element.parentElement,oe&&oe.nodeName.toLowerCase()==="pre"&&!oe.hasAttribute("tabindex")&&oe.setAttribute("tabindex","0"),!ye.code){S.hooks.run("complete",ye),ne&&ne.call(ye.element);return}if(S.hooks.run("before-highlight",ye),!ye.grammar){Ve(S.util.encode(ye.code));return}if(Y&&u.Worker){var rt=new Worker(S.filename);rt.onmessage=function(Ye){Ve(Ye.data)},rt.postMessage(JSON.stringify({language:ye.language,code:ye.code,immediateClose:!0}))}else Ve(S.highlight(ye.code,ye.grammar,ye.language))},highlight:function(K,Y,ne){var U={code:K,grammar:Y,language:ne};if(S.hooks.run("before-tokenize",U),!U.grammar)throw new Error('The language "'+U.language+'" has no grammar.');return U.tokens=S.tokenize(U.code,U.grammar),S.hooks.run("after-tokenize",U),E.stringify(S.util.encode(U.tokens),U.language)},tokenize:function(K,Y){var ne=Y.rest;if(ne){for(var U in ne)Y[U]=ne[U];delete Y.rest}var ae=new N;return R(ae,ae.head,K),$(K,ae,Y,ae.head,0),M(ae)},hooks:{all:{},add:function(K,Y){var ne=S.hooks.all;ne[K]=ne[K]||[],ne[K].push(Y)},run:function(K,Y){var ne=S.hooks.all[K];if(!(!ne||!ne.length))for(var U=0,ae;ae=ne[U++];)ae(Y)}},Token:E};u.Prism=S;function E(K,Y,ne,U){this.type=K,this.content=Y,this.alias=ne,this.length=(U||"").length|0}E.stringify=function K(Y,ne){if(typeof Y=="string")return Y;if(Array.isArray(Y)){var U="";return Y.forEach(function(Ve){U+=K(Ve,ne)}),U}var ae={type:Y.type,content:K(Y.content,ne),tag:"span",classes:["token",Y.type],attributes:{},language:ne},oe=Y.alias;oe&&(Array.isArray(oe)?Array.prototype.push.apply(ae.classes,oe):ae.classes.push(oe)),S.hooks.run("wrap",ae);var Te="";for(var ye in ae.attributes)Te+=" "+ye+'="'+(ae.attributes[ye]||"").replace(/"/g,""")+'"';return"<"+ae.tag+' class="'+ae.classes.join(" ")+'"'+Te+">"+ae.content+"</"+ae.tag+">"};function _(K,Y,ne,U){K.lastIndex=Y;var ae=K.exec(ne);if(ae&&U&&ae[1]){var oe=ae[1].length;ae.index+=oe,ae[0]=ae[0].slice(oe)}return ae}function $(K,Y,ne,U,ae,oe){for(var Te in ne)if(!(!ne.hasOwnProperty(Te)||!ne[Te])){var ye=ne[Te];ye=Array.isArray(ye)?ye:[ye];for(var Ve=0;Ve<ye.length;++Ve){if(oe&&oe.cause==Te+","+Ve)return;var rt=ye[Ve],Ye=rt.inside,Fe=!!rt.lookbehind,Pe=!!rt.greedy,Ze=rt.alias;if(Pe&&!rt.pattern.global){var Ne=rt.pattern.toString().match(/[imsuy]*$/)[0];rt.pattern=RegExp(rt.pattern.source,Ne+"g")}for(var Be=rt.pattern||rt,ve=U.next,Re=ae;ve!==Y.tail&&!(oe&&Re>=oe.reach);Re+=ve.value.length,ve=ve.next){var xe=ve.value;if(Y.length>K.length)return;if(!(xe instanceof E)){var G=1,ce;if(Pe){if(ce=_(Be,Re,K,Fe),!ce||ce.index>=K.length)break;var vt=ce.index,gt=ce.index+ce[0].length,ut=Re;for(ut+=ve.value.length;vt>=ut;)ve=ve.next,ut+=ve.value.length;if(ut-=ve.value.length,Re=ut,ve.value instanceof E)continue;for(var ct=ve;ct!==Y.tail&&(ut<gt||typeof ct.value=="string");ct=ct.next)G++,ut+=ct.value.length;G--,xe=K.slice(Re,ut),ce.index-=Re}else if(ce=_(Be,0,xe,Fe),!ce)continue;var vt=ce.index,it=ce[0],Rt=xe.slice(0,vt),Lt=xe.slice(vt+it.length),sn=Re+xe.length;oe&&sn>oe.reach&&(oe.reach=sn);var Fn=ve.prev;Rt&&(Fn=R(Y,Fn,Rt),Re+=Rt.length),B(Y,Fn,G);var br=new E(Te,Ye?S.tokenize(it,Ye):it,Ze,it);if(ve=R(Y,Fn,br),Lt&&R(Y,ve,Lt),G>1){var nn={cause:Te+","+Ve,reach:sn};$(K,Y,ne,ve.prev,Re,nn),oe&&nn.reach>oe.reach&&(oe.reach=nn.reach)}}}}}}function N(){var K={value:null,prev:null,next:null},Y={value:null,prev:K,next:null};K.next=Y,this.head=K,this.tail=Y,this.length=0}function R(K,Y,ne){var U=Y.next,ae={value:ne,prev:Y,next:U};return Y.next=ae,U.prev=ae,K.length++,ae}function B(K,Y,ne){for(var U=Y.next,ae=0;ae<ne&&U!==K.tail;ae++)U=U.next;Y.next=U,U.prev=Y,K.length-=ae}function M(K){for(var Y=[],ne=K.head.next;ne!==K.tail;)Y.push(ne.value),ne=ne.next;return Y}if(!u.document)return u.addEventListener&&(S.disableWorkerMessageHandler||u.addEventListener("message",function(K){var Y=JSON.parse(K.data),ne=Y.language,U=Y.code,ae=Y.immediateClose;u.postMessage(S.highlight(U,S.languages[ne],ne)),ae&&u.close()},!1)),S;var V=S.util.currentScript();V&&(S.filename=V.src,V.hasAttribute("data-manual")&&(S.manual=!0));function H(){S.manual||S.highlightAll()}if(!S.manual){var ge=document.readyState;ge==="loading"||ge==="interactive"&&V&&V.defer?document.addEventListener("DOMContentLoaded",H):window.requestAnimationFrame?window.requestAnimationFrame(H):window.setTimeout(H,16)}return S}(r);n.exports&&(n.exports=o),typeof Hc<"u"&&(Hc.Prism=o)})(t_);var w4=t_.exports,D4=R1;R1.displayName="markup",R1.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function R1(n){n.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]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(o,u){var f={};f["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[u]},f.cdata=/^<!\[CDATA\[|\]\]>$/i;var g={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}};g["language-"+u]={pattern:/[\s\S]+/,inside:n.languages[u]};var v={};v[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:g},n.languages.insertBefore("markup","cdata",v)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}var S4=O1;O1.displayName="css",O1.aliases=[];function O1(n){(function(r){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var u=r.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(n)}var C4=L1;L1.displayName="clike",L1.aliases=[];function L1(n){n.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 x4=B1;B1.displayName="javascript",B1.aliases=["js"];function B1(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.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:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript}var $g=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Hc=="object"?Hc:{},E4=U4();$g.Prism={manual:!0,disableWorkerMessageHandler:!0};var _4=MI,T4=a4,n_=w4,A4=D4,F4=S4,$4=C4,P4=x4;E4();var j1={}.hasOwnProperty;function r_(){}r_.prototype=n_;var oa=new r_,N4=oa;oa.highlight=O4,oa.register=Pg,oa.alias=R4,oa.registered=L4,oa.listLanguages=B4,Pg(A4),Pg(F4),Pg($4),Pg(P4),oa.util.encode=M4,oa.Token.stringify=j4;function Pg(n){if(typeof n!="function"||!n.displayName)throw new Error("Expected `function` for `grammar`, got `"+n+"`");oa.languages[n.displayName]===void 0&&n(oa)}function R4(n,r){var o=oa.languages,u=n,f,g,v,S;r&&(u={},u[n]=r);for(f in u)for(g=u[f],g=typeof g=="string"?[g]:g,v=g.length,S=-1;++S<v;)o[g[S]]=o[f]}function O4(n,r){var o=n_.highlight,u;if(typeof n!="string")throw new Error("Expected `string` for `value`, got `"+n+"`");if(oa.util.type(r)==="Object")u=r,r=null;else{if(typeof r!="string")throw new Error("Expected `string` for `name`, got `"+r+"`");if(j1.call(oa.languages,r))u=oa.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return o.call(this,n,u,r)}function L4(n){if(typeof n!="string")throw new Error("Expected `string` for `language`, got `"+n+"`");return j1.call(oa.languages,n)}function B4(){var n=oa.languages,r=[],o;for(o in n)j1.call(n,o)&&typeof n[o]=="object"&&r.push(o);return r}function j4(n,r,o){var u;return typeof n=="string"?{type:"text",value:n}:oa.util.type(n)==="Array"?I4(n,r):(u={type:n.type,content:oa.Token.stringify(n.content,r,o),tag:"span",classes:["token",n.type],attributes:{},language:r,parent:o},n.alias&&(u.classes=u.classes.concat(n.alias)),oa.hooks.run("wrap",u),_4(u.tag+"."+u.classes.join("."),z4(u.attributes),u.content))}function I4(n,r){for(var o=[],u=n.length,f=-1,g;++f<u;)g=n[f],g!==""&&g!==null&&g!==void 0&&o.push(g);for(f=-1,u=o.length;++f<u;)g=o[f],o[f]=oa.Token.stringify(g,r,o);return o}function M4(n){return n}function z4(n){var r;for(r in n)n[r]=T4(n[r]);return n}function U4(){var n="Prism"in $g,r=n?$g.Prism:void 0;return o;function o(){n?$g.Prism=r:delete $g.Prism,n=void 0,r=void 0}}const I1=yy(N4);var Ng=Dj(I1,{});Ng.registerLanguage=function(n,r){return I1.register(r)},Ng.alias=function(n,r){return I1.alias(n,r)};const a_={'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 H4=M1;M1.displayName="jsx",M1.aliases=[];function M1(n){(function(r){var o=r.util.clone(r.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,f=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,g=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function v(_,$){return _=_.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return f}).replace(/<SPREAD>/g,function(){return g}),RegExp(_,$)}g=v(g).source,r.languages.jsx=r.languages.extend("markup",o),r.languages.jsx.tag.pattern=v(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=o.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:v(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:v(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var S=function(_){return _?typeof _=="string"?_:typeof _.content=="string"?_.content:_.content.map(S).join(""):""},E=function(_){for(var $=[],N=0;N<_.length;N++){var R=_[N],B=!1;if(typeof R!="string"&&(R.type==="tag"&&R.content[0]&&R.content[0].type==="tag"?R.content[0].content[0].content==="</"?$.length>0&&$[$.length-1].tagName===S(R.content[0].content[1])&&$.pop():R.content[R.content.length-1].content==="/>"||$.push({tagName:S(R.content[0].content[1]),openedBraces:0}):$.length>0&&R.type==="punctuation"&&R.content==="{"?$[$.length-1].openedBraces++:$.length>0&&$[$.length-1].openedBraces>0&&R.type==="punctuation"&&R.content==="}"?$[$.length-1].openedBraces--:B=!0),(B||typeof R=="string")&&$.length>0&&$[$.length-1].openedBraces===0){var M=S(R);N<_.length-1&&(typeof _[N+1]=="string"||_[N+1].type==="plain-text")&&(M+=S(_[N+1]),_.splice(N+1,1)),N>0&&(typeof _[N-1]=="string"||_[N-1].type==="plain-text")&&(M=S(_[N-1])+M,_.splice(N-1,1),N--),_[N]=new r.Token("plain-text",M,null,M)}R.content&&typeof R.content!="string"&&E(R.content)}};r.hooks.add("after-tokenize",function(_){_.language!=="jsx"&&_.language!=="tsx"||E(_.tokens)})})(n)}const q4=yy(H4),W4=Ra({tagName:"pkt-tag",elementClass:Gs,react:je,displayName:"PktTag",events:{onClose:"close"}}),Dh=je.forwardRef(({children:n,...r},o)=>O.jsx(W4,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));Dh.displayName="PktTag";const i_=je.forwardRef(({arrowNav:n=!0,tabs:r,onTabSelected:o},u)=>{const f=je.useRef([]);je.useEffect(()=>{f.current=f.current.slice(0,r.length)},[r]);const g=(S,E)=>{E.action&&E.action(S),o&&o(S)},v=(S,E)=>{var _,$;n&&(E.code==="ArrowLeft"&&S!==0&&((_=f.current[S-1])==null||_.focus()),E.code==="ArrowRight"&&S<r.length-1&&(($=f.current[S+1])==null||$.focus()),(E.code==="ArrowDown"||E.code==="Space")&&g(S,r[S]))};return O.jsx("div",{className:"pkt-tabs",ref:u,children:O.jsx("div",{className:"pkt-tabs__list",role:n?"tablist":"navigation",children:r.map((S,E)=>O.jsx(je.Fragment,{children:S.href?O.jsxs("a",{"aria-selected":!!S.active,role:n?"tab":void 0,href:S.href,"aria-controls":S.controls,className:`pkt-tabs__link ${S.active?"active":""}`,onKeyUp:_=>v(E,_),onClick:()=>g(E,S),tabIndex:S.active||!n?void 0:-1,ref:_=>{f.current[E]=_},children:[S.icon&&O.jsx(er,{name:S.icon,className:"pkt-icon--small"}),S.text,S.tag&&O.jsx(Dh,{skin:S.tag.skin,size:"small",children:S.tag.text})]}):O.jsxs("button",{"aria-selected":!!S.active,role:n?"tab":void 0,type:"button","aria-controls":S.controls,className:`pkt-tabs__button pkt-link-button ${S.active?"active":""}`,onKeyUp:_=>v(E,_),onClick:()=>g(E,S),tabIndex:S.active||!n?void 0:-1,ref:_=>{f.current[E]=_},children:[S.icon&&O.jsx(er,{name:S.icon,className:"pkt-icon--small"}),S.text,S.tag&&O.jsx(Dh,{skin:S.tag.skin,size:"small",children:S.tag.text})]},"b-"+E)},E))})})}),V4=Ra({tagName:"pkt-textinput",elementClass:us,react:je,displayName:"PktTextinput",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Rg=je.forwardRef(({helptext:n,...r},o)=>O.jsx(V4,{...r,ref:o,children:n&&O.jsx("div",{slot:"helptext",className:"pkt-contents",children:n})}));Rg.displayName="PktTextinput";const rb=({className:n,compact:r=!1,skin:o="basic",responsiveView:u=!0,children:f})=>O.jsx("table",{"data-testid":"pkt-table",className:cs(n,"pkt-table",{"pkt-table--responsive":u,"pkt-table--compact":r,"pkt-table--basic":o==="basic","pkt-table--zebra-blue":o==="zebra-blue"}),role:"table",children:f}),ab=({className:n,children:r})=>O.jsx("thead",{className:cs(n,"pkt-table__header",{}),role:"rowgroup",children:r}),ib=({children:n,className:r})=>O.jsx("tbody",{className:cs(r,"pkt-table__body",{}),role:"rowgroup",children:n}),jp=({className:n,children:r})=>O.jsx("tr",{className:cs(n,"pkt-table__row",{}),role:"row",children:r}),Qs=({className:n,children:r})=>O.jsx("th",{className:cs(n,"pkt-table__header-cell",{}),role:"columnheader",children:r}),Ho=({children:n,className:r,dataLabel:o})=>O.jsx("td",{className:cs(r,"pkt-table__data-cell",{}),"data-label":o,role:"cell","data-testid":"pkt-table__data-cell",children:n}),Y4=({specs:n})=>{const r=u=>Array.isArray(u)?u.join(`
|
|
1180
|
+
*/var o=function(u){var f=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,g=0,v={},S={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function K(Y){return Y instanceof E?new E(Y.type,K(Y.content),Y.alias):Array.isArray(Y)?Y.map(K):Y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(K){return Object.prototype.toString.call(K).slice(8,-1)},objId:function(K){return K.__id||Object.defineProperty(K,"__id",{value:++g}),K.__id},clone:function K(Y,ne){ne=ne||{};var U,ae;switch(S.util.type(Y)){case"Object":if(ae=S.util.objId(Y),ne[ae])return ne[ae];U={},ne[ae]=U;for(var oe in Y)Y.hasOwnProperty(oe)&&(U[oe]=K(Y[oe],ne));return U;case"Array":return ae=S.util.objId(Y),ne[ae]?ne[ae]:(U=[],ne[ae]=U,Y.forEach(function(Te,ye){U[ye]=K(Te,ne)}),U);default:return Y}},getLanguage:function(K){for(;K;){var Y=f.exec(K.className);if(Y)return Y[1].toLowerCase();K=K.parentElement}return"none"},setLanguage:function(K,Y){K.className=K.className.replace(RegExp(f,"gi"),""),K.classList.add("language-"+Y)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(U){var K=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(U.stack)||[])[1];if(K){var Y=document.getElementsByTagName("script");for(var ne in Y)if(Y[ne].src==K)return Y[ne]}return null}},isActive:function(K,Y,ne){for(var U="no-"+Y;K;){var ae=K.classList;if(ae.contains(Y))return!0;if(ae.contains(U))return!1;K=K.parentElement}return!!ne}},languages:{plain:v,plaintext:v,text:v,txt:v,extend:function(K,Y){var ne=S.util.clone(S.languages[K]);for(var U in Y)ne[U]=Y[U];return ne},insertBefore:function(K,Y,ne,U){U=U||S.languages;var ae=U[K],oe={};for(var Te in ae)if(ae.hasOwnProperty(Te)){if(Te==Y)for(var ye in ne)ne.hasOwnProperty(ye)&&(oe[ye]=ne[ye]);ne.hasOwnProperty(Te)||(oe[Te]=ae[Te])}var Ve=U[K];return U[K]=oe,S.languages.DFS(S.languages,function(rt,Ye){Ye===Ve&&rt!=K&&(this[rt]=oe)}),oe},DFS:function K(Y,ne,U,ae){ae=ae||{};var oe=S.util.objId;for(var Te in Y)if(Y.hasOwnProperty(Te)){ne.call(Y,Te,Y[Te],U||Te);var ye=Y[Te],Ve=S.util.type(ye);Ve==="Object"&&!ae[oe(ye)]?(ae[oe(ye)]=!0,K(ye,ne,null,ae)):Ve==="Array"&&!ae[oe(ye)]&&(ae[oe(ye)]=!0,K(ye,ne,Te,ae))}}},plugins:{},highlightAll:function(K,Y){S.highlightAllUnder(document,K,Y)},highlightAllUnder:function(K,Y,ne){var U={callback:ne,container:K,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};S.hooks.run("before-highlightall",U),U.elements=Array.prototype.slice.apply(U.container.querySelectorAll(U.selector)),S.hooks.run("before-all-elements-highlight",U);for(var ae=0,oe;oe=U.elements[ae++];)S.highlightElement(oe,Y===!0,U.callback)},highlightElement:function(K,Y,ne){var U=S.util.getLanguage(K),ae=S.languages[U];S.util.setLanguage(K,U);var oe=K.parentElement;oe&&oe.nodeName.toLowerCase()==="pre"&&S.util.setLanguage(oe,U);var Te=K.textContent,ye={element:K,language:U,grammar:ae,code:Te};function Ve(Ye){ye.highlightedCode=Ye,S.hooks.run("before-insert",ye),ye.element.innerHTML=ye.highlightedCode,S.hooks.run("after-highlight",ye),S.hooks.run("complete",ye),ne&&ne.call(ye.element)}if(S.hooks.run("before-sanity-check",ye),oe=ye.element.parentElement,oe&&oe.nodeName.toLowerCase()==="pre"&&!oe.hasAttribute("tabindex")&&oe.setAttribute("tabindex","0"),!ye.code){S.hooks.run("complete",ye),ne&&ne.call(ye.element);return}if(S.hooks.run("before-highlight",ye),!ye.grammar){Ve(S.util.encode(ye.code));return}if(Y&&u.Worker){var rt=new Worker(S.filename);rt.onmessage=function(Ye){Ve(Ye.data)},rt.postMessage(JSON.stringify({language:ye.language,code:ye.code,immediateClose:!0}))}else Ve(S.highlight(ye.code,ye.grammar,ye.language))},highlight:function(K,Y,ne){var U={code:K,grammar:Y,language:ne};if(S.hooks.run("before-tokenize",U),!U.grammar)throw new Error('The language "'+U.language+'" has no grammar.');return U.tokens=S.tokenize(U.code,U.grammar),S.hooks.run("after-tokenize",U),E.stringify(S.util.encode(U.tokens),U.language)},tokenize:function(K,Y){var ne=Y.rest;if(ne){for(var U in ne)Y[U]=ne[U];delete Y.rest}var ae=new N;return R(ae,ae.head,K),$(K,ae,Y,ae.head,0),M(ae)},hooks:{all:{},add:function(K,Y){var ne=S.hooks.all;ne[K]=ne[K]||[],ne[K].push(Y)},run:function(K,Y){var ne=S.hooks.all[K];if(!(!ne||!ne.length))for(var U=0,ae;ae=ne[U++];)ae(Y)}},Token:E};u.Prism=S;function E(K,Y,ne,U){this.type=K,this.content=Y,this.alias=ne,this.length=(U||"").length|0}E.stringify=function K(Y,ne){if(typeof Y=="string")return Y;if(Array.isArray(Y)){var U="";return Y.forEach(function(Ve){U+=K(Ve,ne)}),U}var ae={type:Y.type,content:K(Y.content,ne),tag:"span",classes:["token",Y.type],attributes:{},language:ne},oe=Y.alias;oe&&(Array.isArray(oe)?Array.prototype.push.apply(ae.classes,oe):ae.classes.push(oe)),S.hooks.run("wrap",ae);var Te="";for(var ye in ae.attributes)Te+=" "+ye+'="'+(ae.attributes[ye]||"").replace(/"/g,""")+'"';return"<"+ae.tag+' class="'+ae.classes.join(" ")+'"'+Te+">"+ae.content+"</"+ae.tag+">"};function _(K,Y,ne,U){K.lastIndex=Y;var ae=K.exec(ne);if(ae&&U&&ae[1]){var oe=ae[1].length;ae.index+=oe,ae[0]=ae[0].slice(oe)}return ae}function $(K,Y,ne,U,ae,oe){for(var Te in ne)if(!(!ne.hasOwnProperty(Te)||!ne[Te])){var ye=ne[Te];ye=Array.isArray(ye)?ye:[ye];for(var Ve=0;Ve<ye.length;++Ve){if(oe&&oe.cause==Te+","+Ve)return;var rt=ye[Ve],Ye=rt.inside,Fe=!!rt.lookbehind,Pe=!!rt.greedy,Ze=rt.alias;if(Pe&&!rt.pattern.global){var Ne=rt.pattern.toString().match(/[imsuy]*$/)[0];rt.pattern=RegExp(rt.pattern.source,Ne+"g")}for(var Be=rt.pattern||rt,ve=U.next,Re=ae;ve!==Y.tail&&!(oe&&Re>=oe.reach);Re+=ve.value.length,ve=ve.next){var xe=ve.value;if(Y.length>K.length)return;if(!(xe instanceof E)){var G=1,ce;if(Pe){if(ce=_(Be,Re,K,Fe),!ce||ce.index>=K.length)break;var vt=ce.index,gt=ce.index+ce[0].length,ut=Re;for(ut+=ve.value.length;vt>=ut;)ve=ve.next,ut+=ve.value.length;if(ut-=ve.value.length,Re=ut,ve.value instanceof E)continue;for(var ct=ve;ct!==Y.tail&&(ut<gt||typeof ct.value=="string");ct=ct.next)G++,ut+=ct.value.length;G--,xe=K.slice(Re,ut),ce.index-=Re}else if(ce=_(Be,0,xe,Fe),!ce)continue;var vt=ce.index,it=ce[0],Rt=xe.slice(0,vt),Lt=xe.slice(vt+it.length),sn=Re+xe.length;oe&&sn>oe.reach&&(oe.reach=sn);var Fn=ve.prev;Rt&&(Fn=R(Y,Fn,Rt),Re+=Rt.length),B(Y,Fn,G);var br=new E(Te,Ye?S.tokenize(it,Ye):it,Ze,it);if(ve=R(Y,Fn,br),Lt&&R(Y,ve,Lt),G>1){var nn={cause:Te+","+Ve,reach:sn};$(K,Y,ne,ve.prev,Re,nn),oe&&nn.reach>oe.reach&&(oe.reach=nn.reach)}}}}}}function N(){var K={value:null,prev:null,next:null},Y={value:null,prev:K,next:null};K.next=Y,this.head=K,this.tail=Y,this.length=0}function R(K,Y,ne){var U=Y.next,ae={value:ne,prev:Y,next:U};return Y.next=ae,U.prev=ae,K.length++,ae}function B(K,Y,ne){for(var U=Y.next,ae=0;ae<ne&&U!==K.tail;ae++)U=U.next;Y.next=U,U.prev=Y,K.length-=ae}function M(K){for(var Y=[],ne=K.head.next;ne!==K.tail;)Y.push(ne.value),ne=ne.next;return Y}if(!u.document)return u.addEventListener&&(S.disableWorkerMessageHandler||u.addEventListener("message",function(K){var Y=JSON.parse(K.data),ne=Y.language,U=Y.code,ae=Y.immediateClose;u.postMessage(S.highlight(U,S.languages[ne],ne)),ae&&u.close()},!1)),S;var V=S.util.currentScript();V&&(S.filename=V.src,V.hasAttribute("data-manual")&&(S.manual=!0));function H(){S.manual||S.highlightAll()}if(!S.manual){var ge=document.readyState;ge==="loading"||ge==="interactive"&&V&&V.defer?document.addEventListener("DOMContentLoaded",H):window.requestAnimationFrame?window.requestAnimationFrame(H):window.setTimeout(H,16)}return S}(r);n.exports&&(n.exports=o),typeof Hc<"u"&&(Hc.Prism=o)})(n_);var D4=n_.exports,S4=R1;R1.displayName="markup",R1.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function R1(n){n.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]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(o,u){var f={};f["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[u]},f.cdata=/^<!\[CDATA\[|\]\]>$/i;var g={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}};g["language-"+u]={pattern:/[\s\S]+/,inside:n.languages[u]};var v={};v[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:g},n.languages.insertBefore("markup","cdata",v)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}var C4=O1;O1.displayName="css",O1.aliases=[];function O1(n){(function(r){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var u=r.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(n)}var x4=L1;L1.displayName="clike",L1.aliases=[];function L1(n){n.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 E4=B1;B1.displayName="javascript",B1.aliases=["js"];function B1(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.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:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript}var $g=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Hc=="object"?Hc:{},_4=H4();$g.Prism={manual:!0,disableWorkerMessageHandler:!0};var T4=zI,A4=i4,r_=D4,F4=S4,$4=C4,P4=x4,N4=E4;_4();var j1={}.hasOwnProperty;function a_(){}a_.prototype=r_;var oa=new a_,R4=oa;oa.highlight=L4,oa.register=Pg,oa.alias=O4,oa.registered=B4,oa.listLanguages=j4,Pg(F4),Pg($4),Pg(P4),Pg(N4),oa.util.encode=z4,oa.Token.stringify=I4;function Pg(n){if(typeof n!="function"||!n.displayName)throw new Error("Expected `function` for `grammar`, got `"+n+"`");oa.languages[n.displayName]===void 0&&n(oa)}function O4(n,r){var o=oa.languages,u=n,f,g,v,S;r&&(u={},u[n]=r);for(f in u)for(g=u[f],g=typeof g=="string"?[g]:g,v=g.length,S=-1;++S<v;)o[g[S]]=o[f]}function L4(n,r){var o=r_.highlight,u;if(typeof n!="string")throw new Error("Expected `string` for `value`, got `"+n+"`");if(oa.util.type(r)==="Object")u=r,r=null;else{if(typeof r!="string")throw new Error("Expected `string` for `name`, got `"+r+"`");if(j1.call(oa.languages,r))u=oa.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return o.call(this,n,u,r)}function B4(n){if(typeof n!="string")throw new Error("Expected `string` for `language`, got `"+n+"`");return j1.call(oa.languages,n)}function j4(){var n=oa.languages,r=[],o;for(o in n)j1.call(n,o)&&typeof n[o]=="object"&&r.push(o);return r}function I4(n,r,o){var u;return typeof n=="string"?{type:"text",value:n}:oa.util.type(n)==="Array"?M4(n,r):(u={type:n.type,content:oa.Token.stringify(n.content,r,o),tag:"span",classes:["token",n.type],attributes:{},language:r,parent:o},n.alias&&(u.classes=u.classes.concat(n.alias)),oa.hooks.run("wrap",u),T4(u.tag+"."+u.classes.join("."),U4(u.attributes),u.content))}function M4(n,r){for(var o=[],u=n.length,f=-1,g;++f<u;)g=n[f],g!==""&&g!==null&&g!==void 0&&o.push(g);for(f=-1,u=o.length;++f<u;)g=o[f],o[f]=oa.Token.stringify(g,r,o);return o}function z4(n){return n}function U4(n){var r;for(r in n)n[r]=A4(n[r]);return n}function H4(){var n="Prism"in $g,r=n?$g.Prism:void 0;return o;function o(){n?$g.Prism=r:delete $g.Prism,n=void 0,r=void 0}}const I1=yy(R4);var Ng=Sj(I1,{});Ng.registerLanguage=function(n,r){return I1.register(r)},Ng.alias=function(n,r){return I1.alias(n,r)};const i_={'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 q4=M1;M1.displayName="jsx",M1.aliases=[];function M1(n){(function(r){var o=r.util.clone(r.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,f=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,g=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function v(_,$){return _=_.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return f}).replace(/<SPREAD>/g,function(){return g}),RegExp(_,$)}g=v(g).source,r.languages.jsx=r.languages.extend("markup",o),r.languages.jsx.tag.pattern=v(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=o.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:v(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:v(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var S=function(_){return _?typeof _=="string"?_:typeof _.content=="string"?_.content:_.content.map(S).join(""):""},E=function(_){for(var $=[],N=0;N<_.length;N++){var R=_[N],B=!1;if(typeof R!="string"&&(R.type==="tag"&&R.content[0]&&R.content[0].type==="tag"?R.content[0].content[0].content==="</"?$.length>0&&$[$.length-1].tagName===S(R.content[0].content[1])&&$.pop():R.content[R.content.length-1].content==="/>"||$.push({tagName:S(R.content[0].content[1]),openedBraces:0}):$.length>0&&R.type==="punctuation"&&R.content==="{"?$[$.length-1].openedBraces++:$.length>0&&$[$.length-1].openedBraces>0&&R.type==="punctuation"&&R.content==="}"?$[$.length-1].openedBraces--:B=!0),(B||typeof R=="string")&&$.length>0&&$[$.length-1].openedBraces===0){var M=S(R);N<_.length-1&&(typeof _[N+1]=="string"||_[N+1].type==="plain-text")&&(M+=S(_[N+1]),_.splice(N+1,1)),N>0&&(typeof _[N-1]=="string"||_[N-1].type==="plain-text")&&(M=S(_[N-1])+M,_.splice(N-1,1),N--),_[N]=new r.Token("plain-text",M,null,M)}R.content&&typeof R.content!="string"&&E(R.content)}};r.hooks.add("after-tokenize",function(_){_.language!=="jsx"&&_.language!=="tsx"||E(_.tokens)})})(n)}const W4=yy(q4),V4=Ra({tagName:"pkt-tag",elementClass:Gs,react:je,displayName:"PktTag",events:{onClose:"close"}}),Dh=je.forwardRef(({children:n,...r},o)=>O.jsx(V4,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));Dh.displayName="PktTag";const o_=je.forwardRef(({arrowNav:n=!0,tabs:r,onTabSelected:o},u)=>{const f=je.useRef([]);je.useEffect(()=>{f.current=f.current.slice(0,r.length)},[r]);const g=(S,E)=>{E.action&&E.action(S),o&&o(S)},v=(S,E)=>{var _,$;n&&(E.code==="ArrowLeft"&&S!==0&&((_=f.current[S-1])==null||_.focus()),E.code==="ArrowRight"&&S<r.length-1&&(($=f.current[S+1])==null||$.focus()),(E.code==="ArrowDown"||E.code==="Space")&&g(S,r[S]))};return O.jsx("div",{className:"pkt-tabs",ref:u,children:O.jsx("div",{className:"pkt-tabs__list",role:n?"tablist":"navigation",children:r.map((S,E)=>O.jsx(je.Fragment,{children:S.href?O.jsxs("a",{"aria-selected":!!S.active,role:n?"tab":void 0,href:S.href,"aria-controls":S.controls,className:`pkt-tabs__link ${S.active?"active":""}`,onKeyUp:_=>v(E,_),onClick:()=>g(E,S),tabIndex:S.active||!n?void 0:-1,ref:_=>{f.current[E]=_},children:[S.icon&&O.jsx(er,{name:S.icon,className:"pkt-icon--small"}),S.text,S.tag&&O.jsx(Dh,{skin:S.tag.skin,size:"small",children:S.tag.text})]}):O.jsxs("button",{"aria-selected":!!S.active,role:n?"tab":void 0,type:"button","aria-controls":S.controls,className:`pkt-tabs__button pkt-link-button ${S.active?"active":""}`,onKeyUp:_=>v(E,_),onClick:()=>g(E,S),tabIndex:S.active||!n?void 0:-1,ref:_=>{f.current[E]=_},children:[S.icon&&O.jsx(er,{name:S.icon,className:"pkt-icon--small"}),S.text,S.tag&&O.jsx(Dh,{skin:S.tag.skin,size:"small",children:S.tag.text})]},"b-"+E)},E))})})}),Y4=Ra({tagName:"pkt-textinput",elementClass:us,react:je,displayName:"PktTextinput",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Rg=je.forwardRef(({helptext:n,...r},o)=>O.jsx(Y4,{...r,ref:o,children:n&&O.jsx("div",{slot:"helptext",className:"pkt-contents",children:n})}));Rg.displayName="PktTextinput";const rb=({className:n,compact:r=!1,skin:o="basic",responsiveView:u=!0,children:f})=>O.jsx("table",{"data-testid":"pkt-table",className:cs(n,"pkt-table",{"pkt-table--responsive":u,"pkt-table--compact":r,"pkt-table--basic":o==="basic","pkt-table--zebra-blue":o==="zebra-blue"}),role:"table",children:f}),ab=({className:n,children:r})=>O.jsx("thead",{className:cs(n,"pkt-table__header",{}),role:"rowgroup",children:r}),ib=({children:n,className:r})=>O.jsx("tbody",{className:cs(r,"pkt-table__body",{}),role:"rowgroup",children:n}),jp=({className:n,children:r})=>O.jsx("tr",{className:cs(n,"pkt-table__row",{}),role:"row",children:r}),Qs=({className:n,children:r})=>O.jsx("th",{className:cs(n,"pkt-table__header-cell",{}),role:"columnheader",children:r}),Ho=({children:n,className:r,dataLabel:o})=>O.jsx("td",{className:cs(r,"pkt-table__data-cell",{}),"data-label":o,role:"cell","data-testid":"pkt-table__data-cell",children:n}),G4=({specs:n})=>{const r=u=>Array.isArray(u)?u.join(`
|
|
1180
1181
|
`):u,o=u=>typeof u=="boolean"?u?"true":"false":u;return O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Egenskaper"}),O.jsxs(rb,{compact:!0,children:[O.jsx(ab,{children:O.jsxs(jp,{children:[O.jsx(Qs,{children:"Prop"}),O.jsx(Qs,{children:"Navn"}),O.jsx(Qs,{children:"Beskrivelse"}),O.jsx(Qs,{children:"Type"}),O.jsx(Qs,{children:"Standardverdi"})]})}),O.jsx(ib,{children:Object.entries(n.props||{}).map(([u,f])=>O.jsxs(jp,{children:[O.jsx(Ho,{dataLabel:"Prop",children:O.jsx("pre",{children:u})}),O.jsx(Ho,{dataLabel:"Navn",children:!Array.isArray(f)&&f.name||u}),Array.isArray(f)?O.jsxs(O.Fragment,{children:[O.jsx(Ho,{dataLabel:"Beskrivelse"}),O.jsx(Ho,{dataLabel:"Type",children:O.jsx("pre",{children:f.join(`
|
|
1181
|
-
`)})})]}):O.jsxs(O.Fragment,{children:[O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(Ho,{dataLabel:"Type",children:O.jsx("pre",{children:f.type&&r(f.type)})}),O.jsx(Ho,{dataLabel:"Standardverdi",children:O.jsx("pre",{children:o(f.default)})})]})]},u))})]}),n.events&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Hendelser / handlinger"}),O.jsxs(rb,{compact:!0,children:[O.jsx(ab,{children:O.jsxs(jp,{children:[O.jsx(Qs,{children:"Event"}),O.jsx(Qs,{children:"Beskrivelse"}),O.jsx(Qs,{children:"Type"})]})}),O.jsx(ib,{children:Object.entries(n.events||{}).map(([u,f])=>O.jsxs(jp,{children:[O.jsx(Ho,{dataLabel:"Event",children:O.jsx("pre",{children:u})}),O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(Ho,{dataLabel:"Type",children:f.type})]},u))})]})]}),n.slots&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Innhold"}),O.jsxs(rb,{compact:!0,children:[O.jsx(ab,{children:O.jsxs(jp,{children:[O.jsx(Qs,{children:"Slot"}),O.jsx(Qs,{children:"Beskrivelse"})]})}),O.jsx(ib,{children:Object.entries(n.slots||{}).map(([u,f])=>O.jsxs(jp,{children:[O.jsx(Ho,{dataLabel:"Slot",children:O.jsx("pre",{children:u})}),O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})})]},u))})]})]})]})},G4=Ra({tagName:"pkt-select",elementClass:uh,react:je,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),ob=je.forwardRef(({children:n,helptext:r,...o},u)=>O.jsxs(G4,{ref:u,...o,children:[r&&O.jsx("div",{slot:"helptext",className:"pkt-contents",children:r}),n]}));ob.displayName="PktSelect";const Q4=[{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:"advice",fn:"advice.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:"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:"care-room",fn:"care-room.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{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:"",fn:"close.svg",cat:"none"},{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-large",fn:"cross-circle-fill-large.svg",cat:"none"},{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:"sign"},{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:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"paste",fn:"paste.svg",cat:"ui"},{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:"scooter",fn:"scooter.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"tickets",fn:"tickets.svg",cat:"none"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trash",fn:"trash.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-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"none"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],z1=({propKey:n,spec:r,props:o,handleChange:u})=>{const f={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},g=(_,$)=>{u(n,{...o[n],[_]:$})},v=(_,$,N)=>{const R=[...o[n]];R[_]={...R[_],[$]:N},u(n,R)},S=()=>{const _=[...o[n],{}];u(n,_)},E=_=>{const $=o[n].filter((N,R)=>R!==_);u(n,$)};if(r.type===f.BOOLEAN)return O.jsx(DC,{label:r.name||n,forId:n,helptext:r.description||null,hasFieldset:!0,requiredTag:r.required,children:O.jsx(Lk,{id:n,label:n,type:"checkbox",checked:o[n]||!1,onChange:_=>u(n,_.target.checked,r.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(r.type===f.ICON)return O.jsxs(ob,{label:r.name||n,helptext:r.description||null,id:n,value:o[n]||"",onChange:_=>u(n,_.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),Q4.map(_=>O.jsx("option",{value:_.id,children:_.id},_.id))]});if(r.type===f.DATE)return O.jsx(Bk,{id:n,label:r.name||n,helptext:r.description||null,value:o[n]||"",multiple:r.variant==="multiple",maxlength:999,onChange:_=>u(n,_.target.value),requiredTag:r.required});if(Array.isArray(r)||Array.isArray(r.type)||Array.isArray(r.values)){const _=Array.isArray(r)?r:r.values||r.type;return O.jsxs(ob,{label:r.name||n,helptext:r.description||null,id:n,value:o[n],onChange:$=>u(n,$.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),_.map($=>O.jsx("option",{value:$,children:$},$))]})}return r.type===f.NUMBER?O.jsx(Rg,{id:n,label:r.name||n,helptext:r.description||null,type:"number",value:o[n]||"",onChange:_=>u(n,parseFloat(_.currentTarget.value)),requiredTag:r.required}):r.type===f.OBJECT?(o[n]||(o[n]={}),O.jsxs("div",{children:[O.jsx("div",{className:"pkt-inputwrapper__label",children:O.jsx("h2",{children:r.name||n})}),r.description&&O.jsx("p",{children:r.description}),O.jsxs("fieldset",{children:[O.jsx("legend",{children:r.name||n}),Object.entries(r.properties).map(([_,$])=>O.jsx(z1,{propKey:_,props:o[n],spec:$,handleChange:(N,R)=>g(N,R)},_))]})]})):r.type===f.ARRAY&&r.items.type===f.OBJECT?(o[n]||(o[n]=[]),O.jsxs("div",{children:[O.jsx("div",{className:"pkt-inputwrapper__label",children:O.jsx("h2",{children:r.name||n})}),r.description&&O.jsx("p",{children:r.description}),o[n].map((_,$)=>O.jsx("div",{children:O.jsxs("fieldset",{children:[O.jsxs("legend",{children:["Item ",$+1]}),Object.entries(r.items.properties).map(([N,R])=>O.jsx(z1,{propKey:N,props:_,spec:R,handleChange:(B,M)=>v($,B,M)},N)),O.jsx(Xc,{onClick:()=>E($),children:"Fjern denne"})]})},$)),O.jsx(Xc,{onClick:S,children:"Legg til ny"})]})):O.jsx(Rg,{id:n,label:r.name||n,helptext:r.description||null,type:"text",value:o[n]||"",onChange:_=>u(n,r.type==="number"?parseFloat(_.currentTarget.value):_.currentTarget.value),requiredTag:r.required})};Ng.registerLanguage("jsx",q4);const o_=({specs:n,children:r,fullWidth:o})=>{var Pe,Ze;const u=n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).reduce((Ne,[Be,ve])=>(typeof ve=="object"&&!Array.isArray(ve)&&ve.default!==void 0&&ve.default!==null&&(ve.default==="false"&&(ve.default=!1),ve.default==="true"&&(ve.default=!0),Ne[Be]=ve.default),Ne),{}):{},[f,g]=je.useState(0),[v,S]=je.useState(u),[E,_]=je.useState("light"),[$,N]=je.useState(""),[R,B]=je.useState(""),[M,V]=je.useState(""),[H,ge]=je.useState("Rediger innhold"),[K,Y]=je.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${n.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),ne=Ne=>{Ne===1&&oe(),Ne===2&&ae(),V(""),Y(Be=>Be.map((ve,Re)=>({...ve,active:Re===Ne})))},U=je.useRef(null),ae=async()=>{if(n.isElement&&je.isValidElement(Ye)){const Ne=je.isValidElement(Ye)?Ye.type.displayName||Ye.type.name:n.name,Be=Object.entries(v).map(([Re,xe])=>{if(xe&&!ye(xe)&&!Ve(xe))return typeof xe=="object"?`${Re}='${JSON.stringify(xe)}'`:`${Re}="${xe}"`}).join(" "),ve=await Xy(`<${n.name||Ne} ${Be}>${H}</${n.name||Ne}>`,{parser:"html",plugins:[cE]});N(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
1182
|
-
`+ve)}else{const Ne=await Xy(U.current.innerHTML,{parser:"html",plugins:[
|
|
1182
|
+
`)})})]}):O.jsxs(O.Fragment,{children:[O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(Ho,{dataLabel:"Type",children:O.jsx("pre",{children:f.type&&r(f.type)})}),O.jsx(Ho,{dataLabel:"Standardverdi",children:O.jsx("pre",{children:o(f.default)})})]})]},u))})]}),n.events&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Hendelser / handlinger"}),O.jsxs(rb,{compact:!0,children:[O.jsx(ab,{children:O.jsxs(jp,{children:[O.jsx(Qs,{children:"Event"}),O.jsx(Qs,{children:"Beskrivelse"}),O.jsx(Qs,{children:"Type"})]})}),O.jsx(ib,{children:Object.entries(n.events||{}).map(([u,f])=>O.jsxs(jp,{children:[O.jsx(Ho,{dataLabel:"Event",children:O.jsx("pre",{children:u})}),O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})}),O.jsx(Ho,{dataLabel:"Type",children:f.type})]},u))})]})]}),n.slots&&O.jsxs(O.Fragment,{children:[O.jsx("h2",{children:"Innhold"}),O.jsxs(rb,{compact:!0,children:[O.jsx(ab,{children:O.jsxs(jp,{children:[O.jsx(Qs,{children:"Slot"}),O.jsx(Qs,{children:"Beskrivelse"})]})}),O.jsx(ib,{children:Object.entries(n.slots||{}).map(([u,f])=>O.jsxs(jp,{children:[O.jsx(Ho,{dataLabel:"Slot",children:O.jsx("pre",{children:u})}),O.jsx(Ho,{dataLabel:"Beskrivelse",children:O.jsx("span",{dangerouslySetInnerHTML:{__html:f.description||""}})})]},u))})]})]})]})},Q4=Ra({tagName:"pkt-select",elementClass:uh,react:je,displayName:"PktSelect",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),ob=je.forwardRef(({children:n,helptext:r,...o},u)=>O.jsxs(Q4,{ref:u,...o,children:[r&&O.jsx("div",{slot:"helptext",className:"pkt-contents",children:r}),n]}));ob.displayName="PktSelect";const K4=[{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:"advice",fn:"advice.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:"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:"care-room",fn:"care-room.svg",cat:"sign"},{id:"character-exclamation-mark",fn:"character-exclamation-mark.svg",cat:"ui"},{id:"character-information",fn:"character-information.svg",cat:"ui"},{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:"",fn:"close.svg",cat:"none"},{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-large",fn:"cross-circle-fill-large.svg",cat:"none"},{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:"sign"},{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:"park",fn:"park.svg",cat:"services"},{id:"partner-workout",fn:"partner-workout.svg",cat:"people-and-health"},{id:"paste",fn:"paste.svg",cat:"ui"},{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:"scooter",fn:"scooter.svg",cat:"ui"},{id:"share-outline",fn:"share-outline.svg",cat:"ui"},{id:"share",fn:"share.svg",cat:"ui"},{id:"slack",fn:"slack.svg",cat:"social"},{id:"smiley-neutral",fn:"smiley-neutral.svg",cat:"feedback"},{id:"smiley-sad",fn:"smiley-sad.svg",cat:"feedback"},{id:"smiley-smile",fn:"smiley-smile.svg",cat:"feedback"},{id:"sort",fn:"sort.svg",cat:"ui"},{id:"sound-off",fn:"sound-off.svg",cat:"ui"},{id:"sound-on",fn:"sound-on.svg",cat:"ui"},{id:"sparkles",fn:"sparkles.svg",cat:"ui"},{id:"svg-logo",fn:"svg.svg",cat:"social"},{id:"swingset",fn:"swingset.svg",cat:"services"},{id:"table",fn:"table.svg",cat:"ui"},{id:"target",fn:"target.svg",cat:"ui"},{id:"thumbs-down",fn:"thumbs-down.svg",cat:"feedback"},{id:"thumbs-up",fn:"thumbs-up.svg",cat:"feedback"},{id:"tickets",fn:"tickets.svg",cat:"none"},{id:"trail",fn:"trail.svg",cat:"sign"},{id:"trash-can",fn:"trash-can.svg",cat:"ui"},{id:"trash",fn:"trash.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-boys",fn:"wardrobe-boys.svg",cat:"sign"},{id:"wardrobe-girls",fn:"wardrobe-girls.svg",cat:"sign"},{id:"wardrobe",fn:"wardrobe.svg",cat:"sign"},{id:"water-faucet",fn:"water-faucet.svg",cat:"services"},{id:"wheelchair",fn:"wheelchair.svg",cat:"none"},{id:"wifi",fn:"wifi.svg",cat:"sign"},{id:"wine-bottle",fn:"wine-bottle.svg",cat:"people-and-health"},{id:"workplace",fn:"workplace.svg",cat:"social"},{id:"wrench",fn:"wrench.svg",cat:"ui"}],z1=({propKey:n,spec:r,props:o,handleChange:u})=>{const f={BOOLEAN:"boolean",ICON:"icon",ARRAY:"array",OBJECT:"object",DATE:"ISOdatestring",NUMBER:"number",STRING:"string"},g=(_,$)=>{u(n,{...o[n],[_]:$})},v=(_,$,N)=>{const R=[...o[n]];R[_]={...R[_],[$]:N},u(n,R)},S=()=>{const _=[...o[n],{}];u(n,_)},E=_=>{const $=o[n].filter((N,R)=>R!==_);u(n,$)};if(r.type===f.BOOLEAN)return O.jsx(SC,{label:r.name||n,forId:n,helptext:r.description||null,hasFieldset:!0,requiredTag:r.required,children:O.jsx(Lk,{id:n,label:n,type:"checkbox",checked:o[n]||!1,onChange:_=>u(n,_.target.checked,r.displayAsFalse),labelPosition:"right",isSwitch:!0})});if(r.type===f.ICON)return O.jsxs(ob,{label:r.name||n,helptext:r.description||null,id:n,value:o[n]||"",onChange:_=>u(n,_.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),K4.map(_=>O.jsx("option",{value:_.id,children:_.id},_.id))]});if(r.type===f.DATE)return O.jsx(Bk,{id:n,label:r.name||n,helptext:r.description||null,value:o[n]||"",multiple:r.variant==="multiple",maxlength:999,onChange:_=>u(n,_.target.value),requiredTag:r.required});if(Array.isArray(r)||Array.isArray(r.type)||Array.isArray(r.values)){const _=Array.isArray(r)?r:r.values||r.type;return O.jsxs(ob,{label:r.name||n,helptext:r.description||null,id:n,value:o[n],onChange:$=>u(n,$.target.value),requiredTag:r.required,children:[O.jsx("option",{value:""}),_.map($=>O.jsx("option",{value:$,children:$},$))]})}return r.type===f.NUMBER?O.jsx(Rg,{id:n,label:r.name||n,helptext:r.description||null,type:"number",value:o[n]||"",onChange:_=>u(n,parseFloat(_.currentTarget.value)),requiredTag:r.required}):r.type===f.OBJECT?(o[n]||(o[n]={}),O.jsxs("div",{children:[O.jsx("div",{className:"pkt-inputwrapper__label",children:O.jsx("h2",{children:r.name||n})}),r.description&&O.jsx("p",{children:r.description}),O.jsxs("fieldset",{children:[O.jsx("legend",{children:r.name||n}),Object.entries(r.properties).map(([_,$])=>O.jsx(z1,{propKey:_,props:o[n],spec:$,handleChange:(N,R)=>g(N,R)},_))]})]})):r.type===f.ARRAY&&r.items.type===f.OBJECT?(o[n]||(o[n]=[]),O.jsxs("div",{children:[O.jsx("div",{className:"pkt-inputwrapper__label",children:O.jsx("h2",{children:r.name||n})}),r.description&&O.jsx("p",{children:r.description}),o[n].map((_,$)=>O.jsx("div",{children:O.jsxs("fieldset",{children:[O.jsxs("legend",{children:["Item ",$+1]}),Object.entries(r.items.properties).map(([N,R])=>O.jsx(z1,{propKey:N,props:_,spec:R,handleChange:(B,M)=>v($,B,M)},N)),O.jsx(Xc,{onClick:()=>E($),children:"Fjern denne"})]})},$)),O.jsx(Xc,{onClick:S,children:"Legg til ny"})]})):O.jsx(Rg,{id:n,label:r.name||n,helptext:r.description||null,type:"text",value:o[n]||"",onChange:_=>u(n,r.type==="number"?parseFloat(_.currentTarget.value):_.currentTarget.value),requiredTag:r.required})};Ng.registerLanguage("jsx",W4);const s_=({specs:n,children:r,fullWidth:o})=>{var Pe,Ze;const u=n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).reduce((Ne,[Be,ve])=>(typeof ve=="object"&&!Array.isArray(ve)&&ve.default!==void 0&&ve.default!==null&&(ve.default==="false"&&(ve.default=!1),ve.default==="true"&&(ve.default=!0),Ne[Be]=ve.default),Ne),{}):{},[f,g]=je.useState(0),[v,S]=je.useState(u),[E,_]=je.useState("light"),[$,N]=je.useState(""),[R,B]=je.useState(""),[M,V]=je.useState(""),[H,ge]=je.useState("Rediger innhold"),[K,Y]=je.useState([{text:"Rediger",icon:"adjust",active:!0},{text:"Kode (React)",icon:"react",active:!1},{text:`Kode (${n.isElement?"Element":"HTML"})`,icon:"code",active:!1},{text:"Egenskaper",icon:"list",active:!1}]),ne=Ne=>{Ne===1&&oe(),Ne===2&&ae(),V(""),Y(Be=>Be.map((ve,Re)=>({...ve,active:Re===Ne})))},U=je.useRef(null),ae=async()=>{if(n.isElement&&je.isValidElement(Ye)){const Ne=je.isValidElement(Ye)?Ye.type.displayName||Ye.type.name:n.name,Be=Object.entries(v).map(([Re,xe])=>{if(xe&&!ye(xe)&&!Ve(xe))return typeof xe=="object"?`${Re}='${JSON.stringify(xe)}'`:`${Re}="${xe}"`}).join(" "),ve=await Xy(`<${n.name||Ne} ${Be}>${H}</${n.name||Ne}>`,{parser:"html",plugins:[dE]});N(`<!-- Denne koden bør testes grundig før bruk. Spør en Punkt-utvikler om du er usikker. -->
|
|
1183
|
+
`+ve)}else{const Ne=await Xy(U.current.innerHTML,{parser:"html",plugins:[dE]});N(Ne.replace(/<\!--.*?-->/g,""))}},oe=async()=>{const Ne=await IR(Ye);return B(Ne),Promise.resolve()},Te=(Ne,Be)=>{navigator.clipboard.writeText(Be).then(()=>{V(Ne),console.log("Copied to clipboard",Ne)})},ye=Ne=>Array.isArray(Ne)&&Ne.length===0,Ve=Ne=>Ne&&typeof Ne=="object"&&!Object.keys(Ne).length,rt=(Ne,Be)=>O.jsxs("div",{className:"pkt-preview__copy",children:[M===Ne&&O.jsx("span",{className:"pkt-preview__copied",children:"Kode kopiert til utklippstavle"}),O.jsx(Xc,{skin:"tertiary",variant:"icon-only",size:"small",iconName:"copy",onClick:()=>Te(Ne,Be),children:"Kopier kode"})]}),Ye=je.isValidElement(r)&&je.cloneElement(r,{...v},r.props.children?r.props.children:(Pe=n.slots)!=null&&Pe.default?H:null),Fe=(Ne,Be,ve=!1)=>{if(g(f+1),!ve&&(!Be||Be=="false")){const{[Ne]:Re,...xe}=v;S(xe)}else S(Re=>({...Re,[Ne]:Be}))};return O.jsxs("div",{className:"pkt-preview",children:[O.jsxs("div",{className:"pkt-preview__component-container","data-mode":E,children:[n["dark-mode"]&&O.jsx("div",{className:"pkt-preview__mode",children:O.jsx(Lk,{id:"mode",label:"Dark mode",type:"checkbox",checked:E==="dark",onChange:Ne=>_(Ne.target.checked?"dark":"light"),labelPosition:"right",isSwitch:!0})}),O.jsx("div",{className:`pkt-preview__component ${o&&"pkt-preview__component--fullwidth"}`,ref:U,children:O.jsx("div",{children:Ye})},f)]}),O.jsx(o_,{tabs:K,onTabSelected:ne}),O.jsxs("div",{className:`pkt-grid pkt-preview__opts ${K[0].active?"":"pkt-hide"}`,children:[((Ze=n.slots)==null?void 0:Ze.default)&&!r.props.children&&O.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[O.jsx(Dh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:"children"}),O.jsx(Rg,{id:"slot",label:"Slot",helptext:n.slots.default.description||"Innholdet i slot",type:"text",value:H,onChange:Ne=>ge(Ne.currentTarget.value)})]}),n.props&&typeof n.props=="object"&&!Array.isArray(n.props)?Object.entries(n.props).map(([Ne,Be])=>O.jsxs("div",{className:"pkt-cell pkt-cell--span12 pkt-cell--span6-phablet-up",children:[O.jsx(Dh,{size:"small",skin:"blue-light",textStyle:"thin-text",children:Ne}),O.jsx(z1,{propKey:Ne,props:v,spec:Be,handleChange:Fe})]},Ne)):O.jsx("p",{children:"OBS! Specs mangler props!"})]}),O.jsxs("div",{className:`pkt-preview__code ${K[1].active?"":"pkt-hide"}`,children:[O.jsx(Ng,{language:"jsx",style:i_,children:R}),rt("jsx",R)]}),O.jsxs("div",{className:`pkt-preview__code ${K[2].active?"":"pkt-hide"}`,children:[O.jsx(Ng,{language:"html",style:i_,children:$}),rt("html",$)]}),O.jsx("div",{className:`pkt-preview__specs ${K[3].active?"":"pkt-hide"}`,children:O.jsx(G4,{specs:n})})]})};s_.displayName="PktPreview";const Z4=Ra({tagName:"pkt-progressbar",elementClass:Kr,react:je,displayName:"PktProgressbar",events:{}}),l_=je.forwardRef(({children:n,...r},o)=>O.jsx(Z4,{ref:o,...r,children:O.jsx("div",{className:"pkt-contents",children:n})}));l_.displayName="PktProgressbar";const X4=Ra({tagName:"pkt-radiobutton",elementClass:$l,react:je,displayName:"PktRadioButton",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),J4=je.forwardRef(({appearance:n="local",disabled:r=!1,fullwidth:o=!1,id:u,label:f,name:g,placeholder:v="Søk…",suggestions:S,value:E="",action:_,method:$,onChange:N,onSearch:R,onSuggestionClick:B,...M},V)=>{const H=(U,ae)=>{U?U():B&&B(ae)},ge=U=>{E=U.target.value},K=`pkt-searchinput pkt-searchinput--${n} ${o?"pkt-searchinput--fullwidth":""}`,Y=f?"label":"div";let ne;return _?ne=U=>O.jsx("form",{role:"search",className:K,action:_,method:$,children:U}):ne=U=>O.jsx("div",{role:"search",className:K,children:U}),ne(O.jsxs(O.Fragment,{children:[O.jsxs(Y,{htmlFor:f?u:void 0,className:f?"pkt-inputwrapper__label":"",children:[f&&O.jsx(O.Fragment,{children:f}),O.jsxs("div",{className:n==="local"?"pkt-input__container":"pkt-searchinput__field",children:[O.jsx("input",{className:`pkt-input ${o?"pkt-input--fullwidth":""}`,type:"search",name:g||u,id:u,placeholder:v,defaultValue:E,disabled:r,autoComplete:"off","aria-autocomplete":"list",ref:V,"aria-controls":`${u}-suggestions`,onChange:N||ge,onKeyUp:R&&(U=>{U.key==="Enter"&&(U.preventDefault(),R(E))}),...M}),O.jsx(Xc,{className:`pkt-searchinput__button ${n==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:n==="local"?"tertiary":"primary",color:n==="global"?"yellow":void 0,type:"submit",disabled:r,onClick:R&&(U=>{U.preventDefault(),R(E)}),children:f||v})]})]}),S&&O.jsx("ul",{id:`${u}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:S.map((U,ae)=>O.jsx("li",{children:je.createElement(U.href?"a":U.onClick?"button":"div",{href:U.href,className:`pkt-searchinput__suggestion ${U.onClick?"pkt-link-button":""} ${U.href||U.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:U.onClick?"button":void 0,onClick:()=>H(U.onClick,ae),onKeyUp:()=>H(U.onClick,ae)},O.jsxs(O.Fragment,{children:[U.title&&O.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:U.title}),U.text&&O.jsx("p",{className:"pkt-searchinput__suggestion-text",children:U.text})]}))},`search-suggestion-${ae}`))})]}))}),eM=je.forwardRef(({activeStep:n,className:r,children:o,hideNonActiveSteps:u=!1,hideNonActiveStepsContent:f=!0,orientation:g="vertical",...v},S)=>{const E=cs(r,"pkt-stepper",g==="horizontal"?"pkt-stepper--horizontal":"pkt-stepper--vertical"),_=je.Children.map(o,($,N)=>je.isValidElement($)?je.cloneElement($,{className:cs($.props.className,{"pkt-step--hideStep":u&&N!==n,"pkt-step--hideContent":f&&N!==n})}):$);return O.jsx("ol",{"data-testid":"pkt-stepper",className:E,ref:S,...v,children:_})}),tM=O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:O.jsx("circle",{cx:"12",cy:"12",r:"7",style:{fill:"var(--pkt-color-grays-grey-200, #CCC)"}})}),nM=O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[O.jsx("circle",{opacity:".15",cx:"12",cy:"12",r:"12",fill:"#2A2859"}),O.jsx("circle",{cx:"12",cy:"12",r:"6",fill:"#2A2859"})]}),rM=O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[O.jsx("path",{fill:"#2A2859",d:"M3 3h18v18H3z"}),O.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"})]}),aM=({children:n,className:r,status:o="incomplete",title:u})=>O.jsxs("li",{className:cs("pkt-step",r,`pkt-step--${o}`),"data-testid":"pkt-step",children:[O.jsx("span",{className:"pkt-step__line pkt-step__line--1","aria-hidden":!0}),O.jsx("span",{className:"pkt-step__line pkt-step__line--2","aria-hidden":!0}),O.jsx("span",{className:cs("pkt-step__indicator"),children:o==="current"?nM:o==="completed"?rM:tM}),O.jsx("span",{className:"pkt-step__line pkt-step__line--3","aria-hidden":!0}),O.jsxs("div",{className:"pkt-step__wrapper",children:[O.jsx("div",{className:"pkt-step__title",children:u}),O.jsx("div",{className:"pkt-step__content",children:n})]})]}),iM=Ra({tagName:"pkt-textarea",elementClass:Zc,react:je,displayName:"PktTextarea",events:{onChange:"change",onInput:"change",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),u_=je.forwardRef(({helptext:n,...r},o)=>O.jsx(iM,{...r,ref:o,children:n&&O.jsx("div",{slot:"helptext",className:"pkt-contents",children:n})}));u_.displayName="PktTextarea",Bt.PktAccordion=JF,Bt.PktAccordionItem=R3,Bt.PktAlert=yC,Bt.PktBackLink=bC,Bt.PktBreadcrumbs=L3,Bt.PktButton=Xc,Bt.PktCard=kC,Bt.PktCheckbox=Lk,Bt.PktDatepicker=Bk,Bt.PktFooter=M3,Bt.PktFooterSimple=z3,Bt.PktHeader=U3,Bt.PktHelptext=wC,Bt.PktIcon=er,Bt.PktInput=DC,Bt.PktInputWrapper=SC,Bt.PktLink=CC,Bt.PktLinkCard=xC,Bt.PktLoader=EC,Bt.PktMessagebox=_C,Bt.PktModal=TC,Bt.PktPreview=s_,Bt.PktProgressbar=l_,Bt.PktRadioButton=X4,Bt.PktSearchInput=J4,Bt.PktSelect=ob,Bt.PktStep=aM,Bt.PktStepper=eM,Bt.PktTable=rb,Bt.PktTableBody=ib,Bt.PktTableDataCell=Ho,Bt.PktTableHeader=ab,Bt.PktTableHeaderCell=Qs,Bt.PktTableRow=jp,Bt.PktTabs=o_,Bt.PktTag=Dh,Bt.PktTextarea=u_,Bt.PktTextinput=Rg,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})});
|