PageSourceSearch

https://dactyl.dev/assets/app-BKVzEjz1.js

js dactyl.dev collected 2026-10-05 02:52:38 UTC 1,044,915 bytes, 301 lines download raw bytes

vendor: 5,669 bytes, lines 1-17
1function FN(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ap={exports:{}},Cl={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Z0;function jN(){if(Z0)return Cl;Z0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Cl.Fragment=t,Cl.jsx=n,Cl.jsxs=n,Cl}var X0;function $N(){return X0||(X0=1,Ap.exports=jN()),Ap.exports}var G=$N(),Cp={exports:{}},ot={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var W0;function HN(){if(W0)return ot;W0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=_&&z[_]||z["@@iterator"],typeof z=="function"?z:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,S={};function x(z,Y,U){this.props=z,this.context=Y,this.refs=S,this.updater=U||E}x.prototype.isReactComponent={},x.prototype.setState=function(z,Y){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Y,"setState")},x.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function C(){}C.prototype=x.prototype;function N(z,Y,U){this.props=z,this.context=Y,this.refs=S,this.updater=U||E}var F=N.prototype=new C;F.constructor=N,y(F,x.prototype),F.isPureReactComponent=!0;var R=Array.isArray;function D(){}var M={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function O(z,Y,U){var ue=U.ref;return{$$typeof:e,type:z,key:Y,ref:ue!==void 0?ue:null,props:U}}function I(z,Y){return O(z.type,Y,z.props)}function B(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function k(z){var Y={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(U){return Y[U]})}var q=/\/+/g;function w(z,Y){return typeof z=="object"&&z!==null&&z.key!=null?k(""+z.key):Y.toString(36)}function $(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(D,D):(z.status="pending",z.then(function(Y){z.status==="pending"&&(z.status="fulfilled",z.value=Y)},function(Y){z.status==="pending"&&(z.status="rejected",z.reason=Y)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function K(z,Y,U,ue,de){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var je=!1;if(z===null)je=!0;else switch(Se){case"bigint":case"string":case"number":je=!0;break;case"object":switch(z.$$typeof){case e:case t:je=!0;break;case p:return je=z._init,K(je(z._payload),Y,U,ue,de)}}if(je)return de=de(z),je=ue===""?"."+w(z,0):ue,R(de)?(U="",je!=null&&(U=je.replace(q,"$&/")+"/"),K(de,Y,U,"",function(ce){return ce})):de!=null&&(B(de)&&(de=I(de,U+(de.key==null||z&&z.key===de.key?"":(""+de.key).replace(q,"$&/")+"/")+je)),Y.push(de)),1;je=0;var re=ue===""?".":ue+":";if(R(z))for(var ne=0;ne<z.length;ne++)ue=z[ne],Se=re+w(ue,ne),je+=K(ue,Y,U,Se,de);else if(ne=v(z),typeof ne=="function")for(z=ne.call(z),ne=0;!(ue=z.next()).done;)ue=ue.value,Se=re+w(ue,ne++),je+=K(ue,Y,U,Se,de);else if(Se==="object"){if(typeof z.then=="function")return K($(z),Y,U,ue,de);throw Y=String(z),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return je}function Z(z,Y,U){if(z==null)return z;var ue=[],de=0;return K(z,ue,"","",function(Se){return Y.call(U,Se,de++)}),ue}function ae(z){if(z._status===-1){var Y=z._result;Y=Y(),Y.then(function(U){(z._status===0||z._status===-1)&&(z._status=1,z._result=U)},function(U){(z._status===0||z._status===-1)&&(z._status=2,z._result=U)}),z._status===-1&&(z._status=0,z._result=Y)}if(z._status===1)return z._result.default;throw z._result}var ie=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)}
vendor: 4,470 bytes, lines 17-25
17,P={map:Z,forEach:function(z,Y,U){Z(z,function(){Y.apply(this,arguments)},U)},count:function(z){var Y=0;return Z(z,function(){Y++}),Y},toArray:function(z){return Z(z,function(Y){return Y})||[]},only:function(z){if(!B(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return ot.Activity=g,ot.Children=P,ot.Component=x,ot.Fragment=n,ot.Profiler=s,ot.PureComponent=N,ot.StrictMode=i,ot.Suspense=f,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ot.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},ot.cache=function(z){return function(){return z.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(z,Y,U){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ue=y({},z.props),de=z.key;if(Y!=null)for(Se in Y.key!==void 0&&(de=""+Y.key),Y)!L.call(Y,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&Y.ref===void 0||(ue[Se]=Y[Se]);var Se=arguments.length-2;if(Se===1)ue.children=U;else if(1<Se){for(var je=Array(Se),re=0;re<Se;re++)je[re]=arguments[re+2];ue.children=je}return O(z.type,de,ue)},ot.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:l,_context:z},z},ot.createElement=function(z,Y,U){var ue,de={},Se=null;if(Y!=null)for(ue in Y.key!==void 0&&(Se=""+Y.key),Y)L.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(de[ue]=Y[ue]);var je=arguments.length-2;if(je===1)de.children=U;else if(1<je){for(var re=Array(je),ne=0;ne<je;ne++)re[ne]=arguments[ne+2];de.children=re}if(z&&z.defaultProps)for(ue in je=z.defaultProps,je)de[ue]===void 0&&(de[ue]=je[ue]);return O(z,Se,de)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(z){return{$$typeof:u,render:z}},ot.isValidElement=B,ot.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:ae}},ot.memo=function(z,Y){return{$$typeof:h,type:z,compare:Y===void 0?null:Y}},ot.startTransition=function(z){var Y=M.T,U={};M.T=U;try{var ue=z(),de=M.S;de!==null&&de(U,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(D,ie)}catch(Se){ie(Se)}finally{Y!==null&&U.types!==null&&(Y.types=U.types),M.T=Y}},ot.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ot.use=function(z){return M.H.use(z)},ot.useActionState=function(z,Y,U){return M.H.useActionState(z,Y,U)},ot.useCallback=function(z,Y){return M.H.useCallback(z,Y)},ot.useContext=function(z){return M.H.useContext(z)},ot.useDebugValue=function(){},ot.useDeferredValue=function(z,Y){return M.H.useDeferredValue(z,Y)},ot.useEffect=function(z,Y){return M.H.useEffect(z,Y)},ot.useEffectEvent=function(z){return M.H.useEffectEvent(z)},ot.useId=function(){return M.H.useId()},ot.useImperativeHandle=function(z,Y,U){return M.H.useImperativeHandle(z,Y,U)},ot.useInsertionEffect=function(z,Y){return M.H.useInsertionEffect(z,Y)},ot.useLayoutEffect=function(z,Y){return M.H.useLayoutEffect(z,Y)},ot.useMemo=function(z,Y){return M.H.useMemo(z,Y)},ot.useOptimistic=function(z,Y){return M.H.useOptimistic(z,Y)},ot.useReducer=function(z,Y,U){return M.H.useReducer(z,Y,U)},ot.useRef=function(z){return M.H.useRef(z)},ot.useState=function(z){return M.H.useState(z)},ot.useSyncExternalStore=function(z,Y,U){return M.H.useSyncExternalStore(z,Y,U)},ot.useTransition=function(){return M.H.useTransition()},ot.version="19.2.7",ot}var Q0;function dv(){return Q0||(Q0=1,Cp.exports=HN()),Cp.exports}var Q=dv();const GN=Ro(Q),fv=FN({__proto__:null,default:GN},[Q]);var Np={exports:{}},Nl={},Op={exports:{}},Rp={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var J0;function qN(){return J0||(J0=1,(function(e){function t(K,Z){var ae=K.length;K.push(Z);e:for(;0<ae;){var ie=ae-1>>>1,P=K[ie];if(0<s(P,Z))K[ie]=Z,K[ae]=P,ae=ie;else break e}}function n(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var Z=K[0],ae=K.pop();if(ae!==Z){K[0]=ae;e:for(var ie=0,P=K.length,z=P>>>1;ie<z;){var Y=2*(ie+1)-1,U=K[Y],ue=Y+1,de=K[ue];if(0>s(U,ae))ue<P&&0>s(de,U)?(K[ie]=de,K[ue]=ae,ie=ue):(K[ie]=U,K[Y]=ae,ie=Y);else if(ue<P&&0>s(de,ae))K[ie]=de,K[ue]=ae,ie=ue;else break e}}return Z}function s(K,Z){var ae=K.sortIndex-Z.sortIndex;
vendor: 11,260 bytes, lines 25-41
25return ae!==0?ae:K.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],p=1,g=null,_=3,v=!1,E=!1,y=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function F(K){for(var Z=n(h);Z!==null;){if(Z.callback===null)i(h);else if(Z.startTime<=K)i(h),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=n(h)}}function R(K){if(y=!1,F(K),!E)if(n(f)!==null)E=!0,D||(D=!0,k());else{var Z=n(h);Z!==null&&$(R,Z.startTime-K)}}var D=!1,M=-1,L=5,O=-1;function I(){return S?!0:!(e.unstable_now()-O<L)}function B(){if(S=!1,D){var K=e.unstable_now();O=K;var Z=!0;try{e:{E=!1,y&&(y=!1,C(M),M=-1),v=!0;var ae=_;try{t:{for(F(K),g=n(f);g!==null&&!(g.expirationTime>K&&I());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,_=g.priorityLevel;var P=ie(g.expirationTime<=K);if(K=e.unstable_now(),typeof P=="function"){g.callback=P,F(K),Z=!0;break t}g===n(f)&&i(f),F(K)}else i(f);g=n(f)}if(g!==null)Z=!0;else{var z=n(h);z!==null&&$(R,z.startTime-K),Z=!1}}break e}finally{g=null,_=ae,v=!1}Z=void 0}}finally{Z?k():D=!1}}}var k;if(typeof N=="function")k=function(){N(B)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,w=q.port2;q.port1.onmessage=B,k=function(){w.postMessage(null)}}else k=function(){x(B,0)};function $(K,Z){M=x(function(){K(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(K){switch(_){case 1:case 2:case 3:var Z=3;break;default:Z=_}var ae=_;_=Z;try{return K()}finally{_=ae}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(K,Z){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ae=_;_=K;try{return Z()}finally{_=ae}},e.unstable_scheduleCallback=function(K,Z,ae){var ie=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ie+ae:ie):ae=ie,K){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=ae+P,K={id:p++,callback:Z,priorityLevel:K,startTime:ae,expirationTime:P,sortIndex:-1},ae>ie?(K.sortIndex=ae,t(h,K),n(f)===null&&K===n(h)&&(y?(C(M),M=-1):y=!0,$(R,ae-ie))):(K.sortIndex=P,t(f,K),E||v||(E=!0,D||(D=!0,k()))),K},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(K){var Z=_;return function(){var ae=_;_=Z;try{return K.apply(this,arguments)}finally{_=ae}}}})(Rp)),Rp}var e1;function YN(){return e1||(e1=1,Op.exports=qN()),Op.exports}var Mp={exports:{}},$n={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var t1;function KN(){if(t1)return $n;t1=1;var e=dv();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,$n.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,p)},$n.flushSync=function(f){var h=c.T,p=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=p,i.d.f()}},$n.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},$n.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},$n.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin),_=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:_,fetchPriority:v}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:_,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$n.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},$n.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin);i.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$n.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},$n.requestFormReset=function(f){i.d.r(f)},$n.unstable_batchedUpdates=function(f,h){return f(h)},$n.useFormState=function(f,h,p){return c.H.useFormState(f,h,p)},$n.useFormStatus=function(){return c.H.useHostTransitionStatus()},$n.version="19.2.7",$n}var n1;function nw(){if(n1)return Mp.exports;n1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mp.exports=KN(),Mp.exports}var r1;function VN(){if(r1)return Nl;r1=1;/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var e=YN(),t=dv(),n=nw();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function u(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(l(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,d=a;;){var m=o.return;if(m===null)break;var b=m.alternate;if(b===null){if(d=m.return,d!==null){o=d;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===o)return f(m),r;if(b===d)return f(m),a;b=b.sibling}throw Error(i(188))}if(o.return!==d.return)o=m,d=b;else{for(var A=!1,j=m.child;j;){if(j===o){A=!0,o=m,d=b;break}if(j===d){A=!0,d=m,o=b;break}j=j.sibling}if(!A){for(j=b.child;j;){if(j===o){A=!0,o=b,d=m;break}if(j===d){A=!0,d=b,o=m;break}j=j.sibling}if(!A)throw Error(i(189))}}if(o.alternate!==d)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function p(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=p(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,_=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),N=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function k(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var q=Symbol.for("react.client.reference");function w(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===q?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case y:return"Fragment";case x:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList";case O:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case E:return"Portal";case N:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case F:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case M:return a=r.displayName||null,a!==null?a:w(r.type)||"Memo";case L:a=r._payload,r=r._init;try{return w(r(a))}catch{}}return null}var $=Array.isArray,K=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ie=[],P=-1;function z(r){return{current:r}}function Y(r){0>P||(r.current=ie[P],ie[P]=null,P--)}function U(r,a){P++,ie[P]=r.current,r.current=a}var ue=z(null),de=z(null),Se=z(null),je=z(null);function re(r,a){switch(U(Se,a),U(de,r),U(ue,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?b0(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=b0(a),r=_0(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Y(ue),U(ue,r)}function ne(){Y(ue),Y(de),Y(Se)}function ce(r){r.memoizedState!==null&&U(je,r);var a=ue.current,o=_0(a,r.type);a!==o&&(U(de,r),U(ue,o))}
vendor: 6,823 bytes, lines 41-48
41function me(r){de.current===r&&(Y(ue),Y(de)),je.current===r&&(Y(je),Sl._currentValue=ae)}var _e,Ne;function T(r){if(_e===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);_e=a&&a[1]||"",Ne=-1<o.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+_e+r+Ne}var oe=!1;function J(r,a){if(!r||oe)return"";oe=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(be){var ge=be}Reflect.construct(r,[],ke)}else{try{ke.call()}catch(be){ge=be}r.call(ke.prototype)}}else{try{throw Error()}catch(be){ge=be}(ke=r())&&typeof ke.catch=="function"&&ke.catch(function(){})}}catch(be){if(be&&ge&&typeof be.stack=="string")return[be.stack,ge.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=d.DetermineComponentFrameRoot(),A=b[0],j=b[1];if(A&&j){var X=A.split(`
44`),pe=j.split(`
45`);for(m=d=0;d<X.length&&!X[d].includes("DetermineComponentFrameRoot");)d++;for(;m<pe.length&&!pe[m].includes("DetermineComponentFrameRoot");)m++;if(d===X.length||m===pe.length)for(d=X.length-1,m=pe.length-1;1<=d&&0<=m&&X[d]!==pe[m];)m--;for(;1<=d&&0<=m;d--,m--)if(X[d]!==pe[m]){if(d!==1||m!==1)do if(d--,m--,0>m||X[d]!==pe[m]){var Ee=`
46`+X[d].replace(" at new "," at ");return r.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",r.displayName)),Ee}while(1<=d&&0<=m);break}}}finally{oe=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?T(o):""}function V(r,a){switch(r.tag){case 26:case 27:case 5:return T(r.type);case 16:return T("Lazy");case 13:return r.child!==a&&a!==null?T("Suspense Fallback"):T("Suspense");case 19:return T("SuspenseList");case 0:case 15:return J(r.type,!1);case 11:return J(r.type.render,!1);case 1:return J(r.type,!0);case 31:return T("Activity");default:return""}}function H(r){try{var a="",o=null;do a+=V(r,o),o=r,r=r.return;while(r);return a}catch(d){return`
47Error generating stack: `+d.message+`
48`+d.stack}}var ee=Object.prototype.hasOwnProperty,ye=e.unstable_scheduleCallback,Ae=e.unstable_cancelCallback,fe=e.unstable_shouldYield,Ce=e.unstable_requestPaint,Re=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,Te=e.unstable_UserBlockingPriority,Le=e.unstable_NormalPriority,Je=e.unstable_LowPriority,pt=e.unstable_IdlePriority,Yt=e.log,On=e.unstable_setDisableYieldValue,dt=null,Pt=null;function gn(r){if(typeof Yt=="function"&&On(r),Pt&&typeof Pt.setStrictMode=="function")try{Pt.setStrictMode(dt,r)}catch{}}var ft=Math.clz32?Math.clz32:ms,hr=Math.log,Rn=Math.LN2;function ms(r){return r>>>=0,r===0?32:31-(hr(r)/Rn|0)|0}var hi=256,pi=262144,pr=4194304;function wn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function W(r,a,o){var d=r.pendingLanes;if(d===0)return 0;var m=0,b=r.suspendedLanes,A=r.pingedLanes;r=r.warmLanes;var j=d&134217727;return j!==0?(d=j&~b,d!==0?m=wn(d):(A&=j,A!==0?m=wn(A):o||(o=j&~r,o!==0&&(m=wn(o))))):(j=d&~b,j!==0?m=wn(j):A!==0?m=wn(A):o||(o=d&~r,o!==0&&(m=wn(o)))),m===0?0:a!==0&&a!==m&&(a&b)===0&&(b=m&-m,o=a&-a,b>=o||b===32&&(o&4194048)!==0)?a:m}function xe(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function Pe(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function at(){var r=pr;return pr<<=1,(pr&62914560)===0&&(pr=4194304),r}function Vt(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Ut(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Ke(r,a,o,d,m,b){var A=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var j=r.entanglements,X=r.expirationTimes,pe=r.hiddenUpdates;for(o=A&~o;0<o;){var Ee=31-ft(o),ke=1<<Ee;j[Ee]=0,X[Ee]=-1;var ge=pe[Ee];if(ge!==null)for(pe[Ee]=null,Ee=0;Ee<ge.length;Ee++){var be=ge[Ee];be!==null&&(be.lane&=-536870913)}o&=~ke}d!==0&&He(r,d,0),b!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=b&~(A&~a))}function He(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-ft(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|o&261930}function rt(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var d=31-ft(o),m=1<<d;m&a|r[d]&a&&(r[d]|=a),o&=~m}}function un(r,a){var o=a&-a;return o=(o&42)!==0?1:en(o),(o&(r.suspendedLanes|a))!==0?0:o}function en(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function gi(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function vs(){var r=Z.p;return r!==0?r:(r=window.event,r===void 0?32:$0(r.type))}function bs(r,a){var o=Z.p;try{return Z.p=r,a()}finally{Z.p=o}}var Qr=Math.random().toString(36).slice(2),dn="__reactFiber$"+Qr,Fn="__reactProps$"+Qr,Zi="__reactContainer$"+Qr,Lo="__reactEvents$"+Qr,Oc="__reactListeners$"+Qr,_s="__reactHandles$"+Qr,Rc="__reactResources$"+Qr,Da="__reactMarker$"+Qr;function zo(r){delete r[dn],delete r[Fn],delete r[Lo],delete r[Oc],delete r[_s]}function Yn(r){var a=r[dn];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Zi]||o[dn]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=T0(r);r!==null;){if(o=r[dn])return o;r=T0(r)}return a}r=o,o=r.parentNode}return null}
vendor: 7,313 bytes, line 48
48function mi(r){if(r=r[dn]||r[Zi]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Xi(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Wi(r){var a=r[Rc];return a||(a=r[Rc]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function mn(r){r[Da]=!0}var Mc=new Set,Ia={};function vi(r,a){Me(r,a),Me(r+"Capture",a)}function Me(r,a){for(Ia[r]=a,r=0;r<a.length;r++)Mc.add(a[r])}var We=RegExp("^[: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]*$"),gt={},Nt={};function fn(r){return ee.call(Nt,r)?!0:ee.call(gt,r)?!1:We.test(r)?Nt[r]=!0:(gt[r]=!0,!1)}function jn(r,a,o){if(fn(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function gr(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function Wn(r,a,o,d){if(d===null)r.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+d)}}function Kt(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function mr(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Dc(r,a,o){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var m=d.get,b=d.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(A){o=""+A,b.call(this,A)}}),Object.defineProperty(r,a,{enumerable:d.enumerable}),{getValue:function(){return o},setValue:function(A){o=""+A},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function ys(r){if(!r._valueTracker){var a=mr(r)?"checked":"value";r._valueTracker=Dc(r,a,""+r[a])}}function Bo(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),d="";return r&&(d=mr(r)?r.checked?"true":"false":r.value),r=d,r!==o?(a.setValue(r),!0):!1}function Es(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Tf=/[\n"\\]/g;function Qn(r){return r.replace(Tf,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Po(r,a,o,d,m,b,A,j){r.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?r.type=A:r.removeAttribute("type"),a!=null?A==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Kt(a)):r.value!==""+Kt(a)&&(r.value=""+Kt(a)):A!=="submit"&&A!=="reset"||r.removeAttribute("value"),a!=null?xs(r,A,Kt(a)):o!=null?xs(r,A,Kt(o)):d!=null&&r.removeAttribute("value"),m==null&&b!=null&&(r.defaultChecked=!!b),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?r.name=""+Kt(j):r.removeAttribute("name")}function La(r,a,o,d,m,b,A,j){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.type=b),a!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){ys(r);return}o=o!=null?""+Kt(o):"",a=a!=null?""+Kt(a):o,j||a===r.value||(r.value=a),r.defaultValue=a}d=d??m,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=j?r.checked:!!d,r.defaultChecked=!!d,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(r.name=A),ys(r)}function xs(r,a,o){a==="number"&&Es(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Mn(r,a,o,d){if(r=r.options,a){a={};for(var m=0;m<o.length;m++)a["$"+o[m]]=!0;for(o=0;o<r.length;o++)m=a.hasOwnProperty("$"+r[o].value),r[o].selected!==m&&(r[o].selected=m),m&&d&&(r[o].defaultSelected=!0)}else{for(o=""+Kt(o),a=null,m=0;m<r.length;m++){if(r[m].value===o){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function Ic(r,a,o){if(a!=null&&(a=""+Kt(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Kt(o):""}function ws(r,a,o,d){if(a==null){if(d!=null){if(o!=null)throw Error(i(92));if($(d)){if(1<d.length)throw Error(i(93));d=d[0]}o=d}o==null&&(o=""),a=o}o=Kt(a),r.defaultValue=o,d=r.textContent,d===o&&d!==""&&d!==null&&(r.value=d),ys(r)}function nt(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var Lc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vn(r,a,o){var d=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":d?r.setProperty(a,o):typeof o!="number"||o===0||Lc.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function Ot(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var m in a)d=a[m],a.hasOwnProperty(m)&&o[m]!==d&&vn(r,m,d)}else for(var b in a)a.hasOwnProperty(b)&&vn(r,b,a[b])}function Qi(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bi=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Uo=/^[\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;function Ji(r){return Uo.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function ze(){}var Ve=null;function lt(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Et=null,an=null;function Rr(r){var a=mi(r);if(a&&(r=a.stateNode)){var o=r[Fn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Po(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Qn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var d=o[a];if(d!==r&&d.form===r.form){var m=d[Fn]||null;if(!m)throw Error(i(90));Po(d,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<o.length;a++)d=o[a],d.form===r.form&&Bo(d)}break e;case"textarea":Ic(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Mn(r,!!o.multiple,a,!1)}}}var Fo=!1;function zc(r,a,o){if(Fo)return r(a,o);Fo=!0;try{var d=r(a);return d}finally{if(Fo=!1,(Et!==null||an!==null)&&(wu(),Et&&(a=Et,r=an,an=Et=null,Rr(a),r)))for(a=0;a<r.length;a++)Rr(r[a])}}function jo(r,a){var o=r.stateNode;if(o===null)return null;var d=o[Fn]||null;if(d===null)return null;o=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var _i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Af=!1;if(_i)try{var $o={};Object.defineProperty($o,"passive",{get:function(){Af=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{Af=!1}var ea=null,Cf=null,Bc=null;function _b(){if(Bc)return Bc;var r,a=Cf,o=a.length,d,m="value"in ea?ea.value:ea.textContent,b=m.length;for(r=0;r<o&&a[r]===m[r];r++);var A=o-r;for(d=1;d<=A&&a[o-d]===m[b-d];d++);return Bc=m.slice(r,1<d?1-d:void 0)}function Pc(r){var a=r.keyCode;
vendor: 4,579 bytes, line 48
48return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Uc(){return!0}function yb(){return!1}function Jn(r){function a(o,d,m,b,A){this._reactName=o,this._targetInst=m,this.type=d,this.nativeEvent=b,this.target=A,this.currentTarget=null;for(var j in r)r.hasOwnProperty(j)&&(o=r[j],this[j]=o?o(b):b[j]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Uc:yb,this.isPropagationStopped=yb,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Uc)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),a}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fc=Jn(za),Ho=g({},za,{view:0,detail:0}),PA=Jn(Ho),Nf,Of,Go,jc=g({},Ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Go&&(Go&&r.type==="mousemove"?(Nf=r.screenX-Go.screenX,Of=r.screenY-Go.screenY):Of=Nf=0,Go=r),Nf)},movementY:function(r){return"movementY"in r?r.movementY:Of}}),Eb=Jn(jc),UA=g({},jc,{dataTransfer:0}),FA=Jn(UA),jA=g({},Ho,{relatedTarget:0}),Rf=Jn(jA),$A=g({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),HA=Jn($A),GA=g({},za,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),qA=Jn(GA),YA=g({},za,{data:0}),xb=Jn(YA),KA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},VA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XA(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=ZA[r])?!!a[r]:!1}function Mf(){return XA}var WA=g({},Ho,{key:function(r){if(r.key){var a=KA[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Pc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?VA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mf,charCode:function(r){return r.type==="keypress"?Pc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Pc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),QA=Jn(WA),JA=g({},jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wb=Jn(JA),eC=g({},Ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mf}),tC=Jn(eC),nC=g({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),rC=Jn(nC),iC=g({},jc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),aC=Jn(iC),sC=g({},za,{newState:0,oldState:0}),oC=Jn(sC),lC=[9,13,27,32],Df=_i&&"CompositionEvent"in window,qo=null;_i&&"documentMode"in document&&(qo=document.documentMode);var cC=_i&&"TextEvent"in window&&!qo,Sb=_i&&(!Df||qo&&8<qo&&11>=qo),kb=" ",Tb=!1;function Ab(r,a){switch(r){case"keyup":return lC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cb(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ss=!1;function uC(r,a){switch(r){case"compositionend":return Cb(a);case"keypress":return a.which!==32?null:(Tb=!0,kb);case"textInput":return r=a.data,r===kb&&Tb?null:r;default:return null}}
vendor: 6,926 bytes, line 48
48function dC(r,a){if(Ss)return r==="compositionend"||!Df&&Ab(r,a)?(r=_b(),Bc=Cf=ea=null,Ss=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Sb&&a.locale!=="ko"?null:a.data;default:return null}}var fC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!fC[r.type]:a==="textarea"}function Ob(r,a,o,d){Et?an?an.push(d):an=[d]:Et=d,a=Ou(a,"onChange"),0<a.length&&(o=new Fc("onChange","change",null,o,d),r.push({event:o,listeners:a}))}var Yo=null,Ko=null;function hC(r){f0(r,0)}function $c(r){var a=Xi(r);if(Bo(a))return r}function Rb(r,a){if(r==="change")return a}var Mb=!1;if(_i){var If;if(_i){var Lf="oninput"in document;if(!Lf){var Db=document.createElement("div");Db.setAttribute("oninput","return;"),Lf=typeof Db.oninput=="function"}If=Lf}else If=!1;Mb=If&&(!document.documentMode||9<document.documentMode)}function Ib(){Yo&&(Yo.detachEvent("onpropertychange",Lb),Ko=Yo=null)}function Lb(r){if(r.propertyName==="value"&&$c(Ko)){var a=[];Ob(a,Ko,r,lt(r)),zc(hC,a)}}function pC(r,a,o){r==="focusin"?(Ib(),Yo=a,Ko=o,Yo.attachEvent("onpropertychange",Lb)):r==="focusout"&&Ib()}function gC(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return $c(Ko)}function mC(r,a){if(r==="click")return $c(a)}function vC(r,a){if(r==="input"||r==="change")return $c(a)}function bC(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var vr=typeof Object.is=="function"?Object.is:bC;function Vo(r,a){if(vr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),d=Object.keys(a);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var m=o[d];if(!ee.call(a,m)||!vr(r[m],a[m]))return!1}return!0}function zb(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Bb(r,a){var o=zb(r);r=0;for(var d;o;){if(o.nodeType===3){if(d=r+o.textContent.length,r<=a&&d>=a)return{node:o,offset:a-r};r=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=zb(o)}}function Pb(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Pb(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Ub(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Es(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=Es(r.document)}return a}function zf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var _C=_i&&"documentMode"in document&&11>=document.documentMode,ks=null,Bf=null,Zo=null,Pf=!1;function Fb(r,a,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Pf||ks==null||ks!==Es(d)||(d=ks,"selectionStart"in d&&zf(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Zo&&Vo(Zo,d)||(Zo=d,d=Ou(Bf,"onSelect"),0<d.length&&(a=new Fc("onSelect","select",null,a,o),r.push({event:a,listeners:d}),a.target=ks)))}function Ba(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var Ts={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},Uf={},jb={};_i&&(jb=document.createElement("div").style,"AnimationEvent"in window||(delete Ts.animationend.animation,delete Ts.animationiteration.animation,delete Ts.animationstart.animation),"TransitionEvent"in window||delete Ts.transitionend.transition);function Pa(r){if(Uf[r])return Uf[r];if(!Ts[r])return r;var a=Ts[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in jb)return Uf[r]=a[o];return r}var $b=Pa("animationend"),Hb=Pa("animationiteration"),Gb=Pa("animationstart"),yC=Pa("transitionrun"),EC=Pa("transitionstart"),xC=Pa("transitioncancel"),qb=Pa("transitionend"),Yb=new Map,Ff="abort auxClick beforeToggle 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".split(" ");Ff.push("scrollEnd");function qr(r,a){Yb.set(r,a),vi(a,[r])}var Hc=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Mr=[],As=0,jf=0;function Gc(){for(var r=As,a=jf=As=0;a<r;){var o=Mr[a];Mr[a++]=null;var d=Mr[a];Mr[a++]=null;var m=Mr[a];Mr[a++]=null;var b=Mr[a];if(Mr[a++]=null,d!==null&&m!==null){var A=d.pending;A===null?m.next=m:(m.next=A.next,A.next=m),d.pending=m}b!==0&&Kb(o,m,b)}}function qc(r,a,o,d){Mr[As++]=r,Mr[As++]=a,Mr[As++]=o,Mr[As++]=d,jf|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function $f(r,a,o,d){return qc(r,a,o,d),Yc(r)}function Ua(r,a){return qc(r,null,null,a),Yc(r)}function Kb(r,a,o){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o);for(var m=!1,b=r.return;b!==null;)b.childLanes|=o,d=b.alternate,d!==null&&(d.childLanes|=o),b.tag===22&&(r=b.stateNode,r===null||r._visibility&1||(m=!0)),r=b,b=b.return;return r.tag===3?(b=r.stateNode,m&&a!==null&&(m=31-ft(o),r=b.hiddenUpdates,d=r[m],d===null?r[m]=[a]:d.push(a),a.lane=o|536870912),b):null}function Yc(r){if(50<vl)throw vl=0,Wh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Cs={};function wC(r,a,o,d){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 18,267 bytes, line 48
48ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(r,a,o,d){return new wC(r,a,o,d)}function Hf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function yi(r,a){var o=r.alternate;return o===null?(o=br(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Vb(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Kc(r,a,o,d,m,b){var A=0;if(d=r,typeof r=="function")Hf(r)&&(A=1);else if(typeof r=="string")A=CN(r,o,ue.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case O:return r=br(31,o,a,m),r.elementType=O,r.lanes=b,r;case y:return Fa(o.children,m,b,a);case S:A=8,m|=24;break;case x:return r=br(12,o,a,m|2),r.elementType=x,r.lanes=b,r;case R:return r=br(13,o,a,m),r.elementType=R,r.lanes=b,r;case D:return r=br(19,o,a,m),r.elementType=D,r.lanes=b,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case N:A=10;break e;case C:A=9;break e;case F:A=11;break e;case M:A=14;break e;case L:A=16,d=null;break e}A=29,o=Error(i(130,r===null?"null":typeof r,"")),d=null}return a=br(A,o,a,m),a.elementType=r,a.type=d,a.lanes=b,a}function Fa(r,a,o,d){return r=br(7,r,d,a),r.lanes=o,r}function Gf(r,a,o){return r=br(6,r,null,a),r.lanes=o,r}function Zb(r){var a=br(18,null,null,0);return a.stateNode=r,a}function qf(r,a,o){return a=br(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Xb=new WeakMap;function Dr(r,a){if(typeof r=="object"&&r!==null){var o=Xb.get(r);return o!==void 0?o:(a={value:r,source:a,stack:H(a)},Xb.set(r,a),a)}return{value:r,source:a,stack:H(a)}}var Ns=[],Os=0,Vc=null,Xo=0,Ir=[],Lr=0,ta=null,Jr=1,ei="";function Ei(r,a){Ns[Os++]=Xo,Ns[Os++]=Vc,Vc=r,Xo=a}function Wb(r,a,o){Ir[Lr++]=Jr,Ir[Lr++]=ei,Ir[Lr++]=ta,ta=r;var d=Jr;r=ei;var m=32-ft(d)-1;d&=~(1<<m),o+=1;var b=32-ft(a)+m;if(30<b){var A=m-m%5;b=(d&(1<<A)-1).toString(32),d>>=A,m-=A,Jr=1<<32-ft(a)+m|o<<m|d,ei=b+r}else Jr=1<<b|o<<m|d,ei=r}function Yf(r){r.return!==null&&(Ei(r,1),Wb(r,1,0))}function Kf(r){for(;r===Vc;)Vc=Ns[--Os],Ns[Os]=null,Xo=Ns[--Os],Ns[Os]=null;for(;r===ta;)ta=Ir[--Lr],Ir[Lr]=null,ei=Ir[--Lr],Ir[Lr]=null,Jr=Ir[--Lr],Ir[Lr]=null}function Qb(r,a){Ir[Lr++]=Jr,Ir[Lr++]=ei,Ir[Lr++]=ta,Jr=a.id,ei=a.overflow,ta=r}var Dn=null,Zt=null,St=!1,na=null,zr=!1,Vf=Error(i(519));function ra(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wo(Dr(a,r)),Vf}function Jb(r){var a=r.stateNode,o=r.type,d=r.memoizedProps;switch(a[dn]=r,a[Fn]=d,o){case"dialog":bt("cancel",a),bt("close",a);break;case"iframe":case"object":case"embed":bt("load",a);break;case"video":case"audio":for(o=0;o<_l.length;o++)bt(_l[o],a);break;case"source":bt("error",a);break;case"img":case"image":case"link":bt("error",a),bt("load",a);break;case"details":bt("toggle",a);break;case"input":bt("invalid",a),La(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":bt("invalid",a);break;case"textarea":bt("invalid",a),ws(a,d.value,d.defaultValue,d.children)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||d.suppressHydrationWarning===!0||m0(a.textContent,o)?(d.popover!=null&&(bt("beforetoggle",a),bt("toggle",a)),d.onScroll!=null&&bt("scroll",a),d.onScrollEnd!=null&&bt("scrollend",a),d.onClick!=null&&(a.onclick=ze),a=!0):a=!1,a||ra(r,!0)}function e_(r){for(Dn=r.return;Dn;)switch(Dn.tag){case 5:case 31:case 13:zr=!1;return;case 27:case 3:zr=!0;return;default:Dn=Dn.return}}function Rs(r){if(r!==Dn)return!1;if(!St)return e_(r),St=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||fp(r.type,r.memoizedProps)),o=!o),o&&Zt&&ra(r),e_(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Zt=k0(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Zt=k0(r)}else a===27?(a=Zt,va(r.type)?(r=vp,vp=null,Zt=r):Zt=a):Zt=Dn?Pr(r.stateNode.nextSibling):null;return!0}function ja(){Zt=Dn=null,St=!1}function Zf(){var r=na;return r!==null&&(rr===null?rr=r:rr.push.apply(rr,r),na=null),r}function Wo(r){na===null?na=[r]:na.push(r)}var Xf=z(null),$a=null,xi=null;function ia(r,a,o){U(Xf,a._currentValue),a._currentValue=o}function wi(r){r._currentValue=Xf.current,Y(Xf)}function Wf(r,a,o){for(;r!==null;){var d=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),r===o)break;r=r.return}}function Qf(r,a,o,d){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var b=m.dependencies;if(b!==null){var A=m.child;b=b.firstContext;e:for(;b!==null;){var j=b;b=m;for(var X=0;X<a.length;X++)if(j.context===a[X]){b.lanes|=o,j=b.alternate,j!==null&&(j.lanes|=o),Wf(b.return,o,r),d||(A=null);break e}b=j.next}}else if(m.tag===18){if(A=m.return,A===null)throw Error(i(341));A.lanes|=o,b=A.alternate,b!==null&&(b.lanes|=o),Wf(A,o,r),A=null}else A=m.child;if(A!==null)A.return=m;else for(A=m;A!==null;){if(A===r){A=null;break}if(m=A.sibling,m!==null){m.return=A.return,A=m;break}A=A.return}m=A}}function Ms(r,a,o,d){r=null;for(var m=a,b=!1;m!==null;){if(!b){if((m.flags&524288)!==0)b=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var A=m.alternate;if(A===null)throw Error(i(387));if(A=A.memoizedProps,A!==null){var j=m.type;vr(m.pendingProps.value,A.value)||(r!==null?r.push(j):r=[j])}}else if(m===je.current){if(A=m.alternate,A===null)throw Error(i(387));A.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Sl):r=[Sl])}m=m.return}r!==null&&Qf(a,r,o,d),a.flags|=262144}function Zc(r){for(r=r.firstContext;r!==null;){if(!vr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ha(r){$a=r,xi=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function In(r){return t_($a,r)}function Xc(r,a){return $a===null&&Ha(r),t_(r,a)}function t_(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},xi===null){if(r===null)throw Error(i(308));xi=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else xi=xi.next=a;return o}var SC=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,d){r.push(d)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},kC=e.unstable_scheduleCallback,TC=e.unstable_NormalPriority,bn={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jf(){return{controller:new SC,data:new Map,refCount:0}}function Qo(r){r.refCount--,r.refCount===0&&kC(TC,function(){r.controller.abort()})}var Jo=null,eh=0,Ds=0,Is=null;function AC(r,a){if(Jo===null){var o=Jo=[];eh=0,Ds=rp(),Is={status:"pending",value:void 0,then:function(d){o.push(d)}}}return eh++,a.then(n_,n_),a}function n_(){if(--eh===0&&Jo!==null){Is!==null&&(Is.status="fulfilled");var r=Jo;Jo=null,Ds=0,Is=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function CC(r,a){var o=[],d={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return r.then(function(){d.status="fulfilled",d.value=a;for(var m=0;m<o.length;m++)(0,o[m])(a)},function(m){for(d.status="rejected",d.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),d}var r_=K.S;K.S=function(r,a){Fy=Re(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&AC(r,a),r_!==null&&r_(r,a)};var Ga=z(null);function th(){var r=Ga.current;return r!==null?r:Ft.pooledCache}function Wc(r,a){a===null?U(Ga,Ga.current):U(Ga,a.pool)}function i_(){var r=th();return r===null?null:{parent:bn._currentValue,pool:r}}var Ls=Error(i(460)),nh=Error(i(474)),Qc=Error(i(542)),Jc={then:function(){}};function a_(r){return r=r.status,r==="fulfilled"||r==="rejected"}function s_(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(ze,ze),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,l_(r),r;default:if(typeof a.status=="string")a.then(ze,ze);else{if(r=Ft,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(d){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=d}},function(d){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,l_(r),r}throw Ya=a,Ls}}function qa(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ya=o,Ls):o}}var Ya=null;function o_(){if(Ya===null)throw Error(i(459));var r=Ya;return Ya=null,r}function l_(r){if(r===Ls||r===Qc)throw Error(i(483))}var zs=null,el=0;function eu(r){var a=el;return el+=1,zs===null&&(zs=[]),s_(zs,r,a)}function tl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function tu(r,a){throw a.$$typeof===_?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function c_(r){function a(le,te){if(r){var he=le.deletions;he===null?(le.deletions=[te],le.flags|=16):he.push(te)}}function o(le,te){if(!r)return null;for(;te!==null;)a(le,te),te=te.sibling;return null}function d(le){for(var te=new Map;le!==null;)le.key!==null?te.set(le.key,le):te.set(le.index,le),le=le.sibling;return te}function m(le,te){return le=yi(le,te),le.index=0,le.sibling=null,le}function b(le,te,he){return le.index=he,r?(he=le.alternate,he!==null?(he=he.index,he<te?(le.flags|=67108866,te):he):(le.flags|=67108866,te)):(le.flags|=1048576,te)}function A(le){return r&&le.alternate===null&&(le.flags|=67108866),le}function j(le,te,he,we){return te===null||te.tag!==6?(te=Gf(he,le.mode,we),te.return=le,te):(te=m(te,he),te.return=le,te)}function X(le,te,he,we){var Qe=he.type;return Qe===y?Ee(le,te,he.props.children,we,he.key):te!==null&&(te.elementType===Qe||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===L&&qa(Qe)===te.type)?(te=m(te,he.props),tl(te,he),te.return=le,te):(te=Kc(he.type,he.key,he.props,null,le.mode,we),tl(te,he),te.return=le,te)}function pe(le,te,he,we){return te===null||te.tag!==4||te.stateNode.containerInfo!==he.containerInfo||te.stateNode.implementation!==he.implementation?(te=qf(he,le.mode,we),te.return=le,te):(te=m(te,he.children||[]),te.return=le,te)}function Ee(le,te,he,we,Qe){return te===null||te.tag!==7?(te=Fa(he,le.mode,we,Qe),te.return=le,te):(te=m(te,he),te.return=le,te)}function ke(le,te,he){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=Gf(""+te,le.mode,he),te.return=le,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case v:return he=Kc(te.type,te.key,te.props,null,le.mode,he),tl(he,te),he.return=le,he;case E:return te=qf(te,le.mode,he),te.return=le,te;case L:return te=qa(te),ke(le,te,he)}if($(te)||k(te))return te=Fa(te,le.mode,he,null),te.return=le,te;if(typeof te.then=="function")return ke(le,eu(te),he);if(te.$$typeof===N)return ke(le,Xc(le,te),he);tu(le,te)}return null}function ge(le,te,he,we){var Qe=te!==null?te.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return Qe!==null?null:j(le,te,""+he,we);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case v:return he.key===Qe?X(le,te,he,we):null;case E:return he.key===Qe?pe(le,te,he,we):null;case L:return he=qa(he),ge(le,te,he,we)}if($(he)||k(he))return Qe!==null?null:Ee(le,te,he,we,null);if(typeof he.then=="function")return ge(le,te,eu(he),we);if(he.$$typeof===N)return ge(le,te,Xc(le,he),we);tu(le,he)}return null}function be(le,te,he,we,Qe){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return le=le.get(he)||null,j(te,le,""+we,Qe);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case v:return le=le.get(we.key===null?he:we.key)||null,X(te,le,we,Qe);case E:return le=le.get(we.key===null?he:we.key)||null,pe(te,le,we,Qe);case L:return we=qa(we),be(le,te,he,we,Qe)}if($(we)||k(we))return le=le.get(he)||null,Ee(te,le,we,Qe,null);if(typeof we.then=="function")return be(le,te,he,eu(we),Qe);if(we.$$typeof===N)return be(le,te,he,Xc(te,we),Qe);tu(te,we)}return null}function Ye(le,te,he,we){for(var Qe=null,Tt=null,Ze=te,ut=te=0,wt=null;Ze!==null&&ut<he.length;ut++){Ze.index>ut?(wt=Ze,Ze=null):wt=Ze.sibling;var At=ge(le,Ze,he[ut],we);if(At===null){Ze===null&&(Ze=wt);break}r&&Ze&&At.alternate===null&&a(le,Ze),te=b(At,te,ut),Tt===null?Qe=At:Tt.sibling=At,Tt=At,Ze=wt}if(ut===he.length)return o(le,Ze),St&&Ei(le,ut),Qe;if(Ze===null){for(;ut<he.length;ut++)Ze=ke(le,he[ut],we),Ze!==null&&(te=b(Ze,te,ut),Tt===null?Qe=Ze:Tt.sibling=Ze,Tt=Ze);return St&&Ei(le,ut),Qe}for(Ze=d(Ze);ut<he.length;ut++)wt=be(Ze,le,ut,he[ut],we),wt!==null&&(r&&wt.alternate!==null&&Ze.delete(wt.key===null?ut:wt.key),te=b(wt,te,ut),Tt===null?Qe=wt:Tt.sibling=wt,Tt=wt);return r&&Ze.forEach(function(xa){return a(le,xa)}),St&&Ei(le,ut),Qe}function tt(le,te,he,we){if(he==null)throw Error(i(151));for(var Qe=null,Tt=null,Ze=te,ut=te=0,wt=null,At=he.next();Ze!==null&&!At.done;ut++,At=he.next()){Ze.index>ut?(wt=Ze,Ze=null):wt=Ze.sibling;var xa=ge(le,Ze,At.value,we);if(xa===null){Ze===null&&(Ze=wt);break}r&&Ze&&xa.alternate===null&&a(le,Ze),te=b(xa,te,ut),Tt===null?Qe=xa:Tt.sibling=xa,Tt=xa,Ze=wt}if(At.done)return o(le,Ze),St&&Ei(le,ut),Qe;if(Ze===null){for(;!At.done;ut++,At=he.next())At=ke(le,At.value,we),At!==null&&(te=b(At,te,ut),Tt===null?Qe=At:Tt.sibling=At,Tt=At);return St&&Ei(le,ut),Qe}for(Ze=d(Ze);!At.done;ut++,At=he.next())At=be(Ze,le,ut,At.value,we),At!==null&&(r&&At.alternate!==null&&Ze.delete(At.key===null?ut:At.key),te=b(At,te,ut),Tt===null?Qe=At:Tt.sibling=At,Tt=At);return r&&Ze.forEach(function(UN){return a(le,UN)}),St&&Ei(le,ut),Qe}function Lt(le,te,he,we){if(typeof he=="object"&&he!==null&&he.type===y&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case v:e:{for(var Qe=he.key;te!==null;){if(te.key===Qe){if(Qe=he.type,Qe===y){if(te.tag===7){o(le,te.sibling),we=m(te,he.props.children),we.return=le,le=we;break e}}else if(te.elementType===Qe||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===L&&qa(Qe)===te.type){o(le,te.sibling),we=m(te,he.props),tl(we,he),we.return=le,le=we;break e}o(le,te);break}else a(le,te);te=te.sibling}he.type===y?(we=Fa(he.props.children,le.mode,we,he.key),we.return=le,le=we):(we=Kc(he.type,he.key,he.props,null,le.mode,we),tl(we,he),we.return=le,le=we)}return A(le);case E:e:{for(Qe=he.key;te!==null;){if(te.key===Qe)if(te.tag===4&&te.stateNode.containerInfo===he.containerInfo&&te.stateNode.implementation===he.implementation){o(le,te.sibling),we=m(te,he.children||[]),we.return=le,le=we;break e}else{o(le,te);break}else a(le,te);te=te.sibling}we=qf(he,le.mode,we),we.return=le,le=we}return A(le);case L:return he=qa(he),Lt(le,te,he,we)}if($(he))return Ye(le,te,he,we);if(k(he)){if(Qe=k(he),typeof Qe!="function")throw Error(i(150));return he=Qe.call(he),tt(le,te,he,we)}if(typeof he.then=="function")return Lt(le,te,eu(he),we);if(he.$$typeof===N)return Lt(le,te,Xc(le,he),we);tu(le,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(he=""+he,te!==null&&te.tag===6?(o(le,te.sibling),we=m(te,he),we.return=le,le=we):(o(le,te),we=Gf(he,le.mode,we),we.return=le,le=we),A(le)):o(le,te)}return function(le,te,he,we){try{el=0;var Qe=Lt(le,te,he,we);return zs=null,Qe}catch(Ze){if(Ze===Ls||Ze===Qc)throw Ze;var Tt=br(29,Ze,null,le.mode);return Tt.lanes=we,Tt.return=le,Tt}finally{}}}var Ka=c_(!0),u_=c_(!1),aa=!1;function rh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ih(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function sa(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function oa(r,a,o){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(Ct&2)!==0){var m=d.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),d.pending=a,a=Yc(r),Kb(r,null,o),a}return qc(r,d,a,o),Yc(r)}function nl(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var d=a.lanes;d&=r.pendingLanes,o|=d,a.lanes=o,rt(r,o)}}function ah(r,a){var o=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var m=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var A={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?m=b=A:b=b.next=A,o=o.next}while(o!==null);b===null?m=b=a:b=b.next=a}else m=b=a;o={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var sh=!1;function rl(){if(sh){var r=Is;if(r!==null)throw r}}function il(r,a,o,d){sh=!1;var m=r.updateQueue;aa=!1;var b=m.firstBaseUpdate,A=m.lastBaseUpdate,j=m.shared.pending;if(j!==null){m.shared.pending=null;var X=j,pe=X.next;X.next=null,A===null?b=pe:A.next=pe,A=X;var Ee=r.alternate;Ee!==null&&(Ee=Ee.updateQueue,j=Ee.lastBaseUpdate,j!==A&&(j===null?Ee.firstBaseUpdate=pe:j.next=pe,Ee.lastBaseUpdate=X))}if(b!==null){var ke=m.baseState;A=0,Ee=pe=X=null,j=b;do{var ge=j.lane&-536870913,be=ge!==j.lane;
vendor: 8,119 bytes, line 48
48if(be?(xt&ge)===ge:(d&ge)===ge){ge!==0&&ge===Ds&&(sh=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Ye=r,tt=j;ge=a;var Lt=o;switch(tt.tag){case 1:if(Ye=tt.payload,typeof Ye=="function"){ke=Ye.call(Lt,ke,ge);break e}ke=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=tt.payload,ge=typeof Ye=="function"?Ye.call(Lt,ke,ge):Ye,ge==null)break e;ke=g({},ke,ge);break e;case 2:aa=!0}}ge=j.callback,ge!==null&&(r.flags|=64,be&&(r.flags|=8192),be=m.callbacks,be===null?m.callbacks=[ge]:be.push(ge))}else be={lane:ge,tag:j.tag,payload:j.payload,callback:j.callback,next:null},Ee===null?(pe=Ee=be,X=ke):Ee=Ee.next=be,A|=ge;if(j=j.next,j===null){if(j=m.shared.pending,j===null)break;be=j,j=be.next,be.next=null,m.lastBaseUpdate=be,m.shared.pending=null}}while(!0);Ee===null&&(X=ke),m.baseState=X,m.firstBaseUpdate=pe,m.lastBaseUpdate=Ee,b===null&&(m.shared.lanes=0),fa|=A,r.lanes=A,r.memoizedState=ke}}function d_(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function f_(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)d_(o[r],a)}var Bs=z(null),nu=z(0);function h_(r,a){r=Mi,U(nu,r),U(Bs,a),Mi=r|a.baseLanes}function oh(){U(nu,Mi),U(Bs,Bs.current)}function lh(){Mi=nu.current,Y(Bs),Y(nu)}var _r=z(null),Br=null;function la(r){var a=r.alternate;U(hn,hn.current&1),U(_r,r),Br===null&&(a===null||Bs.current!==null||a.memoizedState!==null)&&(Br=r)}function ch(r){U(hn,hn.current),U(_r,r),Br===null&&(Br=r)}function p_(r){r.tag===22?(U(hn,hn.current),U(_r,r),Br===null&&(Br=r)):ca()}function ca(){U(hn,hn.current),U(_r,_r.current)}function yr(r){Y(_r),Br===r&&(Br=null),Y(hn)}var hn=z(0);function ru(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||gp(o)||mp(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Si=0,ct=null,Dt=null,_n=null,iu=!1,Ps=!1,Va=!1,au=0,al=0,Us=null,NC=0;function on(){throw Error(i(321))}function uh(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!vr(r[o],a[o]))return!1;return!0}function dh(r,a,o,d,m,b){return Si=b,ct=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,K.H=r===null||r.memoizedState===null?W_:Th,Va=!1,b=o(d,m),Va=!1,Ps&&(b=m_(a,o,d,m)),g_(r),b}function g_(r){K.H=ll;var a=Dt!==null&&Dt.next!==null;if(Si=0,_n=Dt=ct=null,iu=!1,al=0,Us=null,a)throw Error(i(300));r===null||yn||(r=r.dependencies,r!==null&&Zc(r)&&(yn=!0))}function m_(r,a,o,d){ct=r;var m=0;do{if(Ps&&(Us=null),al=0,Ps=!1,25<=m)throw Error(i(301));if(m+=1,_n=Dt=null,r.updateQueue!=null){var b=r.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}K.H=Q_,b=a(o,d)}while(Ps);return b}function OC(){var r=K.H,a=r.useState()[0];return a=typeof a.then=="function"?sl(a):a,r=r.useState()[0],(Dt!==null?Dt.memoizedState:null)!==r&&(ct.flags|=1024),a}function fh(){var r=au!==0;return au=0,r}function hh(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function ph(r){if(iu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}iu=!1}Si=0,_n=Dt=ct=null,Ps=!1,al=au=0,Us=null}function Kn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?ct.memoizedState=_n=r:_n=_n.next=r,_n}function pn(){if(Dt===null){var r=ct.alternate;r=r!==null?r.memoizedState:null}else r=Dt.next;var a=_n===null?ct.memoizedState:_n.next;if(a!==null)_n=a,Dt=r;else{if(r===null)throw ct.alternate===null?Error(i(467)):Error(i(310));Dt=r,r={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},_n===null?ct.memoizedState=_n=r:_n=_n.next=r}return _n}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(r){var a=al;return al+=1,Us===null&&(Us=[]),r=s_(Us,r,a),a=ct,(_n===null?a.memoizedState:_n.next)===null&&(a=a.alternate,K.H=a===null||a.memoizedState===null?W_:Th),r}function ou(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return sl(r);if(r.$$typeof===N)return In(r)}throw Error(i(438,String(r)))}function gh(r){var a=null,o=ct.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var d=ct.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=su(),ct.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),d=0;d<r;d++)o[d]=I;return a.index++,o}function ki(r,a){return typeof a=="function"?a(r):a}function lu(r){var a=pn();return mh(a,Dt,r)}function mh(r,a,o){var d=r.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=o;var m=r.baseQueue,b=d.pending;if(b!==null){if(m!==null){var A=m.next;m.next=b.next,b.next=A}a.baseQueue=m=b,d.pending=null}if(b=r.baseState,m===null)r.memoizedState=b;else{a=m.next;var j=A=null,X=null,pe=a,Ee=!1;do{var ke=pe.lane&-536870913;if(ke!==pe.lane?(xt&ke)===ke:(Si&ke)===ke){var ge=pe.revertLane;if(ge===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),ke===Ds&&(Ee=!0);else if((Si&ge)===ge){pe=pe.next,ge===Ds&&(Ee=!0);continue}else ke={lane:0,revertLane:pe.revertLane,gesture:null,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},X===null?(j=X=ke,A=b):X=X.next=ke,ct.lanes|=ge,fa|=ge;ke=pe.action,Va&&o(b,ke),b=pe.hasEagerState?pe.eagerState:o(b,ke)}else ge={lane:ke,revertLane:pe.revertLane,gesture:pe.gesture,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},X===null?(j=X=ge,A=b):X=X.next=ge,ct.lanes|=ke,fa|=ke;pe=pe.next}while(pe!==null&&pe!==a);if(X===null?A=b:X.next=j,!vr(b,r.memoizedState)&&(yn=!0,Ee&&(o=Is,o!==null)))throw o;r.memoizedState=b,r.baseState=A,r.baseQueue=X,d.lastRenderedState=b}return m===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function vh(r){var a=pn(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var d=o.dispatch,m=o.pending,b=a.memoizedState;if(m!==null){o.pending=null;var A=m=m.next;do b=r(b,A.action),A=A.next;while(A!==m);vr(b,a.memoizedState)||(yn=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),o.lastRenderedState=b}return[b,d]}function v_(r,a,o){var d=ct,m=pn(),b=St;if(b){if(o===void 0)throw Error(i(407));o=o()}else o=a();var A=!vr((Dt||m).memoizedState,o);if(A&&(m.memoizedState=o,yn=!0),m=m.queue,yh(y_.bind(null,d,m,r),[r]),m.getSnapshot!==a||A||_n!==null&&_n.memoizedState.tag&1){if(d.flags|=2048,Fs(9,{destroy:void 0},__.bind(null,d,m,o,a),null),Ft===null)throw Error(i(349));b||(Si&127)!==0||b_(d,a,o)}return o}function b_(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=ct.updateQueue,a===null?(a=su(),ct.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function __(r,a,o,d){a.value=o,a.getSnapshot=d,E_(a)&&x_(r)}function y_(r,a,o){return o(function(){E_(a)&&x_(r)})}function E_(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!vr(r,o)}catch{return!0}}function x_(r){var a=Ua(r,2);a!==null&&ir(a,r,2)}function bh(r){var a=Kn();if(typeof r=="function"){var o=r;if(r=o(),Va){gn(!0);try{o()}finally{gn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:r},a}function w_(r,a,o,d){return r.baseState=o,mh(r,Dt,typeof d=="function"?d:ki)}function RC(r,a,o,d,m){if(du(r))throw Error(i(485));if(r=a.action,r!==null){var b={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){b.listeners.push(A)}};K.T!==null?o(!0):b.isTransition=!1,d(b),o=a.pending,o===null?(b.next=a.pending=b,S_(a,b)):(b.next=o.next,a.pending=o.next=b)}
vendor: 11,470 bytes, line 48
48}function S_(r,a){var o=a.action,d=a.payload,m=r.state;if(a.isTransition){var b=K.T,A={};K.T=A;try{var j=o(m,d),X=K.S;X!==null&&X(A,j),k_(r,a,j)}catch(pe){_h(r,a,pe)}finally{b!==null&&A.types!==null&&(b.types=A.types),K.T=b}}else try{b=o(m,d),k_(r,a,b)}catch(pe){_h(r,a,pe)}}function k_(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){T_(r,a,d)},function(d){return _h(r,a,d)}):T_(r,a,o)}function T_(r,a,o){a.status="fulfilled",a.value=o,A_(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,S_(r,o)))}function _h(r,a,o){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=o,A_(a),a=a.next;while(a!==d)}r.action=null}function A_(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function C_(r,a){return a}function N_(r,a){if(St){var o=Ft.formState;if(o!==null){e:{var d=ct;if(St){if(Zt){t:{for(var m=Zt,b=zr;m.nodeType!==8;){if(!b){m=null;break t}if(m=Pr(m.nextSibling),m===null){m=null;break t}}b=m.data,m=b==="F!"||b==="F"?m:null}if(m){Zt=Pr(m.nextSibling),d=m.data==="F!";break e}}ra(d)}d=!1}d&&(a=o[0])}}return o=Kn(),o.memoizedState=o.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:C_,lastRenderedState:a},o.queue=d,o=V_.bind(null,ct,d),d.dispatch=o,d=bh(!1),b=kh.bind(null,ct,!1,d.queue),d=Kn(),m={state:a,dispatch:null,action:r,pending:null},d.queue=m,o=RC.bind(null,ct,m,b,o),m.dispatch=o,d.memoizedState=r,[a,o,!1]}function O_(r){var a=pn();return R_(a,Dt,r)}function R_(r,a,o){if(a=mh(r,a,C_)[0],r=lu(ki)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=sl(a)}catch(A){throw A===Ls?Qc:A}else d=a;a=pn();var m=a.queue,b=m.dispatch;return o!==a.memoizedState&&(ct.flags|=2048,Fs(9,{destroy:void 0},MC.bind(null,m,o),null)),[d,b,r]}function MC(r,a){r.action=a}function M_(r){var a=pn(),o=Dt;if(o!==null)return R_(a,o,r);pn(),a=a.memoizedState,o=pn();var d=o.queue.dispatch;return o.memoizedState=r,[a,d,!1]}function Fs(r,a,o,d){return r={tag:r,create:o,deps:d,inst:a,next:null},a=ct.updateQueue,a===null&&(a=su(),ct.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(d=o.next,o.next=r,r.next=d,a.lastEffect=r),r}function D_(){return pn().memoizedState}function cu(r,a,o,d){var m=Kn();ct.flags|=r,m.memoizedState=Fs(1|a,{destroy:void 0},o,d===void 0?null:d)}function uu(r,a,o,d){var m=pn();d=d===void 0?null:d;var b=m.memoizedState.inst;Dt!==null&&d!==null&&uh(d,Dt.memoizedState.deps)?m.memoizedState=Fs(a,b,o,d):(ct.flags|=r,m.memoizedState=Fs(1|a,b,o,d))}function I_(r,a){cu(8390656,8,r,a)}function yh(r,a){uu(2048,8,r,a)}function DC(r){ct.flags|=4;var a=ct.updateQueue;if(a===null)a=su(),ct.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function L_(r){var a=pn().memoizedState;return DC({ref:a,nextImpl:r}),function(){if((Ct&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function z_(r,a){return uu(4,2,r,a)}function B_(r,a){return uu(4,4,r,a)}function P_(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function U_(r,a,o){o=o!=null?o.concat([r]):null,uu(4,4,P_.bind(null,a,r),o)}function Eh(){}function F_(r,a){var o=pn();a=a===void 0?null:a;var d=o.memoizedState;return a!==null&&uh(a,d[1])?d[0]:(o.memoizedState=[r,a],r)}function j_(r,a){var o=pn();a=a===void 0?null:a;var d=o.memoizedState;if(a!==null&&uh(a,d[1]))return d[0];if(d=r(),Va){gn(!0);try{r()}finally{gn(!1)}}return o.memoizedState=[d,a],d}function xh(r,a,o){return o===void 0||(Si&1073741824)!==0&&(xt&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=$y(),ct.lanes|=r,fa|=r,o)}function $_(r,a,o,d){return vr(o,a)?o:Bs.current!==null?(r=xh(r,o,d),vr(r,a)||(yn=!0),r):(Si&42)===0||(Si&1073741824)!==0&&(xt&261930)===0?(yn=!0,r.memoizedState=o):(r=$y(),ct.lanes|=r,fa|=r,a)}function H_(r,a,o,d,m){var b=Z.p;Z.p=b!==0&&8>b?b:8;var A=K.T,j={};K.T=j,kh(r,!1,a,o);try{var X=m(),pe=K.S;if(pe!==null&&pe(j,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var Ee=CC(X,d);ol(r,a,Ee,wr(r))}else ol(r,a,d,wr(r))}catch(ke){ol(r,a,{then:function(){},status:"rejected",reason:ke},wr())}finally{Z.p=b,A!==null&&j.types!==null&&(A.types=j.types),K.T=A}}function IC(){}function wh(r,a,o,d){if(r.tag!==5)throw Error(i(476));var m=G_(r).queue;H_(r,m,a,ae,o===null?IC:function(){return q_(r),o(d)})}function G_(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:ae},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function q_(r){var a=G_(r);a.next===null&&(a=r.alternate.memoizedState),ol(r,a.next.queue,{},wr())}function Sh(){return In(Sl)}function Y_(){return pn().memoizedState}function K_(){return pn().memoizedState}function LC(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=wr();r=sa(o);var d=oa(a,r,o);d!==null&&(ir(d,a,o),nl(d,a,o)),a={cache:Jf()},r.payload=a;return}a=a.return}}function zC(r,a,o){var d=wr();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},du(r)?Z_(a,o):(o=$f(r,a,o,d),o!==null&&(ir(o,r,d),X_(o,a,d)))}function V_(r,a,o){var d=wr();ol(r,a,o,d)}function ol(r,a,o,d){var m={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(du(r))Z_(a,m);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var A=a.lastRenderedState,j=b(A,o);if(m.hasEagerState=!0,m.eagerState=j,vr(j,A))return qc(r,a,m,0),Ft===null&&Gc(),!1}catch{}finally{}if(o=$f(r,a,m,d),o!==null)return ir(o,r,d),X_(o,a,d),!0}return!1}function kh(r,a,o,d){if(d={lane:2,revertLane:rp(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},du(r)){if(a)throw Error(i(479))}else a=$f(r,o,d,2),a!==null&&ir(a,r,2)}function du(r){var a=r.alternate;return r===ct||a!==null&&a===ct}function Z_(r,a){Ps=iu=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function X_(r,a,o){if((o&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,o|=d,a.lanes=o,rt(r,o)}}var ll={readContext:In,use:ou,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useLayoutEffect:on,useInsertionEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useSyncExternalStore:on,useId:on,useHostTransitionStatus:on,useFormState:on,useActionState:on,useOptimistic:on,useMemoCache:on,useCacheRefresh:on};ll.useEffectEvent=on;var W_={readContext:In,use:ou,useCallback:function(r,a){return Kn().memoizedState=[r,a===void 0?null:a],r},useContext:In,useEffect:I_,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,cu(4194308,4,P_.bind(null,a,r),o)},useLayoutEffect:function(r,a){return cu(4194308,4,r,a)},useInsertionEffect:function(r,a){cu(4,2,r,a)},useMemo:function(r,a){var o=Kn();a=a===void 0?null:a;var d=r();if(Va){gn(!0);try{r()}finally{gn(!1)}}return o.memoizedState=[d,a],d},useReducer:function(r,a,o){var d=Kn();if(o!==void 0){var m=o(a);if(Va){gn(!0);try{o(a)}finally{gn(!1)}}}else m=a;return d.memoizedState=d.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},d.queue=r,r=r.dispatch=zC.bind(null,ct,r),[d.memoizedState,r]},useRef:function(r){var a=Kn();return r={current:r},a.memoizedState=r},useState:function(r){r=bh(r);var a=r.queue,o=V_.bind(null,ct,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Eh,useDeferredValue:function(r,a){var o=Kn();return xh(o,r,a)},useTransition:function(){var r=bh(!1);return r=H_.bind(null,ct,r.queue,!0,!1),Kn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var d=ct,m=Kn();if(St){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),Ft===null)throw Error(i(349));(xt&127)!==0||b_(d,a,o)}m.memoizedState=o;var b={value:o,getSnapshot:a};return m.queue=b,I_(y_.bind(null,d,b,r),[r]),d.flags|=2048,Fs(9,{destroy:void 0},__.bind(null,d,b,o,a),null),o},useId:function(){var r=Kn(),a=Ft.identifierPrefix;if(St){var o=ei,d=Jr;o=(d&~(1<<32-ft(d)-1)).toString(32)+o,a="_"+a+"R_"+o,o=au++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=NC++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Sh,useFormState:N_,useActionState:N_,useOptimistic:function(r){var a=Kn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=kh.bind(null,ct,!0,o),o.dispatch=a,[r,a]},useMemoCache:gh,useCacheRefresh:function(){return Kn().memoizedState=LC.bind(null,ct)},useEffectEvent:function(r){var a=Kn(),o={impl:r};return a.memoizedState=o,function(){if((Ct&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},Th={readContext:In,use:ou,useCallback:F_,useContext:In,useEffect:yh,useImperativeHandle:U_,useInsertionEffect:z_,useLayoutEffect:B_,useMemo:j_,useReducer:lu,useRef:D_,useState:function(){return lu(ki)},useDebugValue:Eh,useDeferredValue:function(r,a){var o=pn();return $_(o,Dt.memoizedState,r,a)},useTransition:function(){var r=lu(ki)[0],a=pn().memoizedState;return[typeof r=="boolean"?r:sl(r),a]},useSyncExternalStore:v_,useId:Y_,useHostTransitionStatus:Sh,useFormState:O_,useActionState:O_,useOptimistic:function(r,a){var o=pn();return w_(o,Dt,r,a)},useMemoCache:gh,useCacheRefresh:K_};Th.useEffectEvent=L_;var Q_={readContext:In,use:ou,useCallback:F_,useContext:In,useEffect:yh,useImperativeHandle:U_,useInsertionEffect:z_,useLayoutEffect:B_,useMemo:j_,useReducer:vh,useRef:D_,useState:function(){return vh(ki)},useDebugValue:Eh,useDeferredValue:function(r,a){var o=pn();return Dt===null?xh(o,r,a):$_(o,Dt.memoizedState,r,a)},useTransition:function(){var r=vh(ki)[0],a=pn().memoizedState;return[typeof r=="boolean"?r:sl(r),a]},useSyncExternalStore:v_,useId:Y_,useHostTransitionStatus:Sh,useFormState:M_,useActionState:M_,useOptimistic:function(r,a){var o=pn();return Dt!==null?w_(o,Dt,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:gh,useCacheRefresh:K_};Q_.useEffectEvent=L_;function Ah(r,a,o,d){a=r.memoizedState,o=o(d,a),o=o==null?a:g({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Ch={enqueueSetState:function(r,a,o){r=r._reactInternals;var d=wr(),m=sa(d);m.payload=a,o!=null&&(m.callback=o),a=oa(r,m,d),a!==null&&(ir(a,r,d),nl(a,r,d))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var d=wr(),m=sa(d);m.tag=1,m.payload=a,o!=null&&(m.callback=o),a=oa(r,m,d),a!==null&&(ir(a,r,d),nl(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=wr(),d=sa(o);d.tag=2,a!=null&&(d.callback=a),a=oa(r,d,o),a!==null&&(ir(a,r,o),nl(a,r,o))}};function J_(r,a,o,d,m,b,A){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,b,A):a.prototype&&a.prototype.isPureReactComponent?!Vo(o,d)||!Vo(m,b):!0}function ey(r,a,o,d){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,d),a.state!==r&&Ch.enqueueReplaceState(a,a.state,null)}function Za(r,a){var o=a;if("ref"in a){o={};for(var d in a)d!=="ref"&&(o[d]=a[d])}if(r=r.defaultProps){o===a&&(o=g({},o));for(var m in r)o[m]===void 0&&(o[m]=r[m])}return o}function ty(r){Hc(r)}
vendor: 4,976 bytes, line 48
48function ny(r){console.error(r)}function ry(r){Hc(r)}function fu(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function iy(r,a,o){try{var d=r.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Nh(r,a,o){return o=sa(o),o.tag=3,o.payload={element:null},o.callback=function(){fu(r,a)},o}function ay(r){return r=sa(r),r.tag=3,r}function sy(r,a,o,d){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var b=d.value;r.payload=function(){return m(b)},r.callback=function(){iy(a,o,d)}}var A=o.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(r.callback=function(){iy(a,o,d),typeof m!="function"&&(ha===null?ha=new Set([this]):ha.add(this));var j=d.stack;this.componentDidCatch(d.value,{componentStack:j!==null?j:""})})}function BC(r,a,o,d,m){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=o.alternate,a!==null&&Ms(a,o,m,!0),o=_r.current,o!==null){switch(o.tag){case 31:case 13:return Br===null?Su():o.alternate===null&&ln===0&&(ln=3),o.flags&=-257,o.flags|=65536,o.lanes=m,d===Jc?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([d]):a.add(d),ep(r,d,m)),!1;case 22:return o.flags|=65536,d===Jc?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([d]):o.add(d)),ep(r,d,m)),!1}throw Error(i(435,o.tag))}return ep(r,d,m),Su(),!1}if(St)return a=_r.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,d!==Vf&&(r=Error(i(422),{cause:d}),Wo(Dr(r,o)))):(d!==Vf&&(a=Error(i(423),{cause:d}),Wo(Dr(a,o))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,d=Dr(d,o),m=Nh(r.stateNode,d,m),ah(r,m),ln!==4&&(ln=2)),!1;var b=Error(i(520),{cause:d});if(b=Dr(b,o),ml===null?ml=[b]:ml.push(b),ln!==4&&(ln=2),a===null)return!0;d=Dr(d,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=m&-m,o.lanes|=r,r=Nh(o.stateNode,d,r),ah(o,r),!1;case 1:if(a=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ha===null||!ha.has(b))))return o.flags|=65536,m&=-m,o.lanes|=m,m=ay(m),sy(m,r,o,d),ah(o,m),!1}o=o.return}while(o!==null);return!1}var Oh=Error(i(461)),yn=!1;function Ln(r,a,o,d){a.child=r===null?u_(a,null,o,d):Ka(a,r.child,o,d)}function oy(r,a,o,d,m){o=o.render;var b=a.ref;if("ref"in d){var A={};for(var j in d)j!=="ref"&&(A[j]=d[j])}else A=d;return Ha(a),d=dh(r,a,o,A,b,m),j=fh(),r!==null&&!yn?(hh(r,a,m),Ti(r,a,m)):(St&&j&&Yf(a),a.flags|=1,Ln(r,a,d,m),a.child)}function ly(r,a,o,d,m){if(r===null){var b=o.type;return typeof b=="function"&&!Hf(b)&&b.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=b,cy(r,a,b,d,m)):(r=Kc(o.type,null,d,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(b=r.child,!Ph(r,m)){var A=b.memoizedProps;if(o=o.compare,o=o!==null?o:Vo,o(A,d)&&r.ref===a.ref)return Ti(r,a,m)}return a.flags|=1,r=yi(b,d),r.ref=a.ref,r.return=a,a.child=r}function cy(r,a,o,d,m){if(r!==null){var b=r.memoizedProps;if(Vo(b,d)&&r.ref===a.ref)if(yn=!1,a.pendingProps=d=b,Ph(r,m))(r.flags&131072)!==0&&(yn=!0);else return a.lanes=r.lanes,Ti(r,a,m)}return Rh(r,a,o,d,m)}function uy(r,a,o,d){var m=d.children,b=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|o:o,r!==null){for(d=a.child=r.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;d=m&~b}else d=0,a.child=null;return dy(r,a,b,o,d)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Wc(a,b!==null?b.cachePool:null),b!==null?h_(a,b):oh(),p_(a);else return d=a.lanes=536870912,dy(r,a,b!==null?b.baseLanes|o:o,o,d)}else b!==null?(Wc(a,b.cachePool),h_(a,b),ca(),a.memoizedState=null):(r!==null&&Wc(a,null),oh(),ca());return Ln(r,a,m,o),a.child}function cl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function dy(r,a,o,d,m){var b=th();return b=b===null?null:{parent:bn._currentValue,pool:b},a.memoizedState={baseLanes:o,cachePool:b},r!==null&&Wc(a,null),oh(),p_(a),r!==null&&Ms(r,a,d,!0),a.childLanes=m,null}function hu(r,a){return a=gu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function fy(r,a,o){return Ka(a,r.child,null,o),r=hu(a,a.pendingProps),r.flags|=2,yr(a),a.memoizedState=null,r}function PC(r,a,o){var d=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(St){if(d.mode==="hidden")return r=hu(a,d),a.lanes=536870912,cl(null,r);if(ch(a),(r=Zt)?(r=S0(r,zr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ta!==null?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null}
vendor: 5,053 bytes, line 48
48,o=Zb(r),o.return=a,a.child=o,Dn=a,Zt=null)):r=null,r===null)throw ra(a);return a.lanes=536870912,null}return hu(a,d)}var b=r.memoizedState;if(b!==null){var A=b.dehydrated;if(ch(a),m)if(a.flags&256)a.flags&=-257,a=fy(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(yn||Ms(r,a,o,!1),m=(o&r.childLanes)!==0,yn||m){if(d=Ft,d!==null&&(A=un(d,o),A!==0&&A!==b.retryLane))throw b.retryLane=A,Ua(r,A),ir(d,r,A),Oh;Su(),a=fy(r,a,o)}else r=b.treeContext,Zt=Pr(A.nextSibling),Dn=a,St=!0,na=null,zr=!1,r!==null&&Qb(a,r),a=hu(a,d),a.flags|=4096;return a}return r=yi(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function pu(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function Rh(r,a,o,d,m){return Ha(a),o=dh(r,a,o,d,void 0,m),d=fh(),r!==null&&!yn?(hh(r,a,m),Ti(r,a,m)):(St&&d&&Yf(a),a.flags|=1,Ln(r,a,o,m),a.child)}function hy(r,a,o,d,m,b){return Ha(a),a.updateQueue=null,o=m_(a,d,o,m),g_(r),d=fh(),r!==null&&!yn?(hh(r,a,b),Ti(r,a,b)):(St&&d&&Yf(a),a.flags|=1,Ln(r,a,o,b),a.child)}function py(r,a,o,d,m){if(Ha(a),a.stateNode===null){var b=Cs,A=o.contextType;typeof A=="object"&&A!==null&&(b=In(A)),b=new o(d,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Ch,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=d,b.state=a.memoizedState,b.refs={},rh(a),A=o.contextType,b.context=typeof A=="object"&&A!==null?In(A):Cs,b.state=a.memoizedState,A=o.getDerivedStateFromProps,typeof A=="function"&&(Ah(a,o,A,d),b.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(A=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),A!==b.state&&Ch.enqueueReplaceState(b,b.state,null),il(a,d,b,m),rl(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(r===null){b=a.stateNode;var j=a.memoizedProps,X=Za(o,j);b.props=X;var pe=b.context,Ee=o.contextType;A=Cs,typeof Ee=="object"&&Ee!==null&&(A=In(Ee));var ke=o.getDerivedStateFromProps;Ee=typeof ke=="function"||typeof b.getSnapshotBeforeUpdate=="function",j=a.pendingProps!==j,Ee||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(j||pe!==A)&&ey(a,b,d,A),aa=!1;var ge=a.memoizedState;b.state=ge,il(a,d,b,m),rl(),pe=a.memoizedState,j||ge!==pe||aa?(typeof ke=="function"&&(Ah(a,o,ke,d),pe=a.memoizedState),(X=aa||J_(a,o,X,d,ge,pe,A))?(Ee||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=pe),b.props=d,b.state=pe,b.context=A,d=X):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{b=a.stateNode,ih(r,a),A=a.memoizedProps,Ee=Za(o,A),b.props=Ee,ke=a.pendingProps,ge=b.context,pe=o.contextType,X=Cs,typeof pe=="object"&&pe!==null&&(X=In(pe)),j=o.getDerivedStateFromProps,(pe=typeof j=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(A!==ke||ge!==X)&&ey(a,b,d,X),aa=!1,ge=a.memoizedState,b.state=ge,il(a,d,b,m),rl();var be=a.memoizedState;A!==ke||ge!==be||aa||r!==null&&r.dependencies!==null&&Zc(r.dependencies)?(typeof j=="function"&&(Ah(a,o,j,d),be=a.memoizedState),(Ee=aa||J_(a,o,Ee,d,ge,be,X)||r!==null&&r.dependencies!==null&&Zc(r.dependencies))?(pe||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,be,X),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,be,X)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||A===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=be),b.props=d,b.state=be,b.context=X,d=Ee):(typeof b.componentDidUpdate!="function"||A===r.memoizedProps&&ge===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||A===r.memoizedProps&&ge===r.memoizedState||(a.flags|=1024),d=!1)}return b=d,pu(r,a),d=(a.flags&128)!==0,b||d?(b=a.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,r!==null&&d?(a.child=Ka(a,r.child,null,m),a.child=Ka(a,null,o,m)):Ln(r,a,o,m),a.memoizedState=b.state,r=
vendor: 2,584 bytes, line 48
48a.child):r=Ti(r,a,m),r}function gy(r,a,o,d){return ja(),a.flags|=256,Ln(r,a,o,d),a.child}var Mh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dh(r){return{baseLanes:r,cachePool:i_()}}function Ih(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=xr),r}function my(r,a,o){var d=a.pendingProps,m=!1,b=(a.flags&128)!==0,A;if((A=b)||(A=r!==null&&r.memoizedState===null?!1:(hn.current&2)!==0),A&&(m=!0,a.flags&=-129),A=(a.flags&32)!==0,a.flags&=-33,r===null){if(St){if(m?la(a):ca(),(r=Zt)?(r=S0(r,zr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ta!==null?{id:Jr,overflow:ei}:null,retryLane:536870912,hydrationErrors:null},o=Zb(r),o.return=a,a.child=o,Dn=a,Zt=null)):r=null,r===null)throw ra(a);return mp(r)?a.lanes=32:a.lanes=536870912,null}var j=d.children;return d=d.fallback,m?(ca(),m=a.mode,j=gu({mode:"hidden",children:j},m),d=Fa(d,m,o,null),j.return=a,d.return=a,j.sibling=d,a.child=j,d=a.child,d.memoizedState=Dh(o),d.childLanes=Ih(r,A,o),a.memoizedState=Mh,cl(null,d)):(la(a),Lh(a,j))}var X=r.memoizedState;if(X!==null&&(j=X.dehydrated,j!==null)){if(b)a.flags&256?(la(a),a.flags&=-257,a=zh(r,a,o)):a.memoizedState!==null?(ca(),a.child=r.child,a.flags|=128,a=null):(ca(),j=d.fallback,m=a.mode,d=gu({mode:"visible",children:d.children},m),j=Fa(j,m,o,null),j.flags|=2,d.return=a,j.return=a,d.sibling=j,a.child=d,Ka(a,r.child,null,o),d=a.child,d.memoizedState=Dh(o),d.childLanes=Ih(r,A,o),a.memoizedState=Mh,a=cl(null,d));else if(la(a),mp(j)){if(A=j.nextSibling&&j.nextSibling.dataset,A)var pe=A.dgst;A=pe,d=Error(i(419)),d.stack="",d.digest=A,Wo({value:d,source:null,stack:null}),a=zh(r,a,o)}else if(yn||Ms(r,a,o,!1),A=(o&r.childLanes)!==0,yn||A){if(A=Ft,A!==null&&(d=un(A,o),d!==0&&d!==X.retryLane))throw X.retryLane=d,Ua(r,d),ir(A,r,d),Oh;gp(j)||Su(),a=zh(r,a,o)}else gp(j)?(a.flags|=192,a.child=r.child,a=null):(r=X.treeContext,Zt=Pr(j.nextSibling),Dn=a,St=!0,na=null,zr=!1,r!==null&&Qb(a,r),a=Lh(a,d.children),a.flags|=4096);return a}return m?(ca(),j=d.fallback,m=a.mode,X=r.child,pe=X.sibling,d=yi(X,{mode:"hidden",children:d.children}),d.subtreeFlags=X.subtreeFlags&65011712,pe!==null?j=yi(pe,j):(j=Fa(j,m,o,null),j.flags|=2),j.return=a,d.return=a,d.sibling=j,a.child=d,cl(null,d),d=a.child,j=r.child.memoizedState,j===null?j=Dh(o):(m=j.cachePool,m!==null?(X=bn._currentValue,m=m.parent!==X?{parent:X,pool:X}:m):m=i_(),j={baseLanes:j.baseLanes|o,cachePool:m}),d.memoizedState=j,d.childLanes=Ih(r,A,o),a.memoizedState=Mh,cl(r.child,d)):(la(a),o=r.child,r=o.sibling,o=yi(o,{mode:"visible",children:d.children}
vendor: 5,968 bytes, line 48
48),o.return=a,o.sibling=null,r!==null&&(A=a.deletions,A===null?(a.deletions=[r],a.flags|=16):A.push(r)),a.child=o,a.memoizedState=null,o)}function Lh(r,a){return a=gu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function gu(r,a){return r=br(22,r,null,a),r.lanes=0,r}function zh(r,a,o){return Ka(a,r.child,null,o),r=Lh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function vy(r,a,o){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),Wf(r.return,a,o)}function Bh(r,a,o,d,m,b){var A=r.memoizedState;A===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:m,treeForkCount:b}:(A.isBackwards=a,A.rendering=null,A.renderingStartTime=0,A.last=d,A.tail=o,A.tailMode=m,A.treeForkCount=b)}function by(r,a,o){var d=a.pendingProps,m=d.revealOrder,b=d.tail;d=d.children;var A=hn.current,j=(A&2)!==0;if(j?(A=A&1|2,a.flags|=128):A&=1,U(hn,A),Ln(r,a,d,o),d=St?Xo:0,!j&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&vy(r,o,a);else if(r.tag===19)vy(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(o=a.child,m=null;o!==null;)r=o.alternate,r!==null&&ru(r)===null&&(m=o),o=o.sibling;o=m,o===null?(m=a.child,a.child=null):(m=o.sibling,o.sibling=null),Bh(a,!1,m,o,b,d);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&ru(r)===null){a.child=m;break}r=m.sibling,m.sibling=o,o=m,m=r}Bh(a,!0,o,null,b,d);break;case"together":Bh(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function Ti(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),fa|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(Ms(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=yi(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=yi(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function Ph(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Zc(r)))}function UC(r,a,o){switch(a.tag){case 3:re(a,a.stateNode.containerInfo),ia(a,bn,r.memoizedState.cache),ja();break;case 27:case 5:ce(a);break;case 4:re(a,a.stateNode.containerInfo);break;case 10:ia(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,ch(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(la(a),a.flags|=128,null):(o&a.child.childLanes)!==0?my(r,a,o):(la(a),r=Ti(r,a,o),r!==null?r.sibling:null);la(a);break;case 19:var m=(r.flags&128)!==0;if(d=(o&a.childLanes)!==0,d||(Ms(r,a,o,!1),d=(o&a.childLanes)!==0),m){if(d)return by(r,a,o);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),U(hn,hn.current),d)break;return null;case 22:return a.lanes=0,uy(r,a,o,a.pendingProps);case 24:ia(a,bn,r.memoizedState.cache)}return Ti(r,a,o)}function _y(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)yn=!0;else{if(!Ph(r,o)&&(a.flags&128)===0)return yn=!1,UC(r,a,o);yn=(r.flags&131072)!==0}else yn=!1,St&&(a.flags&1048576)!==0&&Wb(a,Xo,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=qa(a.elementType),a.type=r,typeof r=="function")Hf(r)?(d=Za(r,d),a.tag=1,a=py(null,a,r,d,o)):(a.tag=0,a=Rh(null,a,r,d,o));else{if(r!=null){var m=r.$$typeof;if(m===F){a.tag=11,a=oy(null,a,r,d,o);break e}else if(m===M){a.tag=14,a=ly(null,a,r,d,o);break e}}throw a=w(r)||r,Error(i(306,a,""))}}return a;case 0:return Rh(r,a,a.type,a.pendingProps,o);case 1:return d=a.type,m=Za(d,a.pendingProps),py(r,a,d,m,o);case 3:e:{if(re(a,a.stateNode.containerInfo),r===null)throw Error(i(387));d=a.pendingProps;var b=a.memoizedState;m=b.element,ih(r,a),il(a,d,null,o);var A=a.memoizedState;if(d=A.cache,ia(a,bn,d),d!==b.cache&&Qf(a,[bn],o,!0),rl(),d=A.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:A.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=gy(r,a,d,o);break e}else if(d!==m){m=Dr(Error(i(424)),a),Wo(m),a=gy(r,a,d,o);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Zt=Pr(r.firstChild),Dn=a,St=!0,na=null,zr=!0,o=u_(a,null,d,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(ja(),d===m){a=Ti(r,a,o);break e}Ln(r,a,d,o)}a=a.child}return a;case 26:return pu(r,a),r===null?(o=O0(a.type,null,a.pendingProps,null))?a.memoizedState=o:St||(o=a.type,r=a.pendingProps,d=Ru(Se.current).createElement(o),d[dn]=a,d[Fn]=r,zn(d,o,r),mn(d),a.stateNode=d):a.memoizedState=O0(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ce(a),r===null&&St&&(d=a.stateNode=A0(a.type,a.pendingProps,Se.current),Dn=a,zr=!0,m=Zt,va(a.type)?(vp=m,Zt=Pr(d.firstChild)):Zt=m),Ln(r,a,a.pendingProps.children,o),pu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&St&&((m=d=Zt)&&(d=gN(d,a.type,a.pendingProps,zr),d!==null?(a.stateNode=d,Dn=a,Zt=Pr(d.firstChild),zr=!1,m=!0):m=!1),m||ra(a)),ce(a),m=a.type,b=a.pendingProps,A=r!==null?r.memoizedProps:null,d=b.children,fp(m,b)?d=null:A!==null&&fp(m,A)&&(a.flags|=32),a.memoizedState!==null&&(m=dh(r,a,OC,null,null,o),Sl._currentValue=m),pu(r,a),Ln(r,a,d,o),a.child;case 6:return r===null&&St&&((r=o=Zt)&&(o=mN(o,a.pendingProps,zr),o!==null?(a.stateNode=o,Dn=a,Zt=null,r=!0):r=!1),r||ra(a)),null;case 13:return my(r,a,o);case 4:return re(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=Ka(a,null,d,o):Ln(r,a,d,o),a.child;case 11:return oy(r,a,a.type,a.pendingProps,o);case 7:return Ln(r,a,a.pendingProps,o),a.child;case 8:return Ln(r,a,a.pendingProps.children,o),a.child;case 12:return Ln(r,a,a.pendingProps.children,o),a.child;case 10:return d=a.pendingProps,ia(a,a.type,d.value),Ln(r,a,d.children,o),a.child;
vendor: 4,764 bytes, line 48
48case 9:return m=a.type._context,d=a.pendingProps.children,Ha(a),m=In(m),d=d(m),a.flags|=1,Ln(r,a,d,o),a.child;case 14:return ly(r,a,a.type,a.pendingProps,o);case 15:return cy(r,a,a.type,a.pendingProps,o);case 19:return by(r,a,o);case 31:return PC(r,a,o);case 22:return uy(r,a,o,a.pendingProps);case 24:return Ha(a),d=In(bn),r===null?(m=th(),m===null&&(m=Ft,b=Jf(),m.pooledCache=b,b.refCount++,b!==null&&(m.pooledCacheLanes|=o),m=b),a.memoizedState={parent:d,cache:m},rh(a),ia(a,bn,m)):((r.lanes&o)!==0&&(ih(r,a),il(a,null,null,o),rl()),m=r.memoizedState,b=a.memoizedState,m.parent!==d?(m={parent:d,cache:d},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),ia(a,bn,d)):(d=b.cache,ia(a,bn,d),d!==m.cache&&Qf(a,[bn],o,!0))),Ln(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Ai(r){r.flags|=4}function Uh(r,a,o,d,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(Yy())r.flags|=8192;else throw Ya=Jc,nh}else r.flags&=-16777217}function yy(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!L0(a))if(Yy())r.flags|=8192;else throw Ya=Jc,nh}function mu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?at():536870912,r.lanes|=a,Gs|=a)}function ul(r,a){if(!St)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Xt(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,d=0;if(a)for(var m=r.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags&65011712,d|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=o,a}function FC(r,a,o){var d=a.pendingProps;switch(Kf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(a),null;case 1:return Xt(a),null;case 3:return o=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),wi(bn),ne(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Rs(a)?Ai(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zf())),Xt(a),null;case 26:var m=a.type,b=a.memoizedState;return r===null?(Ai(a),b!==null?(Xt(a),yy(a,b)):(Xt(a),Uh(a,m,null,d,o))):b?b!==r.memoizedState?(Ai(a),Xt(a),yy(a,b)):(Xt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&Ai(a),Xt(a),Uh(a,m,r,d,o)),null;case 27:if(me(a),o=Se.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Ai(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Xt(a),null}r=ue.current,Rs(a)?Jb(a):(r=A0(m,d,o),a.stateNode=r,Ai(a))}return Xt(a),null;case 5:if(me(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&Ai(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Xt(a),null}if(b=ue.current,Rs(a))Jb(a);else{var A=Ru(Se.current);switch(b){case 1:b=A.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:b=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":b=A.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":b=A.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":b=A.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof d.is=="string"?A.createElement("select",{is:d.is}):A.createElement("select"),d.multiple?b.multiple=!0:d.size&&(b.size=d.size);break;default:b=typeof d.is=="string"?A.createElement(m,{is:d.is}):A.createElement(m)}}b[dn]=a,b[Fn]=d;e:for(A=a.child;A!==null;){if(A.tag===5||A.tag===6)b.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===a)break e;for(;A.sibling===null;){if(A.return===null||A.return===a)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}a.stateNode=b;e:switch(zn(b,m,d),m){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ai(a)}}return Xt(a),Uh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&Ai(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(i(166));if(r=Se.current,Rs(a)){if(r=a.stateNode,o=a.memoizedProps,d=null,m=Dn,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}r[dn]=a,r=!!(r.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||m0(r.nodeValue,o)),r||ra(a,!0)}
vendor: 25,185 bytes, line 48
48else r=Ru(r).createTextNode(d),r[dn]=a,a.stateNode=r}return Xt(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(d=Rs(a),o!==null){if(r===null){if(!d)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[dn]=a}else ja(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Xt(a),r=!1}else o=Zf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(yr(a),a):(yr(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Xt(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Rs(a),d!==null&&d.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[dn]=a}else ja(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Xt(a),m=!1}else m=Zf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(yr(a),a):(yr(a),null)}return yr(a),(a.flags&128)!==0?(a.lanes=o,a):(o=d!==null,r=r!==null&&r.memoizedState!==null,o&&(d=a.child,m=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(m=d.alternate.memoizedState.cachePool.pool),b=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==m&&(d.flags|=2048)),o!==r&&o&&(a.child.flags|=8192),mu(a,a.updateQueue),Xt(a),null);case 4:return ne(),r===null&&op(a.stateNode.containerInfo),Xt(a),null;case 10:return wi(a.type),Xt(a),null;case 19:if(Y(hn),d=a.memoizedState,d===null)return Xt(a),null;if(m=(a.flags&128)!==0,b=d.rendering,b===null)if(m)ul(d,!1);else{if(ln!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=ru(r),b!==null){for(a.flags|=128,ul(d,!1),r=b.updateQueue,a.updateQueue=r,mu(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)Vb(o,r),o=o.sibling;return U(hn,hn.current&1|2),St&&Ei(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&Re()>Eu&&(a.flags|=128,m=!0,ul(d,!1),a.lanes=4194304)}else{if(!m)if(r=ru(b),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,mu(a,r),ul(d,!0),d.tail===null&&d.tailMode==="hidden"&&!b.alternate&&!St)return Xt(a),null}else 2*Re()-d.renderingStartTime>Eu&&o!==536870912&&(a.flags|=128,m=!0,ul(d,!1),a.lanes=4194304);d.isBackwards?(b.sibling=a.child,a.child=b):(r=d.last,r!==null?r.sibling=b:a.child=b,d.last=b)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=Re(),r.sibling=null,o=hn.current,U(hn,m?o&1|2:o&1),St&&Ei(a,d.treeForkCount),r):(Xt(a),null);case 22:case 23:return yr(a),lh(),d=a.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(o&536870912)!==0&&(a.flags&128)===0&&(Xt(a),a.subtreeFlags&6&&(a.flags|=8192)):Xt(a),o=a.updateQueue,o!==null&&mu(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==o&&(a.flags|=2048),r!==null&&Y(Ga),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),wi(bn),Xt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function jC(r,a){switch(Kf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return wi(bn),ne(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return me(a),null;case 31:if(a.memoizedState!==null){if(yr(a),a.alternate===null)throw Error(i(340));ja()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(yr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ja()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Y(hn),null;case 4:return ne(),null;case 10:return wi(a.type),null;case 22:case 23:return yr(a),lh(),r!==null&&Y(Ga),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return wi(bn),null;case 25:return null;default:return null}}function Ey(r,a){switch(Kf(a),a.tag){case 3:wi(bn),ne();break;case 26:case 27:case 5:me(a);break;case 4:ne();break;case 31:a.memoizedState!==null&&yr(a);break;case 13:yr(a);break;case 19:Y(hn);break;case 10:wi(a.type);break;case 22:case 23:yr(a),lh(),r!==null&&Y(Ga);break;case 24:wi(bn)}}function dl(r,a){try{var o=a.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&r)===r){d=void 0;var b=o.create,A=o.inst;d=b(),A.destroy=d}o=o.next}while(o!==m)}}catch(j){Mt(a,a.return,j)}}function ua(r,a,o){try{var d=a.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next;d=b;do{if((d.tag&r)===r){var A=d.inst,j=A.destroy;if(j!==void 0){A.destroy=void 0,m=a;var X=o,pe=j;try{pe()}catch(Ee){Mt(m,X,Ee)}}}d=d.next}while(d!==b)}}catch(Ee){Mt(a,a.return,Ee)}}function xy(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{f_(a,o)}catch(d){Mt(r,r.return,d)}}}function wy(r,a,o){o.props=Za(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(d){Mt(r,a,d)}}function fl(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof o=="function"?r.refCleanup=o(d):o.current=d}}catch(m){Mt(r,a,m)}}function ti(r,a){var o=r.ref,d=r.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(m){Mt(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){Mt(r,a,m)}else o.current=null}function Sy(r){var a=r.type,o=r.memoizedProps,d=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(m){Mt(r,r.return,m)}}function Fh(r,a,o){try{var d=r.stateNode;cN(d,r.type,o,a),d[Fn]=a}catch(m){Mt(r,r.return,m)}}function ky(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&va(r.type)||r.tag===4}function jh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||ky(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&va(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function $h(r,a,o){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=ze));else if(d!==4&&(d===27&&va(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for($h(r,a,o),r=r.sibling;r!==null;)$h(r,a,o),r=r.sibling}function vu(r,a,o){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(d!==4&&(d===27&&va(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(vu(r,a,o),r=r.sibling;r!==null;)vu(r,a,o),r=r.sibling}function Ty(r){var a=r.stateNode,o=r.memoizedProps;try{for(var d=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);zn(a,d,o),a[dn]=r,a[Fn]=o}catch(b){Mt(r,r.return,b)}}var Ci=!1,En=!1,Hh=!1,Ay=typeof WeakSet=="function"?WeakSet:Set,An=null;function $C(r,a){if(r=r.containerInfo,up=Pu,r=Ub(r),zf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var m=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var A=0,j=-1,X=-1,pe=0,Ee=0,ke=r,ge=null;t:for(;;){for(var be;ke!==o||m!==0&&ke.nodeType!==3||(j=A+m),ke!==b||d!==0&&ke.nodeType!==3||(X=A+d),ke.nodeType===3&&(A+=ke.nodeValue.length),(be=ke.firstChild)!==null;)ge=ke,ke=be;for(;;){if(ke===r)break t;if(ge===o&&++pe===m&&(j=A),ge===b&&++Ee===d&&(X=A),(be=ke.nextSibling)!==null)break;ke=ge,ge=ke.parentNode}ke=be}o=j===-1||X===-1?null:{start:j,end:X}}else o=null}o=o||{start:0,end:0}}else o=null;for(dp={focusedElem:r,selectionRange:o},Pu=!1,An=a;An!==null;)if(a=An,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,An=r;else for(;An!==null;){switch(a=An,b=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)m=r[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&b!==null){r=void 0,o=a,m=b.memoizedProps,b=b.memoizedState,d=o.stateNode;try{var Ye=Za(o.type,m);r=d.getSnapshotBeforeUpdate(Ye,b),d.__reactInternalSnapshotBeforeUpdate=r}catch(tt){Mt(o,o.return,tt)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)pp(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":pp(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,An=r;break}An=a.return}}function Cy(r,a,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:Oi(r,o),d&4&&dl(5,o);break;case 1:if(Oi(r,o),d&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(A){Mt(o,o.return,A)}else{var m=Za(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(A){Mt(o,o.return,A)}}d&64&&xy(o),d&512&&fl(o,o.return);break;case 3:if(Oi(r,o),d&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{f_(r,a)}catch(A){Mt(o,o.return,A)}}break;case 27:a===null&&d&4&&Ty(o);case 26:case 5:Oi(r,o),a===null&&d&4&&Sy(o),d&512&&fl(o,o.return);break;case 12:Oi(r,o);break;case 31:Oi(r,o),d&4&&Ry(r,o);break;case 13:Oi(r,o),d&4&&My(r,o),d&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=WC.bind(null,o),vN(r,o))));break;case 22:if(d=o.memoizedState!==null||Ci,!d){a=a!==null&&a.memoizedState!==null||En,m=Ci;var b=En;Ci=d,(En=a)&&!b?Ri(r,o,(o.subtreeFlags&8772)!==0):Oi(r,o),Ci=m,En=b}break;case 30:break;default:Oi(r,o)}}function Ny(r){var a=r.alternate;a!==null&&(r.alternate=null,Ny(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&zo(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var tn=null,er=!1;function Ni(r,a,o){for(o=o.child;o!==null;)Oy(r,a,o),o=o.sibling}function Oy(r,a,o){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(dt,o)}catch{}switch(o.tag){case 26:En||ti(o,a),Ni(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:En||ti(o,a);var d=tn,m=er;va(o.type)&&(tn=o.stateNode,er=!1),Ni(r,a,o),El(o.stateNode),tn=d,er=m;break;case 5:En||ti(o,a);case 6:if(d=tn,m=er,tn=null,Ni(r,a,o),tn=d,er=m,tn!==null)if(er)try{(tn.nodeType===9?tn.body:tn.nodeName==="HTML"?tn.ownerDocument.body:tn).removeChild(o.stateNode)}catch(b){Mt(o,a,b)}else try{tn.removeChild(o.stateNode)}catch(b){Mt(o,a,b)}break;case 18:tn!==null&&(er?(r=tn,x0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Qs(r)):x0(tn,o.stateNode));break;case 4:d=tn,m=er,tn=o.stateNode.containerInfo,er=!0,Ni(r,a,o),tn=d,er=m;break;case 0:case 11:case 14:case 15:ua(2,o,a),En||ua(4,o,a),Ni(r,a,o);break;case 1:En||(ti(o,a),d=o.stateNode,typeof d.componentWillUnmount=="function"&&wy(o,a,d)),Ni(r,a,o);break;case 21:Ni(r,a,o);break;case 22:En=(d=En)||o.memoizedState!==null,Ni(r,a,o),En=d;break;default:Ni(r,a,o)}}function Ry(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Qs(r)}catch(o){Mt(a,a.return,o)}}}function My(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Qs(r)}catch(o){Mt(a,a.return,o)}}function HC(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Ay),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Ay),a;default:throw Error(i(435,r.tag))}}function bu(r,a){var o=HC(r);a.forEach(function(d){if(!o.has(d)){o.add(d);var m=QC.bind(null,r,d);d.then(m,m)}})}function tr(r,a){var o=a.deletions;if(o!==null)for(var d=0;d<o.length;d++){var m=o[d],b=r,A=a,j=A;e:for(;j!==null;){switch(j.tag){case 27:if(va(j.type)){tn=j.stateNode,er=!1;break e}break;case 5:tn=j.stateNode,er=!1;break e;case 3:case 4:tn=j.stateNode.containerInfo,er=!0;break e}j=j.return}if(tn===null)throw Error(i(160));Oy(b,A,m),tn=null,er=!1,b=m.alternate,b!==null&&(b.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Dy(a,r),a=a.sibling}var Yr=null;function Dy(r,a){var o=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:tr(a,r),nr(r),d&4&&(ua(3,r,r.return),dl(3,r),ua(5,r,r.return));break;case 1:tr(a,r),nr(r),d&512&&(En||o===null||ti(o,o.return)),d&64&&Ci&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var m=Yr;if(tr(a,r),nr(r),d&512&&(En||o===null||ti(o,o.return)),d&4){var b=o!==null?o.memoizedState:null;if(d=r.memoizedState,o===null)if(d===null)if(r.stateNode===null){e:{d=r.type,o=r.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":b=m.getElementsByTagName("title")[0],(!b||b[Da]||b[dn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=m.createElement(d),m.head.insertBefore(b,m.querySelector("head > title"))),zn(b,d,o),b[dn]=r,mn(b),d=b;break e;case"link":var A=D0("link","href",m).get(d+(o.href||""));if(A){for(var j=0;j<A.length;j++)if(b=A[j],b.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&b.getAttribute("rel")===(o.rel==null?null:o.rel)&&b.getAttribute("title")===(o.title==null?null:o.title)&&b.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){A.splice(j,1);break t}}b=m.createElement(d),zn(b,d,o),m.head.appendChild(b);break;case"meta":if(A=D0("meta","content",m).get(d+(o.content||""))){for(j=0;j<A.length;j++)if(b=A[j],b.getAttribute("content")===(o.content==null?null:""+o.content)&&b.getAttribute("name")===(o.name==null?null:o.name)&&b.getAttribute("property")===(o.property==null?null:o.property)&&b.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&b.getAttribute("charset")===(o.charSet==null?null:o.charSet)){A.splice(j,1);break t}}b=m.createElement(d),zn(b,d,o),m.head.appendChild(b);break;default:throw Error(i(468,d))}b[dn]=r,mn(b),d=b}r.stateNode=d}else I0(m,r.type,r.stateNode);else r.stateNode=M0(m,d,r.memoizedProps);else b!==d?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,d===null?I0(m,r.type,r.stateNode):M0(m,d,r.memoizedProps)):d===null&&r.stateNode!==null&&Fh(r,r.memoizedProps,o.memoizedProps)}break;case 27:tr(a,r),nr(r),d&512&&(En||o===null||ti(o,o.return)),o!==null&&d&4&&Fh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(tr(a,r),nr(r),d&512&&(En||o===null||ti(o,o.return)),r.flags&32){m=r.stateNode;try{nt(m,"")}catch(Ye){Mt(r,r.return,Ye)}}d&4&&r.stateNode!=null&&(m=r.memoizedProps,Fh(r,m,o!==null?o.memoizedProps:m)),d&1024&&(Hh=!0);break;case 6:if(tr(a,r),nr(r),d&4){if(r.stateNode===null)throw Error(i(162));d=r.memoizedProps,o=r.stateNode;try{o.nodeValue=d}catch(Ye){Mt(r,r.return,Ye)}}break;case 3:if(Iu=null,m=Yr,Yr=Mu(a.containerInfo),tr(a,r),Yr=m,nr(r),d&4&&o!==null&&o.memoizedState.isDehydrated)try{Qs(a.containerInfo)}catch(Ye){Mt(r,r.return,Ye)}Hh&&(Hh=!1,Iy(r));break;case 4:d=Yr,Yr=Mu(r.stateNode.containerInfo),tr(a,r),nr(r),Yr=d;break;case 12:tr(a,r),nr(r);break;case 31:tr(a,r),nr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,bu(r,d)));break;case 13:tr(a,r),nr(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(yu=Re()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,bu(r,d)));break;case 22:m=r.memoizedState!==null;var X=o!==null&&o.memoizedState!==null,pe=Ci,Ee=En;if(Ci=pe||m,En=Ee||X,tr(a,r),En=Ee,Ci=pe,nr(r),d&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(o===null||X||Ci||En||Xa(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){X=o=a;try{if(b=X.stateNode,m)A=b.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{j=X.stateNode;var ke=X.memoizedProps.style,ge=ke!=null&&ke.hasOwnProperty("display")?ke.display:null;j.style.display=ge==null||typeof ge=="boolean"?"":(""+ge).trim()}}catch(Ye){Mt(X,X.return,Ye)}}}else if(a.tag===6){if(o===null){X=a;try{X.stateNode.nodeValue=m?"":X.memoizedProps}catch(Ye){Mt(X,X.return,Ye)}}}else if(a.tag===18){if(o===null){X=a;try{var be=X.stateNode;m?w0(be,!0):w0(X.stateNode,!1)}catch(Ye){Mt(X,X.return,Ye)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=r.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,bu(r,o))));break;case 19:tr(a,r),nr(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,bu(r,d)));break;case 30:break;case 21:break;default:tr(a,r),nr(r)}}function nr(r){var a=r.flags;if(a&2){try{for(var o,d=r.return;d!==null;){if(ky(d)){o=d;break}d=d.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var m=o.stateNode,b=jh(r);vu(r,b,m);break;case 5:var A=o.stateNode;o.flags&32&&(nt(A,""),o.flags&=-33);var j=jh(r);vu(r,j,A);break;case 3:case 4:var X=o.stateNode.containerInfo,pe=jh(r);$h(r,pe,X);break;default:throw Error(i(161))}}catch(Ee){Mt(r,r.return,Ee)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Iy(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Iy(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Oi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Cy(r,a.alternate,a),a=a.sibling}function Xa(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ua(4,a,a.return),Xa(a);break;case 1:ti(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&wy(a,a.return,o),Xa(a);break;case 27:El(a.stateNode);case 26:case 5:ti(a,a.return),Xa(a);break;case 22:a.memoizedState===null&&Xa(a);break;case 30:Xa(a);break;default:Xa(a)}r=r.sibling}}function Ri(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,m=r,b=a,A=b.flags;switch(b.tag){case 0:case 11:case 15:Ri(m,b,o),dl(4,b);break;case 1:if(Ri(m,b,o),d=b,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(pe){Mt(d,d.return,pe)}if(d=b,m=d.updateQueue,m!==null){var j=d.stateNode;try{var X=m.shared.hiddenCallbacks;if(X!==null)for(m.shared.hiddenCallbacks=null,m=0;m<X.length;m++)d_(X[m],j)}catch(pe){Mt(d,d.return,pe)}}o&&A&64&&xy(b),fl(b,b.return);break;case 27:Ty(b);case 26:case 5:Ri(m,b,o),o&&d===null&&A&4&&Sy(b),fl(b,b.return);break;case 12:Ri(m,b,o);break;case 31:Ri(m,b,o),o&&A&4&&Ry(m,b);break;case 13:Ri(m,b,o),o&&A&4&&My(m,b);break;case 22:b.memoizedState===null&&Ri(m,b,o),fl(b,b.return);break;case 30:break;default:Ri(m,b,o)}a=a.sibling}}function Gh(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Qo(o))}function qh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Qo(r))}function Kr(r,a,o,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ly(r,a,o,d),a=a.sibling}function Ly(r,a,o,d){var m=a.flags;switch(a.tag){case 0:case 11:case 15:Kr(r,a,o,d),m&2048&&dl(9,a);break;case 1:Kr(r,a,o,d);break;case 3:Kr(r,a,o,d),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Qo(r)));break;case 12:if(m&2048){Kr(r,a,o,d),r=a.stateNode;try{var b=a.memoizedProps,A=b.id,j=b.onPostCommit;typeof j=="function"&&j(A,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(X){Mt(a,a.return,X)}}else Kr(r,a,o,d);break;case 31:Kr(r,a,o,d);break;case 13:Kr(r,a,o,d);break;case 23:break;case 22:b=a.stateNode,A=a.alternate,a.memoizedState!==null?b._visibility&2?Kr(r,a,o,d):hl(r,a):b._visibility&2?Kr(r,a,o,d):(b._visibility|=2,js(r,a,o,d,(a.subtreeFlags&10256)!==0||!1)),m&2048&&Gh(A,a);break;case 24:Kr(r,a,o,d),m&2048&&qh(a.alternate,a);break;default:Kr(r,a,o,d)}}function js(r,a,o,d,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=r,A=a,j=o,X=d,pe=A.flags;switch(A.tag){case 0:case 11:case 15:js(b,A,j,X,m),dl(8,A);break;case 23:break;case 22:var Ee=A.stateNode;A.memoizedState!==null?Ee._visibility&2?js(b,A,j,X,m):hl(b,A):(Ee._visibility|=2,js(b,A,j,X,m)),m&&pe&2048&&Gh(A.alternate,A);break;case 24:js(b,A,j,X,m),m&&pe&2048&&qh(A.alternate,A);break;default:js(b,A,j,X,m)}a=a.sibling}}function hl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,d=a,m=d.flags;switch(d.tag){case 22:hl(o,d),m&2048&&Gh(d.alternate,d);break;case 24:hl(o,d),m&2048&&qh(d.alternate,d);break;default:hl(o,d)}a=a.sibling}}var pl=8192;function $s(r,a,o){if(r.subtreeFlags&pl)for(r=r.child;r!==null;)zy(r,a,o),r=r.sibling}function zy(r,a,o){switch(r.tag){case 26:$s(r,a,o),r.flags&pl&&r.memoizedState!==null&&NN(o,Yr,r.memoizedState,r.memoizedProps);break;case 5:$s(r,a,o);break;case 3:case 4:var d=Yr;Yr=Mu(r.stateNode.containerInfo),$s(r,a,o),Yr=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=pl,pl=16777216,$s(r,a,o),pl=d):$s(r,a,o));break;default:$s(r,a,o)}}function By(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function gl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var d=a[o];An=d,Uy(d,r)}By(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Py(r),r=r.sibling}function Py(r){switch(r.tag){case 0:case 11:case 15:gl(r),r.flags&2048&&ua(9,r,r.return);break;case 3:gl(r);break;case 12:gl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,_u(r)):gl(r);break;default:gl(r)}}function _u(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var d=a[o];An=d,Uy(d,r)}By(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ua(8,a,a.return),_u(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,_u(a));break;default:_u(a)}r=r.sibling}}function Uy(r,a){for(;An!==null;){var o=An;switch(o.tag){case 0:case 11:case 15:ua(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Qo(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,An=d;else e:for(o=r;An!==null;){d=An;var m=d.sibling,b=d.return;if(Ny(d),d===o){An=null;break e}if(m!==null){m.return=b,An=m;break e}An=b}}}var GC={getCacheForType:function(r){var a=In(bn),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return In(bn).controller.signal}},qC=typeof WeakMap=="function"?WeakMap:Map,Ct=0,Ft=null,vt=null,xt=0,Rt=0,Er=null,da=!1,Hs=!1,Yh=!1,Mi=0,ln=0,fa=0,Wa=0,Kh=0,xr=0,Gs=0,ml=null,rr=null,Vh=!1,yu=0,Fy=0,Eu=1/0,xu=null,ha=null,Sn=0,pa=null,qs=null,Di=0,Zh=0,Xh=null,jy=null,vl=0,Wh=null;function wr(){return(Ct&2)!==0&&xt!==0?xt&-xt:K.T!==null?rp():vs()}function $y(){if(xr===0)if((xt&536870912)===0||St){var r=pi;pi<<=1,(pi&3932160)===0&&(pi=262144),xr=r}else xr=536870912;return r=_r.current,r!==null&&(r.flags|=32),xr}function ir(r,a,o){(r===Ft&&(Rt===2||Rt===9)||r.cancelPendingCommit!==null)&&(Ys(r,0),ga(r,xt,xr,!1)),Ut(r,o),((Ct&2)===0||r!==Ft)&&(r===Ft&&((Ct&2)===0&&(Wa|=o),ln===4&&ga(r,xt,xr,!1)),ni(r))}function Hy(r,a,o){if((Ct&6)!==0)throw Error(i(327));var d=!o&&(a&127)===0&&(a&r.expiredLanes)===0||xe(r,a),m=d?VC(r,a):Jh(r,a,!0),b=d;do{if(m===0){Hs&&!d&&ga(r,a,0,!1);break}else{if(o=r.current.alternate,b&&!YC(o)){m=Jh(r,a,!1),b=!1;continue}if(m===2){if(b=a,r.errorRecoveryDisabledLanes&b)var A=0;else A=r.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){a=A;e:{var j=r;m=ml;var X=j.current.memoizedState.isDehydrated;if(X&&(Ys(j,A).flags|=256),A=Jh(j,A,!1),A!==2){if(Yh&&!X){j.errorRecoveryDisabledLanes|=b,Wa|=b,m=4;break e}b=rr,rr=m,b!==null&&(rr===null?rr=b:rr.push.apply(rr,b))}m=A}if(b=!1,m!==2)continue}}if(m===1){Ys(r,0),ga(r,a,0,!0);break}e:{switch(d=r,b=m,b){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:ga(d,a,xr,!da);break e;case 2:rr=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=yu+300-Re(),10<m)){if(ga(d,a,xr,!da),W(d,0,!0)!==0)break e;Di=a,d.timeoutHandle=y0(Gy.bind(null,d,o,rr,xu,Vh,a,xr,Wa,Gs,da,b,"Throttled",-0,0),m);break e}Gy(d,o,rr,xu,Vh,a,xr,Wa,Gs,da,b,null,-0,0)}}break}while(!0);ni(r)}function Gy(r,a,o,d,m,b,A,j,X,pe,Ee,ke,ge,be){if(r.timeoutHandle=-1,ke=a.subtreeFlags,ke&8192||(ke&
vendor: 1,050 bytes, line 48
4816785408)===16785408){ke={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ze},zy(a,b,ke);var Ye=(b&62914560)===b?yu-Re():(b&4194048)===b?Fy-Re():0;if(Ye=ON(ke,Ye),Ye!==null){Di=b,r.cancelPendingCommit=Ye(Qy.bind(null,r,a,b,o,d,m,A,j,X,Ee,ke,null,ge,be)),ga(r,b,A,!pe);return}}Qy(r,a,b,o,d,m,A,j,X)}function YC(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var m=o[d],b=m.getSnapshot;m=m.value;try{if(!vr(b(),m))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ga(r,a,o,d){a&=~Kh,a&=~Wa,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var m=a;0<m;){var b=31-ft(m),A=1<<b;d[b]=-1,m&=~A}o!==0&&He(r,o,a)}function wu(){return(Ct&6)===0?(bl(0),!1):!0}
vendor: 2,070 bytes, line 48
48function Qh(){if(vt!==null){if(Rt===0)var r=vt.return;else r=vt,xi=$a=null,ph(r),zs=null,el=0,r=vt;for(;r!==null;)Ey(r.alternate,r),r=r.return;vt=null}}function Ys(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,fN(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Di=0,Qh(),Ft=r,vt=o=yi(r.current,null),xt=a,Rt=0,Er=null,da=!1,Hs=xe(r,a),Yh=!1,Gs=xr=Kh=Wa=fa=ln=0,rr=ml=null,Vh=!1,(a&8)!==0&&(a|=a&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=a;0<d;){var m=31-ft(d),b=1<<m;a|=r[m],d&=~b}return Mi=a,Gc(),o}function qy(r,a){ct=null,K.H=ll,a===Ls||a===Qc?(a=o_(),Rt=3):a===nh?(a=o_(),Rt=4):Rt=a===Oh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Er=a,vt===null&&(ln=1,fu(r,Dr(a,r.current)))}function Yy(){var r=_r.current;return r===null?!0:(xt&4194048)===xt?Br===null:(xt&62914560)===xt||(xt&536870912)!==0?r===Br:!1}function Ky(){var r=K.H;return K.H=ll,r===null?ll:r}function Vy(){var r=K.A;return K.A=GC,r}function Su(){ln=4,da||(xt&4194048)!==xt&&_r.current!==null||(Hs=!0),(fa&134217727)===0&&(Wa&134217727)===0||Ft===null||ga(Ft,xt,xr,!1)}function Jh(r,a,o){var d=Ct;Ct|=2;var m=Ky(),b=Vy();(Ft!==r||xt!==a)&&(xu=null,Ys(r,a)),a=!1;var A=ln;e:do try{if(Rt!==0&&vt!==null){var j=vt,X=Er;switch(Rt){case 8:Qh(),A=6;break e;case 3:case 2:case 9:case 6:_r.current===null&&(a=!0);var pe=Rt;if(Rt=0,Er=null,Ks(r,j,X,pe),o&&Hs){A=0;break e}break;default:pe=Rt,Rt=0,Er=null,Ks(r,j,X,pe)}}KC(),A=ln;break}catch(Ee){qy(r,Ee)}while(!0);return a&&r.shellSuspendCounter++,xi=$a=null,Ct=d,K.H=m,K.A=b,vt===null&&(Ft=null,xt=0,Gc()),A}function KC(){for(;vt!==null;)Zy(vt)}function VC(r,a){var o=Ct;Ct|=2;var d=Ky(),m=Vy();Ft!==r||xt!==a?(xu=null,Eu=Re()+500,Ys(r,a)):Hs=xe(r,a);e:do try{if(Rt!==0&&vt!==null){a=vt;var b=Er;t:switch(Rt){case 1:Rt=0,Er=null,Ks(r,a,b,1);break;case 2:case 9:if(a_(b)){Rt=0,Er=null,Xy(a);break}a=function(){Rt!==2&&Rt!==9||Ft!==r||(Rt=7),ni(r)},b.then(a,a);break e;case 3:Rt=7;break e;case 4:Rt=5;break e;case 7:a_(b)?(Rt=0,Er=null,Xy(a)):(Rt=0,Er=null,Ks(r,a,b,7));break;case 5:var A=null;
vendor: 9,926 bytes, line 48
48switch(vt.tag){case 26:A=vt.memoizedState;case 5:case 27:var j=vt;if(A?L0(A):j.stateNode.complete){Rt=0,Er=null;var X=j.sibling;if(X!==null)vt=X;else{var pe=j.return;pe!==null?(vt=pe,ku(pe)):vt=null}break t}}Rt=0,Er=null,Ks(r,a,b,5);break;case 6:Rt=0,Er=null,Ks(r,a,b,6);break;case 8:Qh(),ln=6;break e;default:throw Error(i(462))}}ZC();break}catch(Ee){qy(r,Ee)}while(!0);return xi=$a=null,K.H=d,K.A=m,Ct=o,vt!==null?0:(Ft=null,xt=0,Gc(),ln)}function ZC(){for(;vt!==null&&!fe();)Zy(vt)}function Zy(r){var a=_y(r.alternate,r,Mi);r.memoizedProps=r.pendingProps,a===null?ku(r):vt=a}function Xy(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=hy(o,a,a.pendingProps,a.type,void 0,xt);break;case 11:a=hy(o,a,a.pendingProps,a.type.render,a.ref,xt);break;case 5:ph(a);default:Ey(o,a),a=vt=Vb(a,Mi),a=_y(o,a,Mi)}r.memoizedProps=r.pendingProps,a===null?ku(r):vt=a}function Ks(r,a,o,d){xi=$a=null,ph(a),zs=null,el=0;var m=a.return;try{if(BC(r,m,a,o,xt)){ln=1,fu(r,Dr(o,r.current)),vt=null;return}}catch(b){if(m!==null)throw vt=m,b;ln=1,fu(r,Dr(o,r.current)),vt=null;return}a.flags&32768?(St||d===1?r=!0:Hs||(xt&536870912)!==0?r=!1:(da=r=!0,(d===2||d===9||d===3||d===6)&&(d=_r.current,d!==null&&d.tag===13&&(d.flags|=16384))),Wy(a,r)):ku(a)}function ku(r){var a=r;do{if((a.flags&32768)!==0){Wy(a,da);return}r=a.return;var o=FC(a.alternate,a,Mi);if(o!==null){vt=o;return}if(a=a.sibling,a!==null){vt=a;return}vt=a=r}while(a!==null);ln===0&&(ln=5)}function Wy(r,a){do{var o=jC(r.alternate,r);if(o!==null){o.flags&=32767,vt=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){vt=r;return}vt=r=o}while(r!==null);ln=6,vt=null}function Qy(r,a,o,d,m,b,A,j,X){r.cancelPendingCommit=null;do Tu();while(Sn!==0);if((Ct&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(b=a.lanes|a.childLanes,b|=jf,Ke(r,o,b,A,j,X),r===Ft&&(vt=Ft=null,xt=0),qs=a,pa=r,Di=o,Zh=b,Xh=m,jy=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,JC(Le,function(){return r0(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=K.T,K.T=null,m=Z.p,Z.p=2,A=Ct,Ct|=4;try{$C(r,a,o)}finally{Ct=A,Z.p=m,K.T=d}}Sn=1,Jy(),e0(),t0()}}function Jy(){if(Sn===1){Sn=0;var r=pa,a=qs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=K.T,K.T=null;var d=Z.p;Z.p=2;var m=Ct;Ct|=4;try{Dy(a,r);var b=dp,A=Ub(r.containerInfo),j=b.focusedElem,X=b.selectionRange;if(A!==j&&j&&j.ownerDocument&&Pb(j.ownerDocument.documentElement,j)){if(X!==null&&zf(j)){var pe=X.start,Ee=X.end;if(Ee===void 0&&(Ee=pe),"selectionStart"in j)j.selectionStart=pe,j.selectionEnd=Math.min(Ee,j.value.length);else{var ke=j.ownerDocument||document,ge=ke&&ke.defaultView||window;if(ge.getSelection){var be=ge.getSelection(),Ye=j.textContent.length,tt=Math.min(X.start,Ye),Lt=X.end===void 0?tt:Math.min(X.end,Ye);!be.extend&&tt>Lt&&(A=Lt,Lt=tt,tt=A);var le=Bb(j,tt),te=Bb(j,Lt);if(le&&te&&(be.rangeCount!==1||be.anchorNode!==le.node||be.anchorOffset!==le.offset||be.focusNode!==te.node||be.focusOffset!==te.offset)){var he=ke.createRange();he.setStart(le.node,le.offset),be.removeAllRanges(),tt>Lt?(be.addRange(he),be.extend(te.node,te.offset)):(he.setEnd(te.node,te.offset),be.addRange(he))}}}}for(ke=[],be=j;be=be.parentNode;)be.nodeType===1&&ke.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<ke.length;j++){var we=ke[j];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}Pu=!!up,dp=up=null}finally{Ct=m,Z.p=d,K.T=o}}r.current=a,Sn=2}}function e0(){if(Sn===2){Sn=0;var r=pa,a=qs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=K.T,K.T=null;var d=Z.p;Z.p=2;var m=Ct;Ct|=4;try{Cy(r,a.alternate,a)}finally{Ct=m,Z.p=d,K.T=o}}Sn=3}}function t0(){if(Sn===4||Sn===3){Sn=0,Ce();var r=pa,a=qs,o=Di,d=jy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Sn=5:(Sn=0,qs=pa=null,n0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ha=null),gi(o),a=a.stateNode,Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(dt,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=K.T,m=Z.p,Z.p=2,K.T=null;try{for(var b=r.onRecoverableError,A=0;A<d.length;A++){var j=d[A];b(j.value,{componentStack:j.stack})}}finally{K.T=a,Z.p=m}}(Di&3)!==0&&Tu(),ni(r),m=r.pendingLanes,(o&261930)!==0&&(m&42)!==0?r===Wh?vl++:(vl=0,Wh=r):vl=0,bl(0)}}function n0(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Qo(a)))}function Tu(){return Jy(),e0(),t0(),r0()}function r0(){if(Sn!==5)return!1;var r=pa,a=Zh;Zh=0;var o=gi(Di),d=K.T,m=Z.p;try{Z.p=32>o?32:o,K.T=null,o=Xh,Xh=null;var b=pa,A=Di;if(Sn=0,qs=pa=null,Di=0,(Ct&6)!==0)throw Error(i(331));var j=Ct;if(Ct|=4,Py(b.current),Ly(b,b.current,A,o),Ct=j,bl(0,!1),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(dt,b)}catch{}return!0}finally{Z.p=m,K.T=d,n0(r,a)}}function i0(r,a,o){a=Dr(o,a),a=Nh(r.stateNode,a,2),r=oa(r,a,2),r!==null&&(Ut(r,2),ni(r))}function Mt(r,a,o){if(r.tag===3)i0(r,r,o);else for(;a!==null;){if(a.tag===3){i0(a,r,o);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(ha===null||!ha.has(d))){r=Dr(o,r),o=ay(2),d=oa(a,o,2),d!==null&&(sy(o,d,a,r),Ut(d,2),ni(d));break}}a=a.return}}function ep(r,a,o){var d=r.pingCache;if(d===null){d=r.pingCache=new qC;var m=new Set;d.set(a,m)}else m=d.get(a),m===void 0&&(m=new Set,d.set(a,m));m.has(o)||(Yh=!0,m.add(o),r=XC.bind(null,r,a,o),a.then(r,r))}function XC(r,a,o){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Ft===r&&(xt&o)===o&&(ln===4||ln===3&&(xt&62914560)===xt&&300>Re()-yu?(Ct&2)===0&&Ys(r,0):Kh|=o,Gs===xt&&(Gs=0)),ni(r)}function a0(r,a){a===0&&(a=at()),r=Ua(r,a),r!==null&&(Ut(r,a),ni(r))}function WC(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),a0(r,o)}function QC(r,a){var o=0;switch(r.tag){case 31:case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(o=m.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(a),a0(r,o)}function JC(r,a){return ye(r,a)}var Au=null,Vs=null,tp=!1,Cu=!1,np=!1,ma=0;function ni(r){r!==Vs&&r.next===null&&(Vs===null?Au=Vs=r:Vs=Vs.next=r),Cu=!0,tp||(tp=!0,tN())}function bl(r,a){if(!np&&Cu){np=!0;do for(var o=!1,d=Au;d!==null;){if(r!==0){var m=d.pendingLanes;if(m===0)var b=0;else{var A=d.suspendedLanes,j=d.pingedLanes;b=(1<<31-ft(42|r)+1)-1,b&=m&~(A&~j),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,c0(d,b))}else b=xt,b=W(d,d===Ft?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||xe(d,b)||(o=!0,c0(d,b));d=d.next}while(o);np=!1}}function eN(){s0()}function s0(){Cu=tp=!1;var r=0;ma!==0&&dN()&&(r=ma);for(var a=Re(),o=null,d=Au;d!==null;){var m=d.next,b=o0(d,a);b===0?(d.next=null,o===null?Au=m:o.next=m,m===null&&(Vs=o)):(o=d,(r!==0||(b&3)!==0)&&(Cu=!0)),d=m}Sn!==0&&Sn!==5||bl(r),ma!==0&&(ma=0)}function o0(r,a){for(var o=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var A=31-ft(b),j=1<<A,X=m[A];X===-1?((j&o)===0||(j&d)!==0)&&(m[A]=Pe(j,a)):X<=a&&(r.expiredLanes|=j),b&=~j}if(a=Ft,o=xt,o=W(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,o===0||r===a&&(Rt===2||Rt===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&Ae(d),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||xe(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(d!==null&&Ae(d),gi(o)){case 2:case 8:o=Te;break;case 32:o=Le;break;case 268435456:o=pt;break;default:o=Le}return d=l0.bind(null,r),o=ye(o,d),r.callbackPriority=a,r.callbackNode=o,a}return d!==null&&d!==null&&Ae(d),r.callbackPriority=2,r.callbackNode=null,2}function l0(r,a){if(Sn!==0&&Sn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(Tu()&&r.callbackNode!==o)return null;var d=xt;return d=W(r,r===Ft?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(Hy(r,d,a),o0(r,Re()),r.callbackNode!=null&&r.callbackNode===o?l0.bind(null,r):null)}function c0(r,a){if(Tu())return null;Hy(r,a,!0)}function tN(){hN(function(){(Ct&6)!==0?ye(se,eN):s0()})}function rp(){if(ma===0){var r=Ds;r===0&&(r=hi,hi<<=1,(hi&261888)===0&&(hi=256)),ma=r}return ma}function u0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Ji(""+r)}function d0(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function nN(r,a,o,d,m){if(a==="submit"&&o&&o.stateNode===m){var b=u0((m[Fn]||null).action),A=d.submitter;A&&(a=(a=A[Fn]||null)?u0(a.formAction):A.getAttribute("formAction"),a!==null&&(b=a,A=null));var j=new Fc("action","action",null,d,m);r.push({event:j,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(ma!==0){var X=A?d0(m,A):new FormData(m);wh(o,{pending:!0,data:X,method:m.method,action:b},null,X)}}else typeof b=="function"&&(j.preventDefault(),X=A?d0(m,A):new FormData(m),wh(o,{pending:!0,data:X,method:m.method,action:b},b,X))},currentTarget:m}]})}}for(var ip=0;ip<Ff.length;ip++){var ap=Ff[ip],rN=ap.toLowerCase(),iN=ap[0].toUpperCase()+ap.slice(1);qr(rN,"on"+iN)}qr($b,"onAnimationEnd"),qr(Hb,"onAnimationIteration"),qr(Gb,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(yC,"onTransitionRun"),qr(EC,"onTransitionStart"),qr(xC,"onTransitionCancel"),qr(qb,"onTransitionEnd"),Me("onMouseEnter",["mouseout","mouseover"]),Me("onMouseLeave",["mouseout","mouseover"]),Me("onPointerEnter",["pointerout","pointerover"]),Me("onPointerLeave",["pointerout","pointerover"]),vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vi("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function f0(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var d=r[o],m=d.event;d=d.listeners;e:{var b=void 0;if(a)for(var A=d.length-1;0<=A;A--){var j=d[A],X=j.instance,pe=j.currentTarget;if(j=j.listener,X!==b&&m.isPropagationStopped())break e;b=j,m.currentTarget=pe;try{b(m)}catch(Ee){Hc(Ee)}m.currentTarget=null,b=X}else for(A=0;A<d.length;A++){if(j=d[A],X=j.instance,pe=j.currentTarget,j=j.listener,X!==b&&m.isPropagationStopped())break e;b=j,m.currentTarget=pe;try{b(m)}catch(Ee){Hc(Ee)}m.currentTarget=null,b=X}}}}function bt(r,a){var o=a[Lo];o===void 0&&(o=a[Lo]=new Set);var d=r+"__bubble";o.has(d)||(h0(a,r,2,!1),o.add(d))}function sp(r,a,o){var d=0;a&&(d|=4),h0(o,r,d,a)}var Nu="_reactListening"+Math.random().toString(36).slice(2);function op(r){if(!r[Nu]){r[Nu]=!0,Mc.forEach(function(o){o!=="selectionchange"&&(aN.has(o)||sp(o,!1,r),sp(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Nu]||(a[Nu]=!0,sp("selectionchange",!1,a))}}function h0(r,a,o,d){switch($0(a)){case 2:var m=DN;break;case 8:m=IN;break;default:m=xp}o=m.bind(null,a,o,r),m=void 0,!Af||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(a,o,{capture:!0,passive:m}):r.addEventListener(a,o,!0):m!==void 0?r.addEventListener(a,o,{passive:m}):r.addEventListener(a,o,!1)}function lp(r,a,o,d,m){var b=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var A=d.tag;if(A===3||A===4){var j=d.stateNode.containerInfo;if(j===m)break;if(A===4)for(A=d.return;A!==null;){var X=A.tag;if((X===3||X===4)&&A.stateNode.containerInfo===m)return;A=A.return}for(;j!==null;){if(A=Yn(j),A===null)return;if(X=A.tag,X===5||X===6||X===26||X===27){d=b=A;continue e}j=j.parentNode}}d=d.return}zc(function(){var pe=b,Ee=lt(o),ke=[];e:{var ge=Yb.get(r);if(ge!==void 0){var be=Fc,Ye=r;switch(r){case"keypress":if(Pc(o)===0)break e;case"keydown":case"keyup":be=QA;break;case"focusin":Ye="focus",be=Rf;break;case"focusout":Ye="blur",be=Rf;break;case"beforeblur":case"afterblur":be=Rf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=Eb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=FA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=tC;break;case $b:case Hb:case Gb:be=HA;break;case qb:be=rC;break;case"scroll":case"scrollend":be=PA;break;case"wheel":be=aC;break;case"copy":case"cut":case"paste":be=qA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=wb;break;case"toggle":case"beforetoggle":be=oC}var tt=(a&4)!==0,Lt=!tt&&(r==="scroll"||r==="scrollend"),le=tt?ge!==null?ge+"Capture":null:ge;tt=[];for(var te=pe,he;te!==null;){var we=te;if(he=we.stateNode,we=we.tag,we!==5&&we!==26&&we!==27||he===null||le===null||(we=jo(te,le),we!=null&&tt.push(yl(te,we,he))),Lt)break;te=te.return}0<tt.length&&(ge=new be(ge,Ye,null,o,Ee),ke.push({event:ge,listeners:tt}))}}if((a&7)===0){e:{if(ge=r==="mouseover"||r==="pointerover",be=r==="mouseout"||r==="pointerout",ge&&o!==Ve&&(Ye=o.relatedTarget||o.fromElement)&&(Yn(Ye)||Ye[Zi]))break e;if((be||ge)&&(ge=Ee.window===Ee?Ee:(ge=Ee.ownerDocument)?ge.defaultView||ge.parentWindow:window,be?(Ye=o.relatedTarget||o.toElement,be=pe,Ye=Ye?Yn(Ye):null,Ye!==null&&(Lt=l(Ye),tt=Ye.tag,Ye!==Lt||tt!==5&&tt!==27&&tt!==6)&&(Ye=null)):(be=null,Ye=pe),be!==Ye)){if(tt=Eb,we="onMouseLeave",le="onMouseEnter",te="mou
48se",(r==="pointerout"||r==="pointerover")&&(tt=wb,we="onPointerLeave",le="onPointerEnter",te="pointer"),Lt=be==null?ge:Xi(be),he=Ye==null?ge:Xi(Ye),ge=new tt(we,te+"leave",be,o,Ee),ge.target=Lt,ge.relatedTarget=he,we=null,Yn(Ee)===pe&&(tt=new tt(le,te+"enter",Ye,o,Ee),tt.target=he,tt.relatedTarget=Lt,we=tt),Lt=we,be&&Ye)t:{for(tt=sN,le=be,te=Ye,he=0,we=le;we;we=tt(we))he++;we=0;for(var Qe=te;Qe;Qe=tt(Qe))we++;for(;0<he-we;)le=tt(le),he--;for(;0<we-he;)te=tt(te),we--;for(;he--;){if(le===te||te!==null&&le===te.alternate){tt=le;break t}le=tt(le),te=tt(te)}tt=null}else tt=null;be!==null&&p0(ke,ge,be,tt,!1),Ye!==null&&Lt!==null&&p0(ke,Lt,Ye,tt,!0)}}e:{if(ge=pe?Xi(pe):window,be=ge.nodeName&&ge.nodeName.toLowerCase(),be==="select"||be==="input"&&ge.type==="file")var Tt=Rb;else if(Nb(ge))if(Mb)Tt=vC;else{Tt=gC;var Ze=pC}else be=ge.nodeName,!be||be.toLowerCase()!=="input"||ge.type!=="checkbox"&&ge.type!=="radio"?pe&&Qi(pe.elementType)&&(Tt=Rb):Tt=mC;if(Tt&&(Tt=Tt(r,pe))){Ob(ke,Tt,o,Ee);break e}Ze&&Ze(r,ge,pe),r==="focusout"&&pe&&ge.type==="number"&&pe.memoizedProps.value!=null&&xs(ge,"number",ge.value)}switch(Ze=pe?Xi(pe):window,r){case"focusin":(Nb(Ze)||Ze.contentEditable==="true")&&(ks=Ze,Bf=pe,Zo=null);break;case"focusout":Zo=Bf=ks=null;break;case"mousedown":Pf=!0;break;case"contextmenu":case"mouseup":case"dragend":Pf=!1,Fb(ke,o,Ee);break;case"selectionchange":if(_C)break;case"keydown":case"keyup":Fb(ke,o,Ee)}var ut;if(Df)e:{switch(r){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else Ss?Ab(r,o)&&(wt="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(wt="onCompositionStart");wt&&(Sb&&o.locale!=="ko"&&(Ss||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Ss&&(ut=_b()):(ea=Ee,Cf="value"in ea?ea.value:ea.textContent,Ss=!0)),Ze=Ou(pe,wt),0<Ze.length&&(wt=new xb(wt,r,null,o,Ee),ke.push({event:wt,listeners:Ze}),ut?wt.data=ut:(ut=Cb(o),ut!==null&&(wt.data=ut)))),(ut=cC?uC(r,o):dC(r,o))&&(wt=Ou(pe,"onBeforeInput"),0<wt.length&&(Ze=new xb("onBeforeInput","beforeinput",null,o,Ee),ke.push({event:Ze,listeners:wt}),Ze.data=ut)),nN(ke,r,pe,o,Ee)}f0(ke,a)})}function yl(r,a,o){return{instance:r,listener:a,currentTarget:o}}function Ou(r,a){for(var o=a+"Capture",d=[];r!==null;){var m=r,b=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||b===null||(m=jo(r,o),m!=null&&d.unshift(yl(r,m,b)),m=jo(r,a),m!=null&&d.push(yl(r,m,b))),r.tag===3)return d;r=r.return}return[]}function sN(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function p0(r,a,o,d,m){for(var b=a._reactName,A=[];o!==null&&o!==d;){var j=o,X=j.alternate,pe=j.stateNode;if(j=j.tag,X!==null&&X===d)break;j!==5&&j!==26&&j!==27||pe===null||(X=pe,m?(pe=jo(o,b),pe!=null&&A.unshift(yl(o,pe,X))):m||(pe=jo(o,b),pe!=null&&A.push(yl(o,pe,X)))),o=o.return}A.length!==0&&r.push({event:a,listeners:A})}var oN=/\r\n?/g,lN=/\u0000|\uFFFD/g;function g0(r){return(typeof r=="string"?r:""+r).replace(oN,`
49`).replace(lN,"")}function m0(r,a){return a=g0(a),g0(r)===a}function It(r,a,o,d,m,b){switch(o){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||nt(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&nt(r,""+d);break;case"className":gr(r,"class",d);break;case"tabIndex":gr(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":gr(r,o,d);break;case"style":Ot(r,d,b);break;case"data":if(a!=="object"){gr(r,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(o);break}d=Ji(""+d),r.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(o==="formAction"?(a!=="input"&&It(r,a,"name",m.name,m,null),It(r,a,"formEncType",m.formEncType,m,null),It(r,a,"formMethod",m.formMethod,m,null),It(r,a,"formTarget",m.formTarget,m,null)):(It(r,a,"encType",m.encType,m,null),It(r,a,"method",m.method,m,null),It(r,a,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(o);break}d=Ji(""+d),r.setAttribute(o,d);break;case"onClick":d!=null&&(r.onclick=ze);break;case"onScroll":d!=null&&bt("scroll",r);break;case"onScrollEnd":d!=null&&bt("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}o=Ji(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(o,""+d):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":d===!0?r.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(o,d):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(o,d):r.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(o):r.setAttribute(o,d);break;case"popover":bt("beforetoggle",r),bt("toggle",r),jn(r,"popover",d);break;case"xlinkActuate":Wn(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Wn(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Wn(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Wn(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Wn(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Wn(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Wn(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Wn(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Wn(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":jn(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=bi.get(o)||o,jn(r,o,d))}}function cp(r,a,o,d,m,b){switch(o){case"style":Ot(r,d,b);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof d=="string"?nt(r,d):(typeof d=="number"||typeof d=="bigint")&&nt(r,""+d);break;case"onScroll":d!=null&&bt("scroll",r);break;case"onScrollEnd":d!=null&&bt("scrollend",r);break;case"onClick":d!=null&&(r.onclick=ze);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ia.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),a=o.slice(2,m?o.length-7:void 0),b=r[Fn]||null,b=b!=null?b[o]:null,typeof b=="function"&&r.removeEventListener(a,b,m),typeof d=="function")){typeof b!="function"&&b!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,d,m);break e}o in r?r[o]=d:d===!0?r.setAttribute(o,""):jn(r,o,d)}}}function zn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",r),bt("load",r);var d=!1,m=!1,b;for(b in o)if(o.hasOwnProperty(b)){var A=o[b];if(A!=null)switch(b){case"src":d=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:It(r,a,b,A,o,null)}}m&&It(r,a,"srcSet",o.srcSet,o,null),d&&It(r,a,"src",o.src,o,null);return;case"input":bt("invalid",r);var j=b=A=m=null,X=null,pe=null;for(d in o)if(o.hasOwnProperty(d)){var Ee=o[d];if(Ee!=null)switch(d){case"name":m=Ee;break;case"type":A=Ee;break;case"checked":X=Ee;break;case"defaultChecked":pe=Ee;break;case"value":b=Ee;break;case"defaultValue":j=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(i(137,a));break;default:It(r,a,d,Ee,o,null)}}La(r,b,j,X,pe,A,m,!1);return;case"select":bt("invalid",r),d=A=b=null;for(m in o)if(o.hasOwnProperty(m)&&(j=o[m],j!=null))switch(m){case"value":b=j;break;case"defaultValue":A=j;break;case"multiple":d=j;default:It(r,a,m,j,o,null)}a=b,o=A,r.multiple=!!d,a!=null?Mn(r,!!d,a,!1):o!=null&&Mn(r,!!d,o,!0);return;case"textarea":bt("invalid",r),b=m=d=null;for(A in o)if(o.hasOwnProperty(A)&&(j=o[A],j!=null))switch(A){case"value":d=j;break;case"defaultValue":m=j;break;case"children":b=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(i(91));break;default:It(r,a,A,j,o,null)}ws(r,d,m,b);return;case"option":for(X in o)if(o.hasOwnProperty(X)&&(d=o[X],d!=null))switch(X){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:It(r,a,X,d,o,null)}return;case"dialog":bt("beforetoggle",r),bt("toggle",r),bt("cancel",r),bt("close",r);break;case"iframe":case"object":bt("load",r);break;case"video":case"audio":for(d=0;d<_l.length;
vendor: 8,505 bytes, line 49
49d++)bt(_l[d],r);break;case"image":bt("error",r),bt("load",r);break;case"details":bt("toggle",r);break;case"embed":case"source":case"link":bt("error",r),bt("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in o)if(o.hasOwnProperty(pe)&&(d=o[pe],d!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:It(r,a,pe,d,o,null)}return;default:if(Qi(a)){for(Ee in o)o.hasOwnProperty(Ee)&&(d=o[Ee],d!==void 0&&cp(r,a,Ee,d,o,void 0));return}}for(j in o)o.hasOwnProperty(j)&&(d=o[j],d!=null&&It(r,a,j,d,o,null))}function cN(r,a,o,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,b=null,A=null,j=null,X=null,pe=null,Ee=null;for(be in o){var ke=o[be];if(o.hasOwnProperty(be)&&ke!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":X=ke;default:d.hasOwnProperty(be)||It(r,a,be,null,d,ke)}}for(var ge in d){var be=d[ge];if(ke=o[ge],d.hasOwnProperty(ge)&&(be!=null||ke!=null))switch(ge){case"type":b=be;break;case"name":m=be;break;case"checked":pe=be;break;case"defaultChecked":Ee=be;break;case"value":A=be;break;case"defaultValue":j=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(i(137,a));break;default:be!==ke&&It(r,a,ge,be,d,ke)}}Po(r,A,j,X,pe,Ee,b,m);return;case"select":be=A=j=ge=null;for(b in o)if(X=o[b],o.hasOwnProperty(b)&&X!=null)switch(b){case"value":break;case"multiple":be=X;default:d.hasOwnProperty(b)||It(r,a,b,null,d,X)}for(m in d)if(b=d[m],X=o[m],d.hasOwnProperty(m)&&(b!=null||X!=null))switch(m){case"value":ge=b;break;case"defaultValue":j=b;break;case"multiple":A=b;default:b!==X&&It(r,a,m,b,d,X)}a=j,o=A,d=be,ge!=null?Mn(r,!!o,ge,!1):!!d!=!!o&&(a!=null?Mn(r,!!o,a,!0):Mn(r,!!o,o?[]:"",!1));return;case"textarea":be=ge=null;for(j in o)if(m=o[j],o.hasOwnProperty(j)&&m!=null&&!d.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:It(r,a,j,null,d,m)}for(A in d)if(m=d[A],b=o[A],d.hasOwnProperty(A)&&(m!=null||b!=null))switch(A){case"value":ge=m;break;case"defaultValue":be=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==b&&It(r,a,A,m,d,b)}Ic(r,ge,be);return;case"option":for(var Ye in o)if(ge=o[Ye],o.hasOwnProperty(Ye)&&ge!=null&&!d.hasOwnProperty(Ye))switch(Ye){case"selected":r.selected=!1;break;default:It(r,a,Ye,null,d,ge)}for(X in d)if(ge=d[X],be=o[X],d.hasOwnProperty(X)&&ge!==be&&(ge!=null||be!=null))switch(X){case"selected":r.selected=ge&&typeof ge!="function"&&typeof ge!="symbol";break;default:It(r,a,X,ge,d,be)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tt in o)ge=o[tt],o.hasOwnProperty(tt)&&ge!=null&&!d.hasOwnProperty(tt)&&It(r,a,tt,null,d,ge);for(pe in d)if(ge=d[pe],be=o[pe],d.hasOwnProperty(pe)&&ge!==be&&(ge!=null||be!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(i(137,a));break;default:It(r,a,pe,ge,d,be)}return;default:if(Qi(a)){for(var Lt in o)ge=o[Lt],o.hasOwnProperty(Lt)&&ge!==void 0&&!d.hasOwnProperty(Lt)&&cp(r,a,Lt,void 0,d,ge);for(Ee in d)ge=d[Ee],be=o[Ee],!d.hasOwnProperty(Ee)||ge===be||ge===void 0&&be===void 0||cp(r,a,Ee,ge,d,be);return}}for(var le in o)ge=o[le],o.hasOwnProperty(le)&&ge!=null&&!d.hasOwnProperty(le)&&It(r,a,le,null,d,ge);for(ke in d)ge=d[ke],be=o[ke],!d.hasOwnProperty(ke)||ge===be||ge==null&&be==null||It(r,a,ke,ge,d,be)}function v0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uN(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,o=performance.getEntriesByType("resource"),d=0;d<o.length;d++){var m=o[d],b=m.transferSize,A=m.initiatorType,j=m.duration;if(b&&j&&v0(A)){for(A=0,j=m.responseEnd,d+=1;d<o.length;d++){var X=o[d],pe=X.startTime;if(pe>j)break;var Ee=X.transferSize,ke=X.initiatorType;Ee&&v0(ke)&&(X=X.responseEnd,A+=Ee*(X<j?1:(j-pe)/(X-pe)))}if(--d,a+=8*(b+A)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var up=null,dp=null;function Ru(r){return r.nodeType===9?r:r.ownerDocument}function b0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _0(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function fp(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var hp=null;function dN(){var r=window.event;return r&&r.type==="popstate"?r===hp?!1:(hp=r,!0):(hp=null,!1)}var y0=typeof setTimeout=="function"?setTimeout:void 0,fN=typeof clearTimeout=="function"?clearTimeout:void 0,E0=typeof Promise=="function"?Promise:void 0,hN=typeof queueMicrotask=="function"?queueMicrotask:typeof E0<"u"?function(r){return E0.resolve(null).then(r).catch(pN)}:y0;function pN(r){setTimeout(function(){throw r})}function va(r){return r==="head"}function x0(r,a){var o=a,d=0;do{var m=o.nextSibling;if(r.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(d===0){r.removeChild(m),Qs(a);return}d--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")d++;else if(o==="html")El(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,El(o);for(var b=o.firstChild;b;){var A=b.nextSibling,j=b.nodeName;b[Da]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=A}}else o==="body"&&El(r.ownerDocument.body);o=m}while(o);Qs(a)}function w0(r,a){var o=r;r=0;do{var d=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=d}while(o)}function pp(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":pp(o),zo(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function gN(r,a,o,d){for(;r.nodeType===1;){var m=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[Da])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(b=r.getAttribute("rel"),b==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(b!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(b=r.getAttribute("src"),(b!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&b&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var b=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===b)return r}else return r;if(r=Pr(r.nextSibling),r===null)break}return null}function mN(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Pr(r.nextSibling),r===null))return null;return r}function S0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Pr(r.nextSibling),r===null))return null;return r}function gp(r){return r.data==="$?"||r.data==="$~"}function mp(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function vN(r,a){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||o.readyState!=="loading")a();else{var d=function(){a(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function Pr(r){for(;r!=null;
vendor: 10,183 bytes, line 49
49r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var vp=null;function k0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(a===0)return Pr(r.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}r=r.nextSibling}return null}function T0(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return r;a--}else o!=="/$"&&o!=="/&"||a++}r=r.previousSibling}return null}function A0(r,a,o){switch(a=Ru(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function El(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);zo(r)}var Ur=new Map,C0=new Set;function Mu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ii=Z.d;Z.d={f:bN,r:_N,D:yN,C:EN,L:xN,m:wN,X:kN,S:SN,M:TN};function bN(){var r=Ii.f(),a=wu();return r||a}function _N(r){var a=mi(r);a!==null&&a.tag===5&&a.type==="form"?q_(a):Ii.r(r)}var Zs=typeof document>"u"?null:document;function N0(r,a,o){var d=Zs;if(d&&typeof a=="string"&&a){var m=Qn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),C0.has(m)||(C0.add(m),r={rel:r,crossOrigin:o,href:a},d.querySelector(m)===null&&(a=d.createElement("link"),zn(a,"link",r),mn(a),d.head.appendChild(a)))}}function yN(r){Ii.D(r),N0("dns-prefetch",r,null)}function EN(r,a){Ii.C(r,a),N0("preconnect",r,a)}function xN(r,a,o){Ii.L(r,a,o);var d=Zs;if(d&&r&&a){var m='link[rel="preload"][as="'+Qn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+Qn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+Qn(o.imageSizes)+'"]')):m+='[href="'+Qn(r)+'"]';var b=m;switch(a){case"style":b=Xs(r);break;case"script":b=Ws(r)}Ur.has(b)||(r=g({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),Ur.set(b,r),d.querySelector(m)!==null||a==="style"&&d.querySelector(xl(b))||a==="script"&&d.querySelector(wl(b))||(a=d.createElement("link"),zn(a,"link",r),mn(a),d.head.appendChild(a)))}}function wN(r,a){Ii.m(r,a);var o=Zs;if(o&&r){var d=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Qn(d)+'"][href="'+Qn(r)+'"]',b=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Ws(r)}if(!Ur.has(b)&&(r=g({rel:"modulepreload",href:r},a),Ur.set(b,r),o.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(wl(b)))return}d=o.createElement("link"),zn(d,"link",r),mn(d),o.head.appendChild(d)}}}function SN(r,a,o){Ii.S(r,a,o);var d=Zs;if(d&&r){var m=Wi(d).hoistableStyles,b=Xs(r);a=a||"default";var A=m.get(b);if(!A){var j={loading:0,preload:null};if(A=d.querySelector(xl(b)))j.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},o),(o=Ur.get(b))&&bp(r,o);var X=A=d.createElement("link");mn(X),zn(X,"link",r),X._p=new Promise(function(pe,Ee){X.onload=pe,X.onerror=Ee}),X.addEventListener("load",function(){j.loading|=1}),X.addEventListener("error",function(){j.loading|=2}),j.loading|=4,Du(A,a,d)}A={type:"stylesheet",instance:A,count:1,state:j},m.set(b,A)}}}function kN(r,a){Ii.X(r,a);var o=Zs;if(o&&r){var d=Wi(o).hoistableScripts,m=Ws(r),b=d.get(m);b||(b=o.querySelector(wl(m)),b||(r=g({src:r,async:!0},a),(a=Ur.get(m))&&_p(r,a),b=o.createElement("script"),mn(b),zn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(m,b))}}function TN(r,a){Ii.M(r,a);var o=Zs;if(o&&r){var d=Wi(o).hoistableScripts,m=Ws(r),b=d.get(m);b||(b=o.querySelector(wl(m)),b||(r=g({src:r,async:!0,type:"module"},a),(a=Ur.get(m))&&_p(r,a),b=o.createElement("script"),mn(b),zn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(m,b))}}function O0(r,a,o,d){var m=(m=Se.current)?Mu(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Xs(o.href),o=Wi(m).hoistableStyles,d=o.get(a),d||(d={type:"style",instance:null,count:0,state:null},o.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Xs(o.href);var b=Wi(m).hoistableStyles,A=b.get(r);if(A||(m=m.ownerDocument||m,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,A),(b=m.querySelector(xl(r)))&&!b._p&&(A.instance=b,A.state.loading=5),Ur.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ur.set(r,o),b||AN(m,r,o,A.state))),a&&d===null)throw Error(i(528,""));return A}if(a&&d!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ws(o),o=Wi(m).hoistableScripts,d=o.get(a),d||(d={type:"script",instance:null,count:0,state:null},o.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Xs(r){return'href="'+Qn(r)+'"'}function xl(r){return'link[rel="stylesheet"]['+r+"]"}function R0(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function AN(r,a,o,d){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=r.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),zn(a,"link",o),mn(a),r.head.appendChild(a))}function Ws(r){return'[src="'+Qn(r)+'"]'}function wl(r){return"script[async]"+r}function M0(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+Qn(o.href)+'"]');if(d)return a.instance=d,mn(d),d;var m=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),mn(d),zn(d,"style",m),Du(d,o.precedence,r),a.instance=d;case"stylesheet":m=Xs(o.href);var b=r.querySelector(xl(m));if(b)return a.state.loading|=4,a.instance=b,mn(b),b;d=R0(o),(m=Ur.get(m))&&bp(d,m),b=(r.ownerDocument||r).createElement("link"),mn(b);var A=b;return A._p=new Promise(function(j,X){A.onload=j,A.onerror=X}),zn(b,"link",d),a.state.loading|=4,Du(b,o.precedence,r),a.instance=b;case"script":return b=Ws(o.src),(m=r.querySelector(wl(b)))?(a.instance=m,mn(m),m):(d=o,(m=Ur.get(b))&&(d=g({},o),_p(d,m)),r=r.ownerDocument||r,m=r.createElement("script"),mn(m),zn(m,"link",d),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,Du(d,o.precedence,r));return a.instance}function Du(r,a,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=d.length?d[d.length-1]:null,b=m,A=0;A<d.length;A++){var j=d[A];if(j.dataset.precedence===a)b=j;else if(b!==m)break}b?b.parentNode.insertBefore(r,b.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function bp(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function _p(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Iu=null;function D0(r,a,o){if(Iu===null){var d=new Map,m=Iu=new Map;m.set(o,d)}else m=Iu,d=m.get(o),d||(d=new Map,m.set(o,d));if(d.has(r))return d;for(d.set(r,null),o=o.getElementsByTagName(r),m=0;m<o.length;m++){var b=o[m];if(!(b[Da]||b[dn]||r==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var A=b.getAttribute(a)||"";A=r+A;var j=d.get(A);j?j.push(b):d.set(A,[b])}}return d}function I0(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function CN(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function L0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function NN(r,a,o,d){if(o.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=Xs(d.href),b=a.querySelector(xl(m));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Lu.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=b,mn(b);return}b=a.ownerDocument||a,d=R0(d),(m=Ur.get(m))&&bp(d,m),b=b.createElement("link"),mn(b);var A=b;A._p=new Promise(function(j,X){A.onload=j,A.onerror=X}),zn(b,"link",d),o.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=Lu.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var yp=0;function ON(r,a){return r.stylesheets&&r.count===0&&Bu(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var d=setTimeout(function(){if(r.stylesheets&&Bu(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+a);0<r.imgBytes&&yp===0&&(yp=62500*uN());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Bu(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>yp?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(m)}}:null}
vendor: 6,847 bytes, line 49
49function Lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var zu=null;function Bu(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,zu=new Map,a.forEach(RN,r),zu=null,Lu.call(r))}function RN(r,a){if(!(a.state.loading&4)){var o=zu.get(r);if(o)var d=o.get(null);else{o=new Map,zu.set(r,o);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<m.length;b++){var A=m[b];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(o.set(A.dataset.precedence,A),d=A)}d&&o.set(null,d)}m=a.instance,A=m.getAttribute("data-precedence"),b=o.get(A)||d,b===d&&o.set(null,m),o.set(A,m),this.count++,d=Lu.bind(this),m.addEventListener("load",d),m.addEventListener("error",d),b?b.parentNode.insertBefore(m,b.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var Sl={$$typeof:N,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function MN(r,a,o,d,m,b,A,j,X){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.hiddenUpdates=Vt(null),this.identifierPrefix=d,this.onUncaughtError=m,this.onCaughtError=b,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function z0(r,a,o,d,m,b,A,j,X,pe,Ee,ke){return r=new MN(r,a,o,A,X,pe,Ee,ke,j),a=1,b===!0&&(a|=24),b=br(3,null,null,a),r.current=b,b.stateNode=r,a=Jf(),a.refCount++,r.pooledCache=a,a.refCount++,b.memoizedState={element:d,isDehydrated:o,cache:a},rh(b),r}function B0(r){return r?(r=Cs,r):Cs}function P0(r,a,o,d,m,b){m=B0(m),d.context===null?d.context=m:d.pendingContext=m,d=sa(a),d.payload={element:o},b=b===void 0?null:b,b!==null&&(d.callback=b),o=oa(r,d,a),o!==null&&(ir(o,r,a),nl(o,r,a))}function U0(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function Ep(r,a){U0(r,a),(r=r.alternate)&&U0(r,a)}function F0(r){if(r.tag===13||r.tag===31){var a=Ua(r,67108864);a!==null&&ir(a,r,67108864),Ep(r,67108864)}}function j0(r){if(r.tag===13||r.tag===31){var a=wr();a=en(a);var o=Ua(r,a);o!==null&&ir(o,r,a),Ep(r,a)}}var Pu=!0;function DN(r,a,o,d){var m=K.T;K.T=null;var b=Z.p;try{Z.p=2,xp(r,a,o,d)}finally{Z.p=b,K.T=m}}function IN(r,a,o,d){var m=K.T;K.T=null;var b=Z.p;try{Z.p=8,xp(r,a,o,d)}finally{Z.p=b,K.T=m}}function xp(r,a,o,d){if(Pu){var m=wp(d);if(m===null)lp(r,a,d,Uu,o),H0(r,d);else if(zN(m,r,a,o,d))d.stopPropagation();else if(H0(r,d),a&4&&-1<LN.indexOf(r)){for(;m!==null;){var b=mi(m);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var A=wn(b.pendingLanes);if(A!==0){var j=b;for(j.pendingLanes|=2,j.entangledLanes|=2;A;){var X=1<<31-ft(A);j.entanglements[1]|=X,A&=~X}ni(b),(Ct&6)===0&&(Eu=Re()+500,bl(0))}}break;case 31:case 13:j=Ua(b,2),j!==null&&ir(j,b,2),wu(),Ep(b,2)}if(b=wp(d),b===null&&lp(r,a,d,Uu,o),b===m)break;m=b}m!==null&&d.stopPropagation()}else lp(r,a,d,null,o)}}function wp(r){return r=lt(r),Sp(r)}var Uu=null;function Sp(r){if(Uu=null,r=Yn(r),r!==null){var a=l(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=c(a),r!==null)return r;r=null}else if(o===31){if(r=u(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Uu=r,null}function $0(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case se:return 2;case Te:return 8;case Le:case Je:return 32;case pt:return 268435456;default:return 32}default:return 32}}var kp=!1,ba=null,_a=null,ya=null,kl=new Map,Tl=new Map,Ea=[],LN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function H0(r,a){switch(r){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":ya=null;break;case"pointerover":case"pointerout":kl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tl.delete(a.pointerId)}}function Al(r,a,o,d,m,b){return r===null||r.nativeEvent!==b?(r={blockedOn:a,domEventName:o,eventSystemFlags:d,nativeEvent:b,targetContainers:[m]},a!==null&&(a=mi(a),a!==null&&F0(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function zN(r,a,o,d,m){switch(a){case"focusin":return ba=Al(ba,r,a,o,d,m),!0;case"dragenter":return _a=Al(_a,r,a,o,d,m),!0;case"mouseover":return ya=Al(ya,r,a,o,d,m),!0;case"pointerover":var b=m.pointerId;return kl.set(b,Al(kl.get(b)||null,r,a,o,d,m)),!0;case"gotpointercapture":return b=m.pointerId,Tl.set(b,Al(Tl.get(b)||null,r,a,o,d,m)),!0}return!1}function G0(r){var a=Yn(r.target);if(a!==null){var o=l(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){r.blockedOn=a,bs(r.priority,function(){j0(o)});return}}else if(a===31){if(a=u(o),a!==null){r.blockedOn=a,bs(r.priority,function(){j0(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Fu(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;
vendor: 4,913 bytes, line 49
49){var o=wp(r.nativeEvent);if(o===null){o=r.nativeEvent;var d=new o.constructor(o.type,o);Ve=d,o.target.dispatchEvent(d),Ve=null}else return a=mi(o),a!==null&&F0(a),r.blockedOn=o,!1;a.shift()}return!0}function q0(r,a,o){Fu(r)&&o.delete(a)}function BN(){kp=!1,ba!==null&&Fu(ba)&&(ba=null),_a!==null&&Fu(_a)&&(_a=null),ya!==null&&Fu(ya)&&(ya=null),kl.forEach(q0),Tl.forEach(q0)}function ju(r,a){r.blockedOn===a&&(r.blockedOn=null,kp||(kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,BN)))}var $u=null;function Y0(r){$u!==r&&($u=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$u===r&&($u=null);for(var a=0;a<r.length;a+=3){var o=r[a],d=r[a+1],m=r[a+2];if(typeof d!="function"){if(Sp(d||o)===null)continue;break}var b=mi(o);b!==null&&(r.splice(a,3),a-=3,wh(b,{pending:!0,data:m,method:o.method,action:d},d,m))}}))}function Qs(r){function a(X){return ju(X,r)}ba!==null&&ju(ba,r),_a!==null&&ju(_a,r),ya!==null&&ju(ya,r),kl.forEach(a),Tl.forEach(a);for(var o=0;o<Ea.length;o++){var d=Ea[o];d.blockedOn===r&&(d.blockedOn=null)}for(;0<Ea.length&&(o=Ea[0],o.blockedOn===null);)G0(o),o.blockedOn===null&&Ea.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var m=o[d],b=o[d+1],A=m[Fn]||null;if(typeof b=="function")A||Y0(o);else if(A){var j=null;if(b&&b.hasAttribute("formAction")){if(m=b,A=b[Fn]||null)j=A.formAction;else if(Sp(m)!==null)continue}else j=A.action;typeof j=="function"?o[d+1]=j:(o.splice(d,3),d-=3),Y0(o)}}}function K0(){function r(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(A){return m=A})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),d||setTimeout(o,20)}function o(){if(!d&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Tp(r){this._internalRoot=r}Hu.prototype.render=Tp.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,d=wr();P0(o,d,r,a,null,null)},Hu.prototype.unmount=Tp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;P0(r.current,2,null,r,null,null),wu(),a[Zi]=null}};function Hu(r){this._internalRoot=r}Hu.prototype.unstable_scheduleHydration=function(r){if(r){var a=vs();r={blockedOn:null,target:r,priority:a};for(var o=0;o<Ea.length&&a!==0&&a<Ea[o].priority;o++);Ea.splice(o,0,r),o===0&&G0(r)}};var V0=t.version;if(V0!=="19.2.7")throw Error(i(527,V0,"19.2.7"));Z.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var PN={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gu.isDisabled&&Gu.supportsFiber)try{dt=Gu.inject(PN),Pt=Gu}catch{}}return Nl.createRoot=function(r,a){if(!s(r))throw Error(i(299));var o=!1,d="",m=ty,b=ny,A=ry;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(A=a.onRecoverableError)),a=z0(r,1,!1,null,null,o,d,null,m,b,A,K0),r[Zi]=a.current,op(r),new Tp(a)},Nl.hydrateRoot=function(r,a,o){if(!s(r))throw Error(i(299));var d=!1,m="",b=ty,A=ny,j=ry,X=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(A=o.onCaughtError),o.onRecoverableError!==void 0&&(j=o.onRecoverableError),o.formState!==void 0&&(X=o.formState)),a=z0(r,1,!0,a,o??null,d,m,X,b,A,j,K0),a.context=B0(null),o=a.current,d=wr(),d=en(d),m=sa(d),m.callback=null,oa(o,m,d),o=d,a.current.lanes=o,Ut(a,o),ni(a),r[Zi]=a.current,op(r),new Hu(a)},Nl.version="19.2.7",Nl}var i1;function ZN(){if(i1)return Np.exports;i1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Np.exports=VN(),Np.exports}var j7=ZN();const hv="var(--color-jade)",pv="var(--color-persimmon)",gv="var(--color-ultramarine-300)";function $7({label:e,...t}
49){return G.jsxs("svg",{viewBox:"0 0 646 188",fill:"currentColor",role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,...t,children:[G.jsxs("g",{transform:"matrix(0.735204,0,0,0.735204,-1686.471552,-244.297316)",children:[G.jsx("path",{d:"M2508.833,541.547L2573.563,541.547C2586.384,541.547 2598.032,539.61 2608.505,535.735C2618.979,531.861 2627.917,526.38 2635.319,519.292C2642.721,512.205 2648.454,503.621 2652.517,493.542C2656.58,483.462 2658.611,472.296 2658.611,460.043C2658.611,447.79 2656.58,436.647 2652.517,426.615C2648.454,416.582 2642.721,407.998 2635.319,400.864C2627.917,393.73 2618.979,388.226 2608.505,384.351C2598.032,380.476 2586.432,378.539 2573.707,378.539L2508.833,378.539L2508.833,541.547ZM2540.965,512.818L2540.965,407.268L2573.755,407.268C2581.66,407.268 2588.856,408.504 2595.346,410.976C2601.835,413.448 2607.379,416.968 2611.977,421.535C2616.575,426.103 2620.142,431.623 2622.678,438.096C2625.214,444.57 2626.482,451.885 2626.482,460.043C2626.482,468.201 2625.214,475.516 2622.678,481.99C2620.142,488.463 2616.575,493.983 2611.977,498.551C2607.379,503.118 2601.835,506.638 2595.346,509.11C2588.856,511.582 2581.66,512.818 2573.755,512.818L2540.965,512.818Z"}),G.jsx("path",{d:"M2664.093,506.063C2664.093,518.505 2668.164,528.049 2676.307,534.696C2684.45,541.343 2695.262,544.666 2708.743,544.666C2713.532,544.666 2718.044,544.225 2722.281,543.343C2726.517,542.461 2730.415,541.177 2733.975,539.491C2737.534,537.805 2740.763,535.719 2743.661,533.231C2746.558,530.743 2749.094,527.892 2751.267,524.678L2751.267,541.547L2781.414,541.547L2781.414,463.539C2781.414,455.664 2780.114,448.711 2777.516,442.679C2774.917,436.647 2771.144,431.537 2766.198,427.347C2761.252,423.158 2755.235,419.992 2748.148,417.849C2741.06,415.707 2733.107,414.636 2724.287,414.636C2707.341,414.636 2693.891,418.432 2683.937,426.024C2673.983,433.616 2668.046,444.703 2666.127,459.286L2697.027,459.286C2698.223,452.452 2701.057,447.429 2705.53,444.215C2710.002,441.001 2716.287,439.394 2724.383,439.394C2733.077,439.394 2739.731,441.252 2744.345,444.97C2748.96,448.687 2751.267,454.325 2751.267,461.885L2751.267,470.534L2707.706,470.534C2693.499,470.534 2682.678,473.581 2675.244,479.675C2667.81,485.77 2664.093,494.565 2664.093,506.063ZM2694.712,504.409C2694.712,499.15 2696.271,495.261 2699.389,492.741C2702.507,490.221 2707.341,488.961 2713.892,488.961L2751.267,488.961L2751.267,490.142C2751.267,494.867 2750.495,499.159 2748.952,503.017C2747.409,506.876 2745.165,510.159 2742.219,512.868C2739.274,515.576 2735.667,517.655 2731.398,519.104C2727.13,520.553 2722.239,521.278 2716.727,521.278C2709.514,521.278 2704.042,519.931 2700.31,517.238C2696.578,514.545 2694.712,510.268 2694.712,504.409Z"}),G.jsx("path",{d:"M2791.712,479.651C2791.712,489.384 2793.343,498.235 2796.603,506.205C2799.864,514.174 2804.415,521.01 2810.257,526.712C2816.1,532.414 2823.14,536.831 2831.377,539.965C2839.615,543.099 2848.758,544.666 2858.806,544.666C2866.87,544.666 2874.398,543.611 2881.391,541.501C2888.383,539.391 2894.613,536.32 2900.078,532.287C2905.544,528.255 2910.182,523.326 2913.993,517.498C2917.803,511.671 2920.591,505.04 2922.355,497.606L2890.839,497.606C2888.1,504.314 2883.919,509.299 2878.296,512.559C2872.673,515.82 2866.176,517.45 2858.806,517.45C2853.2,517.45 2848.136,516.537 2843.616,514.709C2839.095,512.882 2835.221,510.315 2831.992,507.008C2828.763,503.7 2826.267,499.731 2824.504,495.101C2822.741,490.471 2821.859,485.321 2821.859,479.651C2821.859,474.045 2822.741,468.911 2824.504,464.249C2826.267,459.587 2828.74,455.602 2831.922,452.295C2835.104,448.988 2838.978,446.42 2843.546,444.593C2848.113,442.766 2853.2,441.852 2858.806,441.852C2866.018,441.852 2872.436,443.467 2878.059,446.695C2883.683,449.924 2887.864,454.846 2890.603,461.46L2922.355,461.46C2920.591,454.122 2917.803,447.539 2913.993,441.712C2910.182,435.885 2905.528,430.955 2900.03,426.923C2894.533,422.891 2888.303,419.835 2881.343,417.755C2874.382,415.676 2866.823,414.636 2858.665,414.636C2848.711,414.636 2839.615,416.203 2831.377,419.337C2823.14,422.471 2816.1,426.889 2810.257,432.591C2804.415,438.293 2799.864,445.128 2796.603,453.098C2793.343,461.067 2791.712,469.918 2791.712,479.651Z"}),G.jsx("path",{d:"M2941.303,501.762C2941.303,516.158 2944.555,526.798 2951.059,533.681C2957.563,540.564 2967.493,544.006 2980.848,544.006C2983.968,544.006 2987.215,543.824 2990.587,543.461C2993.96,543.098 2997.502,542.555 3001.213,541.831L3001.213,514.427C2998.599,514.929 2996.238,515.314 2994.129,515.582C2992.02,515.851 2990.035,515.985 2988.175,515.985C2982.22,515.985 2977.943,514.705 2975.344,512.144C2972.745,509.583 2971.446,505.604 2971.446,500.204L2971.446,444.971L3001.213,444.971L3001.213,417.755L2971.446,417.755L2971.446,392.005L2941.303,392.005L2941.303,417.755L2923.348,417.755L2923.348,444.971L2941.303,444.971L2941.303,501.762Z"}),G.jsx("path",{d:"M3035.658,587.851L3067.126,587.851L3136.674,417.755L3104.497,417.755L3071.143,506.867L3035.99,417.755L3003.152,417.755L3056.071,538.24L3035.658,587.851Z"}),G.jsx("rect",{x:"3141.589",y:"371.452",width:"30.147",height:"170.096"})]}),G.jsx("g",{transform:"matrix(0.260164,0,0,-0.260164,-234.331714,461.401039)",children:G.jsx("rect",{fill:hv,x:"1241.559",y:"1352.979",width:"118.978",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.273341,0,-0,-0.260164,-252.259516,417.062604)",children:G.jsx("rect",{fill:pv,x:"1085.086",y:"1352.979",width:"275.451",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.276971,0,-0,-0.260681,-257.199587,506.500265)",children:G.jsx("rect",{fill:gv,x:"928.614",y:"1352.979",width:"431.924",height:"118.978"})})]})}function H7({label:e,...t}){return G.jsxs("svg",{viewBox:"0 0 120 120",fill:"currentColor",role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,...t,children:[G.jsx("g",{transform:"matrix(0.260164,0,0,-0.260164,-234.331714,427.288215)",children:G.jsx("rect",{fill:hv,x:"1241.559",y:"1352.979",width:"118.978",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.273341,0,-0,-0.260164,-252.259516,382.94978)",children:G.jsx("rect",{fill:pv,x:"1085.086",y:"1352.979",width:"275.451",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.276971,0,-0,-0.260681,-257.199587,472.38744)",children:G.jsx("rect",{fill:gv,x:"928.614",y:"1352.979",width:"431.924",height:"118.978"})})]})}function G7({label:e,...t}){return G.jsxs("svg",{viewBox:"0 0 120 120",fill:"currentColor",role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,...t,children:[G.jsx("style",{children:`.dmark-bar{transform-box:fill-box;animation:dmark-bar 3s cubic-bezier(0.77,0,0.175,1) infinite}
50.dmark-top{--slide:-1377.255px;animation-delay:.15s}
51.dmark-mid{--slide:-594.89px}
52.dmark-bottom{--slide:-2159.62px;animation-delay:.3s}
53@keyframes dmark-bar{0%,100%{transform:scaleX(1);transform-origin:right}10%{transform:scaleX(0);transform-origin:right}20%{transform:scaleX(1.5);transform-origin:right}30%{transform:scaleX(1);transform-origin:right}50%{transform:translateX(0);transform-origin:left}60%{transform:translateX(var(--slide));transform-origin:left}60.1%{transform:scaleX(0);transform-origin:right}70%{transform:scaleX(1.5);transform-origin:right}80%{transform:scaleX(1);transform-origin:right}}
54@media (prefers-reduced-motion:reduce){.dmark-bar{animation:none}}`}),G.jsx("g",{transform:"matrix(0.260164,0,0,-0.260164,-234.331714,427.288215)",children:G.jsx("rect",{className:"dmark-bar dmark-mid",fill:hv,x:"1241.559",y:"1352.979",width:"118.978",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.273341,0,-0,-0.260164,-252.259516,382.94978)",children:G.jsx("rect",{className:"dmark-bar dmark-top",fill:pv,x:"1085.086",y:"1352.979",width:"275.451",height:"118.978"})}),G.jsx("g",{transform:"matrix(0.276971,0,-0,-0.260681,-257.199587,472.38744)",children:G.jsx("rect",{className:"dmark-bar dmark-bottom",fill:gv,x:"928.614",y:"1352.979",width:"431.924",height:"118.978"})})]})}/**
55 * @license lucide-react v1.20.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */const rw=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
60 * @license lucide-react v1.20.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const XN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
65 * @license lucide-react v1.20.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const WN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase());/**
70 * @license lucide-react v1.20.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */const a1=e=>{const t=WN(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
75 * @license lucide-react v1.20.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */var Dp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
80 * @license lucide-react v1.20.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const QN=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},JN=Q.createContext({}),eO=()=>Q.useContext(JN),tO=Q.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>{const{size:h=24,strokeWidth:p=2,absoluteStrokeWidth:g=!1,color:_="currentColor",className:v=""}=eO()??{},E=i??g?Number(n??p)*24/Number(t??h):n??p;return Q.createElement("svg",{ref:f,...Dp,width:t??h??Dp.width,height:t??h??Dp.height,stroke:e??_,strokeWidth:E,className:rw("lucide",v,s),...!l&&!QN(u)&&{"aria-hidden":"true"},...u},[...c.map(([y,S])=>Q.createElement(y,S)),...Array.isArray(l)?l:[l]])});/**
85 * @license lucide-react v1.20.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const Or=(e,t)=>{const n=Q.forwardRef(({className:i,...s},l)=>Q.createElement(tO,{ref:l,iconNode:t,className:rw(`lucide-${XN(a1(e))}`,`lucide-${e}`,i),...s}));return n.displayName=a1(e),n};/**
90 * @license lucide-react v1.20.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const nO=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],q7=Or("camera",nO);/**
95 * @license lucide-react v1.20.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const rO=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],iO=Or("file",rO);/**
100 * @license lucide-react v1.20.0 - ISC
101 *
102 * This source code is licensed under the ISC license.
103 * See the LICENSE file in the root directory of this source tree.
104 */const aO=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],sO=Or("image",aO);/**
105 * @license lucide-react v1.20.0 - ISC
106 *
107 * This source code is licensed under the ISC license.
108 * See the LICENSE file in the root directory of this source tree.
109 */const oO=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lO=Or("loader-circle",oO);/**
110 * @license lucide-react v1.20.0 - ISC
111 *
112 * This source code is licensed under the ISC license.
113 * See the LICENSE file in the root directory of this source tree.
114 */const cO=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Y7=Or("message-circle",cO);
114/**
115 * @license lucide-react v1.20.0 - ISC
116 *
117 * This source code is licensed under the ISC license.
118 * See the LICENSE file in the root directory of this source tree.
119 */const uO=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],dO=Or("mic",uO);/**
120 * @license lucide-react v1.20.0 - ISC
121 *
122 * This source code is licensed under the ISC license.
123 * See the LICENSE file in the root directory of this source tree.
124 */const fO=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],hO=Or("moon",fO);/**
125 * @license lucide-react v1.20.0 - ISC
126 *
127 * This source code is licensed under the ISC license.
128 * See the LICENSE file in the root directory of this source tree.
129 */const pO=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],K7=Or("pencil",pO);/**
130 * @license lucide-react v1.20.0 - ISC
131 *
132 * This source code is licensed under the ISC license.
133 * See the LICENSE file in the root directory of this source tree.
134 */const gO=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],V7=Or("play",gO);/**
135 * @license lucide-react v1.20.0 - ISC
136 *
137 * This source code is licensed under the ISC license.
138 * See the LICENSE file in the root directory of this source tree.
139 */const mO=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vO=Or("plus",mO);/**
140 * @license lucide-react v1.20.0 - ISC
141 *
142 * This source code is licensed under the ISC license.
143 * See the LICENSE file in the root directory of this source tree.
144 */const bO=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],_O=Or("sun",bO);/**
145 * @license lucide-react v1.20.0 - ISC
146 *
147 * This source code is licensed under the ISC license.
148 * See the LICENSE file in the root directory of this source tree.
149 */const yO=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],Z7=Or("undo-2",yO);/**
150 * @license lucide-react v1.20.0 - ISC
151 *
152 * This source code is licensed under the ISC license.
153 * See the LICENSE file in the root directory of this source tree.
154 */const EO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],iw=Or("x",EO),X7=10,W7=100,or={free:{label:"Free",price:0,credits:100,publishes:0,fullBuildsPerDay:1,available:!0},builder:{label:"Builder",price:20,credits:200,publishes:3,fullBuildsPerDay:null,available:!0},standard:{label:"Standard",price:100,credits:1e3,publishes:30,fullBuildsPerDay:null,available:!0}};function xO(e){const t=Object.hasOwn(or,e)?e:"free";return{plan:t,is_paying:or[t].price>0}}const Q7="(width < 51.25rem)";function wO(e){const[t,n]=Q.useState(!1);return Q.useEffect(()=>{const i=window.matchMedia(e),s=()=>n(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[e]),t}var ve=typeof window<"u"?window:void 0,Tn=typeof globalThis<"u"?globalThis:ve;typeof self>"u"&&(Tn.self=Tn),typeof File>"u"&&(Tn.File=function(){});var Tr=Tn==null?void 0:Tn.navigator,Fe=Tn==null?void 0:Tn.document,Pn=Tn==null?void 0:Tn.location,Hg=Tn==null?void 0:Tn.fetch,Gg=Tn!=null&&Tn.XMLHttpRequest&&"withCredentials"in new Tn.XMLHttpRequest?Tn.XMLHttpRequest:void 0,s1=Tn==null?void 0:Tn.AbortController,SO=Tn==null?void 0:Tn.CompressionStream,sr=Tr==null?void 0:Tr.userAgent,Xe=ve??{},o1="1.386.6",Cn={DEBUG:!1,LIB_VERSION:o1,LIB_NAME:"web",JS_SDK_VERSION:o1};function l1(e,t,n,i,s,l,c){try{var u=e[l](c),f=u.value}catch(h){return void n(h)}
154u.done?t(f):Promise.resolve(f).then(i,s)}function kr(e){return function(){var t=this,n=arguments;return new Promise((function(i,s){var l=e.apply(t,n);function c(f){l1(l,i,s,c,u,"next",f)}function u(f){l1(l,i,s,c,u,"throw",f)}c(void 0)}))}}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ie.apply(null,arguments)}function aw(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var Ol,c1=(function(e){return e.GZipJS="gzip-js",e.Base64="base64",e})({}),kO=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],sw="NativeGzipValidationError",qg=e=>e.length>=2&&e[0]===31&&e[1]===139,u1=e=>!(!e||typeof e!="object")&&("name"in e?String(e.name):"")==="NotReadableError",qu=e=>{var t=new Error("Native gzip produced invalid output: "+e);throw t.name=sw,t},TO=(function(){var e=kr((function*(t,n){18>t.size&&qu("too-short");var i=new Uint8Array(yield t.slice(0,10).arrayBuffer());qg(i)&&i[2]===8||qu("invalid-header");var s=new DataView(yield t.slice(t.size-8).arrayBuffer());s.getUint32(0,!0)!==(c=>{for(var u=(()=>{if(Ol)return Ol;Ol=[];for(var p=0;256>p;p++){for(var g=p,_=0;8>_;_++)g=1&g?3988292384^g>>>1:g>>>1;Ol[p]=g>>>0}return Ol})(),f=4294967295,h=0;c.length>h;h++)f=u[255&(f^c[h])]^f>>>8;return(4294967295^f)>>>0})(n)&&qu("invalid-crc");var l=n.length>>>0;s.getUint32(4,!0)!==l&&qu("invalid-size")}));return function(t,n){return e.apply(this,arguments)}})();function Yg(){return Yg=kr((function*(e,t,n){t===void 0&&(t=!0);try{var i=new TextEncoder().encode(e),s=new CompressionStream("gzip"),l=s.writable.getWriter(),c=l.write(i).then((()=>l.close())).catch((function(){var h=kr((function*(p){try{yield l.abort(p)}catch{}throw p}));return function(p){return h.apply(this,arguments)}})()),u=new Response(s.readable).blob(),[f]=yield Promise.all([u,c]);return yield TO(f,i),f}catch(h){if(n!=null&&n.rethrow)throw h;return t&&console.error("Failed to gzip compress data",h),null}})),Yg.apply(this,arguments)}var AO=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],d1=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var n=e.toLowerCase();return AO.concat(t).some((i=>{var s=i.toLowerCase();return n.indexOf(s)!==-1}))};function it(e,t){return e.indexOf(t)!==-1}var df=function(e){return e.trim()},Kg=function(e){return e.replace(/^\$/,"")},ow=Object.prototype,lw=ow.hasOwnProperty,ff=ow.toString,_t=Array.isArray||function(e){return ff.call(e)==="[object Array]"},ji=e=>typeof e=="function",sn=e=>e===Object(e)&&!_t(e),Ca=e=>{if(sn(e)){for(var t in e)if(lw.call(e,t))return!1;return!0}return!1},Be=e=>e===void 0,Qt=e=>ff.call(e)=="[object String]",Vg=e=>Qt(e)&&e.trim().length===0,cr=e=>e===null,mt=e=>Be(e)||cr(e),Xn=e=>
154ff.call(e)=="[object Number]"&&e==e,Ui=e=>Xn(e)&&e>0,di=e=>ff.call(e)==="[object Boolean]",CO=e=>e instanceof FormData,NO=e=>it(kO,e);function cw(e){return e===null||typeof e!="object"}function Od(e,t){return{}.toString.call(e)==="[object "+t+"]"}function mv(e){return typeof Event<"u"&&(function(t,n){try{return t instanceof n}catch{return!1}})(e,Event)}var OO=[!0,"true",1,"1","yes"],Ip=e=>it(OO,e),RO=[!1,"false",0,"0","no"];function ui(e,t,n,i,s){return t>n&&(i.warn("min cannot be greater than max."),t=n),Xn(e)?e>n?(i.warn(" cannot be  greater than max: "+n+". Using max value instead."),n):t>e?(i.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(i.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+s),ui(s||n,t,n,i))}class MO{constructor(t){this.$t={},this.zt=t.zt,this.Gt=ui(t.bucketSize,0,100,t.Zt),this.Qt=ui(t.refillRate,0,this.Gt,t.Zt),this.Jt=ui(t.refillInterval,0,864e5,t.Zt)}Kt(t,n){var i=Math.floor((n-t.lastAccess)/this.Jt);i>0&&(t.tokens=Math.min(t.tokens+i*this.Qt,this.Gt),t.lastAccess=t.lastAccess+i*this.Jt)}consumeRateLimit(t){var n,i=Date.now(),s=String(t),l=this.$t[s];return l?this.Kt(l,i):this.$t[s]=l={tokens:this.Gt,lastAccess:i},l.tokens===0||(l.tokens--,l.tokens===0&&((n=this.zt)==null||n.call(this,t)),l.tokens===0)}stop(){this.$t={}}}var Yu,f1,Lp,Cr="Mobile",Rd="iOS",Hi="Android",So="Tablet",uw=Hi+" "+So,dw="iPad",fw="Apple",hw=fw+" Watch",Jl="Safari",ko="BlackBerry",pw="Samsung",gw=pw+"Browser",mw=pw+" Internet",cs="Chrome",DO=cs+" OS",vw=cs+" "+Rd,vv="Internet Explorer",bw=vv+" "+Cr,bv="Opera",IO=bv+" Mini",_v="Edge",_w="Microsoft "+_v,Eo="Firefox",yw=Eo+" "+Rd,uc="Nintendo",dc="PlayStation",xo="Xbox",Ew=Hi+" "+Cr,xw=Cr+" "+Jl,Yl="Windows",Zg=Yl+" Phone",h1="Nokia",Xg="Ouya",ww="Generic",LO=ww+" "+Cr.toLowerCase(),Sw=ww+" "+So.toLowerCase(),Wg="Konqueror",kw="Oculus Browser",Md="Vivaldi",Tw="Yandex",Dd="Whale",Qg="DuckDuckGo",Aw="Pale Moon",Id="Waterfox",ec="Brave",Cw="Google Search App",nn="(\\d+(\\.\\d+)?)",zp=new RegExp("Version/"+nn),zO=new RegExp(xo,"i"),BO=new RegExp(dc+" \\w+","i"),PO=new RegExp(uc+" \\w+","i"),yv=new RegExp(ko+"|PlayBook|BB10","i"),UO={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Nw=function(e,t,n,i){t=t||"";var s=(function(l){return l!=null&&l.brave?ec:null})(n);return s||(i!=null&&i.detectGoogleSearchApp&&it(e,"GSA/")?Cw:it(e," OPR/")&&it(e,"Mini")?IO:it(e," OPR/")?bv:yv.test(e)?ko:it(e,"IE"+Cr)||it(e,"WPDesktop")?bw:it(e,"OculusBrowser")?kw:it(e,gw)?mw:it(e,_v)||it(e,"Edg/")?_w:it(e,Md+"/")?Md:it(e,"YaBrowser/")?Tw:it(e,Dd+"/")?Dd:it(e,Qg+"/")||it(e,"Ddg/")?Qg:it(e,"FBIOS")?"Facebook "+Cr:it(e,"UCWEB")||it(e,"UCBrowser")?"UC Browser":it(e,"CriOS")?vw:it(e,"CrMo")||it(e,cs)?cs:it(e,Hi)&&it(e,Jl)?Ew:it(e,"FxiOS")?yw:it(e.toLowerCase(),Wg.toLowerCase())?Wg:it(e,ec+"/")?ec:((l,c)=>c&&it(c,fw)||(function(u){return it(u,Jl)&&!it(u,cs)&&!it(u,Hi)})(l))(e,t)?it(e,Cr)?xw:Jl:it(e,"PaleMoon/")?Aw:it(e,Id+"/")?Id:it(e,Eo)?Eo:it(e,"MSIE")||it(e,"Trident/")?vv:it(e,"Gecko")?Eo:"")},FO={[bw]:[new RegExp("rv:"+nn)],[_w]:[new RegExp(_v+"?\\/"+nn)],[cs]:[new RegExp("("+cs+"|CrMo)\\/"+nn)],[vw]:[new RegExp("CriOS\\/"+nn)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+nn)],[Jl]:[zp],[xw]:[zp],[bv]:[new RegExp("(Opera|OPR)\\/"+nn)],[Eo]:[new RegExp(Eo+"\\/"+nn)],[yw]:[new RegExp("FxiOS\\/"+nn)],[Wg]:[new RegExp("Konqueror[:/]?"+nn,"i")],[ko]:[new RegExp(ko+" "+nn),zp],[Ew]:[new RegExp("android\\s"+nn,"i")],[mw]:[new RegExp(gw+"\\/"+nn)],[kw]:[new RegExp("OculusBrowser\\/"+nn)],[Md]:[new RegExp(Md+"\\/"+nn)],[Tw]:[new RegExp("YaBrowser\\/"+nn)],[Dd]:[new RegExp(Dd+"\\/"+nn)],[ec]:[new RegExp(ec+"\\/"+nn)],[Qg]:[new RegExp("(DuckDuckGo|Ddg)\\/"+nn)],[Aw]:[new RegExp("PaleMoon\\/"+nn)],[Id]:[new RegExp(Id+"\\/"+nn)],[Cw]:[new RegExp("GSA\\/"+nn)],[vv]:[new RegExp("(rv:|MSIE )"+nn)],Mozilla:[new RegExp("rv:"+nn)]},jO=function(e,t,n,i){var s=Nw(e,t,n,i),l=FO[s];if(Be(l))return null;for(var c=0;l.length>c;c++){var u=e.match(l[c]);if(u)return parseFloat(u[u.length-2])}return null},p1=[[new RegExp(xo+"; "+xo+" (.*?)[);]","i"),e=>[xo,e&&e[1]||""]],[new RegExp(uc,"i"),[uc,""]],[new RegExp(dc,"i"),[dc,""]],[yv,[ko,""]],[new RegExp(Yl,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Zg,""];if(new RegExp(Cr).test(t)&&!/IEMobile\b/.test(t))return[Yl+" "+Cr,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var i=UO[n[1]]||"";return/arm/i.test(t)&&(i="RT"),[Yl,i]}return[Yl,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[Rd,[e[3],e[4],e[5]||"0"].join(".")]:[Rd,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=Be(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Hi+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Hi+")","i"),e=>e&&e[2]?[Hi,[e[2],e[3],e[4]||"0"].join(".")]:[Hi,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[DO,""]],[/Linux|debian/i,["Linux",""]]],g1=function(e){return PO.test(e)?uc:BO.test(e)?dc:zO.test(e)?xo:new RegExp(Xg,"i").test(e)?Xg:new RegExp("("+Zg+"|WPDesktop)","i").test(e)?Zg:/iPad/.test(e)?dw:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?hw:yv.test(e)?ko:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(h1,"i").test(e)?h1:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Cr).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Hi:uw:new RegExp("(pda|"+Cr+")","i").test(e)?LO:new RegExp(So,"i").test(e)&&!new RegExp(So+" pc","i").test(e)?Sw:""},$O=e=>e instanceof Error,Ow={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},HO=Ow.info;function Rw(e){if(di(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(_t(e))return{arrayValue:{values:e.map((t=>Rw(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function m1(e){var t=[];for(var n in e){var i=e[n];cr(i)||Be(i)||t.push({key:n,value:Rw(i)})}return t}function GO(e){var t=globalThis._posthogChunkIds;if(t){var n=Object.keys(t);return Lp&&n.length===f1||(f1=n.length,Lp=n.reduce(((i,s)=>{Yu||(Yu={});var l=Yu[s];if(l)i[l[0]]=l[1];else for(var c=e(s),u=c.length-1;u>=0;u--){var f=c[u],h=f==null?void 0:f.filename,p=t[s];if(h&&p){i[h]=p,Yu[s]=[h,p];break}}return i}),{})),Lp}}class qO{constructor(t,n,i){i===void 0&&(i=[]),this.coercers=t,this.stackParser=n,this.modifiers=i}buildFromUnknown(t,n){n===void 0&&(n={});var i=n&&n.mechanism||{handled:!0,type:"generic"},s=this.buildCoercingContext(i,n,0).apply(t),l=this.buildParsingContext(n),c=this.parseStacktrace(s,l);return{$exception_list:this.convertToExceptionList(c,i),$exception_level:"error"}}modifyFrames(t){var n=this;return kr((function*(){for(var i of t)i.stacktrace&&i.stacktrace.frames&&_t(i.stacktrace.frames)&&(i.stacktrace.frames=yield n.applyModifiers(i.stacktrace.frames));return t}))()}coerceFallback(t){var n;return{type:"Error",value:"Unknown error",stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(t,n){var i,s;return t.cause!=null&&(i=this.parseStacktrace(t.cause,n)),t.stack!=""&&t.stack!=null&&(s=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?n.skipFirstLines:0),n.chunkIdMap)),Ie({},t,{cause:i,stack:s})}applyChunkIds(t,n){return t.map((i=>(i.filename&&n&&(i.chunk_id=n[i.filename]),i)))}applyCoercers(t,n){for(var i of this.coercers)if(i.match(t))return i.coerce(t,n);return this.coerceFallback(n)}applyModifiers(t){var n=this;return kr((function*(){var i=t;for(var s of n.modifiers)i=yield s(i);return i}))()}convertToExceptionList(t,n){var i,s,l,c={type:t.type,value:t.value,mechanism:{type:(i=n.t
154ype)!==null&&i!==void 0?i:"generic",handled:(s=n.handled)===null||s===void 0||s,synthetic:(l=t.synthetic)!==null&&l!==void 0&&l}};t.stack&&(c.stacktrace={type:"raw",frames:t.stack});var u=[c];return t.cause!=null&&u.push(...this.convertToExceptionList(t.cause,Ie({},n,{handled:!0}))),u}buildParsingContext(t){var n;return{chunkIdMap:GO(this.stackParser),skipFirstLines:(n=t.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(t,n,i){i===void 0&&(i=0);var s=(l,c)=>{if(4>=c){var u=this.buildCoercingContext(t,n,c);return this.applyCoercers(l,u)}};return Ie({},n,{syntheticException:i==0?n.syntheticException:void 0,mechanism:t,apply:l=>s(l,i),next:l=>s(l,i+1)})}}var To="?";function Jg(e,t,n,i,s){var l={platform:e,filename:t,function:n==="<anonymous>"?To:n,in_app:!0};return Be(i)||(l.lineno=i),Be(s)||(l.colno=s),l}var Mw=(e,t)=>{var n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:To,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},YO=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,KO=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,VO=/\((\S*)(?::(\d+))(?::(\d+))\)/,ZO=(e,t)=>{var n=YO.exec(e);if(n){var[,i,s,l]=n;return Jg(t,i,To,+s,+l)}var c=KO.exec(e);if(c){if(c[2]&&c[2].indexOf("eval")===0){var u=VO.exec(c[2]);u&&(c[2]=u[1],c[3]=u[2],c[4]=u[3])}var[f,h]=Mw(c[1]||To,c[2]);return Jg(t,h,f,c[3]?+c[3]:void 0,c[4]?+c[4]:void 0)}},XO=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,WO=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QO=(e,t)=>{var n=XO.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var i=WO.exec(n[3]);i&&(n[1]=n[1]||"eval",n[3]=i[1],n[4]=i[2],n[5]="")}var s=n[3],l=n[1]||To;return[l,s]=Mw(l,s),Jg(t,s,l,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},v1=/\(error: (.*)\)/;class JO{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,n){var i=Qt(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:i?t.stack:void 0,cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var n=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?n+": "+t.message:n}isDOMException(t){return Od(t,"DOMException")}isDOMError(t){return Od(t,"DOMError")}}class eR{match(t){return(n=>n instanceof Error)(t)}coerce(t,n){return{type:this.getType(t),value:this.getMessage(t,n),stack:this.getStack(t),cause:t.cause?n.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,n){var i=t.message;return String(i.error&&typeof i.error.message=="string"?i.error.message:i)}getStack(t){return t.stacktrace||t.stack||void 0}}class tR{constructor(){}match(t){return Od(t,"ErrorEvent")&&t.error!=null}coerce(t,n){var i;return n.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(i=n.syntheticException)==null?void 0:i.stack,synthetic:!0}}}var nR=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class rR{match(t){return typeof t=="string"}coerce(t,n){var i,[s,l]=this.getInfos(t);return{type:s??"Error",value:l??t,stack:(i=n.syntheticException)==null?void 0:i.stack,synthetic:!0}}getInfos(t){var n="Error",i=t,s=t.match(nR);return s&&(n=s[1],i=s[2]),[n,i]}}var iR=["fatal","error","warning","log","info","debug"];function Dw(e,t){t===void 0&&(t=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var i=n.length;i>0;i--){var s=n.slice(0,i).join(", ");if(t>=s.length)return i===n.length?s:s.length>t?s.slice(0,t)+"...":s}return""}class aR{match(t){return typeof t=="object"&&t!==null}coerce(t,n){var i,s=this.getErrorPropertyFromObject(t);return s?n.apply(s):{type:this.getType(t),value:this.getValue(t),stack:(i=n.syntheticException)==null?void 0:i.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return mv(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var n="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(n+=" with message: '"+t.message+"'"),n}if("message"in t&&typeof t.message=="string")return t.message;var i=this.getObjectClassName(t);return(i&&i!=="Object"?"'"+i+"'":"Object")+" captured as exception with keys: "+Dw(t)}isSeverityLevel(t){return Qt(t)&&!Vg(t)&&iR.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var n in t)if({}.hasOwnProperty.call(t,n)){var i=t[n];if($O(i))return i}}getObjectClassName(t){try{var n=Object.getPrototypeOf(t);return n?n.constructor.name:void 0}catch{return}}}class sR{match(t){return mv(t)}coerce(t,n){var i,s=t.constructor.name;return{type:s,value:s+" captured as exception with keys: "+Dw(t),stack:(i=n.syntheticException)==null?void 0:i.stack,synthetic:!0}}}class oR{match(t){return cw(t)}coerce(t,n){var i;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(i=n.syntheticException)==null?void 0:i.stack,synthetic:!0}}}class lR{match(t){return Od(t,"PromiseRejectionEvent")||this.isCu
154stomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!mv(t))return!1;try{var n=t.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(t,n){var i,s=this.getUnhandledRejectionReason(t);return cw(s)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(s),stack:(i=n.syntheticException)==null?void 0:i.stack,synthetic:!0}:n.apply(s)}getUnhandledRejectionReason(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var Ld="$message",zd="$timestamp",cR=new Set([Ld,zd]),Bp={enabled:!0,max_bytes:32768};function Bd(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:Bp.enabled,max_bytes:dR(e.max_bytes,Bp.max_bytes)}:Ie({},Bp)}class uR{constructor(t){this.Yt=[],this.Xt=0,this.qt=Bd(t)}setConfig(t){this.qt=Bd(t),this.er()}add(t){var n=(function(s){var l=(function(p){var g=new WeakSet;try{return JSON.stringify(p,((_,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(g.has(v))return"[Circular]";g.add(v)}return v}}))}catch{return}})(s);if(l)try{var c=JSON.parse(l);if(!sn(c))return;var u=c,f=u[Ld],h=u[zd];return!Qt(f)||f.trim().length===0||!Qt(h)&&!Xn(h)?void 0:{step:u,json:l}}catch{return}})(t);if(n){var i=(function(s){if(typeof TextEncoder<"u")return new TextEncoder().encode(s).length;for(var l=encodeURIComponent(s),c=0,u=0;l.length>u;u++)l[u]==="%"?(c+=1,u+=2):c+=1;return c})(n.json);i>this.qt.max_bytes||(this.Yt.push({step:n.step,bytes:i}),this.Xt+=i,this.er())}}getAttachable(){return this.Yt.map((t=>t.step))}clear(){this.Yt=[],this.Xt=0}size(){return this.Yt.length}er(){for(;this.Xt>this.qt.max_bytes&&this.Yt.length>0;){var t=this.Yt.shift();t&&(this.Xt-=t.bytes)}}}function dR(e,t){if(!Xn(e)||e===1/0||e===-1/0)return t;var n=Math.floor(e);return 0>n?t:n}var Iw=function(e,t){var{debugEnabled:n}=t===void 0?{}:t,i={k(s){if(ve&&(Cn.DEBUG||Xe.POSTHOG_DEBUG||n)&&!Be(ve.console)&&ve.console){for(var l=("__rrweb_original__"in ve.console[s])?ve.console[s].__rrweb_original__:ve.console[s],c=arguments.length,u=new Array(c>1?c-1:0),f=1;c>f;f++)u[f-1]=arguments[f];l(e,...u)}},debug(){for(var s=arguments.length,l=new Array(s),c=0;s>c;c++)l[c]=arguments[c];i.k("debug",...l)},info(){for(var s=arguments.length,l=new Array(s),c=0;s>c;c++)l[c]=arguments[c];i.k("log",...l)},warn(){for(var s=arguments.length,l=new Array(s),c=0;s>c;c++)l[c]=arguments[c];i.k("warn",...l)},error(){for(var s=arguments.length,l=new Array(s),c=0;s>c;c++)l[c]=arguments[c];i.k("error",...l)},critical(){for(var s=arguments.length,l=new Array(s),c=0;s>c;c++)l[c]=arguments[c];console.error(e,...l)},uninitializedWarning(s){i.error("You must initialize PostHog before calling "+s)},createLogger:(s,l)=>Iw(e+" "+s,l)};return i},Ue=Iw("[PostHog.js]"),rn=Ue.createLogger,fR=rn("[ExternalScriptsLoader]"),Pp=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return fR.warn(t+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var i=Fe==null?void 0:Fe.querySelectorAll("script");if(i){for(var s,l=function(){if(i[c].src===t){var f=i[c];return f.__posthog_loading_callback_fired?{v:n()}:(f.addEventListener("load",(h=>{f.__posthog_loading_callback_fired=!0,n(void 0,h)})),f.onerror=h=>n(h),{v:void 0})}},c=0;i.length>c;c++)if(s=l())return s.v}var u=()=>{if(!Fe)return n("document not found");var f=Fe.createElement("script");if(f.type="text/javascript",f.crossOrigin="anonymous",f.src=t,f.onload=g=>{f.__posthog_loading_callback_fired=!0,n(void 0,g)},f.onerror=g=>n(g),e.config.prepare_external_dependency_script&&(f=e.config.prepare_external_dependency_script(f)),!f)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")Fe.head.appendChild(f);else{var h,p=Fe.querySelectorAll("body > script");p.length>0?(h=p[0].parentNode)==null||h.insertBefore(f,p[0]):Fe.body.appendChild(f)}};
154Fe!=null&&Fe.body?u():Fe==null||Fe.addEventListener("DOMContentLoaded",u)};Xe.__PosthogExtensions__=Xe.__PosthogExtensions__||{},Xe.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t!=="remote-config"){var i;if(e.config.strict_script_versioning)i=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var s="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var l=3e5;s=s+"&t="+Math.floor(Date.now()/l)*l}i=e.requestRouter.endpointFor("assets",s)}Pp(e,i,n)}else{var c=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");Pp(e,c,n)}},Xe.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{var i=e.requestRouter.endpointFor("api",t);Pp(e,i,n)};var Lw="$people_distinct_id",Pd="$device_id",Kl="__alias",Vl="__timers",em="$autocapture_disabled_server_side",tm="$heatmaps_enabled_server_side",nm="$exception_capture_enabled_server_side",rm="$error_tracking_suppression_rules",im="$error_tracking_capture_extension_exceptions",am="$web_vitals_enabled_server_side",Ev="$dead_clicks_enabled_server_side",xv="$product_tours_enabled_server_side",sm="$web_vitals_allowed_metrics",os="$session_recording_remote_config",zw="$replay_sample_rate",Bw="$replay_override_sampling",Pw="$replay_override_linked_flag",Uw="$replay_override_url_trigger",Fw="$replay_override_event_trigger",vo="$sesid",wv="$session_is_sampled",bo="$enabled_feature_flags",Ed="$active_feature_flags",Zl="$early_access_features",om="$feature_flag_details",lm="$feature_flag_payloads",cm="$feature_flag_request_id",Fi="$override_feature_flags",uo="$override_feature_flag_payloads",Xl="$stored_person_properties",as="$stored_group_properties",um="$surveys",Sv="$surveys_loaded_at",dm="$surveys_activated",Wl="ph_product_tours",tc="$flag_call_reported",fm="$flag_call_reported_session_id",hm="$feature_flag_errors",fc="$feature_flag_evaluated_at",Vr="$user_state",pm="$client_session_props",gm="$capture_rate_limit",mm="$initial_campaign_params",vm="$initial_referrer_info",Ud="$initial_person_info",Fd="$epp",jw="__POSTHOG_TOOLBAR__",Ku="$posthog_cookieless",$w="$sdk_debug_extensions_init_method",Hw="$sdk_debug_extensions_init_time_ms",Gw="$sdk_debug_recording_script_not_loaded",kv="PostHog loadExternalDependency extension not found.",ss="on_reject",$i="always",Js="anonymous",eo="identified",bm="identified_only",jd="visibilitychange",$d="beforeunload",fo="$pageview",Up="$pageleave",Fp="$identify",b1="$groupidentify";function Vu(e,t){_t(e)&&e.forEach(t)}function Gt(e,t){if(!mt(e))if(_t(e))e.forEach(t);else if(CO(e))e.forEach(((i,s)=>t(i,s)));else for(var n in e)lw.call(e,n)&&t(e[n],n)}var Wt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];for(var s of n)for(var l in s)s[l]!==void 0&&(e[l]=s[l]);return e};function xd(e){for(var t=Object.keys(e),n=t.length,i=new Array(n);n--;)i[n]=[t[n],e[t[n]]];return i}var _1=function(e){try{return e()}catch{return}},hR=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),i=0;t>i;i++)n[i]=arguments[i];return e.apply(this,n)}catch(s){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(s)}}},Tv=function(e){var t={};return Gt(e,(function(n,i){(Qt(n)&&n.length>0||Xn(n))&&(t[i]=n)})),t},pR=["herokuapp.com","vercel.app","netlify.app"];function gR(e){var t=e==null?void 0:e.hostname;if(!Qt(t))return!1;var n=t.split(".").slice(-2).join(".");for(var i of pR)if(n===i)return!1;return!0}function cn(e,t,n,i){var{capture:s=!1,passive:l=!0}=i??{};e==null||e.addEventListener(t,n,{capture:s,passive:l})}function qw(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Xn(e)&&isFinite(e)&&Math.floor(e)===e});class Hd{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,i,s){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(s)||0>t||0>n||0>i||0>s||t>0xffffffffffff||n>4095||i>1073741823||s>4294967295)throw new RangeError("invalid field value");var l=new Uint8Array(16);return l[0]=t/Math.pow(2,40),l[1]=t/Math.pow(2,32),l[2]=t/Math.pow(2,24),l[3]=t/Math.pow(2,16),l[4]=t/Math.pow(2,8),l[5]=t,l[6]=112|n>>>8,l[7]=n,l[8]=128|i>>>24,l[9]=i>>>16,l[10]=i>>>8,l[11]=i,l[12]=s>>>24,l[13]=s>>>16,l[14]=s>>>8,l[15]=s,new Hd(l)}toString(){for(var t="",n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Hd(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var n=0;16>n;n++){var i=this.bytes[n]-t.bytes[n];if(i!==0)return Math.sign(i)}return 0}}class mR{constructor(){this.S=0,this.C=0,this.I=new vR}generate(){var t=this.generateOrAbort();if(Be(t)){this.S=0;var n=this.generateOrAbort();if(Be(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){var t=Date.now();if(t>this.S)this.S=t,this.T();else{if(this.S>=t+1e4)return;this.C++,this.C>4398046511103&&(this.S++,this.T())}return Hd.fromFieldsV7(this.S,Math.trunc(this.C/Math.pow(2,30)),this.C&Math.pow(2,30)-1,this.I.nextUint32())}T(){this.C=1024*this.I.nextUint32()+(1023&this.I.nextUint32())}}var y1,Yw=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ve&&!Be(ve.crypto)&&crypto.getRandomValues&&(Yw=e=>crypto.getRandomValues(e));class vR{constructor(){this.M=new Uint32Array(8),this.R=1/0}nextUint32(){return this.M.length>this.R||(Yw(this.M),this.R=0),this.M[this.R++]}}var Aa=()=>bR().toString(),bR=()=>(y1||(y1=new mR)).generate(),Rl="",_R=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,li={O:()=>!!Fe,D(e){Ue.error("cookieStore error: "+e)}
154,A(e){if(Fe){try{for(var t=e+"=",n=Fe.cookie.split(";").filter((l=>l.length)),i=0;n.length>i;i++){for(var s=n[i];s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return decodeURIComponent(s.substring(t.length,s.length))}}catch{}return null}},F(e){var t;try{t=JSON.parse(li.A(e))||{}}catch{}return t},N(e,t,n,i,s){if(!Fe)return!1;try{var l="",c="",u=(function(p,g){if(g){var _=(function(E,y){if(y===void 0&&(y=Fe),Rl)return Rl;if(!y||["localhost","127.0.0.1"].includes(E))return"";for(var S=E.split("."),x=Math.min(S.length,8),C="dmn_chk_"+Aa();!Rl&&x--;){var N=S.slice(x).join("."),F=C+"=1;domain=."+N+";path=/";y.cookie=F+";max-age=3",y.cookie.includes(C)&&(y.cookie=F+";max-age=0",Rl=N)}return Rl})(p);if(!_){var v=(E=>{var y=E.match(_R);return y?y[0]:""})(p);v!==_&&Ue.info("Warning: cookie subdomain discovery mismatch",v,_),_=v}return _?"; domain=."+_:""}return""})(Fe.location.hostname,i);if(n){var f=new Date;f.setTime(f.getTime()+864e5*n),l="; expires="+f.toUTCString()}s&&(c="; secure");var h=e+"="+encodeURIComponent(JSON.stringify(t))+l+"; SameSite=Lax; path=/"+u+c;return h.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+h.length),Fe.cookie=h,!0}catch{return!1}},q(e,t){if(Fe!=null&&Fe.cookie)try{li.N(e,"",-1,t)}catch{return}}},jp=null,Ht={O(){if(!cr(jp))return jp;var e=!0;if(Be(ve))e=!1;else try{var t="__mplssupport__";Ht.N(t,"xyz"),Ht.A(t)!=='"xyz"'&&(e=!1),Ht.q(t)}catch{e=!1}return e||Ue.error("localStorage unsupported; falling back to cookie store"),jp=e,e},D(e){Ue.error("localStorage error: "+e)},A(e){try{return ve==null?void 0:ve.localStorage.getItem(e)}catch(t){Ht.D(t)}return null},F(e){try{return JSON.parse(Ht.A(e))||{}}catch{}return null},N(e,t){try{return ve==null||ve.localStorage.setItem(e,JSON.stringify(t)),!0}catch(n){Ht.D(n)}return!1},q(e){try{ve==null||ve.localStorage.removeItem(e)}catch(t){Ht.D(t)}}},yR=[Pd,"distinct_id",vo,wv,Fd,Ud,Vr],Zu={},ER={O:()=>!0,D(e){Ue.error("memoryStorage error: "+e)},A:e=>Zu[e]||null,F:e=>Zu[e]||null,N:(e,t)=>(Zu[e]=t,!0),q(e){delete Zu[e]}},Qa=null,Un={O(){if(!cr(Qa))return Qa;if(Qa=!0,Be(ve))Qa=!1;else try{var e="__support__";Un.N(e,"xyz"),Un.A(e)!=='"xyz"'&&(Qa=!1),Un.q(e)}catch{Qa=!1}return Qa},D(e){Ue.error("sessionStorage error: ",e)},A(e){try{return ve==null?void 0:ve.sessionStorage.getItem(e)}catch(t){Un.D(t)}return null},F(e){try{return JSON.parse(Un.A(e))||null}catch{}return null},N(e,t){try{return ve==null||ve.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(n){Un.D(n)}return!1},q(e){try{ve==null||ve.sessionStorage.removeItem(e)}catch(t){Un.D(t)}}};class xR{constructor(t){this._instance=t}get qt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.qt.cookieless_mode===$i||this.isRejected()||this.consent===-1&&this.qt.cookieless_mode===ss}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.qt.opt_out_capturing_by_default}optInOut(t){this.nr.N(this.sr,t?1:0,this.qt.cookie_expiration,this.qt.cross_subdomain_cookie,this.qt.secure_cookie)}reset(){this.nr.q(this.sr,this.qt.cross_subdomain_cookie)}get sr(){var{token:t,opt_out_capturing_cookie_prefix:n,consent_persistence_name:i}=this._instance.config;return i||(n?n+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.A(this.sr);return Ip(t)?1:it(RO,t)?0:-1}get nr(){var t=this.qt.opt_out_capturing_persistence_type,n=t==="localStorage"?Ht:li;if(!this.ar||this.ar!==n){this.ar=n;var i=t==="localStorage"?li:Ht;i.A(this.sr)&&(this.ar.A(this.sr)||this.optInOut(Ip(i.A(this.sr))),i.q(this.sr,this.qt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.qt.respect_dnt&&[Tr==null?void 0:Tr.doNotTrack,Tr==null?void 0:Tr.msDoNotTrack,Xe.doNotTrack].some((t=>Ip(t)))}}var wR=1,SR=3,kR=11;function E1(e){return e instanceof Element&&(e.id===jw||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Na(e){return!!e&&e.nodeType===wR}function Ar(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Kw(e){return!!e&&e.nodeType===SR}function Vw(e){return!!e&&e.nodeType===kR&&Na(e.host)}function Av(e){return e?df(e).split(/\s+/):[]}function x1(e){var t=ve==null?void 0:ve.location.href;return!!(t&&e&&e.some((n=>t.match(n))))}function Gd(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Av(t)}function Zw(e){return mt(e)?null:df(e).split(/(\s+)/).filter((t=>nc(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function hc(e){var t="";return _m(e)&&!eS(e)&&e.childNodes&&e.childNodes.length&&Gt(e.childNodes,(function(n){var i;Kw(n)&&n.textContent&&(t+=(i=Zw(n.textContent))!==null&&i!==void 0?i:"")})),df(t)}function $p(e){return Be(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Cv=["a","button","form","input","select","textarea","label"];function Xw(e,t){if(Be(t))return!0;var n,i=function(l){if(t.some((c=>l.matches(c))))return{v:!0}};for(var s of e)if(n=i(s))return n.v;return!1}function Ww(e){var t=e.parentNode;return!(!t||!Na(t))&&t}var Qw=["next","previous","prev",">","<"],TR=[...Qw,"+","-","−","–"],w1=(e,t)=>/[a-z0-9]/i.test(t)?e.includes(t):e===t,S1=[".ph-no-rageclick",".ph-no-capture"],AR=["","text","search","email","password","url","tel","number"];function k1(e,t){if(!ve||Nv(e))return!1;var n,i,s,l,c;if(di(t)?(n=!!t&&S1,i=void 0,s=!1):(n=(l=t==null?void 0:t.css_selector_ignorelist)!==null&&l!==void 0?l:S1,i=t==null?void 0:t.content_ignorelist,s=(c=t==null?void 0:t.ignore_text_selection)!==null&&c!==void 0&&c),n===!1||s&&(function(f){return!(!f||!Na(f))&&(!!Ar(f,"textarea")||(Ar(f,"input")?it(AR,(f.getAttribute("type")||"").toLowerCase()):(function(h){if(h.isContentEditable)return!0;var p=h.getAttribute==null?void 0:h.getAttribute("contenteditable");return p==="true"||p===""})(f)))})(e))return!1;var{targetElementList:u}=Jw(e,!1);return!(function(f,h){if(f===!1||Be(f))return!1;var p;if(f===!0)p=Qw;else{if(!_t(f))return!1;if(f.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;p=f.map((g=>g.toLowerCase()))}return h.some((g=>{var{safeText:_,ariaLabel:v}=g;return p.some((E=>w1(_,E)||w1(v,E)))}
154))})(i,u.map((f=>{var h;return{safeText:hc(f).toLowerCase(),ariaLabel:((h=f.getAttribute("aria-label"))==null?void 0:h.toLowerCase().trim())||""}})))&&!Xw(u,n)}var Nv=e=>!e||Ar(e,"html")||!Na(e),Jw=(e,t)=>{if(!ve||Nv(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,i=[e],s=e;s.parentNode&&!Ar(s,"body");)if(Vw(s.parentNode))i.push(s.parentNode.host),s=s.parentNode.host;else{var l=Ww(s);if(!l)break;if(t||Cv.indexOf(l.tagName.toLowerCase())>-1)n=!0;else{var c=ve.getComputedStyle(l);c&&c.getPropertyValue("cursor")==="pointer"&&(n=!0)}i.push(l),s=l}return{parentIsUsefulElement:n,targetElementList:i}};function _m(e){for(var t=e;t.parentNode&&!Ar(t,"body");t=t.parentNode){var n=Gd(t);if(it(n,"ph-sensitive")||it(n,"ph-no-capture"))return!1}if(it(Gd(e),"ph-include"))return!0;var i=e.type||"";if(Qt(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}var s=e.name||e.id||"";return!Qt(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function eS(e){return!!(Ar(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Ar(e,"select")||Ar(e,"textarea")||e.getAttribute("contenteditable")==="true")}var tS="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",CR=new RegExp("^(?:"+tS+")$"),NR=new RegExp(tS),nS="\\d{3}-?\\d{2}-?\\d{4}",OR=new RegExp("^("+nS+")$"),RR=new RegExp("("+nS+")");function nc(e,t){return t===void 0&&(t=!0),!(mt(e)||Qt(e)&&(e=df(e),(t?CR:NR).test((e||"").replace(/[- ]/g,""))||(t?OR:RR).test(e)))}function T1(e){var t=hc(e);return nc(t=(t+" "+rS(e)).trim())?t:""}function rS(e){var t="";return e&&e.childNodes&&e.childNodes.length&&Gt(e.childNodes,(function(n){var i;if(n&&((i=n.tagName)==null?void 0:i.toLowerCase())==="span")try{var s=hc(n);t=(t+" "+s).trim(),n.childNodes&&n.childNodes.length&&(t=(t+" "+rS(n)).trim())}catch(l){Ue.error("[AutoCapture]",l)}})),t}function A1(e){return e.replace(/"|\\"/g,'\\"')}function MR(e){var t=e.attr__class;return t?_t(t)?t:Av(t):void 0}var Xu=rn("[Dead Clicks]"),DR=()=>!0,IR=e=>{var t,n=!((t=e.instance.persistence)==null||!t.get_property(Ev)),i=e.instance.config.capture_dead_clicks;return di(i)?i:!!sn(i)||n};class C1{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,n,i){this.instance=t,this.isEnabled=n,this.onCapture=i,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[Ev]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var n,i;(n=Xe.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture&&t(),(i=Xe.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"dead-clicks-autocapture",(s=>{s?Xu.error("failed to load script",s):t()}))}hr(){var t;if(Fe){if(!this.lr&&(t=Xe.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var n=sn(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};n.__onCapture=this.onCapture,this.lr=Xe.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.lr.start(Fe),Xu.info("starting...")}}else Xu.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xu.info("stopping..."))}}var Hp=rn("[SegmentIntegration]"),iS="posthog-js";function aS(e,t){var{organization:n,projectId:i,prefix:s,severityAllowList:l=["error"],sendExceptionsToPostHog:c=!0}=t===void 0?{}:t;return u=>{var f,h,p,g,_;if(l!=="*"&&!l.includes(u.level)||!e.__loaded)return u;u.tags||(u.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());u.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(u.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var E,y=((f=u.exception)==null?void 0:f.values)||[],S=y.map((C=>Ie({},C,{stacktrace:C.stacktrace?Ie({},C.stacktrace,{type:"raw",frames:(C.stacktrace.frames||[]).map((N=>
154Ie({},N,{platform:"web:javascript"})))}):void 0}))),x={$exception_message:((h=y[0])==null?void 0:h.value)||u.message,$exception_type:(p=y[0])==null?void 0:p.type,$exception_level:u.level,$exception_list:S,$sentry_event_id:u.event_id,$sentry_exception:u.exception,$sentry_exception_message:((g=y[0])==null?void 0:g.value)||u.message,$sentry_exception_type:(_=y[0])==null?void 0:_.type,$sentry_tags:u.tags};return n&&i&&(x.$sentry_url=(s||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&query="+u.event_id),c&&((E=e.exceptions)==null||E.sendExceptionEvent(x)),u}}class LR{constructor(t,n,i,s,l,c){this.name=iS,this.setupOnce=function(u){u(aS(t,{organization:n,projectId:i,prefix:s,severityAllowList:l,sendExceptionsToPostHog:c==null||c}))}}}class N1{constructor(t){this.cr=(n,i,s)=>{s&&(s.noSessionId||s.activityTimeout||s.sessionPastMaximumLength||s.crossTabAdoption)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:s}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,n){var i,s=this.gr(t,n);return this.dr={pathname:(i=ve==null?void 0:ve.location.pathname)!==null&&i!==void 0?i:"",pageViewId:n,timestamp:t},this._instance.scrollManager.resetContext(),s}doPageLeave(t){var n;return this.gr(t,(n=this.dr)==null?void 0:n.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,n){var i=this.dr;if(!i)return{$pageview_id:n};var s={$pageview_id:n,$prev_pageview_id:i.pageViewId},l=this._instance.scrollManager.getContext();if(l&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:c,lastScrollY:u,maxScrollY:f,maxContentHeight:h,lastContentY:p,maxContentY:g}=l;if(!(Be(c)||Be(u)||Be(f)||Be(h)||Be(p)||Be(g))){c=Math.ceil(c),u=Math.ceil(u),f=Math.ceil(f),h=Math.ceil(h),p=Math.ceil(p),g=Math.ceil(g);var _=c>1?ui(u/c,0,1,Ue):1,v=c>1?ui(f/c,0,1,Ue):1,E=h>1?ui(p/h,0,1,Ue):1,y=h>1?ui(g/h,0,1,Ue):1;s=Wt(s,{$prev_pageview_last_scroll:u,$prev_pageview_last_scroll_percentage:_,$prev_pageview_max_scroll:f,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:p,$prev_pageview_last_content_percentage:E,$prev_pageview_max_content:g,$prev_pageview_max_content_percentage:y})}}return i.pathname&&(s.$prev_pageview_pathname=i.pathname),i.timestamp&&(s.$prev_pageview_duration=(t.getTime()-i.timestamp.getTime())/1e3),s}}var Wu=["flags","surveys"],zR={[Lw]:{exposure:"hidden"},[Kl]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[Vl]:{exposure:"hidden"},[em]:{exposure:"event"},[tm]:{exposure:"hidden"},[nm]:{exposure:"event"},[rm]:{exposure:"hidden"},[im]:{exposure:"event"},[am]:{exposure:"event"},[Ev]:{exposure:"event"},[xv]:{exposure:"hidden"},[sm]:{exposure:"event"},[os]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[vo]:{exposure:"hidden"},[wv]:{exposure:"event"},[zw]:{exposure:"event",shouldSkipFromEventProperties:e=>cr(e)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[bo]:{exposure:"derived",storageGroup:"flags",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!sn(e))return{};for(var t={},n=Object.keys(e),i=0;n.length>i;i++)t["$feature/"+n[i]]=e[n[i]];return t}},[Ed]:{exposure:"event",storageGroup:"flags"},[Zl]:{exposure:"hidden"},[om]:{exposure:"hidden",storageGroup:"flags"},[lm]:{exposure:"event",storageGroup:"flags"},[cm]:{exposure:"event",storageGroup:"flags",volatile:!0},[Fi]:{exposure:"event"},[uo]:{exposure:"hidden"},[Xl]:{exposure:"hidden"},[as]:{exposure:"hidden"},[um]:{exposure:"hidden",storageGroup:"surveys"},[Sv]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[dm]:{exposure:"event"},[Wl]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"}
154,$conversations_user_traits:{exposure:"event"},[tc]:{exposure:"hidden"},[fm]:{exposure:"hidden"},[hm]:{exposure:"hidden"},[fc]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[Vr]:{exposure:"hidden"},[pm]:{exposure:"hidden"},[gm]:{exposure:"hidden"},[mm]:{exposure:"hidden"},[vm]:{exposure:"hidden"},[Ud]:{exposure:"hidden"},[Fd]:{exposure:"hidden"},[Bw]:{exposure:"event"},[Pw]:{exposure:"event"},[Uw]:{exposure:"event"},[Fw]:{exposure:"event"},[$w]:{exposure:"event"},[Hw]:{exposure:"event"},[Gw]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},BR=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],Ja=e=>{var t=zR[e];if(t)return t;for(var[n,i]of BR)if(e.indexOf(n)===0)return i},qd=e=>{var t=Fe==null?void 0:Fe.createElement("a");return Be(t)?null:(t.href=e,t)},pc=function(e,t){for(var n,i=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),s=0;i.length>s;s++){var l=i[s].split("=");if(l[0]===t){n=l;break}}if(!_t(n)||2>n.length)return"";var c=n[1];try{c=decodeURIComponent(c)}catch{Ue.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")},gc=function(e,t,n){if(!e||!t||!t.length)return e;for(var i=e.split("#"),s=i[1],l=(i[0]||"").split("?"),c=l[1],u=l[0],f=(c||"").split("&"),h=[],p=0;f.length>p;p++){var g=f[p].split("=");_t(g)&&(t.includes(g[0])?h.push(g[0]+"="+n):h.push(f[p]))}var _=u;return c!=null&&(_+="?"+h.join("&")),s!=null&&(_+="#"+s),_},Yd=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},Qu="https?://(.*)",Ao=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],PR=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ao],mc="<masked>",UR=["li_fat_id"];function sS(e,t,n){if(!Fe)return{};var i,s=t?[...Ao,...n||[]]:[],l=oS(gc(Fe.URL,s,mc),e),c=(i={},Gt(UR,(function(u){var f=li.A(u);i[u]=f||null})),i);return Wt(c,l)}function oS(e,t){var n=PR.concat(t||[]),i={};return Gt(n,(function(s){var l=pc(e,s);i[s]=l||null})),i}function lS(e){var t=(function(l){return l?l.search(Qu+"google.([^/?]*)")===0?"google":l.search(Qu+"bing.com")===0?"bing":l.search(Qu+"yahoo.com")===0?"yahoo":l.search(Qu+"duckduckgo.com")===0?"duckduckgo":null:null})(e),n=t!="yahoo"?"q":"p",i={};if(!cr(t)){i.$search_engine=t;var s=Fe?pc(Fe.referrer,n):"";s.length&&(i.ph_keyword=s)}return i}function O1(){return navigator.language||navigator.userLanguage}var Kd="$direct";function cS(){return(Fe==null?void 0:Fe.referrer)||Kd}function uS(e,t){var n=e?[...Ao,...t||[]]:[],i=Pn==null?void 0:Pn.href.substring(0,1e3);return{r:cS().substring(0,1e3),u:i?gc(i,n,mc):void 0}}function dS(e){var t,{r:n,u:i}=e,s={$referrer:n,$referring_domain:n==null?void 0:n==Kd?Kd:(t=qd(n))==null?void 0:t.host};if(i){s.$current_url=i;var l=qd(i);s.$host=l==null?void 0:l.host,s.$pathname=l==null?void 0:l.pathname;var c=oS(i);Wt(s,c)}if(n){var u=lS(n);Wt(s,u)}return s}function fS(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function FR(){try{return new Date().getTimezoneOffset()}catch{return}}var jR={flags:fc,surveys:Sv},$R=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],to="main";class Gp{constructor(t,n,i){if(i===void 0&&(i=!0),this.mr={},this.yr=!1,this.br=!1,this.qt=t,this._r=i,this.props={},this.wr=!1,this.kr=(l=>{var c="";return l.token&&(c=l.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),l.persistence_name?"ph_"+l.persistence_name:"ph_"+c+"_posthog"})(t),this.nr=this.Sr(t),this.br=this.Cr(t),this.load(),t.debug&&Ue.info("Persistence loaded",t.persistence,Ie({},this.props)),this.update_config(t,t,n),this.save(),ve){var s=()=>this.flush();cn(ve,"beforeunload",s,{capture:!1}),cn(ve,"pagehide",s,{capture:!1})}}Ir(){var t,n=(t=this.qt)==null?void 0:t.persistence_save_debounce_ms;return Xn(n)&&n>0?n:0}isDisabled(){return!!this.Tr}Sr(t){$R.indexOf(t.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var n,i=(function(c,u){c===void 0&&(c=[]),u===void 0&&(u=!1);var f=[...yR,...c];return Ie({},Ht,{F(h){try{var p={};try{p=li.F(h)||{}}catch{}var g,_=JSON.parse(Ht.A(h)||"{}");if(u){var v={};for(var E in p){var y=p[E];cr(y)||y===""||(v[E]=y)}g=Wt(_,v)}
154else g=Wt(p,_);return Ht.N(h,g),g}catch{}return null},N(h,p,g,_,v,E){var y=Ht.N(h,p,void 0,void 0,E);try{var S={};f.forEach((x=>{p[x]&&(S[x]=p[x])})),Object.keys(S).length&&li.N(h,S,g,_,v,E)}catch(x){Ht.D(x)}return y},q(h,p){try{ve==null||ve.localStorage.removeItem(h),li.q(h,p)}catch(g){Ht.D(g)}}})})(t.cookie_persisted_properties||[],t.__preview_cookie_wins_on_conflict||!1),s=!1,l=t.persistence.toLowerCase();return l==="localstorage"&&Ht.O()?(n=Ht,s=!0):l==="localstorage+cookie"&&i.O()?(n=i,s=!0):l==="sessionstorage"&&Un.O()?n=Un:l==="memory"?n=ER:l==="cookie"?n=li:i.O()?(n=i,s=!0):n=li,this.yr=s,n}Er(t){return this.kr+"__"+t}Cr(t){return this.yr&&!!t.split_storage}Mr(t){var n=t??this.qt.feature_flag_cache_ttl_ms;if(!n||0>=n)return!1;var i=this.props[fc];return!i||typeof i!="number"||Date.now()-i>n}properties(){var t={};return Gt(this.props,((n,i)=>{var s=Ja(i);if((s==null?void 0:s.exposure)==="derived"){if(s.shouldSkipFromEventProperties!=null&&s.shouldSkipFromEventProperties(n,i===bo?()=>this.Mr():()=>!1))return;s.transformToEventProperties&&Wt(t,s.transformToEventProperties(n))}else if(!s||s.exposure==="event"){if(s!=null&&s.shouldSkipFromEventProperties!=null&&s.shouldSkipFromEventProperties(n,(()=>!1)))return;t[i]=n}})),t}load(){if(!this.Tr){var t=this.nr.F(this.kr);t&&(this.props=Wt({},t)),this.br&&this.Rr()}}Rr(){for(var t of Wu){var n=Ht.F(this.Er(t));if(n&&!Ca(n)){var i=this.Pr(t);i.persisted=!0,this.Or(t)||(i.fingerprint=this.Lr(n,t)),this.Ar(t,n)||Wt(this.props,n)}}}Or(t){return Object.keys(this.props).some((n=>{var i;return((i=Ja(n))==null?void 0:i.storageGroup)===t}))}Ar(t,n){var i=jR[t];if(!i)return!1;var s=n[i],l=this.props[i];return Xn(s)&&Xn(l)&&l>s}refreshKey(t){var n;if(!this.Tr){var i=this.br?(n=Ja(t))==null?void 0:n.storageGroup:void 0,s=i?Ht.F(this.Er(i)):this.nr.F(this.kr);if(s&&t in s)this.Fr(t,s[t]);else{if(i){var l=this.nr.F(this.kr);if(l&&t in l)return void this.Fr(t,l[t])}this.Nr(t)}}}save(){if(!this.Tr){var t=this.Ir();t>0?Be(this.Dr)&&(this.Dr=setTimeout((()=>{this.Dr=void 0,this.$r()}),t)):this.$r()}}flush(){Be(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0,this.$r())}$r(){this.Tr||(this.br?this.qr():this.jr(this.nr,this.kr,this.props,to))}qr(){var{main:t,groups:n}=this.Br();for(var i of(this.jr(this.nr,this.kr,t,to),Wu)){var s,l=n[i];(!Ca(l)||(s=this.mr[i])!=null&&s.persisted)&&this.jr(Ht,this.Er(i),l,i)}}Br(){var t={},n={};for(var i of Wu)n[i]={};return Gt(this.props,((s,l)=>{var c,u=(c=Ja(l))==null?void 0:c.storageGroup;u?n[u][l]=s:t[l]=s})),{main:t,groups:n}}Lr(t,n){if(n===to)return JSON.stringify(t)+"|"+this.Hr+"|"+this.Ur+"|"+this.zr;var i={};return Gt(t,((s,l)=>{var c;i[l]=(c=Ja(l))!=null&&c.volatile?"__volatile__":s})),JSON.stringify(i)}jr(t,n,i,s){var l=this.Pr(s);if(s===to||l.dirty||Be(l.fingerprint)){var c;try{if((c=this.Lr(i,s))===l.fingerprint)return void(l.dirty=!1)}catch{c=void 0}t.N(n,i,this.Hr,this.Ur,this.zr,this.qt.debug)?(l.dirty=!1,s!==to&&(l.persisted=!0),Be(c)||(l.fingerprint=c)):this.qt.debug&&Ue.warn('failed to persist storage entry "'+n+'"; will retry on next save')}}remove(t){var{keepGroupEntries:n=!1}=t===void 0?{}:t;if(Be(this.Dr)||(clearTimeout(this.Dr),this.Dr=void 0),this.nr.q(this.kr,!1),this.nr.q(this.kr,!0),!n&&this._r)for(var i of Wu)Ht.q(this.Er(i));n?delete this.mr[to]:this.mr={}}clear(){this.remove(),this.props={}}register_once(t,n,i){if(sn(t)){Be(n)&&(n="None"),this.Hr=Be(i)?this.Vr:i;var s=!1;if(Gt(t,((l,c)=>{this.props.hasOwnProperty(c)&&this.props[c]!==n||(this.Fr(c,l),s=!0)})),s)return this.save(),!0}return!1}register(t,n){if(sn(t)){this.Hr=Be(n)?this.Vr:n;var i=!1;if(Gt(t,((s,l)=>{t.hasOwnProperty(l)&&this.props[l]!==s&&(this.Fr(l,s),i=!0)})),i)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Nr(t),this.save())}update_campaign_params(){if(!this.wr){var t=sS(this.qt.custom_campaign_params,this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties);Ca(Tv(t))||this.register(t),this.wr=!0}}update_search_keyword(){var t;this.register((t=Fe==null?void 0:Fe.referrer)?lS(t):{})}update_referrer_info(){var t;this.register_once({$referrer:cS(),$referring_domain:Fe!=null&&Fe.referrer&&((t=qd(Fe.referrer))==null?void 0:t.host)||Kd},void 0)}set_initial_person_info(){this.props[mm]||this.props[vm]||this.register_once({[Ud]:uS(this.qt.mask_personal_data_properties,this.qt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};Gt([vm,mm],(c=>{var u=this.props[c];u&&Gt(u,(function(f,h){t["$initial_"+Kg(h)]=f}))}));var n,i,s=this.props[Ud];if(s){var l=(n=dS(s),i={},Gt(n,(function(c,u){i["$initial_"+Kg(u)]=c})),i);Wt(t,l)}return t}safe_merge(t){return Gt(this.props,(function(n,i){i in t||(t[i]=n)})),t}update_config(t,n,i){this.Vr=this.Hr=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!i),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie);var s=t.persistence!==n.persistence||!((f,h)=>
154{if(f.length!==h.length)return!1;var p=[...f].sort(),g=[...h].sort();return p.every(((_,v)=>_===g[v]))})(t.cookie_persisted_properties||[],n.cookie_persisted_properties||[]),l=s?this.Sr(t):this.nr,c=this.Cr(t);if(s||c!==this.br){var u=this.props;this.clear(),this.nr=l,this.br=c,this.props=u,this.save()}}set_disabled(t){this.Tr=t,this.Tr?this.remove():this.save()}set_cross_subdomain(t){t!==this.Ur&&(this.Ur=t,this.remove({keepGroupEntries:!0}),this.save())}set_secure(t){t!==this.zr&&(this.zr=t,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(t,n){var i=this.props[Vl]||{};i[t]=n,this.Fr(Vl,i),this.save()}remove_event_timer(t){var n=this.props[Vl]||{},i=n[t];return Be(i)||(delete n[t],this.Fr(Vl,n),this.save()),i}get_property(t){return this.props[t]}set_property(t,n){this.Fr(t,n),this.save()}Fr(t,n){var i;this.props[t]=n,(i=Ja(t))!=null&&i.volatile||this.Wr(t)}Nr(t){delete this.props[t],this.Wr(t)}Wr(t){var n,i=(n=Ja(t))==null?void 0:n.storageGroup;i&&(this.Pr(i).dirty=!0)}Pr(t){return this.mr[t]||(this.mr[t]={})}}var Ml={Activation:"events",Cancellation:"cancelEvents"},qp={Popover:"popover",API:"api",Widget:"widget"},Ql={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},Yp={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},ym={Popover:"popover",Inline:"inline"},HR={SHOWN:"product tour shown"},R1={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},M1=rn("[RateLimiter]");class GR{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var i=n.text;if(i&&i.length)try{(JSON.parse(i).quota_limited||[]).forEach((s=>{M1.info((s||"events")+" is quota limited."),this.serverLimits[s]=new Date().getTime()+6e4}))}catch(s){return void M1.warn('could not rate limit - continuing. Error: "'+(s==null?void 0:s.message)+'"',{text:i})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var n,i,s;t===void 0&&(t=!1);var{captureEventsBurstLimit:l,captureEventsPerSecond:c}=this,u=new Date().getTime(),f=(n=(i=this.instance.persistence)==null?void 0:i.get_property(gm))!==null&&n!==void 0?n:{tokens:l,last:u};f.tokens+=(u-f.last)/1e3*c,f.last=u,f.tokens>l&&(f.tokens=l);var h=1>f.tokens;return h||t||(f.tokens=Math.max(0,f.tokens-1)),!h||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+c+" events per second and "+l+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=h,(s=this.instance.persistence)==null||s.set_property(gm,f),{isRateLimited:h,remainingTokens:f.tokens}}isServerRateLimited(t){var n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var Dl=rn("[RemoteConfig]");class hS{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=Xe._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Gr(t){var n,i;(n=Xe.__PosthogExtensions__)!=null&&n.loadExternalDependency?(i=Xe.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Zr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(n){t(n.json)}})}load(){try{if(this.remoteConfig)return Dl.info("Using preloaded remote config",this.remoteConfig),this.Qr(this.remoteConfig),void this.Jr();if(this._instance.Kr())return void Dl.warn("Remote config is disabled. Falling back to local config.");this.Gr((t=>{if(!t)return Dl.info("No config found after loading remote JS config. Falling back to JSON."),void this.Zr((n=>{this.Qr(n),this.Jr()}));this.Qr(t),this.Jr()}))}catch(t){Dl.error("Error loading remote config",t)}}stop(){this.Yr&&(clearInterval(this.Yr),this.Yr=void 0)}refresh(){!this._instance.Kr()&&Fe&&Fe.visibilityState!=="hidden"&&this._instance.reloadFeatureFlags()}Jr(){var t;if(!this.Yr){var n=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;n!==0&&(this.Yr=setInterval((()=>{this.refresh()}),n))}}Qr(t){var n;t||Dl.error("Failed to fetch remote config from PostHog."),this._instance.Qr(t??{}),(t==null?void 0:t.hasFeatureFlags)!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(n=this._instance.featureFlags)==null||n.ensureFlagsLoaded())}}var oi={GZipJS:"gzip-js",Base64:"base64"}
vendor: 4,155 bytes, line 154
154,Hr=Uint8Array,lr=Uint16Array,Co=Uint32Array,Ov=new Hr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Rv=new Hr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),D1=new Hr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pS=function(e,t){for(var n=new lr(31),i=0;31>i;++i)n[i]=t+=1<<e[i-1];var s=new Co(n[30]);for(i=1;30>i;++i)for(var l=n[i];n[i+1]>l;++l)s[l]=l-n[i]<<5|i;return[n,s]},gS=pS(Ov,2),Em=gS[1];gS[0][28]=258,Em[258]=28;for(var I1=pS(Rv,0)[1],mS=new lr(32768),Jt=0;32768>Jt;++Jt){var no=(43690&Jt)>>>1|(21845&Jt)<<1;mS[Jt]=((65280&(no=(61680&(no=(52428&no)>>>2|(13107&no)<<2))>>>4|(3855&no)<<4))>>>8|(255&no)<<8)>>>1}var rc=function(e,t,n){for(var i=e.length,s=0,l=new lr(t);i>s;++s)++l[e[s]-1];var c,u=new lr(t);for(s=0;t>s;++s)u[s]=u[s-1]+l[s-1]<<1;for(c=new lr(i),s=0;i>s;++s)c[s]=mS[u[e[s]-1]++]>>>15-e[s];return c},ds=new Hr(288);for(Jt=0;144>Jt;++Jt)ds[Jt]=8;for(Jt=144;256>Jt;++Jt)ds[Jt]=9;for(Jt=256;280>Jt;++Jt)ds[Jt]=7;for(Jt=280;288>Jt;++Jt)ds[Jt]=8;var Vd=new Hr(32);for(Jt=0;32>Jt;++Jt)Vd[Jt]=5;var qR=rc(ds,9),YR=rc(Vd,5),vS=function(e){return(e/8>>0)+(7&e&&1)},bS=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var i=new(e instanceof lr?lr:e instanceof Co?Co:Hr)(n-t);return i.set(e.subarray(t,n)),i},Li=function(e,t,n){var i=t/8>>0;e[i]|=n<<=7&t,e[i+1]|=n>>>8},Il=function(e,t,n){var i=t/8>>0;e[i]|=n<<=7&t,e[i+1]|=n>>>8,e[i+2]|=n>>>16},Kp=function(e,t){for(var n=[],i=0;e.length>i;++i)e[i]&&n.push({s:i,f:e[i]});var s=n.length,l=n.slice();if(!s)return[new Hr(0),0];if(s==1){var c=new Hr(n[0].s+1);return c[n[0].s]=1,[c,1]}n.sort((function(R,D){return R.f-D.f})),n.push({s:-1,f:25001});var u=n[0],f=n[1],h=0,p=1,g=2;for(n[0]={s:-1,f:u.f+f.f,l:u,r:f};p!=s-1;)u=n[n[g].f>n[h].f?h++:g++],f=n[h!=p&&n[g].f>n[h].f?h++:g++],n[p++]={s:-1,f:u.f+f.f,l:u,r:f};var _=l[0].s;for(i=1;s>i;++i)l[i].s>_&&(_=l[i].s);var v=new lr(_+1),E=xm(n[p-1],v,0);if(E>t){i=0;var y=0,S=E-t,x=1<<S;for(l.sort((function(R,D){return v[D.s]-v[R.s]||R.f-D.f}));s>i;++i){var C=l[i].s;if(t>=v[C])break;y+=x-(1<<E-v[C]),v[C]=t}for(y>>>=S;y>0;){var N=l[i].s;t>v[N]?y-=1<<t-v[N]++-1:++i}for(;i>=0&&y;--i){var F=l[i].s;v[F]==t&&(--v[F],++y)}E=t}return[new Hr(v),E]},xm=function(e,t,n){return e.s==-1?Math.max(xm(e.l,t,n+1),xm(e.r,t,n+1)):t[e.s]=n},L1=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lr(++t),i=0,s=e[0],l=1,c=function(f){n[i++]=f},u=1;t>=u;++u)if(e[u]==s&&u!=t)++l;else{if(!s&&l>2){for(;l>138;l-=138)c(32754);l>2&&(c(l>10?l-11<<5|28690:l-3<<5|12305),l=0)}else if(l>3){for(c(s),--l;l>6;l-=6)c(8304);l>2&&(c(l-3<<5|8208),l=0)}for(;l--;)c(s);l=1,s=e[u]}return[n.subarray(0,i),t]},Ll=function(e,t){for(var n=0,i=0;t.length>i;++i)n+=e[i]*t[i];return n},wm=function(e,t,n){var i=n.length,s=vS(t+2);e[s]=255&i,e[s+1]=i>>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var l=0;i>l;++l)e[s+l+4]=n[l];return 8*(s+4+i)},z1=function(e,t,n,i,s,l,c,u,f,h,p){Li(t,p++,n),++s[256];for(var g=Kp(s,15),_=g[0],v=g[1],E=Kp(l,15),y=E[0],S=E[1],x=L1(_),C=x[0],N=x[1],F=L1(y),R=F[0],D=F[1],M=new lr(19),L=0;C.length>L;++L)M[31&C[L]]++;for(L=0;R.length>L;++L)M[31&R[L]]++;for(var O=Kp(M,7),I=O[0],B=O[1],k=19;k>4&&!I[D1[k-1]];--k);var q,w,$,K,Z=h+5<<3,ae=Ll(s,ds)+Ll(l,Vd)+c,ie=Ll(s,_)+Ll(l,y)+c+14+3*k+Ll(M,I)+(2*M[16]+3*M[17]+7*M[18]);if(ae>=Z&&ie>=Z)return wm(t,p,e.subarray(f,f+h));if(Li(t,p,1+(ae>ie)),p+=2,ae>ie){q=rc(_,v),w=_,$=rc(y,S),K=y;var P=rc(I,B);for(Li(t,p,N-257),Li(t,p+5,D-1),Li(t,p+10,k-4),p+=14,L=0;k>L;++L)Li(t,p+3*L,I[D1[L]]);p+=3*k;for(var z=[C,R],Y=0;2>Y;++Y){var U=z[Y];for(L=0;U.length>L;++L)Li(t,p,P[ue=31&U[L]]),p+=I[ue],ue>15&&(Li(t,p,U[L]>>>5&127),p+=U[L]>>>12)}}else q=qR,w=ds,$=YR,K=Vd;for(L=0;u>L;++L)if(i[L]>255){var ue;Il(t,p,q[257+(ue=i[L]>>>18&31)]),p+=w[ue+257],ue>7&&(Li(t,p,i[L]>>>23&31),p+=Ov[ue]);var de=31&i[L];Il(t,p,$[de]),p+=K[de],de>3&&(Il(t,p,i[L]>>>5&8191),p+=Rv[de])}else Il(t,p,q[i[L]]),p+=w[i[L]];return Il(t,p,q[256]),p+w[256]},KR=new Co([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),VR=(function(){for(var e=new Co(256),t=0;256>t;++t){for(var n=t,i=9;--i;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e})(),Vp=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};
154function ZR(e,t){t===void 0&&(t={});var n=(function(){var g=4294967295;return{p(_){for(var v=g,E=0;_.length>E;++E)v=VR[255&v^_[E]]^v>>>8;g=v},d(){return 4294967295^g}}})(),i=e.length;n.p(e);var s,l,c,u,f,h=(u=10+((s=t).filename&&s.filename.length+1||0),f=8,(function(g,_,v,E,y,S){var x=g.length,C=new Hr(E+x+5*(1+Math.floor(x/7e3))+y),N=C.subarray(E,C.length-y),F=0;if(!_||8>x)for(var R=0;x>=R;R+=65535){var D=R+65535;x>D?F=wm(N,F,g.subarray(R,D)):(N[R]=!0,F=wm(N,F,g.subarray(R,x)))}else{for(var M=KR[_-1],L=M>>>13,O=8191&M,I=(1<<v)-1,B=new lr(32768),k=new lr(I+1),q=Math.ceil(v/3),w=2*q,$=function(Ce){return(g[Ce]^g[Ce+1]<<q^g[Ce+2]<<w)&I},K=new Co(25e3),Z=new lr(288),ae=new lr(32),ie=0,P=0,z=(R=0,0),Y=0,U=0;x>R;++R){var ue=$(R),de=32767&R,Se=k[ue];if(B[de]=Se,k[ue]=de,R>=Y){var je=x-R;if((ie>7e3||z>24576)&&je>423){F=z1(g,N,0,K,Z,ae,P,z,U,R-U,F),z=ie=P=0,U=R;for(var re=0;286>re;++re)Z[re]=0;for(re=0;30>re;++re)ae[re]=0}var ne=2,ce=0,me=O,_e=de-Se&32767;if(je>2&&ue==$(R-_e))for(var Ne=Math.min(L,je)-1,T=Math.min(32767,R),oe=Math.min(258,je);T>=_e&&--me&&de!=Se;){if(g[R+ne]==g[R+ne-_e]){for(var J=0;oe>J&&g[R+J]==g[R+J-_e];++J);if(J>ne){if(ne=J,ce=_e,J>Ne)break;var V=Math.min(_e,J-2),H=0;for(re=0;V>re;++re){var ee=R-_e+re+32768&32767,ye=ee-B[ee]+32768&32767;ye>H&&(H=ye,Se=ee)}}}_e+=(de=Se)-(Se=B[de])+32768&32767}if(ce){K[z++]=268435456|Em[ne]<<18|I1[ce];var Ae=31&Em[ne],fe=31&I1[ce];P+=Ov[Ae]+Rv[fe],++Z[257+Ae],++ae[fe],Y=R+ne,++ie}else K[z++]=g[R],++Z[g[R]]}}F=z1(g,N,!0,K,Z,ae,P,z,U,R-U,F)}return bS(C,0,E+vS(F)+y)})(l=e,(c=t).level==null?6:c.level,c.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(l.length)))):12+c.mem,u,f)),p=h.length;return(function(g,_){var v=_.filename;if(g[0]=31,g[1]=139,g[2]=8,g[8]=2>_.level?4:_.level==9?2:0,g[9]=3,_.mtime!=0&&Vp(g,4,Math.floor(new Date(_.mtime||Date.now())/1e3)),v){g[3]=8;for(var E=0;v.length>=E;++E)g[E+10]=v.charCodeAt(E)}})(h,t),Vp(h,p-8,n.d()),Vp(h,p-4,i),h}var XR=!!Gg||!!Hg,_S="text/plain",wd=!1,WR=(e,t)=>{var[n,i]=e.split("#"),[s,l]=n.split("?");if(!l)return e;var c=l.split("&").filter((u=>u.split("=")[0]!==t)).join("&");return s+(c?"?"+c:"")+(i?"#"+i:"")},hf=function(e,t,n){var i;n===void 0&&(n=!0);var[s,l]=e.split("?"),c=Ie({},t),u=(i=l==null?void 0:l.split("&").map((h=>{var p,[g,_]=h.split("="),v=n&&(p=c[g])!==null&&p!==void 0?p:_;return delete c[g],g+"="+v})))!==null&&i!==void 0?i:[],f=(function(h,p){var g,_;p===void 0&&(p="&");var v=[];return Gt(h,(function(E,y){Be(E)||Be(y)||y==="undefined"||(g=encodeURIComponent((S=>S instanceof File)(E)?E.name:E.toString()),_=encodeURIComponent(y),v[v.length]=_+"="+g)})),v.join(p)})(c);return f&&u.push(f),s+"?"+u.join("&")},_o=(e,t)=>JSON.stringify(e,((n,i)=>typeof i=="bigint"?i.toString():i),t),B1=e=>{if(e.tr)return e.tr;var{data:t,compression:n}=e;if(t){if(n===oi.GZipJS){var i=ZR((function(u,f){var h=u.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(u);for(var p=new Hr(u.length+(u.length>>>1)),g=0,_=function(S){p[g++]=S},v=0;h>v;++v){if(g+5>p.length){var E=new Hr(g+8+(h-v<<1));E.set(p),p=E}var y=u.charCodeAt(v);128>y?_(y):2048>y?(_(192|y>>>6),_(128|63&y)):y>55295&&57344>y?(_(240|(y=65536+(1047552&y)|1023&u.charCodeAt(++v))>>>18),_(128|y>>>12&63),_(128|y>>>6&63),_(128|63&y)):(_(224|y>>>12),_(128|y>>>6&63),_(128|63&y))}return bS(p,0,g)})(_o(t)),{mtime:0});return{contentType:_S,body:i.buffer.slice(i.byteOffset,i.byteOffset+i.byteLength),estimatedSize:i.byteLength}}if(n===oi.Base64){var s=(function(u){return u&&btoa(encodeURIComponent(u).replace(/%([0-9A-F]{2})/g,((f,h)=>String.fromCharCode(parseInt(h,16)))))})(_o(t)),l=(u=>"data="+encodeURIComponent(typeof u=="string"?u:_o(u)))(s);return{contentType:"application/x-www-form-urlencoded",body:l,estimatedSize:new Blob([l]).size}}var c=_o(t);return{contentType:"application/json",body:c,estimatedSize:new Blob([c]).size}}},Zp=e=>{var t,n,i,s=B1(e);return!s||(n=e.compression,i=pc(e.url,"compression"),n!==c1.GZipJS&&i!==c1.GZipJS&&i!=="gzip")||((t=s.body)instanceof ArrayBuffer?qg(new Uint8Array(t)):ArrayBuffer.isView(t)&&qg(new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))?{url:e.url,encodedBody:s}:(wd=!0,{url:WR(e.url,"compression"),encodedBody:B1(Ie({},e,{compression:void 0,tr:void 0}))})},QR=(function(){var e=kr((function*(t){var n=_o(t.data),i=yield(function(l,c,u){return Yg.apply(this,arguments)})(n,Cn.DEBUG,{rethrow:!0});if(!i)return t;var s=yield i.arrayBuffer();return Ie({},t,{tr:{contentType:_S,body:s,estimatedSize:s.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),P1=(e,t)=>hf(e,{_:new Date().getTime().toString(),ver:Cn.JS_SDK_VERSION,compression:t}),Sd=[];Hg&&Sd.push({transport:"fetch",method(e){var t,{url:n,encodedBody:i}=Zp(e),{contentType:s,body:l,estimatedSize:c}=i??{},u=new Headers;Gt(e.headers,(function(p,g){u.append(g,p)})),s&&u.append("Content-Type",s);var f=null;if(s1){var h=new s1;f={signal:h.signal,timeout:setTimeout((()=>h.abort()),e.timeout)}}Hg(n,Ie({method:(e==null?void 0:e.method)||"GET",headers:u,keepalive:e.method==="POST"&&52428.8>(c||0),body:l,signal:(t=f)==null?void 0:t.signal},e.fetchOptions)).then((p=>p.text().then((g=>{var _={statusCode:p.status,text:g};if(p.status===200)try{_.json=JSON.parse(g)}catch(v){Ue.error(v)}e.callback==null||e.callback(_)})))).catch((p=>{Ue.error(p),e.callback==null||e.callback({statusCode:0,error:p})})).finally((()=>f?clearTimeout(f.timeout):null))}}),Gg&&Sd.push({transport:"XHR",method(e){var t=new Gg,{url:n,encodedBody:i}=Zp(e);t.open(e.method||"GET",n,!0);var{contentType:s,body:l}=i??{};Gt(e.headers,(function(c,u){t.setRequestHeader(u,c)})),s&&t.setRequestHeader("Content-Type",s),e.timeout&&(t.timeout=e.timeout),t.onreadystatechange=()=>{if(t.readyState===4){var c={statusCode:t.status,text:t.responseText};if(t.status===200)try{c.json=JSON.parse(t.responseText)}catch{}e.callback==null||e.callback(c)}},t.send(l)}}),Tr!=null&&Tr.sendBeacon&&Sd.push({transport:"sendBeacon",method(e){try{var{url:t,encodedBody:n}=Zp(e),i=hf(t,{beacon:"1"}),{contentType:s,body:l}=n??{};if(!l)return;var c=l instanceof Blob?l:new Blob([l],{type:s});Tr.sendBeacon(i,c)}catch{}}});var Sm=3e3;class JR{constructor(t,n){this.Xr=!0,this.ei=[],this.ti=ui((n==null?void 0:n.flush_interval_ms)||Sm,250,5e3,Ue.createLogger("flush interval"),Sm),this.ri=t}enqueue(t){this.ei.push(t),this.ii||this.ni()}unload(){this.si();var t=this.ei.length>0?this.oi():{},n=Object.values(t);[...n.filter((i=>i.url.indexOf("/e")===0)),...n.filter((i=>i.url.indexOf("/e")!==0))].map((i=>{this.ri(Ie({},i,{transport:"sendBeacon"}))}))}enable(){this.Xr=!1,this.ni()}ni(){var t=this;this.Xr||(this.ii=setTimeout((()=>
154{if(this.si(),this.ei.length>0){var n=this.oi(),i=function(){var l=n[s],c=new Date().getTime();l.data&&_t(l.data)&&Gt(l.data,(u=>{u.offset=Math.abs(u.timestamp-c),delete u.timestamp})),t.ri(l)};for(var s in n)i()}}),this.ti))}si(){clearTimeout(this.ii),this.ii=void 0}oi(){var t={};return Gt(this.ei,(n=>{var i,s=n,l=(s?s.batchKey:null)||s.url;Be(t[l])&&(t[l]=Ie({},s,{data:[]})),(i=t[l].data)==null||i.push(s.data)})),this.ei=[],t}}var e4=["retriesPerformedSoFar"];class t4{constructor(t){this.ai=!1,this.li=3e3,this.ei=[],this._instance=t,this.ei=[],this.ui=!0,!Be(ve)&&"onLine"in ve.navigator&&(this.ui=ve.navigator.onLine,this.hi=()=>{this.ui=!0,this.ci()},this.di=()=>{this.ui=!1},cn(ve,"online",this.hi),cn(ve,"offline",this.di))}get length(){return this.ei.length}retriableRequest(t){var{retriesPerformedSoFar:n}=t,i=aw(t,e4);Ui(n)&&(i.url=hf(i.url,{retry_count:n})),this._instance._send_request(Ie({},i,{callback:s=>{s.statusCode===200||s.statusCode>=400&&500>s.statusCode||(n??0)>=10?i.callback==null||i.callback(s):this.vi(Ie({retriesPerformedSoFar:n},i))}}))}vi(t){var n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;var i=(function(c){var u=3e3*Math.pow(2,c),f=u/2,h=Math.min(18e5,u),p=Math.random()-.5;return Math.ceil(h+p*(h-f))})(n),s=Date.now()+i;this.ei.push({retryAt:s,requestOptions:t});var l="Enqueued failed request for retry in "+i;navigator.onLine||(l+=" (Browser is offline)"),Ue.warn(l),this.ai||(this.ai=!0,this.fi())}fi(){if(this.pi&&clearTimeout(this.pi),this.ei.length===0)return this.ai=!1,void(this.pi=void 0);this.pi=setTimeout((()=>{this.ui&&this.ei.length>0&&this.ci(),this.fi()}),this.li)}ci(){var t=Date.now(),n=[],i=this.ei.filter((l=>t>l.retryAt||(n.push(l),!1)));if(this.ei=n,i.length>0)for(var{requestOptions:s}of i)this.retriableRequest(s)}unload(){for(var{requestOptions:t}of(this.pi&&(clearTimeout(this.pi),this.pi=void 0),this.ai=!1,Be(ve)||(this.hi&&(ve.removeEventListener("online",this.hi),this.hi=void 0),this.di&&(ve.removeEventListener("offline",this.di),this.di=void 0)),this.ei))try{this._instance._send_request(Ie({},t,{transport:"sendBeacon"}))}catch(n){Ue.error(n)}this.ei=[]}}class n4{constructor(t){this.gi=()=>{var n,i,s,l;this.mi||(this.mi={});var c=this.scrollElement(),u=this.scrollY(),f=c?Math.max(0,c.scrollHeight-c.clientHeight):0,h=u+((c==null?void 0:c.clientHeight)||0),p=(c==null?void 0:c.scrollHeight)||0;this.mi.lastScrollY=Math.ceil(u),this.mi.maxScrollY=Math.max(u,(n=this.mi.maxScrollY)!==null&&n!==void 0?n:0),this.mi.maxScrollHeight=Math.max(f,(i=this.mi.maxScrollHeight)!==null&&i!==void 0?i:0),this.mi.lastContentY=h,this.mi.maxContentY=Math.max(h,(s=this.mi.maxContentY)!==null&&s!==void 0?s:0),this.mi.maxContentHeight=Math.max(p,(l=this.mi.maxContentHeight)!==null&&l!==void 0?l:0)},this._instance=t}get yi(){return this._instance.config.scroll_root_selector}getContext(){return this.mi}resetContext(){var t=this.mi;return setTimeout(this.gi,0),t}startMeasuringScrollPosition(){cn(ve,"scroll",this.gi,{capture:!0}),cn(ve,"scrollend",this.gi,{capture:!0}),cn(ve,"resize",this.gi)}scrollElement(){if(!this.yi)return ve==null?void 0:ve.document.documentElement;var t=_t(this.yi)?this.yi:[this.yi];for(var n of t){var i=ve==null?void 0:ve.document.querySelector(n);if(i)return i}}bi(t){var n=t==="y"?"scrollTop":"scrollLeft";if(this.yi){var i=this.scrollElement();return i&&i[n]||0}return ve?t==="y"?ve.scrollY||ve.pageYOffset||ve.document.documentElement.scrollTop||0:ve.scrollX||ve.pageXOffset||ve.document.documentElement.scrollLeft||0:0}scrollY(){return this.bi("y")}scrollX(){return this.bi("x")}}var r4=e=>uS(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties);class U1{constructor(t,n,i,s){this.wi=l=>{var c=this.xi();if(!c||c.sessionId!==l){var u={sessionId:l,props:this.ki(this._instance)};this.Si.register({[pm]:u})}},this._instance=t,this.Ci=n,this.Si=i,this.ki=s||r4,this.Ci.onSessionId(this.wi)}xi(){return this.Si.props[pm]}getSetOnceProps(){var t,n=(t=this.xi())==null?void 0:t.props;return n?"r"in n?dS(n):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var t={};return Gt(Tv(this.getSetOnceProps()),((n,i)=>{i==="$current_url"&&(i="url"),t["$session_entry_"+Kg(i)]=n})),t}}class Mv{constructor(){this.Ii={}}on(t,n){return this.Ii[t]||(this.Ii[t]=[]),this.Ii[t].push(n),()=>{this.Ii[t]=this.Ii[t].filter((i=>i!==n))}}emit(t,n){for(var i of this.Ii[t]||[])i(n);for(var s of this.Ii["*"]||[])s(t,n)}}var zl=rn("[SessionId]");class F1{on(t,n){return this.Ti.on(t,n)}constructor(t,n,i){var s;if(this.Ei=null,this.Mi=[],this.Ri=void 0,this.Pi=!1,this.Ti=new Mv,this.O
154i=(h,p)=>!(!Ui(h)||!Ui(p))&&Math.abs(h-p)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===$i)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.qt=t.config,this.Si=t.persistence,this.Li=void 0,this.Ai=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Fi=n||Aa,this.Ni=i||Aa;var l=this.qt.persistence_name||this.qt.token;if(this._sessionTimeoutMs=1e3*ui(this.qt.session_idle_timeout_seconds||1800,60,36e3,zl.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Di(),this.$i="ph_"+l+"_window_id",this.qi="ph_"+l+"_primary_window_exists",this.ji()){var c=Un.F(this.$i),u=Un.F(this.qi);c&&!u?this.Li=c:Un.q(this.$i),Un.N(this.qi,!0)}if((s=this.qt.bootstrap)!=null&&s.sessionID)try{var f=(h=>{var p=this.qt.bootstrap.sessionID.replace(/-/g,"");if(p.length!==32)throw new Error("Not a valid UUID");if(p[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(p.substring(0,12),16)})();this.Bi(this.qt.bootstrap.sessionID,new Date().getTime(),f)}catch(h){zl.error("Invalid sessionID in bootstrap",h)}this.Hi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return Be(this.Mi)&&(this.Mi=[]),this.Mi.push(t),this.Ai&&t(this.Ai,this.Li),()=>{this.Mi=this.Mi.filter((n=>n!==t))}}ji(){return this.qt.persistence!=="memory"&&!this.Si.Tr&&Un.O()}Ui(t){t!==this.Li&&(this.Li=t,this.ji()&&Un.N(this.$i,t))}zi(){return this.Li?this.Li:this.ji()?Un.F(this.$i):null}Vi(t){var n=this.Ei;return!cr(n)&&!cr(t)&&5e3>Math.abs(t-n)}Bi(t,n,i){var s=n!==this._sessionActivityTimestamp,l=!(t!==this.Ai||i!==this._sessionStartTimestamp);this._sessionStartTimestamp=i,this._sessionActivityTimestamp=n,this.Ai=t,l&&!s||l&&this.Vi(n)||(this.Ei=n,this.Si.register({[vo]:[n,t,i]}))}Wi(){var t,n=(t=this.qt)==null?void 0:t.persistence_save_debounce_ms;return Ui(n)&&n>0}Gi(){this.Wi()?this.Si.refreshKey(vo):(this.Si.flush(),this.Si.load())}Zi(){var t;if(!cr(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.Ei){this.Gi();var[,n,i]=this.Qi();n===this.Ai&&i===this._sessionStartTimestamp&&(this.Ei=this._sessionActivityTimestamp,this.Si.register({[vo]:[this._sessionActivityTimestamp,(t=this.Ai)!==null&&t!==void 0?t:null,this._sessionStartTimestamp]}),this.Si.flush())}}Ji(){var[t]=this.Qi(),n=Ui(t)?t:0,i=Ui(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(n,i)}Ki(t){return this.Gi(),this.Oi(t,this.Ji())}Qi(){var t=this.Si.props[vo];return _t(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.Ei=null,clearTimeout(this.Yi),this.Yi=void 0,this.Bi(null,null,null)}destroy(){this.Pi=!0,this.Zi(),clearTimeout(this.Yi),this.Yi=void 0,this.Ri&&ve&&(ve.removeEventListener($d,this.Ri,{capture:!1}),this.Ri=void 0),this.Mi=[]}Hi(){this.Ri=()=>{this.Zi(),this.ji()&&Un.q(this.qi)},cn(ve,$d,this.Ri,{capture:!1})}checkAndGetSessionAndWindowId(t,n){if(t===void 0&&(t=!1),n===void 0&&(n=null),this.qt.cookieless_mode===$i)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=n||new Date().getTime(),[,s,l]=this.Qi(),c=this.Ji(),u=this.zi(),f=Ui(l)&&Math.abs(i-l)>864e5,h=!1,p=!1,g=!s,_=s,v=!g&&!t&&this.Oi(i,c);v&&((v=this.Ki(i))||zl.info("cross-tab refresh kept the session alive",{sessionId:s}),[,s,l]=this.Qi()),g||v||f?(s=this.Fi(),u=this.Ni(),zl.info("new session ID generated",{sessionId:s,windowId:u,changeReason:{noSessionId:g,activityTimeout:v,sessionPastMaximumLength:f}}),l=i,h=!0):(u||(u=this.Ni(),h=!0),(p=s!==_)&&(zl.info("adopted cross-tab session id",{sessionId:s,windowId:u}),h=!0));var E=Ui(c)&&t&&!f?c:i,y=Ui(l)?l:new Date().getTime();this.Ui(u),this.Bi(s,E,y),t||this.Di();var S={noSessionId:g,activityTimeout:v,sessionPastMaximumLength:f,crossTabAdoption:p};return h&&this.Mi.forEach((x=>x(s,u,S))),{sessionId:s,windowId:u,sessionStartTimestamp:y,changeReason:h?S:void 0,lastActivityTimestamp:c}}Di(){this.Pi||(clearTimeout(this.Yi),this.Yi=setTimeout((()=>
154{if(!this.Pi)if(this.Ki(new Date().getTime())){var t=this.Ai;this.resetSessionId(),this.Ti.emit("forcedIdleReset",{idleSessionId:t})}else this.Di()}),1.1*this.sessionTimeoutMs))}}var yS=function(e,t){if(!e)return!1;var n=e.userAgent;if(n&&d1(n,t))return!0;try{var i=e==null?void 0:e.userAgentData;if(i!=null&&i.brands&&i.brands.some((s=>d1(s==null?void 0:s.brand,t))))return!0}catch{}return!!e.webdriver},Zd=function(e,t){if(!(function(n){try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function j1(e,t,n){return _o({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}var ES={exact:(e,t)=>t.some((n=>e.some((i=>n===i)))),is_not:(e,t)=>t.every((n=>e.every((i=>n!==i)))),regex:(e,t)=>t.some((n=>e.some((i=>Zd(n,i))))),not_regex:(e,t)=>t.every((n=>e.every((i=>!Zd(n,i))))),icontains:(e,t)=>t.map(Ju).some((n=>e.map(Ju).some((i=>n.includes(i))))),not_icontains:(e,t)=>t.map(Ju).every((n=>e.map(Ju).every((i=>!n.includes(i))))),gt:(e,t)=>t.some((n=>{var i=parseFloat(n);return!isNaN(i)&&e.some((s=>i>parseFloat(s)))})),lt:(e,t)=>t.some((n=>{var i=parseFloat(n);return!isNaN(i)&&e.some((s=>i<parseFloat(s)))}))},Ju=e=>e.toLowerCase();function xS(e,t){return!e||Object.entries(e).every((n=>{var[i,s]=n,l=t==null?void 0:t[i];if(Be(l)||cr(l))return!1;var c=[String(l)],u=ES[s.operator];return!!u&&u(s.values,c)}))}var km="custom",$1="i.posthog.com",i4=/^\/static\//;class a4{constructor(t){this.Xi={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,n=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+$1,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Xi[this.apiHost]||(this.Xi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":km),this.Xi[this.apiHost]}en(t){if(i4.test(t)){var n=this.instance.config.asset_host;if(typeof n=="string")return n.trim().replace(/\/$/,"")||void 0}}endpointFor(t,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),t==="ui")return this.uiHost+n;if(t==="flags")return this.flagsApiHost+n;if(t==="assets"){var i=this.en(n);if(i)return""+i+n}if(this.region===km)return this.apiHost+n;var s=$1+n;switch(t){case"assets":return"https://"+this.region+"-assets."+s;case"api":return"https://"+this.region+"."+s}}}var zt=rn("[Surveys]"),Tm="seenSurvey_",s4=[qp.Popover,qp.Widget,qp.API],o4={ignoreConditions:!1,ignoreDelay:!1,displayType:ym.Popover},l4=rn("[PostHog ExternalIntegrations]"),c4={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class u4{constructor(t){this._instance=t}ur(t,n){var i;(i=Xe.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,t,(s=>{if(s)return l4.error("failed to load script",s);n()}))}startIfEnabledOrStop(){var t=this,n=function(c){var u,f,h;!s||(u=Xe.__PosthogExtensions__)!=null&&(u=u.integrations)!=null&&u[c]||t.ur(c4[c],(()=>{var p;(p=Xe.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[c])==null||p.start(t._instance)})),!s&&(f=Xe.__PosthogExtensions__)!=null&&(f=f.integrations)!=null&&f[c]&&((h=Xe.__PosthogExtensions__)==null||(h=h.integrations)==null||(h=h[c])==null||h.stop())};for(var[i,s]of Object.entries((l=this._instance.config.integrations)!==null&&l!==void 0?l:{})){var l;n(i)}}}var ro,ic={},Xp=0,Am=()=>{},H1='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Bl="Surveys module not available",G1="sanitize_properties is deprecated. Use before_send instead",wS="Invalid value for property_denylist config: ",ho="posthog",SS=!XR&&(sr==null?void 0:sr.indexOf("MSIE"))===-1&&(sr==null?void 0:sr.indexOf("Mozilla"))===-1,q1=e=>{var t;return Ie({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:gR(Fe==null?void 0:Fe.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:Am,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:Pn&&Qt(Pn==null?void 0:Pn.search)&&Pn.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,strict_script_versioning:!1,enable_recording_console_log:void 0,secure_cookie:(ve==null||(t=ve.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){Ue.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:bm,before_send:void 0,request_queue_config:{flush_interval_ms:Sm},error_tracking:{},_onCapture:Am},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:TR,ignore_text_selection:!0}
154:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:n&&n>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n),detect_google_search_app:!(!n||"2026-05-30">n)}))(e))},d4=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"]],Y1=e=>{var t={};for(var[n,i]of d4)Be(e[n])||(t[i]=e[n]);var s=Wt({},t,e),l=e.__preview_external_dependency_versioned_paths;return Be(l)||(Be(e.strict_script_versioning)&&(s.strict_script_versioning=!!l),Qt(l)&&Be(e.asset_host)&&(s.asset_host=l)),_t(e.property_blacklist)&&(Be(e.property_denylist)?s.property_denyl
154ist=e.property_blacklist:_t(e.property_denylist)?s.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ue.error(wS+e.property_denylist)),s};class f4{constructor(){this.__forceAllowLocalhost=!1}get tn(){return this.__forceAllowLocalhost}set tn(t){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class jr{rn(t,n){if(t){var i=this.nn.indexOf(t);i!==-1&&this.nn.splice(i,1)}return this.nn.push(n),n.initialize==null||n.initialize(),n}sn(){return this.config.cookieless_mode===$i||this.config.cookieless_mode===ss&&this.consent.isRejected()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new f4,this.an=!1,this.version=Cn.LIB_VERSION,this.ln=new Mv,this.nn=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=q1(),this.SentryIntegration=LR,this.sentryIntegration=i=>(function(s,l){var c=aS(s,l);return{name:iS,processEvent:u=>c(u)}})(this,i),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.un=!1,this.hn=null,this.cn=null,this.dn=null,this.scrollManager=new n4(this),this.pageViewManager=new N1(this),this.rateLimiter=new GR(this),this.requestRouter=new a4(this),this.consent=new xR(this),this.externalIntegrations=new u4(this);var n=(t=jr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(i,s,l)=>{var c=Qt(i)?{[i]:s}:i;this.setPersonProperties(c),l==null||l({})},set_once:(i,s,l)=>{var c=Qt(i)?{[i]:s}:i;this.setPersonProperties(void 0,c),l==null||l({})}},this.on("eventCaptured",(i=>Ue.info('send "'+(i==null?void 0:i.event)+'"',i)))}init(t,n,i){if(i&&i!==ho){var s,l=(s=ic[i])!==null&&s!==void 0?s:new jr;return l._init(t,n,i),ic[i]=l,ic[ho][i]=l,l}return this._init(t,n,i)}_init(t,n,i){var s,l;n===void 0&&(n={});var c=Qt(t)?t.trim():"";if(!c)return Ue.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},n.debug=this.vn(n.debug),this.fn=n,this.pn=[],n.person_profiles?this.cn=n.person_profiles:n.process_person&&(this.cn=n.process_person);var u=q1(n.defaults),f=Y1(n),h=Wt({},u,f,{name:i,token:c});sn(u.rageclick)&&sn(f.rageclick)&&(h.rageclick=Wt({},u.rageclick,f.rageclick)),this.set_config(h),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:oi.GZipJS;var p=this.gn();this.persistence=new Gp(this.config,p),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Gp(Ie({},this.config,{persistence:"sessionStorage"}),p,!1);var g=Ie({},this.persistence.props),_=Ie({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.mn=new JR((F=>this.yn(F)),this.config.request_queue_config),this.bn=new t4(this),this.__request_queue=[];var v=this.sn();if(v||(this.sessionManager=new F1(this),this.sessionPropsManager=new U1(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this._n(v)}),0)):(Ue.info("Initializing extensions synchronously"),this._n(v)),Cn.DEBUG=Cn.DEBUG||this.config.debug,Cn.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:n,thisC:Ie({},this.config),p:g,s:_}),!this.config.identity_distinct_id||(s=n.bootstrap)!=null&&s.distinctID||(n.bootstrap=Ie({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((l=n.bootstrap)==null?void 0:l.distinctID)!==void 0){var E=n.bootstrap.distinctID,y=this.get_distinct_id(),S=this.persistence.get_property(Vr);if(n.bootstrap.isIdentifiedID&&y!=null&&y!==E&&S===Js)this.identify(E);else if(n.bootstrap.isIdentifiedID&&y!=null&&y!==E&&S===eo)Ue.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var x=this.config.get_device_id(Aa()),C=n.bootstrap.isIdentifiedID?x:E;this.persistence.set_property(Vr,n.bootstrap.isIdentifiedID?eo:Js),this.register({distinct_id:E,$device_id:C})}}if(v)this.register_once({distinct_id:Ku,$device_id:null},"");else if(!this.get_distinct_id()){var N=this.config.get_device_id(Aa());this.register_once({distinct_id:N,$device_id:N},""),this.persistence.set_property(Vr,Js)}return cn(ve,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(F,R){var D=F.config.segment;if(!D)return R();(function(M,L){var O=M.config.segment;if(!O)return L();var I=k=>{var q=()=>k.anonymousId()||Aa();M.config.get_device_id=q,k.id()&&(M.register({distinct_id:k.id(),$device_id:q()}),M.persistence.set_property(Vr,eo)),L()},B=O.user();"then"in B&&ji(B.then)?B.then(I):I(B)})(F,(()=>{D.register((M=>{Promise&&Promise.resolve||Hp.warn("This browser does not have Promise support, and can not use the segment integration");var L=(O,I)=>{if(!I)return O;O.event.userId||O.event.anonymousId===M.get_distinct_id()||(Hp.info("No userId set, resetting PostHog"),M.reset()),O.event.userId&&O.event.userId!==M.get_distinct_id()&&(Hp.info("UserId set, identifying with PostHog"),M.identify(O.event.userId)
154);var B=M.calculateEventProperties(I,O.event.properties);return O.event.properties=Object.assign({},B,O.event.properties),O};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:O=>L(O,O.event.event),page:O=>L(O,fo),identify:O=>L(O,Fp),screen:O=>L(O,"$screen")}})(F)).then((()=>{R()}))}))})(this,(()=>this.wn())):this.wn(),ji(this.config._onCapture)&&this.config._onCapture!==Am&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(F=>this.config._onCapture(F.event,F)))),this.config.ip&&Ue.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}_n(t){var n,i,s,l,c,u,f,h=performance.now(),p=Ie({},jr.__defaultExtensionClasses,this.config.__extensionClasses),g=[];p.featureFlags&&this.nn.push(this.featureFlags=(n=this.featureFlags)!==null&&n!==void 0?n:new p.featureFlags(this)),p.exceptions&&this.nn.push(this.exceptions=(i=this.exceptions)!==null&&i!==void 0?i:new p.exceptions(this)),p.historyAutocapture&&this.nn.push(this.historyAutocapture=new p.historyAutocapture(this)),p.tracingHeaders&&this.nn.push(this.tracingHeaders=new p.tracingHeaders(this)),p.siteApps&&this.nn.push(this.siteApps=new p.siteApps(this)),p.sessionRecording&&!t&&this.nn.push(this.sessionRecording=new p.sessionRecording(this)),this.config.disable_scroll_properties||g.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),p.autocapture&&this.nn.push(this.autocapture=new p.autocapture(this)),p.surveys&&this.nn.push(this.surveys=(s=this.surveys)!==null&&s!==void 0?s:new p.surveys(this)),p.logs&&this.nn.push(this.logs=(l=this.logs)!==null&&l!==void 0?l:new p.logs(this)),p.conversations&&this.nn.push(this.conversations=(c=this.conversations)!==null&&c!==void 0?c:new p.conversations(this)),p.productTours&&this.nn.push(this.productTours=new p.productTours(this)),p.heatmaps&&this.nn.push(this.heatmaps=new p.heatmaps(this)),p.webVitalsAutocapture&&this.nn.push(this.webVitalsAutocapture=new p.webVitalsAutocapture(this)),p.exceptionObserver&&this.nn.push(this.exceptionObserver=new p.exceptionObserver(this)),p.deadClicksAutocapture&&this.nn.push(this.deadClicksAutocapture=new p.deadClicksAutocapture(this,IR)),p.toolbar&&this.nn.push(this.toolbar=(u=this.toolbar)!==null&&u!==void 0?u:new p.toolbar(this)),p.experiments&&this.nn.push(this.experiments=(f=this.experiments)!==null&&f!==void 0?f:new p.experiments(this)),this.nn.forEach((_=>{_.initialize&&g.push((()=>{_.initialize==null||_.initialize()}))})),g.push((()=>{if(this.xn){var _=this.xn;this.xn=void 0,this.Qr(_)}})),this.kn(g,h)}kn(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout((()=>{this.kn(t,n)}),0);var i=t.shift();if(i)try{i()}catch(l){Ue.error("Error initializing extension:",l)}}var s=Math.round(performance.now()-n);this.register_for_session({[$w]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[Hw]:s}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+s+"ms)")}Qr(t){var n;if(!Fe||!Fe.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Qr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.xn=t),this.Sn=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=it(t.supportedCompression,oi.GZipJS)?oi.GZipJS:it(t.supportedCompression,oi.Base64)?oi.Base64:void 0),(n=t.analytics)!=null&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.cn?this.cn:bm}),this.nn.forEach((i=>i.onRemoteConfig==null?void 0:i.onRemoteConfig(t)))}wn(){try{this.config.loaded(this)}catch(i){Ue.critical("`loaded` function failed",i)}if(this.Cn(),this.config.internal_or_test_user_hostname&&Pn!=null&&Pn.hostname){var t=Pn.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.sn())&&this.In()}),1),this.Tn=new hS(this),this.Tn.load()}Cn(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.mn)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Vu(this.__request_queue,(t=>this.yn(t))),this.__request_queue=[],this.Cn()}_handle_unload(){var t,n,i,s;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.En()&&this.capture(Up),(n=this.logs)==null||n.flushLogs("sendBeacon"),(i=this.mn)==null||i.unload(),(s=this.bn
154)==null||s.unload()):this.En()&&this.capture(Up,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(SS?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=hf(t.url,{ip:this.config.ip?1:0}),t.headers=Ie({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,(Be(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(n=>{var i,s,l,c=Ie({},n);c.timeout=c.timeout||6e4,c.url=P1(c.url,c.compression);var u=(i=c.transport)!==null&&i!==void 0?i:"fetch",f=Sd.filter((p=>!c.disableTransport||!p.transport||!c.disableTransport.includes(p.transport))),h=(s=(l=(function(p,g){for(var _=0;p.length>_;_++)if(p[_].transport===u)return p[_]})(f))==null?void 0:l.method)!==null&&s!==void 0?s:f[0].method;if(!h)throw new Error("No available transport method");u!=="sendBeacon"&&c.data&&c.compression===oi.GZipJS&&SO&&!wd?QR(c).then((p=>{h(p)})).catch((p=>{if(u1(p))return wd=!0,void h(Ie({},c,{compression:void 0,url:P1(n.url,void 0)}));(g=>{if(!g||typeof g!="object")return!1;var _="name"in g?String(g.name):"";return u1(g)||_===sw})(p)&&(wd=!0),h(c)})):h(c)})(Ie({},t,{callback:n=>{var i,s;this.rateLimiter.checkForLimiting(n),400>n.statusCode||(i=(s=this.config).on_request_error)==null||i.call(s,n),t.callback==null||t.callback(n)}}))))}yn(t){this.bn?this.bn.retriableRequest(t):this._send_request(t)}_execute_array(t){Xp++;try{var n,i=[],s=[],l=[];Vu(t,(u=>{if(u)if(_t(n=u[0]))l.push(u);else if(ji(u))try{u.call(this)}catch(f){Ue.error("Error executing queued PostHog call",u,f)}else _t(u)&&n==="alias"?i.push(u):_t(u)&&n.indexOf("capture")!==-1&&ji(this[n])?l.push(u):s.push(u)}));var c=function(u,f){Vu(u,(function(h){try{if(_t(h[0])){var p=f;Gt(h,(function(g){p=p[g[0]].apply(p,g.slice(1))}))}else f[h[0]].apply(f,h.slice(1))}catch(g){Ue.error("Error executing queued PostHog call",h,g)}}))};c(i,this),c(s,this),c(l,this)}finally{Xp--}}push(t){if(Xp>0&&_t(t)&&Qt(t[0])){var n=jr.prototype[t[0]];ji(n)&&n.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,n,i){var s,l,c,u,f;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.mn){if(this.is_capturing())if(!Be(t)&&Qt(t)){var h=!this.config.opt_out_useragent_filter&&this._is_bot();if(!h||this.config.__preview_capture_bot_pageviews){var p=i!=null&&i.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(p==null||!p.isRateLimited){n!=null&&n.$current_url&&!Qt(n==null?void 0:n.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||i!=null&&i.Mn||Ue.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var g=new Date,_=(i==null?void 0:i.timestamp)||g,v=(i==null?void 0:i.uuid)||Aa(),E={uuid:v,event:t,properties:this.calculateEventProperties(t,n||{},_,v)};t===fo&&this.config.__preview_capture_bot_pageviews&&h&&(E.event="$bot_pageview",E.properties.$browser_type="bot"),p&&(E.properties.$lib_rate_limit_remaining_tokens=p.remainingTokens),i!=null&&i.$set&&(E.$set=i==null?void 0:i.$set);var y,S,x,C=this.Rn(i==null?void 0:i.$set_once,t!==b1,t===Fp);if(C&&(E.$set_once=C),i!=null&&i._noTruncate||(l=this.config.properties_string_max_length,c=E,u=O=>Qt(O)?O.slice(0,l):O,f=new Set,E=(function O(I,B){return I!==Object(I)?u?u(I):I:f.has(I)?void 0:(f.add(I),_t(I)?(k=[],Vu(I,(q=>{k.push(O(q))}))):(k={},Gt(I,((q,w)=>{f.has(q)||(k[w]=O(q))}))),k);var k})(c)),E.timestamp=_,Be(i==null?void 0:i.timestamp)||(E.properties.$event_time_override_provided=!0,E.properties.$event_time_override_system_time=g),t===Ql.DISMISSED||t===Ql.SENT){var N=n==null?void 0:n[Yp.SURVEY_ID],F=n==null?void 0:n[Yp.SURVEY_ITERATION];(O=>{try{var I=(B=>((k,q)=>{var w=""+Tm+q.id;return q.current_iteration&&q.current_iteration>0&&(w=""+Tm+q.id+"_"+q.current_iteration),w})(0,B))(O);if(localStorage.getItem(I))return;localStorage.setItem(I,"true")}catch(B){zt.error("Failed to persist survey seen state",B)}})({id:N,current_iteration:F}),E.$set=Ie({},E.$set,{[(y={id:N,current_iteration:F},S=t===Ql.SENT?"responded":"dismissed",x="$survey_"+S+"/"+y.id,y.current_iteration&&y.current_iteration>0&&(x="$survey_"+S+"/"+y.id+"/"+y.current_iteration),x)]:!0})}else t===Ql.SHOWN&&(E.$set=Ie({},E.$set,{[Yp.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===HR.SHOWN){var R=n==null?void 0:n[R1.TOUR_TYPE];R&&(E.$set=Ie({},E.$set,{[R1.TOUR_LAST_SEEN_DATE+"/"+R]:new Date().toISOString()}))}var D=Ie({},E.properties.$set,E.$set);if(Ca(D)||this.setPersonPropertiesForFlags(D),!mt(this.config.before_send)){var M=this.Pn(E);if(!M)return;E=M}this.ln.emit("eventCaptured",E);var L={method:"POST",url:(s=i==null?void 0:i._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:E,compression:"best-available",batchKey:i==null?void 0:i._batchKey,transport:i==null?void 0:i.transport};return!this.config.request_batching||i&&(i==null||!i._batchKey)||i!=null&&i.send_instantly?this.yn(L):this.mn.enqueue(L),E}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(n=>t(n.event,n)))}calculateEventProperties(t,n,i,s,l){if(i=i||new Date,!this.persistence||!this.sessionPersistence)return n;var c=l?void 0:this.persistence.remove_event_timer(t),u=Ie({},n);if(u.token=this.config.token,u.$config_defaults=this.config.defaults,this.sn()&&(u.$cookieless_mode=!0),t==="$snapshot"){var f=Ie({},this.persistence.properties(),this.sessionPersistence.properties());return u.distinct_id=f.distinct_id,(!Qt(u.distinct_id)&&!Xn(u.distinct_id)||Vg(u.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),u}var h,p=(function(x,C,N){var F,R,D,M;if(!sr)return{};var L,O,I,B,k,q,w,$,K,Z=x?[...Ao,...C||[]]:[],[ae,ie]=(function(U){for(var ue=0;p1.length>ue;ue++){var[de,Se]=p1[ue],je=de.exec(U),re=je&&(ji(Se)?Se(je,U):Se);if(re)return re}return["",""]})(sr),P=(L=typeof navigator<"u"?navigator:void 0)!=null&&L.brave?{brave:!0}:{},z={detectGoogleSearchApp:N},Y=Wt(Tv({$os:ae,$os_version:ie,$browser:Nw(sr,navigator.vendor,P,z),$device:g1(sr),$device_type:(I=sr,B={userAgentDataPlatform:(F=navigator)==null||(F=F.userAgentData)==null?void 0:F.platform,maxTouchPoints:(R=navigator)==null?void 0:R.maxTouchPoints,screenWidth:ve==null||(D=ve.screen)==null?void 0:D.width,screenHeight:ve==null||(M=ve.screen)==null?void 0:M.height,devicePixelRatio:ve==null?void 0:ve.devicePixelRatio},K=g1(I),K===dw||K===uw||K==="Kobo"||K==="Kindle Fire"||K===Sw?So:K===uc||K===xo||K===dc||K===Xg?"Console":K===hw?"Wearable":K?Cr:(B==null?void 0:B.userAgentDataPlatform)==="Android"&&((k=B==null?void 0:B.maxTouchPoints)!==null&&k!==void 0?k:0)>0?600>Math.min((q=B==null?void 0:B.screenWidth)!==null&&q!==void 0?q:0,(w=B==null?void 0:B.screenHeight)!==null&&w!==void 0?w:0)/(($=B==null?void 0:B.devicePixelRatio)!==null&&$!==void 0?$:1)?Cr:So:"Desktop"),$timezone:fS(),$timezone_offset:FR()}),{$current_url:gc(Pn==null?void 0:Pn.href,Z,mc),$host:Pn==null?void 0:Pn.host,$pathname:Pn==null?void 0:Pn.pathname,$raw_user_agent:sr.length>1e3?sr.substring(0,997)+"...":sr,$browser_version:jO(sr,navigator.vendor,P,z),$browser_language:O1(),$browser_language_prefix:(O=O1(),typeof O=="string"?O.split("-")[0]:void 0),$screen_height:ve==null?void 0:ve.screen.height,$screen_width:ve==null?void 0:ve.screen.width,$viewport_height:ve==null?void 0:ve.innerHe
154ight,$viewport_width:ve==null?void 0:ve.innerWidth,$lib:Cn.LIB_NAME,$lib_version:Cn.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return Cn.SDK_DIST_CHANNEL&&(Y.$sdk_dist_channel=Cn.SDK_DIST_CHANNEL),Y})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app);if(this.sessionManager){var{sessionId:g,windowId:_}=this.sessionManager.checkAndGetSessionAndWindowId(l,i.getTime());u.$session_id=g,u.$window_id=_}this.sessionPropsManager&&Wt(u,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Wt(u,this.sessionRecording.sdkDebugProperties),u.$sdk_debug_retry_queue_size=(v=this.bn)==null?void 0:v.length}catch(x){u.$sdk_debug_error_capturing_properties=String(x)}if(this.requestRouter.region===km&&(u.$lib_custom_api_host=this.config.api_host),h=t!==fo||l?t!==Up||l?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(i):this.pageViewManager.doPageView(i,s),u=Wt(u,h),t===fo&&Fe&&(u.title=Fe.title),!Be(c)){var E=i.getTime()-c;u.$duration=parseFloat((E/1e3).toFixed(3))}sr&&this.config.opt_out_useragent_filter&&(u.$browser_type=this._is_bot()?"bot":"browser"),(u=Wt({},p,this.persistence.properties(),this.sessionPersistence.properties(),u)).$is_identified=this._isIdentified(),_t(this.config.property_denylist)?Gt(this.config.property_denylist,(function(x){delete u[x]})):Ue.error(wS+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var y=this.config.sanitize_properties;y&&(Ue.error(G1),u=y(u,t));var S=this.On();return u.$process_person_profile=S,S&&!l&&this.Ln("_calculate_event_properties"),u}Rn(t,n,i){var s;if(n===void 0&&(n=!0),i===void 0&&(i=!1),!this.persistence||!this.On()||this.an&&!i)return t;var l=this.persistence.get_initial_props(),c=(s=this.sessionPropsManager)==null?void 0:s.getSetOnceProps(),u=Wt({},l,c||{},t||{}),f=this.config.sanitize_properties;return f&&(Ue.error(G1),u=f(u,"$set_once")),n&&(this.an=!0),Ca(u)?void 0:u}register(t,n){var i;(i=this.persistence)==null||i.register(t,n)}register_once(t,n,i){var s;(s=this.persistence)==null||s.register_once(t,n,i)}register_for_session(t){var n;(n=this.sessionPersistence)==null||n.register(t)}unregister(t){var n;(n=this.persistence)==null||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)==null||n.unregister(t)}An(t,n){this.register({[t]:n})}getFeatureFlag(t,n){var i;return(i=this.featureFlags)==null?void 0:i.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var i;return(i=this.featureFlags)==null?void 0:i.getFeatureFlagResult(t,n)}isFeatureEnabled(t,n){var i;return(i=this.featureFlags)==null?void 0:i.isFeatureEnabled(t,n)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,n,i){var s;(s=this.featureFlags)==null||s.updateFlags(t,n,i)}updateEarlyAccessFeatureEnrollment(t,n,i){var s;(s=this.featureFlags)==null||s.updateEarlyAccessFeatureEnrollment(t,n,i)}getEarlyAccessFeatures(t,n,i){var s;return n===void 0&&(n=!1),(s=this.featureFlags)==null?void 0:s.getEarlyAccessFeatures(t,n,i)}on(t,n){return this.ln.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Bl}),()=>{})}onSessionId(t){var n,i;return(n=(i=this.sessionManager)==null?void 0:i.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:Bl})}getActiveMatchingSurveys(t,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:Bl})}renderSurvey(t,n){var i;(i=this.surveys)==null||i.renderSurvey(t,n)}displaySurvey(t,n){var i;n===void 0&&(n=o4),(i=this.surveys)==null||i.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)==null||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,i;return(n=(i=this.surveys)==null?void 0:i.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:Bl}}canRenderSurveyAsync(t,n){var i,s;return n===void 0&&(n=!1),(i=(s=this.surveys)==null?void 0:s.canRenderSurveyAsync(t,n))!==null&&i!==void 0?i:Promise.resolve({visible:!1,disabledReason:Bl})}Fn(t){return!t||Vg(t)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):t===Ku?(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
154ot a hardcoded string.'),!1)}identify(t,n,i){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(Xn(t)&&(t=t.toString(),Ue.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Fn(t)&&this.Ln("posthog.identify")){var s=this.get_distinct_id();this.register({$user_id:t}),this.get_property(Pd)||this.register_once({$had_persisted_distinct_id:!0,$device_id:s},""),t!==s&&t!==this.get_property(Kl)&&(this.unregister(Kl),this.register({distinct_id:t}));var l,c=(this.persistence.get_property(Vr)||Js)===Js;t!==s&&c?(this.persistence.set_property(Vr,eo),this.setPersonPropertiesForFlags({$set:n||{},$set_once:i||{}},!1),this.capture(Fp,{distinct_id:t,$anon_distinct_id:s},{$set:n||{},$set_once:i||{}}),this.dn=j1(t,n,i),(l=this.featureFlags)==null||l.setAnonymousDistinctId(s)):(n||i)&&this.setPersonProperties(n,i),t!==s&&(this.reloadFeatureFlags(),this.unregister(tc))}}setPersonProperties(t,n){if((t||n)&&this.Ln("posthog.setPersonProperties")){var i=j1(this.get_distinct_id(),t,n);this.dn!==i?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}}),this.dn=i):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,n,i){if(t&&n){var s=this.getGroups(),l=s[t]!==n;if(l&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Ie({},s,{[t]:n})}),l||i){var c={$group_type:t,$group_key:n};i&&(c.$group_set=i),this.capture(b1,c)}i&&this.setGroupPropertiesForFlags({[t]:i}),l&&!i&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n){var i;n===void 0&&(n=!0),(i=this.featureFlags)==null||i.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.resetPersonPropertiesForFlags(t)}setGroupPropertiesForFlags(t,n){var i;n===void 0&&(n=!0),this.Ln("posthog.setGroupPropertiesForFlags")&&((i=this.featureFlags)==null||i.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(t)}reset(t){var n,i,s,l,c,u,f,h;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var p,g=this.get_property(Pd),_=this.get_property(os);if(this.consent.reset(),(n=this.persistence)==null||n.clear(),(i=this.sessionPersistence)==null||i.clear(),Be(_)||(p=this.persistence)==null||p.register({[os]:_}),(s=this.surveys)==null||s.reset(),(l=this.Tn)==null||l.stop(),(c=this.featureFlags)==null||c.reset(),(u=this.conversations)==null||u.reset(),(f=this.persistence)==null||f.set_property(Vr,Js),(h=this.sessionManager)==null||h.resetSessionId(),this.dn=null,this.config.cookieless_mode===$i)this.register_once({distinct_id:Ku,$device_id:null},"");else{var v=this.config.get_device_id(Aa());this.register_once({distinct_id:v,$device_id:t?v:g},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(t,n){var i;this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(i=this.conversations)==null||i.Nn()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.Dn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:n,sessionStartTimestamp:i}=this.sessionManager.checkAndGetSessionAndWindowId(!0),s=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n);if(t!=null&&t.withTimestamp&&i){var l,c=(l=t.timestampLookBack)!==null&&l!==void 0?l:10;if(!i)return s;s+="?t="+Math.max(Math.floor((new Date().getTime()-i)/1e3)-c,0)}return s}alias(t,n){return t===this.get_property(Lw)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.Ln("posthog.alias")?(Be(n)&&(n=this.get_distinct_id()),t!==n?(this.An(Kl,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var n=Ie({},this.config);if(sn(t)){var i,s,l,c,u,f,h,p,g,_,v;Wt(this.config,Y1(t));var E=this.gn();(i=this.persistence)==null||i.update_config(this.config,n,E),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new Gp(Ie({},this.config,{persistence:"sessionStorage"}),E,!1);var y=this.vn(this.config.debug);di(y)&&(this.config.debug=y),di(this.config.debug)&&(this.config.debug?(Cn.DEBUG=!0,Ht.O()&&Ht.N("ph_debug",!0),Ue.info("set_config",{config:t,oldConfig:n,newConfig:Ie({},this.config)})):(Cn.DEBUG=!1,Ht.O()&&Ht.q("ph_debug"))),(s=this.exceptionObserver)==null||s.onConfigChange(),(l=this.exceptions)==null||l.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(u=this.tracingHeaders)==null||u.startIfEnabledOrStop(),(f=this.autocapture)==null||f.startIfEnabled(),(h=this.heatmaps)==null||h.startIfEnabled(),(p=this.exceptionObserver)==null||p.startIfEnabledOrStop(),(g=this.deadClicksAutocapture)==null||g.startIfEnabledOrStop(),(_=this.surveys)==null||_.loadIfEnabled(),this.$n(),(v=this.externalIntegrations)==null||v.startIfEnabledOrStop()}}_overrideSDKInfo(t,n){Cn.LIB_NAME=t,Cn.LIB_VERSION=n}startSessionRecording(t){var n,i,s,l,c,u=t===!0,f={sampling:u||!(t==null||!t.sampling),linked_flag:u||!(t==null||!t.linked_flag),url_trigger:u||!(t==null||!t.url_trigger),event_trigger:u||!(t==null||!t.event_trigger)};Object.values(f).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),f.sampling&&((i=this.sessionRecording)==null||i.overrideSampling()),f.linked_flag&&((s=this.sessionRecording)==null||s.overrideLinkedFlag()),f.url_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("url")),f.event_trigger&&((c=this.sessionRecording)==null||c.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,n){if(this.exceptions){var i=new Error("PostHog syntheticException"),s=this.exceptions.buildProperties(t,{handled:!0,syntheticException:i});return this.exceptions.sendExceptionEvent(Ie({},s,n))}}addExceptionStep(t,n){var i;(i=this.exceptions)==null||i.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)==null||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)==null?void 0:n.logger)!==null&&t!==void 0?t:jr.qn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,i;return(n=(i=this.toolbar)==null?void 0:i.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)==null?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)==null?void 0:n.props[t]}toString(){var t,n=(t=this.config.name)!==null&&t!==void 0?t:ho;return n!==ho&&(n=ho+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)==null?void 0:t.get_property(Vr))===eo||((n=this.sessionPersistence)==null?void 0:n.get_property(Vr))===eo}On(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===bm&&!this._isIdentified()&&Ca(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[Kl])&&((n=this.persistence)==null||(n=n.props)==null||!n[Fd]))}En(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.On()||this.Ln("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Ln("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Ln(t){return this.config.person_profiles==="never"?(Ue.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.An(Fd,!0),!0)}gn(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==ss)}$n(){var t,n,i,s,l=this.gn();return((t=this.persistence)==null?void 0:t.Tr)!==l&&((i=this.persistence)==null||i.set_disabled(l)),((n=this.sessionPersistence)==null?void 0:n.Tr)!==l&&((s=this.sessionPersistence)==null||s.set_disabled(l)),l}opt_in_capturing(t){var n;if(this.config.cookieless_mode!==$i){if(this.sn()){var i,s,l,c,u;this.reset(!0),(i=this.sessionManager)==null||i.destroy(),(s=this.pageViewM
154anager)==null||s.destroy(),this.sessionManager=new F1(this),this.pageViewManager=new N1(this),this.persistence&&(this.sessionPropsManager=new U1(this,this.sessionManager,this.persistence));var f,h=(l=(c=this.config.__extensionClasses)==null?void 0:c.sessionRecording)!==null&&l!==void 0?l:(u=jr.__defaultExtensionClasses)==null?void 0:u.sessionRecording;h&&(this.sessionRecording=this.rn(this.sessionRecording,new h(this)),this.Sn&&((f=this.sessionRecording)==null||f.onRemoteConfig==null||f.onRemoteConfig(this.Sn)))}var p,g;this.consent.optInOut(!0),this.$n(),this.Cn(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==ss&&((p=this.surveys)==null||p.loadIfEnabled()),(Be(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((g=t==null?void 0:t.captureEventName)!==null&&g!==void 0?g:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.In()}else Ue.warn(H1)}opt_out_capturing(){var t,n,i;this.config.cookieless_mode!==$i?(this.config.cookieless_mode===ss&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.$n(),this.config.cookieless_mode===ss&&(this.register({distinct_id:Ku,$device_id:null}),(t=this.sessionRecording)==null||t.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.In(),this.Cn())):Ue.warn(H1)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===$i||(this.config.cookieless_mode===ss?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.$n()}_is_bot(){return Tr?yS(Tr,this.config.custom_blocked_useragents):void 0}In(){Fe&&(Fe.visibilityState==="visible"?this.un||(this.un=!0,this.capture(fo,{title:Fe.title},{send_instantly:!0}),this.hn&&(Fe.removeEventListener(jd,this.hn),this.hn=null)):this.hn||(this.hn=this.In.bind(this),cn(Fe,jd,this.hn)))}debug(t){t===!1?(ve==null||ve.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ve==null||ve.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Kr(){var t,n,i,s,l,c,u=this.fn||{};return"advanced_disable_flags"in u?!!u.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ue.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(i="advanced_disable_decide",s=Ue,l=(n="advanced_disable_flags")in(t=u)&&!mt(t[n]),c=i in t&&!mt(t[i]),l?t[n]:!!c&&(s&&s.warn("Config field '"+i+"' is deprecated. Please use '"+n+"' instead. The old field will be removed in a future major version."),t[i]))}Pn(t){if(mt(this.config.before_send))return t;var n=_t(this.config.before_send)?this.config.before_send:[this.config.before_send],i=t;for(var s of n){if(i=s(i),mt(i)){var l="Event '"+t.event+"' was rejected in beforeSend function";return NO(t.event)?Ue.warn(l+". This can cause unexpected behavior."):Ue.info(l),null}i.properties&&!Ca(i.properties)||Ue.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return i}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,i){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(i)})}vn(t){var n=di(t)&&!t,i=Ht.O()&&Ht.A("ph_debug")==="true";return!n&&(!!i||t)}}jr.__defaultExtensionClasses={},jr.qn={trace:ro=()=>{},debug:ro,info:ro,warn:ro,error:ro,fatal:ro},(function(e,t){for(var n=0;t.length>n;n++)e.prototype[t[n]]=hR(e.prototype[t[n]])})(jr,["identify"]);class K1{constructor(t){this.disabled=t===!1;var n=sn(t)?t:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(t,n,i){if(this.disabled)return!1;var s=this.clicks[this.clicks.length-1];if(s&&Math.abs(t-s.x)+Math.abs(n-s.y)<this.thresholdPx&&this.timeoutMs>i-s.timestamp){if(this.clicks.push({x:t,y:n,timestamp:i}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:n,timestamp:i}];return!1}}var Wp="$copy_autocapture",Qp=rn("[AutoCapture]");function Jp(e,t){return t.length>e?t.slice(0,e)+"...":t}function h4(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Na(t));return t}function p4(e,t){var n,i,{e:s,maskAllElementAttributes:l,maskAllText:c,elementAttributeIgnoreList:u,elementsC
154hainAsString:f}=t;if(!Na(e))return{props:{}};for(var h=[e],p=e;p.parentNode&&!Ar(p,"body");)if(Vw(p.parentNode))h.push(p.parentNode.host),p=p.parentNode.host;else{if(!Na(p.parentNode))break;h.push(p.parentNode),p=p.parentNode}var g,_,v=[],E={},y=!1,S=!1;if(Gt(h,(R=>{var D=_m(R);if(Ar(R,"a")){var M=R.getAttribute("href");y=D&&!!M&&nc(M)&&M}it(Gd(R),"ph-no-capture")&&(S=!0),v.push((function(O,I,B,k){var q=O.tagName.toLowerCase(),w={tag_name:q};Cv.indexOf(q)>-1&&!B&&(w.$el_text=q.toLowerCase()==="a"||q.toLowerCase()==="button"?Jp(1024,T1(O)):Jp(1024,hc(O)));var $=Gd(O);$.length>0&&(w.classes=$.filter((function(ie){return ie!==""}))),Gt(O.attributes,(function(ie){var P;if((!eS(O)||["name","id","class","aria-label"].indexOf(ie.name)!==-1)&&(k==null||!k.includes(ie.name))&&!I&&nc(ie.value)&&(!Qt(P=ie.name)||P.substring(0,10)!=="_ngcontent"&&P.substring(0,7)!=="_nghost")){var z=ie.value;ie.name==="class"&&(z=Av(z).join(" ")),w["attr__"+ie.name]=Jp(1024,z)}}));for(var K=1,Z=1,ae=O;ae=h4(ae);)K++,ae.tagName===O.tagName&&Z++;return w.nth_child=K,w.nth_of_type=Z,w})(R,l,c,u));var L=(function(O){if(!_m(O))return{};var I={};return Gt(O.attributes,(function(B){if(B.name&&B.name.indexOf("data-ph-capture-attribute")===0){var k=B.name.replace("data-ph-capture-attribute-",""),q=B.value;k&&q&&nc(q)&&(I[k]=q)}})),I})(R);Wt(E,L)})),S)return{props:{},explicitNoCapture:S};if(c||(v[0].$el_text=Ar(e,"a")||Ar(e,"button")?T1(e):hc(e)),y){var x,C;v[0].attr__href=y;var N=(x=qd(y))==null?void 0:x.host,F=ve==null||(C=ve.location)==null?void 0:C.host;N&&F&&N!==F&&(g=y)}return{props:Wt({$event_type:s.type,$ce_version:1},f?{}:{$elements:v},{$elements_chain:(_=v,(function(R){return R.map((D=>{var M,L,O="";if(D.tag_name&&(O+=D.tag_name),D.attr_class)for(var I of(D.attr_class.sort(),D.attr_class))O+="."+I.replace(/"/g,"");var B=Ie({},D.text?{text:D.text}:{},{"nth-child":(M=D.nth_child)!==null&&M!==void 0?M:0,"nth-of-type":(L=D.nth_of_type)!==null&&L!==void 0?L:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),k={};return xd(B).sort(((q,w)=>{var[$]=q,[K]=w;return $.localeCompare(K)})).forEach((q=>{var[w,$]=q;return k[A1(w.toString())]=A1($.toString())})),(O+=":")+xd(k).map((q=>{var[w,$]=q;return w+'="'+$+'"'})).join("")})).join(";")})((function(R){return R.map((D=>{var M,L,O={text:(M=D.$el_text)==null?void 0:M.slice(0,400),tag_name:D.tag_name,href:(L=D.attr__href)==null?void 0:L.slice(0,2048),attr_class:MR(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return xd(D).filter((I=>{var[B]=I;return B.indexOf("attr__")===0})).forEach((I=>{var[B,k]=I;return O.attributes[B]=k})),O}))})(_)))},(n=v[0])!=null&&n.$el_text?{$el_text:(i=v[0])==null?void 0:i.$el_text}:{},g&&s.type==="click"?{$external_click_url:g}:{},E)}}var Pl=rn("[ExceptionAutocapture]"),g4=rn("[TracingHeaders]"),es=rn("[Web Vitals]"),V1=9e5,Z1="disabled",X1="lazy_loading",Ul="awaiting_config",ed="missing_config";rn("[SessionRecording]"),rn("[SessionRecording]");var Cm="[SessionRecording]",zi=rn(Cm),m4=rn("[Heatmaps]");function W1(e){return sn(e)&&"clientX"in e&&"clientY"in e&&Xn(e.clientX)&&Xn(e.clientY)}var eg=rn("[Product Tours]"),tg=e=>{var t;return!e.config.disable_product_tours&&!((t=e.persistence)==null||!t.get_property(xv))},v4=["$set_once","$set"],wa=rn("[SiteApps]"),Q1="Error while initializing PostHog app with config id ";function io(e,t,n){if(mt(e))return!1;switch(n){case"exact":return e===t;case"contains":var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(i,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class b4{constructor(t){this.jn=new Mv,this.Bn=(n,i)=>this.Hn(n,i)&&this.Un(n,i)&&this.zn(n,i)&&this.Vn(n,i),this.Hn=(n,i)=>i==null||!i.event||(n==null?void 0:n.event)===(i==null?void 0:i.event),this._instance=t,this.Wn=new Set,this.Gn=new Set}init(){var t,n;Be((t=this._instance)==null?void 0:t._addCaptureHook)||(n=this._instance)==null||n._addCaptureHook(((i,s)=>{this.on(i,s)}))}register(t){var n,i;if(!Be((n=this._instance)==null?void 0:n._addCaptureHook)&&(t.forEach((c=>{var u,f;(u=this.Gn)==null||u.add(c),(f=c.steps)==null||f.forEach((h=>{var p;(p=this.Wn)==null||p.add((h==null?void 0:h.event)||"")}))})),(i=this._instance)!=null&&i.autocapture)){var s,l=new Set;t.forEach((c=>{var u;(u=c.steps)==null||u.forEach((f=>{f!=null&&f.selector&&l.add(f==null?void 0:f.selector)}))}
154)),(s=this._instance)==null||s.autocapture.setElementSelectors(l)}}on(t,n){var i;n!=null&&t.length!=0&&(this.Wn.has(t)||this.Wn.has(n==null?void 0:n.event))&&this.Gn&&((i=this.Gn)==null?void 0:i.size)>0&&this.Gn.forEach((s=>{this.Zn(n,s)&&this.jn.emit("actionCaptured",s.name)}))}Qn(t){this.onAction("actionCaptured",(n=>t(n)))}Zn(t,n){if((n==null?void 0:n.steps)==null)return!1;for(var i of n.steps)if(this.Bn(t,i))return!0;return!1}onAction(t,n){return this.jn.on(t,n)}Un(t,n){if(n!=null&&n.url){var i,s=t==null||(i=t.properties)==null?void 0:i.$current_url;if(!s||typeof s!="string"||!io(s,n.url,n.url_matching||"contains"))return!1}return!0}zn(t,n){return!!this.Jn(t,n)&&!!this.Kn(t,n)&&!!this.Yn(t,n)}Jn(t,n){var i;if(n==null||!n.href)return!0;var s=this.Xn(t);if(s.length>0)return s.some((u=>io(u.href,n.href,n.href_matching||"exact")));var l,c=(t==null||(i=t.properties)==null?void 0:i.$elements_chain)||"";return!!c&&io((l=c.match(/(?::|")href="(.*?)"/))?l[1]:"",n.href,n.href_matching||"exact")}Kn(t,n){var i;if(n==null||!n.text)return!0;var s=this.Xn(t);if(s.length>0)return s.some((h=>io(h.text,n.text,n.text_matching||"exact")||io(h.$el_text,n.text,n.text_matching||"exact")));var l,c,u,f=(t==null||(i=t.properties)==null?void 0:i.$elements_chain)||"";return!!f&&(l=(function(h){for(var p,g=[],_=/(?::|")text="(.*?)"/g;!mt(p=_.exec(h));)g.includes(p[1])||g.push(p[1]);return g})(f),c=n.text,u=n.text_matching||"exact",l.some((h=>io(h,c,u))))}Yn(t,n){var i,s;if(n==null||!n.selector)return!0;var l=t==null||(i=t.properties)==null?void 0:i.$element_selectors;if(l!=null&&l.includes(n.selector))return!0;var c=(t==null||(s=t.properties)==null?void 0:s.$elements_chain)||"";if(n.selector_regex&&c)try{return new RegExp(n.selector_regex).test(c)}catch{return!1}return!1}Xn(t){var n;return(t==null||(n=t.properties)==null?void 0:n.$elements)==null?[]:t==null?void 0:t.properties.$elements}Vn(t,n){return n==null||!n.properties||n.properties.length===0||xS(n.properties.reduce(((i,s)=>{var l=_t(s.value)?s.value.map(String):s.value!=null?[String(s.value)]:[];return i[s.key]={values:l,operator:s.operator||"exact"},i}),{}),t==null?void 0:t.properties)}}class _4{constructor(t){this._instance=t,this.es=new Map,this.ts=new Map,this.rs=new Map}ns(t,n){return!!t&&xS(t.propertyFilters,n==null?void 0:n.properties)}ss(t,n){var i=new Map;return t.forEach((s=>{var l;(l=s.conditions)==null||(l=l[n])==null||(l=l.values)==null||l.forEach((c=>{if(c!=null&&c.name){var u=i.get(c.name)||[];u.push(s.id),i.set(c.name,u)}}))})),i}os(t,n,i){var s=(i===Ml.Activation?this.es:this.ts).get(t),l=[];return this.ls((c=>{l=c.filter((u=>s==null?void 0:s.includes(u.id)))})),l.filter((c=>{var u,f=(u=c.conditions)==null||(u=u[i])==null||(u=u.values)==null?void 0:u.find((h=>h.name===t));return this.ns(f,n)}))}register(t){var n;Be((n=this._instance)==null?void 0:n._addCaptureHook)||(this.us(t),this.hs(t))}hs(t){var n=t.filter((i=>{var s,l;return((s=i.conditions)==null?void 0:s.actions)&&((l=i.conditions)==null||(l=l.actions)==null||(l=l.values)==null?void 0:l.length)>0}));n.length!==0&&(this.cs==null&&(this.cs=new b4(this._instance),this.cs.init(),this.cs.Qn((i=>{this.onAction(i)}))),n.forEach((i=>{var s,l,c,u,f;i.conditions&&(s=i.conditions)!=null&&s.actions&&(l=i.conditions)!=null&&(l=l.actions)!=null&&l.values&&((c=i.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length)>0&&((u=this.cs)==null||u.register(i.conditions.actions.values),(f=i.conditions)==null||(f=f.actions)==null||(f=f.values)==null||f.forEach((h=>{if(h&&h.name){var p=this.rs.get(h.name);p&&p.push(i.id),this.rs.set(h.name,p||[i.id])}})))})))}us(t){var n,i=t.filter((l=>{var c,u;return((c=l.conditions)==null?void 0:c.events)&&((u=l.conditions)==null||(u=u.events)==null||(u=u.values)==null?void 0:u.length)>0})),s=t.filter((l=>{var c,u;return((c=l.conditions)==null?void 0:c.cancelEvents)&&((u=l.conditions)==null||(u=u.cancelEvents)==null||(u=u.values)==null?void 0:u.length)>0}));i.length===0&&s.length===0||((n=this._instance)==null||n._addCaptureHook(((l,c)=>{this.onEvent(l,c)})),this.es=this.ss(t,Ml.Activation),this.ts=this.ss(t,Ml.Cancellation))}onEvent(t,n){var i,s=this.le(),l=this.ds(),c=this.vs(),u=((i=this._instance)==null||(i=i.persistence)==null?void 0:i.props[l])||[];if(c===t&&n&&u.length>0){var f,h;s.info("event matched, removing item from activated items",{event:t,eventPayload:n,existingActivatedItems:u});var p=(n==null||(f=n.properties)==null?void 0:f.$survey_id)||(n==null||(h=n.properties)==null?void 0:h.$product_tour_id);if(p){var g=u.indexOf(p);0>g||(u.splice(g,1),this.fs(u))}}else{if(this.ts.has(t)){var _=this.os(t,n,Ml.Cancellation);_.length>0&&(s.info("cancel event matched, cancelling items",{event:t,itemsToCancel:_.map((E=>E.id))}),_.forEach((E=>{var y=u.indexOf(E.id);0>y||u.splice(y,1),this.ps(E.id)})),this.fs(u))}if(this.es.has(t)){s.info("event name matched",{event:t,eventPayload:n,items:this.es.get(t)});var v=this.os(t,n,Ml.Activation);this.fs(u.concat(v.map((E=>E.id))||[]))}}}onAction(t){var n,i=this.ds(),s=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[i])||[];this.rs.has(t)&&this.fs(s.concat(this.rs.get(t)||[]))}fs(t){var n=this.le(),i=[...new Set(t)].filter((s=>!this.gs(s)));n.info("updating activated items",{activatedItems:i}),this.ys(i)}getActivatedIds(){var t,n=this.ds();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[]}
154getEventToItemsMap(){return this.es}bs(){return this.cs}}class y4 extends _4{constructor(t){super(t)}ds(){return dm}vs(){return Ql.SHOWN}ls(t){var n;(n=this._instance)==null||n.getSurveys(t)}ps(t){var n;(n=this._instance)==null||n.cancelPendingSurvey(t)}le(){return zt}ys(t){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[dm]:t})}gs(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var ng="SDK is not enabled or survey functionality is not yet loaded",J1="Disabled. Not loading surveys.",E4=ve!=null&&ve.location?Yd(ve.location.hash,"__posthog")||Yd(location.hash,"state"):null,eE="_postHogToolbarParams",tE=rn("[Toolbar]"),Bn=rn("[FeatureFlags]"),ts=rn("[FeatureFlags]",{debugEnabled:!0}),rg=`" failed. Feature flags didn't load in time.`,nE=e=>{for(var t={},n=0;e.length>n;n++)t[e[n]]=!0;return t},rE=e=>{var t={};for(var[n,i]of xd(e||{}))i&&(t[n]=i);return t},Bi=rn("[Error tracking]"),iE="Refusing to render web experiment since the viewer is a likely bot",x4={icontains:(e,t)=>!!ve&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ve&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ve&&Zd(t.href,e),not_regex:(e,t)=>!!ve&&!Zd(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Hn{get qt(){return this._instance.config}constructor(t){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(i){i===void 0&&(i=!1),n.getWebExperiments((s=>{Hn._s("retrieved web experiments from the server"),n.ws=new Map,s.forEac
154h((l=>{if(l.feature_flag_key){var c;n.ws&&(Hn._s("setting flag key ",l.feature_flag_key," to web experiment ",l),(c=n.ws)==null||c.set(l.feature_flag_key,l));var u=n._instance.getFeatureFlag(l.feature_flag_key);Qt(u)&&l.variants[u]&&n.xs(l.name,u,l.variants[u].transforms)}else if(l.variants)for(var f in l.variants){var h=l.variants[f];Hn.ks(h)&&n.xs(l.name,f,h.transforms)}}))}),i)},this._instance=t,this._instance.onFeatureFlags((i=>{this.onFeatureFlags(i)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Hn._s(iE);else if(!this.qt.disable_web_experiments){if(mt(this.ws))return this.ws=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Hn._s("applying feature flags",t),t.forEach((n=>{var i;if(this.ws&&(i=this.ws)!=null&&i.has(n)){var s,l=this._instance.getFeatureFlag(n),c=(s=this.ws)==null?void 0:s.get(n);l&&c!=null&&c.variants[l]&&this.xs(c.name,l,c.variants[l].transforms)}}))}}previewWebExperiment(){var t=Hn.getWindowLocation();if(t!=null&&t.search){var n=pc(t==null?void 0:t.search,"__experiment_id"),i=pc(t==null?void 0:t.search,"__experiment_variant");n&&i&&(Hn._s("previewing web experiments "+n+" && "+i),this.getWebExperiments((s=>{this.Ss(parseInt(n),i,s)}),!1,!0))}}loadIfEnabled(){this.qt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,i){if(this.qt.disable_web_experiments&&!i)return t([]);var s=this._instance.get_property("$web_experiments");if(s&&!n)return t(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.qt.token),method:"GET",callback:l=>t(l.statusCode===200&&l.json&&l.json.experiments||[])})}Ss(t,n,i){var s=i.filter((l=>l.id===t));s&&s.length>0&&(Hn._s("Previewing web experiment ["+s[0].name+"] with variant ["+n+"]"),this.xs(s[0].name,n,s[0].variants[n].transforms))}static ks(t){return!mt(t.conditions)&&Hn.Cs(t)&&Hn.Is(t)}static Cs(t){var n;if(mt(t.conditions)||mt((n=t.conditions)==null?void 0:n.url))return!0;var i,s,l,c=Hn.getWindowLocation();return!!c&&((i=t.conditions)==null||!i.url||x4[(s=(l=t.conditions)==null?void 0:l.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,c))}
154static getWindowLocation(){return ve==null?void 0:ve.location}static Is(t){var n;if(mt(t.conditions)||mt((n=t.conditions)==null?void 0:n.utm))return!0;var i=sS();if(i.utm_source){var s,l,c,u,f,h,p,g,_=(s=t.conditions)==null||(s=s.utm)==null||!s.utm_campaign||((l=t.conditions)==null||(l=l.utm)==null?void 0:l.utm_campaign)==i.utm_campaign,v=(c=t.conditions)==null||(c=c.utm)==null||!c.utm_source||((u=t.conditions)==null||(u=u.utm)==null?void 0:u.utm_source)==i.utm_source,E=(f=t.conditions)==null||(f=f.utm)==null||!f.utm_medium||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_medium)==i.utm_medium,y=(p=t.conditions)==null||(p=p.utm)==null||!p.utm_term||((g=t.conditions)==null||(g=g.utm)==null?void 0:g.utm_term)==i.utm_term;return _&&E&&y&&v}return!1}static _s(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;n>s;s++)i[s-1]=arguments[s];Ue.info("[WebExperiments] "+t,i)}xs(t,n,i){this._is_bot()?Hn._s(iE):n!=="control"?i.forEach((s=>{if(s.selector){var l;Hn._s("applying transform of variant "+n+" for experiment "+t+" ",s);var c=(l=document)==null?void 0:l.querySelectorAll(s.selector);c==null||c.forEach((u=>{var f=u;s.html&&(f.innerHTML=s.html),s.css&&f.setAttribute("style",s.css)}))}})):Hn._s("Control variants leave the page unmodified.")}_is_bot(){return Tr&&this._instance?yS(Tr,this.qt.custom_blocked_useragents):void 0}}var Fr=rn("[Conversations]"),ns="Conversations not available yet.",pf={featureFlags:class{constructor(e){this.Ts=!1,this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this.Os=!1,this.Ls=!1,this.As=!1,this._instance=e,this.featureFlagEventHandlers=[]}get qt(){return this._instance.config}get Si(){return this._instance.persistence}Fs(e){return this._instance.get_property(e)}Ns(){var e,t;return(e=(t=this.Si)==null?void 0:t.Mr(this.qt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}Ds(){return!!this.Ns()&&(this.As||this.Ms||(this.As=!0,Bn.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}$s(){var e,t=(e=this.qt.evaluation_contexts)!==null&&e!==void 0?e:this.qt.evaluation_environments;return!this.qt.evaluation_environments||this.qt.evaluation_contexts||this.Ls||(Bn.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Ls=!0),t!=null&&t.length?t.filter((n=>{var i=n&&typeof n=="string"&&n.trim().length>0;return i||Bn.error("Invalid evaluation context found:",n,"Expected non-empty string"),i})):[]}qs(){return this.$s().length>0}js(){var e=this.qt.flag_keys;if(!Be(e)){if(_t(e))return e.filter((t=>{var n=t&&typeof t=="string"&&t.trim().length>0;return n||Bn.error("Invalid flag key found:",t,"Expected non-empty string"),n}));Bn.error("Invalid flag_keys found:",e,"Expected array of non-empty strings")}}initialize(){var e,t,{config:n}=this._instance,i=(e=(t=n.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(i).length){var s,l,c=(s=(l=n.bootstrap)==null?void 0:l.featureFlagPayloads)!==null&&s!==void 0?s:{},u=Object.keys(i).filter((h=>!!i[h])).reduce(((h,p)=>(h[p]=i[p]||!1,h)),{}),f=Object.keys(c).filter((h=>u[h])).reduce(((h,p)=>(c[p]&&(h[p]=c[p]),h)),{});this.receivedFeatureFlags({featureFlags:u,featureFlagPayloads:f})}}updateFlags(e,t,n){var i=n!=null&&n.merge?this.getFlagVariants():{},s=n!=null&&n.merge?this.getFlagPayloads():{},l=Ie({},i,e),c=Ie({},s,t),u={};for(var[f,h]of Object.entries(l)){var p=typeof h=="string";u[f]={key:f,enabled:!!p||!!h,variant:p?h:void 0,reason:void 0,metadata:Be(c==null?void 0:c[f])?void 0:{id:0,version:void 0,description:void 0,payload:c[f]}}}this.receivedFeatureFlags({flags:u})}get hasLoadedFlags(){return this.Es}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this.Fs(om),t=this.Fs(Fi),n=this.Fs(uo);if(!n&&!t)return e||{};var i=Wt({},e||{}),s=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(var l of s){var c,u,f=i[l],h=t==null?void 0:t[l],p=Be(h)?(c=f==null?void 0:f.enabled)!==null&&c!==void 0&&c:!!h,g=Be(h)?f.variant:typeof h=="string"?h:void 0,_=n==null?void 0:n[l],v=Ie({},f,{enabled:p,variant:p?g??(f==null?void 0:f.variant):void 0});p!==(f==null?void 0:f.enabled)&&(v.original_enabled=f==null?void 0:f.enabled),g!==(f==null?void 0:f.variant)&&(v.original_variant=f==null?void 0:f.variant),_&&(v.metadata=Ie({},f==null?void 0:f.metadata,{payload:_,original_payload:f==null||(u=f.metadata)==null?void 0:u.payload})),i[l]=v}return this.Ts||(Bn.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:i}
154),this.Ts=!0),i}getFlagVariants(){var e=this.Fs(bo),t=this.Fs(Fi);if(!t)return e||{};for(var n=Wt({},e),i=Object.keys(t),s=0;i.length>s;s++)n[i[s]]=t[i[s]];return this.Ts||(Bn.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.Ts=!0),n}getFlagPayloads(){var e=this.Fs(lm),t=this.Fs(uo);if(!t)return e||{};for(var n=Wt({},e||{}),i=Object.keys(t),s=0;i.length>s;s++)n[i[s]]=t[i[s]];return this.Ts||(Bn.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.Ts=!0),n}reloadFeatureFlags(){this.Rs||this.qt.advanced_disable_feature_flags||this.Bs||(this._instance.ln.emit("featureFlagsReloading",!0),this.Bs=setTimeout((()=>{this.Hs()}),5))}Us(){clearTimeout(this.Bs),this.Bs=void 0}ensureFlagsLoaded(){this.Es||this.Ms||this.Bs||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.Rs=e}Hs(e){var t;if(this.Us(),!this._instance.Kr())if(this.Ms)this.Ps=!0;else{var n=this.qt.token,i=this.Fs(Pd),s={token:n,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Ie({},((t=this.Si)==null?void 0:t.get_initial_props())||{},this.Fs(Xl)||{}),group_properties:this.Fs(as),timezone:fS()};cr(i)||Be(i)||(s.$device_id=i),(e!=null&&e.disableFlags||this.qt.advanced_disable_feature_flags)&&(s.disable_flags=!0),this.qs()&&(s.evaluation_contexts=this.$s());var l=this.js();Be(l)||(s.flag_keys=l);var c=!!this.qt.advanced_only_evaluate_survey_feature_flags,u=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.qt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Ms=!0,this._instance._send_request({method:"POST",url:u,data:s,compression:this.qt.disable_compression?void 0:oi.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback:f=>{var h,p,g,_=!0;if(f.statusCode===200&&(this.Ps||(this.$anon_distinct_id=void 0),_=!1),this.Ms=!1,!s.disable_flags||this.Ps){this.Os=!_;var v=[];f.error?f.error instanceof Error?v.push(f.error.name==="AbortError"?"timeout":"connection_error"):v.push("unknown_error"):f.statusCode!==200&&v.push("api_error_"+f.statusCode),(h=f.json)!=null&&h.errorsWhileComputingFlags&&v.push("errors_while_computing_flags");var E,y=!((p=f.json)==null||(p=p.quotaLimited)==null||!p.includes("feature_flags"));y&&v.push("quota_limited"),(g=this.Si)==null||g.register({[hm]:v}),y?Bn.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(s.disable_flags||this.receivedFeatureFlags((E=f.json)!==null&&E!==void 0?E:{},_,{partialResponse:c}),this.Ps&&(this.Ps=!1,this.Hs()))}}})}}getFeatureFlag(e,t){var n;if(t===void 0&&(t={}),!t.fresh||this.Os)if(this.Es||this.getFlags()&&this.getFlags().length>0){if(!this.Ds()){var i=this.getFeatureFlagResult(e,t);return(n=i==null?void 0:i.variant)!==null&&n!==void 0?n:i==null?void 0:i.enabled}}else Bn.warn('getFeatureFlag for key "'+e+rg)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t==null?void 0:t.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.Os)if(this.Es||this.getFlags()&&this.getFlags().length>0){if(!this.Ds()){var n=this.getFlagVariants(),i=e in n,s=n[e],l=this.getFlagPayloads()[e],c=String(s),u=this.Fs(cm)||void 0,f=this.Fs(fc)||void 0,h=this.Fs(tc)||{};if(this.qt.advanced_feature_flags_dedup_per_session){var p,g=this._instance.get_session_id(),_=this.Fs(fm);g&&g!==_&&(h={},(p=this.Si)==null||p.register({[tc]:h,[fm]:g}))}if((t.send_event||!("send_event"in t))&&(!(e in h)||!h[e].includes(c))){var v,E,y,S,x,C,N,F,R,D;_t(h[e])?h[e].push(c):h[e]=[c],(v=this.Si)==null||v.register({[tc]:h});var M=this.getFeatureFlagDetails(e),L=[...(E=this.Fs(hm))!==null&&E!==void 0?E:[]];Be(s)&&L.push("flag_missing");var O={$feature_flag:e,$feature_flag_response:s,$feature_flag_payload:l||null,$feature_flag_request_id:u,$feature_flag_evaluated_at:f,$feature_flag_bootstrapped_response:((y=this.qt.bootstrap)==null||(y=y.featureFlags)==null?void 0:y[e])||null,$feature_flag_bootstrapped_payload:((S=this.qt.bootstrap)==null||(S=S.featureFlagPayloads)==null?void 0:S[e])||null,$used_bootstrap_value:!this.Os};Be(M==null||(x=M.metadata)==null?void 0:x.version)||(O.$feature_flag_version=M.metadata.version);var I,B=(C=M==null||(N=M.reason)==null?void 0:N.description)!==null&&C!==void 0?C:M==null||(F=M.reason)==null?void 0:F.code;B&&(O.$feature_flag_reason=B),M!=null&&(R=M.metadata)!=null&&R.id&&(O.$feature_flag_id=M.metadata.id),Be(M==null?void 0:M.original_variant)&&Be(M==null?void 0:M.original_enabled)||(O.$feature_flag_original_response=Be(M.original_variant)?M.original_enabled:M.original_variant),M!=null&&(D=M.metadata)!=null&&D.original_payload&&(O.$feature_flag_original_payload=M==null||(I=M.metadata)==null?void 0:I.original_payload),L.length&&(O.$feature_flag_error=L.join(",")),this._instance.capture("$feature_flag_called",O)}if(i){var k=l;if(!Be(l))try{k=JSON.parse(l)}catch{}return{key:e,enabled:!!s,variant:typeof s=="string"?s:void 0,payload:k}}}}else Bn.warn('getFeatureFlagResult for key "'+e+rg)}getRemoteConfigPayload(e,t){var n=this.qt.token,i={distinct_id:this._instance.get_distinct_id(),token:n};this.qs()&&(i.evaluation_contexts=this.$s());var s=this.js();Be(s)||(i.flag_keys=s),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:i,compression:this.qt.disable_compression?void 0:oi.Base64,timeout:this.qt.feature_flag_request_timeout_ms,callback(l){var c,u=(c=l.json)==null?void 0:c.featureFlagPayloads;t((u==null?void 0:u[e])||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.Os){if(this.Es||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(e,t);return Be(n)?void 0:!!n}Bn.warn('isFeatureEnabled for key "'+e+rg)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}
154receivedFeatureFlags(e,t,n){if(this.Si){this.Es=!0;var i=this.getFlagVariants(),s=this.getFlagPayloads(),l=this.getFlagsWithDetails();(function(c,u,f,h,p,g){f===void 0&&(f={}),h===void 0&&(h={}),p===void 0&&(p={});var _=(L=>{var O=L.flags;return O?(L.featureFlags=Object.fromEntries(Object.keys(O).map((I=>{var B;return[I,(B=O[I].variant)!==null&&B!==void 0?B:O[I].enabled]}))),L.featureFlagPayloads=Object.fromEntries(Object.keys(O).filter((I=>O[I].enabled)).filter((I=>{var B;return(B=O[I].metadata)==null?void 0:B.payload})).map((I=>{var B;return[I,(B=O[I].metadata)==null?void 0:B.payload]})))):Bn.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),L})(c),v=_.flags,E=_.featureFlags,y=_.featureFlagPayloads;if(E){var S=c.requestId,x=c.evaluatedAt;if(_t(E)){Bn.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var C={};if(E)for(var N=0;E.length>N;N++)C[E[N]]=!0;u&&u.register({[Ed]:E,[bo]:C})}else{var F=E,R=y,D=v;if(g!=null&&g.partialResponse)F=Ie({},f,F),R=Ie({},h,R),D=Ie({},p,D);else if(c.errorsWhileComputingFlags)if(v){var M=new Set(Object.keys(v).filter((L=>{var O;return!((O=v[L])!=null&&O.failed)})));F=Ie({},f,Object.fromEntries(Object.entries(F).filter((L=>{var[O]=L;return M.has(O)})))),R=Ie({},h,Object.fromEntries(Object.entries(R||{}).filter((L=>{var[O]=L;return M.has(O)})))),D=Ie({},p,Object.fromEntries(Object.entries(D||{}).filter((L=>{var[O]=L;return M.has(O)}))))}else F=Ie({},f,F),R=Ie({},h,R),D=Ie({},p,D);u&&u.register(Ie({[Ed]:Object.keys(rE(F)),[bo]:F||{},[lm]:R||{},[om]:D||{}},S?{[cm]:S}:{},x?{[fc]:x}:{}))}}})(e,this.Si,i,s,l,n),t||(this.As=!1),this.zs(t)}}override(e,t){t===void 0&&(t=!1),Bn.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.Si)return Bn.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.Si.unregister(Fi),this.Si.unregister(uo),this.zs(),ts.info("All overrides cleared");if(_t(e)){var t=nE(e);return this.Si.register({[Fi]:t}),this.zs(),ts.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var n,i=e;if(this.Ts=!!((n=i.suppressWarning)!==null&&n!==void 0&&n),"flags"in i){if(i.flags===!1)this.Si.unregister(Fi),ts.info("Flag overrides cleared");else if(i.flags){if(_t(i.flags)){var s=nE(i.flags);this.Si.register({[Fi]:s})}else this.Si.register({[Fi]:i.flags});ts.info("Flag overrides set",{flags:i.flags})}}return"payloads"in i&&(i.payloads===!1?(this.Si.unregister(uo),ts.info("Payload overrides cleared")):i.payloads&&(this.Si.register({[uo]:i.payloads}),ts.info("Payload overrides set",{payloads:i.payloads}))),void this.zs()}if(e&&typeof e=="object")return this.Si.register({[Fi]:e}),this.zs(),ts.info("Flag overrides set",{flags:e});Bn.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Es){var{flags:t,flagVariants:n}=this.Vs();e(t,n)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var i,s=(this.Fs(Zl)||[]).find((f=>f.flagKey===e)),l={["$feature_enrollment/"+e]:t},c={$feature_flag:e,$feature_enrollment:t,$set:l};s&&(c.$early_access_feature_name=s.name),n&&(c.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",c),this.setPersonPropertiesForFlags(l,!1);var u=Ie({},this.getFlagVariants(),{[e]:t});(i=this.Si)==null||i.register({[Ed]:Object.keys(rE(u)),[bo]:u}),this.zs()}getEarlyAccessFeatures(e,t,n){t===void 0&&(t=!1);var i=this.Fs(Zl),s=n?"&"+n.map((l=>"stage="+l)).join("&"):"";if(i&&!t)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.qt.token+s),method:"GET",callback:l=>{var c,u;if(l.json){var f=l.json.earlyAccessFeatures;return(c=this.Si)==null||c.unregister(Zl),(u=this.Si)==null||u.register({[Zl]:f}),e(f)}}})}Vs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((n=>t[n])),flagVariants:Object.keys(t).filter((n=>t[n])).reduce(((n,i)=>(n[i]=t[i],n)),{})}}zs(e){var{flags:t,flagVariants:n}=this.Vs();
154this.featureFlagEventHandlers.forEach((i=>i(t,n,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.Fs(Xl)||{},i=(e==null?void 0:e.$set)||(e!=null&&e.$set_once?{}:e),s=e==null?void 0:e.$set_once,l={};if(s)for(var c in s)({}).hasOwnProperty.call(s,c)&&(c in n||(l[c]=s[c]));this._instance.register({[Xl]:Ie({},n,l,i)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(e){e===void 0&&(e=!0),this._instance.unregister(Xl),e&&this._instance.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var n=this.Fs(as)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((i=>{n[i]=Ie({},n[i],e[i]),delete e[i]})),this._instance.register({[as]:Ie({},n,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.Fs(as)||{};this._instance.register({[as]:Ie({},t,{[e]:{}})})}else this._instance.unregister(as)}reset(){this.Es=!1,this.Ms=!1,this.Rs=!1,this.Ps=!1,this.Os=!1,this.$anon_distinct_id=void 0,this.Us(),this.Ts=!1}}},w4={sessionRecording:class{get qt(){return this._instance.config}get Si(){return this._instance.persistence}get started(){var e;return!((e=this.Ws)==null||!e.isStarted)}get status(){var e,t;return this.Gs===Ul||this.Gs===ed?this.Gs:(e=(t=this.Ws)==null?void 0:t.status)!==null&&e!==void 0?e:this.Gs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.Gs=Z1,this.Zs=void 0,this._instance=e,!this._instance.sessionManager)throw zi.error("started without valid sessionManager"),new Error(Cm+" started without valid sessionManager. This is a bug.");if(this.qt.cookieless_mode===$i)throw new Error(Cm+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get Qs(){var e,t=!((e=this._instance.get_property(os))==null||!e.enabled),n=!this.qt.disable_session_recording,i=this.qt.disable_session_recording||this._instance.consent.isOptedOut();return ve&&t&&n&&!i}startIfEnabledOrStop(e){var t;if(!this.Qs||(t=this.Ws)==null||!t.isStarted){var n=!Be(Object.assign)&&!Be(Array.from);this.Qs&&n?(this.Js(e),zi.info("starting")):(this.Gs=Z1,this.stopRecording())}}Js(e){var t,n,i;this.Qs&&(this.Gs!==Ul&&this.Gs!==ed&&(this.Gs=X1),Xe!=null&&(t=Xe.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(n=Xe.__PosthogExtensions__)!=null&&n.initSessionRecording?this.Ks(e):(i=Xe.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,this.Ys,(s=>{if(s)return zi.error("could not load recorder",s);this.Ks(e)})))}stopRecording(){var e,t;(e=this.Zs)==null||e.call(this),this.Zs=void 0,(t=this.Ws)==null||t.stop()}Xs(){var e,t;(e=this.Zs)==null||e.call(this),this.Zs=void 0,(t=this.Ws)==null||t.discard()}eo(){var e,t;(e=this.Si)==null||e.unregister(wv),(t=this.Si)==null||t.unregister(zw)}ro(e,t){if(mt(e))return null;var n,i=Xn(e)?e:parseFloat(e);return typeof(n=i)!="number"||!Number.isFinite(n)||0>n||n>1?(zi.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):i}io(e){if(this.Si){var t,n,i=this.Si,s=()=>{var l,c=e.sessionRecording===!1?void 0:e.sessionRecording,u=this.ro((l=this.qt.session_recording)==null?void 0:l.sampleRate,"session_recording.sampleRate"),f=this.ro(c==null?void 0:c.sampleRate,"remote config sampleRate"),h=u??f;mt(h)&&this.eo();var p=c==null?void 0:c.minimumDurationMilliseconds;i.register({[os]:Ie({cache_timestamp:Date.now(),enabled:!!c},c,{networkPayloadCapture:Ie({capturePerformance:e.capturePerformance},c==null?void 0:c.networkPayloadCapture),canvasRecording:{enabled:c==null?void 0:c.recordCanvas,fps:c==null?void 0:c.canvasFps,quality:c==null?void 0:c.canvasQuality},sampleRate:h,minimumDurationMilliseconds:Be(p)?null:p,endpoint:c==null?void 0:c.endpoint,triggerMatchType:c==null?void 0:c.triggerMatchType,masking:c==null?void 0:c.masking,urlTriggers:c==null?void 0:c.urlTriggers,version:c==null?void 0:c.version,triggerGroups:c==null?void 0:c.triggerGroups})})};s(),(t=this.Zs)==null||t.call(this),this.Zs=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(s)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.io(e),void this.Xs()):(this.io(e),void this.startIfEnabledOrStop()):(this.Gs===Ul&&(this.Gs=ed,zi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var n;t===void 0&&(t="log"),(n=this.Ws)!=null&&n.log?this.Ws.log(e,t):zi.warn("log called before recorder was ready")}get Ys(){var e,t,n=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(os);return(n==null||(t=n.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}no(){var e,t,n=this._instance.get_property(os);if(!n)return!1;try{t=typeof n=="object"?n:JSON.parse(n)}catch(s){return zi.warn("persisted remote config for session recording is invali
154d and will be ignored",s),!1}var i=(e=t.cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-i}Ks(e){var t,n;if((t=Xe.__PosthogExtensions__)==null||!t.initSessionRecording)return zi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[Gw]:!0});if(this.Ws||(this.Ws=(n=Xe.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.Ws._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.no())return this.Gs===ed||this.Gs===Ul?void 0:(this.Gs=Ul,zi.info("persisted remote config is stale, requesting fresh config before starting"),void new hS(this._instance).load());this.Gs=X1,this.Ws.start(e)}onRRwebEmit(e){var t;(t=this.Ws)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Ws||(t=this.Si)==null||t.register({[Pw]:!0}),(e=this.Ws)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Ws||(t=this.Si)==null||t.register({[Bw]:!0}),(e=this.Ws)==null||e.overrideSampling()}overrideTrigger(e){var t,n;this.Ws||(n=this.Si)==null||n.register({[e==="url"?Uw:Fw]:!0}),(t=this.Ws)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.Ws)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!((n=this.Ws)==null||!n.tryAddCustomEvent(e,t))}}},S4={autocapture:class{constructor(e){this.so=!1,this.oo=null,this.ao=!1,this.instance=e,this.rageclicks=new K1(e.config.rageclick),this.lo=null}initialize(){this.startIfEnabled()}get qt(){var e,t,n=sn(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(e=n.url_allowlist)==null?void 0:e.map((i=>new RegExp(i))),n.url_ignorelist=(t=n.url_ignorelist)==null?void 0:t.map((i=>new RegExp(i))),n}uo(){if(this.isBrowserSupported()){if(ve&&Fe){var e=n=>{n=n||(ve==null?void 0:ve.event);try{this.ho(n)}catch(i){Qp.error("Failed to capture event",i)}};if(cn(Fe,"submit",e,{capture:!0}),cn(Fe,"change",e,{capture:!0}),cn(Fe,"click",e,{capture:!0}),this.qt.capture_copied_text){var t=n=>{n=n||(ve==null?void 0:ve.event);try{this.ho(n,Wp)}catch(i){Qp.error("Failed to capture copy/cut event",i)}};cn(Fe,"copy",t,{capture:!0}),cn(Fe,"cut",t,{capture:!0})}}}else Qp.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.so&&(this.uo(),this.so=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.ao=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[em]:!!e.autocapture_opt_out}),this.oo=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.lo=e}getElementSelectors(e){var t,n=[];return(t=this.lo)==null||t.forEach((i=>{var s=Fe==null?void 0:Fe.querySelectorAll(i);s==null||s.forEach((l=>{e===l&&n.push(i)}))})),n}get isEnabled(){var e,t,n=(e=this.instance.persistence)==null?void 0:e.props[em];if(cr(this.oo)&&!di(n)&&!this.instance.Kr())return!1;var i=(t=this.oo)!==null&&t!==void 0?t:!!n;return!!this.instance.config.autocapture&&!i}ho(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var n,i=$p(e);Kw(i)&&(i=i.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&k1(i,this.instance.config.rageclick)&&this.ho(e,"$rageclick");var s=t===Wp;if(i&&(function(g,_,v,E,y){var S,x,C,N;if(v===void 0&&(v=void 0),!ve||Nv(g)||(S=v)!=null&&S.url_allowlist&&!x1(v.url_allowlist)||(x=v)!=null&&x.url_ignorelist&&x1(v.url_ignorelist))return!1;if((C=v)!=null&&C.dom_event_allowlist){var F=v.dom_event_allowlist;if(F&&!F.some((O=>_.type===O)))return!1}var{parentIsUsefulElement:R,targetElementList:D}=Jw(g,E);if(!(function(O,I){var B=I==null?void 0:I.element_allowlist;if(Be(B))return!0;var k,q=function($){if(B.some((K=>$.tagName.toLowerCase()===K)))return{v:!0}};for(var w of O)if(k=q(w))return k.v;return!1})(D,v)||!Xw(D,(N=v)==null?void 0:N.css_selector_allowlist))return!1;var M=ve.getComputedStyle(g);if(M&&M.getPropertyValue("cursor")==="pointer"&&_.type==="click")return!0;var L=g.tagName.toLowerCase();switch(L){case"html":return!1;case"form":return(y||["submit"]).indexOf(_.type)>=0;case"input":case"select":case"textarea":return(y||["change","click"]).indexOf(_.type)>=0;default:return R?(y||["click"]).indexOf(_.type)>=0:(y||["click"]).indexOf(_.type)>=0&&(Cv.indexOf(L)>-1||g.getAttribute("contenteditable")==="true")}})(i,e,this.qt,s,s?["copy","cut"]:void 0)){var{props:l,explicitNoCapture:c}=p4(i,{e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.qt.element_attribute_ignorelist,elementsC
154hainAsString:this.ao});if(c)return!1;var u=this.getElementSelectors(i);if(u&&u.length>0&&(l.$element_selectors=u),t===Wp){var f,h=Zw(ve==null||(f=ve.getSelection())==null?void 0:f.toString()),p=e.type||"clipboard";if(!h)return!1;l.$selected_content=h,l.$copy_type=p}return this.instance.capture(t,l),!0}}}isBrowserSupported(){return ji(Fe==null?void 0:Fe.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.co=(ve==null||(t=ve.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.do&&this.do(),this.do=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){ve&&ve.history&&(this.vo("pushState"),this.vo("replaceState"),this.fo())}vo(e){var t;if(ve&&((t=ve.history[e])==null||!t.__posthog_wrapped__)){var n=this;(function(i,s,l){try{if(!(s in i))return()=>{};var c=i[s],u=l(c);return ji(u)&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__posthog_wrapped__:{enumerable:!1,value:!0}})),i[s]=u,()=>{i[s]===u&&(i[s]=c)}}catch{return()=>{}}})(ve.history,e,(i=>function(s,l,c){i.call(this,s,l,c),n.po(e)}))}}po(e){try{var t,n=ve==null||(t=ve.location)==null?void 0:t.pathname;if(!n)return;n!==this.co&&this.isEnabled&&this._instance.capture(fo,{navigation_type:e}),this.co=n}catch(i){Ue.error("Error capturing "+e+" pageview",i)}}fo(){if(!this.do){var e=()=>{this.po("popstate")};cn(ve,"popstate",e),this.do=()=>{ve&&ve.removeEventListener("popstate",e)}}}},heatmaps:class{get qt(){return this.instance.config}constructor(e){var t;this.mo=!1,this.so=!1,this.yo=null,this.instance=e,this.mo=!((t=this.instance.persistence)==null||!t.props[tm]),this.rageclicks=new K1(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return sn(this.qt.capture_heatmaps)&&this.qt.capture_heatmaps.flush_interval_milliseconds&&(e=this.qt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return mt(this.qt.capture_heatmaps)?mt(this.qt.enable_heatmaps)?this.mo:this.qt.enable_heatmaps:this.qt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.so)return;m4.info("starting..."),this.bo(),this.At()}else{var e;clearInterval((e=this.yo)!==null&&e!==void 0?e:void 0),this._o(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[tm]:t}),this.mo=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.M;return this.M=void 0,e}wo(e){this.Mt(e.originalEvent,"deadclick")}At(){this.yo&&clearInterval(this.yo),this.yo=(Fe==null?void 0:Fe.visibilityState)==="visible"?setInterval(this.ci.bind(this),this.flushIntervalMilliseconds):null}bo(){ve&&Fe&&(this.xo=this.ci.bind(this),cn(ve,$d,this.xo),this.ko=e=>this.Mt(e||(ve==null?void 0:ve.event)),cn(Fe,"click",this.ko,{capture:!0}),this.So=e=>this.Co(e||(ve==null?void 0:ve.event)),cn(Fe,"mousemove",this.So,{capture:!0}),this.Io=new C1(this.instance,DR,this.wo.bind(this)),this.Io.startIfEnabledOrStop(),this.To=this.At.bind(this),cn(Fe,jd,this.To),this.so=!0)}_o(){var e;ve&&Fe&&(this.xo&&ve.removeEventListener($d,this.xo),this.ko&&Fe.removeEventListener("click",this.ko,{capture:!0}),this.So&&Fe.removeEventListener("mousemove",this.So,{capture:!0}),this.To&&Fe.removeEventListener(jd,this.To),clearTimeout(this.Eo),(e=this.Io)==null||e.stop(),this.so=!1)}Mo(e,t){var n=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),l=(function(c,u,f){for(var h=c;h&&Na(h)&&!Ar(h,"body");){if(h===f)return!1;if(it(u,ve==null?void 0:ve.getComputedStyle(h).position))return!0;h=Ww(h)}return!1})($p(e),["fixed","sticky"],s);return{x:e.clientX+(l?0:i),y:e.clientY+(l?0:n),target_fixed:l,type:t}}Mt(e,t){var n;if(t===void 0&&(t="click"),!E1(e.target)&&W1(e)){var i=this.Mo(e,t);(n=this.rageclicks)!=null&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&k1($p(e),this.instance.config.rageclick)&&this.Ro(Ie({},i,{type:"rageclick"})),this.Ro(i)}}Co(e){!E1(e.target)&&W1(e)&&(clearTimeout(this.Eo),this.Eo=setTimeout((()=>{this.Ro(this.Mo(e,"mousemove"))}),500))}Ro(e){if(ve){var t=ve.location.href,n=this.qt.custom_personal_data_properties,i=this.qt.mask_personal_data_properties?[...Ao,...n||[]]:[],s=gc(t,i,mc);this.M=this.M||{},this.M[s]||(this.M[s]=[]),this.M[s].push(e)}}ci(){this.M&&!Ca(this.M)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:C1,webVitalsAutocapture:class{constructor(e){var t;this.mo=!1,this.so=!1,this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Po=()=>{clearTimeout(this.Oo),this.M.metrics.length!==0&&(this._instance.capture("$web_vitals",this.M.metrics.reduce(((n,i)=>Ie({},n,{["$web_vitals_"+i.name+"_event"]:Ie({},i),["$web_vitals_"+i.name+"_value"]:i.value})),{})),this.M={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=n=>{var i;this.M=this.M||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.Lo();if(!Be(s))if(mt(n==null?void 0:n.name)||mt(n==null?void 0:n.value))es.error("Invalid metric received",n);else if(!this.Ao||this.Ao>n.value){this.M.url!==s&&(this.Po(),this.Oo=setTimeout(this.Po,this.flushToCaptureTimeoutMs)),Be(this.M.url)&&(this.M.url=s),this.M.firstMetricTimestamp=Be(this.M.firstMetricTimestamp)?Date.now():this.M.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0);var l=(i=this._instance.sessionManager)==null?void 0:i.checkAndGetSessionAndWindowId(!0),c=Ie({},n,{$current_url:s,timestamp:Date.now()});Be(l)||(c.$session_id=l.sessionId,c.$window_id=l.windowId),this.M.metrics.push(c),this.M.metrics.length===this.allowedMetrics.length&&this.Po()}else es.error("Ignoring metric with value >= "+this.Ao,n)},this.Fo=()=>
154{if(!this.so){var n,i,s,l,c=Xe.__PosthogExtensions__;Be(c)||Be(c.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:i,onFCP:s,onINP:l}=c.postHogWebVitalsCallbacks),n&&i&&s&&l?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&i(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&l(this.ht.bind(this)),this.so=!0):es.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.mo=!((t=this._instance.persistence)==null||!t.props[am]),this.startIfEnabled()}get No(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,n=sn(this.No)?(e=this.No)==null?void 0:e.web_vitals_allowed_metrics:void 0;return mt(n)?((t=this._instance.persistence)==null?void 0:t.props[sm])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(sn(this.No)?this.No.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=sn(this.No)?this.No.web_vitals_attribution:void 0;return e!=null&&e}get Ao(){var e=sn(this.No)&&Xn(this.No.__web_vitals_max_value)?this.No.__web_vitals_max_value:V1;return e>0&&6e4>=e?V1:e}get isEnabled(){var e=Pn==null?void 0:Pn.protocol;if(e!=="http:"&&e!=="https:")return es.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=sn(this.No)?this.No.web_vitals:di(this.No)?this.No:void 0;return di(t)?t:this.mo}startIfEnabled(){this.isEnabled&&!this.so&&(es.info("enabled, starting..."),this.ur(this.Fo))}onRemoteConfig(e){if("capturePerformance"in e){var t=sn(e.capturePerformance)&&!!e.capturePerformance.web_vitals,n=sn(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[am]:t}),this._instance.persistence.register({[sm]:n})),this.mo=t,this.startIfEnabled()}}ur(e){var t,n;(t=Xe.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(n=Xe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(i=>{i?es.error("failed to load script",i):e()}))}Lo(){var e=ve?ve.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,n=this._instance.config.mask_personal_data_properties?[...Ao,...t||[]]:[];return gc(e,n,mc)}es.error("Could not determine current URL")}}},k4={exceptionObserver:class{constructor(e){var t,n,i;this.Fo=()=>{var s;if(ve&&this.isEnabled&&(s=Xe.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var l=Xe.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,c=Xe.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,u=Xe.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Do&&this.qt.capture_unhandled_errors&&(this.Do=l(this.captureException.bind(this))),!this.$o&&this.qt.capture_unhandled_rejections&&(this.$o=c(this.captureException.bind(this))),!this.qo&&this.qt.capture_console_errors&&(this.qo=u(this.captureException.bind(this)))}catch(f){Pl.error("failed to start",f),this.jo()}}},this._instance=e,this.Bo=!((t=this._instance.persistence)==null||!t.props[nm]),this.Ho=new MO({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(i=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&i!==void 0?i:10,refillInterval:1e4,Zt:Pl}),this.qt=this.Uo(),this.startIfEnabledOrStop()}Uo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return sn(e)?t=Ie({},t,e):(Be(e)?this.Bo:e)&&(t=Ie({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.qt.capture_console_errors||this.qt.capture_unhandled_errors||this.qt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Pl.info("enabled"),this.jo(),this.ur(this.Fo)):this.jo()}ur(e){var t,n;(t=Xe.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(n=Xe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(i=>{if(i)return Pl.error("failed to load script",i);e()}))}jo(){var e,t,n;(e=this.Do)==null||e.call(this),this.Do=void 0,(t=this.$o)==null||t.call(this),this.$o=void 0,(n=this.qo)==null||n.call(this),this.qo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.Bo=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[nm]:this.Bo}),this.qt=this.Uo(),this.startIfEnabledOrStop())}onConfigChange(){this.qt=this.Uo()}captureException(e){var t,n,i,s=(t=e==null||(n=e.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&t!==void 0?t:"Exception";this.Ho.consumeRateLimit(s)?Pl.info("Skipping exception capture because of client rate limiting.",{exception:s}):(i=this._instance.exceptions)==null||i.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,n;this.zo=[],this.Vo=new qO([new JO,new lR,new tR,new eR,new sR,new aR,new rR,new oR],(function(i){for(var s=arguments.length,l=new Array(s>1?s-1:0),c=1;s>c;c++)l[c-1]=arguments[c];return function(u,f){f===void 0&&(f=0);for(var h=[],p=u.split(`
155`),g=f;p.length>g;g++){var _=p[g];if(1024>=_.length){var v=v1.test(_)?_.replace(v1,"$1"):_;if(!v.match(/\S*Error: /)){for(var E of l){var y=E(v,i);if(y){h.push(y);break}}if(h.length>=50)break}}}return(function(S){if(!S.length)return[];var x=Array.from(S);return x.reverse(),x.slice(0,50).map((C=>{return Ie({},C,{filename:C.filename||(N=x,N[N.length-1]||{}).filename,function:C.function||To});var N}))})(h)}})("web:javascript",ZO,QO)),this._instance=e,this.zo=(t=(n=this._instance.persistence)==null?void 0:n.get_property(rm))!==null&&t!==void 0?t:[],this.Wo=Bd(this.Go()),this.Zo=new uR(this.Wo)}onConfigChange(){this.Wo=Bd(this.Go()),this.Zo.setConfig(this.Wo)}onRemoteConfig(e){var t,n,i;if("errorTracking"in e){var s=(t=(n=e.errorTracking)==null?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],l=(i=e.errorTracking)==null?void 0:i.captureExtensionExceptions;this.zo=s,this._instance.persistence&&this._instance.persistence.register({[rm]:this.zo,[im]:l})}}get Qo(){var e,t=!!this._instance.get_property(im),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.Vo.buildFromUnknown(e,{syntheticException:t==null?void 0:t.syntheticException,mechanism:{handled:t==null?void 0:t.handled}})}addExceptionStep(e,t){if(this.Wo.enabled)try{if(!Qt(e)||e.trim().length===0)return void Bi.warn("Ignoring exception step because message must be a non-empty string");var n=this.Jo(t),{sanitizedProperties:i,droppedKeys:s}=(function(l){if(!l)return{sanitizedProperties:{},droppedKeys:[]};var c=[];return{sanitizedProperties:Object.keys(l).reduce(((u,f)=>cR.has(f)?(c.push(f),u):(u[f]=l[f],u)),{}),droppedKeys:c}})(n);s.length>0&&Bi.warn("Ignoring reserved exception step fields",{droppedKeys:s}),this.Zo.add(Ie({[Ld]:e,[zd]:new Date().toISOString()},i))}catch(l){Bi.error("Failed to add exception step. Ignoring breadcrumb.",l)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Ko(t)){if(this.Yo(t))return this.Xo("Exception dropped: matched a suppression rule"),void Bi.info("Skipping exception capture because a suppression rule matched");if(!this.Qo&&this.ea(t))return this.Xo("Exception dropped: thrown by a browser extension"),void Bi.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ta(t))return this.Xo("Exception dropped: thrown by the PostHog SDK"),void Bi.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.Wo.enabled&&mt(e.$exception_steps)?this.ra(e):e;try{var i=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",Mn:!0});return i&&this.Zo.clear(),i}catch(s){return Bi.error("Failed to capture exception event. Dropping this exception.",s),void this.Zo.clear()}}catch(s){return void Bi.error("Failed to process exception event. Ignoring this exception.",s)}}ra(e){try{var t=this.Zo.getAttachable();return t.length===0?e:Ie({},e,{$exception_steps:t})}catch(n){return Bi.error("Failed to read buffered exception steps. Capturing exception without steps.",n),e}}Xo(e){this.Wo.enabled&&this.Zo.add({[Ld]:e,[zd]:new Date().toISOString()})}Jo(e){return sn(e)?Ie({},e):{}}Go(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Yo(e){if(e.length===0)return!1;var t=e.reduce(((n,i)=>{var{type:s,value:l}=i;return Qt(s)&&s.length>0&&n.$exception_types.push(s),Qt(l)&&l.length>0&&n.$exception_values.push(l),n}),{$exception_types:[],$exception_values:[]});return this.zo.some((n=>{var i=n.values.map((s=>{var l,c=ES[s.operator],u=_t(s.value)?s.value:[s.value],f=(l=t[s.key])!==null&&l!==void 0?l:[];return u.length>0&&c(u,f)}));return n.type==="OR"?i.some(Boolean):i.every(Boolean)}))}ea(e){return e.flatMap((t=>{var n,i;return(n=(i=t.stacktrace)==null?void 0:i.frames)!==null&&n!==void 0?n:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ta(e){if(e.length>0){var t,n,i,s,l=(t=(n=e[0].stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[],c=l[l.length-1];return(i=c==null||(s=c.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&i!==void 0&&i}return!1}Ko(e){return!mt(e)&&_t(e)}}},T4=Ie({productTours:class{get Si(){return this._instance.persistence}constructor(e){this.ia=null,this.na=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if("productTours"in e){var t,n;if(this.Si&&this.Si.register({[xv]:!!e.productTours}),!tg(this._instance))return!this.ia&&mt((t=this.Si)==null?void 0:t.props[Wl])||eg.info("product tours disabled; stopping and clearing cached tours"),(n=this.ia)==null||n.stop(),this.ia=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.ia&&tg(this._instance)&&this.ur((()=>this.sa()))}ur(e){var t,n;(t=Xe.__PosthogExtensions__)!=null&&t.generateProductTours?e():(n=Xe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(i=>{i?eg.error("Could not load product tours script",i):e()}))}sa(){var e;!this.ia&&(e=Xe.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.ia=Xe.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!_t(this.na)||t){var n=this.Si;if(n){var i=n.props[Wl];if(_t(i)&&!t)return this.na=i,void e(i,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:s=>{if(tg(this._instance)){var l=s.statusCode;if(l!==200||!s.json){var c="Product Tours API could not be loaded, status: "+l;return eg.error(c),void e([],{isLoaded:!1,error:c})}var u=_t(s.json.product_tours)?s.json.product_tours:[];this.na=u,n&&n.register({[Wl]:u}),e(u,{isLoaded:!0})}else e([],{isLoaded:!0})}})}else e(this.na,{isLoaded:!0})}getActiveProductTours(e){mt(this.ia)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.ia.getActiveProductTours(e)}showProductTour(e){var t;(t=this.ia)==null||t.showTourById(e)}previewTour(e){this.ia?this.ia.previewTour(e):this.ur((()=>{var t;this.sa(),(t=this.ia)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.ia)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.ia)==null||e.nextStep()}previousStep(){var e;(e=this.ia)==null||e.previousStep()}clearCache(){var e;this.na=null,(e=this.Si)==null||e.unregister(Wl)}resetTour(e){var t;(t=this.ia)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.ia)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.ia)==null||t.cancelPendingTour(e)}}}
155,pf),A4={siteApps:class{constructor(e){this._instance=e,this.oa=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}aa(e,t){if(t){var n=this.globalsForEvent(t);this.oa.push(n),this.oa.length>1e3&&(this.oa=this.oa.slice(10))}}get siteAppLoaders(){var e;return(e=Xe._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.aa.bind(this));this.la=()=>{e(),this.oa=[],this.la=void 0}}}globalsForEvent(e){var t,n,i,s,l,c,u;if(!e)throw new Error("Event payload is required");var f={},h=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var[g,_]of Object.entries(p))f[g]={id:h[g],type:g,properties:_};var{$set_once:v,$set:E}=e;return{event:Ie({},aw(e,v4),{properties:Ie({},e.properties,E?{$set:Ie({},(t=(n=e.properties)==null?void 0:n.$set)!==null&&t!==void 0?t:{},E)}:{},v?{$set_once:Ie({},(i=(s=e.properties)==null?void 0:s.$set_once)!==null&&i!==void 0?i:{},v)}:{}),elements_chain:(l=(c=e.properties)==null?void 0:c.$elements_chain)!==null&&l!==void 0?l:"",distinct_id:(u=e.properties)==null?void 0:u.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:f}}setupSiteApp(e){var t=this.apps[e.id],n=()=>{var c;!t.errored&&this.oa.length&&(wa.info("Processing "+this.oa.length+" events for site app with id "+e.id),this.oa.forEach((u=>t.processEvent==null?void 0:t.processEvent(u))),t.processedBuffer=!0),Object.values(this.apps).every((u=>u.processedBuffer||u.errored))&&((c=this.la)==null||c.call(this))},i=!1,s=c=>{t.errored=!c,t.loaded=!0,wa.info("Site app with id "+e.id+" "+(c?"loaded":"errored")),i&&n()};try{var{processEvent:l}=e.init({posthog:this._instance,callback(c){s(c)}});l&&(t.processEvent=l),i=!0}catch(c){wa.error(Q1+e.id,c),s(!1)}if(i&&t.loaded)try{n()}catch(c){wa.error("Error while processing buffered events PostHog app with config id "+e.id,c),t.errored=!0}}ua(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of e)this.setupSiteApp(n)}ha(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(t)}catch(i){wa.error("Error while processing event "+e.event+" for site app "+n.id,i)}}}onRemoteConfig(e){var t,n,i,s=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.ua(),void this._instance.on("eventCaptured",(f=>this.ha(f)))):void wa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.la)==null||n.call(this),(i=e.siteApps)!=null&&i.length)if(this.isEnabled){var l=function(f){var h;Xe["__$$ph_site_app_"+f]=s._instance,(h=Xe.__PosthogExtensions__)==null||h.loadSiteApp==null||h.loadSiteApp(s._instance,u,(p=>{if(p)return wa.error(Q1+f,p)}))};for(var{id:c,url:u}of e.siteApps)l(c)}else wa.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},C4={tracingHeaders:class{constructor(e){this.ca=void 0,this.da=void 0,this.va=void 0,this.Fo=()=>{var t,n,i=this.fa();i?(Be(this.ca)&&(this.ca=(t=Xe.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null?void 0:t._patchXHR(i,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),Be(this.da)&&(this.da=(n=Xe.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null?void 0:n._patchFetch(i,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.jo()},this._instance=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,n;(t=Xe.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns?e():(n=Xe.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(i=>{if(i)return g4.error("failed to load script",i);e()}))}pa(){var e,t;return(e=(t=this._instance.config.tracing_headers)!==null&&t!==void 0?t:this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}fa(){var e=this.pa();return _t(e)?(_t(this.va)?this.va.splice(0,this.va.length,...e):this.va=[...e],e.length>0?this.va:void 0):(_t(this.va)&&this.va.splice(0),this.va=e||void 0,this.va)}jo(){var e,t;(e=this.ca)==null||e.call(this),(t=this.da)==null||t.call(this),this.ca=void 0,this.da=void 0}startIfEnabledOrStop(){this.fa()?this.ur(this.Fo):this.jo()}}},N4=Ie({surveys:class{get qt(){return this._instance.config}constructor(e){this.ga=void 0,this._surveyManager=null,this.ma=!1,this.ya=[],this.ba=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.qt.disable_surveys){var t=e.surveys;if(mt(t))return zt.warn("Flags not loaded yet. Not loading surveys.");var n=_t(t);this.ga=n?t.length>0:t,zt.info("flags response received, isSurveysEnabled: "+this.ga),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);(n!=null&&n.startsWith(Tm)||n!=null&&n.startsWith("inProgressSurvey_"))&&e.push(n)}e.forEach((i=>localStorage.removeItem(i)))}loadIfEnabled(){if(!this._surveyManager)if(this.ma)zt.info("Already initializing surveys, skipping...");else if(this.qt.disable_surveys)zt.info(J1);else if(this.qt.cookieless_mode&&this._instance.consent.isOptedOut())zt.info("Not loading surveys in cookieless mode without consent.");else{var e=Xe==null?void 0:Xe.__PosthogExtensions__;if(e){if(!Be(this.ga)||this.qt.advanced_enable_surveys){var t=this.ga||this.qt.advanced_enable_surveys;this.ma=!0;try{var n=e.generateSurveys;if(n)return void this._a(n,t);var i=e.loadExternalDependency;if(!i)return void this.wa(kv);i(this._instance,"surveys",(s=>{s||!e.generateSurveys?this.wa("Could not load surveys script",s):this._a(e.generateSurveys,t)}))}catch(s){throw this.wa("Error initializing surveys",s),s}finally{this.ma=!1}}}else zt.error("PostHog Extensions not found.")}}_a(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new y4(this._instance),zt.info("Surveys loaded successfully"),this.xa({isLoaded:!0})}wa(e,t){zt.error(e,t),this.xa({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.ya.push(e),this._surveyManager&&this.xa({isLoaded:!0}),()=>{this.ya=this.ya.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.qt.disable_surveys)return zt.info(J1),e([]);var n,i=this._instance.get_property(um);if(i&&!t)return e(i,{isLoaded:!0});typeof Promise<"u"&&this.ba?this.ba.then((s=>{var{surveys:l,context:c}=s;return e(l,c)})):(typeof Promise<"u"&&(this.ba=new Promise((s=>{n=s}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.qt.token),method:"GET",timeout:this.qt.surveys_request_timeout_ms,callback:s=>{var l;this.ba=null;var c=s.statusCode;if(c!==200||!s.json){var u="Surveys API could not be loaded, status: "+c;zt.error(u);var f={isLoaded:!1,error:u};return e([],f),void(n==null||n({surveys:[],context:f}))}var h,p=s.json.surveys||[],g=p.filter((v=>(function(E){return!(!E.start_date||E.end_date)})(v)&&((function(E){var y;return!((y=E.conditions)==null||(y=y.events)==null||(y=y.values)==null||!y.length)})(v)||(function(E){var y;return!((y=E.conditions)==null||(y=y.actions)==null||(y=y.values)==null||!y.length)})(v))));g.length>0&&((h=this._surveyEventReceiver)==null||h.register(g)),(l=this._instance.persistence)==null||l.register({[um]:p,[Sv]:Date.now()});var _={isLoaded:!0};e(p,_),n==null||n({surveys:p,context:_})}}))}
155xa(e){for(var t of this.ya)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){zt.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!mt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);zt.warn("init was not called")}ka(e){var t=null;return this.getSurveys((n=>{var i;t=(i=n.find((s=>s.id===e)))!==null&&i!==void 0?i:null})),t}Sa(e){if(mt(this._surveyManager))return{eligible:!1,reason:ng};var t=typeof e=="string"?this.ka(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(mt(this._surveyManager))return zt.warn("init was not called"),{visible:!1,disabledReason:ng};var t=this.Sa(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return mt(this._surveyManager)?(zt.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:ng})):new Promise((n=>{this.getSurveys((i=>{var s,l=(s=i.find((u=>u.id===e)))!==null&&s!==void 0?s:null;if(l){var c=this.Sa(l);n({visible:c.eligible,disabledReason:c.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),t)}))}renderSurvey(e,t,n){var i;if(mt(this._surveyManager))zt.warn("init was not called");else{var s=typeof e=="string"?this.ka(e):e;if(s!=null&&s.id)if(s4.includes(s.type)){var l=Fe==null?void 0:Fe.querySelector(t);if(l)return(i=s.appearance)!=null&&i.surveyPopupDelaySeconds?(zt.info("Rendering survey "+s.id+" with delay of "+s.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var c,u;zt.info("Rendering survey "+s.id+" with delay of "+((c=s.appearance)==null?void 0:c.surveyPopupDelaySeconds)+" seconds"),(u=this._surveyManager)==null||u.render
155Survey(s,l,n),zt.info("Survey "+s.id+" rendered")}),1e3*s.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(s,l,n);zt.warn("Survey element not found")}else zt.warn("Surveys of type "+s.type+" cannot be rendered in the app");else zt.warn("Survey not found")}}displaySurvey(e,t){var n;if(mt(this._surveyManager))zt.warn("init was not called");else{var i=this.ka(e);if(i){var s=i;if((n=i.appearance)!=null&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(s=Ie({},i,{appearance:Ie({},i.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==ym.Popover&&t.initialResponses&&zt.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var l=this.canRenderSurvey(i);if(!l.visible)return void zt.warn("Survey is not eligible to be displayed: ",l.disabledReason)}t.displayType!==ym.Inline?this._surveyManager.handlePopoverSurvey(s,t):this.renderSurvey(s,t.selector,t.properties)}else zt.warn("Survey not found")}}cancelPendingSurvey(e){mt(this._surveyManager)?zt.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},pf),O4={toolbar:class{constructor(e){this.instance=e}Ca(e){Xe.ph_toolbar_state=e}Ia(){var e;return(e=Xe.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,n){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),qw(this.instance.config)||!ve||!Fe)return!1;e=e??ve.location,n=n??ve.history;try{if(!t){try{ve.localStorage.setItem("test","test"),ve.localStorage.removeItem("test")}catch{return!1}t=ve==null?void 0:ve.localStorage}var i,s=E4||Yd(e.hash,"__posthog")||Yd(e.hash,"state"),l=s?_1((()=>JSON.parse(atob(decodeURIComponent(s)))))||_1((()=>JSON.parse(decodeURIComponent(s)))):null;return l&&l.action==="ph_authorize"?((i=l).source="url",i&&Object.keys(i).length>0&&(l.desiredHash?e.hash=l.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):((i=JSON.parse(t.getItem(eE)||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.config.token!==i.token||(this.loadToolbar(i),0))}catch{return!1}}Ta(e){var t=Xe.ph_load_toolbar||Xe.ph_load_editor;!mt(t)&&ji(t)?t(e,this.instance):tE.warn("No toolbar load function found")}loadToolbar(e){var t=!(Fe==null||!Fe.getElementById(jw));if(!ve||t)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,i=Ie({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(ve.localStorage.setItem(eE,JSON.stringify(Ie({},i,{source:void 0}))),this.Ia()===2)this.Ta(i);else if(this.Ia()===0){var s;this.Ca(1),(s=Xe.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",(l=>{if(l)return tE.error("[Toolbar] Failed to load",l),void this.Ca(0);this.Ca(2),this.Ta(i)})),cn(ve,"turbolinks:load",(()=>{this.Ca(0),this.loadToolbar(i)}))}return!0}Ea(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,n){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(e,t,n)}}},R4=Ie({experiments:Hn},pf),M4={conversations:class{constructor(e){this.Ma=void 0,this._conversationsManager=null,this.Ra=!1,this.Pa=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;mt(t)||(di(t)?this.Ma=t:(this.Ma=t.enabled,this.Pa=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ma=void 0,this.Pa=null}loadIfEnabled(){if(!(this._conversationsManager||this.Ra||this._instance.config.disable_conversations||qw(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=Xe==null?void 0:Xe.__PosthogExtensions__;if(e&&!Be(this.Ma)&&this.Ma)if(this.Pa&&this.Pa.token){this.Ra=!0;try{var t=e.initConversations;if(t)return this.Oa(t),void(this.Ra=!1);var n=e.loadExternalDependency;if(!n)return void this.La(kv);n(this._instance,"conversations",(i=>{i||!e.initConversations?this.La("Could not load conversations script",i):this.Oa(e.initConversations),this.Ra=!1}))}catch(i){this.La("Error initializing conversations",i),this.Ra=!1}}else Fr.error("Conversations enabled but missing token in remote config.")}}Oa(e){if(this.Pa)try{this._conversationsManager=e(this.Pa,this._instance),Fr.info("Conversations loaded successfully")}catch(t){this.La("Error completing conversations initialization",t)}else Fr.error("Cannot complete initialization: remote config is null")}La(e,t){Fr.error(e,t),this._conversationsManager=null,this.Ra=!1}show(){this._conversationsManager?this._conversationsManager.show():Fr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ma===!0&&!cr(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var i=this;return kr((function*(){return i._conversationsManager?i._conversationsManager.sendMessage(e,t,n):(Fr.warn(ns),null)}))()}getMessages(e,t){var n=this;return kr((function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(Fr.warn(ns),null)}))()}markAsRead(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Fr.warn(ns),null)}))()}getTickets(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Fr.warn(ns),null)}))()}requestRestoreLink(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Fr.warn(ns),null)}))()}restoreFromToken(e){var t=this;return kr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Fr.warn(ns),null)}))()}restoreFromUrlToken(){var e=this;return kr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Fr.warn(ns),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}Nn(){var e;(e=this._conversationsManager)==null||e.setIdentity()}Dn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},D4={logs:class{constructor(e){var t;this.Aa=!1,this.Fa=!1,this.Zt=rn("[logs]"),this.Na=[],this.Da=0,this.$a=0,this.qa=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.Aa=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,n=(t=e.logs)==null?void 0:t.captureConsoleLogs;!mt(n)&&n&&(this.Aa=!0,this.loadIfEnabled())}reset(){this.Na=[],this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.Da=0,this.$a=0,this.qa=!1}loadIfEnabled(){if(this.Aa&&!this.Fa){var e=Xe==null?void 0:Xe.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var i;n||(i=e.logs)==null||!i.initializeLogs?this.Zt.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.Fa=!0)})):this.Zt.error(kv)}else this.Zt.error("PostHog Extensions not found.")}}captureLog(e){var t,n,i,s,l,c;if(this._instance.is_capturing())if(e&&e.body){var u=(t=(n=this._instance.config.logs)==null?void 0:n.flushIntervalMs)!==null&&t!==void 0?t:3e3,f=(i=(s=this._instance.config.logs)==null?void 0:s.maxLogsPerInterval)!==null&&i!==void 0?i:1e3,h=Date.now();if(u>h-this.$a||(this.$a=h,this.Da=0,this.qa=!1),f>this.Da){this.Da++;var p=(function(g,_){var v=g.level||"info",{text:E,number:y}=Ow[v]||HO,S=String(Date.now())+"000000",x={};_.distinctId&&(x.posthogDistinctId=_.distinctId),_.sessionId&&(x.sessionId=_.sessionId),_.currentUrl&&(x["url.full"]=_.currentUrl),_.screenName&&(x["screen.name"]=_.screenName),_.appState&&(x["app.state"]=_.appState),_.activeFeatureFlags&&_.activeFeatureFlags.length>0&&(x.feature_flags=_.activeFeatureFlags);var C=Ie({},x,g.attributes||{}),N={timeUnixNano:S,observedTimeUnixNano:S,severityNumber:y,severityText:E,body:{stringValue:g.body},attributes:m1(C)};return g.trace_id&&(N.traceId=g.trace_id),g.span_id&&(N.spanId=g.span_id),Be(g.trace_flags)||(N.flags=g.trace_flags),N})(e,this.ja());this.Na.push({record:p}),((l=(c=this._instance.config.logs)==null?void 0:c.maxBufferSize)!==null&&l!==void 0?l:100)>this.Na.length?this.Ba():this.flushLogs()}else this.qa||(this.Zt.warn("captureLog dropping logs: exceeded "+f+" logs per "+u+"ms"),this.qa=!0)}else this.Zt.warn("captureLog requires a body")}get logger(){return this.Ha||(this.Ha={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>
155this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Ha}flushLogs(e){if(this.ii&&(clearTimeout(this.ii),this.ii=void 0),this.Na.length!==0){var t=this.Na;this.Na=[];var n=this._instance.config.logs,i=Ie({"service.name":(n==null?void 0:n.serviceName)||"unknown_service"},(n==null?void 0:n.environment)&&{"deployment.environment":n.environment},(n==null?void 0:n.serviceVersion)&&{"service.version":n.serviceVersion},n==null?void 0:n.resourceAttributes),s=(function(c,u,f,h){return{resourceLogs:[{resource:{attributes:m1(u)},scopeLogs:[{scope:{name:f,version:h},logRecords:c}]}]}})(t.map((c=>c.record)),i,Cn.LIB_NAME,Cn.LIB_VERSION),l=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.yn({method:"POST",url:l,data:s,compression:"best-available",batchKey:"logs",transport:e})}}Ba(){var e,t;this.ii||(this.ii=setTimeout((()=>{this.ii=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ja(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:n}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n}if(Xe!=null&&(e=Xe.location)!=null&&e.href&&(t.currentUrl=Xe.location.href),this._instance.featureFlags){var i=this._instance.featureFlags.getFlags();i&&i.length>0&&(t.activeFeatureFlags=i)}return t}}},I4=Ie({},pf,w4,S4,k4,T4,A4,N4,C4,O4,R4,M4,D4);jr.__defaultExtensionClasses=Ie({},I4);var Zr=(function(){Cn.SDK_DIST_CHANNEL="npm";var e=ic[ho]=new jr;return(function(){function t(){t.done||(t.done=!0,SS=!1,Gt(ic,(function(n){n._dom_loaded()})))}Fe!=null&&Fe.addEventListener?Fe.readyState==="complete"?t():cn(Fe,"DOMContentLoaded",t,{capture:!1}):ve&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),e})();const L4="dactyl_attr";function z4(){try{const e=new RegExp(`(?:^|;\\s*)${L4}=([^;]+)`).exec(document.cookie);if(!e)return null;const t=JSON.parse(decodeURIComponent(e[1]));return t&&typeof t=="object"?t:null}catch{return null}}const B4="/roost";let Mo=!1,kS=!1,kd=null;const P4=new Promise(e=>{kd=e});let Xd=null;async function J7(){try{await U4()}finally{kS=!0,kd==null||kd(),TS()}}async function U4(){let e;try{e=await fetch("/api/config").then(t=>t.json())}catch{return}e!=null&&e.posthogKey&&(Zr.init(e.posthogKey,{api_host:`${location.origin}${B4}`,ui_host:"https://us.posthog.com",person_profiles:"identified_only",capture_pageview:!0,capture_pageleave:!0,autocapture:!0,enable_heatmaps:!0,session_recording:{blockSelector:".canvasArea"},capture_exceptions:{capture_unhandled_errors:!0,capture_unhandled_rejections:!0,capture_console_errors:!1}}),Mo=!0)}function TS(){const e=Xd;Xd=null,e&&F4(e)}function F4(e){var s;if(!(e!=null&&e.id))return;if(!Mo){if(kS)return;Xd=e,P4.then(TS);return}e.email&&((s=Zr.get_distinct_id)==null?void 0:s.call(Zr))===e.email&&Zr.reset();const{referrer:t,...n}=z4()??{},i=Object.keys(n).length?n:void 0;Zr.identify(e.id,{email:e.email??void 0,name:e.name??void 0,id:e.id,...e.plan?xO(e.plan):{}},i)}function eU(){Xd=null,Mo&&Zr.reset()}function Wd(e,t,n){if(Mo)try{Zr.capture(e,t,n!=null&&n.beacon?{send_instantly:!0,transport:"sendBeacon"}:void 0)}catch{}}function j4(e,t){if(Mo)try{Zr.captureException(e,t)}catch{}}function tU(e,t,n){Wd(e,t),n!=null&&j4(n,{...t,event:e})}const Dv="ph-conversations-widget-container",AS=`#${Dv} button[aria-label^="Open chat"]`;function $4(){var e,t;return Mo&&!!((t=(e=Zr.conversations)==null?void 0:e.isAvailable)!=null&&t.call(e))}async function nU(){const e=Zr.conversations;if(!(!$4()||!e)){e.isVisible()||e.show();for(let t=0;t<60;t++){const n=document.querySelector(AS);if(n){n.click(),Wd("support_chat_opened");return}const i=document.getElementById(Dv);if(i!=null&&i.firstElementChild)return;await new Promise(s=>setTimeout(s,50))}}}const H4=/\((\d+) unread\)/;function aE(){var n;const e=(n=document.querySelector(AS))==null?void 0:n.getAttribute("aria-label"),t=e==null?void 0:e.match(H4);return t?Number(t[1]):0}function rU(e){if(typeof MutationObserver>"u")return()=>{};let t=aE(),n=null,i=null;const s=()=>{const u=aE();u!==t&&(t=u,e(u))},l=()=>{const u=document.getElementById(Dv);u!==n&&(i==null||i.disconnect(),n=u,i=null,u&&(i=new MutationObserver(s),i.observe(u,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-label"]})),s())};l();const c=setInterval(l,500);return()=>{clearInterval(c),i==null||i.disconnect()}}const Iv=[{id:"spotify",dir:"spotify",name:"Music",label:"Music player",description:"A music app with real Apple Music playback: album shelves, a now-playing bar, and a full player.",prompts:["Give it a light theme","Add a favorites tab","Add a sleep timer"]},{id:"weather",dir:"weather",name:"Weather",label:"Weather",description:"A weather app: a full-bleed sky gradient, an hourly strip, and a 10-day forecast.",prompts:["Add a city search","Switch to celsius","Add a rain radar card"]},{id:"instagram",dir:"instagram",name:"Photos",label:"Photo feed",description:"A photo feed with stories, double-tap likes, an explore grid, and a profile.",prompts:["Add a dark mode","Make the double-tap hearts bigger","Add a saved-
155posts tab"]},{id:"tiktok",dir:"tiktok",name:"Clips",label:"Video feed",description:"A full-screen vertical video feed: swipe paging, an action rail, and captions.",prompts:["Add a comments sheet","Add a search page","Make captions expandable"]},{id:"threads",dir:"threads",name:"Posts",label:"Text social",description:"A text-social feed: threaded replies, a working composer, likes, and reposts.",prompts:["Add quote posts","Add a trending tab","Show reply counts"]},{id:"whatsapp",dir:"whatsapp",name:"Chats",label:"Chats",description:"A chat list and conversation: message bubbles, a live composer, and read ticks.",prompts:["Add typing indicators","Add message reactions","Add chat wallpapers"]},{id:"airbnb",dir:"airbnb",name:"Stays",label:"Listings",description:"A travel explore: a search pill, category tabs, photo listings, and a detail page.",prompts:["Add a favorites list","Add a map view","Show ratings as stars"]},{id:"pinterest",dir:"pinterest",name:"Boards",label:"Ideas",description:"A masonry board of ideas and artwork: staggered image pins, save pills, and categories.",prompts:["Add a board detail screen","Make pins zoom on tap","Add a search bar"]},{id:"duolingo",dir:"duolingo",name:"Lessons",label:"Learning",description:"A gamified lesson path with a vector mascot, streaks, and a working exercise.",prompts:["Add a daily goal ring","Give the mascot a party hat","Add a leaderboard tab"]},{id:"stocks",dir:"stocks",name:"Stocks",label:"Investing",description:"An investing app: a scrubbable Swift Charts portfolio, a watchlist, and live tickers.",prompts:["Add a news feed","Show candlestick charts","Add a crypto watchlist"]}],G4=new Map(Iv.map(e=>[e.id,e])),q4=new Map(Iv.map(e=>[e.name,e]));function iU(e){return G4.get(e)}function aU(e){return q4.get(e)}var ig={exports:{}},sE;function Y4(){return sE||(sE=1,(function(e,t){var n=(function(){var i=function(R,D){var M=236,L=17,O=R,I=l[D],B=null,k=0,q=null,w=[],$={},K=function(re,ne){k=O*4+17,B=(function(ce){for(var me=new Array(ce),_e=0;_e<ce;_e+=1){me[_e]=new Array(ce);for(var Ne=0;Ne<ce;Ne+=1)me[_e][Ne]=null}return me})(k),Z(0,0),Z(k-7,0),Z(0,k-7),P(),ie(),Y(re,ne),O>=7&&z(re),q==null&&(q=de(O,I,w)),U(q,ne)},Z=function(re,ne){for(var ce=-1;ce<=7;ce+=1)if(!(re+ce<=-1||k<=re+ce))for(var me=-1;me<=7;me+=1)ne+me<=-1||k<=ne+me||(0<=ce&&ce<=6&&(me==0||me==6)||0<=me&&me<=6&&(ce==0||ce==6)||2<=ce&&ce<=4&&2<=me&&me<=4?B[re+ce][ne+me]=!0:B[re+ce][ne+me]=!1)},ae=function(){for(var re=0,ne=0,ce=0;ce<8;ce+=1){K(!0,ce);var me=u.getLostPoint($);(ce==0||re>me)&&(re=me,ne=ce)}return ne},ie=function(){for(var re=8;re<k-8;re+=1)B[re][6]==null&&(B[re][6]=re%2==0);for(var ne=8;ne<k-8;ne+=1)B[6][ne]==null&&(B[6][ne]=ne%2==0)},P=function(){for(var re=u.getPatternPosition(O),ne=0;ne<re.length;ne+=1)for(var ce=0;ce<re.length;ce+=1){var me=re[ne],_e=re[ce];if(B[me][_e]==null)for(var Ne=-2;Ne<=2;Ne+=1)for(var T=-2;T<=2;T+=1)Ne==-2||Ne==2||T==-2||T==2||Ne==0&&T==0?B[me+Ne][_e+T]=!0:B[me+Ne][_e+T]=!1}},z=function(re){for(var ne=u.getBCHTypeNumber(O),ce=0;ce<18;ce+=1){var me=!re&&(ne>>ce&1)==1;B[Math.floor(ce/3)][ce%3+k-8-3]=me}for(var ce=0;ce<18;ce+=1){var me=!re&&(ne>>ce&1)==1;B[ce%3+k-8-3][Math.floor(ce/3)]=me}},Y=function(re,ne){for(var ce=I<<3|ne,me=u.getBCHTypeInfo(ce),_e=0;_e<15;_e+=1){var Ne=!re&&(me>>_e&1)==1;_e<6?B[_e][8]=Ne:_e<8?B[_e+1][8]=Ne:B[k-15+_e][8]=Ne}for(var _e=0;_e<15;_e+=1){var Ne=!re&&(me>>_e&1)==1;_e<8?B[8][k-_e-1]=Ne:_e<9?B[8][15-_e-1+1]=Ne:B[8][15-_e-1]=Ne}B[k-8][8]=!re},U=function(re,ne){for(var ce=-1,me=k-1,_e=7,Ne=0,T=u.getMaskFunction(ne),oe=k-1;oe>0;oe-=2)for(oe==6&&(oe-=1);;){for(var J=0;J<2;J+=1)if(B[me][oe-J]==null){var V=!1;Ne<re.length&&(V=(re[Ne]>>>_e&1)==1);var H=T(me,oe-J);H&&(V=!V),B[me][oe-J]=V,_e-=1,_e==-1&&(Ne+=1,_e=7)}if(me+=ce,me<0||k<=me){me-=ce,ce=-ce;break}}},ue=function(re,ne){for(var ce=0,me=0,_e=0,Ne=new Array(ne.length),T=new Array(ne.length),oe=0;oe<ne.length;oe+=1){var J=ne[oe].dataCount,V=ne[oe].totalCount-J;me=Math.max(me,J),_e=Math.max(_e,V),Ne[oe]=new Array(J);for(var H=0;H<Ne[oe].length;H+=1)Ne[oe][H]=255&re.getBuffer()[H+ce];ce+=J;var ee=u.getErrorCorrectPolynomial(V),ye=h(Ne[oe],ee.getLength()-1),Ae=ye.mod(ee);T[oe]=new Array(ee.getLength()-1);for(var H=0;H<T[oe].length;H+=1){var fe=H+Ae.getLength()-T[oe].length;T[oe][H]=fe>=0?Ae.getAt(fe):0}}for(var Ce=0,H=0;H<ne.length;H+=1)Ce+=ne[H].totalCount;for(var Re=new Array(Ce),Oe=0,H=0;H<me;H+=1)for(var oe=0;oe<ne.length;oe+=1)H<Ne[oe].length&&(Re[Oe]=Ne[oe][H],Oe+=1);for(var H=0;H<_e;H+=1)for(var oe=0;oe<ne.length;oe+=1)H<T[oe].length&&(Re[Oe]=T[oe][H],Oe+=1);return Re},de=function(re,ne,ce){for(var me=p.getRSBlocks(re,ne),_e=g(),Ne=0;Ne<ce.length;Ne+=1){var T=ce[Ne];_e.put(T.getMode(),4),_e.put(T.getLength(),u.getLengthInBits(T.getMode(),re)),T.write(_e)}for(var oe=0,Ne=0;Ne<me.length;Ne+=1)oe+=me[Ne].dataCount;if(_e.getLengthInBits()>oe*8)throw"code length overflow. ("+_e.getLengthInBits()+">"+oe*8+")";for(_e.getLengthInBits()+4<=oe*8&&_e.put(0,4);_e.getLengthInBits()%8!=0;)_e.putBit(!1);for(;!(_e.getLengthInBits()>
155=oe*8||(_e.put(M,8),_e.getLengthInBits()>=oe*8));)_e.put(L,8);return ue(_e,me)};$.addData=function(re,ne){ne=ne||"Byte";var ce=null;switch(ne){case"Numeric":ce=_(re);break;case"Alphanumeric":ce=v(re);break;case"Byte":ce=E(re);break;case"Kanji":ce=y(re);break;default:throw"mode:"+ne}w.push(ce),q=null},$.isDark=function(re,ne){if(re<0||k<=re||ne<0||k<=ne)throw re+","+ne;return B[re][ne]},$.getModuleCount=function(){return k},$.make=function(){if(O<1){for(var re=1;re<40;re++){for(var ne=p.getRSBlocks(re,I),ce=g(),me=0;me<w.length;me++){var _e=w[me];ce.put(_e.getMode(),4),ce.put(_e.getLength(),u.getLengthInBits(_e.getMode(),re)),_e.write(ce)}for(var Ne=0,me=0;me<ne.length;me++)Ne+=ne[me].dataCount;if(ce.getLengthInBits()<=Ne*8)break}O=re}K(!1,ae())},$.createTableTag=function(re,ne){re=re||2,ne=typeof ne>"u"?re*4:ne;var ce="";ce+='<table style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: "+ne+"px;",ce+='">',ce+="<tbody>";for(var me=0;me<$.getModuleCount();me+=1){ce+="<tr>";for(var _e=0;_e<$.getModuleCount();_e+=1)ce+='<td style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: 0px;",ce+=" width: "+re+"px;",ce+=" height: "+re+"px;",ce+=" background-color: ",ce+=$.isDark(me,_e)?"#000000":"#ffffff",ce+=";",ce+='"/>';ce+="</tr>"}return ce+="</tbody>",ce+="</table>",ce},$.createSvgTag=function(re,ne,ce,me){var _e={};typeof arguments[0]=="object"&&(_e=arguments[0],re=_e.cellSize,ne=_e.margin,ce=_e.alt,me=_e.title),re=re||2,ne=typeof ne>"u"?re*4:ne,ce=typeof ce=="string"?{text:ce}:ce||{},ce.text=ce.text||null,ce.id=ce.text?ce.id||"qrcode-description":null,me=typeof me=="string"?{text:me}:me||{},me.text=me.text||null,me.id=me.text?me.id||"qrcode-title":null;var Ne=$.getModuleCount()*re+ne*2,T,oe,J,V,H="",ee;for(ee="l"+re+",0 0,"+re+" -"+re+",0 0,-"+re+"z ",H+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',H+=_e.scalable?"":' width="'+Ne+'px" height="'+Ne+'px"',H+=' viewBox="0 0 '+Ne+" "+Ne+'" ',H+=' preserveAspectRatio="xMinYMin meet"',H+=me.text||ce.text?' role="img" aria-labelledby="'+Se([me.id,ce.id].join(" ").trim())+'"':"",H+=">",H+=me.text?'<title id="'+Se(me.id)+'">'+Se(me.text)+"</title>":"",H+=ce.text?'<description id="'+Se(ce.id)+'">'+Se(ce.text)+"</description>":"",H+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',H+='<path d="',J=0;J<$.getModuleCount();J+=1)for(V=J*re+ne,T=0;T<$.getModuleCount();T+=1)$.isDark(J,T)&&(oe=T*re+ne,H+="M"+oe+","+V+ee);return H+='" stroke="transparent" fill="black"/>',H+="</svg>",H},$.createDataURL=function(re,ne){re=re||2,ne=typeof ne>"u"?re*4:ne;var ce=$.getModuleCount()*re+ne*2,me=ne,_e=ce-ne;return F(ce,ce,function(Ne,T){if(me<=Ne&&Ne<_e&&me<=T&&T<_e){var oe=Math.floor((Ne-me)/re),J=Math.floor((T-me)/re);return $.isDark(J,oe)?0:1}else return 1})},$.createImgTag=function(re,ne,ce){re=re||2,ne=typeof ne>"u"?re*4:ne;var me=$.getModuleCount()*re+ne*2,_e="";return _e+="<img",_e+=' src="',_e+=$.createDataURL(re,ne),_e+='"',_e+=' width="',_e+=me,_e+='"',_e+=' height="',_e+=me,_e+='"',ce&&(_e+=' alt="',_e+=Se(ce),_e+='"'),_e+="/>",_e};var Se=function(re){for(var ne="",ce=0;ce<re.length;ce+=1){var me=re.charAt(ce);switch(me){case"<":ne+="&lt;";break;case">":ne+="&gt;";break;case"&":ne+="&amp;";break;case'"':ne+="&quot;";break;default:ne+=me;break}}return ne},je=function(re){var ne=1;re=typeof re>"u"?ne*2:re;var ce=$.getModuleCount()*ne+re*2,me=re,_e=ce-re,Ne,T,oe,J,V,H={"██":"█","█ ":"▀"," █":"▄","  ":" "},ee={"██":"▀","█ ":"▀"," █":" ","  ":" "},ye="";for(Ne=0;Ne<ce;Ne+=2){for(oe=Math.floor((Ne-me)/ne),J=Math.floor((Ne+1-me)/ne),T=0;T<ce;T+=1)V="█",me<=T&&T<_e&&me<=Ne&&Ne<_e&&$.isDark(oe,Math.floor((T-me)/ne))&&(V=" "),me<=T&&T<_e&&me<=Ne+1&&Ne+1<_e&&$.isDark(J,Math.floor((T-me)/ne))?V+=" ":V+="█",ye+=re<1&&Ne+1>=_e?ee[V]:H[V];ye+=`
156`}return ce%2&&re>0?ye.substring(0,ye.length-ce-1)+Array(ce+1).join("▀"):ye.substring(0,ye.length-1)};return $.createASCII=function(re,ne){if(re=re||1,re<2)return je(ne);re-=1,ne=typeof ne>"u"?re*2:ne;var ce=$.getModuleCount()*re+ne*2,me=ne,_e=ce-ne,Ne,T,oe,J,V=Array(re+1).join("██"),H=Array(re+1).join("  "),ee="",ye="";for(Ne=0;Ne<ce;Ne+=1){for(oe=Math.floor((Ne-me)/re),ye="",T=0;T<ce;T+=1)J=1,me<=T&&T<_e&&me<=Ne&&Ne<_e&&$.isDark(oe,Math.floor((T-me)/re))&&(J=0),ye+=J?V:H;for(oe=0;oe<re;oe+=1)ee+=ye+`
157`}return ee.substring(0,ee.length-1)},$.renderTo2dContext=function(re,ne){ne=ne||2;for(var ce=$.getModuleCount(),me=0;me<ce;me++)for(var _e=0;_e<ce;_e++)re.fillStyle=$.isDark(me,_e)?"black":"white",re.fillRect(me*ne,_e*ne,ne,ne)},$};
157i.stringToBytesFuncs={default:function(R){for(var D=[],M=0;M<R.length;M+=1){var L=R.charCodeAt(M);D.push(L&255)}return D}},i.stringToBytes=i.stringToBytesFuncs.default,i.createStringToBytes=function(R,D){var M=(function(){for(var O=C(R),I=function(){var ie=O.read();if(ie==-1)throw"eof";return ie},B=0,k={};;){var q=O.read();if(q==-1)break;var w=I(),$=I(),K=I(),Z=String.fromCharCode(q<<8|w),ae=$<<8|K;k[Z]=ae,B+=1}if(B!=D)throw B+" != "+D;return k})(),L=63;return function(O){for(var I=[],B=0;B<O.length;B+=1){var k=O.charCodeAt(B);if(k<128)I.push(k);else{var q=M[O.charAt(B)];typeof q=="number"?(q&255)==q?I.push(q):(I.push(q>>>8),I.push(q&255)):I.push(L)}}return I}};var s={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},u=(function(){var R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],D=1335,M=7973,L=21522,O={},I=function(B){for(var k=0;B!=0;)k+=1,B>>>=1;return k};return O.getBCHTypeInfo=function(B){for(var k=B<<10;I(k)-I(D)>=0;)k^=D<<I(k)-I(D);return(B<<10|k)^L},O.getBCHTypeNumber=function(B){for(var k=B<<12;I(k)-I(M)>=0;)k^=M<<I(k)-I(M);return B<<12|k},O.getPatternPosition=function(B){return R[B-1]},O.getMaskFunction=function(B){switch(B){case c.PATTERN000:return function(k,q){return(k+q)%2==0};case c.PATTERN001:return function(k,q){return k%2==0};case c.PATTERN010:return function(k,q){return q%3==0};case c.PATTERN011:return function(k,q){return(k+q)%3==0};case c.PATTERN100:return function(k,q){return(Math.floor(k/2)+Math.floor(q/3))%2==0};case c.PATTERN101:return function(k,q){return k*q%2+k*q%3==0};case c.PATTERN110:return function(k,q){return(k*q%2+k*q%3)%2==0};case c.PATTERN111:return function(k,q){return(k*q%3+(k+q)%2)%2==0};default:throw"bad maskPattern:"+B}},O.getErrorCorrectPolynomial=function(B){for(var k=h([1],0),q=0;q<B;q+=1)k=k.multiply(h([1,f.gexp(q)],0));return k},O.getLengthInBits=function(B,k){if(1<=k&&k<10)switch(B){case s.MODE_NUMBER:return 10;case s.MODE_ALPHA_NUM:return 9;case s.MODE_8BIT_BYTE:return 8;case s.MODE_KANJI:return 8;default:throw"mode:"+B}else if(k<27)switch(B){case s.MODE_NUMBER:return 12;case s.MODE_ALPHA_NUM:return 11;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 10;default:throw"mode:"+B}else if(k<41)switch(B){case s.MODE_NUMBER:return 14;case s.MODE_ALPHA_NUM:return 13;case s.MODE_8BIT_BYTE:return 16;case s.MODE_KANJI:return 12;default:throw"mode:"+B}else throw"type:"+k},O.getLostPoint=function(B){for(var k=B.getModuleCount(),q=0,w=0;w<k;w+=1)for(var $=0;$<k;$+=1){for(var K=0,Z=B.isDark(w,$),ae=-1;ae<=1;ae+=1)if(!(w+ae<0||k<=w+ae))for(var ie=-1;ie<=1;ie+=1)$+ie<0||k<=$+ie||ae==0&&ie==0||Z==B.isDark(w+ae,$+ie)&&(K+=1);K>5&&(q+=3+K-5)}for(var w=0;w<k-1;w+=1)for(var $=0;$<k-1;$+=1){var P=0;B.isDark(w,$)&&(P+=1),B.isDark(w+1,$)&&(P+=1),B.isDark(w,$+1)&&(P+=1),B.isDark(w+1,$+1)&&(P+=1),(P==0||P==4)&&(q+=3)}for(var w=0;w<k;w+=1)for(var $=0;$<k-6;$+=1)B.isDark(w,$)&&!B.isDark(w,$+1)&&B.isDark(w,$+2)&&B.isDark(w,$+3)&&B.isDark(w,$+4)&&!B.isDark(w,$+5)&&B.isDark(w,$+6)&&(q+=40);for(var $=0;$<k;$+=1)for(var w=0;w<k-6;w+=1)B.isDark(w,$)&&!B.isDark(w+1,$)&&B.isDark(w+2,$)&&B.isDark(w+3,$)&&B.isDark(w+4,$)&&!B.isDark(w+5,$)&&B.isDark(w+6,$)&&(q+=40);for(var z=0,$=0;$<k;$+=1)for(var w=0;w<k;w+=1)B.isDark(w,$)&&(z+=1);var Y=Math.abs(100*z/k/k-50)/5;return q+=Y*10,q},O})(),f=(function(){for(var R=new Array(256),D=new Array(256),M=0;M<8;M+=1)R[M]=1<<M;for(var M=8;M<256;M+=1)R[M]=R[M-4]^R[M-5]^R[M-6]^R[M-8];for(var M=0;M<255;M+=1)D[R[M]]=M;var L={};return L.glog=function(O){if(O<1)throw"glog("+O+")";return D[O]},L.gexp=function(O){for(;O<0;)O+=255;for(;O>=256;)O-=255;return R[O]},L})();function h(R,D){if(typeof R.length>"u")throw R.length+"/"+D;var M=(function(){for(var O=0;O<R.length&&R[O]==0;)O+=1;for(var I=new Array(R.length-O+D),B=0;B<R.length-O;B+=1)I[B]=R[B+O];return I})(),L={};return L.getAt=function(O){return M[O]},L.getLength=function(){return M.length},L.multiply=function(O){for(var I=new Array(L.getLength()+O.getLength()-1),B=0;B<L.getLength();B+=1)for(var k=0;k<O.getLength();k+=1)I[B+k]^=f.gexp(f.glog(L.getAt(B))+f.glog(O.getAt(k)));return h(I,0)},L.mod=function(O){if(L.getLength()-O.getLength()<0)return L;for(var I=f.glog(L.getAt(0))-f.glog(O.getAt(0)),B=new Array(L.getLength()),k=0;k<L.getLength();k+=1)B[k]=L.getAt(k);for(var k=0;k<O.getLength();k+=1)B[k]^=f.gexp(f.glog(O.getAt(k))+I);return h(B,0).mod(O)},L}var p=(function(){var R=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
157],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],D=function(O,I){var B={};return B.totalCount=O,B.dataCount=I,B},M={},L=function(O,I){switch(I){case l.L:return R[(O-1)*4+0];case l.M:return R[(O-1)*4+1];case l.Q:return R[(O-1)*4+2];case l.H:return R[(O-1)*4+3];default:return}};return M.getRSBlocks=function(O,I){var B=L(O,I);if(typeof B>"u")throw"bad rs block @ typeNumber:"+O+"/errorCorrectionLevel:"+I;for(var k=B.length/3,q=[],w=0;w<k;w+=1)for(var $=B[w*3+0],K=B[w*3+1],Z=B[w*3+2],ae=0;ae<$;ae+=1)q.push(D(K,Z));return q},M})(),g=function(){var R=[],D=0,M={};return M.getBuffer=function(){return R},M.getAt=function(L){var O=Math.floor(L/8);return(R[O]>>>7-L%8&1)==1},M.put=function(L,O){for(var I=0;I<O;I+=1)M.putBit((L>>>O-I-1&1)==1)},M.getLengthInBits=function(){return D},M.putBit=function(L){var O=Math.floor(D/8);R.length<=O&&R.push(0),L&&(R[O]|=128>>>D%8),D+=1},M},_=function(R){var D=s.MODE_NUMBER,M=R,L={};L.getMode=function(){return D},L.getLength=function(B){return M.length},L.write=function(B){for(var k=M,q=0;q+2<k.length;)B.put(O(k.substring(q,q+3)),10),q+=3;q<k.length&&(k.length-q==1?B.put(O(k.substring(q,q+1)),4):k.length-q==2&&B.put(O(k.substring(q,q+2)),7))};var O=function(B){for(var k=0,q=0;q<B.length;q+=1)k=k*10+I(B.charAt(q));return k},I=function(B){if("0"<=B&&B<="9")return B.charCodeAt(0)-48;throw"illegal char :"+B};return L},v=function(R){var D=s.MODE_ALPHA_NUM,M=R,L={};L.getMode=function(){return D},L.getLength=function(I){return M.length},L.write=function(I){for(var B=M,k=0;k+1<B.length;)I.put(O(B.charAt(k))*45+O(B.charAt(k+1)),11),k+=2;k<B.length&&I.put(O(B.charAt(k)),6)};var O=function(I){if("0"<=I&&I<="9")return I.charCodeAt(0)-48;if("A"<=I&&I<="Z")return I.charCodeAt(0)-65+10;switch(I){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+I}};return L},E=function(R){var D=s.MODE_8BIT_BYTE,M=i.stringToBytes(R),L={};return L.getMode=function(){return D},L.getLength=function(O){return M.length},L.write=function(O){for(var I=0;I<M.length;I+=1)O.put(M[I],8)},L},y=function(R){var D=s.MODE_KANJI,M=i.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(I,B){var k=M(I);if(k.length!=2||(k[0]<<8|k[1])!=B)throw"sjis not supported."})("友",38726);var L=M(R),O={};return O.getMode=function(){return D},O.getLength=function(I){return~~(L.length/2)},O.write=function(I){for(var B=L,k=0;k+1<B.length;){var q=(255&B[k])<<8|255&B[k+1];if(33088<=q&&q<=40956)q-=33088;else if(57408<=q&&q<=60351)q-=49472;else throw"illegal char at "+(k+1)+"/"+q;q=(q>>>8&255)*192+(q&255),I.put(q,13),k+=2}if(k<B.length)throw"illegal char at "+(k+1)},O},S=function(){var R=[],D={};return D.writeByte=function(M){R.push(M&255)},D.writeShort=function(M){D.writeByte(M),D.writeByte(M>>>8)},D.writeBytes=function(M,L,O){L=L||0,O=O||M.length;for(var I=0;I<O;I+=1)D.writeByte(M[I+L])},D.writeString=function(M){for(var L=0;L<M.length;
157L+=1)D.writeByte(M.charCodeAt(L))},D.toByteArray=function(){return R},D.toString=function(){var M="";M+="[";for(var L=0;L<R.length;L+=1)L>0&&(M+=","),M+=R[L];return M+="]",M},D},x=function(){var R=0,D=0,M=0,L="",O={},I=function(k){L+=String.fromCharCode(B(k&63))},B=function(k){if(!(k<0)){if(k<26)return 65+k;if(k<52)return 97+(k-26);if(k<62)return 48+(k-52);if(k==62)return 43;if(k==63)return 47}throw"n:"+k};return O.writeByte=function(k){for(R=R<<8|k&255,D+=8,M+=1;D>=6;)I(R>>>D-6),D-=6},O.flush=function(){if(D>0&&(I(R<<6-D),R=0,D=0),M%3!=0)for(var k=3-M%3,q=0;q<k;q+=1)L+="="},O.toString=function(){return L},O},C=function(R){var D=R,M=0,L=0,O=0,I={};I.read=function(){for(;O<8;){if(M>=D.length){if(O==0)return-1;throw"unexpected end of file./"+O}var k=D.charAt(M);if(M+=1,k=="=")return O=0,-1;if(k.match(/^\s$/))continue;L=L<<6|B(k.charCodeAt(0)),O+=6}var q=L>>>O-8&255;return O-=8,q};var B=function(k){if(65<=k&&k<=90)return k-65;if(97<=k&&k<=122)return k-97+26;if(48<=k&&k<=57)return k-48+52;if(k==43)return 62;if(k==47)return 63;throw"c:"+k};return I},N=function(R,D){var M=R,L=D,O=new Array(R*D),I={};I.setPixel=function(w,$,K){O[$*M+w]=K},I.write=function(w){w.writeString("GIF87a"),w.writeShort(M),w.writeShort(L),w.writeByte(128),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(0),w.writeByte(255),w.writeByte(255),w.writeByte(255),w.writeString(","),w.writeShort(0),w.writeShort(0),w.writeShort(M),w.writeShort(L),w.writeByte(0);var $=2,K=k($);w.writeByte($);for(var Z=0;K.length-Z>255;)w.writeByte(255),w.writeBytes(K,Z,255),Z+=255;w.writeByte(K.length-Z),w.writeBytes(K,Z,K.length-Z),w.writeByte(0),w.writeString(";")};var B=function(w){var $=w,K=0,Z=0,ae={};return ae.write=function(ie,P){if(ie>>>P)throw"length over";for(;K+P>=8;)$.writeByte(255&(ie<<K|Z)),P-=8-K,ie>>>=8-K,Z=0,K=0;Z=ie<<K|Z,K=K+P},ae.flush=function(){K>0&&$.writeByte(Z)},ae},k=function(w){for(var $=1<<w,K=(1<<w)+1,Z=w+1,ae=q(),ie=0;ie<$;ie+=1)ae.add(String.fromCharCode(ie));ae.add(String.fromCharCode($)),ae.add(String.fromCharCode(K));var P=S(),z=B(P);z.write($,Z);var Y=0,U=String.fromCharCode(O[Y]);for(Y+=1;Y<O.length;){var ue=String.fromCharCode(O[Y]);Y+=1,ae.contains(U+ue)?U=U+ue:(z.write(ae.indexOf(U),Z),ae.size()<4095&&(ae.size()==1<<Z&&(Z+=1),ae.add(U+ue)),U=ue)}return z.write(ae.indexOf(U),Z),z.write(K,Z),z.flush(),P.toByteArray()},q=function(){var w={},$=0,K={};return K.add=function(Z){if(K.contains(Z))throw"dup key:"+Z;w[Z]=$,$+=1},K.size=function(){return $},K.indexOf=function(Z){return w[Z]},K.contains=function(Z){return typeof w[Z]<"u"},K};return I},F=function(R,D,M){for(var L=N(R,D),O=0;O<D;O+=1)for(var I=0;I<R;I+=1)L.setPixel(I,O,M(I,O));var B=S();L.write(B);for(var k=x(),q=B.toByteArray(),w=0;w<q.length;w+=1)k.writeByte(q[w]);return k.flush(),"data:image/gif;base64,"+k};return i})();(function(){n.stringToBytesFuncs["UTF-8"]=function(i){function s(l){for(var c=[],u=0;u<l.length;u++){var f=l.charCodeAt(u);f<128?c.push(f):f<2048?c.push(192|f>>6,128|f&63):f<55296||f>=57344?c.push(224|f>>12,128|f>>6&63,128|f&63):(u++,f=65536+((f&1023)<<10|l.charCodeAt(u)&1023),c.push(240|f>>18,128|f>>12&63,128|f>>6&63,128|f&63))}return c}return s(i)}})(),(function(i){e.exports=i()})(function(){return n})})(ig)),ig.exports}var K4=Y4();const V4=Ro(K4);function sU(e,t=4){const n=V4(0,"M");return n.addData(e),n.make(),n.createSvgTag({cellSize:t,margin:0})}function Gr(e){try{return typeof localStorage>"u"?null:localStorage.getItem(e)}catch{return null}}function ur(e,t){try{return typeof localStorage>"u"?!1:(localStorage.setItem(e,t),!0)}catch{return!1}}function dr(e){try{return typeof localStorage>"u"?!1:(localStorage.removeItem(e),!0)}catch{return!1}}function CS(e,t,n={}){const i=Gr(e);if(!i)return t;try{return JSON.parse(i)}catch{return n.removeInvalid&&dr(e),t}}function Lv(e,t){try{return ur(e,JSON.stringify(t))}catch{return!1}}const Nm="dactyl_theme";function NS(){const e=Gr(Nm);return e==="dark"?!0:e==="light"?!1:null}function OS(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function oE(){document.documentElement.classList.toggle("dark",NS()??OS())}function oU(){oE(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{NS()===null&&oE()})}
157function Om(){return document.documentElement.classList.contains("dark")}function Z4(){const e=!Om();e===OS()?dr(Nm):ur(Nm,e?"dark":"light"),document.documentElement.classList.toggle("dark",e)}function lU(){const[e,t]=Q.useState(null);return Q.useEffect(()=>t(Om()),[]),G.jsxs("button",{"data-theme-toggle":"",title:"Toggle theme","aria-label":"Dark theme","aria-pressed":e??void 0,onClick:()=>{Z4(),t(Om())},className:"grid h-9 w-9 cursor-pointer place-items-center overflow-hidden rounded-full border border-line text-muted transition-colors duration-300 hover:bg-soft hover:text-fg",children:[G.jsx("span",{"data-theme-icon":"light",className:"themeIcon place-items-center",children:G.jsx(_O,{size:19,strokeWidth:1.75})}),G.jsx("span",{"data-theme-icon":"dark",className:"themeIcon place-items-center",children:G.jsx(hO,{size:19,strokeWidth:1.75})})]})}const X4=80,W4=32*1024,zv="dactyl_project_create_recovery_v1";function Q4(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&(typeof t.model=="string"||t.model===null)&&(t.mode==="legacy"||t.mode==="v2")&&typeof t.prompt=="string"}function cU(e,t){try{const n=e.getItem(zv);if(!n)return null;const i=JSON.parse(n);if((i==null?void 0:i.version)===1&&i.ownerId===t&&Q4(i.intent)&&typeof i.error=="string")return{intent:i.intent,error:i.error}}catch{}return J4(e),null}function uU(e,t,n){try{const i={version:1,ownerId:t,...n};e.setItem(zv,JSON.stringify(i))}catch{}}function J4(e){try{e.removeItem(zv)}catch{}}function dU(e){if(!e)return"project-create-fresh";const{intent:t,error:n}=e;return JSON.stringify([t.id,t.name,t.model,t.mode,t.prompt,n])}function fU(e,t,n){if(e&&e.model===t.model&&e.mode===t.mode&&e.prompt===t.prompt&&(t.name===void 0||e.name===t.name))return e;const i={prompt:t.prompt,model:t.model,mode:t.mode,name:t.name??t5(t.prompt)};return{id:n(),...i}}function hU(){let e=0,t=null;return{begin(n){const i=++e;return t={generation:i,token:n},i},invalidate(){e++,t=null},isWaiting(n,i){return(t==null?void 0:t.generation)===n&&t.token===i},consume(n,i){return(t==null?void 0:t.generation)!==n||t.token!==i?!1:(t=null,!0)},current(){return t}}}const e5="Your description is too long. Shorten it to 32,768 characters or fewer before building.";function RS(e){return e.trim()?e.length>W4?e5:null:"Describe the app you want before building."}function lE(e){const t=e.trim(),n=RS(t);return n?{ok:!1,error:n,draft:e}:{ok:!0,prompt:t}}function t5(e){const t=new Set(["a","an","the","with","and","for","that","app","my","of","to","in","on","i","want","make","build","create"]);return(e.replace(/[^a-zA-Z0-9 ]/g," ").split(/\s+/).filter(s=>s&&!t.has(s.toLowerCase())).slice(0,2).map(s=>s[0].toUpperCase()+s.slice(1).toLowerCase()).join("")||"MyApp").slice(0,X4)}const cE=64*1024,MS=["txt","md","markdown","rst","log","csv","tsv","json","jsonc","yaml","yml","toml","ini","env","conf","cfg","xml","html","htm","svg","css","scss","
157js","jsx","mjs","cjs","ts","tsx","swift","kt","java","py","rb","go","rs","c","h","cpp","hpp","cs","php","sh","bash","zsh","fish","sql","graphql","gql","diff","patch"],n5={markdown:"md",htm:"html",yml:"yaml",jsonc:"json",mjs:"js",cjs:"js",jsx:"js",tsx:"ts",bash:"sh",zsh:"sh",fish:"sh",patch:"diff",gql:"graphql",env:"ini",conf:"ini",cfg:"ini"},DS="image/*",IS=MS.map(e=>"."+e).join(",")+",text/plain,text/markdown,text/csv,application/json",pU=DS+","+IS;function Rm(e){const t=e.lastIndexOf(".");return t<0?"":e.slice(t+1).toLowerCase()}function LS(e){return!!e&&e.startsWith("image/")}function r5(e,t){return LS(t)?!1:MS.includes(Rm(e))?!0:!!t&&(t.startsWith("text/")||t==="application/json")}function i5(e){if(e.includes("\0"))return!0;let t=0;for(const n of e)n==="�"&&t++;return t>0&&t/e.length>.01}function a5(e,t){if(t.length>cE)return{ok:!1,error:`${e} is too large to attach (limit ${Math.round(cE/1024)}KB).`};const n=new TextDecoder("utf-8").decode(t);return i5(n)?{ok:!1,error:`${e} isn't a text file — attach an image, or paste the part you want the agent to read.`}:{ok:!0,file:{name:e,text:n}}}async function s5(e){try{return a5(e.name,new Uint8Array(await e.arrayBuffer()))}catch{return{ok:!1,error:`${e.name} could not be read.`}}}function gU(e){const t=e.indexOf(",");if(!e.startsWith("data:")||t<0)return null;try{const n=e.slice(0,t).includes(";base64")?atob(e.slice(t+1)):decodeURIComponent(e.slice(t+1)),i=new Uint8Array(n.length);for(let s=0;s<n.length;s++)i[s]=n.charCodeAt(s);return i}catch{return null}}const o5=/<!--dactyl:file name="([^"]*)"-->/,Mm="<!--/dactyl:file-->",l5=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),c5=e=>e.replace(/&quot;/g,'"').replace(/&amp;/g,"&");function u5(e,t){if(!t.length)return e;const n=t.map(i=>{const s=n5[Rm(i.name)]??Rm(i.name),l="`".repeat(Math.max(3,d5(i.text)+1));return`<!--dactyl:file name="${l5(i.name)}"-->Attached file: ${i.name}
158${l}${s}
159${i.text}
160${l}`+Mm});return e?`${e}
161
162${n.join(`
163
164`)}`:n.join(`
165
166`)}function d5(e){let t=0;for(const n of e.match(/`+/g)??[])t=Math.max(t,n.length);return t}function zS(e){const t=[];let n=e;for(;;){const i=o5.exec(n);if(!i)break;const s=n.indexOf(Mm,i.index+i[0].length);if(s===-1)break;const l=c5(i[1]);t.push({name:l,text:f5(n.slice(i.index+i[0].length,s))}),n=n.slice(0,i.index)+n.slice(s+Mm.length)}return{text:t.length?n.trim():n,files:t}}function f5(e){var l;const t=e.split(`
167`),n=t[1]??"",i=(l=/^(`{3,})/.exec(n))==null?void 0:l[1];if(!i)return"";const s=t.lastIndexOf(i);return s>1?t.slice(2,s).join(`
168`):""}function mU(e){const t=zS(e);return{text:t.text,files:t.files.map(n=>n.name)}}const h5=45,p5=22,BS=2e3,Dm=400,PS=(e=0)=>({phrase:e,chars:0,erasing:!1});function g5(e,t){if(!e.length)return{state:t,text:"",delayMs:Dm};const n=e[t.phrase%e.length]??"",i=l=>({state:PS(l),text:"",delayMs:Dm});if(!n.length)return i((t.phrase+1)%e.length);if(!t.erasing){const l=t.chars+1,c=l>=n.length;return{state:{...t,chars:l,erasing:c},text:n.slice(0,l),delayMs:c?BS:h5}}const s=t.chars-1;return s<=0?i((t.phrase+1)%e.length):{state:{...t,chars:s},text:n.slice(0,s),delayMs:p5}}function m5(e,t,n,i,s){const[l,c]=Q.useState(""),[u,f]=Q.useState(0),[h,p]=Q.useState(!1),[g,_]=Q.useState(null),[v,E]=Q.useState(!1),y=wO("
168(prefers-reduced-motion: reduce)"),S=Q.useRef(s??!1);return Q.useEffect(()=>{S.current=s??!1},[s]),Q.useEffect(()=>{if(!g&&!i)return;if(typeof IntersectionObserver!="function"){E(!0);return}const x=new Map,C=new IntersectionObserver(N=>{for(const F of N)x.set(F.target,F.isIntersecting);E([...x.values()].some(Boolean))});return g&&C.observe(g),i&&C.observe(i),()=>C.disconnect()},[g,i]),Q.useEffect(()=>{if(!t||!v||y||!e.length){p(!1),c("");return}let x=PS(n??Math.floor(Math.random()*e.length)),C;p(!0);const N=()=>{if(S.current){C=window.setTimeout(N,250);return}const F=g5(e,x);x=F.state,c(F.text),f(F.state.phrase%e.length),C=window.setTimeout(N,F.delayMs)};if(n!==void 0){const F=e[n%e.length]??"";x={phrase:n,chars:F.length,erasing:!0},c(F),f(n%e.length),C=window.setTimeout(N,BS/2)}else c(""),f(x.phrase),C=window.setTimeout(N,Dm);return()=>clearTimeout(C)},[t,v,y,e,n]),{text:l,phrase:u,active:h,ref:_}}const uE=e=>({base:e,final:"",interim:""}),vc=(e,t)=>{const n=e.replace(/\s+$/,""),i=t.replace(/^\s+/,"");return n?i?`${n} ${i}`:n:i};function v5(e,t){let n=e.final,i="";for(const s of t)s.isFinal?n=vc(n,s.transcript):i=vc(i,s.transcript);return{base:e.base,final:n,interim:i}}const dE=e=>vc(vc(e.base,e.final),e.interim),b5=e=>({base:e.base,final:vc(e.final,e.interim),interim:""}),fE=()=>{if(typeof window>"u")return null;const e=window;return e.SpeechRecognition??e.webkitSpeechRecognition??null},_5={"not-allowed":"Microphone access was blocked. Enable it in your browser settings to dictate.","service-not-allowed":"Microphone access was blocked. Enable it in your browser settings to dictate.",network:"Speech recognition couldn't reach the network. Type your idea instead.","audio-capture":"No microphone found."};function y5(e){const[t,n]=Q.useState(!1),[i,s]=Q.useState(!1),[l,c]=Q.useState(null),u=Q.useRef(null),f=Q.useRef(uE("")),h=Q.useRef(e);h.current=e,Q.useEffect(()=>n(!!fE()),[]);const p=Q.useCallback(()=>{const _=u.current;if(!_)return null;_.onresult=_.onerror=_.onend=null,u.current=null,f.current=b5(f.current);const v=dE(f.current);h.current(v),s(!1);try{_.stop()}catch{}return v},[]),g=Q.useCallback(_=>{const v=fE();if(!v||u.current)return;const E=new v;E.lang=document.documentElement.lang||navigator.language||"en-US",E.continuous=!0,E.interimResults=!0,E.onresult=y=>{const S=[];for(let x=y.resultIndex;x<y.results.length;x++)S.push({transcript:y.results[x][0].transcript,isFinal:y.results[x].isFinal});f.current=v5(f.current,S),h.current(dE(f.current))},E.onerror=y=>{y.error!=="no-speech"&&y.error!=="aborted"&&c(_5[y.error]??"Dictation stopped unexpectedly."),p()},E.onend=()=>p(),f.current=uE(_),c(null),u.current=E,s(!0);try{E.start()}catch{u.current=null,s(!1)}},[p]);return Q.useEffect(()=>()=>{var _;return(_=u.current)==null?void 0:_.abort()},[]),{supported:t,listening:i,error:l,start:g,stop:p,clearError:()=>c(null)}}function E5({onFiles:e,classes:t,allowImages:n=!0,imageHint:i,disabled:s}){const[l,c]=Q.useState(!1),u=Q.useRef(null),f=Q.useRef(null),h=Q.useRef(null),p=Q.useId();Q.useEffect(()=>{if(!l)return;const v=y=>{var S;(S=u.current)!=null&&S.contains(y.target)||c(!1)},E=y=>{y.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",v),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",E)}},[l]);const g=v=>{c(!1),v==null||v.click()},_=v=>{const E=[...v.target.files??[]];v.target.value="",E.length&&e(E)};return G.jsxs("div",{className:"relative flex",ref:u,children:[G.jsx("input",{ref:f,type:"file",accept:DS,multiple:!0,className:"hidden","aria-hidden":"true",tabIndex:-1,onChange:_}),G.jsx("input",{ref:h,type:"file",accept:IS,multiple:!0,className:"hidden","aria-hidden":"true",tabIndex:-1,onChange:_}),G.jsx("button",{type:"button",onClick:()=>c(v=>!v),disabled:s,"aria-haspopup":"menu","aria-expanded":l,"aria-controls":l?p:void 0,"aria-label":"Add an attachment",className:t.trigger,children:G.jsx(vO,{size:16,strokeWidth:1.75,"aria-hidden":"true"})}),l&&G.jsxs("div",{id:p,role:"menu",className:"absolute bottom-full left-0 z-30 mb-1.5 min-w-[190px] "+t.menu,children:[G.jsxs("button",{type:"button",role:"menuitem",disabled:!n,title:n?void 0:i,onClick:()=>g(f.current),className:t.item,children:[G.jsx(sO,{size:15,strokeWidth:1.75,"aria-hidden":"true"}),G.jsx("span",{children:"Upload an image"})]}),G.jsxs("button",{type:"button",role:"menuitem",onClick:()=>g(h.current),className:t.item,children:[G.jsx(iO,{size:15,strokeWidth:1.75,"aria-hidden":"true"}),G.jsx("span",{children:"Upload a file"})]})]})]})}const x5="tipBubble pointer-events-none z-20 rounded-md bg-neutral-900 px-2 py-1 text-xs font-medium text-white opacity-0 transition-opacity group-hover/tip:opacity-100 group-focus-within/tip:opacity-100 dark:bg-neutral-100 dar
168k:text-neutral-900";function w5(e){const t="--tip-"+Q.useId().replace(/[^a-zA-Z0-9-]/g,"");return G.jsxs("span",{className:"tipWrap group/tip flex",style:{anchorName:t},children:[e.children,G.jsx("span",{role:"tooltip",style:{positionAnchor:t},className:`${x5} ${e.bubbleClassName??"whitespace-nowrap"}`,children:e.label})]})}function S5({listening:e,label:t,className:n,onClick:i}){return G.jsx(w5,{label:t,children:G.jsx("button",{type:"button",onClick:i,"aria-pressed":e,"aria-label":t,className:n,children:G.jsx(dO,{size:16,strokeWidth:1.75,"aria-hidden":"true"})})})}const k5="/docs/prompting";function T5(e){return G.jsx("a",{href:k5,target:"_blank",rel:"noopener noreferrer","aria-label":"Prompting tips (opens in a new tab)",title:(e.title??"Prompting tips — how to describe your app so the agent gets it right")||void 0,className:e.className,children:e.children??"?"})}const A5=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent)?"⌘↵":"Ctrl+↵",C5="Describe the app you want (e.g.: a sleep tracker with a stacked chart of the night's stages)",N5="Design it like a shipped Apple-design-award app, not a demo: system fonts with real hierarchy (largeTitle down to footnote), one restrained accent against neutral greys, .ultraThinMaterial over content instead of solid fills, an 8pt spacing grid, generous whitespace, hairline dividers instead of card borders. No emoji, no rainbow icon circles, no drop shadows on everything. Dark mode is first-class, not an afterthought.",US=[{label:"Portfolio",teaser:"A portfolio chart I scrub with my finger...",brief:"An investment tracker built around a full-width line chart you scrub with a finger, so every number on screen moves in sync with the touch point. Red and green appear only at the moment a value changes. Holdings are a plain typographic table with no cards at all."},{label:"Wallpaper studio",teaser:"A generative wallpaper studio I can steer...",brief:"A generative wallpaper studio: flowing gradient fields drawn with Canvas and a Metal shader, steered by two control points you drag around the canvas. Live full-bleed preview with the controls on a glass bottom sheet."},{label:"City builder",teaser:"An isometric city I build tile by tile...",brief:"An isometric SceneKit city builder on a tile grid. Pinch to zoom, drag to pan, tap a tile to place a building that drops in with a spring animation. Flat-shaded low-poly geometry under one warm sun light and a soft ambient fill."},{label:"Departure board",teaser:"A transit board that flips through departures...",brief:"A transit departure board that flips through upcoming departures with a mechanical split-flap animation, each character flipping independently, with the stagger you'd see on a real board. Monospaced condensed type, amber on near-black, like an airport hall."},{label:"Bookshelf",teaser:"A reading log that looks like a real shelf...",brief:"A reading log where the library is a rendered wall of book spines, with spine widths derived from page count and colors from each cover. Tapping a spine expands it into the book's detail with a matched-geometry transition. Not a grid of cover thumbnails."},{label:"Sleep stages",teaser:"A sleep tracker that charts the stages of my night...",brief:"A sleep tracker whose main screen is a stacked-area Swift Chart of sleep stages across the night: deep, core and REM in three tones of one hue. Drag to scrub the chart and read any minute of it. Everything else is a single quiet scrolling column of stats."},{label:"Light meter",teaser:"A camera light meter with a dial I turn...",brief:"A photographer's light meter: live viewfinder, a spot-metered EV reading, and an aperture/shutter dial you rotate with a circular drag. Instrument aesthetic: thin tick marks, one hairline needle, no chrome or skeuomorphic leather."},{label:"Weather scene",teaser:"Weather rendered as real rain behind the numbers...",brief:"A weather app that renders the current condition as a SpriteKit particle scene behind the numbers: real falling rain, drifting fog, sun haze. Temperature in 96pt light type, the forecast as a single horizontal strip. The scene is the background, so it must never fight the text for legibility."},{label:"Run map",teaser:"A run tracker with an elevation profile...",brief:"A run tracker with the route drawn on a muted MapKit terrain style, an elevation profile ribbon beneath it, and pace shown as a color gradient along the path itself. Stats live in a floating glass bar over the map, not in a table below it."},{label:"Drawing race",teaser:"A two-player drawing game over the local network...",brief:"A two-player drawing game over the local network: one player draws, the other guesses, with strokes syncing live between the two devices and a shared round timer. Full-bleed canvas, controls only where they're needed."}],O5=US.map(e=>e.teaser),R5=US.slice(0,6),hE=4,pE=4,M5={workspace:{shell:"rounded-2xl border border-line bg-card",divider:"border-t border-line",hint:"text-xs text-muted",tips:"border-line text-muted hover:bg-soft hover:text-fg",submit:"cursor-pointer rounded-full bg-accent px-5 py-2 text-sm font-semibold text-accent-fg transition hover:brightness-110 disabled:cursor-default disabled:bg-line disabled:text-muted disabled:hover:brightness-100",mic:"cursor-pointer rounded-full border border-line p-[9px] text-muted transition-colors hover:border-accent hover:text-fg",micOn:"cursor-pointer rounded-full border border-line p-[9px] text-red-600 motion-safe:animate-pulse",pickerHint:"text-muted",attach:{trigger:"cursor-pointer rounded-full border border-line p-[9px] text-muted transition-colors hover:border-accent hover:text-fg disabled:cursor-default disabled:opacity-50",menu:"rounded-xl border border-line bg-card p-1 shadow-lg",item:"flex w-full cursor-pointer items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm text-fg transition-colors hover:bg-soft disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent"},thumb:"border border-line",chip:"inline-flex max-w-[220px] items-center gap-1.5 rounded-lg border border-line bg-soft px-2 py-1 text-xs text-muted",chipX:"cursor-pointer text-sm leading-none text-muted hover:text-fg"},marketing:{shell:"rounded-2xl border border-edge bg-surface-card",divider:"border-t border-edge-soft",hint:"text-xs text-text-subtle",tips:"border-edge text-text-subtle hover:border-accent hover:text-accent",submit:"cursor-pointer rounded-full bg-accent px-5 py-2 text-sm font-medium text-white transition hover:brightness-110 disabled:cursor-default disabled:bg-edge disabled:text-text-subtle disabled:hover:brightness-100",mic:"cursor-pointer rounded-full border border-edge p-[9px] text-text-subtle transition-colors hover:border-accent hover:text-accent",micOn:"cursor-pointer rounded-full border border-edge p-[9px] text-red-600 motion-safe:animate-pulse",pickerHint:"text-text-subtle text-sm",attach:{trigger:"cursor-pointer rounded-full border border-edge p-[9px] text-text-subtle transition-colors hover:border-accent hover:text-accent disabled:cursor-default disabled:opacity-50",menu:"rounded-xl border border-edge bg-surface-card p-1 shadow-lg",item:"flex w-full cursor-pointer items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-sm text-text-muted transition-colors hover:bg-surface-tint hover:text-accent disabled:cursor-default disabled:opacity-50 disabled:hover:bg-transparent"},thumb:"border border-edge",chip:"inline-flex max-w-[220px] items-center gap-1.5 rounded-lg border border-edge bg-surface-tint px-2 py-1 text-xs text-text-muted",chipX:"cursor-pointer text-sm leading-none text-text-subtle hover:text-accent"}};let ag=0;const D5=e=>
168new Promise(t=>{const n=new FileReader;n.onload=()=>t(typeof n.result=="string"?n.result:null),n.onerror=()=>t(null),n.readAsDataURL(e)});function vU(e){const t=M5[e.tone??"workspace"],n=e.align==="left",i=n?"":"mx-auto",s=n?"text-left":"text-center",l=n?"justify-start":"justify-center",[c]=Q.useState(()=>zS(e.initialPrompt??"")),[u,f]=Q.useState(c.text),[h,p]=Q.useState(e.initialError??""),[g,_]=Q.useState([]),[v,E]=Q.useState(()=>c.files.map(B=>({...B,id:`file-${++ag}`}))),y=Q.useMemo(()=>g.map(B=>({data:B.dataUrl.slice(B.dataUrl.indexOf(",")+1),mimeType:B.mimeType})),[g]),{onDraftChange:S}=e;Q.useEffect(()=>{S==null||S(u,y)},[S,u,y]);const x=y5(f),C=Q.useRef(null),N=B=>{const k=`${B.brief}
169
170${N5}`;f(k),p("");const q=C.current;q&&(q.focus(),q.setSelectionRange(k.length,k.length),q.scrollTop=q.scrollHeight)},F=x.listening?"Stop dictating":"Dictate your idea",R=m5(O5,!!e.rotatePlaceholder&&!u&&!x.listening,e.onRotate?0:void 0,e.rotateCompanion,e.rotatePaused),{onRotate:D}=e;Q.useEffect(()=>{D==null||D(R.active?R.phrase:null)},[D,R.active,R.phrase]);const M=async B=>{const k=[],q=[];let w="";for(const Z of B)if(LS(Z.type)){const ae=await D5(Z);if(!ae){w||(w=`${Z.name} could not be read.`);continue}k.push({id:`img-${++ag}`,name:Z.name,mimeType:Z.type,dataUrl:ae})}else if(r5(Z.name,Z.type)){const ae=await s5(Z);if(!ae.ok){w||(w=ae.error);continue}q.push({...ae.file,id:`file-${++ag}`})}else w||(w=`${Z.name} isn't something the agent can read — attach an image or a text file.`);const $=Math.max(0,hE-g.length),K=Math.max(0,pE-v.length);k.length>$&&(w||(w=`You can attach up to ${hE} images.`)),q.length>K&&(w||(w=`You can attach up to ${pE} files.`)),k.length&&_(Z=>[...Z,...k.slice(0,$)]),q.length&&E(Z=>[...Z,...q.slice(0,K)]),p(w)},L=()=>{const B=(x.listening?x.stop():null)??u,k=lE(B);if(!k.ok){p(k.error);return}const q=lE(u5(k.prompt,v));if(!q.ok){p(q.error);return}p(""),e.onPrompt(q.prompt,y)},O=g.length+v.length>0,I=G.jsxs("div",{className:"@container",children:[G.jsxs("div",{className:"mt-8 "+s,children:[G.jsx("div",{className:"mb-1.5 text-2xs uppercase font-semibold "+t.pickerHint,children:"Example prompts"}),G.jsx("div",{className:"flex flex-wrap items-center gap-1 text-xs "+l,children:R5.map((B,k)=>G.jsx("button",{onClick:()=>N(B),className:(k>=5?"hidden @[48rem]:inline-block ":"")+"composerChip cursor-pointer rounded-full border px-3 py-1 transition-colors "+t.tips,type:"button",children:B.label},B.label))})]}),G.jsxs("div",{className:"mt-4 "+s,children:[G.jsx("div",{className:"mb-1.5 text-2xs uppercase font-semibold "+t.pickerHint,children:"Starter templates"}),G.jsx("div",{className:"flex flex-wrap items-center gap-1 text-xs "+l,children:Iv.map(B=>G.jsx("button",{onClick:()=>e.onExample(B.name),className:"composerChip cursor-pointer rounded-full border px-3 py-1 transition-colors "+t.tips,type:"button",children:B.label},B.id))})]})]});return G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:t.shell,ref:R.ref,children:[O&&G.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 px-3 pt-3",children:[g.map(B=>G.jsxs("span",{className:"relative block h-16 w-16 overflow-hidden rounded-lg "+t.thumb,children:[G.jsx("img",{src:B.dataUrl,alt:B.name,className:"block h-full w-full object-cover"}),G.jsx("button",{type:"button","aria-label":`Remove ${B.name}`,onClick:()=>_(k=>k.filter(q=>q.id!==B.id)),className:"absolute top-0.5 right-0.5 grid h-[18px] w-[18px] cursor-pointer place-items-center rounded-full bg-black/60 text-xs leading-none text-white hover:bg-black/80",children:"×"})]},B.id)),v.map(B=>G.jsxs("span",{className:t.chip,title:B.name,children:[G.jsx("span",{className:"truncate",children:B.name}),G.jsx("button",{type:"button","aria-label":`Remove ${B.name}`,onClick:()=>E(k=>k.filter(q=>q.id!==B.id)),className:t.chipX,children:"×"})]},B.id))]}),G.jsx("textarea",{ref:C,value:u,onChange:B=>{f(B.target.value),h&&p("")},onKeyDown:B=>{B.key==="Enter"&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),L())},rows:3,autoFocus:e.autoFocus,readOnly:x.listening,"aria-label":"Describe the app you want",placeholder:x.listening?"Listening…":R.active?R.text:C5,className:"noFocusRing field-sizing-content max-h-[40dvh] min-h-[100px] w-full resize-none bg-transparent px-4 py-3.5 text-base outline-none placeholder:text-muted [scrollbar-color:color-mix(in_srgb,var(--fg)_20%,transparent)_transparent] [scrollbar-width:thin]"}),G.jsxs("div",{className:`flex items-center justify-between px-3 py-2.5 ${t.divider}`,children:[G.jsxs("div",{className:"flex items-center gap-3",children:[G.jsx(E5,{classes:t.attach,onFiles:B=>void M(B),disabled:x.listening}),e.modelPicker]}),G.jsxs("div",{className:"flex items-center gap-2",children:[G.jsx("span",{className:t.hint,children:x.listening?"Listening — click the mic to stop":`${A5} to send`}),x.supported&&G.jsx(S5,{listening:x.listening,label:F,className:x.listening?t.micOn:t.mic,onClick:()=>x.listening?x.stop():x.start(u)}
170),G.jsx("button",{onClick:L,disabled:!u.trim(),className:t.submit,children:"Build it"})]})]})]}),(h||x.error)&&G.jsx("p",{role:"alert",className:"mt-2 px-1 text-sm text-red-600",children:h||x.error}),!e.hideTips&&G.jsxs(T5,{className:`${i} mt-6 flex w-max items-center gap-1 rounded-full border px-1 pr-1.5 py-0.5 text-2xs no-underline transition-colors `+t.tips,children:[G.jsx("span",{className:"grid size-3.5 place-items-center rounded-full border border-current text-[9px] leading-none font-semibold","aria-hidden":!0,children:"?"}),"Prompting tips"]}),!e.hideExamples&&e.collapseExamples&&G.jsxs("details",{className:"group mt-6 "+s,children:[G.jsxs("summary",{className:"cursor-pointer list-none text-xs marker:content-none select-none "+t.pickerHint,children:[G.jsxs("span",{className:"group-open:hidden",children:["Need inspiration?"," ",G.jsx("span",{className:"underline underline-offset-2",children:"Example prompts & starter templates"})," ","›"]}),G.jsxs("span",{className:"hidden group-open:inline",children:[G.jsx("span",{className:"underline underline-offset-2",children:"Example prompts & starter templates"})," ","⌄"]})]}),I]}),!e.hideExamples&&!e.collapseExamples&&I]})}function I5(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const L5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,z5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,B5={};function gE(e,t){return(B5.jsx?z5:L5).test(e)}const P5=/[ \t\n\f\r]/g;function U5(e){return typeof e=="object"?e.type==="text"?mE(e.value):!1:mE(e)}function mE(e){return e.replace(P5,"")===""}class Sc{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Sc.prototype.normal={};Sc.prototype.property={};Sc.prototype.space=void 0;function FS(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Sc(n,i,t)}function Im(e){return e.toLowerCase()}class fr{constructor(t,n){this.attribute=n,this.property=t}}fr.prototype.attribute="";fr.prototype.booleanish=!1;fr.prototype.boolean=!1;fr.prototype.commaOrSpaceSeparated=!1;fr.prototype.commaSeparated=!1;fr.prototype.defined=!1;fr.prototype.mustUseProperty=!1;fr.prototype.number=!1;fr.prototype.overloadedBoolean=!1;fr.prototype.property="";fr.prototype.spaceSeparated=!1;fr.prototype.space=void 0;let F5=0;const st=hs(),xn=hs(),Lm=hs(),De=hs(),jt=hs(),us=hs(),Sr=hs();function hs(){return 2**++F5}const zm=Object.freeze(Object.defineProperty({__proto__:null,boolean:st,booleanish:xn,commaOrSpaceSeparated:Sr,commaSeparated:us,number:De,overloadedBoolean:Lm,spaceSeparated:jt},Symbol.toStringTag,{value:"Module"})),sg=Object.keys(zm);class Bv extends fr{constructor(t,n,i,s){let l=-1;if(super(t,n),vE(this,"space",s),typeof i=="number")for(;++l<sg.length;){const c=sg[l];vE(this,sg[l],(i&zm[c])===zm[c])}}}Bv.prototype.defined=!0;function vE(e,t,n){n&&(e[t]=n)}function Do(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new Bv(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Im(i)]=i,n[Im(l.attribute)]=i}return new Sc(t,n,e.space)}const jS=Do({properties:{ariaActiveDescendant:null,ariaAtomic:xn,ariaAutoComplete:null,ariaBusy:xn,ariaChecked:xn,ariaColCount:De,ariaColIndex:De,ariaColSpan:De,ariaControls:jt,ariaCurrent:null,ariaDescribedBy:jt,ariaDetails:null,ariaDisabled:xn,ariaDropEffect:jt,ariaErrorMessage:null,ariaExpanded:xn,ariaFlowTo:jt,ariaGrabbed:xn,ariaHasPopup:null,ariaHidden:xn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jt,ariaLevel:De,ariaLive:null,ariaModal:xn,ariaMultiLine:xn,ariaMultiSelectable:xn,ariaOrientation:null,ariaOwns:jt,ariaPlaceholder:null,ariaPosInSet:De,ariaPressed:xn,ariaReadOnly:xn,ariaRelevant:null,ariaRequired:xn,ariaRoleDescription:jt,ariaRowCount:De,ariaRowIndex:De,ariaRowSpan:De,ariaSelected:xn,ariaSetSize:De,ariaSort:null,ariaValueMax:De,ariaValueMin:De,ariaValueNow:De,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $S(e,t){return t in e?e[t]:t}function HS(e,t){return $S(e,t.toLowerCase())}const j5=Do({attributes:{acceptcharset:"accept-charset",classname:"
170class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:us,acceptCharset:jt,accessKey:jt,action:null,allow:null,allowFullScreen:st,allowPaymentRequest:st,allowUserMedia:st,alpha:st,alt:null,as:null,async:st,autoCapitalize:null,autoComplete:jt,autoFocus:st,autoPlay:st,blocking:jt,capture:null,charSet:null,checked:st,cite:null,className:jt,closedBy:null,colorSpace:null,cols:De,colSpan:De,command:null,commandFor:null,content:null,contentEditable:xn,controls:st,controlsList:jt,coords:De|us,crossOrigin:null,data:null,dateTime:null,decoding:null,default:st,defer:st,dir:null,dirName:null,disabled:st,download:Lm,draggable:xn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:st,formTarget:null,headers:jt,height:De,hidden:Lm,high:De,href:null,hrefLang:null,htmlFor:jt,httpEquiv:jt,id:null,imageSizes:null,imageSrcSet:null,inert:st,inputMode:null,integrity:null,is:null,isMap:st,itemId:null,itemProp:jt,itemRef:jt,itemScope:st,itemType:jt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:st,low:De,manifest:null,max:null,maxLength:De,media:null,method:null,min:null,minLength:De,multiple:st,muted:st,name:null,nonce:null,noModule:st,noValidate:st,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored: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,onScrollEnd: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:st,optimum:De,pattern:null,ping:jt,placeholder:null,playsInline:st,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:st,referrerPolicy:null,rel:jt,required:st,reversed:st,rows:De,rowSpan:De,sandbox:jt,scope:null,scoped:st,seamless:st,selected:st,shadowRootClonable:st,shadowRootCustomElementRegistry:st,shadowRootDelegatesFocus:st,shadowRootMode:null,shadowRootSerializable:st,shape:null,size:De,sizes:null,slot:null,span:De,spellCheck:xn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:De,step:null,style:null,tabIndex:De,target:null,title:null,translate:null,type:null,typeMustMatch:st,useMap:null,value:xn,width:De,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:jt,axis:null,background:null,bgColor:null,border:De,borderColor:null,bottomMargin:De,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:st,declare:st,event:null,face:null,frame:null,frameBorder:null,hSpace:De,leftMargin:De,link:null,longDesc:null,lowSrc:null,marginHeight:De,marginWidth:De,noResize:st,noHref:st,noShade:st,noWrap:st,object:null,profile:null,prompt:null,rev:null,rightMargin:De,rules:null,scheme:null,scrolling:xn,standby:null,summary:null,text:null,topMargin:De,valueType:null,version:null,vAlign:null,vLink:null,vSpace:De,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:st,disablePictureInPicture:st,disableRemotePlayback:st,exportParts:us,part:jt,prefix:null,property:null,results:De,security:null,unselectable:null},space:"html",transform:HS}),$5=Do({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
170dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
170-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sr,accentHeight:De,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:De,amplitude:De,arabicForm:null,ascent:De,attributeName:null,attributeType:null,azimuth:De,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:De,by:null,calcMode:null,capHeight:De,className:jt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:De,diffuseConstant:De,direction:null,display:null,dur:null,divisor:De,dominantBaseline:null,download:st,dx:null,dy:null,edgeMode:null,editable:null,elevation:De,enableBackground:null,end:null,event:null,exponent:De,externalResourcesRequired:null,fill:null,fillOpacity:De,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:us,g2:us,glyphName:us,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:De,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:De,horizOriginX:De,horizOriginY:De,id:null,ideographic:De,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:De,k:De,k1:De,k2:De,k3:De,k4:De,kernelMatrix:Sr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:De,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:De,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose: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,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,482 bytes, lines 170-171
170Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:De,overlineThickness:De,paintOrder:null,panose1:null,path:null,pathLength:De,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:jt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:De,pointsAtY:De,pointsAtZ:De,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sr,rev:Sr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sr,requiredFeatures:Sr,requiredFonts:Sr,requiredFormats:Sr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:De,specularExponent:De,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:De,strikethroughThickness:De,string:null,stroke:null,strokeDashArray:Sr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:De,strokeOpacity:De,strokeWidth:null,style:null,surfaceScale:De,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sr,tabIndex:De,tableValues:null,target:null,targetX:De,targetY:De,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:De,underlineThickness:De,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:De,values:null,vAlphabetic:De,vMathematical:De,vectorEffect:null,vHanging:De,vIdeographic:De,version:null,vertAdvY:De,vertOriginX:De,vertOriginY:De,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:De,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$S}),GS=Do({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),qS=Do({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:HS}),YS=Do({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),H5={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},G5=/[A-Z]/g,bE=/-[a-z]/g,q5=/^data[-\w.:]+$/i;function Y5(e,t){const n=Im(t);let i=t,s=fr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&q5.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(bE,V5);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!bE.test(l)){let c=l.replace(G5,K5);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=Bv}return new s(i,t)}function K5(e){return"-"+e.toLowerCase()}function V5(e){return e.charAt(1).toUpperCase()}const Z5=FS([jS,j5,GS,qS,YS],"html"),Pv=FS([jS,$5,GS,qS,YS],"svg");function X5(e){return e.join(" ").trim()}var ao={},og,_E;function W5(){if(_E)return og;_E=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
171`,h="/",p="*",g="",_="comment",v="declaration";function E(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var C=1,N=1;function F(w){var $=w.match(t);$&&(C+=$.length);var K=w.lastIndexOf(f);N=~K?w.length-K:N+w.length}function R(){var w={line:C,column:N};return function($){return $.position=new D(w),O(),$}}function D(w){this.start=w,this.end={line:C,column:N},this.source=x.source}D.prototype.content=S;function M(w){var $=new Error(x.source+":"+C+":"+N+": "+w);if($.reason=w,$.filename=x.source,$.line=C,$.column=N,$.source=S,!x.silent)throw $}function L(w){var $=w.exec(S);if($){var K=$[0];return F(K),S=S.slice(K.length),$}}function O(){L(n)}function I(w){var $;for(w=w||[];$=B();)$!==!1&&w.push($);return w}function B(){var w=R();if(!(h!=S.charAt(0)||p!=S.charAt(1))){for(var $=2;g!=S.charAt($)&&(p!=S.charAt($)||h!=S.charAt($+1));)++$;if($+=2,g===S.charAt($-1))return M("End of comment missing");var K=S.slice(2,$-2);return N+=2,F(K),S=S.slice($),N+=2,w({type:_,comment:K})}}function k(){var w=R(),$=L(i);if($){if(B(),!L(s))return M("property missing ':'");var K=L(l),Z=w({type:v,property:y($[0].replace(e,g)),value:K?y(K[0].replace(e,g)):g});return L(c),Z}}function q(){var w=[];I(w);for(var $;$=k();)$!==!1&&(w.push($),I(w));return w}return O(),q()}function y(S){return S?S.replace(u,g):g}return og=E,og}var yE;function Q5(){if(yE)return ao;yE=1;var e=ao&&ao.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=n;const t=e(W5());function n(i,s){let l=null;
vendor: 3,608 bytes, line 171
171if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:p}=f;u?s(h,p,f):p&&(l=l||{},l[h]=p)}),l}return ao}var Fl={},EE;function J5(){if(EE)return Fl;EE=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},c=function(h,p){return p.toUpperCase()},u=function(h,p){return"".concat(p,"-")},f=function(h,p){return p===void 0&&(p={}),l(h)?h:(h=h.toLowerCase(),p.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return Fl.camelCase=f,Fl}var jl,xE;function eM(){if(xE)return jl;xE=1;var e=jl&&jl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Q5()),n=J5();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,n.camelCase)(u,l)]=f)}),c}return i.default=i,jl=i,jl}var tM=eM();const nM=Ro(tM),KS=VS("end"),Uv=VS("start");function VS(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function rM(e){const t=Uv(e),n=KS(e);if(t&&n)return{start:t,end:n}}function ac(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wE(e.position):"start"in e||"end"in e?wE(e):"line"in e||"column"in e?Bm(e):""}function Bm(e){return SE(e&&e.line)+":"+SE(e&&e.column)}function wE(e){return Bm(e&&e.start)+"-"+Bm(e&&e.end)}function SE(e){return e&&typeof e=="number"?e:1}class qn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",l={},c=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ac(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qn.prototype.file="";qn.prototype.name="";qn.prototype.reason="";qn.prototype.message="";qn.prototype.stack="";qn.prototype.column=void 0;qn.prototype.line=void 0;qn.prototype.ancestors=void 0;qn.prototype.cause=void 0;qn.prototype.fatal=void 0;qn.prototype.place=void 0;qn.prototype.ruleId=void 0;qn.prototype.source=void 0;const Fv={}.hasOwnProperty,iM=new Map,aM=/[A-Z]/g,sM=new Set(["table","tbody","thead","tfoot","tr"]),oM=new Set(["td","th"]),ZS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=mM(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 5,854 bytes, line 171
171if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=gM(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Pv:Z5,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=XS(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function XS(e,t,n){if(t.type==="element")return cM(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return uM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fM(e,t,n);if(t.type==="mdxjsEsm")return dM(e,t);if(t.type==="root")return hM(e,t,n);if(t.type==="text")return pM(e,t)}function cM(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=Pv,e.schema=s),e.ancestors.push(t);const l=QS(e,t.tagName,!1),c=vM(e,t);let u=$v(e,t);return sM.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!U5(f):!0})),WS(e,c,l,t),jv(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function uM(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}bc(e,t.position)}function dM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bc(e,t.position)}function fM(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=Pv,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:QS(e,t.name,!0),c=bM(e,t),u=$v(e,t);return WS(e,c,l,t),jv(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function hM(e,t,n){const i={};return jv(i,$v(e,t)),e.create(t,e.Fragment,i,n)}function pM(e,t){return t.value}function WS(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function jv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function gM(e,t,n){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?n:t;return u?h(l,c,u):h(l,c)}}function mM(e,t){return n;function n(i,s,l,c){const u=Array.isArray(l.children),f=Uv(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function vM(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Fv.call(t.properties,s)){const l=_M(e,s,t.properties[s]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&oM.has(t.tagName)?i=u:n[c]=u}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function bM(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const c=l.expression;c.type;const u=c.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else bc(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else bc(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function $v(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:iM;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=XS(e,l,c);u!==void 0&&n.push(u)}return n}function _M(e,t,n){const i=Y5(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?I5(n):X5(n)),i.property==="style"){let s=typeof n=="object"?n:yM(e,String(n));return e.stylePropertyNameCase==="css"&&(s=EM(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?H5[i.property]||i.property:i.attribute,n]}}function yM(e,t){try{return nM(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new qn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=ZS+"#cannot-parse-style-attribute",s}}function QS(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=gE(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=gE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Fv.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);bc(e)}function bc(e,t){const n=new qn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ZS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function EM(e){const t={};let n;for(n in e)Fv.call(e,n)&&(t[xM(n)]=e[n]);return t}function xM(e){let t=e.replace(aM,wM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function wM(e){return"-"+e.toLowerCase()}const lg={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},SM={};function Hv(e,t){const n=SM,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return JS(e,i,s)}
vendor: 13,409 bytes, line 171
171function JS(e,t,n){if(kM(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return kE(e.children,t,n)}return Array.isArray(e)?kE(e,t,n):""}function kE(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=JS(e[s],t,n);return i.join("")}function kM(e){return!!(e&&typeof e=="object")}const TE=document.createElement("i");function Gv(e){const t="&"+e+";";TE.innerHTML=t;const n=TE.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Nr(e,t,n,i){const s=e.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function $r(e,t){return e.length>0?(Nr(e,e.length,0,t),e):t}const AE={}.hasOwnProperty;function ek(e){const t={};let n=-1;for(;++n<e.length;)TM(t,e[n]);return t}function TM(e,t){let n;for(n in t){const s=(AE.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let c;if(l)for(c in l){AE.call(s,c)||(s[c]=[]);const u=l[c];AM(s[c],Array.isArray(u)?u:u?[u]:[])}}}function AM(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Nr(e,0,0,i)}function tk(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Xr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Zn=Ra(/[A-Za-z]/),Gn=Ra(/[\dA-Za-z]/),CM=Ra(/[#-'*+\--9=?A-Z^-~]/);function Qd(e){return e!==null&&(e<32||e===127)}const Pm=Ra(/\d/),NM=Ra(/[\dA-Fa-f]/),OM=Ra(/[!-/:-@[-`{-~]/);function et(e){return e!==null&&e<-2}function qt(e){return e!==null&&(e<0||e===32)}function yt(e){return e===-2||e===-1||e===32}const gf=Ra(new RegExp("\\p{P}|\\p{S}","u")),fs=Ra(/\s/);function Ra(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Io(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let c="";if(l===37&&Gn(e.charCodeAt(n+1))&&Gn(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+s+1,c=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function kt(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return yt(f)?(e.enter(n),u(f)):t(f)}function u(f){return yt(f)&&l++<s?(e.consume(f),u):(e.exit(n),t(f))}}const RM={tokenize:MM};function MM(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),kt(e,t,"linePrefix")}function s(u){return e.enter("paragraph"),l(u)}function l(u){const f=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=f),n=f,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return et(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const DM={tokenize:IM},CE={tokenize:LM};function IM(e){const t=this,n=[];let i=0,s,l,c;return u;function u(N){if(i<n.length){const F=n[i];return t.containerState=F[1],e.attempt(F[0].continuation,f,h)(N)}return h(N)}function f(N){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&C();const F=t.events.length;let R=F,D;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){D=t.events[R][1].end;break}x(i);let M=F;for(;M<t.events.length;)t.events[M][1].end={...D},M++;return Nr(t.events,R+1,0,t.events.slice(F)),t.events.length=M,h(N)}return u(N)}function h(N){if(i===n.length){if(!s)return _(N);if(s.currentConstruct&&s.currentConstruct.concrete)return E(N);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(CE,p,g)(N)}function p(N){return s&&C(),x(i),_(N)}function g(N){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,E(N)}function _(N){return t.containerState={},e.attempt(CE,v,E)(N)}function v(N){return i++,n.push([t.currentConstruct,t.containerState]),_(N)}function E(N){if(N===null){s&&C(),x(0),e.consume(N);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),y(N)}function y(N){if(N===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(N);return}return et(N)?(e.consume(N),S(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(N),y)}function S(N,F){const R=t.sliceStream(N);if(F&&R.push(null),N.previous=l,l&&(l.next=N),l=N,s.defineSkip(N.start),s.write(R),t.parser.lazy[N.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<c&&(!s.events[D][1].end||s.events[D][1].end.offset>c))return;const M=t.events.length;let L=M,O,I;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(O){I=t.events[L][1].end;break}O=!0}for(x(i),D=M;D<t.events.length;)t.events[D][1].end={...I},D++;Nr(t.events,L+1,0,t.events.slice(M)),t.events.length=D}}function x(N){let F=n.length;for(;F-- >N;){const R=n[F];t.containerState=R[1],R[0].exit.call(t,e)}n.length=N}function C(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function LM(e,t,n){return kt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function No(e){if(e===null||qt(e)||fs(e))return 1;if(gf(e))return 2}function mf(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const Um={name:"attention",resolveAll:zM,tokenize:BM};function zM(e,t){let n=-1,i,s,l,c,u,f,h,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[i][1].end},_={...e[n][1].start};NE(g,-f),NE(_,f),c={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:_},l={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[n][1].start={...u.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=$r(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=$r(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=$r(h,mf(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=$r(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,h=$r(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,Nr(e,i-1,n-i+3,h),n=i+h.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BM(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=No(i);let l;return c;function c(f){return l=f,e.enter("attentionSequence"),u(f)}function u(f){if(f===l)return e.consume(f),u;const h=e.exit("attentionSequence"),p=No(f),g=!p||p===2&&s||n.includes(f),_=!s||s===2&&p||n.includes(i);return h._open=!!(l===42?g:g&&(s||!_)),h._close=!!(l===42?_:_&&(p||!g)),t(f)}}function NE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PM={name:"autolink",tokenize:UM};function UM(e,t,n){let i=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(v){return Zn(v)?(e.consume(v),c):v===64?n(v):h(v)}function c(v){return v===43||v===45||v===46||Gn(v)?(i=1,u(v)):h(v)}function u(v){return v===58?(e.consume(v),i=0,f):(v===43||v===45||v===46||Gn(v))&&i++<32?(e.consume(v),u):(i=0,h(v))}function f(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||Qd(v)?n(v):(e.consume(v),f)}function h(v){return v===64?(e.consume(v),p):CM(v)?(e.consume(v),h):n(v)}function p(v){return Gn(v)?g(v):n(v)}function g(v){return v===46?(e.consume(v),i=0,p):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):_(v)}function _(v){if((v===45||Gn(v))&&i++<63){const E=v===45?_:g;return e.consume(v),E}return n(v)}}const kc={partial:!0,tokenize:FM};function FM(e,t,n){return i;function i(l){return yt(l)?kt(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||et(l)?t(l):n(l)}}const nk={continuation:{tokenize:$M},exit:HM,name:"blockQuote",tokenize:jM};function jM(e,t,n){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return n(c)}function l(c){return yt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function $M(e,t,n){const i=this;return s;function s(c){return yt(c)?kt(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(nk,t,n)(c)}}function HM(e){e.exit("blockQuote")}const rk={name:"characterEscape",tokenize:GM};function GM(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return OM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const ik={name:"characterReference",tokenize:qM};function qM(e,t,n){const i=this;let s=0,l,c;return u;function u(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,c=Gn,p(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=NM,p):(e.enter("characterReferenceValue"),l=7,c=Pm,p(g))}function p(g){if(g===59&&s){const _=e.exit("characterReferenceValue");return c===Gn&&!Gv(i.sliceSerialize(_))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(g)&&s++<l?(e.consume(g),p):n(g)}}const OE={partial:!0,tokenize:KM},RE={concrete:!0,name:"codeFenced",tokenize:YM};function YM(e,t,n){const i=this,s={partial:!0,tokenize:R};let l=0,c=0,u;return f;function f(D){return h(D)}function h(D){const M=i.events[i.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,u=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(D)}function p(D){return D===u?(c++,e.consume(D),p):c<3?n(D):(e.exit("codeFencedFenceSequence"),yt(D)?kt(e,g,"whitespace")(D):g(D))}function g(D){return D===null||et(D)?(e.exit("codeFencedFence"),i.interrupt?t(D):e.check(OE,y,F)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),_(D))}function _(D){return D===null||et(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(D)):yt(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),kt(e,v,"whitespace")(D)):D===96&&D===u?n(D):(e.consume(D),_)}function v(D){return D===null||et(D)?g(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||et(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(D)):D===96&&D===u?n(D):(e.consume(D),E)}function y(D){return e.attempt(s,F,S)(D)}function S(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),x}function x(D){return l>0&&yt(D)?kt(e,C,"linePrefix",l+1)(D):C(D)}function C(D){return D===null||et(D)?e.check(OE,y,F)(D):(e.enter("codeFlowValue"),N(D))}function N(D){return D===null||et(D)?(e.exit("codeFlowValue"),C(D)):(e.consume(D),N)}function F(D){return e.exit("codeFenced"),t(D)}function R(D,M,L){let O=0;return I;function I($){return D.enter("lineEnding"),D.consume($),D.exit("lineEnding"),B}function B($){return D.enter("codeFencedFence"),yt($)?kt(D,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):k($)}function k($){return $===u?(D.enter("codeFencedFenceSequence"),q($)):L($)}function q($){return $===u?(O++,D.consume($),q):O>=c?(D.exit("codeFencedFenceSequence"),yt($)?kt(D,w,"whitespace")($):w($)):L($)}function w($){return $===null||et($)?(D.exit("codeFencedFence"),M($)):L($)}}}function KM(e,t,n){const i=this;return s;function s(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const cg={name:"codeIndented",tokenize:ZM},VM={partial:!0,tokenize:XM};
vendor: 5,098 bytes, line 171
171function ZM(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),kt(e,l,"linePrefix",5)(h)}function l(h){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?c(h):n(h)}function c(h){return h===null?f(h):et(h)?e.attempt(VM,c,f)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||et(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),u)}function f(h){return e.exit("codeIndented"),t(h)}}function XM(e,t,n){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?n(c):et(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):kt(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):et(c)?s(c):n(c)}}const WM={name:"codeText",previous:JM,resolve:QM,tokenize:eD};function QM(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function JM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eD(e,t,n){let i=0,s,l;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),u(g)}function u(g){return g===96?(e.consume(g),i++,u):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(l=e.enter("codeTextSequence"),s=0,p(g)):et(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||et(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),h)}function p(g){return g===96?(e.consume(g),s++,p):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(l.type="codeTextData",h(g))}}class tD{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&$l(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$l(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$l(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$l(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$l(this.left,n.reverse())}}}function $l(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ak(e){const t={};let n=-1,i,s,l,c,u,f,h;const p=new tD(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,nD(p,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,s=void 0;l--;)if(c=p.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(p.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...p.get(s)[1].start},u=p.slice(s,n),u.unshift(i),p.splice(s,n-s+1,u))}}return Nr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!h}function nD(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let p,g,_=-1,v=n,E=0,y=0;const S=[y];for(;v;){for(;e.get(++s)[1]!==v;);l.push(s),v._tokenizer||(p=i.sliceStream(v),v.next||p.push(null),g&&c.defineSki
vendor: 18,570 bytes, line 171
171p(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(p),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=n;++_<u.length;)u[_][0]==="exit"&&u[_-1][0]==="enter"&&u[_][1].type===u[_-1][1].type&&u[_][1].start.line!==u[_][1].end.line&&(y=_+1,S.push(y),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):S.pop(),_=S.length;_--;){const x=u.slice(S[_],S[_+1]),C=l.pop();f.push([C,C+x.length-1]),e.splice(C,2,x)}for(f.reverse(),_=-1;++_<f.length;)h[E+f[_][0]]=E+f[_][1],E+=f[_][1]-f[_][0]-1;return h}const rD={resolve:aD,tokenize:sD},iD={partial:!0,tokenize:oD};function aD(e){return ak(e),e}function sD(e,t){let n;return i;function i(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):et(u)?e.check(iD,c,l)(u):(e.consume(u),s)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function oD(e,t,n){const i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),kt(e,l,"linePrefix")}function l(c){if(c===null||et(c))return n(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function sk(e,t,n,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let p=0;return g;function g(x){return x===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(x),e.exit(l),_):x===null||x===32||x===41||Qd(x)?n(x):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),y(x))}function _(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),v(x))}function v(x){return x===62?(e.exit("chunkString"),e.exit(u),_(x)):x===null||x===60||et(x)?n(x):(e.consume(x),x===92?E:v)}function E(x){return x===60||x===62||x===92?(e.consume(x),v):v(x)}function y(x){return!p&&(x===null||x===41||qt(x))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(x)):p<h&&x===40?(e.consume(x),p++,y):x===41?(e.consume(x),p--,y):x===null||x===32||x===40||Qd(x)?n(x):(e.consume(x),x===92?S:y)}function S(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function ok(e,t,n,i,s,l){const c=this;let u=0,f;return h;function h(v){return e.enter(i),e.enter(s),e.consume(v),e.exit(s),e.enter(l),p}function p(v){return u>999||v===null||v===91||v===93&&!f||v===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?n(v):v===93?(e.exit(l),e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):et(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||et(v)||u++>999?(e.exit("chunkString"),p(v)):(e.consume(v),f||(f=!yt(v)),v===92?_:g)}function _(v){return v===91||v===92||v===93?(e.consume(v),u++,g):g(v)}}function lk(e,t,n,i,s,l){let c;return u;function u(_){return _===34||_===39||_===40?(e.enter(i),e.enter(s),e.consume(_),e.exit(s),c=_===40?41:_,f):n(_)}function f(_){return _===c?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),t):(e.enter(l),h(_))}function h(_){return _===c?(e.exit(l),f(c)):_===null?n(_):et(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),kt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===c||_===null||et(_)?(e.exit("chunkString"),h(_)):(e.consume(_),_===92?g:p)}function g(_){return _===c||_===92?(e.consume(_),p):p(_)}}function sc(e,t){let n;return i;function i(s){return et(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):yt(s)?kt(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const lD={name:"definition",tokenize:uD},cD={partial:!0,tokenize:dD};function uD(e,t,n){const i=this;let s;return l;function l(v){return e.enter("definition"),c(v)}function c(v){return ok.call(i,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function u(v){return s=Xr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):n(v)}function f(v){return qt(v)?sc(e,h)(v):h(v)}function h(v){return sk(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function p(v){return e.attempt(cD,g,g)(v)}function g(v){return yt(v)?kt(e,_,"whitespace")(v):_(v)}function _(v){return v===null||et(v)?(e.exit("definition"),i.parser.defined.push(s),t(v)):n(v)}}function dD(e,t,n){return i;function i(u){return qt(u)?sc(e,s)(u):n(u)}function s(u){return lk(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return yt(u)?kt(e,c,"whitespace")(u):c(u)}function c(u){return u===null||et(u)?t(u):n(u)}}const fD={name:"hardBreakEscape",tokenize:hD};function hD(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return et(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const pD={name:"headingAtx",resolve:gD,tokenize:mD};function gD(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Nr(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function mD(e,t,n){let i=0;return s;function s(p){return e.enter("atxHeading"),l(p)}function l(p){return e.enter("atxHeadingSequence"),c(p)}function c(p){return p===35&&i++<6?(e.consume(p),c):p===null||qt(p)?(e.exit("atxHeadingSequence"),u(p)):n(p)}function u(p){return p===35?(e.enter("atxHeadingSequence"),f(p)):p===null||et(p)?(e.exit("atxHeading"),t(p)):yt(p)?kt(e,u,"whitespace")(p):(e.enter("atxHeadingText"),h(p))}function f(p){return p===35?(e.consume(p),f):(e.exit("atxHeadingSequence"),u(p))}function h(p){return p===null||p===35||qt(p)?(e.exit("atxHeadingText"),u(p)):(e.consume(p),h)}}const vD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ME=["pre","script","style","textarea"],bD={concrete:!0,name:"htmlFlow",resolveTo:ED,tokenize:xD},_D={partial:!0,tokenize:SD},yD={partial:!0,tokenize:wD};function ED(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xD(e,t,n){const i=this;let s,l,c,u,f;return h;function h(U){return p(U)}function p(U){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(U),g}function g(U){return U===33?(e.consume(U),_):U===47?(e.consume(U),l=!0,y):U===63?(e.consume(U),s=3,i.interrupt?t:P):Zn(U)?(e.consume(U),c=String.fromCharCode(U),S):n(U)}function _(U){return U===45?(e.consume(U),s=2,v):U===91?(e.consume(U),s=5,u=0,E):Zn(U)?(e.consume(U),s=4,i.interrupt?t:P):n(U)}function v(U){return U===45?(e.consume(U),i.interrupt?t:P):n(U)}function E(U){const ue="CDATA[";return U===ue.charCodeAt(u++)?(e.consume(U),u===ue.length?i.interrupt?t:k:E):n(U)}function y(U){return Zn(U)?(e.consume(U),c=String.fromCharCode(U),S):n(U)}function S(U){if(U===null||U===47||U===62||qt(U)){const ue=U===47,de=c.toLowerCase();return!ue&&!l&&ME.includes(de)?(s=1,i.interrupt?t(U):k(U)):vD.includes(c.toLowerCase())?(s=6,ue?(e.consume(U),x):i.interrupt?t(U):k(U)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(U):l?C(U):N(U))}return U===45||Gn(U)?(e.consume(U),c+=String.fromCharCode(U),S):n(U)}function x(U){return U===62?(e.consume(U),i.interrupt?t:k):n(U)}function C(U){return yt(U)?(e.consume(U),C):I(U)}function N(U){return U===47?(e.consume(U),I):U===58||U===95||Zn(U)?(e.consume(U),F):yt(U)?(e.consume(U),N):I(U)}function F(U){return U===45||U===46||U===58||U===95||Gn(U)?(e.consume(U),F):R(U)}function R(U){return U===61?(e.consume(U),D):yt(U)?(e.consume(U),R):N(U)}function D(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),f=U,M):yt(U)?(e.consume(U),D):L(U)}function M(U){return U===f?(e.consume(U),f=null,O):U===null||et(U)?n(U):(e.consume(U),M)}function L(U){return U===null||U===34||U===39||U===47||U===60||U===61||U===62||U===96||qt(U)?R(U):(e.consume(U),L)}function O(U){return U===47||U===62||yt(U)?N(U):n(U)}function I(U){return U===62?(e.consume(U),B):n(U)}function B(U){return U===null||et(U)?k(U):yt(U)?(e.consume(U),B):n(U)}function k(U){return U===45&&s===2?(e.consume(U),K):U===60&&s===1?(e.consume(U),Z):U===62&&s===4?(e.consume(U),z):U===63&&s===3?(e.consume(U),P):U===93&&s===5?(e.consume(U),ie):et(U)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(_D,Y,q)(U)):U===null||et(U)?(e.exit("htmlFlowData"),q(U)):(e.consume(U),k)}function q(U){return e.check(yD,w,Y)(U)}function w(U){return e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),$}function $(U){return U===null||et(U)?q(U):(e.enter("htmlFlowData"),k(U))}function K(U){return U===45?(e.consume(U),P):k(U)}function Z(U){return U===47?(e.consume(U),c="",ae):k(U)}function ae(U){if(U===62){const ue=c.toLowerCase();return ME.includes(ue)?(e.consume(U),z):k(U)}return Zn(U)&&c.length<8?(e.consume(U),c+=String.fromCharCode(U),ae):k(U)}function ie(U){return U===93?(e.consume(U),P):k(U)}function P(U){return U===62?(e.consume(U),z):U===45&&s===2?(e.consume(U),P):k(U)}function z(U){return U===null||et(U)?(e.exit("htmlFlowData"),Y(U)):(e.consume(U),z)}function Y(U){return e.exit("htmlFlow"),t(U)}}function wD(e,t,n){const i=this;return s;function s(c){return et(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):n(c)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function SD(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(kc,t,n)}}const kD={name:"htmlText",tokenize:TD};function TD(e,t,n){const i=this;let s,l,c;return u;function u(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),f}function f(P){return P===33?(e.consume(P),h):P===47?(e.consume(P),R):P===63?(e.consume(P),N):Zn(P)?(e.consume(P),L):n(P)}function h(P){return P===45?(e.consume(P),p):P===91?(e.consume(P),l=0,E):Zn(P)?(e.consume(P),C):n(P)}function p(P){return P===45?(e.consume(P),v):n(P)}function g(P){return P===null?n(P):P===45?(e.consume(P),_):et(P)?(c=g,Z(P)):(e.consume(P),g)}function _(P){return P===45?(e.consume(P),v):g(P)}function v(P){return P===62?K(P):P===45?_(P):g(P)}function E(P){const z="CDATA[";return P===z.charCodeAt(l++)?(e.consume(P),l===z.length?y:E):n(P)}function y(P){return P===null?n(P):P===93?(e.consume(P),S):et(P)?(c=y,Z(P)):(e.consume(P),y)}function S(P){return P===93?(e.consume(P),x):y(P)}function x(P){return P===62?K(P):P===93?(e.consume(P),x):y(P)}function C(P){return P===null||P===62?K(P):et(P)?(c=C,Z(P)):(e.consume(P),C)}function N(P){return P===null?n(P):P===63?(e.consume(P),F):et(P)?(c=N,Z(P)):(e.consume(P),N)}function F(P){return P===62?K(P):N(P)}function R(P){return Zn(P)?(e.consume(P),D):n(P)}function D(P){return P===45||Gn(P)?(e.consume(P),D):M(P)}function M(P){return et(P)?(c=M,Z(P)):yt(P)?(e.consume(P),M):K(P)}function L(P){return P===45||Gn(P)?(e.consume(P),L):P===47||P===62||qt(P)?O(P):n(P)}function O(P){return P===47?(e.consume(P),K):P===58||P===95||Zn(P)?(e.consume(P),I):et(P)?(c=O,Z(P)):yt(P)?(e.consume(P),O):K(P)}function I(P){return P===45||P===46||P===58||P===95||Gn(P)?(e.consume(P),I):B(P)}function B(P){return P===61?(e.consume(P),k):et(P)?(c=B,Z(P)):yt(P)?(e.consume(P),B):O(P)}function k(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),s=P,q):et(P)?(c=k,Z(P)):yt(P)?(e.consume(P),k):(e.consume(P),w)}function q(P){return P===s?(e.consume(P),s=void 0,$):P===null?n(P):et(P)?(c=q,Z(P)):(e.consume(P),q)}function w(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||qt(P)?O(P):(e.consume(P),w)}function $(P){return P===47||P===62||qt(P)?O(P):n(P)}function K(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function Z(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),ae}function ae(P){return yt(P)?kt(e,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return e.enter("htmlTextData"),c(P)}}const qv={name:"labelEnd",resolveAll:OD,resolveTo:RD,tokenize:MD},AD={tokenize:DD},CD={tokenize:ID},ND={tokenize:LD};function OD(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&Nr(e,0,e.length,n),e}function RD(e,t){let n=e.length,i=0,s,l,c,u;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=n);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},p={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=$r(u,e.slice(l+1,l+i+3)),u=$r(u,[["enter",p,t]]),u=$r(u,mf(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=$r(u,[["exit",p,t],e[c-2],e[c-1],["exit",h,t]]),u=$r(u,e.slice(c+1)),u=$r(u,[["exit",f,t]]),Nr(e,l,e.length,u),e}function MD(e,t,n){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(_){return l?l._inactive?g(_):(c=i.parser.defined.includes(Xr(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelEnd"),f):n(_)}function f(_){return _===40?e.attempt(AD,p,c?p:g)(_):_===91?e.attempt(CD,p,c?h:g)(_):c?p(_):g(_)}function h(_){return e.attempt(ND,p,g)(_)}function p(_){return t(_)}function g(_){return l._balanced=!0,n(_)}}function DD(e,t,n){return i;function i(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),s}function s(g){return qt(g)?sc(e,l)(g):l(g)}function l(g){return g===41?p(g):sk(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return qt(g)?sc(e,f)(g):p(g)}function u(g){return n(g)}function f(g){return g===34||g===39||g===40?lk(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function h(g){return qt(g)?sc(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function ID(e,t,n){const i=this;return s;function s(u){return ok.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Xr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function c(u){return n(u)}}function LD(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const zD={name:"labelStartImage",resolveAll:qv.resolveAll,tokenize:BD};function BD(e,t,n){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):n(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const PD={name:"labelStartLink",resolveAll:qv.resolveAll,tokenize:UD};function UD(e,t,n){const i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const ug={name:"lineEnding",tokenize:FD};function FD(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),kt(e,t,"linePrefix")}}const Td={name:"thematicBreak",tokenize:jD};function jD(e,t,n){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||et(h))?(e.exit("thematicBreak"),t(h)):n(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),yt(h)?kt(e,u,"whitespace")(h):u(h))}}const ar={continuation:{tokenize:qD},exit:KD,name:"list",tokenize:GD},$D={partial:!0,tokenize:VD},HD={partial:!0,tokenize:YD};function GD(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(v){const E=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:Pm(v)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Td,n,h)(v):h(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(v)}return n(v)}function f(v){return Pm(v)&&++c<10?(e.consume(v),f):(!i.interrupt||c<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),h(v)):n(v)}function h(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(kc,i.interrupt?n:p,e.attempt($D,_,g))}
vendor: 5,359 bytes, line 171
171function p(v){return i.containerState.initialBlankLine=!0,l++,_(v)}function g(v){return yt(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),_):n(v)}function _(v){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function qD(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(kc,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,kt(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!yt(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(HD,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,kt(e,e.attempt(ar,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function YD(e,t,n){const i=this;return kt(e,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):n(l)}}function KD(e){e.exit(this.containerState.type)}function VD(e,t,n){const i=this;return kt(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!yt(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const DE={name:"setextUnderline",resolveTo:ZD,tokenize:XD};function ZD(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function XD(e,t,n){const i=this;let s;return l;function l(h){let p=i.events.length,g;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){g=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||g)?(e.enter("setextHeadingLine"),s=h,c(h)):n(h)}function c(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),yt(h)?kt(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||et(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const WD={tokenize:QD};function QD(e){const t=this,n=e.attempt(kc,i,e.attempt(this.parser.constructs.flowInitial,s,kt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(rD,s)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const JD={resolveAll:uk()},e6=ck("string"),t6=ck("text");function ck(e){return{resolveAll:uk(e==="text"?n6:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],l=n.attempt(s,c,u);return c;function c(p){return h(p)?l(p):u(p)}function u(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),f}function f(p){return h(p)?(n.exit("data"),l(p)):(n.consume(p),f)}function h(p){if(p===null)return!0;const g=s[p];let _=-1;if(g)for(;++_<g.length;){const v=g[_];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function uk(e){return t;function t(n,i){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,i):n}}function n6(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const h={type:n===e.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const r6={42:ar,43:ar,45:ar,48:ar,49:ar,50:ar,51:ar,52:ar,53:ar,54:ar,55:ar,56:ar,57:ar,62:nk},i6={91:lD},a6={[-2]:cg,[-1]:cg,32:cg},s6={35:pD,42:Td,45:[DE,Td],60:bD,61:DE,95:Td,96:RE,126:RE},o6={38:ik,92:rk},l6={[-5]:ug,[-4]:ug,[-3]:ug,33:zD,38:ik,42:Um,60:[PM,kD],91:PD,92:[fD,rk],93:qv,95:Um,96:WM},c6={null:[Um,JD]},u6={null:[42,95]},d6={null:[]},f6=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:u6,contentInitial:i6,disable:d6,document:r6,flow:s6,flowInitial:a6,insideSpan:c6,string:o6,text:l6},Symbol.toStringTag,{value:"Module"}));function h6(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,429 bytes, lines 171-173
171olumn:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:M(R),check:M(D),consume:C,enter:N,exit:F,interrupt:M(D,{interrupt:!0})},h={code:null,containerState:{},defineSkip:y,events:[],now:E,parser:e,previous:null,sliceSerialize:_,sliceStream:v,write:g};let p=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function g(B){return c=$r(c,B),S(),c[c.length-1]!==null?[]:(L(t,0),h.events=mf(l,h.events,h),h.events)}function _(B,k){return g6(v(B),k)}function v(B){return p6(c,B)}function E(){const{_bufferIndex:B,_index:k,line:q,column:w,offset:$}=i;return{_bufferIndex:B,_index:k,line:q,column:w,offset:$}}function y(B){s[B.line]=B.column,I()}function S(){let B;for(;i._index<c.length;){const k=c[i._index];if(typeof k=="string")for(B=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===B&&i._bufferIndex<k.length;)x(k.charCodeAt(i._bufferIndex));else x(k)}}function x(B){p=p(B)}function C(B){et(B)?(i.line++,i.column=1,i.offset+=B===-3?2:1,I()):B!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=B}function N(B,k){const q=k||{};return q.type=B,q.start=E(),h.events.push(["enter",q,h]),u.push(q),q}function F(B){const k=u.pop();return k.end=E(),h.events.push(["exit",k,h]),k}function R(B,k){L(B,k.from)}function D(B,k){k.restore()}function M(B,k){return q;function q(w,$,K){let Z,ae,ie,P;return Array.isArray(w)?Y(w):"tokenize"in w?Y([w]):z(w);function z(Se){return je;function je(re){const ne=re!==null&&Se[re],ce=re!==null&&Se.null,me=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return Y(me)(re)}}function Y(Se){return Z=Se,ae=0,Se.length===0?K:U(Se[ae])}function U(Se){return je;function je(re){return P=O(),ie=Se,Se.partial||(h.currentConstruct=Se),Se.name&&h.parser.constructs.disable.null.includes(Se.name)?de():Se.tokenize.call(k?Object.assign(Object.create(h),k):h,f,ue,de)(re)}}function ue(Se){return B(ie,P),$}function de(Se){return P.restore(),++ae<Z.length?U(Z[ae]):K}}}function L(B,k){B.resolveAll&&!l.includes(B)&&l.push(B),B.resolve&&Nr(h.events,k,h.events.length-k,B.resolve(h.events.slice(k),h)),B.resolveTo&&(h.events=B.resolveTo(h.events,h))}function O(){const B=E(),k=h.previous,q=h.currentConstruct,w=h.events.length,$=Array.from(u);return{from:w,restore:K};function K(){i=B,h.previous=k,h.currentConstruct=q,h.events.length=w,u=$,I()}}function I(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function p6(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(n===s)c=[e[n].slice(i,l)];else{if(c=e.slice(n,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function g6(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const l=e[n];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
172`;break}case-3:{c=`\r
173`;break}case-2:{c=t?" ":"	";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function m6(e){const i={constructs:ek([f6,...(e||{}).extensions||[]]),content:s(RM),defined:[],document:s(DM),flow:s(WD),lazy:{},string:s(e6),text:s(t6)};return i;function s(l){return c;function c(u){return h6(i,l,u)}}}function v6(e){for(;!ak(e););return e}const IE=/[\0\t\n\r]/g;function b6(){let e=1,t="",n=!0,i;return s;function s(l,c,u){const f=[];let h,p,g,_,v;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),g=0,t="",n&&(l.charCodeAt(0)===65279&&g++,n=void 0);g<l.length;){if(IE.lastIndex=g,h=IE.exec(l),_=h&&h.index!==void 0?h.index:l.length,v=l.charCodeAt(_),!h){t=l.slice(g);break}if(v===10&&g===_&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),g<_&&(f.push(l.slice(g,_)),e+=_-g),v){case 0:{f.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,f.push(-2);e++<p;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}g=_+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const _6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y6(e){return e.replace(_6,E6)}function E6(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return tk(n.slice(l?2:1),l?16:10)}return Gv(n)||e}const dk={}.hasOwnProperty;function x6(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),w6(n)(v6(m6(n).document().write(b6()(e,t,!0))))}function w6(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ee),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(oe),blockQuote:l(ce),characterEscape:O,characterReference:O,codeFenced:l(me),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(me,c),codeText:l(_e,c),codeTextData:O,data:O,codeFlowValue:O,definition:l(Ne),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(T),hardBreakEscape:l(J),hardBreakTrailing:l(J),htmlFlow:l(V,c),htmlFlowData:O,htmlText:l(V,c),htmlTextData:O,image:l(H),label:c,link:l(ee),listItem:l(Ae),listItemValue:_,listOrdered:l(ye,g),listUnordered:l(ye),paragraph:l(fe),reference:U,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(oe),strong:l(Ce),thematicBreak:l(Oe)},exit:{atxHeading:f(),atxHeadingSequence:R,autolink:f(),autolinkEmail:ne,autolinkProtocol:re,blockQuote:f(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:Se,characterReference:je,codeFenced:f(S),codeFencedFence:y,codeFencedFenceInfo:v,codeFencedFenceMeta:E,codeFlowValue:I,codeIndented:f(x),codeText:f($),codeTextData:I,data:I,definition:f(),definitionDestinationString:F,definitionLabelString:C,definitionTitleString:N,emphasis:f(),hardBreakEscape:f(k),hardBreakTrailing:f(k),htmlFlow:f(q),htmlFlowData:I,htmlText:f(w),htmlTextData:I,image:f(Z),label:ie,labelText:ae,lineEnding:B,link:f(K),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ue,resourceDestinationString:P,resourceTitleString:z,resource:Y,setextHeading:f(L),setextHeadingLineSequence:M,setextHeadingText:D,strong:f(),thematicBreak:f()}};fk(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(se){let Te={type:"root",children:[]};const Le={stack:[Te],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:p,data:n},Je=[];let pt=-1;for(;++pt<se.length;)if(se[pt][1].type==="listOrdered"||se[pt][1].type==="listUnordered")if(se[pt][0]==="enter")Je.push(pt);else{const Yt=Je.pop();pt=s(se,Yt,pt)}for(pt=-1;++pt<se.length;){const Yt=t[se[pt][0]];dk.call(Yt,se[pt][1].type)&&Yt[se[pt][1].type].call(Object.assign({sliceSerialize:se[pt][2].sliceSerialize},Le),se[pt][1])}if(Le.tokenStack.length>0){const Yt=Le.tokenStack[Le.tokenStack.length-1];(Yt[1]||LE).call(Le,void 0,Yt[0])}for(Te.position={start:Sa(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Sa(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},pt=-1;++pt<t.transforms.length;)Te=t.transforms[pt](Te)||Te;return Te}function s(se,Te,Le){let Je=Te-1,pt=-1,Yt=!1,On,dt,Pt,gn;for(;++Je<=Le;){const ft=se[Je];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?pt++:pt--,gn=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(On&&!gn&&!pt&&!Pt&&(Pt=Je),gn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gn=void 0}if(!pt&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||pt===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(On){let hr=Je;for(dt=void 0;hr--;){const Rn=se[hr];if(Rn[1].type==="lineEnding"||Rn[1].type==="lineEndingBlank"){if(Rn[0]==="exit")continue;dt&&(se[dt][1].type="lineEndingBlank",Yt=!0),Rn[1].type="lineEnding",dt=hr}else if(!(Rn[1].type==="linePrefix"||Rn[1].type==="blockQuotePrefix"||Rn[1].type==="blockQuotePrefixWhitespace"||Rn[1].type==="blockQuoteMarker"||Rn[1].type==="listItemIndent"))break}Pt&&(!dt||Pt<dt)&&(On._spread=!0),On.end=Object.assign({},dt?se[dt][1].start:ft[1].end),se.splice(dt||Je,0,["exit",On,ft[2]]),Je++,Le++}if(ft[1].type==="listItemPrefix"){const hr={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};On=hr,se.splice(Je,0,["enter",hr,ft[2]]),Je++,Le++,Pt=void 0,gn=!0}}}return se[Te][1]._spread=Yt,Le}function l(se,Te){return Le;function Le(Je){u.call(this,se(Je),Je),Te&&Te.call(this,Je)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(se,Te,Le){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([Te,Le||void 0]),se.position={start:Sa(Te.start),end:void 0}}function f(se){return Te;function Te(Le){se&&se.call(this,Le),h.call(this,Le)}}function h(se,Te){const Le=this.stack.pop(),Je=this.tokenStack.pop();if(Je)Je[0].type!==se.type&&(Te?Te.call(this,se,Je[0]):(Je[1]||LE).call(this,se,Je[0]));else throw new Error("Cannot close `"+se.type+"` ("+ac({start:se.start,end:se.end})+"): it’s not open");Le.position.end=Sa(se.end)}function p(){return Hv(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function _(se){if(this.data.expectingFirstListItemValue){const Te=this.stack[this.stack.length-2];Te.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function v(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.lang=se}function E(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.meta=se}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.value=se.replace(/(\r?\n|\r)$/g,"")}function C(se){const Te=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Te,Le.identifier=Xr(this.sliceSerialize(se)).toLowerCase()}function N(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.title=se}function F(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.url=se}function R(se){const Te=this.stack[this.stack.length-1];if(!Te.depth){const Le=this.sliceSerialize(se).length;Te.depth=Le}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function M(se){const Te=this.stack[this.stack.length-1];Te.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function O(se){const Le=this.stack[this.stack.length-1].children;let Je=Le[Le.length-1];(!Je||Je.type!=="text")&&(Je=Re(),Je.position={start:Sa(se.start),end:void 0},Le.push(Je)),this.stack.push(Je)}function I(se){const Te=this.stack.pop();Te.value+=this.sliceSerialize(se),Te.position.end=Sa(se.end)}function B(se){const Te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Le=Te.children[Te.children.length-1];Le.position.end=Sa(se.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Te.type)&&(O.call(this,se),I.call(this,se))}function k(){this.data.atHardBreak=!0}function q(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.value=se}function w(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.value=se}function $(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.value=se}function K(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const Te=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=Te,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function Z(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const Te=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=Te,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function ae(se){const Te=this.sliceSerialize(se),Le=this.stack[this.stack.length-2];Le.label=y6(Te),Le.identifier=Xr(Te).toLowerCase()}function ie(){const se=this.stack[this.stack.length-1],Te=this.resume(),Le=this.stack[this.stack.length-1];if(this.data.inReference=!0,Le.type==="link"){const Je=se.children;Le.children=Je}else Le.alt=Te}function P(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.url=se}function z(){const se=this.resume(),Te=this.stack[this.stack.length-1];Te.title=se}function Y(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function ue(se){const Te=this.resume(),Le=this.stack[this.stack.length-1];Le.label=Te,Le.identifier=Xr(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function de(se){this.data.characterReferenceType=se.type}function Se(se){const Te=this.sliceSerialize(se),Le=this.data.characterReferenceType;let Je;Le?(Je=tk(Te,Le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Je=Gv(Te);const pt=this.stack[this.stack.length-1];pt.value+=Je}function je(se){const Te=this.stack.pop();Te.position.end=Sa(se.end)}function re(se){I.call(this,se);const Te=this.stack[this.stack.length-1];Te.url=this.sliceSerialize(se)}function ne(se){I.call(this,se);const Te=this.stack[this.stack.length-1];Te.url="mailto:"+this.sliceSerialize(se)}function ce(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function Ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function T(){return{type:"emphasis",children:[]}}function oe(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function V(){return{type:"html",value:""}}function H(){return{type:"image",title:null,url:"",alt:null}}function ee(){return{type:"link",title:null,url:"",children:[]}}function ye(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function Ae(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function fe(){return{type:"paragraph",children:[]}}function Ce(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function Oe(){return{type:"thematicBreak"}}}function Sa(e){return{line:e.line,column:e.column,offset:e.offset}}function fk(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?fk(e,i):S6(e,i)}}function S6(e,t){let n;
vendor: 5,537 bytes, lines 173-177
173for(n in t)if(dk.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function LE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ac({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ac({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ac({start:t.start,end:t.end})+") is still open")}function k6(e){const t=this;t.parser=n;function n(i){return x6(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function T6(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function A6(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
174`}]}function C6(e,t){const n=t.value?t.value+`
175`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function N6(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O6(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function R6(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Io(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,u+=1,e.footnoteCounts.set(i,u);const f={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function M6(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D6(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hk(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function I6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return hk(e,t);const s={src:Io(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function L6(e,t){const n={src:Io(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function z6(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function B6(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return hk(e,t);const s={href:Io(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function P6(e,t){const n={href:Io(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function U6(e,t,n){const i=e.all(t),s=n?F6(n):pk(t),l={},c=[];if(typeof t.checked=="boolean"){const p=i[0];let g;p&&p.type==="element"&&p.tagName==="p"?g=p:(g={type:"element",tagName:"p",properties:{},children:[]},i.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const p=i[u];(s||u!==0||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
176`}),p.type==="element"&&p.tagName==="p"&&!s?c.push(...p.children):c.push(p)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
177`});const h={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,h),e.applyData(t,h)}function F6(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=pk(n[i])}return t}function pk(e){const t=e.spread;return t??e.children.length>1}function j6(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,
vendor: 2,594 bytes, line 177
177!0)};return e.patch(t,l),e.applyData(t,l)}function $6(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function H6(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function G6(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function q6(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),s.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Uv(t.children[1]),f=KS(t.children[t.children.length-1]);u&&f&&(c.position={start:u,end:f}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function Y6(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,u=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<u;){const g=t.children[f],_={},v=c?c[f]:void 0;v&&(_.align=v);let E={type:"element",tagName:l,properties:_,children:[]};g&&(E.children=e.all(g),e.patch(g,E),E=e.applyData(g,E)),h.push(E)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,p),e.applyData(t,p)}function K6(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const zE=9,BE=32;function V6(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(PE(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(PE(t.slice(s),s>0,!1)),l.join("")}function PE(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===zE||l===BE;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===zE||l===BE;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function Z6(e,t){const n={type:"text",value:V6(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function X6(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const W6={blockquote:T6,break:A6,code:C6,delete:N6,emphasis:O6,footnoteReference:R6,heading:M6,html:D6,imageReference:I6,image:L6,inlineCode:z6,linkReference:B6,link:P6,listItem:U6,list:j6,paragraph:$6,root:H6,strong:G6,table:q6,tableCell:K6,tableRow:Y6,text:Z6,thematicBreak:X6,toml:td,yaml:td,definition:td,footnoteDefinition:td};function td(){}const gk=-1,vf=0,oc=1,Jd=2,Yv=3,Kv=4,Vv=5,Zv=6,mk=7,vk=8,Q6=typeof self=="object"?self:globalThis,UE=(e,t)=>
vendor: 2,230 bytes, line 177
177{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Q6[e](t)},J6=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case vf:case gk:return n(c,s);case oc:{const u=n([],s);for(const f of c)u.push(i(f));return u}case Jd:{const u=n({},s);for(const[f,h]of c)u[i(f)]=i(h);return u}case Yv:return n(new Date(c),s);case Kv:{const{source:u,flags:f}=c;return n(new RegExp(u,f),s)}case Vv:{const u=n(new Map,s);for(const[f,h]of c)u.set(i(f),i(h));return u}case Zv:{const u=n(new Set,s);for(const f of c)u.add(i(f));return u}case mk:{const{name:u,message:f}=c;return n(UE(u,f),s)}case vk:return n(BigInt(c),s);case"BigInt":return n(Object(BigInt(c)),s);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return n(new DataView(u),c)}}return n(UE(l,c),s)};return i},FE=e=>J6(new Map,e)(0),so="",{toString:eI}={},{keys:tI}=Object,Hl=e=>{const t=typeof e;if(t!=="object"||!e)return[vf,t];const n=eI.call(e).slice(8,-1);switch(n){case"Array":return[oc,so];case"Object":return[Jd,so];case"Date":return[Yv,so];case"RegExp":return[Kv,so];case"Map":return[Vv,so];case"Set":return[Zv,so];case"DataView":return[oc,n]}return n.includes("Array")?[oc,n]:n.includes("Error")?[mk,n]:[Jd,n]},nd=([e,t])=>e===vf&&(t==="function"||t==="symbol"),nI=(e,t,n,i)=>{const s=(c,u)=>{const f=i.push(c)-1;return n.set(u,f),f},l=c=>{if(n.has(c))return n.get(c);let[u,f]=Hl(c);switch(u){case vf:{let p=c;switch(f){case"bigint":u=vk,p=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);p=null;break;case"undefined":return s([gk],c)}return s([u,p],c)}case oc:{if(f){let _=c;return f==="DataView"?_=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(_=new Uint8Array(c)),s([f,[..._]],c)}const p=[],g=s([u,p],c);for(const _ of c)p.push(l(_));return g}case Jd:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const p=[],g=s([u,p],c);for(const _ of tI(c))(e||!nd(Hl(c[_])))&&p.push([l(_),l(c[_])]);return g}
vendor: 6,939 bytes, lines 177-183
177case Yv:return s([u,c.toISOString()],c);case Kv:{const{source:p,flags:g}=c;return s([u,{source:p,flags:g}],c)}case Vv:{const p=[],g=s([u,p],c);for(const[_,v]of c)(e||!(nd(Hl(_))||nd(Hl(v))))&&p.push([l(_),l(v)]);return g}case Zv:{const p=[],g=s([u,p],c);for(const _ of c)(e||!nd(Hl(_)))&&p.push(l(_));return g}}const{message:h}=c;return s([u,{name:f,message:h}],c)};return l},jE=(e,{json:t,lossy:n}={})=>{const i=[];return nI(!(t||n),!!t,new Map,i)(e),i},ef=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?FE(jE(e,t)):structuredClone(e):(e,t)=>FE(jE(e,t));function rI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function iI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function aI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rI,i=e.options.footnoteBackLabel||iI,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const p=e.all(h),g=String(h.identifier).toUpperCase(),_=Io(g.toLowerCase());let v=0;const E=[],y=e.footnoteCounts.get(g);for(;y!==void 0&&++v<=y;){E.length>0&&E.push({type:"text",value:" "});let C=typeof n=="string"?n:n(f,v);typeof C=="string"&&(C={type:"text",value:C}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+_+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,v),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const S=p[p.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const C=S.children[S.children.length-1];C&&C.type==="text"?C.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...E)}else p.push(...E);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+_},children:e.wrap(p,!0)};e.patch(h,x),u.push(x)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ef(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
178`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
179`}]}}const Tc=(function(e){if(e==null)return cI;if(typeof e=="function")return bf(e);if(typeof e=="object")return Array.isArray(e)?sI(e):oI(e);if(typeof e=="string")return lI(e);throw new Error("Expected function, string, or object as test")});function sI(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tc(e[n]);return bf(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function oI(e){const t=e;return bf(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function lI(e){return bf(t);function t(n){return n&&n.type===e}}function bf(e){return t;function t(n,i,s){return!!(uI(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function cI(){return!0}function uI(e){return e!==null&&typeof e=="object"&&"type"in e}const bk=[],dI=!0,Fm=!1,fI="skip";function _k(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=Tc(s),c=i?-1:1;u(e,void 0,[])();function u(f,h,p){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(_,"name",{value:"node ("+(f.type+(v?"<"+v+">":""))+")"})}return _;function _(){let v=bk,E,y,S;if((!t||l(f,h,p[p.length-1]||void 0))&&(v=hI(n(f,p)),v[0]===Fm))return v;if("children"in f&&f.children){const x=f;if(x.children&&v[0]!==fI)for(y=(i?x.children.length:-1)+c,S=p.concat(x);y>-1&&y<x.children.length;){const C=x.children[y];if(E=u(C,y,S)(),E[0]===Fm)return E;y=typeof E[1]=="number"?E[1]:y+c}}return v}}}function hI(e){return Array.isArray(e)?e:typeof e=="number"?[dI,e]:e==null?bk:[e]}function _f(e,t,n,i){let s,l,c;typeof t=="function"&&typeof n!="function"?(l=void 0,c=t,s=n):(l=t,c=n,s=i),_k(e,l,u,s);function u(f,h){const p=h[h.length-1],g=p?p.children.indexOf(f):void 0;return c(f,g,p)}}const jm={}.hasOwnProperty,pI={};function gI(e,t){const n=t||pI,i=new Map,s=new Map,l=new Map,c={...W6,...n.handlers},u={all:h,applyData:vI,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:f,options:n,patch:mI,wrap:_I};return _f(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const g=p.type==="definition"?i:s,_=String(p.identifier).toUpperCase();g.has(_)||g.set(_,p)}}),u;function f(p,g){const _=p.type,v=u.handlers[_];if(jm.call(u.handlers,_)&&v)return v(u,p,g);if(u.options.passThrough&&u.options.passThrough.includes(_)){if("children"in p){const{children:y,...S}=p,x=ef(S);return x.children=u.all(p),x}return ef(p)}return(u.options.unknownHandler||bI)(u,p,g)}function h(p){const g=[];if("children"in p){const _=p.children;let v=-1;for(;++v<_.length;){const E=u.one(_[v],p);if(E){if(v&&_[v-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=$E(E.value)),!Array.isArray(E)&&E.type==="element")){const y=E.children[0];y&&y.type==="text"&&(y.value=$E(y.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function mI(e,t){e.position&&(t.position=rM(e))}function vI(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&l&&Object.assign(n.properties,ef(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function bI(e,t){const n=t.data||{},i="value"in t&&!(jm.call(n,"hProperties")||jm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function _I(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
180`});++i<e.length;)i&&n.push({type:"text",value:`
181`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
182`}),n}function $E(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function HE(e,t){const n=gI(e,t),i=n.one(e,void 0),s=aI(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
183`},s),l}function yI(e,t){return e&&"run"in e?async function(n,i){const s=HE(n,{file:i,...t});await e.run(s,i)}:function(n,i){return HE(n,{file:i,...e||t})}}function GE(e){if(e)throw e}var dg,qE;function EI(){if(qE)return dg;qE=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;
vendor: 19,541 bytes, lines 183-184
183var p=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!g)return!1;var _;for(_ in h);return typeof _>"u"||e.call(h,_)},c=function(h,p){n&&p.name==="__proto__"?n(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},u=function(h,p){if(p==="__proto__")if(e.call(h,p)){if(i)return i(h,p).value}else return;return h[p]};return dg=function f(){var h,p,g,_,v,E,y=arguments[0],S=1,x=arguments.length,C=!1;for(typeof y=="boolean"&&(C=y,y=arguments[1]||{},S=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});S<x;++S)if(h=arguments[S],h!=null)for(p in h)g=u(y,p),_=u(h,p),y!==_&&(C&&_&&(l(_)||(v=s(_)))?(v?(v=!1,E=g&&s(g)?g:[]):E=g&&l(g)?g:{},c(y,{name:p,newValue:f(C,E,_)})):typeof _<"u"&&c(y,{name:p,newValue:_}));return y},dg}var xI=EI();const fg=Ro(xI);function $m(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wI(){const e=[],t={run:n,use:i};return t;function n(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const p=e[++l];let g=-1;if(f){c(f);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,p?SI(p,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function SI(e,t){let n;return i;function i(...c){const u=e.length>c.length;let f;u&&c.push(s);try{f=e.apply(this,c)}catch(h){const p=h;if(u&&n)throw p;return s(p)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){n||(n=!0,t(c,...u))}function l(c){s(null,c)}}const si={basename:kI,dirname:TI,extname:AI,join:CI,sep:"/"};function kI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ac(e);let n=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(e.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function TI(e){if(Ac(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function AI(e){Ac(e);let t=e.length,n=-1,i=0,s=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function CI(...e){let t=-1,n;for(;++t<e.length;)Ac(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":NI(n)}function NI(e){Ac(e);const t=e.codePointAt(0)===47;let n=OI(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function OI(e,t){let n="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(f=n.lastIndexOf("/"),f!==n.length-1){f<0?(n="",i=0):(n=n.slice(0,f),i=n.length-1-n.lastIndexOf("/")),s=c,l=0;continue}}else if(n.length>0){n="",i=0,s=c,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,c):n=e.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return n}function Ac(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RI={cwd:MI};function MI(){return"/"}function Hm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function DI(e){if(typeof e=="string")e=new URL(e);else if(!Hm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return II(e)}function II(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const hg=["history","path","basename","stem","extname","dirname"];class yk{constructor(t){let n;t?Hm(t)?n={path:t}:typeof t=="string"||LI(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":RI.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hg.length;){const l=hg[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)hg.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?si.basename(this.path):void 0}set basename(t){gg(t,"basename"),pg(t,"basename"),this.path=si.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?si.dirname(this.path):void 0}set dirname(t){YE(this.basename,"dirname"),this.path=si.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?si.extname(this.path):void 0}set extname(t){if(pg(t,"extname"),YE(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=si.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hm(t)&&(t=DI(t)),gg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?si.basename(this.path,this.extname):void 0}set stem(t){gg(t,"stem"),pg(t,"stem"),this.path=si.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new qn(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function pg(e,t){if(e&&e.includes(si.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+si.sep+"`")}function gg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function YE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function LI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zI=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),BI={}.hasOwnProperty;class Xv extends zI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=wI()}copy(){const t=new Xv;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(fg(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(bg("data",this.frozen),this.namespace[t]=n,this):BI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bg("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=rd(t),i=this.parser||this.Parser;return mg("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),mg("process",this.parser||this.Parser),vg("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,c){const u=rd(t),f=i.parse(u);i.run(f,u,function(p,g,_){if(p||!g||!_)return h(p);const v=g,E=i.stringify(v,_);FI(E)?_.value=E:_.result=E,h(p,_)});function h(p,g){p||!g?c(p):l?l(g):n(void 0,g)}}}processSync(t){let n=!1,i;return this.freeze(),mg("processSync",this.parser||this.Parser),vg("processSync",this.compiler||this.Compiler),this.process(t,s),VE("processSync","process",n),i;function s(l,c){n=!0,GE(l),i=c}}run(t,n,i){KE(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=rd(n);s.run(t,f,h);function h(p,g,_){const v=g||t;p?u(p):c?c(v):i(void 0,v,_)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),VE("runSync","run",i),s;function l(c,u){GE(c),s=u,i=!0}}stringify(t,n){this.freeze();const i=rd(n),s=this.compiler||this.Compiler;return vg("stringify",s),KE(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(bg("use",this.frozen),t!=null)if(typeof t=="function")f(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[p,...g]=h;f(p,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=fg(!0,s.settings,h.settings))}function u(h){let p=-1;if(h!=null)if(Array.isArray(h))for(;++p<h.length;){const g=h[p];l(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,p){let g=-1,_=-1;for(;++g<i.length;)if(i[g][0]===h){_=g;break}if(_===-1)i.push([h,...p]);else if(p.length>0){let[v,...E]=p;const y=i[_][1];$m(y)&&$m(v)&&(v=fg(!0,y,v)),i[_]=[h,v,...E]}}}}const PI=new Xv().freeze();function mg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function KE(e){if(!$m(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function VE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rd(e){return UI(e)?e:new yk(e)}function UI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FI(e){return typeof e=="string"||jI(e)}function jI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $I="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ZE=[],XE={allowDangerousHtml:!0},HI=/^(https?|ircs?|mailto|xmpp)$/i,GI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function bU(e){const t=qI(e),n=YI(e);return KI(t.runSync(t.parse(n),n),e)}function qI(e){const t=e.rehypePlugins||ZE,n=e.remarkPlugins||ZE,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...XE}:XE;return PI().use(k6).use(n).use(yI,i).use(t)}function YI(e){const t=e.children||"",n=new yk;return typeof t=="string"&&(n.value=t),n}function KI(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||VI;for(const p of GI)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+$I+p.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),_f(e,h),lM(e,{Fragment:G.Fragment,components:s,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function h(p,g,_){if(p.type==="raw"&&_&&typeof g=="number")return c?_.children.splice(g,1):_.children[g]={type:"text",value:p.value},g;if(p.type==="element"){let v;for(v in lg)if(Object.hasOwn(lg,v)&&Object.hasOwn(p.properties,v)){const E=p.properties[v],y=lg[v];(y===null||y.includes(p.tagName))&&(p.properties[v]=f(String(E||""),v,p))}}if(p.type==="element"){let v=n?!n.includes(p.tagName):l?l.includes(p.tagName):!1;if(!v&&i&&typeof g=="number"&&(v=!i(p,g,_)),v&&_&&typeof g=="number")return u&&p.children?_.children.splice(g,1,...p.children):_.children.splice(g,1),g}}}function VI(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||HI.test(e.slice(0,t))?e:""}function WE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function ZI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function XI(e,t,n){const s=Tc((n||{}).ignore||[]),l=WI(t);let c=-1;for(;++c<l.length;)_k(e,"text",u);function u(h,p){let g=-1,_;for(;++g<p.length;){const v=p[g],E=_?_.children:void 0;if(s(v,E?E.indexOf(v):void 0,_))return;_=v}if(_)return f(h,p)}function f(h,p){const g=p[p.length-1],_=l[c][0],v=l[c][1];let E=0;const S=g.children.indexOf(h);let x=!1,C=[];_.lastIndex=0;let N=_.exec(h.value);for(;N;){const F=N.index,R={index:N.index,input:N.input,stack:[...p,h]};let D=v(...N,R);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?_.lastIndex=F+1:(E!==F&&C.push({type:"text",value:h.value.slice(E,F)}),Array.isArray(D)?C.push(...D):D&&C.push(D),E=F+N[0].length,x=!0),!_.global)break;N=_.exec(h.value)}return x?(E<h.value.length&&C.push({type:"text",value:h.value.slice(E)}),g.children.splice(S,1,...C)):C=[h],S+C.length}}function WI(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([QI(s[0]),JI(s[1])])}return t}function QI(e){return typeof e=="string"?new RegExp(ZI(e),"g"):e}function JI(e){return typeof e=="function"?e:function(){return e}}const _g="phrasing",yg=["autolink","link","image","label"];function eL(){return{transforms:[oL],enter:{literalAutolink:nL,literalAutolinkEmail:Eg,literalAutolinkHttp:Eg,literalAutolinkWww:Eg},exit:{literalAutolink:sL,literalAutolinkEmail:aL,literalAutolinkHttp:rL,literalAutolinkWww:iL}}}function tL(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:_g,notInConstruct:yg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:_g,notInConstruct:yg},{character:":",before:"[ps]",after:"\\/",inConstruct:_g,notInConstruct:yg}]}}function nL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Eg(e){this.config.enter.autolinkProtocol.call(this,e)}function rL(e){this.config.exit.autolinkProtocol.call(this,e)}function iL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function aL(e){this.config.exit.autolinkEmail.call(this,e)}function sL(e){this.exit(e)}function oL(e){XI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lL],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cL]],{ignore:["link","linkReference"]})}function lL(e,t,n,i,s){let l="";if(!Ek(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!uL(n)))return!1;const c=dL(n+i);if(!c[0])return!1;const u={type:"link",title:null,url:l+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[u,{type:"text",value:c[1]}]:u}function cL(e,t,n,i){return!Ek(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function uL(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dL(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=WE(e,"(");let l=WE(e,")");for(;i!==-1&&s>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function Ek(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||fs(n)||gf(n))&&(!t||n!==47)}xk.peek=yL;function fL(){this.buffer()}function hL(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pL(){this.buffer()}function gL(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function mL(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vL(e){this.exit(e)}function bL(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _L(e){this.exit(e)}function yL(){return"["}function xk(e,t,n,i){const s=n.createTracker(i);let l=s.move("[^");const c=n.enter("footnoteReference"),u=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),c(),l+=s.move("]"),l}function EL(){return{enter:{gfmFootnoteCallString:fL,gfmFootnoteCall:hL,gfmFootnoteDefinitionLabelString:pL,gfmFootnoteDefinition:gL},exit:{gfmFootnoteCallString:mL,gfmFootnoteCall:vL,gfmFootnoteDefinitionLabelString:bL,gfmFootnoteDefinition:_L}}}function xL(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:xk},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,l,c){const u=l.createTracker(c);let f=u.move("[^");const h=l.enter("footnoteDefinition"),p=l.enter("label");return f+=u.move(l.safe(l.associationId(i),{before:f,after:"]"})),p(),f+=u.move("]:"),i.children&&i.children.length>0&&(u.shift(4),f+=u.move((t?`
184`:" ")+l.indentLines(l.containerFlow(i,u.current()),t?wk:wL))),h(),f}}function wL(e,t,n){return t===0?e:wk(e,t,n)}function wk(e,t,n){return(n?"":"    ")+e}const SL=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Sk.peek=NL;
vendor: 11,767 bytes, lines 184-196
184function kL(){return{canContainEols:["delete"],enter:{strikethrough:AL},exit:{strikethrough:CL}}}function TL(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SL}],handlers:{delete:Sk}}}function AL(e){this.enter({type:"delete",children:[]},e)}function CL(e){this.exit(e)}function Sk(e,t,n,i){const s=n.createTracker(i),l=n.enter("strikethrough");let c=s.move("~~");return c+=n.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),l(),c}function NL(){return"~"}function OL(e){return e.length}function RL(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||OL,l=[],c=[],u=[],f=[];let h=0,p=-1;for(;++p<e.length;){const y=[],S=[];let x=-1;for(e[p].length>h&&(h=e[p].length);++x<e[p].length;){const C=ML(e[p][x]);if(n.alignDelimiters!==!1){const N=s(C);S[x]=N,(f[x]===void 0||N>f[x])&&(f[x]=N)}y.push(C)}c[p]=y,u[p]=S}let g=-1;if(typeof i=="object"&&"length"in i)for(;++g<h;)l[g]=QE(i[g]);else{const y=QE(i);for(;++g<h;)l[g]=y}g=-1;const _=[],v=[];for(;++g<h;){const y=l[g];let S="",x="";y===99?(S=":",x=":"):y===108?S=":":y===114&&(x=":");let C=n.alignDelimiters===!1?1:Math.max(1,f[g]-S.length-x.length);const N=S+"-".repeat(C)+x;n.alignDelimiters!==!1&&(C=S.length+C+x.length,C>f[g]&&(f[g]=C),v[g]=C),_[g]=N}c.splice(1,0,_),u.splice(1,0,v),p=-1;const E=[];for(;++p<c.length;){const y=c[p],S=u[p];g=-1;const x=[];for(;++g<h;){const C=y[g]||"";let N="",F="";if(n.alignDelimiters!==!1){const R=f[g]-(S[g]||0),D=l[g];D===114?N=" ".repeat(R):D===99?R%2?(N=" ".repeat(R/2+.5),F=" ".repeat(R/2-.5)):(N=" ".repeat(R/2),F=N):F=" ".repeat(R)}n.delimiterStart!==!1&&!g&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||g)&&x.push(" "),n.alignDelimiters!==!1&&x.push(N),x.push(C),n.alignDelimiters!==!1&&x.push(F),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&x.push("|")}E.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return E.join(`
185`)}function ML(e){return e==null?"":String(e)}function QE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function DL(e,t,n,i){const s=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const c=n.indentLines(n.containerFlow(e,l.current()),IL);return s(),c}function IL(e,t,n){return">"+(n?"":" ")+e}function LL(e,t){return JE(e,t.inConstruct,!0)&&!JE(e,t.notInConstruct,!1)}function JE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function ex(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
186`&&LL(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
187`}function zL(e,t){const n=String(e);let i=n.indexOf(t),s=i,l=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++l>c&&(c=l):l=1,s=i+t.length,i=n.indexOf(t,s);return c}function BL(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function PL(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function UL(e,t,n,i){const s=PL(n),l=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(BL(e,n)){const g=n.enter("codeIndented"),_=n.indentLines(l,FL);return g(),_}const u=n.createTracker(i),f=s.repeat(Math.max(zL(l,s)+1,3)),h=n.enter("codeFenced");let p=u.move(f);if(e.lang){const g=n.enter(`codeFencedLang${c}`);p+=u.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...u.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${c}`);p+=u.move(" "),p+=u.move(n.safe(e.meta,{before:p,after:`
188`,encode:["`"],...u.current()})),g()}return p+=u.move(`
189`),l&&(p+=u.move(l+`
190`)),p+=u.move(f),h(),p}function FL(e,t,n){return(n?"":"    ")+e}function Wv(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function jL(e,t,n,i){const s=Wv(n),l=s==='"'?"Quote":"Apostrophe",c=n.enter("definition");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");return h+=f.move(n.safe(n.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(u=n.enter("destinationRaw"),h+=f.move(n.safe(e.url,{before:h,after:e.title?" ":`
191`,...f.current()}))),u(),e.title&&(u=n.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(n.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),u()),c(),h}function $L(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function _c(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tf(e,t,n){const i=No(e),s=No(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kk.peek=HL;function kk(e,t,n,i){const s=$L(n),l=n.enter("emphasis"),c=n.createTracker(i),u=c.move(s);let f=c.move(n.containerPhrasing(e,{after:s,before:u,...c.current()}));const h=f.charCodeAt(0),p=tf(i.before.charCodeAt(i.before.length-1),h,s);p.inside&&(f=_c(h)+f.slice(1));const g=f.charCodeAt(f.length-1),_=tf(i.after.charCodeAt(0),g,s);_.inside&&(f=f.slice(0,-1)+_c(g));const v=c.move(s);return l(),n.attentionEncodeSurroundingInfo={after:_.outside,before:p.outside},u+f+v}function HL(e,t,n){return n.options.emphasis||"*"}function GL(e,t){let n=!1;return _f(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Fm}),!!((!e.depth||e.depth<3)&&Hv(e)&&(t.options.setext||n))}function qL(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(GL(e,n)){const p=n.enter("headingSetext"),g=n.enter("phrasing"),_=n.containerPhrasing(e,{...l.current(),before:`
192`,after:`
193`});return g(),p(),_+`
194`+(s===1?"=":"-").repeat(_.length-(Math.max(_.lastIndexOf("\r"),_.lastIndexOf(`
195`))+1))}const c="#".repeat(s),u=n.enter("headingAtx"),f=n.enter("phrasing");l.move(c+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
196`,...l.current()});return/^[\t ]/.test(h)&&(h=_c(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,n.options.closeAtx&&(h+=" "+c),f(),u(),h}Tk.peek=YL;function Tk(e){return e.value||""}function YL(){return"<"}Ak.peek=KL;function Ak(e,t,n,i){const s=Wv(n),l=s==='"'?"Quote":"Apostrophe",c=n.enter("image");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");return h+=f.move(n.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(u=n.enter("destinationRaw"),h+=f.move(n.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),u(),e.title&&(u=n.enter(`title${l}`),h+=f.move(" "+s),h+=f.move(n.safe(e.title,{before:h,after:s,...f.current()})),h+=f.move(s),u()),h+=f.move(")"),c(),h}function KL(){return"!"}Ck.peek=VL;function Ck(e,t,n,i){const s=e.referenceType,l=n.enter("imageReference");let c=n.enter("label");const u=n.createTracker(i);let f=u.move("![");const h=n.safe(e.alt,{before:f,after:"]",...u.current()});f+=u.move(h+"]["),c();const p=n.stack;n.stack=[],c=n.enter("reference");const g=n.safe(n.associationId(e),{before:f,after:"]",...u.current()});return c(),n.stack=p,l(),s==="full"||!h||h!==g?f+=u.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function VL(){return"!"}Nk.peek=ZL;function Nk(e,t,n){let i=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const c=n.unsafe[l],u=n.compilePattern(c);let f;if(c.atBreak)for(;f=u.exec(i);){let h=f.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(f.index+1)}}return s+i+s}function ZL(){return"`"}function Ok(e,t){const n=Hv(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rk.peek=XL;function Rk(e,t,n,i){const s=Wv(n),l=s==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let u,f;if(Ok(e,n)){const p=n.stack;n.stack=[],u=n.enter("autolink");let g=c.move("<");return g+=c.move(n.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),u(),n.stack=p,g}u=n.enter("link"),f=n.enter("label");let h=c.move("[");return h+=c.move(n.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(n.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(f=n.enter("destinationRaw"),h+=c.move(n.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),f(),e.title&&(f=n.enter(`title${l}`),h+=c.move(" "+s),h+=c.move(n.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),f()),h+=c.move(")"),u(),h}function XL(e,t,n){return Ok(e,n)?"<":"["}Mk.peek=WL;function Mk(e,t,n,i){const s=e.referenceType,l=n.enter("linkReference");let c=n.enter("label");const u=n.createTracker(i);let f=u.move("[");const h=n.containerPhrasing(e,{before:f,after:"]",...u.current()});f+=u.move(h+"]["),c();const p=n.stack;n.stack=[],c=n.enter("reference");const g=n.safe(n.associationId(e),{before:f,after:"]",...u.current()});return c(),n.stack=p,l(),s==="full"||!h||h!==g?f+=u.move(g+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function WL(){return"["}function Qv(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function QL(e){const t=Qv(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function JL(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Dk(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function e8(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let c=e.ordered?JL(n):Qv(n);const u=e.ordered?c==="."?")":".":QL(n);let f=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),Dk(n)===c&&p){let g=-1;for(;++g<e.children.length;){const _=e.children[g];if(_&&_.type==="listItem"&&_.children&&_.children[0]&&_.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(c=u),n.bulletCurrent=c;const h=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=l,s(),h}function t8(e){const t=e.options.listItemIndent||"one";
vendor: 7,581 bytes, lines 196-198
196if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function n8(e,t,n,i){const s=t8(n);let l=n.bulletCurrent||Qv(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let c=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const u=n.createTracker(i);u.move(l+" ".repeat(c-l.length)),u.shift(c);const f=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,u.current()),p);return f(),h;function p(g,_,v){return _?(v?"":" ".repeat(c))+g:(v?l:l+" ".repeat(c-l.length))+g}}function r8(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),c=n.containerPhrasing(e,i);return l(),s(),c}const i8=Tc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function a8(e,t,n,i){return(e.children.some(function(c){return i8(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function s8(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ik.peek=o8;function Ik(e,t,n,i){const s=s8(n),l=n.enter("strong"),c=n.createTracker(i),u=c.move(s+s);let f=c.move(n.containerPhrasing(e,{after:s,before:u,...c.current()}));const h=f.charCodeAt(0),p=tf(i.before.charCodeAt(i.before.length-1),h,s);p.inside&&(f=_c(h)+f.slice(1));const g=f.charCodeAt(f.length-1),_=tf(i.after.charCodeAt(0),g,s);_.inside&&(f=f.slice(0,-1)+_c(g));const v=c.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:_.outside,before:p.outside},u+f+v}function o8(e,t,n){return n.options.strong||"*"}function l8(e,t,n,i){return n.safe(e.value,i)}function c8(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function u8(e,t,n){const i=(Dk(n)+(n.options.ruleSpaces?" ":"")).repeat(c8(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Lk={blockquote:DL,break:ex,code:UL,definition:jL,emphasis:kk,hardBreak:ex,heading:qL,html:Tk,image:Ak,imageReference:Ck,inlineCode:Nk,link:Rk,linkReference:Mk,list:e8,listItem:n8,paragraph:r8,root:a8,strong:Ik,text:l8,thematicBreak:u8};function d8(){return{enter:{table:f8,tableData:tx,tableHeader:tx,tableRow:p8},exit:{codeText:g8,table:h8,tableData:xg,tableHeader:xg,tableRow:xg}}}function f8(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function h8(e){this.exit(e),this.data.inTable=void 0}function p8(e){this.enter({type:"tableRow",children:[]},e)}function xg(e){this.exit(e)}function tx(e){this.enter({type:"tableCell",children:[]},e)}function g8(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,m8));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function m8(e,t){return t==="|"?t:e}function v8(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
197`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:_,table:c,tableCell:f,tableRow:u}};function c(v,E,y,S){return h(p(v,y,S),v.align)}function u(v,E,y,S){const x=g(v,y,S),C=h([x]);return C.slice(0,C.indexOf(`
198`))}function f(v,E,y,S){const x=y.enter("tableCell"),C=y.enter("phrasing"),N=y.containerPhrasing(v,{...S,before:l,after:l});return C(),x(),N}function h(v,E){return RL(v,{align:E,alignDelimiters:i,padding:n,stringLength:s})}function p(v,E,y){const S=v.children;let x=-1;const C=[],N=E.enter("table");for(;++x<S.length;)C[x]=g(S[x],E,y);return N(),C}function g(v,E,y){const S=v.children;let x=-1;const C=[],N=E.enter("tableRow");for(;++x<S.length;)C[x]=f(S[x],v,E,y);return N(),C}function _(v,E,y){let S=Lk.inlineCode(v,E,y);return y.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function b8(){return{exit:{taskListCheckValueChecked:nx,taskListCheckValueUnchecked:nx,paragraph:y8}}}function _8(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:E8}}}function nx(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function y8(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let l=-1,c;for(;++l<s.length;){const u=s[l];if(u.type==="paragraph"){c=u;break}}c===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function E8(e,t,n,i){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",u=n.createTracker(i);l&&u.move(c);let f=Lk.listItem(e,t,n,{...i,...u.current()});return l&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(p){return p+c}}function x8(){return[eL(),EL(),kL(),d8(),b8()]}function w8(e){return{extensions:[tL(),xL(e),TL(),v8(e),_8()]}}const S8={tokenize:O8,partial:!0},zk={tokenize:R8,partial:!0},Bk={tokenize:M8,partial:!0},Pk={tokenize:D8,partial:!0},k8={tokenize:I8,partial:!0},Uk={name:"wwwAutolink",tokenize:C8,previous:jk},Fk={name:"protocolAutolink",tokenize:N8,previous:$k},qi={name:"emailAutolink",tokenize:A8,previous:Hk},fi={};function T8(){return{text:fi}}let rs=48;for(;rs<123;)fi[rs]=qi,rs++,rs===58?rs=65:rs===91&&(rs=97);fi[43]=qi;fi[45]=qi;fi[46]=qi;fi[95]=qi;fi[72]=[qi,Fk];fi[104]=[qi,Fk];fi[87]=[qi,Uk];fi[119]=[qi,Uk];function A8(e,t,n){const i=this;let s,l;return c;function c(g){return!Gm(g)||!Hk.call(i,i.previous)||Jv(i.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(g))}function u(g){return Gm(g)?(e.consume(g),u):g===64?(e.consume(g),f):n(g)}function f(g){return g===46?e.check(k8,p,h)(g):g===45||g===95||Gn(g)?(l=!0,e.consume(g),f):p(g)}function h(g){return e.consume(g),s=!0,f}function p(g){return l&&s&&Zn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function C8(e,t,n){const i=this;return s;function s(c){return c!==87&&c!==119||!jk.call(i,i.previous)||Jv(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(S8,e.attempt(zk,e.attempt(Bk,l),n),n)(c))}function l(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function N8(e,t,n){const i=this;let s="",l=!1;return c;function c(g){return(g===72||g===104)&&$k.call(i,i.previous)&&!Jv(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),e.consume(g),u):n(g)}function u(g){if(Zn(g)&&s.length<5)return s+=String.fromCodePoint(g),e.consume(g),u;if(g===58){const _=s.toLowerCase();if(_==="http"||_==="https")return e.consume(g),f}return n(g)}function f(g){return g===47?(e.consume(g),l?h:(l=!0,f)):n(g)}function h(g){return g===null||Qd(g)||qt(g)||fs(g)||gf(g)?n(g):e.attempt(zk,e.attempt(Bk,p),n)(g)}function p(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function O8(e,t,n){let i=0;return s;
vendor: 4,199 bytes, line 198
198function s(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),s):c===46&&i===3?(e.consume(c),l):n(c)}function l(c){return c===null?n(c):t(c)}}function R8(e,t,n){let i,s,l;return c;function c(h){return h===46||h===95?e.check(Pk,f,u)(h):h===null||qt(h)||fs(h)||h!==45&&gf(h)?f(h):(l=!0,e.consume(h),c)}function u(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),c}function f(h){return s||i||!l?n(h):t(h)}}function M8(e,t){let n=0,i=0;return s;function s(c){return c===40?(n++,e.consume(c),s):c===41&&i<n?l(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Pk,t,l)(c):c===null||qt(c)||fs(c)?t(c):(e.consume(c),s)}function l(c){return c===41&&i++,e.consume(c),s}}function D8(e,t,n){return i;function i(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),i):u===38?(e.consume(u),l):u===93?(e.consume(u),s):u===60||u===null||qt(u)||fs(u)?t(u):n(u)}function s(u){return u===null||u===40||u===91||qt(u)||fs(u)?t(u):i(u)}function l(u){return Zn(u)?c(u):n(u)}function c(u){return u===59?(e.consume(u),i):Zn(u)?(e.consume(u),c):n(u)}}function I8(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return Gn(l)?n(l):t(l)}}function jk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||qt(e)}function $k(e){return!Zn(e)}function Hk(e){return!(e===47||Gm(e))}function Gm(e){return e===43||e===45||e===46||e===95||Gn(e)}function Jv(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const L8={tokenize:H8,partial:!0};function z8(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:F8,continuation:{tokenize:j8},exit:$8}},text:{91:{name:"gfmFootnoteCall",tokenize:U8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:B8,resolveTo:P8}}}}function B8(e,t,n){const i=this;let s=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;s--;){const f=i.events[s][1];if(f.type==="labelImage"){c=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return u;function u(f){if(!c||!c._balanced)return n(f);const h=Xr(i.sliceSerialize({start:c.end,end:i.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function P8(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",c,t],["exit",c,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...u),e}function U8(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,c;return u;function u(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(l>999||g===93&&!c||g===null||g===91||qt(g))return n(g);if(g===93){e.exit("chunkString");const _=e.exit("gfmFootnoteCallString");return s.includes(Xr(i.sliceSerialize(_)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}
vendor: 4,381 bytes, line 198
198return qt(g)||(c=!0),l++,e.consume(g),g===92?p:h}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function F8(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,c=0,u;return f;function f(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(E)}function p(E){if(c>999||E===93&&!u||E===null||E===91||qt(E))return n(E);if(E===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return l=Xr(i.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),_}return qt(E)||(u=!0),c++,e.consume(E),E===92?g:p}function g(E){return E===91||E===92||E===93?(e.consume(E),c++,p):p(E)}function _(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),s.includes(l)||s.push(l),kt(e,v,"gfmFootnoteDefinitionWhitespace")):n(E)}function v(E){return t(E)}}function j8(e,t,n){return e.check(kc,t,e.attempt(L8,t,n))}function $8(e){e.exit("gfmFootnoteDefinition")}function H8(e,t,n){const i=this;return kt(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(l):n(l)}}function G8(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(c,u){let f=-1;for(;++f<c.length;)if(c[f][0]==="enter"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._close){let h=f;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[f][1].end.offset-c[f][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[f][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[f][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[f][1].start)},_=[["enter",p,u],["enter",c[h][1],u],["exit",c[h][1],u],["enter",g,u]],v=u.parser.constructs.insideSpan.null;v&&Nr(_,_.length,0,mf(v,c.slice(h+1,f),u)),Nr(_,_.length,0,[["exit",g,u],["enter",c[f][1],u],["exit",c[f][1],u],["exit",p,u]]),Nr(c,h-1,f-h+3,_),f=h+_.length-2;break}}for(f=-1;++f<c.length;)c[f][1].type==="strikethroughSequenceTemporary"&&(c[f][1].type="data");return c}function l(c,u,f){const h=this.previous,p=this.events;let g=0;return _;function _(E){return h===126&&p[p.length-1][1].type!=="characterEscape"?f(E):(c.enter("strikethroughSequenceTemporary"),v(E))}function v(E){const y=No(h);if(E===126)return g>1?f(E):(c.consume(E),g++,v);if(g<2&&!n)return f(E);const S=c.exit("strikethroughSequenceTemporary"),x=No(E);return S._open=!x||x===2&&!!y,S._close=!y||y===2&&!!x,u(E)}}}class q8{constructor(){this.map=[]}add(t,n,i){Y8(this,t,n,i)}consume(t){if(this.map.sort(function(l,c){return l[0]-c[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const l of s)t.push(l);s=i.pop()}this.map.length=0}}function Y8(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function K8(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function V8(){return{flow:{null:{name:"table",tokenize:Z8,resolveAll:X8}}}}function Z8(e,t,n){const i=this;let s=0,l=0,c;return u;function u(I){let B=i.events.length-1;for(;B>-1;
vendor: 8,560 bytes, lines 198-200
198){const w=i.events[B][1].type;if(w==="lineEnding"||w==="linePrefix")B--;else break}const k=B>-1?i.events[B][1].type:null,q=k==="tableHead"||k==="tableRow"?D:f;return q===D&&i.parser.lazy[i.now().line]?n(I):q(I)}function f(I){return e.enter("tableHead"),e.enter("tableRow"),h(I)}function h(I){return I===124||(c=!0,l+=1),p(I)}function p(I){return I===null?n(I):et(I)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),v):n(I):yt(I)?kt(e,p,"whitespace")(I):(l+=1,c&&(c=!1,s+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),c=!0,p):(e.enter("data"),g(I)))}function g(I){return I===null||I===124||qt(I)?(e.exit("data"),p(I)):(e.consume(I),I===92?_:g)}function _(I){return I===92||I===124?(e.consume(I),g):g(I)}function v(I){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(I):(e.enter("tableDelimiterRow"),c=!1,yt(I)?kt(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):E(I))}function E(I){return I===45||I===58?S(I):I===124?(c=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),y):R(I)}function y(I){return yt(I)?kt(e,S,"whitespace")(I):S(I)}function S(I){return I===58?(l+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),x):I===45?(l+=1,x(I)):I===null||et(I)?F(I):R(I)}function x(I){return I===45?(e.enter("tableDelimiterFiller"),C(I)):R(I)}function C(I){return I===45?(e.consume(I),C):I===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(I))}function N(I){return yt(I)?kt(e,F,"whitespace")(I):F(I)}function F(I){return I===124?E(I):I===null||et(I)?!c||s!==l?R(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):R(I)}function R(I){return n(I)}function D(I){return e.enter("tableRow"),M(I)}function M(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),M):I===null||et(I)?(e.exit("tableRow"),t(I)):yt(I)?kt(e,M,"whitespace")(I):(e.enter("data"),L(I))}function L(I){return I===null||I===124||qt(I)?(e.exit("data"),M(I)):(e.consume(I),I===92?O:L)}function O(I){return I===92||I===124?(e.consume(I),L):L(I)}}function X8(e,t){let n=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,f=0,h,p,g;const _=new q8;for(;++n<e.length;){const v=e[n],E=v[1];v[0]==="enter"?E.type==="tableHead"?(u=!1,f!==0&&(rx(_,t,f,h,p),p=void 0,f=0),h={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},_.add(n,0,[["enter",h,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(i=!0,g=void 0,l=[0,0,0,0],c=[0,n+1,0,0],u&&(u=!1,p={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},_.add(n,0,[["enter",p,t]])),s=E.type==="tableDelimiterRow"?2:p?3:1):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(l[1]!==0&&(c[0]=c[1],g=id(_,t,l,s,void 0,g),l=[0,0,0,0]),c[2]=n)):E.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(c[0]=c[1],g=id(_,t,l,s,void 0,g)),l=c,c=[l[1],n,0,0])):E.type==="tableHead"?(u=!0,f=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(f=n,l[1]!==0?(c[0]=c[1],g=id(_,t,l,s,n,g)):c[1]!==0&&(g=id(_,t,c,s,n,g)),s=0):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=n)}for(f!==0&&rx(_,t,f,h,p),_.consume(t.events),n=-1;++n<t.events.length;){const v=t.events[n];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=K8(t.events,n))}return e}function id(e,t,n,i,s,l){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},po(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const f=po(t.events,n[1]);if(l={type:c,start:Object.assign({},f),end:Object.assign({},f)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=po(t.events,n[2]),p=po(t.events,n[3]),g={type:u,start:Object.assign({},h),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",g,t]]),i!==2){const _=t.events[n[2]],v=t.events[n[3]];if(_[1].end=Object.assign({},v[1].end),_[1].type="chunkText",_[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,y=n[3]-n[2]-1;e.add(E,y,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return s!==void 0&&(l.end=Object.assign({},po(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function rx(e,t,n,i,s){const l=[],c=po(t.events,n);s&&(s.end=Object.assign({},c),l.push(["exit",s,t])),i.end=Object.assign({},c),l.push(["exit",i,t]),e.add(n+1,0,l)}function po(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const W8={name:"tasklistCheck",tokenize:J8};function Q8(){return{text:{91:W8}}}function J8(e,t,n){const i=this;return s;function s(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),l)}function l(f){return qt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),c):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),c):n(f)}function c(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(f)}function u(f){return et(f)?t(f):yt(f)?e.check({tokenize:e3},t,n)(f):n(f)}}function e3(e,t,n){return kt(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function t3(e){return ek([T8(),z8(),G8(e),V8(),Q8()])}const n3={};function r3(e){const t=this,n=e||n3,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(t3(n)),l.push(x8()),c.push(w8(n))}const ix=(function(e,t,n){const i=Tc(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),ps=(function(e){if(e==null)return s3;if(typeof e=="string")return a3(e);if(typeof e=="object")return i3(e);if(typeof e=="function")return eb(e);throw new Error("Expected function, string, or array as `test`")});function i3(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ps(e[n]);return eb(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function a3(e){return eb(t);function t(n){return n.tagName===e}}function eb(e){return t;function t(n,i,s){return!!(o3(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function s3(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function o3(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const ax=/\n/g,sx=/[\t ]+/g,qm=ps("br"),ox=ps(g3),l3=ps("p"),lx=ps("tr"),c3=ps(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",p3,m3]),Gk=ps(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function u3(e,t){const n=t||{},i="children"in e?e.children:[],s=Gk(e),l=Kk(e,{whitespace:n.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...Yk(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<i.length;)c.push(...qk(i[u],e,{whitespace:l,breakBefore:u?void 0:s,breakAfter:u<i.length-1?qm(i[u+1]):s}));const f=[];let h;for(u=-1;++u<c.length;){const p=c[u];typeof p=="number"?h!==void 0&&p>h&&(h=p):p&&(h!==void 0&&h>-1&&f.push(`
199`.repeat(h)||" "),h=-1,f.push(p))}return f.join("")}function qk(e,t,n){return e.type==="element"?d3(e,t,n):e.type==="text"?n.whitespace==="normal"?Yk(e,n):f3(e):[]}function d3(e,t,n){const i=Kk(e,n),s=e.children||[];let l=-1,c=[];if(c3(e))return c;let u,f;for(qm(e)||lx(e)&&ix(t,e,lx)?f=`
200`:l3(e)?(u=2,f=2):Gk(e)&&(u=1,f=1);++l<s.length;)c=c.concat(qk(s[l],e,{whitespace:i,breakBefore:l?void 0:u,breakAfter:l<s.length-1?qm(s[l+1]):f}));return ox(e)&&ix(t,e,ox)&&c.push("	"),u&&c.unshift(u),f&&c.push(f),c}function Yk(e,t){const n=String(e.value),i=[],s=[];let l=0;for(;l<=n.length;){ax.lastIndex=l;const f=ax.exec(n),h=f&&"index"in f?f.index:n.length;i.push(h3(n.slice(l,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),l=h+1}let c=-1,u;for(;++c<i.length;
vendor: 2,541 bytes, line 200
200)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(s.push(i[c]),u=void 0):i[c]?(typeof u=="number"&&s.push(u),s.push(i[c]),u=0):(c===0||c===i.length-1)&&s.push(0);return s}function f3(e){return[String(e.value)]}function h3(e,t,n){const i=[];let s=0,l;for(;s<e.length;){sx.lastIndex=s;const c=sx.exec(e);l=c?c.index:e.length,!s&&!l&&c&&!t&&i.push(""),s!==l&&i.push(e.slice(s,l)),s=c?l+c[0].length:l}return s!==l&&!n&&i.push(""),i.join(" ")}function Kk(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function p3(e){return!!(e.properties||{}).hidden}function g3(e){return e.tagName==="td"||e.tagName==="th"}function m3(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function v3(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},v=t.optional(s)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
200noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],S=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],F={type:y,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:S},R={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[R,g,u,n,e.C_BLOCK_COMMENT_MODE,p,h],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:F,contains:D.concat([{begin:/\(/,end:/\)/,keywords:F,contains:D.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:F,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:F,relevance:0},{begin:v,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,u,{begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:F,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,L,R,D,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:F,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:F},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function b3(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","
vendor: 8,079 bytes, line 200
200EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=v3(e),i=n.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function _3(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},l=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,s]};s.contains.push(u);const f={match:/\\"/},h={className:"string",begin:/'/,end:/'/},p={match:/\\'/},g={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},_=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],v=e.SHEBANG({binary:`(${_.join("|")})`,relevance:10}),E={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},y=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],S=["true","false"],x={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],N=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],F=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:y,literal:S,built_in:[...C,...N,"set","shopt",...F,...R]},contains:[v,e.SHEBANG(),E,g,l,c,x,u,f,h,p,n]}}function y3(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."}
vendor: 5,117 bytes, line 200
200,e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},v=t.optional(s)+e.IDENT_RE+"\\s*\\(",S={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},x=[g,u,n,e.C_BLOCK_COMMENT_MODE,p,h],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:x.concat([{begin:/\(/,end:/\)/,keywords:S,contains:x.concat(["self"]),relevance:0}]),relevance:0},N={begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:S,relevance:0},{begin:v,returnBegin:!0,contains:[e.inherit(_,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,u,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C",aliases:["h"],keywords:S,disableAutodetect:!0,illegal:"</",contains:[].concat(C,N,x,[g,{begin:e.IDENT_RE+"::",keywords:S},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:g,strings:h,keywords:S}}}function E3(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",c="(?!struct)("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},p={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},v=t.optional(s)+e.IDENT_RE+"\\s*\\(",E=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_
200noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],y=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],S=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],x=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],F={type:y,keyword:E,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:S},R={className:"function.dispatch",relevance:0,keywords:{_hint:x},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[R,g,u,n,e.C_BLOCK_COMMENT_MODE,p,h],M={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:F,contains:D.concat([{begin:/\(/,end:/\)/,keywords:F,contains:D.concat(["self"]),relevance:0}]),relevance:0},L={className:"function",begin:"("+c+"[\\*&\\s]+)+"+v,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:F,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:F,relevance:0},{begin:v,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,p]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,p,u,{begin:/\(/,end:/\)/,keywords:F,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,p,u]}]},u,n,e.C_BLOCK_COMMENT_MODE,g]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:F,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(M,L,R,D,[g,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:F,contains:["self",u]},{begin:e.IDENT_RE+"::",keywords:F},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function x3(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],s=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","
200sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],l=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],c={keyword:s.concat(l),built_in:t,literal:i},u=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),f={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},p={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},g=e.inherit(p,{illegal:/\n/}),_={className:"subst",begin:/\{/,end:/\}/,keywords:c},v=e.inherit(_,{illegal:/\n/}),E={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,v]},y={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},_]},S=e.inherit(y,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]});_.contains=[y,E,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.C_BLOCK_COMMENT_MODE],v.contains=[S,E,g,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[h,y,E,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},N=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",F={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:c,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},x,f,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+N+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:c,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,relevance:0,contains:[x,f,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},F]}}const w3=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),S3=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],k3=["def
200s","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],T3=[...S3,...k3],A3=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),C3=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),N3=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),O3=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
200area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function R3(e){const t=e.regex,n=w3(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",l=/@-?\w[\w]*(-\w+)*/,c="[a-zA-Z-][a-zA-Z0-9_-]*",u=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0}
vendor: 11,961 bytes, line 200
200,{className:"selector-class",begin:"\\."+c,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+C3.join("|")+")"},{begin:":(:)?("+N3.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+O3.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:l},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:A3.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+T3.join("|")+")\\b"}]}}function M3(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function D3(e){const l={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:l,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:l,illegal:/["']/}]}]}}function I3(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function L3(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"literal",begin:/\bon|off|true|false|yes|no\b/},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[i,l,s,c,n,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,p=/'[^']*'/,g=t.either(f,h,p),_=t.concat(g,"(\\s*\\.\\s*",g,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:_,className:"attr",starts:{end:/$/,contains:[i,u,l,s,c,n]}}]}}var go="[0-9](_*[0-9])*",ad=`\\.(${go})`,sd="[0-9a-fA-F](_*[0-9a-fA-F])*",cx={className:"number",variants:[{begin:`(\\b(${go})((${ad})|\\.)?|(${ad}))[eE][+-]?(${go})[fFdD]?\\b`},{begin:`\\b(${go})((${ad})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${ad})[fFdD]?\\b`},{begin:`\\b(${go})[fFdD]\\b`},{begin:`\\b0[xX]((${sd})\\.?|(${sd})?\\.(${sd}))[pP][+-]?(${go})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${sd})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Vk(e,t,n){return n===-1?"":e.replace(t,i=>Vk(e,t,n-1))}function z3(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+Vk("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),f={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},p={className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:f,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:f,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:f,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,cx,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},cx,h]}}const ux="[A-Za-z$_][0-9A-Za-z$_]*",B3=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],P3=["true","false","null","undefined","NaN","Infinity"],Zk=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xk=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wk=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],U3=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],F3=[].concat(Wk,Zk,Xk);function j3(e){const t=e.regex,n=(ae,{after:ie})=>{const P="</"+ae[0].slice(1);return ae.input.indexOf(P,ie)!==-1},i=ux,s={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ae,ie)=>{const P=ae[0].length+ae.index,z=ae.input[P];if(z==="<"||z===","){ie.ignoreMatch();return}z===">"&&(n(ae,{after:P})||ie.ignoreMatch());let Y;const U=ae.input.substring(P);if(Y=U.match(/^\s*=/)){ie.ignoreMatch();return}if((Y=U.match(/^\s+extends\s+/))&&Y.index===0){ie.ignoreMatch();return}}},u={$pattern:ux,keyword:B3,literal:P3,built_in:F3,"variable.language":U3},f="[0-9](_?[0-9])*",h=`\\.(${f})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${p})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,v,E,y,S,{match:/\$\d+/},g];_.contains=N.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(N)});const F=[].concat(C,_.contains),R=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(F)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R},M={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Zk,...Xk]}},O={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function k(ae){return t.concat("(?!",ae.join("|"),")")}const q={match:t.concat(/\b/,k([...Wk,"super","import"].map(ae=>`${ae}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},w={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>
200",Z={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),O,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,v,E,y,S,C,{match:/\$\d+/},g,L,{scope:"attr",match:i+t.lookahead(":"),relevance:0},Z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:K,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:l},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},w,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},q,B,M,$,{match:/\$[(.]/}]}}function $3(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],s={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[t,n,e.QUOTE_STRING_MODE,s,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var mo="[0-9](_*[0-9])*",od=`\\.(${mo})`,ld="[0-9a-fA-F](_*[0-9a-fA-F])*",H3={className:"number",variants:[{begin:`(\\b(${mo})((${od})|\\.)?|(${od}))[eE][+-]?(${mo})[fFdD]?\\b`},{begin:`\\b(${mo})((${od})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${od})[fFdD]?\\b`},{begin:`\\b(${mo})[fFdD]\\b`},{begin:`\\b0[xX]((${ld})\\.?|(${ld})?\\.(${ld}))[pP][+-]?(${mo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ld})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function G3(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},c={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,l,s]}]};s.contains.push(c);const u={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},f={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(c,{className:"string"}),"self"]}]},h=H3,p=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),g={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=g;return _.variants[1].contains=[g],g.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,p,n,i,u,f,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0}
vendor: 8,088 bytes, lines 200-201
200,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[g,e.C_LINE_COMMENT_MODE,p],relevance:0},e.C_LINE_COMMENT_MODE,p,u,f,c,e.C_NUMBER_MODE]},p]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},u,f]},c,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
201`},h]}}const q3=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Y3=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],K3=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],V3=[...Y3,...K3],Z3=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Qk=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Jk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),X3=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
201area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),W3=Qk.concat(Jk).sort().reverse();function Q3(e){const t=q3(e),n=W3,i="and or not only",s="[\\w-]+",l="("+s+"|@\\{"+s+"\\})",c=[],u=[],f=function(N){return{className:"string",begin:"~?"+N+".*?"+N}},h=function(N,F,R){return{className:N,begin:F,relevance:R}},p={$pattern:/[a-z-]+/,keyword:i,attribute:Z3.join(" ")},g={begin:"\\(",end:"\\)",contains:u,keywords:p,relevance:0};u.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f("'"),f('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,g,h("variable","@@?"+s,10),h("variable","@\\{"+s+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const _=u.concat({begin:/\{/,end:/\}/,contains:c}),v={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(u)},E={begin:l+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+X3.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:u}}]},y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?ke
201yframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:p,returnEnd:!0,contains:u,relevance:0}},S={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:_}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:l,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,h("keyword","all\\b"),h("variable","@\\{"+s+"\\}"),{begin:"\\b("+V3.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,h("selector-tag",l,0),h("selector-id","#"+l),h("selector-class","\\."+l,0),h("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Qk.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Jk.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},t.FUNCTION_DISPATCH]},C={begin:s+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[x]};return c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,S,C,E,x,v,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:c}}function J3(e){const t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}function ez(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},l={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},c={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,i,s,l,c]}}function tz(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0}
vendor: 31,379 bytes, lines 201-202
201,{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=e.inherit(h,{contains:[]}),_=e.inherit(p,{contains:[]});h.contains.push(_),p.contains.push(g);let v=[n,f];return[h,p,g,_].forEach(x=>{x.contains=x.contains.concat(v)}),v=v.concat(h,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:v},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:v}]}]},n,l,h,p,{className:"quote",begin:"^>\\s+",contains:v,end:"$"},s,i,f,c,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function nz(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},f={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function rz(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:n.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},c={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},f={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},p=[e.BACKSLASH_ESCAPE,l,f],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],_=(y,S,x="\\1")=>{const C=x==="\\1"?x:t.concat(x,S);return t.concat(t.concat("(?:",y,")"),S,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,x,i)},v=(y,S,x)=>t.concat(t.concat("(?:",y,")"),S,/(?:\\.|[^\\\/])*?/,x,i),E=[f,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:p,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:_("s|tr|y",t.either(...g,{capture:!0}))},{begin:_("s|tr|y","\\(","\\)")},{begin:_("s|tr|y","\\[","\\]")},{begin:_("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:v("(?:m|qr)?",/\//,/\//)},{begin:v("m|qr",t.either(...g,{capture:!0}),/\1/)},{begin:v("m|qr",/\(/,/\)/)},{begin:v("m|qr",/\[/,/\]/)},{begin:v("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,u,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=E,c.contains=E,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:E}}function iz(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),l=t.concat(/[A-Z]+/,n),c={scope:"variable",match:"\\$+"+i},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},f={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),p=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(f)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(f),"on:begin":(w,$)=>{$.data._beginMatch=w[1]||w[2]},"on:end":(w,$)=>{$.data._beginMatch!==w[1]&&$.ignoreMatch()}},_=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),v=`[ 	
202]`,E={scope:"string",variants:[p,h,g,_]},y={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},S=["false","null","true"],x=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],F={keyword:x,literal:(w=>{const $=[];return w.forEach(K=>{$.push(K),K.toLowerCase()===K?$.push(K.toUpperCase()):$.push(K.toLowerCase())}),$})(S),built_in:C},R=w=>w.map($=>$.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,t.concat(v,"+"),t.concat("(?!",R(C).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},M=t.concat(i,"\\b(?!\\()"),L={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},I={relevance:0,begin:/\(/,end:/\)/,keywords:F,contains:[O,c,L,e.C_BLOCK_COMMENT_MODE,E,y,D]},B={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(x).join("\\b|"),"|",R(C).join("\\b|"),"\\b)"),i,t.concat(v,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(B);const k=[O,L,e.C_BLOCK_COMMENT_MODE,E,y,D],q={begin:t.concat(/#\[\s*\\?/,t.either(s,l)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:S,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:S,keyword:["new","array"]},contains:["self",...k]},...k,{scope:"meta",variants:[{match:s},{match:l}]}]};return{case_insensitive:!1,keywords:F,contains:[q,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},c,B,L,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:F,contains:["self",q,c,L,e.C_BLOCK_COMMENT_MODE,E,y]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},E,y]}}function az(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function sz(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function oz(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},p={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f,p,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,p,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",v=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,E=`\\b|${i.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${v}))[eE][+-]?(${_})[jJ]?(?=${E})`},{begin:`(${v})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${E})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${E})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${E})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${E})`},{begin:`\\b(${_})[jJ](?=${E})`}]},S={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},x={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",f,y,g,e.HASH_COMMENT_MODE]}]};return h.contains=[g,y,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[f,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,S,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[x]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,x,g]}]}}function lz(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function cz(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,l=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[l,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:l},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function uz(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(i,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[u]}),e.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],p={className:"subst",begin:/#\{/,end:/\}/,keywords:c},g={className:"string",contains:[e.BACKSLASH_ESCAPE,p],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,p]})]}]},_="[1-9](_?[0-9])*|0",v="[0-9](_?[0-9])*",E={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${v}))?([eE][+-]?(${v})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},y={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},D=[g,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:c},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:n}],relevance:0},E,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,p],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,h),relevance:0}].concat(f,h);p.contains=D,y.contains=D;const I=[{begin:/^\s*=>/,starts:{end:"$",contains:D}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:c,contains:D}}];return h.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(I).concat(h).concat(D)}}function dz(e){const t=e.regex,n=/(r#)?/,i=t.concat(n,e.UNDERSCORE_IDENT_RE),s=t.concat(n,e.IDENT_RE),l={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,t.lookahead(/\s*\(/))},c="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],f=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],p=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:p,keyword:u,literal:f,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+c},{begin:"\\b0o([0-7_]+)"+c},{begin:"\\b0x([A-Fa-f0-9_]+)"+c},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+c}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:p}},{className:"punctuation",begin:"->"},l]}}const fz=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),hz=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],pz=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],gz=[...hz,...pz],mz=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),vz=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invali
202d","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),bz=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_z=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-
202area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function yz(e){const t=fz(e),n=bz,i=vz,s="@[a-z-]+",l="and or not only",u={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0}
vendor: 1,111 bytes, line 202
202,{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+gz.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},u,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_z.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inl
202ine-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,u,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:mz.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},u,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Ez(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function xz(e){const t=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},l=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","ver
202sioning","when","whenever","where","width_bucket","window","with","within","without","year"],p=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],_=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],v=p,E=[...h,...f].filter(R=>!p.includes(R)),y={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},S={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:t.concat(/\b/,t.either(...v),/\s*\(/),relevance:0,keywords:{built_in:v}};function C(R){return t.concat(/\b/,t.either(...R.map(D=>D.replace(/\s+/,"\\s+"))),/\b/)}const N={scope:"keyword",match:C(_),relevance:0};function F(R,{exceptions:D,when:M}={}){const L=M;return D=D||[],R.map(O=>O.match(/\|\d+$/)||D.includes(O)?O:L(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:F(E,{when:R=>R.length<3}),literal:l,type:u,built_in:g},contains:[{scope:"type",match:C(c)},N,x,y,i,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,S]}}function eT(e){return e?typeof e=="string"?e:e.source:null}function Gl(e){return Bt("(?=",e,")")}function Bt(...e){return e.map(n=>eT(n)).join("")}function wz(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Vn(...e){return"("+(wz(e).capture?"":"?:")+e.map(i=>eT(i)).join("|")+")"}const tb=e=>Bt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Sz=["Protocol","Type"].map(tb),dx=["init","self"].map(tb),kz=["Any","Self"],wg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],fx=["false","nil","true"],Tz=["assignment","associativity","higherThan","left","lowerThan","none","right"],Az=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],hx=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","
vendor: 11,000 bytes, line 202
202withoutActuallyEscaping","zip"],tT=Vn(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),nT=Vn(tT,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Sg=Bt(tT,nT,"*"),rT=Vn(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),nf=Vn(rT,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),ai=Bt(rT,nf,"*"),cd=Bt(/[A-Z]/,nf,"*"),Cz=["attached","autoclosure",Bt(/convention\(/,Vn("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Bt(/objc\(/,ai,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Nz=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Oz(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,n],s={match:[/\./,Vn(...Sz,...dx)],className:{2:"keyword"}},l={match:Bt(/\./,Vn(...wg)),relevance:0},c=wg.filter(J=>typeof J=="string").concat(["_|0"]),u=wg.filter(J=>typeof J!="string").concat(kz).map(tb),f={variants:[{className:"keyword",match:Vn(...u,...dx)}]},h={$pattern:Vn(/\b\w+/,/#\w+/),keyword:c.concat(Az),literal:fx},p=[s,l,f],g={match:Bt(/\./,Vn(...hx)),relevance:0},_={className:"built_in",match:Bt(/\b/,Vn(...hx),/(?=\()/)},v=[g,_],E={match:/->/,relevance:0},y={className:"operator",relevance:0,variants:[{match:Sg},{match:`\\.(\\.|${nT})+`}]},S=[E,y],x="([0-9]_*)+",C="([0-9a-fA-F]_*)+",N={className:"number",relevance:0,variants:[{match:`\\b(${x})(\\.(${x}))?([eE][+-]?(${x}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${x}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},F=(J="")=>({className:"subst",variants:[{match:Bt(/\\/,J,/[0\\tnr"']/)},{match:Bt(/\\/,J,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(J="")=>({className:"subst",match:Bt(/\\/,J,/[\t ]*(?:[\r\n]|\r\n)/)}),D=(J="")=>({className:"subst",label:"interpol",begin:Bt(/\\/,J,/\(/),end:/\)/}),M=(J="")=>({begin:Bt(J,/"""/),end:Bt(/"""/,J),contains:[F(J),R(J),D(J)]}),L=(J="")=>({begin:Bt(J,/"/),end:Bt(/"/,J),contains:[F(J),D(J)]}),O={className:"string",variants:[M(),M("#"),M("##"),M("###"),L(),L("#"),L("##"),L("###")]},I=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],B={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:I},k=J=>{const V=Bt(J,/\//),H=Bt(/\//,J);return{begin:V,end:H,contains:[...I,{scope:"comment",begin:`#(?!.*${H})`,end:/$/}]}},q={scope:"regexp",variants:[k("###"),k("##"),k("#"),B]},w={match:Bt(/`/,ai,/`/)},$={className:"variable",match:/\$\d+/},K={className:"variable",match:`\\$${nf}+`},Z=[w,$,K],ae={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Nz,contains:[...S,N,O]}]}},ie={scope:"keyword",match:Bt(/@/,Vn(...Cz),Gl(Vn(/\(/,/\s+/)))},P={scope:"meta",match:Bt(/@/,ai)},z=[ae,ie,P],Y={match:Gl(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Bt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,nf,"+")},{className:"type",match:cd,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Bt(/\s+&\s+/,Gl(cd)),relevance:0}]},U={begin:/</,end:/>/,keywords:h,contains:[...i,...p,...z,E,Y]};Y.contains.push(U);const ue={match:Bt(ai,/\s*:/),keywords:"_|0",relevance:0},de={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",ue,...i,q,...p,...v,...S,N,O,...Z,...z,Y]},Se={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,Y]},je={begin:Vn(Gl(Bt(ai,/\s*:/)),Gl(Bt(ai,/\s+/,ai,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:ai}]},re={begin:/\(/,end:/\)/,keywords:h,contains:[je,...i,...p,...S,N,O,...z,Y,de],endsParent:!0,illegal:/["']/},ne={match:[/(func|macro)/,/\s+/,Vn(w.match,ai,Sg)],className:{1:"keyword",3:"title.function"},contains:[Se,re,t],illegal:[/\[/,/%/]},ce={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Se,re,t],illegal:/\[|%/},me={match:[/operator/,/\s+/,Sg],className:{1:"keyword",3:"title"}},_e={begin:[/precedencegroup/,/\s+/,cd],className:{1:"keyword",3:"title"},contains:[Y],keywords:[...Tz,...fx],end:/}/},Ne={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},T={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},oe={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,ai,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[Se,...p,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:cd},...p],relevance:0}]};for(const J of O.variants){const V=J.contains.find(ee=>ee.label==="interpol");V.keywords=h;const H=[...p,...v,...S,N,O,...Z];V.contains=[...H,{begin:/\(/,end:/\)/,contains:["self",...H]}]}return{name:"Swift",keywords:h,contains:[...i,ne,ce,Ne,T,oe,me,_e,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},q,...p,...v,...S,N,O,...Z,...z,Y,de]}}const rf="[A-Za-z$_][0-9A-Za-z$_]*",iT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],aT=["true","false","null","undefined","NaN","Infinity"],sT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],oT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],lT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],cT=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],uT=[].concat(lT,sT,oT);function Rz(e){const t=e.regex,n=(ae,{after:ie})=>{const P="</"+ae[0].slice(1);return ae.input.indexOf(P,ie)!==-1},i=rf,s={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ae,ie)=>{const P=ae[0].length+ae.index,z=ae.input[P];if(z==="<"||z===","){ie.ignoreMatch();return}z===">"&&(n(ae,{after:P})||ie.ignoreMatch());let Y;const U=ae.input.substring(P);if(Y=U.match(/^\s*=/)){ie.ignoreMatch();return}if((Y=U.match(/^\s+extends\s+/))&&Y.index===0){ie.ignoreMatch();return}}},u={$pattern:rf,keyword:iT,literal:aT,built_in:uT,"variable.language":cT},f="[0-9](_?[0-9])*",h=`\\.(${f})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${p})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},v={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,v,E,y,S,{match:/\$\d+/},g];_.contains=N.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(N)});const F=[].concat(C,_.contains),R=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(F)}]),D={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R},M={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...sT,...oT]}},O={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[D],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function k(ae){return t.concat("(?!",ae.join("|"),")")}const q={match:t.concat(/\b/,k([...lT,"super","import"].map(ae=>`${ae}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},w={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},D]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>
202",Z={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[D]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),O,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,v,E,y,S,C,{match:/\$\d+/},g,L,{scope:"attr",match:i+t.lookahead(":"),relevance:0},Z,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:K,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:l},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[D,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},w,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[D]},q,B,M,$,{match:/\$[(.]/}]}}function Mz(e){const t=e.regex,n=Rz(e),i=rf,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:rf,keyword:iT.concat(f),literal:aT,built_in:uT.concat(s),"variable.language":cT},p={className:"meta",begin:"@"+i},g=(y,S,x)=>{const C=y.contains.findIndex(N=>N.label===S);if(C===-1)throw new Error("can not find mode to replace");y.contains.splice(C,1,x)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(p);const _=n.contains.find(y=>y.scope==="attr"),v=Object.assign({},_,{match:t.concat(i,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,_,v]),n.contains=n.contains.concat([p,l,c,v]),g(n,"shebang",e.SHEBANG()),g(n,"use_strict",u);const E=n.contains.find(y=>y.label==="func.def");return E.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Dz(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:t.concat(/# */,t.either(l,s),/ *#/)},{begin:t.concat(/# */,u,/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,t.either(l,s),/ +/,t.either(c,u),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},p={className:"label",begin:/^\w+:/},g=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step 
202stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,f,h,p,g,_,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[_]}]}}function Iz(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},l={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},f={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},l,c,s,e.QUOTE_STRING_MODE,f,h,u]}}function Lz(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=e.inherit(l,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,f,u,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,c,f,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function zz(e){const t="true false yes no null",n="[\\w#;
vendor: 20,885 bytes, lines 202-204
202/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},l={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},u=e.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),_={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},v={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},E={begin:/\{/,end:/\}/,contains:[v],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[v],illegal:"\\n",relevance:0},S=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},_,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},E,y,l,c],x=[...S];return x.pop(),x.push(u),v.contains=x,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:S}}const Bz={arduino:b3,bash:_3,c:y3,cpp:E3,csharp:x3,css:R3,diff:M3,go:D3,graphql:I3,ini:L3,java:z3,javascript:j3,json:$3,kotlin:G3,less:Q3,lua:J3,makefile:ez,markdown:tz,objectivec:nz,perl:rz,php:iz,"php-template":az,plaintext:sz,python:oz,"python-repl":lz,r:cz,ruby:uz,rust:dz,scss:yz,shell:Ez,sql:xz,swift:Oz,typescript:Mz,vbnet:Dz,wasm:Iz,xml:Lz,yaml:zz};var kg,px;function Pz(){if(px)return kg;px=1;function e(W){return W instanceof Map?W.clear=W.delete=W.set=function(){throw new Error("map is read-only")}:W instanceof Set&&(W.add=W.clear=W.delete=function(){throw new Error("set is read-only")}),Object.freeze(W),Object.getOwnPropertyNames(W).forEach(xe=>{const Pe=W[xe],at=typeof Pe;(at==="object"||at==="function")&&!Object.isFrozen(Pe)&&e(Pe)}),W}class t{constructor(xe){xe.data===void 0&&(xe.data={}),this.data=xe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(W){return W.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(W,...xe){const Pe=Object.create(null);for(const at in W)Pe[at]=W[at];return xe.forEach(function(at){for(const Vt in at)Pe[Vt]=at[Vt]}),Pe}const s="</span>",l=W=>!!W.scope,c=(W,{prefix:xe})=>{if(W.startsWith("language:"))return W.replace("language:","language-");if(W.includes(".")){const Pe=W.split(".");return[`${xe}${Pe.shift()}`,...Pe.map((at,Vt)=>`${at}${"_".repeat(Vt+1)}`)].join(" ")}return`${xe}${W}`};class u{constructor(xe,Pe){this.buffer="",this.classPrefix=Pe.classPrefix,xe.walk(this)}addText(xe){this.buffer+=n(xe)}openNode(xe){if(!l(xe))return;const Pe=c(xe.scope,{prefix:this.classPrefix});this.span(Pe)}closeNode(xe){l(xe)&&(this.buffer+=s)}value(){return this.buffer}span(xe){this.buffer+=`<span class="${xe}">`}}const f=(W={})=>{const xe={children:[]};return Object.assign(xe,W),xe};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(xe){this.top.children.push(xe)}openNode(xe){const Pe=f({scope:xe});this.add(Pe),this.stack.push(Pe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(xe){return this.constructor._walk(xe,this.rootNode)}static _walk(xe,Pe){return typeof Pe=="string"?xe.addText(Pe):Pe.children&&(xe.openNode(Pe),Pe.children.forEach(at=>this._walk(xe,at)),xe.closeNode(Pe)),xe}static _collapse(xe){typeof xe!="string"&&xe.children&&(xe.children.every(Pe=>typeof Pe=="string")?xe.children=[xe.children.join("")]:xe.children.forEach(Pe=>{h._collapse(Pe)}))}}class p extends h{constructor(xe){super(),this.options=xe}addText(xe){xe!==""&&this.add(xe)}startScope(xe){this.openNode(xe)}endScope(){this.closeNode()}__addSublanguage(xe,Pe){const at=xe.root;Pe&&(at.scope=`language:${Pe}`),this.add(at)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(W){return W?typeof W=="string"?W:W.source:null}function _(W){return y("(?=",W,")")}function v(W){return y("(?:",W,")*")}function E(W){return y("(?:",W,")?")}function y(...W){return W.map(Pe=>g(Pe)).join("")}function S(W){const xe=W[W.length-1];return typeof xe=="object"&&xe.constructor===Object?(W.splice(W.length-1,1),xe):{}}function x(...W){return"("+(S(W).capture?"":"?:")+W.map(at=>g(at)).join("|")+")"}function C(W){return new RegExp(W.toString()+"|").exec("").length-1}function N(W,xe){const Pe=W&&W.exec(xe);return Pe&&Pe.index===0}const F=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function R(W,{joinWith:xe}){let Pe=0;return W.map(at=>{Pe+=1;const Vt=Pe;let Ut=g(at),Ke="";for(;Ut.length>0;){const He=F.exec(Ut);if(!He){Ke+=Ut;break}Ke+=Ut.substring(0,He.index),Ut=Ut.substring(He.index+He[0].length),He[0][0]==="\\"&&He[1]?Ke+="\\"+String(Number(He[1])+Vt):(Ke+=He[0],He[0]==="("&&Pe++)}return Ke}).map(at=>`(${at})`).join(xe)}const D=/\b\B/,M="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",O="\\b\\d+(\\.\\d+)?",I="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",B="\\b(0b[01]+)",k="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",q=(W={})=>{const xe=/^#![ ]*\//;return W.binary&&(W.begin=y(xe,/.*\b/,W.binary,/\b.*/)),i({scope:"meta",begin:xe,end:/$/,relevance:0,"on:begin":(Pe,at)=>{Pe.index!==0&&at.ignoreMatch()}},W)},w={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[w]},K={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[w]},Z={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ae=function(W,xe,Pe={}){const at=i({scope:"comment",begin:W,end:xe,contains:[]},Pe);at.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Vt=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return at.contains.push({begin:y(/[ ]+/,"(",Vt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),at},ie=ae("//","$"),P=ae("/\\*","\\*/"),z=ae("#","$"),Y={scope:"number",begin:O,relevance:0},U={scope:"number",begin:I,relevance:0},ue={scope:"number",begin:B,relevance:0},de={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[w,{begin:/\[/,end:/\]/,relevance:0,contains:[w]}]},Se={scope:"title",begin:M,relevance:0},je={scope:"title",begin:L,relevance:0},re={begin:"\\.\\s*"+L,relevance:0};var ce=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:w,BINARY_NUMBER_MODE:ue,BINARY_NUMBER_RE:B,COMMENT:ae,C_BLOCK_COMMENT_MODE:P,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:U,C_NUMBER_RE:I,END_SAME_AS_BEGIN:function(W){return Object.assign(W,{"on:begin":(xe,Pe)=>{Pe.data._beginMatch=xe[1]},"on:end":(xe,Pe)=>{Pe.data._beginMatch!==xe[1]&&Pe.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:M,MATCH_NOTHING_RE:D,METHOD_GUARD:re,NUMBER_MODE:Y,NUMBER_RE:O,PHRASAL_WORDS_MODE:Z,QUOTE_STRING_MODE:K,REGEXP_MODE:de,RE_STARTERS_RE:k,SHEBANG:q,TITLE_MODE:Se,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:je});function me(W,xe){W.input[W.index-1]==="."&&xe.ignoreMatch()}function _e(W,xe){W.className!==void 0&&(W.scope=W.className,delete W.className)}function Ne(W,xe){xe&&W.beginKeywords&&(W.begin="\\b("+W.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",W.__beforeBegin=me,W.keywords=W.keywords||W.beginKeywords,delete W.beginKeywords,W.relevance===void 0&&(W.relevance=0))}function T(W,xe){Array.isArray(W.illegal)&&(W.illegal=x(...W.illegal))}function oe(W,xe){if(W.match){if(W.begin||W.end)throw new Error("begin & end are not supported with match");W.begin=W.match,delete W.match}}function J(W,xe){W.relevance===void 0&&(W.relevance=1)}const V=(W,xe)=>{if(!W.beforeMatch)return;if(W.starts)throw new Error("beforeMatch cannot be used with starts");const Pe=Object.assign({},W);Object.keys(W).forEach(at=>{delete W[at]}),W.keywords=Pe.keywords,W.begin=y(Pe.beforeMatch,_(Pe.begin)),W.starts={relevance:0,contains:[Object.assign(Pe,{endsParent:!0})]},W.relevance=0,delete Pe.beforeMatch},H=["of","and","for","in","not","or","if","then","parent","list","value"],ee="keyword";function ye(W,xe,Pe=ee){const at=Object.create(null);return typeof W=="string"?Vt(Pe,W.split(" ")):Array.isArray(W)?Vt(Pe,W):Object.keys(W).forEach(function(Ut){Object.assign(at,ye(W[Ut],xe,Ut))}),at;function Vt(Ut,Ke){xe&&(Ke=Ke.map(He=>He.toLowerCase())),Ke.forEach(function(He){const rt=He.split("|");at[rt[0]]=[Ut,Ae(rt[0],rt[1])]})}}function Ae(W,xe){return xe?Number(xe):fe(W)?0:1}function fe(W){return H.includes(W.toLowerCase())}const Ce={},Re=W=>{console.error(W)},Oe=(W,...xe)=>{console.log(`WARN: ${W}`,...xe)},se=(W,xe)=>{Ce[`${W}/${xe}`]||(console.log(`Deprecated as of ${W}. ${xe}`),Ce[`${W}/${xe}`]=!0)},Te=new Error;function Le(W,xe,{key:Pe}){let at=0;const Vt=W[Pe],Ut={},Ke={};for(let He=1;He<=xe.length;He++)Ke[He+at]=Vt[He],Ut[He+at]=!0,at+=C(xe[He-1]);W[Pe]=Ke,W[Pe]._emit=Ut,W[Pe]._multi=!0}function Je(W){if(Array.isArray(W.begin)){if(W.skip||W.excludeBegin||W.returnBegin)throw Re("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Te;if(typeof W.beginScope!="object"||W.beginScope===null)throw Re("beginScope must be object"),Te;Le(W,W.begin,{key:"beginScope"}),W.begin=R(W.begin,{joinWith:""})}}function pt(W){if(Array.isArray(W.end)){if(W.skip||W.excludeEnd||W.returnEnd)throw Re("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Te;if(typeof W.endScope!="object"||W.endScope===null)throw Re("endScope must be object"),Te;Le(W,W.end,{key:"endScope"}),W.end=R(W.end,{joinWith:""})}}function Yt(W){W.scope&&typeof W.scope=="object"&&W.scope!==null&&(W.beginScope=W.scope,delete W.scope)}function On(W){Yt(W),typeof W.beginScope=="string"&&(W.beginScope={_wrap:W.beginScope}),typeof W.endScope=="string"&&(W.endScope={_wrap:W.endScope}),Je(W),pt(W)}function dt(W){function xe(Ke,He){return new RegExp(g(Ke),"m"+(W.case_insensitive?"i":"")+(W.unicodeRegex?"u":"")+(He?"g":""))}class Pe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(He,rt){rt.position=this.position++,this.matchIndexes[this.matchAt]=rt,this.regexes.push([rt,He]),this.matchAt+=C(He)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const He=this.regexes.map(rt=>rt[1]);this.matcherRe=xe(R(He,{joinWith:"|"}),!0),this.lastIndex=0}exec(He){this.matcherRe.lastIndex=this.lastIndex;const rt=this.matcherRe.exec(He);if(!rt)return null;const un=rt.findIndex((gi,vs)=>vs>0&&gi!==void 0),en=this.matchIndexes[un];return rt.splice(0,un),Object.assign(rt,en)}}class at{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(He){if(this.multiRegexes[He])return this.multiRegexes[He];const rt=new Pe;return this.rules.slice(He).forEach(([un,en])=>rt.addRule(un,en)),rt.compile(),this.multiRegexes[He]=rt,rt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(He,rt){this.rules.push([He,rt]),rt.type==="begin"&&this.count++}exec(He){const rt=this.getMatcher(this.regexIndex);rt.lastIndex=this.lastIndex;let un=rt.exec(He);if(this.resumingScanAtSamePosition()&&!(un&&un.index===this.lastIndex)){const en=this.getMatcher(0);en.lastIndex=this.lastIndex+1,un=en.exec(He)}return un&&(this.regexIndex+=un.position+1,this.regexIndex===this.count&&this.considerAll()),un}}function Vt(Ke){const He=new at;return Ke.contains.forEach(rt=>He.addRule(rt.begin,{rule:rt,type:"begin"})),Ke.terminatorEnd&&He.addRule(Ke.terminatorEnd,{type:"end"}),Ke.illegal&&He.addRule(Ke.illegal,{type:"illegal"}),He}function Ut(Ke,He){const rt=Ke;if(Ke.isCompiled)return rt;[_e,oe,On,V].forEach(en=>en(Ke,He)),W.compilerExtensions.forEach(en=>en(Ke,He)),Ke.__beforeBegin=null,[Ne,T,J].forEach(en=>en(Ke,He)),Ke.isCompiled=!0;let un=null;return typeof Ke.keywords=="object"&&Ke.keywords.$pattern&&(Ke.keywords=Object.assign({},Ke.keywords),un=Ke.keywords.$pattern,delete Ke.keywords.$pattern),un=un||/\w+/,Ke.keywords&&(Ke.keywords=ye(Ke.keywords,W.case_insensitive)),rt.keywordPatternRe=xe(un,!0),He&&(Ke.begin||(Ke.begin=/\B|\b/),rt.beginRe=xe(rt.begin),!Ke.end&&!Ke.endsWithParent&&(Ke.end=/\B|\b/),Ke.end&&(rt.endRe=xe(rt.end)),rt.terminatorEnd=g(rt.end)||"",Ke.endsWithParent&&He.terminatorEnd&&(rt.terminatorEnd+=(Ke.end?"|":"")+He.terminatorEnd)),Ke.illegal&&(rt.illegalRe=xe(Ke.illegal)),Ke.contains||(Ke.contains=[]),Ke.contains=[].concat(...Ke.contains.map(function(en){return gn(en==="self"?Ke:en)})),Ke.contains.forEach(function(en){Ut(en,rt)}),Ke.starts&&Ut(Ke.starts,He),rt.matcher=Vt(rt),rt}if(W.compilerExtensions||(W.compilerExtensions=[]),W.contains&&W.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return W.classNameAliases=i(W.classNameAliases||{}),Ut(W)}function Pt(W){return W?W.endsWithParent||Pt(W.starts):!1}function gn(W){return W.variants&&!W.cachedVariants&&(W.cachedVariants=W.variants.map(function(xe){return i(W,{variants:null},xe)})),W.cachedVariants?W.cachedVariants:Pt(W)?i(W,{starts:W.starts?i(W.starts):null}):Object.isFrozen(W)?i(W):W}var ft="11.11.1";class hr extends Error{constructor(xe,Pe){super(xe),this.name="HTMLInjectionError",this.html=Pe}}const Rn=n,ms=i,hi=Symbol("nomatch"),pi=7,pr=function(W){const xe=Object.create(null),Pe=Object.create(null),at=[];let Vt=!0;const Ut="Could not find the language '{}', did you forget to load/include a language module?",Ke={disableAutodetect:!0,name:"Plain text",contains:[]};let He={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function rt(Me){return He.noHighlightRe.test(Me)}function un(Me){let We=Me.className+" ";We+=Me.parentNode?Me.parentNode.className:"";const gt=He.languageDetectRe.exec(We);if(gt){const Nt=Yn(gt[1]);return Nt||(Oe(Ut.replace("{}",gt[1])),Oe("Falling back to no-highlight mode for this block.",Me)),Nt?gt[1]:"no-highlight"}return We.split(/\s+/).find(Nt=>rt(Nt)||Yn(Nt))}function en(Me,We,gt){let Nt="",fn="";typeof We=="object"?(Nt=Me,gt=We.ignoreIllegals,fn=We.language):(se("10.7.0","highlight(lang, code, ...args) has been deprecated."),se("10.7.0",`Please use highlight(code, options) instead.
203https://github.com/highlightjs/highlight.js/issues/2277`),fn=Me,Nt=We),gt===void 0&&(gt=!0);const jn={code:Nt,language:fn};Ia("before:highlight",jn);const gr=jn.result?jn.result:gi(jn.language,jn.code,gt);return gr.code=jn.code,Ia("after:highlight",gr),gr}function gi(Me,We,gt,Nt){const fn=Object.create(null);function jn(ze,Ve){return ze.keywords[Ve]}function gr(){if(!nt.keywords){vn.addText(Ot);return}let ze=0;nt.keywordPatternRe.lastIndex=0;let Ve=nt.keywordPatternRe.exec(Ot),lt="";for(;Ve;){lt+=Ot.substring(ze,Ve.index);const Et=Mn.case_insensitive?Ve[0].toLowerCase():Ve[0],an=jn(nt,Et);if(an){const[Rr,Fo]=an;if(vn.addText(lt),lt="",fn[Et]=(fn[Et]||0)+1,fn[Et]<=pi&&(Qi+=Fo),Rr.startsWith("_"))lt+=Ve[0];else{const zc=Mn.classNameAliases[Rr]||Rr;mr(Ve[0],zc)}}else lt+=Ve[0];ze=nt.keywordPatternRe.lastIndex,Ve=nt.keywordPatternRe.exec(Ot)}lt+=Ot.substring(ze),vn.addText(lt)}function Wn(){if(Ot==="")return;let ze=null;if(typeof nt.subLanguage=="string"){if(!xe[nt.subLanguage]){vn.addText(Ot);return}ze=gi(nt.subLanguage,Ot,!0,Lc[nt.subLanguage]),Lc[nt.subLanguage]=ze._top}else ze=bs(Ot,nt.subLanguage.length?nt.subLanguage:null);nt.relevance>0&&(Qi+=ze.relevance),vn.__addSublanguage(ze._emitter,ze.language)}function Kt(){nt.subLanguage!=null?Wn():gr(),Ot=""}function mr(ze,Ve){ze!==""&&(vn.startScope(Ve),vn.addText(ze),vn.endScope())}function Dc(ze,Ve){let lt=1;const Et=Ve.length-1;for(;lt<=Et;){if(!ze._emit[lt]){lt++;continue}const an=Mn.classNameAliases[ze[lt]]||ze[lt],Rr=Ve[lt];an?mr(Rr,an):(Ot=Rr,gr(),Ot=""),lt++}}function ys(ze,Ve){return ze.scope&&typeof ze.scope=="string"&&vn.openNode(Mn.classNameAliases[ze.scope]||ze.scope),ze.beginScope&&(ze.beginScope._wrap?(mr(Ot,Mn.classNameAliases[ze.beginScope._wrap]||ze.beginScope._wrap),Ot=""):ze.beginScope._multi&&(Dc(ze.beginScope,Ve),Ot="")),nt=Object.create(ze,{parent:{value:nt}}),nt}function Bo(ze,Ve,lt){let Et=N(ze.endRe,lt);if(Et){if(ze["on:end"]){const an=new t(ze);ze["on:end"](Ve,an),an.isMatchIgnored&&(Et=!1)}if(Et){for(;ze.endsParent&&ze.parent;)ze=ze.parent;return ze}}if(ze.endsWithParent)return Bo(ze.parent,Ve,lt)}function Es(ze){return nt.matcher.regexIndex===0?(Ot+=ze[0],1):(Ji=!0,0)}function Tf(ze){const Ve=ze[0],lt=ze.rule,Et=new t(lt),an=[lt.__beforeBegin,lt["on:begin"]];for(const Rr of an)if(Rr&&(Rr(ze,Et),Et.isMatchIgnored))return Es(Ve);return lt.skip?Ot+=Ve:(lt.excludeBegin&&(Ot+=Ve),Kt(),!lt.returnBegin&&!lt.excludeBegin&&(Ot=Ve)),ys(lt,ze),lt.returnBegin?0:Ve.length}function Qn(ze){const Ve=ze[0],lt=We.substring(ze.index),Et=Bo(nt,ze,lt);if(!Et)return hi;const an=nt;nt.endScope&&nt.endScope._wrap?(Kt(),mr(Ve,nt.endScope._wrap)):nt.endScope&&nt.endScope._multi?(Kt(),Dc(nt.endScope,ze)):an.skip?Ot+=Ve:(an.returnEnd||an.excludeEnd||(Ot+=Ve),Kt(),an.excludeEnd&&(Ot=Ve));do nt.scope&&vn.closeNode(),!nt.skip&&!nt.subLanguage&&(Qi+=nt.relevance),nt=nt.parent;while(nt!==Et.parent);return Et.starts&&ys(Et.starts,ze),an.returnEnd?0:Ve.length}function Po(){const ze=[];for(let Ve=nt;Ve!==Mn;Ve=Ve.parent)Ve.scope&&ze.unshift(Ve.scope);ze.forEach(Ve=>vn.openNode(Ve))}let La={};function xs(ze,Ve){const lt=Ve&&Ve[0];if(Ot+=ze,lt==null)return Kt(),0;if(La.type==="begin"&&Ve.type==="end"&&La.index===Ve.index&&lt===""){if(Ot+=We.slice(Ve.index,Ve.index+1),!Vt){const Et=new Error(`0 width match regex (${Me})`);throw Et.languageName=Me,Et.badRule=La.rule,Et}return 1}if(La=Ve,Ve.type==="begin")return Tf(Ve);if(Ve.type==="illegal"&&!gt){const Et=new Error('Illegal lexeme "'+lt+'" for mode "'+(nt.scope||"<unnamed>")+'"');throw Et.mode=nt,Et}else if(Ve.type==="end"){const Et=Qn(Ve);if(Et!==hi)return Et}if(Ve.type==="illegal"&&lt==="")return Ot+=`
204`,1;if(Uo>1e5&&Uo>Ve.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ot+=lt,lt.length}const Mn=Yn(Me);if(!Mn)throw Re(Ut.replace("{}",Me)),new Error('Unknown language: "'+Me+'"');const Ic=dt(Mn);let ws="",nt=Nt||Ic;const Lc={},vn=new He.__emitter(He);Po();let Ot="",Qi=0,bi=0,Uo=0,Ji=!1;try{if(Mn.__emitTokens)Mn.__emitTokens(We,vn);else{for(nt.matcher.considerAll();;){Uo++,Ji?Ji=!1:nt.matcher.considerAll(),nt.matcher.lastIndex=bi;const ze=nt.matcher.exec(We);if(!ze)break;const Ve=We.substring(bi,ze.index),lt=xs(Ve,ze);bi=ze.index+lt}xs(We.substring(bi))}return vn.finalize(),ws=vn.toHTML(),{language:Me,value:ws,relevance:Qi,illegal:!1,_emitter:vn,_top:nt}}catch(ze){if(ze.message&&ze.message.includes("Illegal"))return{language:Me,value:Rn(We),illegal:!0,relevance:0,_illegalBy:{message:ze.message,index:bi,context:We.slice(bi-100,bi+100),mode:ze.mode,resultSoFar:ws},_emitter:vn};if(Vt)return{language:Me,value:Rn(We),illegal:!1,relevance:0,errorRaised:ze,_emitter:vn,_top:nt};throw ze}}function vs(Me){const We={value:Rn(Me),illegal:!1,relevance:0,_top:Ke,_emitter:new He.__emitter(He)};return We._emitter.addText(Me),We}function bs(Me,We){We=We||He.languages||Object.keys(xe);const gt=vs(Me),Nt=We.filter(Yn).filter(Xi).map(Kt=>gi(Kt,Me,!1));Nt.unshift(gt);const fn=Nt.sort((Kt,mr)=>{if(Kt.relevance!==mr.relevance)return mr.relevance-Kt.relevance;if(Kt.language&&mr.language){if(Yn(Kt.language).supersetOf===mr.language)return 1;if(Yn(mr.language).supersetOf===Kt.language)return-1}return 0}),[jn,gr]=fn,Wn=jn;return Wn.secondBest=gr,Wn}function Qr(Me,We,gt){const Nt=We&&Pe[We]||gt;Me.classList.add("hljs"),Me.classList.add(`language-${Nt}`)}function dn(Me){let We=null;const gt=un(Me);if(rt(gt))return;if(Ia("before:highlightElement",{el:Me,language:gt}),Me.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Me);return}if(Me.children.length>
2040&&(He.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Me)),He.throwUnescapedHTML))throw new hr("One of your code blocks includes unescaped HTML.",Me.innerHTML);We=Me;const Nt=We.textContent,fn=gt?en(Nt,{language:gt,ignoreIllegals:!0}):bs(Nt);Me.innerHTML=fn.value,Me.dataset.highlighted="yes",Qr(Me,gt,fn.language),Me.result={language:fn.language,re:fn.relevance,relevance:fn.relevance},fn.secondBest&&(Me.secondBest={language:fn.secondBest.language,relevance:fn.secondBest.relevance}),Ia("after:highlightElement",{el:Me,result:fn,text:Nt})}function Fn(Me){He=ms(He,Me)}const Zi=()=>{_s(),se("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function Lo(){_s(),se("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let Oc=!1;function _s(){function Me(){_s()}if(document.readyState==="loading"){Oc||window.addEventListener("DOMContentLoaded",Me,!1),Oc=!0;return}document.querySelectorAll(He.cssSelector).forEach(dn)}function Rc(Me,We){let gt=null;try{gt=We(W)}catch(Nt){if(Re("Language definition for '{}' could not be registered.".replace("{}",Me)),Vt)Re(Nt);else throw Nt;gt=Ke}gt.name||(gt.name=Me),xe[Me]=gt,gt.rawDefinition=We.bind(null,W),gt.aliases&&mi(gt.aliases,{languageName:Me})}function Da(Me){delete xe[Me];for(const We of Object.keys(Pe))Pe[We]===Me&&delete Pe[We]}function zo(){return Object.keys(xe)}function Yn(Me){return Me=(Me||"").toLowerCase(),xe[Me]||xe[Pe[Me]]}function mi(Me,{languageName:We}){typeof Me=="string"&&(Me=[Me]),Me.forEach(gt=>{Pe[gt.toLowerCase()]=We})}function Xi(Me){const We=Yn(Me);return We&&!We.disableAutodetect}function Wi(Me){Me["before:highlightBlock"]&&!Me["before:highlightElement"]&&(Me["before:highlightElement"]=We=>{Me["before:highlightBlock"](Object.assign({block:We.el},We))}),Me["after:highlightBlock"]&&!Me["after:highlightElement"]&&(Me["after:highlightElement"]=We=>{Me["after:highlightBlock"](Object.assign({block:We.el},We))})}function mn(Me){Wi(Me),at.push(Me)}function Mc(Me){const We=at.indexOf(Me);We!==-1&&at.splice(We,1)}function Ia(Me,We){const gt=Me;at.forEach(function(Nt){Nt[gt]&&Nt[gt](We)})}function vi(Me){return se("10.7.0","highlightBlock will be removed entirely in v12.0"),se("10.7.0","Please use highlightElement now."),dn(Me)}Object.assign(W,{highlight:en,highlightAuto:bs,highlightAll:_s,highlightElement:dn,highlightBlock:vi,configure:Fn,initHighlighting:Zi,initHighlightingOnLoad:Lo,registerLanguage:Rc,unregisterLanguage:Da,listLanguages:zo,getLanguage:Yn,registerAliases:mi,autoDetection:Xi,inherit:ms,addPlugin:mn,removePlugin:Mc}),W.debugMode=function(){Vt=!1},W.safeMode=function(){Vt=!0},W.versionString=ft,W.regex={concat:y,lookahead:_,either:x,optional:E,anyNumberOfTimes:v};for(const Me in ce)typeof ce[Me]=="object"&&e(ce[Me]);return Object.assign(W,ce),W},wn=pr({});return wn.newInstance=()=>pr({}),kg=wn,wn.HighlightJS=wn,wn.default=wn,kg}var Uz=Pz();const Fz=Ro(Uz),gx={},jz="hljs-";function $z(e){const t=Fz.newInstance();return e&&l(e),{highlight:n,highlightAuto:i,listLanguages:s,register:l,registerAlias:c,registered:u};function n(f,h,p){const g=p||gx,_=typeof g.prefix=="string"?g.prefix:jz;if(!t.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");t.configure({__emitter:Hz,classPrefix:_});const v=t.highlight(h,{ignoreIllegals:!0,language:f});if(v.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:v.errorRaised});const E=v._emitter.root,y=E.data;return y.language=v.language,y.relevance=v.relevance,E}function i(f,h){const g=(h||gx).subset||s();let _=-1,v=0,E;for(;++_<g.length;){const y=g[_];if(!t.getLanguage(y))continue;const S=n(y,f,h);S.data&&S.data.relevance!==void 0&&S.data.relevance>v&&(v=S.data.relevance,E=S)}return E||{type:"root",children:[],data:{language:void 0,relevance:v}}}function s(){return t.listLanguages()}function l(f,h){if(typeof f=="string")t.registerLanguage(f,h);else{let p;for(p in f)Object.hasOwn(f,p)&&t.registerLanguage(p,f[p])}}function c(f,h){if(typeof f=="string")t.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let p;for(p in f)if(Object.hasOwn(f,p)){const g=f[p];t.registerAliases(typeof g=="string"?g:[...g],{languageName:p})}}}function u(f){return!!t.getLanguage(f)}}class Hz{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],i=n.children[n.children.length-1];i&&i.type==="text"?i.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const i=this.stack[this.stack.length-1],s=t.root.children;n?i.children.push({type:"element",tagName:"span",properties:{className:[n]},children:s}):i.children.push(...s)}openNode(t){const n=this,i=t.split(".").map(function(c,u){return u?c+"_".repeat(u):n.options.classPrefix+c}),s=this.stack[this.stack.length-1],l={type:"element",tagName:"span",properties:{className:i},children:[]};s.children.push(l),this.stack.push(l)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Gz={};function qz(e){const t=e||Gz,n=t.aliases,i=t.detect||!1,s=t.languages||Bz,l=t.plainText,c=t.prefix,u=t.subset;let f="hljs";const h=$z(s);if(n&&h.registerAlias(n),c){const p=c.indexOf("-");f=p===-1?c:c.slice(0,p)}return function(p,g){_f(p,"element",function(_,v,E){if(_.tagName!=="code"||!E||E.type!=="element"||E.tagName!=="pre")return;const y=Yz(_);if(y===!1||!y&&!i||y&&l&&l.includes(y))return;Array.isArray(_.properties.className)||(_.properties.className=[]),_.properties.className.includes(f)||_.properties.className.unshift(f);const S=u3(_,{whitespace:"pre"});let x;try{x=y?h.highlight(y,S,{prefix:c}):h.highlightAuto(S,{prefix:c,subset:u})}catch(C){const N=C;if(y&&/Unknown language/.test(N.message)){g.message("Cannot highlight as `"+y+"`, it’s not registered",{ancestors:[E,_],cause:N,place:_.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw N}!y&&x.data&&x.data.language&&_.properties.className.push("language-"+x.data.language),x.children.length>0&&(_.children=x.children)})}}function Yz(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let i;for(;++n<t.length;){const s=String(t[n]);if(s==="no-highlight"||s==="nohighlight")return!1;!i&&s.slice(0,5)==="lang-"&&(i=s.slice(5)),!i&&s.slice(0,9)==="language-"&&(i=s.slice(9))}return i}const _U=[r3],yU=[[qz,{detect:!0,ignoreMissing:!0}]];function dT(e){return e.replace(/(\.[a-z0-9]+)$/i,"-light$1")}function Ym(e,t){return t?`${e} ${t}`:e}function EU(e){const{src:t,alt:n,className:i,width:s}=e;return G.jsxs(G.Fragment,{children:[G.jsx("img",{src:t,alt:n,width:s,loading:"lazy",className:Ym("shotDark",i)}),G.jsx("img",{src:dT(t),alt:n,width:s,loading:"lazy",className:Ym("shotLight",i)})]})}function xU(e){const{src:t,alt:n,className:i,preload:s="metadata"}=e,l=(c,u)=>G.jsx("video",{src:c,poster:c.replace(/\.mp4$/,"-poster.png"),controls:!0,muted:!0,loop:!0,playsInl
204ine:!0,preload:s,"aria-label":n,className:Ym(u,i)});return G.jsxs(G.Fragment,{children:[l(t,"shotDark"),l(dT(t),"shotLight")]})}const Kz=or.free.credits,ud=or.builder,Vz=or.standard.credits.toLocaleString(),Zz=or.standard.publishes,wU=[{id:"free",name:or.free.label,price:`$${or.free.price}`,priceSuffix:"",tagline:"Kick the tires — build a real app and see it run.",features:[{text:"Instant pixel-accurate iOS preview in your browser"},{text:`${Kz} credits/month to try it out — enough to build something real`},{lead:"Install on your iPhone",text:" with your free Apple ID — no $99 Developer account"},{text:"App Store & TestFlight publishing",muted:!0}],cta:"Start building"},{id:"builder",name:ud.label,price:`$${ud.price}`,priceSuffix:"/ month",tagline:"Everything you need to ship — the AI rides your ChatGPT plan.",badge:"Bring your ChatGPT",features:[{lead:"Agent runs on your ChatGPT subscription",text:" — no token bills from us",highlight:!0},{text:`${ud.publishes} publishes / month — TestFlight & App Store`},{text:"Over-the-air updates for installed apps"},{text:`${ud.credits} credits / month for builds, logos, mockups & 3D assets`}],cta:"Start shipping",highlighted:!0},{id:"standard",name:or.standard.label,price:`$${or.standard.price}`,priceSuffix:"/ month",tagline:"For serious ship rates — the AI is included, no ChatGPT needed.",features:[{text:`${Vz} credits / month — AI, builds & assets on one meter`},{text:"Use other advanced models like Opus and Fable"},{text:`${Zz} publishes / month`},{lead:"Connect ChatGPT here too",text:" — run the AI on your subscription and your credits last longer"}],cta:"Choose Standard"}];var fT=nw();function mx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xz(...e){return t=>{let n=!1;const i=e.map(s=>{const l=mx(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():mx(e[s],null)}}}}function Yi(...e){return Q.useCallback(Xz(...e),e)}function nb(e){const t=Q.forwardRef((n,i)=>{let{children:s,...l}=n,c=null,u=!1;const f=[];vx(s)&&typeof dd=="function"&&(s=dd(s._payload)),Q.Children.forEach(s,_=>{var v;if(n9(_)){u=!0;const E=_;let y="child"in E.props?E.props.child:E.props.children;vx(y)&&typeof dd=="function"&&(y=dd(y._payload)),c=Jz(E,y),f.push((v=c==null?void 0:c.props)==null?void 0:v.children)}else f.push(_)}),c?c=Q.cloneElement(c,void 0,f):!u&&Q.Children.count(s)===1&&Q.isValidElement(s)&&(c=s);const h=c?t9(c):void 0,p=Yi(i,h);if(!c){if(s||s===0)throw new Error(u?s9(e):a9(e));return s}const g=e9(l,c.props??{});return c.type!==Q.Fragment&&(g.ref=i?p:h),Q.cloneElement(c,g)});return t.displayName=`${e}.Slot`,t}var Wz=nb("Slot"),Qz=Symbol.for("radix.slottable"),Jz=(e,t)=>{if("child"in e.props){const n=e.props.child;return Q.isValidElement(n)?Q.cloneElement(n,void 0,e.props.children(n.props.children)):null}return Q.isValidElement(t)?t:null};function e9(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function t9(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function n9(e){return Q.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Qz}var r9=Symbol.for("react.lazy");function vx(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===r9&&"_payload"in e&&i9(e._payload)}function i9(e){return typeof e=="object"&&e!==null&&"then"in e}var a9=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,s9=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,dd=fv[" use ".trim().toString()],o9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ki=o9.reduce((e,t)=>
vendor: 4,267 bytes, line 204
204{const n=nb(`Primitive.${t}`),i=Q.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l9(e,t){e&&fT.flushSync(()=>e.dispatchEvent(t))}function hT(e,t=[]){let n=[];function i(l,c){const u=Q.createContext(c);u.displayName=l+"Context";const f=n.length;n=[...n,c];const h=g=>{var x;const{scope:_,children:v,...E}=g,y=((x=_==null?void 0:_[e])==null?void 0:x[f])||u,S=Q.useMemo(()=>E,Object.values(E));return G.jsx(y.Provider,{value:S,children:v})};h.displayName=l+"Provider";function p(g,_){var y;const v=((y=_==null?void 0:_[e])==null?void 0:y[f])||u,E=Q.useContext(v);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[h,p]}const s=()=>{const l=n.map(c=>Q.createContext(c));return function(u){const f=(u==null?void 0:u[e])||l;return Q.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,c9(s,...t)]}function c9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const g=f(l)[`__scope${h}`];return{...u,...g}},{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Gi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}var yc=globalThis!=null&&globalThis.document?Q.useLayoutEffect:()=>{},u9=fv[" useInsertionEffect ".trim().toString()]||yc;function d9({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,l,c]=f9({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:s;{const p=Q.useRef(e!==void 0);Q.useEffect(()=>{const g=p.current;g!==u&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,i])}const h=Q.useCallback(p=>{var g;if(u){const _=h9(p)?p(e):p;_!==e&&((g=c.current)==null||g.call(c,_))}else l(p)},[u,e,l,c]);return[f,h]}function f9({defaultProp:e,onChange:t}){const[n,i]=Q.useState(e),s=Q.useRef(n),l=Q.useRef(t);return u9(()=>{l.current=t},[t]),Q.useEffect(()=>{var c;s.current!==n&&((c=l.current)==null||c.call(l,n),s.current=n)},[n,s]),[n,i,l]}function h9(e){return typeof e=="function"}function p9(e,t){return Q.useReducer((n,i)=>t[n][i]??n,e)}var yf=e=>{const{present:t,children:n}=e,i=g9(t),s=typeof n=="function"?n({present:i.isPresent}):Q.Children.only(n),l=m9(i.ref,v9(s));return typeof n=="function"||i.isPresent?Q.cloneElement(s,{ref:l}):null};yf.displayName="Presence";function g9(e){const[t,n]=Q.useState(),i=Q.useRef(null),s=Q.useRef(e),l=Q.useRef("none"),c=e?"mounted":"unmounted",[u,f]=p9(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Q.useEffect(()=>{const h=fd(i.current);l.current=u==="mounted"?h:"none"},[u]),yc(()=>{const h=i.current,p=s.current;if(p!==e){const _=l.current,v=fd(h);e?f("MOUNT"):v==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&_!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),yc(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=v=>{const y=fd(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(f("ANIMATION_END"),!s.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},_=v=>{v.target===t&&(l.current=fd(i.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:Q.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function bx(e,t){if(typeof e=="function")return e(t);
204e!=null&&(e.current=t)}function m9(...e){const t=Q.useRef(e);return t.current=e,Q.useCallback(n=>{const i=t.current;let s=!1;const l=i.map(c=>{const u=bx(c,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let c=0;c<l.length;c++){const u=l[c];typeof u=="function"?u():bx(i[c],null)}}},[])}function fd(e){return(e==null?void 0:e.animationName)||"none"}function v9(e){var i,s;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var b9=fv[" useId ".trim().toString()]||(()=>{}),_9=0;function Tg(e){const[t,n]=Q.useState(b9());return yc(()=>{n(i=>i??String(_9++))},[e]),e||(t?`radix-${t}`:"")}function Ec(e){const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)}),[])}function y9(e,t=globalThis==null?void 0:globalThis.document){const n=Ec(e);Q.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var E9="DismissableLayer",Km="dismissableLayer.update",x9="dismissableLayer.pointerDownOutside",w9="dismissableLayer.focusOutside",_x,rb=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pT=Q.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,onDismiss:f,...h}=e,p=Q.useContext(rb),[g,_]=Q.useState(null),v=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=Q.useState({}),y=Yi(t,O=>_(O)),S=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(x),N=g?S.indexOf(g):-1,F=p.layersWithOutsidePointerEventsDisabled.size>0,R=N>=C,D=Q.useRef(!1),M=A9(O=>{const I=O.target;if(!(I instanceof Node))return;const B=[...p.branches].some(k=>k.contains(I));!R||B||(l==null||l(O),u==null||u(O),O.defaultPrevented||f==null||f())},{ownerDocument:v,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:D,dismissableSurfaces:p.dismissableSurfaces}),L=C9(O=>{if(i&&D.current)return;const I=O.target;[...p.branches].some(k=>k.contains(I))||(c==null||c(O),u==null||u(O),O.defaultPrevented||f==null||f())},v);return y9(O=>{N===p.layers.size-1&&(s==null||s(O),!O.defaultPrevented&&f&&(O.preventDefault(),f()))},v),Q.useEffect(()=>{if(g)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(_x=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(g)),p.layers.add(g),yx(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(g),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=_x))}},[g,v,n,p]),Q.useEffect(()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),yx())},[g,p]),Q.useEffect(()=>{const O=()=>E({});return document.addEventListener(Km,O),()=>document.removeEventListener(Km,O)},[]),G.jsx(Ki.div,{...h,ref:y,style:{pointerEvents:F?R?"auto":"none":void 0,...e.style},onFocusCapture:Gi(e.onFocusCapture,L.onFocusCapture),onBlurCapture:Gi(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Gi(e.onPointerDownCapture,M.onPointerDownCapture)})});pT.displayName=E9;var S9="DismissableLayerBranch",k9=Q.forwardRef((e,t)=>{const n=Q.useContext(rb),i=Q.useRef(null),s=Yi(t,i);return Q.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),G.jsx(Ki.div,{...e,ref:s})});k9.displayName=S9;function T9(){const e=Q.useContext(rb),[t,n]=Q.useState(null);return Q.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function A9(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l}=t,c=Ec(e),u=Q.useRef(!1),f=Q.useRef(!1),h=Q.useRef(new Map),p=Q.useRef(()=>{});return Q.useEffect(()=>{function g(){f.current=!1,s.current=!1,h.current.clear()}function _(){return Array.from(h.current.values()).some(Boolean)}function v(C){if(!f.current)return;const N=C.target;N instanceof Node&&[...l].some(R=>R.contains(N))||h.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{f.current&&p.current()},0)}function E(C){f.current&&h.current.set(C.type,!1)}const y=C=>{if(C.target&&!u.current){let N=function(){n.removeEventListener("click",p.current);const R=_();g(),R||gT(x9,c,F,{discrete:!0})};const F={originalEvent:C};f.current=!0,s.current=i&&C.button===0,h.current.clear(),!i||C.button!==0?N():(n.removeEventListener("click",p.current),p.current=N,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),g();u.current=!1},S=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of S)n.addEventListener(C,v,!0),n.addEventListener(C,E);const x=window.setTimeout(()=>{n.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(x),n.removeEventListener("pointerdown",y),n.removeEventListener("click",p.current);for(const C of S)n.removeEventListener(C,v,!0),n.removeEventListener(C,E)}},[n,c,i,s,l]),{onPointerDownCapture:()=>u.current=!0}}function C9(e,t=globalThis==null?void 0:globalThis.document){const n=Ec(e),i=Q.useRef(!1);return Q.useEffect(()=>{const s=l=>{l.target&&!i.current&&gT(w9,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function yx(){const e=new CustomEvent(Km);document.dispatchEvent(e)}function gT(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?l9(s,l):s.dispatchEvent(l)}var Ag="focusScope.autoFocusOnMount",Cg="focusScope.autoFocusOnUnmount",Ex={bubbles:!1,cancelable:!0},N9="FocusScope",mT=Q.forwardRef((e,t)=>
vendor: 5,288 bytes, line 204
204{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...c}=e,[u,f]=Q.useState(null),h=Ec(s),p=Ec(l),g=Q.useRef(null),_=Yi(t,y=>f(y)),v=Q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Q.useEffect(()=>{if(i){let y=function(N){if(v.paused||!u)return;const F=N.target;u.contains(F)?g.current=F:Ta(g.current,{select:!0})},S=function(N){if(v.paused||!u)return;const F=N.relatedTarget;F!==null&&(u.contains(F)||Ta(g.current,{select:!0}))},x=function(N){if(document.activeElement===document.body)for(const R of N)R.removedNodes.length>0&&Ta(u)};document.addEventListener("focusin",y),document.addEventListener("focusout",S);const C=new MutationObserver(x);return u&&C.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",S),C.disconnect()}}},[i,u,v.paused]),Q.useEffect(()=>{if(u){wx.add(v);const y=document.activeElement;if(!u.contains(y)){const x=new CustomEvent(Ag,Ex);u.addEventListener(Ag,h),u.dispatchEvent(x),x.defaultPrevented||(O9(L9(vT(u)),{select:!0}),document.activeElement===y&&Ta(u))}return()=>{u.removeEventListener(Ag,h),setTimeout(()=>{const x=new CustomEvent(Cg,Ex);u.addEventListener(Cg,p),u.dispatchEvent(x),x.defaultPrevented||Ta(y??document.body,{select:!0}),u.removeEventListener(Cg,p),wx.remove(v)},0)}}},[u,h,p,v]);const E=Q.useCallback(y=>{if(!n&&!i||v.paused)return;const S=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(S&&x){const C=y.currentTarget,[N,F]=R9(C);N&&F?!y.shiftKey&&x===F?(y.preventDefault(),n&&Ta(N,{select:!0})):y.shiftKey&&x===N&&(y.preventDefault(),n&&Ta(F,{select:!0})):x===C&&y.preventDefault()}},[n,i,v.paused]);return G.jsx(Ki.div,{tabIndex:-1,...c,ref:_,onKeyDown:E})});mT.displayName=N9;function O9(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ta(i,{select:t}),document.activeElement!==n)return}function R9(e){const t=vT(e),n=xx(t,e),i=xx(t.reverse(),e);return[n,i]}function vT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function xx(e,t){for(const n of e)if(!M9(n,{upTo:t}))return n}function M9(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D9(e){return e instanceof HTMLInputElement&&"select"in e}function Ta(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D9(e)&&t&&e.select()}}var wx=I9();function I9(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sx(e,t),e.unshift(t)},remove(t){var n;e=Sx(e,t),(n=e[0])==null||n.resume()}}}function Sx(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function L9(e){return e.filter(t=>t.tagName!=="A")}var z9="Portal",bT=Q.forwardRef((e,t)=>{var u;const{container:n,...i}=e,[s,l]=Q.useState(!1);yc(()=>l(!0),[]);const c=n||s&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return c?fT.createPortal(G.jsx(Ki.div,{...i,ref:t}),c):null});bT.displayName=z9;var hd=0,ri=null;function B9(){Q.useEffect(()=>{ri||(ri={start:kx(),end:kx()});const{start:e,end:t}=ri;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),hd++,()=>{hd===1&&(ri==null||ri.start.remove(),ri==null||ri.end.remove(),ri=null),hd=Math.max(0,hd-1)}},[])}function kx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ci=function(){return ci=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ci.apply(this,arguments)};function _T(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function P9(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var Ad="right-scroll-bar-position",Cd="width-before-scroll-bar",U9="with-scroll-bars-hidden",F9="--removed-body-scroll-bar-size";function Ng(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function j9(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var $9=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,Tx=new WeakMap;function H9(e,t){var n=j9(null,function(i){return e.forEach(function(s){return Ng(s,i)})});return $9(function(){var i=Tx.get(n);
vendor: 4,244 bytes, lines 204-219
204if(i){var s=new Set(i),l=new Set(e),c=n.current;s.forEach(function(u){l.has(u)||Ng(u,null)}),l.forEach(function(u){s.has(u)||Ng(u,c)})}Tx.set(n,e)},[e]),n}function G9(e){return e}function q9(e,t){t===void 0&&(t=G9);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,i);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(l){for(i=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(u){return l(u)},filter:function(){return n}}},assignMedium:function(l){i=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(l),c=n}var f=function(){var p=c;c=[],p.forEach(l)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){c.push(p),h()},filter:function(p){return c=c.filter(p),n}}}};return s}function Y9(e){e===void 0&&(e={});var t=q9(null);return t.options=ci({async:!0,ssr:!1},e),t}var yT=function(e){var t=e.sideCar,n=_T(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return Q.createElement(i,ci({},n))};yT.isSideCarExport=!0;function K9(e,t){return e.useMedium(t),yT}var ET=Y9(),Og=function(){},Ef=Q.forwardRef(function(e,t){var n=Q.useRef(null),i=Q.useState({onScrollCapture:Og,onWheelCapture:Og,onTouchMoveCapture:Og}),s=i[0],l=i[1],c=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,g=e.shards,_=e.sideCar,v=e.noRelative,E=e.noIsolation,y=e.inert,S=e.allowPinchZoom,x=e.as,C=x===void 0?"div":x,N=e.gapMode,F=_T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=_,D=H9([n,t]),M=ci(ci({},F),s);return Q.createElement(Q.Fragment,null,p&&Q.createElement(R,{sideCar:ET,removeScrollBar:h,shards:g,noRelative:v,noIsolation:E,inert:y,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:N}),c?Q.cloneElement(Q.Children.only(u),ci(ci({},M),{ref:D})):Q.createElement(C,ci({},M,{className:f,ref:D}),u))});Ef.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ef.classNames={fullWidth:Cd,zeroRight:Ad};var V9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Z9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=V9();return t&&e.setAttribute("nonce",t),e}function X9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Q9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Z9())&&(X9(t,n),W9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},J9=function(){var e=Q9();return function(t,n){Q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xT=function(){var e=J9(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},eB={left:0,top:0,right:0,gap:0},Rg=function(e){return parseInt(e||"",10)||0},tB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Rg(n),Rg(i),Rg(s)]},nB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eB;var t=tB(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},rB=xT(),wo="data-scroll-locked",iB=function(e,t,n,i){var s=e.left,l=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
205  .`.concat(U9,` {
206   overflow: hidden `).concat(i,`;
207   padding-right: `).concat(u,"px ").concat(i,`;
208  }
209  body[`).concat(wo,`] {
210    overflow: hidden `).concat(i,`;
211    overscroll-behavior: contain;
212    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
213    padding-left: `.concat(s,`px;
214    padding-top: `).concat(l,`px;
215    padding-right: `).concat(c,`px;
216    margin-left:0;
217    margin-top:0;
218    margin-right: `).concat(u,"px ").concat(i,`;
219    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";
219")].filter(Boolean).join(""),`
220  }
221  
222  .`).concat(Ad,` {
223    right: `).concat(u,"px ").concat(i,`;
224  }
225  
226  .`).concat(Cd,` {
227    margin-right: `).concat(u,"px ").concat(i,`;
228  }
229  
230  .`).concat(Ad," .").concat(Ad,` {
231    right: 0 `).concat(i,`;
232  }
233  
234  .`).concat(Cd," .").concat(Cd,` {
235    margin-right: 0 `).concat(i,`;
236  }
237  
238  body[`).concat(wo,`] {
239    `).concat(F9,": ").concat(u,`px;
240  }
241`)},Ax=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},aB=function(){Q.useEffect(function(){return document.body.setAttribute(wo,(Ax()+1).toString()),function(){var e=Ax()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},sB=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;aB();var l=Q.useMemo(function(){return nB(s)},[s]);return Q.createElement(rB,{styles:iB(l,!t,s,n?"":"!important")})},Vm=!1;if(typeof window<"u")try{var pd=Object.defineProperty({},"passive",{get:function(){return Vm=!0,!0}});window.addEventListener("test",pd,pd),window.removeEventListener("test",pd,pd)}catch{Vm=!1}var oo=Vm?{passive:!1}:!1,oB=function(e){return e.tagName==="TEXTAREA"},wT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oB(e)&&n[t]==="visible")},lB=function(e){return wT(e,"overflowY")},cB=function(e){return wT(e,"overflowX")},Cx=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=ST(e,i);if(s){var l=kT(e,i),c=l[1],u=l[2];if(c>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},uB=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},dB=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},ST=function(e,t){return e==="v"?lB(t):cB(t)},kT=function(e,t){return e==="v"?uB(t):dB(t)},fB=function(e,t){return e==="h"&&t==="rtl"?-1:1},hB=function(e,t,n,i,s){var l=fB(e,window.getComputedStyle(t).direction),c=l*i,u=n.target,f=t.contains(u),h=!1,p=c>0,g=0,_=0;do{if(!u)break;var v=kT(e,u),E=v[0],y=v[1],S=v[2],x=y-S-l*E;(E||x)&&ST(e,u)&&(g+=x,_+=E);var C=u.parentNode;u=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(_)<1)&&(h=!0),h},gd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nx=function(e){return[e.deltaX,e.deltaY]},Ox=function(e){return e&&"current"in e?e.current:e},pB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gB=function(e){return`
242  .block-interactivity-`.concat(e,` {pointer-events: none;}
243  .allow-interactivity-`).concat(e,` {pointer-events: all;}
244`)},mB=0,lo=[];function vB(e){var t=Q.useRef([]),n=Q.useRef([0,0]),i=Q.useRef(),s=Q.useState(mB++)[0],l=Q.useState(xT)[0],c=Q.useRef(e);Q.useEffect(function(){c.current=e},[e]),Q.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var y=P9([e.lockRef.current],(e.shards||[]).map(Ox),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var u=Q.useCallback(function(y,S){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!c.current.allowPinchZoom;var x=gd(y),C=n.current,N="deltaX"in y?y.deltaX:C[0]-x[0],F="deltaY"in y?y.deltaY:C[1]-x[1],R,D=y.target,M=Math.abs(N)>Math.abs(F)?"h":"v";if("touches"in y&&M==="h"&&D.type==="range")return!1;var L=window.getSelection(),O=L&&L.anchorNode,I=O?O===D||O.contains(D):!1;if(I)return!1;var B=Cx(M,D);if(!B)return!0;if(B?R=M:(R=M==="v"?"h":"v",B=Cx(M,D)),!B)return!1;if(!i.current&&"changedTouches"in y&&(N||F)&&(i.current=R),!R)return!0;var k=i.current||R;return hB(k,S,y,k==="h"?N:F)},[]),f=Q.useCallback(function(y){var S=y;if(!(!lo.length||lo[lo.length-1]!==l)){var x="deltaY"in S?Nx(S):gd(S),C=t.current.filter(function(R){return R.name===S.type&&(R.target===S.target||S.target===R.shadowParent)&&pB(R.delta,x)})[0];if(C&&C.should){S.cancelable&&S.preventDefault();return}
vendor: 4,098 bytes, line 244
244if(!C){var N=(c.current.shards||[]).map(Ox).filter(Boolean).filter(function(R){return R.contains(S.target)}),F=N.length>0?u(S,N[0]):!c.current.noIsolation;F&&S.cancelable&&S.preventDefault()}}},[]),h=Q.useCallback(function(y,S,x,C){var N={name:y,delta:S,target:x,should:C,shadowParent:bB(x)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(F){return F!==N})},1)},[]),p=Q.useCallback(function(y){n.current=gd(y),i.current=void 0},[]),g=Q.useCallback(function(y){h(y.type,Nx(y),y.target,u(y,e.lockRef.current))},[]),_=Q.useCallback(function(y){h(y.type,gd(y),y.target,u(y,e.lockRef.current))},[]);Q.useEffect(function(){return lo.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:_}),document.addEventListener("wheel",f,oo),document.addEventListener("touchmove",f,oo),document.addEventListener("touchstart",p,oo),function(){lo=lo.filter(function(y){return y!==l}),document.removeEventListener("wheel",f,oo),document.removeEventListener("touchmove",f,oo),document.removeEventListener("touchstart",p,oo)}},[]);var v=e.removeScrollBar,E=e.inert;return Q.createElement(Q.Fragment,null,E?Q.createElement(l,{styles:gB(s)}):null,v?Q.createElement(sB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _B=K9(ET,vB);var TT=Q.forwardRef(function(e,t){return Q.createElement(Ef,ci({},e,{ref:t,sideCar:_B}))});TT.classNames=Ef.classNames;var yB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},co=new WeakMap,md=new WeakMap,vd={},Mg=0,AT=function(e){return e&&(e.host||AT(e.parentNode))},EB=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=AT(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},xB=function(e,t,n,i){var s=EB(t,Array.isArray(e)?e:[e]);vd[n]||(vd[n]=new WeakMap);var l=vd[n],c=[],u=new Set,f=new Set(s),h=function(g){!g||u.has(g)||(u.add(g),h(g.parentNode))};s.forEach(h);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(_){if(u.has(_))p(_);else try{var v=_.getAttribute(i),E=v!==null&&v!=="false",y=(co.get(_)||0)+1,S=(l.get(_)||0)+1;co.set(_,y),l.set(_,S),c.push(_),y===1&&E&&md.set(_,!0),S===1&&_.setAttribute(n,"true"),E||_.setAttribute(i,"true")}catch(x){console.error("aria-hidden: cannot operate on ",_,x)}})};return p(t),u.clear(),Mg++,function(){c.forEach(function(g){var _=co.get(g)-1,v=l.get(g)-1;co.set(g,_),l.set(g,v),_||(md.has(g)||g.removeAttribute(i),md.delete(g)),v||g.removeAttribute(n)}),Mg--,Mg||(co=new WeakMap,co=new WeakMap,md=new WeakMap,vd={})}},wB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=yB(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),xB(i,s,n,"aria-hidden")):function(){return null}},xf="Dialog",[CT,NT]=hT(xf),[SB,Wr]=CT(xf),ib=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,u=Q.useRef(null),f=Q.useRef(null),[h,p]=d9({prop:i,defaultProp:s??!1,onChange:l,caller:xf});return G.jsx(SB,{scope:t,triggerRef:u,contentRef:f,contentId:Tg(),titleId:Tg(),descriptionId:Tg(),open:h,onOpenChange:p,onOpenToggle:Q.useCallback(()=>p(g=>!g),[p]),modal:c,children:n})};ib.displayName=xf;var OT="DialogTrigger",RT=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Wr(OT,n),l=Yi(t,s.triggerRef);return G.jsx(Ki.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":ub(s.open),...i,ref:l,onClick:Gi(e.onClick,s.onOpenToggle)})});RT.displayName=OT;var ab="DialogPortal",[kB,MT]=CT(ab,{forceMount:void 0}),sb=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:s}=e,l=Wr(ab,t);return G.jsx(kB,{scope:t,forceMount:n,children:Q.Children.map(i,c=>G.jsx(yf,{present:n||l.open,children:G.jsx(bT,{asChild:!0,container:s,children:c})}))})};sb.displayName=ab;var af="DialogOverlay",ob=Q.forwardRef((e,t)=>
vendor: 1,835 bytes, line 244
244{const n=MT(af,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,l=Wr(af,e.__scopeDialog);return l.modal?G.jsx(yf,{present:i||l.open,children:G.jsx(AB,{...s,ref:t})}):null});ob.displayName=af;var TB=nb("DialogOverlay.RemoveScroll"),AB=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Wr(af,n),l=T9(),c=Yi(t,l);return G.jsx(TT,{as:TB,allowPinchZoom:!0,shards:[s.contentRef],children:G.jsx(Ki.div,{"data-state":ub(s.open),...i,ref:c,style:{pointerEvents:"auto",...i.style}})})}),Oo="DialogContent",lb=Q.forwardRef((e,t)=>{const n=MT(Oo,e.__scopeDialog),{forceMount:i=n.forceMount,...s}=e,l=Wr(Oo,e.__scopeDialog);return G.jsx(yf,{present:i||l.open,children:l.modal?G.jsx(CB,{...s,ref:t}):G.jsx(NB,{...s,ref:t})})});lb.displayName=Oo;var CB=Q.forwardRef((e,t)=>{const n=Wr(Oo,e.__scopeDialog),i=Q.useRef(null),s=Yi(t,n.contentRef,i);return Q.useEffect(()=>{const l=i.current;if(l)return wB(l)},[]),G.jsx(DT,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Gi(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Gi(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&l.preventDefault()}),onFocusOutside:Gi(e.onFocusOutside,l=>l.preventDefault())})}),NB=Q.forwardRef((e,t)=>{const n=Wr(Oo,e.__scopeDialog),i=Q.useRef(!1),s=Q.useRef(!1);return G.jsx(DT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var c,u;(c=e.onCloseAutoFocus)==null||c.call(e,l),l.defaultPrevented||(i.current||(u=n.triggerRef.current)==null||u.focus(),l.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:l=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=l.target;
vendor: 12,131 bytes, line 244
244((h=n.triggerRef.current)==null?void 0:h.contains(c))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&s.current&&l.preventDefault()}})}),DT=Q.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,...c}=e,u=Wr(Oo,n);return B9(),G.jsx(G.Fragment,{children:G.jsx(mT,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:l,children:G.jsx(pT,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":ub(u.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),IT="DialogTitle",cb=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Wr(IT,n);return G.jsx(Ki.h2,{id:s.titleId,...i,ref:t})});cb.displayName=IT;var LT="DialogDescription",zT=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Wr(LT,n);return G.jsx(Ki.p,{id:s.descriptionId,...i,ref:t})});zT.displayName=LT;var BT="DialogClose",wf=Q.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,s=Wr(BT,n);return G.jsx(Ki.button,{type:"button",...i,ref:t,onClick:Gi(e.onClick,()=>s.onOpenChange(!1))})});wf.displayName=BT;function ub(e){return e?"open":"closed"}var PT="AlertDialog",[OB]=hT(PT,[NT]),Vi=NT(),UT=e=>{const{__scopeAlertDialog:t,...n}=e,i=Vi(t);return G.jsx(ib,{...i,...n,modal:!0})};UT.displayName=PT;var RB="AlertDialogTrigger",MB=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Vi(n);return G.jsx(RT,{...s,...i,ref:t})});MB.displayName=RB;var DB="AlertDialogPortal",FT=e=>{const{__scopeAlertDialog:t,...n}=e,i=Vi(t);return G.jsx(sb,{...i,...n})};FT.displayName=DB;var IB="AlertDialogOverlay",jT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Vi(n);return G.jsx(ob,{...s,...i,ref:t})});jT.displayName=IB;var $T="AlertDialogContent",[LB,zB]=OB($T),HT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:i,...s}=e,l=Vi(n),c=Q.useRef(null),u=Yi(t,c),f=Q.useRef(null);return G.jsx(LB,{scope:n,cancelRef:f,children:G.jsx(lb,{role:"alertdialog",...l,...s,ref:u,onOpenAutoFocus:Gi(s.onOpenAutoFocus,h=>{var p;h.preventDefault(),(p=f.current)==null||p.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:i})})});HT.displayName=$T;var BB="AlertDialogTitle",GT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Vi(n);return G.jsx(cb,{...s,...i,ref:t})});GT.displayName=BB;var PB="AlertDialogDescription",qT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Vi(n);return G.jsx(zT,{...s,...i,ref:t})});qT.displayName=PB;var UB="AlertDialogAction",YT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,s=Vi(n);return G.jsx(wf,{...s,...i,ref:t})});YT.displayName=UB;var KT="AlertDialogCancel",VT=Q.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...i}=e,{cancelRef:s}=zB(KT,n),l=Vi(n),c=Yi(t,s);return G.jsx(wf,{...l,...i,ref:c})});VT.displayName=KT;var Rx=UT,Mx=FT,Dx=jT,Ix=HT,Lx=YT,FB=VT,zx=GT,Bx=qT;function ZT(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=ZT(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function XT(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=ZT(e))&&(i&&(i+=" "),i+=t);return i}const jB=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},$B=(e,t)=>({classGroupId:e,validator:t}),WT=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),sf="-",Px=[],HB="arbitrary..",GB=e=>{const t=YB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return qB(c);const u=c.split(sf),f=u[0]===""&&u.length>1?1:0;return QT(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=n[c];return f?h?jB(h,f):f:h||Px}return n[c]||Px}}},QT=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=QT(e,t+1,l);if(h)return h}const c=n.validators;if(c===null)return;const u=t===0?e.join(sf):e.slice(t).join(sf),f=c.length;for(let h=0;h<f;h++){const p=c[h];if(p.validator(u))return p.classGroupId}},qB=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?HB+i:void 0})(),YB=e=>{const{theme:t,classGroups:n}=e;return KB(n,t)},KB=(e,t)=>{const n=WT();for(const i in e){const s=e[i];db(s,n,i,t)}return n},db=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const c=e[l];VB(c,t,n,i)}},VB=(e,t,n,i)=>{if(typeof e=="string"){ZB(e,t,n);return}if(typeof e=="function"){XB(e,t,n,i);return}WB(e,t,n,i)},ZB=(e,t,n)=>{const i=e===""?t:JT(t,e);i.classGroupId=n},XB=(e,t,n,i)=>{if(QB(e)){db(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push($B(n,e))},WB=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];db(f,JT(t,u),n,i)}},JT=(e,t)=>{let n=e;const i=t.split(sf),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=n.nextPart.get(c);u||(u=WT(),n.nextPart.set(c,u)),n=u}return n},QB=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,JB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(l,c)=>{n[l]=c,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in n?n[l]=c:s(l,c)}}},Zm="!",Ux=":",eP=[],Fx=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),tP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let c=0,u=0,f=0,h;const p=s.length;for(let y=0;y<p;y++){const S=s[y];if(c===0&&u===0){if(S===Ux){l.push(s.slice(f,y)),f=y+1;continue}if(S==="/"){h=y;continue}}S==="["?c++:S==="]"?c--:S==="("?u++:S===")"&&u--}const g=l.length===0?s:s.slice(f);let _=g,v=!1;g.endsWith(Zm)?(_=g.slice(0,-1),v=!0):g.startsWith(Zm)&&(_=g.slice(1),v=!0);const E=h&&h>f?h-f:void 0;return Fx(l,v,_,E)};if(t){const s=t+Ux,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):Fx(eP,!1,c,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},nP=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let l=0;l<n.length;l++){const c=n[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},rP=e=>({cache:JB(e.cacheSize),parseClassName:tP(e),sortModifiers:nP(e),postfixLookupClassGroupIds:iP(e),...GB(e)}),iP=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},aP=/\s+/,sP=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:c}=t,u=[],f=e.trim().split(aP);let h="";for(let p=f.length-1;p>=0;p-=1){const g=f[p],{isExternal:_,modifiers:v,hasImportantModifier:E,baseClassName:y,maybePostfixModifierPosition:S}=n(g);if(_){h=g+(h.length>0?" "+h:h);continue}let x=!!S,C;if(x){const M=y.substring(0,S);C=i(M);const L=C&&c[C]?i(y):void 0;L&&L!==C&&(C=L,x=!1)}else C=i(y);if(!C){if(!x){h=g+(h.length>0?" "+h:h);continue}if(C=i(y),!C){h=g+(h.length>0?" "+h:h);continue}x=!1}const N=v.length===0?"":v.length===1?v[0]:l(v).join(":"),F=E?N+Zm:N,R=F+C;if(u.indexOf(R)>-1)continue;u.push(R);const D=s(C,x);for(let M=0;M<D.length;++M){const L=D[M];u.push(F+L)}h=g+(h.length>0?" "+h:h)}return h},oP=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=eA(n))&&(s&&(s+=" "),s+=i);return s},eA=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=eA(e[i]))&&(n&&(n+=" "),n+=t);return n},lP=(e,...t)=>{let n,i,s,l;const c=f=>{const h=t.reduce((p,g)=>g(p),e());return n=rP(h),i=n.cache.get,s=n.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const p=sP(f,n);return s(f,p),p};return l=c,(...f)=>l(oP(...f))},cP=[],kn=e=>{const t=n=>n[e]||cP;return t.isThemeGetter=!0,t},tA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ka=e=>uP.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),ii=e=>!!e&&Number.isInteger(Number(e)),Dg=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Pi=e=>dP.test(e),rA=()=>!0,mP=e=>fP.test(e)&&!hP.test(e),fb=()=>!1,vP=e=>pP.test(e),bP=e=>gP.test(e),_P=e=>!Ge(e)&&!qe(e),yP=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),EP=e=>Ma(e,sA,fb),Ge=e=>tA.test(e),is=e=>Ma(e,oA,mP),jx=e=>Ma(e,NP,ht),xP=e=>Ma(e,cA,rA),wP=e=>Ma(e,lA,fb),$x=e=>Ma(e,iA,fb),SP=e=>Ma(e,aA,bP),bd=e=>Ma(e,uA,vP),qe=e=>nA.test(e),ql=e=>gs(e,oA),kP=e=>gs(e,lA),Hx=e=>gs(e,iA),TP=e=>gs(e,sA),AP=e=>gs(e,aA),_d=e=>gs(e,uA,!0),CP=e=>gs(e,cA,!0),Ma=(e,t,n)=>{const i=tA.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},gs=(e,t,n=!1)=>{const i=nA.exec(e);return i?i[1]?t(i[1]):n:!1},iA=e=>e==="position"||e==="percentage",aA=e=>e==="image"||e==="url",sA=e=>e==="length"||e==="size"||e==="bg-size",oA=e=>e==="length",NP=e=>e==="number",lA=e=>e==="family-name",cA=e=>e==="number"||e==="weight",uA=e=>e==="shadow",OP=()=>{const e=kn("color"),t=kn("font"),n=kn("text"),i=kn("font-weight"),s=kn("tracking"),l=kn("leading"),c=kn("breakpoint"),u=kn("container"),f=kn("spacing"),h=kn("radius"),p=kn("shadow"),g=kn("inset-shadow"),_=kn("text-shadow"),v=kn("drop-shadow"),E=kn("blur"),y=kn("perspective"),S=kn("aspect"),x=kn("ease"),C=kn("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...F(),qe,Ge],D=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],L=()=>[qe,Ge,f],O=()=>[ka,"full","auto",...L()],I=()=>[ii,"none","subgrid",qe,Ge],B=()=>["auto",{span:["full",ii,qe,Ge]},ii,qe,Ge],k=()=>[ii,"auto",qe,Ge],q=()=>["auto","min","max","fr",qe,Ge],w=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...L()],Z=()=>[ka,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],ae=()=>[ka,"screen","full","dvw","lvw","svw","min","max","fit",...L()],ie=()=>[ka,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],P=()=>[e,qe,Ge],z=()=>[...F(),Hx,$x,{position:[qe,Ge]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",TP,EP,{size:[qe,Ge]}],ue=()=>[Dg,ql,is],de=()=>["","none","full",h,qe,Ge],Se=()=>["",ht,ql,is],je=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ht,Dg,Hx,$x],ce=()=>["","none",E,qe,Ge],me=()=>["none",ht,qe,Ge],_e=()=>["none",ht,qe,Ge],Ne=()=>[ht,qe,Ge],T=()=>[ka,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pi],breakpoint:[Pi],color:[rA],container:[Pi],"drop-shadow":[Pi],ease:["in","out","in-out"],font:[_P],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pi],shadow:[Pi],spacing:["px",ht],text:[Pi],"text-shadow":[Pi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ka,Ge,qe,S]}],container:["container"],"container-type":[{"@container":["","normal","size",qe,Ge]}
vendor: 6,127 bytes, line 244
244],"container-named":[yP],columns:[{columns:[ht,Ge,qe,u]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ii,"auto",qe,Ge]}],basis:[{basis:[ka,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,ka,"auto","initial","none",Ge]}],grow:[{grow:["",ht,qe,Ge]}],shrink:[{shrink:["",ht,qe,Ge]}],order:[{order:[ii,"first","last","none",qe,Ge]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...w(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...w()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mbs:[{mbs:K()}],mbe:[{mbe:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[u,"screen",...Z()]}],"min-w":[{"min-w":[u,"screen","none",...Z()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,ql,is]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,CP,xP]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dg,Ge]}],"font-family":[{font:[kP,wP,t]}],"font-features":[{"font-features":[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,qe,Ge]}],"line-clamp":[{"line-clamp":[ht,"none",qe,jx]}],leading:[{leading:[l,...L()]}],"list-image":[{"list-image":["none",qe,Ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",qe,Ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",qe,is]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[ht,"auto",qe,Ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[ii,qe,Ge]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",qe,Ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",qe,Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ii,qe,Ge],radial:["",qe,Ge],conic:[ii,qe,Ge]},AP,SP]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ue()}
244],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-bs":[{"border-bs":Se()}],"border-w-be":[{"border-be":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}
vendor: 5,996 bytes, line 244
244],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,qe,Ge]}],"outline-w":[{outline:["",ht,ql,is]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",p,_d,bd]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",g,_d,bd]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[ht,is]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",_,_d,bd]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[ht,qe,Ge]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[qe,Ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",qe,Ge]}],filter:[{filter:["","none",qe,Ge]}],blur:[{blur:ce()}],brightness:[{brightness:[ht,qe,Ge]}],contrast:[{contrast:[ht,qe,Ge]}],"drop-shadow":[{"drop-shadow":["","none",v,_d,bd]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",ht,qe,Ge]}],"hue-rotate":[{"hue-rotate":[ht,qe,Ge]}],invert:[{invert:["",ht,qe,Ge]}],saturate:[{saturate:[ht,qe,Ge]}],sepia:[{sepia:["",ht,qe,Ge]}],"backdrop-filter":[{"backdrop-filter":["","none",qe,Ge]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[ht,qe,Ge]}],"backdrop-contrast":[{"backdrop-contrast":[ht,qe,Ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,qe,Ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,qe,Ge]}],"backdrop-invert":[{"backdrop-invert":["",ht,qe,Ge]}],"backdrop-opacity":[{"backdrop-opacity":[ht,qe,Ge]}],"backdrop-saturate":[{"backdrop-saturate":[ht,qe,Ge]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,qe,Ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",qe,Ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",qe,Ge]}],ease:[{ease:["linear","initial",x,qe,Ge]}],delay:[{delay:[ht,qe,Ge]}],animate:[{animate:["none",C,qe,Ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,qe,Ge]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[qe,Ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:T()}],"translate-x":[{"translate-x":T()}],"translate-y":[{"translate-y":T()}],"translate-z":[{"translate-z":T()}],"translate-none":["translate-none"],zoom:[{zoom:[ii,qe,Ge]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}
vendor: 5,134 bytes, line 244
244],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",qe,Ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",qe,Ge]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[ht,ql,is,jx]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},RP=lP(OP);function $t(...e){return RP(XT(e))}const Gx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qx=XT,MP=(e,t)=>
vendor: 5,259 bytes, line 244
244n=>{var i;if((t==null?void 0:t.variants)==null)return qx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const p=n==null?void 0:n[h],g=l==null?void 0:l[h];if(p===null)return null;const _=Gx(p)||Gx(g);return s[h][_]}),u=n&&Object.entries(n).reduce((h,p)=>{let[g,_]=p;return _===void 0||(h[g]=_),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,p)=>{let{class:g,className:_,...v}=p;return Object.entries(v).every(E=>{let[y,S]=E;return Array.isArray(S)?S.includes({...l,...u}[y]):{...l,...u}[y]===S})?[...h,g,_]:h},[]);return qx(e,c,f,n==null?void 0:n.class,n==null?void 0:n.className)},DP=MP("group/button inline-flex shrink-0 items-center justify-center rounded-full border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function dA({className:e,variant:t="default",size:n="default",asChild:i=!1,...s}){const l=i?Wz:"button";return G.jsx(l,{"data-slot":"button","data-variant":t,"data-size":n,className:$t(DP({variant:t,size:n,className:e})),...s})}function hb({...e}){return G.jsx(ib,{"data-slot":"dialog",...e})}function IP({...e}){return G.jsx(sb,{"data-slot":"dialog-portal",...e})}function LP({className:e,...t}){return G.jsx(ob,{"data-slot":"dialog-overlay",className:$t("fixed inset-0 isolate z-50 bg-black/40 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function pb({className:e,children:t,showCloseButton:n=!0,...i}){return G.jsxs(IP,{children:[G.jsx(LP,{}),G.jsxs(lb,{"data-slot":"dialog-content",className:$t("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:[t,n&&G.jsx(wf,{"data-slot":"dialog-close",asChild:!0,children:G.jsxs(dA,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm",children:[G.jsx(iw,{}),G.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function gb({className:e,...t}){return G.jsx(cb,{"data-slot":"dialog-title",className:$t("font-heading text-base leading-none font-medium",e),...t})}const fA={body:"p-5",label:"mt-4 mb-1.5 block font-sans text-2xs leading-normal font-[650] tracking-[0.06em] text-muted uppercase",labelNote:"font-normal tracking-normal normal-case text-[#6a6a70]",labelFlag:"ml-auto flex-none font-normal tracking-normal normal-case text-[#6a6a70]",input:"w-full rounded-[9px] border border-line bg-soft px-3 py-2.5 text-sm text-fg outline-none transition-[border-color,box-shadow] duration-[120ms] focus:border-accent focus:ring-[3px] focus:ring-accent/18",note:"mt-3 rounded-[10px] border border-line bg-soft px-3 py-2.5 text-2xs leading-[1.55] text-muted",btn:"mt-3.5 w-full cursor-pointer rounded-full border-0 bg-fg px-4 py-2.5 text-sm font-[650] tracking-[-0.1px] text-bg transition-opacity duration-[120ms] enabled:hover:opacity-85 disabled:cursor-default disabled:bg-soft disabled:text-muted",err:"mt-3 rounded-[10px] border border-[color-mix(in_srgb,var(--bad)_40%,transparent)] bg-[
244color-mix(in_srgb,var(--bad)_12%,transparent)] px-3 py-2.5 text-xs leading-normal whitespace-pre-wrap text-[color:var(--bad)]",iconbox:"mx-auto grid h-[132px] w-[132px] place-items-center overflow-hidden rounded-[29px] border border-line bg-soft shadow-[0_4px_14px_rgba(0,0,0,0.18)]",iconph:"opacity-35",genBtn:"flex-none cursor-pointer rounded-full border border-line bg-soft px-[13px] text-sm font-[550] whitespace-nowrap text-fg transition-colors duration-[120ms] enabled:hover:bg-line disabled:cursor-default disabled:opacity-50",uploadLbl:"mt-[11px] inline-block cursor-pointer text-xs text-muted underline underline-offset-2 hover:text-fg",nav:"flex flex-none items-center justify-between gap-2.5 border-t border-line px-5 py-3.5",back:"cursor-pointer rounded-full border border-line bg-transparent px-[18px] py-[7px] text-sm font-[550] text-fg transition-colors duration-[120ms] hover:bg-soft"},SU="inline-flex cursor-pointer items-center gap-[7px] rounded-full border-0 bg-fg px-[15px] py-2 text-sm font-[650] tracking-[-0.1px] text-bg transition-opacity duration-[120ms] enabled:hover:opacity-85 disabled:cursor-default disabled:opacity-40",kU="flex shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full border border-line bg-transparent px-3 py-[7px] text-sm font-[550] tracking-[-0.1px] text-fg transition-colors duration-[120ms] enabled:hover:bg-soft disabled:cursor-default disabled:opacity-45";let Oa=null;function Xm(e){return new Promise(t=>{Oa?Oa({kind:"confirm",opts:e,resolve:t}):t(window.confirm(e.title))})}function TU(e){return new Promise(t=>{Oa?Oa({kind:"prompt",opts:e,resolve:t}):t(window.prompt(e.title,e.initial??""))})}function AU(e){return new Promise(t=>{Oa?Oa({kind:"alert",opts:e,resolve:t}):(window.alert(e.title),t())})}const Yx=fA.back,Ig="cursor-pointer rounded-full px-3 py-2 text-sm font-medium transition-opacity duration-[120ms] disabled:cursor-default disabled:opacity-40",Lg="font-display text-lg font-semibold tracking-display-sm";function CU(){const[e,t]=Q.useState(null),[n,i]=Q.useState(!1),[s,l]=Q.useState(""),c=Q.useRef(null),u=Q.useRef([]),f=y=>{c.current=y,y&&(i(!1),l(y.kind==="prompt"?y.opts.initial??"":"")),t(y)},h=()=>f(u.current.shift()??null),p=(y,S)=>{y.settled||(y.settled=!0,S(),h())};if(Q.useEffect(()=>(Oa=y=>{c.current?u.current.push(y):f(y)},()=>{Oa=null;for(const y of[c.current,...u.current])(y==null?void 0:y.kind)==="confirm"?y.resolve(!1):(y==null?void 0:y.kind)==="prompt"?y.resolve(null):y==null||y.resolve();c.current=null,u.current=[]}),[]),!e)return null;if(e.kind==="alert"){const{opts:y,resolve:S}=e,x=e,C=()=>p(x,S);return G.jsx(Rx,{open:!0,onOpenChange:N=>!N&&C(),children:G.jsxs(Mx,{children:[G.jsx(Dx,{className:"fixed inset-0 isolate z-50 bg-black/40 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0"}),G.jsx(Ix,{...y.body==null?{"aria-describedby":void 0}:{},className:"fixed top-1/2 left-1/2 z-50 w-[420px] max-w-[92vw] -translate-x-1/2 -translate-y-1/2 rounded-2xl bg-card p-5 text-sm text-fg ring-1 ring-foreground/10 duration-100 outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",children:G.jsxs("div",{className:"flex flex-col gap-4",children:[G.jsx(zx,{className:Lg,children:y.title}),y.body!=null&&G.jsx(Bx,{className:"text-sm leading-normal text-muted",children:y.body}),G.jsx("div",{className:"flex items-center justify-end",children:G.jsx(Lx,{className:$t(Ig,"bg-fg text-bg enabled:hover:opacity-85"),onClick:C,children:y.dismissLabel??"OK"})})]})})]})})}if(e.kind==="prompt"){const{opts:y,resolve:S}=e,x=e,C=N=>p(x,()=>S(N));return G.jsx(hb,{open:!0,onOpenChange:N=>!N&&C(null),children:G.jsx(pb,{"aria-describedby":void 0,showCloseButton:!1,className:"w-[420px] max-w-[92vw] sm:max-w-[92vw] gap-0 rounded-2xl bg-card p-5 text-sm text-fg",children:G.jsxs("form",{className:"flex flex-col gap-4",onSubmit:N=>{N.preventDefault(),C(s)},children:[G.jsx(gb,{className:Lg,children:y.title}),y.body!=null&&G.jsx("p",{className:"text-sm leading-normal text-muted",children:y.body}),G.jsx("input",{className:fA.input,value:s,placeholder:y.placeholder,onChange:N=>l(N.target.value),autoFocus:!0,onFocus:N=>N.target.select()}),G.jsxs("div",{className:"flex items-center justify-end gap-2",children:[G.jsx("button",{type:"button",className:Yx,onClick:()=>C(null),children:y.cancelLabel??"Cancel"}),G.jsx("button",{type:"submit",className:$t(Ig,"bg-fg text-bg enabled:hover:opacity-85"),children:y.confirmLabel??"Save"})]})]})})})}const{opts:g,resolve:_}=e,v=e,E=y=>p(v,()=>_(y));return G.jsx(Rx,{open:!0,onOpenChange:y=>!y&&E(!1),children:G.jsxs(Mx,{children:[G.jsx(Dx,{className:"fixed inset-0 isolate z-50 bg-black/40 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0"}),G.jsx(Ix,{...g.body==null?{"aria-describedby":void 0}:{},className:"fixed top-1/2 left-1/2 z-50 w-[420px] max-w-[92vw] -translate-x-1/2 -translate-y-1/2 roun
244ded-2xl bg-card p-5 text-sm text-fg ring-1 ring-foreground/10 duration-100 outline-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",children:G.jsxs("div",{className:"flex flex-col gap-4",children:[G.jsx(zx,{className:Lg,children:g.title}),g.body!=null&&G.jsx(Bx,{className:"text-sm leading-normal text-muted",children:g.body}),g.acknowledge&&G.jsxs("label",{className:"flex cursor-pointer items-start gap-2 text-sm leading-normal text-fg select-none",children:[G.jsx("input",{type:"checkbox",checked:n,onChange:y=>i(y.target.checked),className:"mt-0.5 size-4 shrink-0 accent-fg"}),g.acknowledge]}),G.jsxs("div",{className:"flex items-center justify-end gap-2",children:[G.jsx(FB,{className:Yx,onClick:()=>E(!1),children:g.cancelLabel??"Cancel"}),G.jsx(Lx,{disabled:!!g.acknowledge&&!n,className:$t(Ig,g.destructive?"bg-red-600 text-white enabled:hover:bg-red-700":"bg-fg text-bg enabled:hover:opacity-85"),onClick:()=>E(!0),children:g.confirmLabel??"Confirm"})]})]})})]})})}const zP="modulepreload",BP=function(e){return"/"+e},Kx={},hA=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));s=c(n.map(h=>{if(h=BP(h),h in Kx)return;Kx[h]=!0;const p=h.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const _=document.createElement("link");if(_.rel=p?"stylesheet":zP,p||(_.as="script"),_.crossOrigin="",_.href=h,f&&_.setAttribute("nonce",f),document.head.appendChild(_),p)return new Promise((v,E)=>{_.addEventListener("load",v),_.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return s.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})},pA=/^r2:sha256-([0-9a-f]{64});type=([a-zA-Z0-9!#$&^_.+-]+\/[a-zA-Z0-9!#$&^_.+-]+);bytes=(\d+)$/,NU=e=>typeof e=="string"&&pA.test(e),gA=e=>typeof e=="string"&&e.startsWith("data:");function PP(e){if(typeof e!="string")return null;const t=pA.exec(e);return t?{sha256:t[1],type:t[2],bytes:Number(t[3])}:null}const OU=(e,t)=>`/api/projects/${encodeURIComponent(e)}/assets/${t}`;function UP(e){if(!gA(e))return null;const t=e.search(/[;,]/);return t>5?e.slice(5,t):null}function FP(e){if(!gA(e))return null;const t=e.indexOf(",");if(t<0||!e.slice(5,t).endsWith(";base64"))return null;const i=UP(e)??"application/octet-stream",s=e.slice(t+1);return s?{type:i,base64:s}:null}const jP=e=>typeof e=="string"&&(e.startsWith("Assets/")||e===".assetanchor"),$P="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";function HP(){let e="";for(;e.length<8;){const t=crypto.getRandomValues(new Uint8Array(8-e.length));for(const n of t)n<232&&(e+=$P[n%58])}return e}const mA=64,Cc=/[\u0000-\u001f\u007f-\u009f]/g;function Sf(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function xc(e,t){return e.slice(0,mA).replace(t,"")}function vA(e,t="App"){return(e||"").replace(/\s+/g," ").replace(Cc,"").replace(/ {2,}/g," ").trim().slice(0,mA).replace(/[\uD800-\uDBFF]$/,"").trim()||t}function bA(e,t="app"){return xc(Sf((e||"").replace(Cc,"")).replace(/[^A-Za-z0-9._-]+/g,"_").replace(/^[._-]+|[._-]+$/g,""),/[._-]+$/)||t}function GP(e,t="app"){return xc(Sf((e||"").replace(Cc,"")).replace(/[^A-Za-z0-9-]+/g,"-").replace(/^-+|-+$/g,""),/-+$/)||t}function _A(e,t="DactylApp"){let n=xc(Sf((e||"").replace(Cc,"")).replace(/[^A-Za-z0-9_]+/g,"_").replace(/^_+|_+$/g,""),/_+$/);return/^[0-9]/.test(n)&&(n=xc("A"+n,/_+$/)),n||t}function RU(e,t="app"){return xc(Sf((e||"").replace(Cc,"")).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),/-+$/)||t}const Nn=Object.freeze({"Content-Type":"application/json"});async function Nc(e,t){try{const n=await fetch(e);return n.ok?await n.json():t}catch{return t}}async function yA(e,t){try{const n={method:"POST"};return t!==void 0&&(n.headers=Nn,n.body=JSON.stringify(t)),(await fetch(e,n
244)).ok}catch{return!1}}async function MU(e){try{return(await fetch("/api/me/admin-unlimited",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({on:e})})).ok}catch{return!1}}async function DU(e,t=""){try{return await(await fetch("/api/admin/settings/siwc",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({on:e,reason:t})})).json()}catch{return{ok:!1,error:"Network error"}}}async function IU(e,t=""){try{return await(await fetch("/api/admin/settings/chatgpt-free",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({on:e,reason:t})})).json()}catch{return{ok:!1,error:"request failed"}}}async function qP(){try{const e=await fetch("/api/mcp/info");return e.ok?e.json():null}catch{return null}}function YP(e){return yA("/api/mcp/revoke",{id:e})}async function KP(){try{const e=await fetch("/api/tokens");return e.ok?(await e.json()).tokens:[]}catch{return[]}}async function VP(e){try{const t=await fetch("/api/tokens",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})});return t.ok?t.json():null}catch{return null}}function ZP(e){return yA("/api/tokens/revoke",{id:e})}function XP(){return(async()=>{const e=await fetch("/api/chatgpt/status");if(!e.ok)throw new Error(`chatgpt status probe failed: ${e.status}`);return await e.json()})()}async function WP(){try{return(await fetch("/api/chatgpt/connect/start",{method:"POST"})).json()}catch(e){return{ok:!1,error:String(e),code:"error"}}}async function QP(){try{return await(await fetch("/api/chatgpt/connect/poll",{method:"POST"})).json()}catch(e){return{status:"error",error:String(e)}}}function JP(){const e=location.pathname+location.search;location.assign(`/auth/chatgpt?return=${encodeURIComponent(e)}`)}function LU(){const e=new URLSearchParams(location.search),t=e.get("chatgpt");if(!t)return null;const n=e.get("reason");e.delete("chatgpt"),e.delete("reason");const i=e.toString();return history.replaceState(null,"",location.pathname+(i?`?${i}`:"")+location.hash),t==="connected"||t==="cancelled"?t:n||"ChatGPT sign-in failed."}async function e7(){try{return(await fetch("/api/chatgpt/preview",{method:"POST"})).ok}catch{return!1}}async function t7(){try{return(await fetch("/api/chatgpt/disconnect",{method:"POST"})).ok}catch{return!1}}async function zU(){try{const e=await fetch("/api/me");return e.ok?e.json():null}catch{return null}}async function BU(){await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{})}function PU(){return Nc("/api/affiliate",{affiliate:null})}async function UU(e,t){try{return await(await fetch("/api/affiliate",{method:"POST",headers:Nn,body:JSON.stringify({code:e,acceptedTerms:t})})).json()}catch{return{ok:!1,error:"Could not create your affiliate account."}}}async function FU(e){try{const t=await fetch("/api/affiliate/payout-onboarding",{method:"POST",headers:Nn,body:JSON.stringify({country:e})}),n=await t.json().catch(()=>null);return t.ok?n&&typeof n=="object"?n:{ok:!1,error:"Could not start payout setup."}:t.status>=500?{ok:!1,error:"Could not start payout setup. Please try again."}:n&&typeof n=="object"?n:{ok:!1,error:"Could not start payout setup."}}catch{return{ok:!1,error:"Could not start payout setup."}}}async function jU(){const e=await fetch("/api/admin/affiliates");if(!e.ok)throw new Error("Could not load affiliates.");return await e.json()}async function $U(e){try{return await(await fetch(`/api/admin/affiliates/${encodeURIComponent(e)}/payout`,{method:"POST"})).json()}catch{return{ok:!1,error:"Could not send payout."}}}async function HU(){try{const e=await fetch("/api/billing");return e.ok?e.json():null}catch{return null}}function GU(e){const t=e.limits.credits,n=Math.max(0,e.creditsRemaining??0),i=Math.round(n);return{total:t,remaining:i,bonus:i>t}}async function qU(){const e="Cancellation request failed — please try again.";try{const t=await fetch("/api/billing/downgrade",{method:"POST"}),n=await t.json();if(!t.ok)return{ok:!1,error:typeof n=="object"&&n!==null&&typeof n.error=="string"?n.error:e};if(typeof n!="object"||n===null)return{ok:!1,error:e};const i=n,s=i.scheduledPlanChange;return i.ok!==!0||!s||typeof s.sourcePlan!="string"||!s.sourcePlan||typeof s.targetPlan!="string"||!s.targetPlan||s.sourcePlan===s.targetPlan||typeof s.effectiveAt!="string"||!Number.isFinite(Date.parse(s.effectiveAt))?{ok:!1,error:e}:{ok:!0,scheduledPlanChange:{sourcePlan:s.sourcePlan,targetPlan:s.targetPlan,effectiveAt:s.effectiveAt}}}catch{return{ok:!1,error:e}}}async function YU(e){const t=await fetch("/api/billing/start-upgrade",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e})}),n=await t.json();if(!t.ok)throw new Error((n==null?void 0:n.error)||"could not start upgrade");return n}async function KU(){const e=await fetch("/api/billing/topup",{method:"POST"}),t=await e.json();if(!e.ok)throw new Error((t==null?void 0:t.error)||"could not start top-up");return t}async function VU(){const e=await fetch("/api/admin/settings");return e.ok?e.json():null}async function ZU(e,t){try{return await(await fetch("/api/admin/settings/default-model",{method:e===null?"DELET
244E":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e===null?{reason:t}:{model:e,reason:t})})).json()}catch{return{ok:!1,error:"request failed"}}}async function XU(e,t){try{return await(await fetch("/api/admin/settings/android",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({on:e,reason:t})})).json()}catch{return{ok:!1,error:"request failed"}}}async function WU(e,t,n){return(await fetch("/api/billing/credits",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,amount:t,reason:n})})).json().catch(()=>({ok:!1,error:"request failed"}))}async function QU(e,t,n){return(await fetch(`/api/admin/users/${encodeURIComponent(e)}/comp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:t,reason:n})})).json().catch(()=>({ok:!1,error:"request failed"}))}async function JU(e,t){return(await fetch(`/api/admin/users/${encodeURIComponent(e)}/uncomp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:t})})).json().catch(()=>({ok:!1,error:"request failed"}))}async function eF(e){return(await fetch("/api/admin/invites",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json().catch(()=>({ok:!1,error:"request failed"}))}async function tF(){const e=await fetch("/api/admin/invites");return e.ok?(await e.json()).invites??[]:[]}async function nF(e){const t=await fetch(`/api/admin/users/${encodeURIComponent(e)}/audit`);return t.ok?t.json().catch(()=>[]):[]}function rF(e){return Nc(`/api/admin/users/${encodeURIComponent(e)}/usage`,null)}async function iF(e,t){return Nc(`/api/admin/usage/top?window=${e}&by=${t}`,null)}async function aF(e,t){return(await fetch(`/api/admin/users/${encodeURIComponent(e)}/admin`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({on:t})})).json().catch(()=>({ok:!1,error:"request failed"}))}function EA(e,t){const n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),i=document.createElement("a");i.href=URL.createObjectURL(n),i.download=t,i.click(),setTimeout(()=>URL.revokeObjectURL(i.href),1e3)}const xA=e=>bA(e,"project");async function sF(e,t){const n=await fetch(`/api/insights/projects/${encodeURIComponent(e)}`);
244if(!n.ok)return n.status;const i=await n.json().catch(()=>null);if(!i)return 500;EA(i,`dactyl-session-${xA(t)}-${e}.json`)}async function oF(e,t,n){const i=await fetch(`/api/insights/projects/${encodeURIComponent(e)}`);if(!i.ok)return i.status;try{const s=await i.json(),{toTranscript:l}=await hA(async()=>{const{toTranscript:u}=await import("./transcript-CP4ILAcd.js").then(f=>f.c);return{toTranscript:u}},[]),c=l((s==null?void 0:s.agentMessages)??[],n);EA(c,`transcript-${xA(t)}-${e}.json`)}catch{return 500}}const wA=HP;async function lF(e,t){if(e)try{const n=await fetch(`/api/apps/${encodeURIComponent(e)}/ai-token?env=${t}`);if(!n.ok)return;const i=await n.json();return typeof(i==null?void 0:i.token)=="string"&&i.token?i.token:void 0}catch{return}}const cF=e=>"com.dactyl.app"+(e||"").replace(/[^a-z0-9]/gi,"").toLowerCase();function uF(e){return CS("dactyl.app."+e,{})}function dF(e,t){Lv("dactyl.app."+e,t)}function SA(){return mb(CS("dactyl.publish",{}))}function mb(e){const t={...e};return delete t.pw,delete t.asp,delete t.password,delete t.appSpecificPassword,t}function fF(e){Lv("dactyl.publish",mb({...SA(),...e}))}function hF(){const e=SA();delete e.appleId,delete e.session,Lv("dactyl.publish",mb(e))}async function pF(){try{const e=await fetch("/api/projects");return e.ok?await e.json():[]}catch{return[]}}async function gF(){try{const e=await fetch("/api/projects/running");return e.ok?(await e.json()).running??[]:null}catch{return null}}async function mF(e){try{const t=await fetch(`/api/projects/${encodeURIComponent(e)}`).then(i=>i.ok?i.json():null);if(!t)return null;let n=[];try{n=t.agentMessages?JSON.parse(t.agentMessages):[]}catch{}return{name:t.name,appId:typeof t.appId=="string"?t.appId:"",source:t.source,icon:t.icon??null,model:t.model??null,files:t.files,version:typeof t.version=="number"?t.version:0,agentMessages:n,userId:t.userId,owner:t.owner,mode:t.mode==="v2"?"v2":"legacy",running:t.running===!0,createdAt:String(t.createdAt),initialPrompt:typeof t.initialPrompt=="string"?t.initialPrompt:null,initialPromptPending:t.initialPromptPending===!0,initialGeneration:t.initialGeneration&&["draft","generating","ready","failed"].includes(t.initialGeneration.state)?{state:t.initialGeneration.state,turnId:typeof t.initialGeneration.turnId=="string"?t.initialGeneration.turnId:null,prompt:typeof t.initialGeneration.prompt=="string"?t.initialGeneration.prompt:typeof t.initialPrompt=="string"?t.initialPrompt:"",errorCode:typeof t.initialGeneration.errorCode=="string"?t.initialGeneration.errorCode:null,updatedAt:typeof t.initialGeneration.updatedAt=="number"?t.initialGeneration.updatedAt:null}:null}}catch{return null}}function vF(e){return Nc(`/api/projects/${encodeURIComponent(e)}/backend`,{configured:!1})}function bF(e,t){return Nc(`/api/projects/${encodeURIComponent(e)}/backend/rows?table=${encodeURIComponent(t)}`,[])}async function Vx(e,t,n){if(!t.length)return null;try{const i=await fetch(`/api/projects/${encodeURIComponent(e)}/fs`,{method:"POST",headers:Nn,body:JSON.stringify({ops:t,baseVersion:n})}),s=await i.json().catch(()=>null);return!s||typeof s.version!="number"?null:{ok:i.ok&&!!s.ok,conflict:!!s.conflict,rejects:s.rejects,version:s.version,files:s.files??{}}}catch{return null}}async function _F(e,t){var s;const n=Object.entries(t).map(([l,c])=>({op:"write",path:l,content:c}));let i=await Vx(e,n,0);return i&&!i.ok&&!((s=i.rejects)!=null&&s.length)&&(i=await Vx(e,n,i.version)),i}function yF(e,t,n,i,s,l=!1,c){const u=JSON.stringify({name:t,source:n,wasmHash:i,files:s,model:c??null});fetch(`/api/projects/${encodeURIComponent(e)}`,{method:"PUT",headers:Nn,body:u,keepalive:l&&u.length<6e4}).catch(()=>{})}async function EF(e){const t=await fetch(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"});if(t.ok)return;const n=await t.json().catch(()=>null);throw new Error(typeof(n==null?void 0:n.error)=="string"?n.error:`project deletion failed (${t.status})`)}async function n7(e,t,n="v2",i={}){const s=i.mintProjectId??wA,l=i.intent,c=(l==null?void 0:l.name)??(e.trim().slice(0,80)||"Imported"),u=(l==null?void 0:l.source)??t,f="v2";for(let h=0;h<5;h++){const p=h===0&&l?l.id:s(),g=JSON.stringify({id:p,name:c,source:u,model:null,mode:f});let _=!1;for(let v=0;v<3;v++){try{const E=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:g}),y=await E.json().catch(()=>null);if(E.ok&&(y==null?void 0:y.id)===p&&y.name===c&&y.mode===f&&typeof y.createdAt=="string"&&y.createdAt)return{ok:!0,ack:{id:p,name:c,model:null,mode:f,createdAt:y.createdAt,appId:typeof y.appId=="string"?y.appId:""}};if(E.status===409&&(y==null?void 0:y.code)==="project_id_retired"&&l&&p===l.id)return{ok:!1,co
244de:"project_id_retired",error:y.error??y.code};if(E.status===409&&((y==null?void 0:y.code)==="project_id_collision"||(y==null?void 0:y.code)==="project_id_retired")){_=!0;break}if(E.status===409&&(y==null?void 0:y.code)==="project_create_mismatch")return{ok:!1,code:"project_create_mismatch",error:y.error??y.code};if(E.status>=400&&E.status<500&&E.status!==429)return{ok:!1,code:"create_failed",error:(y==null?void 0:y.error)??`project create failed (${E.status})`}}catch{}if(v<2){const E=i.retryDelayMs??300;E>0&&await new Promise(y=>setTimeout(y,E*(v+1)))}}if(!_)return{ok:!1,code:"create_ambiguous",error:"project create acknowledgement unavailable; retry the same canonical request",recoverable:!0,intent:{id:p,name:c,source:u,mode:f}}}return{ok:!1,code:"project_id_allocation_exhausted",error:"project id allocation exhausted"}}const ls="dactyl_import_project_recovery_v1";function xF(e,t,n){const i=Object.create(null);try{const s=JSON.parse(e.getItem(ls)??"null");(s==null?void 0:s.version)===2&&s.recoveries&&typeof s.recoveries=="object"?Object.assign(i,s.recoveries):(s==null?void 0:s.version)===1&&typeof s.ownerId=="string"&&(i[s.ownerId]=s.recovery)}catch{}i[t]=n,e.setItem(ls,JSON.stringify({version:2,recoveries:i}))}function r7(e,t){try{const n=JSON.parse(e.getItem(ls)??"null");if((n==null?void 0:n.version)===1){n.ownerId===t&&e.removeItem(ls);return}if((n==null?void 0:n.version)!==2||!n.recoveries||typeof n.recoveries!="object")return;const i={...n.recoveries};delete i[t],Object.keys(i).length===0?e.removeItem(ls):e.setItem(ls,JSON.stringify({version:2,recoveries:i}))}catch{}}const lc="dactyl_example_project_recovery_v1";function wF(e,t,n){e.setItem(lc,JSON.stringify({version:1,ownerId:t,recovery:n}))}function SF(e){e.removeItem(lc)}function kF(e,t){try{const n=e.getItem(lc);if(!n)return null;const i=JSON.parse(n),s=i==null?void 0:i.recovery,l=s==null?void 0:s.intent;return(i==null?void 0:i.version)!==1||(i==null?void 0:i.ownerId)!==t||typeof(s==null?void 0:s.template)!="string"||typeof(l==null?void 0:l.id)!="string"||!/^[1-9A-HJ-NP-Za-km-z]{8}$/.test(l.id)||typeof(l==null?void 0:l.name)!="string"||typeof(l==null?void 0:l.source)!="string"||(l==null?void 0:l.mode)!=="legacy"&&(l==null?void 0:l.mode)!=="v2"?(e.removeItem(lc),null):s}catch{return e.removeItem(lc),null}}function TF(e,t){try{const n=e.getItem(ls);if(!n)return null;const i=JSON.parse(n),s=(i==null?void 0:i.version)===1;if(s&&(i==null?void 0:i.ownerId)!==t||!s&&((i==null?void 0:i.version)!==2||!(i!=null&&i.recoveries)||typeof i.recoveries!="object"||!Object.prototype.hasOwnProperty.call(i.recoveries,t)))return null;const l=s?i.recovery:i.recoveries[t],c=(l==null?void 0:l.files)&&typeof l.files=="object"&&!Array.isArray(l.files)&&Object.values(l.files).every(p=>typeof p=="string"),u=p=>typeof p=="string"&&/^[1-9A-HJ-NP-Za-km-z]{8}$/.test(p),f=(l==null?void 0:l.intent)&&u(l.intent.id)&&typeof l.intent.name=="string"&&typeof l.intent.source=="string"&&(l.intent.mode==="legacy"||l.intent.mode==="v2");return!((l==null?void 0:l.stage)==="initialization_failed"?u(l.id):(l==null?void 0:l.stage)==="create_ambiguous"&&f)||typeof(l==null?void 0:l.name)!="string"||!c?(r7(e,t),null):l}catch{return null}}function i7(e){if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return null;try{const t=atob(e);return Uint8Array.from(t,n=>n.charCodeAt(0))}catch{return null}}async function a7(e,t){if(!e||typeof e!="object")return!1;const n=e,i=Object.entries(t);if(Object.keys(n).length!==i.length)return!1;for(const[s,l]of i){const c=n[s];if(c===l)continue;if(!jP(s))return!1;const u=FP(l),f=PP(c);if(!u||!f||f.type!==u.type)return!1;const h=i7(u.base64);if(!h||f.bytes!==h.length)return!1;const p=new Uint8Array(await crypto.subtle.digest("SHA-256",h)),g=Array.from(p,_=>_.toString(16).padStart(2,"0")).join("");if(f.sha256!==g)return!1}return!0}async function AF(e,t,n={}){const i=typeof t["ContentView.swift"]=="string"?t["ContentView.swift"]:`import SwiftUI
245
246struct ContentView: View {
247    var body: some View { EmptyView() }
248}
249`,s={...t};typeof s["ContentView.swift"]!="string"&&(s["ContentView.swift"]=i);let l=n.admittedId;if(!l){const c=await n7((e||"Imported").slice(0,80),i,"v2",{...n.createOptions,intent:n.createIntent});if(!c.ok)return{ok:!1,stage:c.code==="create_ambiguous"?"create_ambiguous":c.code==="project_id_retired"?"recovery_retired":"create_failed",error:c.error,recoverable:c.code==="create_ambiguous",...c.code==="create_ambiguous"?{intent:c.intent}:{}};l=c.ack.id}try{const c=await fetch(`/api/projects/${encodeURIComponent(l)}/fs`,{method:"POST",headers:Nn,body:JSON.stringify({baseVersion:0,ops:Object.entries(s).map(([f,h])=>({op:"write",path:f,content:h}))})}),u=await c.json().catch(()=>null);return c.status===409&&(u==null?void 0:u.code)==="project_id_retired"?{ok:!1,stage:"recovery_retired",error:typeof u.error=="string"?u.error:"project retired",recoverable:!1}:c.ok||c.status===409&&await a7(u==null?void 0:u.files,s)?{ok:!0,id:l,stage:"initialized"}:{ok:!1,id:l,stage:"initialization_failed",error:typeof(u==null?void 0:u.error)=="str
249ing"?u.error:`project file initialization failed (${c.status})`,recoverable:!0}}catch(c){return{ok:!1,id:l,stage:"initialization_failed",error:c instanceof Error?c.message:"project file initialization failed",recoverable:!0}}}async function CF(e,t){const n=await e();return n.ok&&await t(n.ack),n}async function NF(e,t,n,i="v2",s,l={}){const c=RS(s);if(c)return{ok:!1,reason:"validation",error:c};let u=e,f=!1;for(let h=0;h<5;h++){const p=JSON.stringify({id:u,name:t,model:n,mode:"v2",prompt:s});let g=!1;for(let _=0;_<3;_++){try{const v=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:p});if(v.ok){const E=await v.json().catch(()=>null),y=(E==null?void 0:E.model)??null;if((E==null?void 0:E.id)===u&&E.name===t&&(n===null||y===n)&&E.mode==="v2"&&typeof E.createdAt=="string"&&E.createdAt)return{ok:!0,ack:{id:u,name:t,model:y,mode:i,createdAt:E.createdAt,appId:typeof E.appId=="string"?E.appId:""}};if(E!==null)return{ok:!1,reason:"canonical-mismatch",error:"project acknowledgement did not match the request"}}else if(v.status>=400&&v.status<500&&v.status!==429){const E=await v.json().catch(()=>null);if(v.status===409&&((E==null?void 0:E.code)==="project_id_collision"||(E==null?void 0:E.code)==="project_id_retired")){g=!0;break}const y=typeof(E==null?void 0:E.error)=="string"?E.error:"invalid request";return{ok:!1,reason:v.status===409?"conflict":v.status===400||v.status===422?"validation":"rejected",error:y}}}catch{}if(_<2){const v=l.retryDelayMs??300;v>0&&await new Promise(E=>setTimeout(E,v*(_+1)))}}if(!g)return{ok:!1,reason:"network",error:"request failed",...f?{intent:{id:u,name:t,model:n,mode:i,prompt:s}}:{}};h<4&&(u=(l.mintProjectId??wA)(),f=!0)}return{ok:!1,reason:"conflict",error:"project id allocation exhausted"}}async function OF(e,t){try{const n=await fetch(`/api/projects/${encodeURIComponent(e)}/meta`,{method:"PATCH",headers:Nn,body:JSON.stringify(t)});return n.ok?{ok:!0}:{ok:!1,error:(await n.json().catch(()=>({}))).error||`http ${n.status}`}}catch(n){return{ok:!1,error:String((n==null?void 0:n.message)||n)}}}async function RF(e,t,n){try{const i=await fetch(`/api/projects/${encodeURIComponent(e)}/revert`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({turnId:t,mode:n})}),s=await i.json().catch(()=>({}));return i.ok?{ok:!0}:{ok:!1,error:s.error||`http ${i.status}`,reason:s.reason}}catch(i){return{ok:!1,error:String((i==null?void 0:i.message)||i)}}}function MF(e,t){return fetch(`/api/projects/${encodeURIComponent(e)}/thumb`,{method:"PUT",headers:Nn,body:JSON.stringify({thumb:t})}).catch(()=>{})}async function DF(e){const t=new URLSearchParams;for(const[i,s]of Object.entries(e))s!==void 0&&s!==""&&t.set(i,String(s));const n=await fetch(`/api/admin/assessments?${t}`);return n.ok?n.json():null}function IF(e,t){fetch("/api/companion/install-progress",{method:"POST",headers:Nn,body:JSON.stringify({stage:e,error:t?String(t).slice(0,300):void 0})}).catch(()=>{})}async function LF(){const e=await fetch("/api/admin/assessments/churn");return e.ok?e.json():null}async function zF(){const e=await fetch("/api/admin/assessments/queue");return e.ok?e.json():null}async function BF(){try{return await(await fetch("/api/admin/assessments/queue/refresh",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function PF(e){const t=await fetch(`/api/admin/users/${encodeURIComponent(e)}/assessment`);return t.status===404?"missing":t.ok?t.json():null}async function UF(e){try{return await(await fetch(`/api/admin/users/${encodeURIComponent(e)}/assessment/run`,{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function FF(){try{return await(await fetch("/api/admin/assessments/run",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function jF(){try{return await(await fetch("/api/admin/assessments/backoff/reset",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function $F(){try{return await(await fetch("/api/admin/settings/assessment-chatgpt/start",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function HF(){try{return await(await fetch("/api/admin/settings/assessment-chatgpt/poll",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{status:"error",error:"request failed"}}}async function GF(){try{return await(await fetch("/api/admin/settings/assessment-chatgpt/disconnect",{method:"POST",headers:Nn,body:"{}"})).json()}catch{return{ok:!1,error:"request failed"}}}async function qF(e,t){try{return await(await fetch("/api/admin/settings/assessment-model",{method:"POST",headers:Nn,body:JSON.stringify({model:e,reason:t})})).json()}catch{return{ok:!1,error:"request failed"}}}async function YF(e){try{return await(await fetch("/api/admin/settings/assessment-denylist",{method:"POST",headers:Nn,body:JSON.stringify({entries:e})})).json()}catch{return{ok:!1,error:"request failed"}}}function yd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zg={exports:{}};/*!
250
251JSZip v3.10.1 - A JavaScript class for generating and reading zip files
252<http://stuartk.com/jszip>
253
vendor: 11,528 bytes, lines 254-260
254(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
255Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
256
257JSZip uses the library pako released under the MIT license :
258https://github.com/nodeca/pako/blob/main/LICENSE
259*/var Zx;function s7(){return Zx||(Zx=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(i,s,l){function c(h,p){if(!s[h]){if(!i[h]){var g=typeof yd=="function"&&yd;if(!p&&g)return g(h,!0);if(u)return u(h,!0);var _=new Error("Cannot find module '"+h+"'");throw _.code="MODULE_NOT_FOUND",_}var v=s[h]={exports:{}};i[h][0].call(v.exports,function(E){var y=i[h][1][E];return c(y||E)},v,v.exports,n,i,s,l)}return s[h].exports}for(var u=typeof yd=="function"&&yd,f=0;f<l.length;f++)c(l[f]);return c})({1:[function(n,i,s){var l=n("./utils"),c=n("./support"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(f){for(var h,p,g,_,v,E,y,S=[],x=0,C=f.length,N=C,F=l.getTypeOf(f)!=="string";x<f.length;)N=C-x,g=F?(h=f[x++],p=x<C?f[x++]:0,x<C?f[x++]:0):(h=f.charCodeAt(x++),p=x<C?f.charCodeAt(x++):0,x<C?f.charCodeAt(x++):0),_=h>>2,v=(3&h)<<4|p>>4,E=1<N?(15&p)<<2|g>>6:64,y=2<N?63&g:64,S.push(u.charAt(_)+u.charAt(v)+u.charAt(E)+u.charAt(y));return S.join("")},s.decode=function(f){var h,p,g,_,v,E,y=0,S=0,x="data:";if(f.substr(0,x.length)===x)throw new Error("Invalid base64 input, it looks like a data url.");var C,N=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===u.charAt(64)&&N--,f.charAt(f.length-2)===u.charAt(64)&&N--,N%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=c.uint8array?new Uint8Array(0|N):new Array(0|N);y<f.length;)h=u.indexOf(f.charAt(y++))<<2|(_=u.indexOf(f.charAt(y++)))>>4,p=(15&_)<<4|(v=u.indexOf(f.charAt(y++)))>>2,g=(3&v)<<6|(E=u.indexOf(f.charAt(y++))),C[S++]=h,v!==64&&(C[S++]=p),E!==64&&(C[S++]=g);return C}},{"./support":30,"./utils":32}],2:[function(n,i,s){var l=n("./external"),c=n("./stream/DataWorker"),u=n("./stream/Crc32Probe"),f=n("./stream/DataLengthProbe");function h(p,g,_,v,E){this.compressedSize=p,this.uncompressedSize=g,this.crc32=_,this.compression=v,this.compressedContent=E}h.prototype={getContentWorker:function(){var p=new c(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),g=this;return p.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new c(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(p,g,_){return p.pipe(new u).pipe(new f("uncompressedSize")).pipe(g.compressWorker(_)).pipe(new f("compressedSize")).withStreamInfo("compression",g)},i.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,i,s){var l=n("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},s.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,i,s){var l=n("./utils"),c=(function(){for(var u,f=[],h=0;h<256;h++){u=h;for(var p=0;p<8;p++)u=1&u?3988292384^u>>>1:u>>>1;f[h]=u}return f})();i.exports=function(u,f){return u!==void 0&&u.length?l.getTypeOf(u)!=="string"?(function(h,p,g,_){var v=c,E=_+g;h^=-1;for(var y=_;y<E;y++)h=h>>>8^v[255&(h^p[y])];return-1^h})(0|f,u,u.length,0):(function(h,p,g,_){var v=c,E=_+g;h^=-1;for(var y=_;y<E;y++)h=h>>>8^v[255&(h^p.charCodeAt(y))];return-1^h})(0|f,u,u.length,0):0}},{"./utils":32}],5:[function(n,i,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(n,i,s){var l=null;l=typeof Promise<"u"?Promise:n("lie"),i.exports={Promise:l}},{lie:37}],7:[function(n,i,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",c=n("pako"),u=n("./utils"),f=n("./stream/GenericWorker"),h=l?"uint8array":"array";function p(g,_){f.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=_,this.meta={}}s.magic="\b\0",u.inherits(p,f),p.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(u.transformTo(h,g.data),!1)},p.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(_){g.push({data:_,meta:g.meta})}},s.compressWorker=function(g){return new p("Deflate",g)},s.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,i,s){function l(v,E){var y,S="";for(y=0;y<E;y++)S+=String.fromCharCode(255&v),v>>>=8;return S}function c(v,E,y,S,x,C){var N,F,R=v.file,D=v.compression,M=C!==h.utf8encode,L=u.transformTo("string",C(R.name)),O=u.transformTo("string",h.utf8encode(R.name)),I=R.comment,B=u.transformTo("string",C(I)),k=u.transformTo("string",h.utf8encode(I)),q=O.length!==R.name.length,w=k.length!==I.length,$="",K="",Z="",ae=R.dir,ie=R.date,P={crc32:0,compressedSize:0,uncompressedSize:0};E&&!y||(P.crc32=v.crc32,P.compressedSize=v.compressedSize,P.uncompressedSize=v.uncompressedSize);var z=0;E&&(z|=8),M||!q&&!w||(z|=2048);var Y=0,U=0;ae&&(Y|=16),x==="UNIX"?(U=798,Y|=(function(de,Se){var je=de;return de||(je=Se?16893:33204),(65535&je)<<16})(R.unixPermissions,ae)):(U=20,Y|=(function(de){return 63&(de||0)})(R.dosPermissions)),N=ie.getUTCHours(),N<<=6,N|=ie.getUTCMinutes(),N<<=5,N|=ie.getUTCSeconds()/2,F=ie.getUTCFullYear()-1980,F<<=4,F|=ie.getUTCMonth()+1,F<<=5,F|=ie.getUTCDate(),q&&(K=l(1,1)+l(p(L),4)+O,$+="up"+l(K.length,2)+K),w&&(Z=l(1,1)+l(p(B),4)+k,$+="uc"+l(Z.length,2)+Z);var ue="";return ue+=`
260\0`,ue+=l(z,2),ue+=D.magic,ue+=l(N,2),ue+=l(F,2),ue+=l(P.crc32,4),ue+=l(P.compressedSize,4),ue+=l(P.uncompressedSize,4),ue+=l(L.length,2),ue+=l($.length,2),{fileRecord:g.LOCAL_FILE_HEADER+ue+L+$,dirRecord:g.CENTRAL_FILE_HEADER+l(U,2)+ue+l(B.length,2)+"\0\0\0\0"+l(Y,4)+l(S,4)+L+$+B}}var u=n("../utils"),f=n("../stream/GenericWorker"),h=n("../utf8"),p=n("../crc32"),g=n("../signature");function _(v,E,y,S){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=E,this.zipPlatform=y,this.encodeFileName=S,this.streamFiles=v,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}u.inherits(_,f),_.prototype.push=function(v){var E=v.meta.percent||0,y=this.entriesCount,S=this._sources.length;this.accumulate?this.contentBuffer.push(v):(this.bytesWritten+=v.data.length,f.prototype.push.call(this,{data:v.data,meta:{currentFile:this.currentFile,percent:y?(E+100*(y-S-1))/y:100}}))},_.prototype.openedSource=function(v){this.currentSourceOffset=this.bytesWritten,this.currentFile=v.file.name;var E=this.streamFiles&&!v.file.dir;if(E){var y=c(v,E,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(v){this.accumulate=!1;var E=this.streamFiles&&!v.file.dir,y=c(v,E,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),E)this.push({data:(function(S){return g.DATA_DESCRIPTOR+l(S.crc32,4)+l(S.compressedSize,4)+l(S.uncompressedSize,4)})(v),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var v=this.bytesWritten,E=0;E<this.dirRecords.length;E++)this.push({data:this.dirRecords[E],meta:{percent:100}});var y=this.bytesWritten-v,S=(function(x,C,N,F,R){var D=u.transformTo("string",R(F));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(x,2)+l(x,2)+l(C,4)+l(N,4)+l(D.length,2)+D})(this.dirRecords.length,y,v,this.zipComment,this.encodeFileName);this.push({data:S,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(v){this._sources.push(v);var E=this;return v.on("data",function(y){E.processChunk(y)}),v.on("end",function(){E.closedSource(E.previous.streamInfo),E._sources.length?E.prepareNextSource():E.end()}),v.on("error",function(y){E.error(y)}),this},_.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(v){var E=this._sources;if(!f.prototype.error.call(this,v))return!1;for(var y=0;y<E.length;y++)try{E[y].error(v)}catch{}return!0},_.prototype.lock=function(){f.prototype.lock.call(this);for(var v=this._sources,E=0;E<v.length;E++)v[E].lock()},i.exports=_},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,i,s){var l=n("../compressions"),c=n("./ZipFileWorker");s.generateWorker=function(u,f,h){var p=new c(f.streamFiles,h,f.platform,f.encodeFileName),g=0;try{u.forEach(function(_,v){g++;var E=(function(C,N){var F=C||N,R=l[F];if(!R)throw new Error(F+" is not a valid compression method !");return R})(v.options.compression,f.compression),y=v.options.compressionOptions||f.compressionOptions||{},S=v.dir,x=v.date;v._compressWorker(E,y).withStreamInfo("file",{name:_,dir:S,date:x,comment:v.comment||"",unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions}).pipe(p)}),p.entriesCount=g}catch(_){p.error(_)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,i,s){function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var c=new l;for(var u in this)typeof this[u]!="function"&&(c[u]=this[u]);return c}}(l.prototype=n("./object")).loadAsync=n("./load"),l.support=n("./support"),l.defaults=n("./defaults"),l.version="3.10.1",l.loadAsync=function(c,u){return new l().loadAsync(c,u)},l.external=n("./external"),i.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,i,s){var l=n("./utils"),c=n("./external"),u=n("./utf8"),f=n("./zipEntries"),h=n("./stream/Crc32Probe"),p=n("./nodejsUtils");function g(_){return new c.Promise(function(v,E){var y=_.decompressed.getContentWorker().pipe(new h);y.on("error",function(S){E(S)}).on("end",function(){y.streamInfo.crc32!==_.decompressed.crc32?E(new Error("Corrupted zip : CRC32 mismatch")):v()}).resume()})}i.exports=function(_,v){var E=this;return v=l.extend(v||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:u.utf8decode}),p.isNode&&p.isStream(_)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip f
260ile",_,!0,v.optimizedBinaryString,v.base64).then(function(y){var S=new f(v);return S.load(y),S}).then(function(y){var S=[c.Promise.resolve(y)],x=y.files;if(v.checkCRC32)for(var C=0;C<x.length;C++)S.push(g(x[C]));return c.Promise.all(S)}).then(function(y){for(var S=y.shift(),x=S.files,C=0;C<x.length;C++){var N=x[C],F=N.fileNameStr,R=l.resolve(N.fileNameStr);E.file(R,N.decompressed,{binary:!0,optimizedBinaryString:!0,date:N.date,dir:N.dir,comment:N.fileCommentStr.length?N.fileCommentStr:null,unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions,createFolders:v.createFolders}),N.dir||(E.file(R).unsafeOriginalName=F)}return S.zipComment.length&&(E.comment=S.zipComment),E})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,i,s){var l=n("../utils"),c=n("../stream/GenericWorker");function u(f,h){c.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(h)}l.inherits(u,c),u.prototype._bindStream=function(f){var h=this;(this._stream=f).pause(),f.on("data",function(p){h.push({data:p,meta:{percent:0}})}).on("error",function(p){h.isPaused?this.generatedError=p:h.error(p)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},u.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=u},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,i,s){var l=n("readable-stream").Readable;function c(u,f,h){l.call(this,f),this._helper=u;var p=this;u.on("data",function(g,_){p.push(g)||p._helper.pause(),h&&h(_)}).on("error",function(g){p.emit("error",g)}).on("end",function(){p.push(null)})}n("../utils").inherits(c,l),c.prototype._read=function(){this._helper.resume()},i.exports=c},{"../utils":32,"readable-stream":16}],14:[function(n,i,s){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,c){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,c);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,c)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var c=new Buffer(l);return c.fill(0),c},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(n,i,s){function l(R,D,M){var L,O=u.getTypeOf(D),I=u.extend(M||{},p);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(R=x(R)),I.createFolders&&(L=S(R))&&C.call(this,L,!0);var B=O==="string"&&I.binary===!1&&I.base64===!1;M&&M.binary!==void 0||(I.binary=!B),(D instanceof g&&D.uncompressedSize===0||I.dir||!D||D.length===0)&&(I.base64=!1,I.binary=!0,D="",I.compression="STORE",O="string");var k=null;k=D instanceof g||D instanceof f?D:E.isNode&&E.isStream(D)?new y(R,D):u.prepareContent(R,D,I.binary,I.optimizedBinaryString,I.base64);var q=new _(R,k,I);this.files[R]=q}var c=n("./utf8"),u=n("./utils"),f=n("./stream/GenericWorker"),h=n("./stream/StreamHelper"),p=n("./defaults"),g=n("./compressedObject"),_=n("./zipObject"),v=n("./generate"),E=n("./nodejsUtils"),y=n("./nodejs/NodejsStreamInputAdapter"),S=function(R){R.slice(-1)==="/"&&(R=R.substring(0,R.length-1));var D=R.lastIndexOf("/");return 0<D?R.substring(0,D):""},x=function(R){return R.slice(-1)!=="/"&&(R+="/"),R},C=function(R,D){return D=D!==void 0?D:p.createFolders,R=x(R),this.files[R]||l.call(this,R,null,{dir:!0,createFolders:D}),this.files[R]};function N(R){return Object.prototype.toString.call(R)==="[object RegExp]"}var F={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(R){var D,M,L;for(D in this.files)L=this.files[D],(M=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&R(M,L)},filter:function(R){var D=[];return this.forEach(function(M,L){R(M,L)&&D.push(L)}),D}
vendor: 5,667 bytes, line 260
260,file:function(R,D,M){if(arguments.length!==1)return R=this.root+R,l.call(this,R,D,M),this;if(N(R)){var L=R;return this.filter(function(I,B){return!B.dir&&L.test(I)})}var O=this.files[this.root+R];return O&&!O.dir?O:null},folder:function(R){if(!R)return this;if(N(R))return this.filter(function(O,I){return I.dir&&R.test(O)});var D=this.root+R,M=C.call(this,D),L=this.clone();return L.root=M.name,L},remove:function(R){R=this.root+R;var D=this.files[R];if(D||(R.slice(-1)!=="/"&&(R+="/"),D=this.files[R]),D&&!D.dir)delete this.files[R];else for(var M=this.filter(function(O,I){return I.name.slice(0,R.length)===R}),L=0;L<M.length;L++)delete this.files[M[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(R){var D,M={};try{if((M=u.extend(R||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=M.type.toLowerCase(),M.compression=M.compression.toUpperCase(),M.type==="binarystring"&&(M.type="string"),!M.type)throw new Error("No output type specified.");u.checkSupport(M.type),M.platform!=="darwin"&&M.platform!=="freebsd"&&M.platform!=="linux"&&M.platform!=="sunos"||(M.platform="UNIX"),M.platform==="win32"&&(M.platform="DOS");var L=M.comment||this.comment||"";D=v.generateWorker(this,M,L)}catch(O){(D=new f("error")).error(O)}return new h(D,M.type||"string",M.mimeType)},generateAsync:function(R,D){return this.generateInternalStream(R).accumulate(D)},generateNodeStream:function(R,D){return(R=R||{}).type||(R.type="nodebuffer"),this.generateInternalStream(R).toNodejsStream(D)}};i.exports=F},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,i,s){i.exports=n("stream")},{stream:void 0}],17:[function(n,i,s){var l=n("./DataReader");function c(u){l.call(this,u);for(var f=0;f<this.data.length;f++)u[f]=255&u[f]}n("../utils").inherits(c,l),c.prototype.byteAt=function(u){return this.data[this.zero+u]},c.prototype.lastIndexOfSignature=function(u){for(var f=u.charCodeAt(0),h=u.charCodeAt(1),p=u.charCodeAt(2),g=u.charCodeAt(3),_=this.length-4;0<=_;--_)if(this.data[_]===f&&this.data[_+1]===h&&this.data[_+2]===p&&this.data[_+3]===g)return _-this.zero;return-1},c.prototype.readAndCheckSignature=function(u){var f=u.charCodeAt(0),h=u.charCodeAt(1),p=u.charCodeAt(2),g=u.charCodeAt(3),_=this.readData(4);return f===_[0]&&h===_[1]&&p===_[2]&&g===_[3]},c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./DataReader":18}],18:[function(n,i,s){var l=n("../utils");function c(u){this.data=u,this.length=u.length,this.index=0,this.zero=0}c.prototype={checkOffset:function(u){this.checkIndex(this.index+u)},checkIndex:function(u){if(this.length<this.zero+u||u<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+u+"). Corrupted zip ?")},setIndex:function(u){this.checkIndex(u),this.index=u},skip:function(u){this.setIndex(this.index+u)},byteAt:function(){},readInt:function(u){var f,h=0;for(this.checkOffset(u),f=this.index+u-1;f>=this.index;f--)h=(h<<8)+this.byteAt(f);return this.index+=u,h},readString:function(u){return l.transformTo("string",this.readData(u))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var u=this.readInt(4);return new Date(Date.UTC(1980+(u>>25&127),(u>>21&15)-1,u>>16&31,u>>11&31,u>>5&63,(31&u)<<1))}},i.exports=c},{"../utils":32}],19:[function(n,i,s){var l=n("./Uint8ArrayReader");function c(u){l.call(this,u)}n("../utils").inherits(c,l),c.prototype.readData=function(u){this.checkOffset(u);var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,i,s){var l=n("./DataReader");function c(u){l.call(this,u)}n("../utils").inherits(c,l),c.prototype.byteAt=function(u){return this.data.charCodeAt(this.zero+u)},c.prototype.lastIndexOfSignature=function(u){return this.data.lastIndexOf(u)-this.zero},c.prototype.readAndCheckSignature=function(u){return u===this.readData(4)},c.prototype.readData=function(u){this.checkOffset(u);var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./DataReader":18}],21:[function(n,i,s){var l=n("./ArrayReader");function c(u){l.call(this,u)}n("../utils").inherits(c,l),c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(n,i,s){var l=n("../utils"),c=n("../support"),u=n("./ArrayReader"),f=n("./StringReader"),h=n("./NodeBufferReader"),p=n("./Uint8ArrayReader");i.exports=function(g){var _=l.getTypeOf(g);return l.checkSupport(_),_!=="string"||c.uint8array?_==="nodebuffer"?new h(g):c.uint8array?new p(l.transformTo("uint8array",g)):new u(l.transformTo("array",g)):new f(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,i,s){s.LOCAL_FILE_HEADER="PK��",s.CENTRAL_FILE_HEADER="PK��",s.CENTRAL_DIRECTORY_END="PK��",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK��",s.DATA_DESCRIPTOR="PK\x07\b"},{}
vendor: 4,184 bytes, line 260
260],24:[function(n,i,s){var l=n("./GenericWorker"),c=n("../utils");function u(f){l.call(this,"ConvertWorker to "+f),this.destType=f}c.inherits(u,l),u.prototype.processChunk=function(f){this.push({data:c.transformTo(this.destType,f.data),meta:f.meta})},i.exports=u},{"../utils":32,"./GenericWorker":28}],25:[function(n,i,s){var l=n("./GenericWorker"),c=n("../crc32");function u(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(u,l),u.prototype.processChunk=function(f){this.streamInfo.crc32=c(f.data,this.streamInfo.crc32||0),this.push(f)},i.exports=u},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,i,s){var l=n("../utils"),c=n("./GenericWorker");function u(f){c.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}l.inherits(u,c),u.prototype.processChunk=function(f){if(f){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+f.data.length}c.prototype.processChunk.call(this,f)},i.exports=u},{"../utils":32,"./GenericWorker":28}],27:[function(n,i,s){var l=n("../utils"),c=n("./GenericWorker");function u(f){c.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(p){h.dataIsReady=!0,h.data=p,h.max=p&&p.length||0,h.type=l.getTypeOf(p),h.isPaused||h._tickAndRepeat()},function(p){h.error(p)})}l.inherits(u,c),u.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},u.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},u.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,h);break;case"uint8array":f=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":f=this.data.slice(this.index,h)}return this.index=h,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=u},{"../utils":32,"./GenericWorker":28}],28:[function(n,i,s){function l(c){this.name=c||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(c){this.emit("data",c)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(c){this.emit("error",c)}return!0},error:function(c){return!this.isFinished&&(this.isPaused?this.generatedError=c:(this.isFinished=!0,this.emit("error",c),this.previous&&this.previous.error(c),this.cleanUp()),!0)},on:function(c,u){return this._listeners[c].push(u),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(c,u){if(this._listeners[c])for(var f=0;f<this._listeners[c].length;f++)this._listeners[c][f].call(this,u)},pipe:function(c){return c.registerPrevious(this)},registerPrevious:function(c){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=c.streamInfo,this.mergeStreamInfo(),this.previous=c;var u=this;return c.on("data",function(f){u.processChunk(f)}),c.on("end",function(){u.end()}),c.on("error",function(f){u.error(f)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var c=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),c=!0),this.previous&&this.previous.resume(),!c},flush:function(){},processChunk:function(c){this.push(c)},withStreamInfo:function(c,u){return this.extraStreamInfo[c]=u,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var c in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,c)&&
vendor: 9,707 bytes, line 260
260(this.streamInfo[c]=this.extraStreamInfo[c])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var c="Worker "+this.name;return this.previous?this.previous+" -> "+c:c}},i.exports=l},{}],29:[function(n,i,s){var l=n("../utils"),c=n("./ConvertWorker"),u=n("./GenericWorker"),f=n("../base64"),h=n("../support"),p=n("../external"),g=null;if(h.nodestream)try{g=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function _(E,y){return new p.Promise(function(S,x){var C=[],N=E._internalType,F=E._outputType,R=E._mimeType;E.on("data",function(D,M){C.push(D),y&&y(M)}).on("error",function(D){C=[],x(D)}).on("end",function(){try{var D=(function(M,L,O){switch(M){case"blob":return l.newBlob(l.transformTo("arraybuffer",L),O);case"base64":return f.encode(L);default:return l.transformTo(M,L)}})(F,(function(M,L){var O,I=0,B=null,k=0;for(O=0;O<L.length;O++)k+=L[O].length;switch(M){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(B=new Uint8Array(k),O=0;O<L.length;O++)B.set(L[O],I),I+=L[O].length;return B;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+M+"'")}})(N,C),R);S(D)}catch(M){x(M)}C=[]}).resume()})}function v(E,y,S){var x=y;switch(y){case"blob":case"arraybuffer":x="uint8array";break;case"base64":x="string"}try{this._internalType=x,this._outputType=y,this._mimeType=S,l.checkSupport(x),this._worker=E.pipe(new c(x)),E.lock()}catch(C){this._worker=new u("error"),this._worker.error(C)}}v.prototype={accumulate:function(E){return _(this,E)},on:function(E,y){var S=this;return E==="data"?this._worker.on(E,function(x){y.call(S,x.data,x.meta)}):this._worker.on(E,function(){l.delay(y,arguments,S)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(E){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},E)}},i.exports=v},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,i,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var l=new ArrayBuffer(0);try{s.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(l),s.blob=c.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!n("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(n,i,s){for(var l=n("./utils"),c=n("./support"),u=n("./nodejsUtils"),f=n("./stream/GenericWorker"),h=new Array(256),p=0;p<256;p++)h[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;h[254]=h[254]=1;function g(){f.call(this,"utf-8 decode"),this.leftOver=null}function _(){f.call(this,"utf-8 encode")}s.utf8encode=function(v){return c.nodebuffer?u.newBufferFrom(v,"utf-8"):(function(E){var y,S,x,C,N,F=E.length,R=0;for(C=0;C<F;C++)(64512&(S=E.charCodeAt(C)))==55296&&C+1<F&&(64512&(x=E.charCodeAt(C+1)))==56320&&(S=65536+(S-55296<<10)+(x-56320),C++),R+=S<128?1:S<2048?2:S<65536?3:4;for(y=c.uint8array?new Uint8Array(R):new Array(R),C=N=0;N<R;C++)(64512&(S=E.charCodeAt(C)))==55296&&C+1<F&&(64512&(x=E.charCodeAt(C+1)))==56320&&(S=65536+(S-55296<<10)+(x-56320),C++),S<128?y[N++]=S:(S<2048?y[N++]=192|S>>>6:(S<65536?y[N++]=224|S>>>12:(y[N++]=240|S>>>18,y[N++]=128|S>>>12&63),y[N++]=128|S>>>6&63),y[N++]=128|63&S);return y})(v)},s.utf8decode=function(v){return c.nodebuffer?l.transformTo("nodebuffer",v).toString("utf-8"):(function(E){var y,S,x,C,N=E.length,F=new Array(2*N);for(y=S=0;y<N;)if((x=E[y++])<128)F[S++]=x;else if(4<(C=h[x]))F[S++]=65533,y+=C-1;else{for(x&=C===2?31:C===3?15:7;1<C&&y<N;)x=x<<6|63&E[y++],C--;1<C?F[S++]=65533:x<65536?F[S++]=x:(x-=65536,F[S++]=55296|x>>10&1023,F[S++]=56320|1023&x)}return F.length!==S&&(F.subarray?F=F.subarray(0,S):F.length=S),l.applyFromCharCode(F)})(v=l.transformTo(c.uint8array?"uint8array":"array",v))},l.inherits(g,f),g.prototype.processChunk=function(v){var E=l.transformTo(c.uint8array?"uint8array":"array",v.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var y=E;(E=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),E.set(y,this.leftOver.length)}else E=this.leftOver.concat(E);this.leftOver=null}var S=(function(C,N){var F;for((N=N||C.length)>C.length&&(N=C.length),F=N-1;0<=F&&(192&C[F])==128;)F--;return F<0||F===0?N:F+h[C[F]]>N?F:N})(E),x=E;S!==E.length&&(c.uint8array?(x=E.subarray(0,S),this.leftOver=E.subarray(S,E.length)):(x=E.slice(0,S),this.leftOver=E.slice(S,E.length))),this.push({data:s.utf8decode(x),meta:v.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=g,l.inherits(_,f),_.prototype.processChunk=function(v){this.push({data:s.utf8encode(v.data),meta:v.meta})},s.Utf8EncodeWorker=_},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,i,s){var l=n("./support"),c=n("./base64"),u=n("./nodejsUtils"),f=n("./external");function h(y){return y}function p(y,S){for(var x=0;x<y.length;++x)S[x]=255&y.charCodeAt(x);return S}n("setimmediate"),s.newBlob=function(y,S){s.checkSupport("blob");try{return new Blob([y],{type:S})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(y),x.getBlob(S)}catch{throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(y,S,x){var C=[],N=0,F=y.length;if(F<=x)return String.fromCharCode.apply(null,y);for(;N<F;)S==="array"||S==="nodebuffer"?C.push(String.fromCharCode.apply(null,y.slice(N,Math.min(N+x,F)))):C.push(String.fromCharCode.apply(null,y.subarray(N,Math.min(N+x,F)))),N+=x;return C.join("")},stringifyByChar:function(y){for(var S="",x=0;x<y.length;x++)S+=String.fromCharCode(y[x]);return S},applyCanBeUsed:{uint8array:(function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,u.allocBuffer(1)).length===1}catch{return!1}})()}};function _(y){var S=65536,x=s.getTypeOf(y),C=!0;if(x==="uint8array"?C=g.applyCanBeUsed.uint8array:x==="nodebuffer"&&(C=g.applyCanBeUsed.nodebuffer),C)for(;1<S;)try{return g.stringifyByChunk(y,x,S)}catch{S=Math.floor(S/2)}return g.stringifyByChar(y)}function v(y,S){for(var x=0;x<y.length;x++)S[x]=y[x];return S}s.applyFromCharCode=_;var E={};E.string={string:h,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return E.string.uint8array(y).buffer},uint8array:function(y){return p(y,new Uint8Array(y.length))},nodebuffer:function(y){return p(y,u.allocBuffer(y.length))}},E.array={string:_,array:h,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return u.newBufferFrom(y)}},E.arraybuffer={string:function(y){return _(new Uint8Array(y))},array:function(y){return v(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:h,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return u.newBufferFrom(new Uint8Array(y))}},E.uint8array={string:_,array:function(y){return v(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:h,nodebuffer:function(y){return u.newBufferFrom(y)}},E.nodebuffer={string:_,array:function(y){return v(y,new Array(y.length))},arraybuffer:function(y){return E.nodebuffer.uint8array(y).buffer},uint8array:function(y){return v(y,new Uint8Array(y.length))},nodebuffer:h},s.transformTo=function(y,S){if(S=S||"",!y)return S;s.checkSupport(y);var x=s.getTypeOf(S);return E[x][y](S)},s.resolve=function(y){for(var S=y.split("/"),x=[],C=0;C<S.length;C++){var N=S[C];N==="."||N===""&&C!==0&&C!==S.length-1||(N===".."?x.pop():x.push(N))}return x.join("/")},s.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":l.nodebuffer&&u.isBuffer(y)?"nodebuffer":l.uint8array&&y instanceof Uint8Array?"uint8array":l.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(y){if(!l[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(y){var S,x,C="";for(x=0;x<(y||"").length;x++)C+="\\x"+((S=y.charCodeAt(x))<16?"0":"")+S.toString(16).toUpperCase();return C},s.delay=function(y,S,x){setImmediate(function(){y.apply(x||null,S||[])})},s.inherits=function(y,S){function x(){}x.prototype=S.prototype,y.prototype=new x},s.extend=function(){var y,S,x={};for(y=0;y<arguments.length;y++)for(S in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],S)&&x[S]===void 0&&(x[S]=arguments[y][S]);return x},s.prepareContent=function(y,S,x,C,N){return f.Promise.resolve(S).then(function(F){return l.blob&&(F instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(F))!==-1)&&typeof FileReader<"u"?new f.Promise(function(R,D){var M=new FileReader;M.onload=function(L){R(L.target.result)},M.onerror=function(L){D(L.target.error)},M.readAsArrayBuffer(F)}):F}).then(function(F){var R=s.getTypeOf(F);return R?(R==="arraybuffer"?F=s.transformTo("uint8array",F):R==="str
260ing"&&(N?F=c.decode(F):x&&C!==!0&&(F=(function(D){return p(D,l.uint8array?new Uint8Array(D.length):new Array(D.length))})(F))),F):f.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,i,s){var l=n("./reader/readerFor"),c=n("./utils"),u=n("./signature"),f=n("./zipEntry"),h=n("./support");function p(g){this.files=[],this.loadOptions=g}p.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var _=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(_)+", expected "+c.pretty(g)+")")}},isSignature:function(g,_){var v=this.reader.index;this.reader.setIndex(g);var E=this.reader.readString(4)===_;return this.reader.setIndex(v),E},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),_=h.uint8array?"uint8array":"array",v=c.transformTo(_,g);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,_,v,E=this.zip64EndOfCentralSize-44;0<E;)g=this.reader.readInt(2),_=this.reader.readInt(4),v=this.reader.readData(_),this.zip64ExtensibleData[g]={id:g,length:_,value:v}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,_;for(g=0;g<this.files.length;g++)_=this.files[g],this.reader.setIndex(_.localHeaderOffset),this.checkSignature(u.LO
vendor: 17,575 bytes, line 260
260CAL_FILE_HEADER),_.readLocalPart(this.reader),_.handleUTF8(),_.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(u.CENTRAL_FILE_HEADER);)(g=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,u.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var _=g;if(this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,u.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var v=this.centralDirOffset+this.centralDirSize;this.zip64&&(v+=20,v+=12+this.zip64EndOfCentralSize);var E=_-v;if(0<E)this.isSignature(_,u.CENTRAL_FILE_HEADER)||(this.reader.zero=E);else if(E<0)throw new Error("Corrupted zip: missing "+Math.abs(E)+" bytes.")},prepareReader:function(g){this.reader=l(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,i,s){var l=n("./reader/readerFor"),c=n("./utils"),u=n("./compressedObject"),f=n("./crc32"),h=n("./utf8"),p=n("./compressions"),g=n("./support");function _(v,E){this.options=v,this.loadOptions=E}_.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(v){var E,y;if(v.skip(22),this.fileNameLength=v.readInt(2),y=v.readInt(2),this.fileName=v.readData(this.fileNameLength),v.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((E=(function(S){for(var x in p)if(Object.prototype.hasOwnProperty.call(p,x)&&p[x].magic===S)return p[x];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new u(this.compressedSize,this.uncompressedSize,this.crc32,E,v.readData(this.compressedSize))},readCentralPart:function(v){this.versionMadeBy=v.readInt(2),v.skip(2),this.bitFlag=v.readInt(2),this.compressionMethod=v.readString(2),this.date=v.readDate(),this.crc32=v.readInt(4),this.compressedSize=v.readInt(4),this.uncompressedSize=v.readInt(4);var E=v.readInt(2);if(this.extraFieldsLength=v.readInt(2),this.fileCommentLength=v.readInt(2),this.diskNumberStart=v.readInt(2),this.internalFileAttributes=v.readInt(2),this.externalFileAttributes=v.readInt(4),this.localHeaderOffset=v.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");v.skip(E),this.readExtraFields(v),this.parseZIP64ExtraField(v),this.fileComment=v.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var v=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),v==0&&(this.dosPermissions=63&this.externalFileAttributes),v==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var v=l(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=v.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=v.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=v.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=v.readInt(4))}},readExtraFields:function(v){var E,y,S,x=v.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});v.index+4<x;)E=v.readInt(2),y=v.readInt(2),S=v.readData(y),this.extraFields[E]={id:E,length:y,value:S};v.setIndex(x)},handleUTF8:function(){var v=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var E=this.findExtraFieldUnicodePath();if(E!==null)this.fileNameStr=E;else{var y=c.transformTo(v,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var S=this.findExtraFieldUnicodeComment();if(S!==null)this.fileCommentStr=S;else{var x=c.transformTo(v,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(x)}}},findExtraFieldUnicodePath:function(){var v=this.extraFields[28789];if(v){var E=l(v.value);return E.readInt(1)!==1||f(this.fileName)!==E.readInt(4)?null:h.utf8decode(E.readData(v.length-5))}return null},findExtraFieldUnicodeComment:function(){var v=this.extraFields[25461];if(v){var E=l(v.value);return E.readInt(1)!==1||f(this.fileComment)!==E.readInt(4)?null:h.utf8decode(E.readData(v.length-5))}return null}},i.exports=_},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,i,s){function l(E,y,S){this.name=E,this.dir=S.dir,this.date=S.date,this.comment=S.comment,this.unixPermissions=S.unixPermissions,this.dosPermissions=S.dosPermissions,this._data=y,this._dataBinary=S.binary,this.options={compression:S.compression,compressionOptions:S.compressionOptions}}var c=n("./stream/StreamHelper"),u=n("./stream/DataWorker"),f=n("./utf8"),h=n("./compressedObject"),p=n("./stream/GenericWorker");l.prototype={internalStream:function(E){var y=null,S="string";try{if(!E)throw new Error("No output type specified.");var x=(S=E.toLowerCase())==="string"||S==="text";S!=="binarystring"&&S!=="text"||(S="string"),y=this._decompressWorker();var C=!this._dataBinary;C&&!x&&(y=y.pipe(new f.Utf8EncodeWorker)),!C&&x&&(y=y.pipe(new f.Utf8DecodeWorker))}catch(N){(y=new p("error")).error(N)}return new c(y,S,"")},async:function(E,y){return this.internalStream(E).accumulate(y)},nodeStream:function(E,y){return this.internalStream(E||"nodebuffer").toNodejsStream(y)},_compressWorker:function(E,y){if(this._data instanceof h&&this._data.compression.magic===E.magic)return this._data.getCompressedWorker();var S=this._decompressWorker();return this._dataBinary||(S=S.pipe(new f.Utf8EncodeWorker)),h.createWorkerFrom(S,E,y)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof p?this._data:new u(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],_=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},v=0;v<g.length;v++)l.prototype[g[v]]=_;i.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,i,s){(function(l){var c,u,f=l.MutationObserver||l.WebKitMutationObserver;if(f){var h=0,p=new f(E),g=l.document.createTextNode("");p.observe(g,{characterData:!0}),c=function(){g.data=h=++h%2}}else if(l.setImmediate||l.MessageChannel===void 0)c="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var y=l.document.createElement("script");y.onreadystatechange=function(){E(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},l.document.documentElement.appendChild(y)}:function(){setTimeout(E,0)};else{var _=new l.MessageChannel;_.port1.onmessage=E,c=function(){_.port2.postMessage(0)}}var v=[];function E(){var y,S;u=!0;for(var x=v.length;x;){for(S=v,v=[],y=-1;++y<x;)S[y]();x=v.length}u=!1}i.exports=function(y){v.push(y)!==1||u||c()}}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,i,s){var l=n("immediate");function c(){}var u={},f=["REJECTED"],h=["FULFILLED"],p=["PENDING"];function g(x){if(typeof x!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,x!==c&&y(this,x)}function _(x,C,N){this.promise=x,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}function v(x,C,N){l(function(){var F;try{F=C(N)}catch(R){return u.reject(x,R)}F===x?u.reject(x,new TypeError("Cannot resolve promise with itself")):u.resolve(x,F)})}function E(x){var C=x&&x.then;if(x&&(typeof x=="object"||typeof x=="function")&&typeof C=="function")return function(){C.apply(x,arguments)}}function y(x,C){var N=!1;function F(M){N||(N=!0,u.reject(x,M))}function R(M){N||(N=!0,u.resolve(x,M))}var D=S(function(){C(R,F)});D.status==="error"&&F(D.value)}function S(x,C){var N={};try{N.value=x(C),N.status="success"}catch(F){N.status="error",N.value=F}return N}(i.exports=g).prototype.finally=function(x){if(typeof x!="function")return this;var C=this.constructor;return this.then(function(N){return C.resolve(x()).then(function(){return N})},function(N){return C.resolve(x()).then(function(){throw N})})},g.prototype.catch=function(x){return this.then(null,x)},g.prototype.then=function(x,C){if(typeof x!="function"&&this.state===h||typeof C!="function"&&this.state===f)return this;var N=new this.constructor(c);return this.state!==p?v(N,this.state===h?x:C,this.outcome):this.queue.push(new _(N,x,C)),N},_.prototype.callFulfilled=function(x){u.resolve(this.promise,x)},_.prototype.otherCallFulfilled=function(x){v(this.promise,this.onFulfilled,x)},_.prototype.callRejected=function(x){u.reject(this.promise,x)},_.prototype.otherCallRejected=function(x){v(this.promise,this.onRejected,x)},u.resolve=function(x,C){var N=S(E,C);if(N.status==="error")return u.reject(x,N.value);var F=N.value;if(F)y(x,F);else{x.state=h,x.outcome=C;for(var R=-1,D=x.queue.length;++R<D;)x.queue[R].callFulfilled(C)}return x},u.reject=function(x,C){x.state=f,x.outcome=C;for(var N=-1,F=x.queue.length;++N<F;)x.queue[N].callRejected(C);return x},g.resolve=function(x){return x instanceof this?x:u.resolve(new this(c),x)},g.reject=function(x){var C=new this(c);return u.reject(C,x)},g.all=function(x){var C=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=x.length,F=!1;if(!N)return this.resolve([]);for(var R=new Array(N),D=0,M=-1,L=new this(c);++M<N;)O(x[M],M);return L;function O(I,B){C.resolve(I).then(function(k){R[B]=k,++D!==N||F||(F=!0,u.resolve(L,R))},function(k){F||(F=!0,u.reject(L,k))})}},g.race=function(x){var C=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=x.length,F=!1;if(!N)return this.resolve([]);for(var R=-1,D=new this(c);++R<N;)M=x[R],C.resolve(M).then(function(L){F||(F=!0,u.resolve(D,L))},function(L){F||(F=!0,u.reject(D,L))});var M;return D}},{immediate:36}],38:[function(n,i,s){var l={};(0,n("./lib/utils/common").assign)(l,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),i.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,i,s){var l=n("./zlib/deflate"),c=n("./utils/common"),u=n("./utils/strings"),f=n("./zlib/messages"),h=n("./zlib/zstream"),p=Object.prototype.toString,g=0,_=-1,v=0,E=8;function y(x){if(!(this instanceof y))return new y(x);this.options=c.assign({level:_,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:v,to:""},x||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var N=l.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(N!==g)throw new Error(f[N]);if(C.header&&l.deflateSetHeader(this.strm,C.header),C.dictionary){var F;if(F=typeof C.dictionary=="string"?u.string2buf(C.dictionary):p.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(N=l.deflateSetDictionary(this.strm,F))!==g)throw new Error(f[N]);this._dict_set=!0}}function S(x,C){var N=new y(C);if(N.push(x,!0),N.err)throw N.msg||f[N.err];return N.result}y.prototype.push=function(x,C){var N,F,R=this.strm,D=this.options.chunkSize;if(this.ended)return!1;F=C===~~C?C:C===!0?4:0,typeof x=="string"?R.input=u.string2buf(x):p.call(x)==="[object ArrayBuffer]"?R.input=new Uint8Array(x):R.input=x,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new c.Buf8(D),R.next_out=0,R.avail_out=D),(N=l.deflate(R,F))!==1&&N!==g)return this.onEnd(N),!(this.ended=!0);R.avail_out!==0&&(R.avail_in!==0||F!==4&&F!==2)||(this.options.to==="string"?this.onData(u.buf2binstring(c.shrinkBuf(R.output,R.next_out))):this.onData(c.shrinkBuf(R.output,R.next_out)))}while((0<R.avail_in||R.avail_out===0)&&N!==1);return F===4?(N=l.deflateEnd(this.strm),this.onEnd(N),this.ended=!0,N===g):F!==2||(this.onEnd(g),!(R.avail_out=0))},y.prototype.onData=function(x){this.chunks.push(x)},y.prototype.onEnd=function(x){x===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},s.Deflate=y,s.deflate=S,s.deflateRaw=function(x,C){return(C=C||{}).raw=!0,S(x,C)},s.gzip=function(x,C){return(C=C||{}).gzip=!0,S(x,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,i,s){var l=n("./zlib/inflate"),c=n("./utils/common"),u=n("./utils/strings"),f=n("./zlib/constants"),h=n("./zlib/messages"),p=n("./zlib/zstream"),g=n("./zlib/gzheader"),_=Object.prototype.toString;function v(y){if(!(this instanceof v))return new v(y);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},y||{});var S=this.options;S.raw&&0<=S.windowBits&&S.windowBits<16&&(S.windowBits=-S.windowBits,S.windowBits===0&&(S.windowBits=-15)),!(0<=S.windowBits&&S.windowBits<16)||y&&y.windowBits||(S.windowBits+=32),15<S.windowBits&&S.windowBits<48&&(15&S.windowBits)==0&&(S.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var x=l.inflateInit2(this.strm,S.windowBits);if(x!==f.Z_OK)throw new Error(h[x]);this.header=new g,l.inflateGetHeader(this.strm,this.header)}function E(y,S){var x=new v(S);if(x.push(y,!0),x.err)throw x.msg||h[x.err];return x.result}v.prototype.push=function(y,S){var x,C,N,F,R,D,M=this.strm,L=this.options.chunkSize,O=this.options.dictionary,I=!1;if(this.ended)return!1;C=S===~~S?S:S===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof y=="string"?M.input=u.binstring2buf(y):_.call(y)==="[object ArrayBuffer]"?M.input=new Uint8Array(y):M.input=y,M.next_in=0,M.avail_in=M.input.length;do{if(M.avail_out===0&&(M.output=new c.Buf8(L),M.next_out=0,M.avail_out=L),(x=l.inflate(M,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&O&&(D=typeof O=="string"?u.string2buf(O):_.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,x=l.inflateSetDictionary(this.strm,D)),x===f.Z_BUF_ERROR&&I===!0&&(x=f.Z_OK,I=!1),x!==f.Z_STREAM_END&&x!==f.Z_OK)return this.onEnd(x),!(this.ended=!0);M.next_out&&(M.avail_out!==0&&x!==f.Z_STREAM_END&&(M.avail_in!==0||C!==f.Z_FINISH&&C!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(N=u.utf8border(M.output,M.next_out),F=M.next_out-N,R=u.buf2string(M.output,N),M.next_out=F,M.avail_out=L-F,F&&c.arraySet(M.output,M.output,N,F,0),this.onData(R)):this.onData(c.shrinkBuf(M.output,M.next_out)))),M.avail_in===0&&M.avail_out===0&&(I=!0)}while((0<M.avail_in||M.avail_out===0)&&x!==f.Z_STREAM_END);return x===f.Z_STREAM_END&&(C=f.Z_FINISH),C===f.Z_FINISH?(x=l.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===f.Z_OK):C!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(M.avail_out=0))},v.prototype.onData=function(y){this.chunks.push(y)},v.prototype.onEnd=function(y){y===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},s.Inflate=v,s.inflate=E,s.inflateRaw=function(y,S){return(S=S||{}).raw=!0,E(y,S)},s.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,i,s){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(f){for(var h=Array.prototype.slice.call(arguments,1
vendor: 5,763 bytes, line 260
260);h.length;){var p=h.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])}}return f},s.shrinkBuf=function(f,h){return f.length===h?f:f.subarray?f.subarray(0,h):(f.length=h,f)};var c={arraySet:function(f,h,p,g,_){if(h.subarray&&f.subarray)f.set(h.subarray(p,p+g),_);else for(var v=0;v<g;v++)f[_+v]=h[p+v]},flattenChunks:function(f){var h,p,g,_,v,E;for(h=g=0,p=f.length;h<p;h++)g+=f[h].length;for(E=new Uint8Array(g),h=_=0,p=f.length;h<p;h++)v=f[h],E.set(v,_),_+=v.length;return E}},u={arraySet:function(f,h,p,g,_){for(var v=0;v<g;v++)f[_+v]=h[p+v]},flattenChunks:function(f){return[].concat.apply([],f)}};s.setTyped=function(f){f?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,c)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,u))},s.setTyped(l)},{}],42:[function(n,i,s){var l=n("./common"),c=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var f=new l.Buf8(256),h=0;h<256;h++)f[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function p(g,_){if(_<65537&&(g.subarray&&u||!g.subarray&&c))return String.fromCharCode.apply(null,l.shrinkBuf(g,_));for(var v="",E=0;E<_;E++)v+=String.fromCharCode(g[E]);return v}f[254]=f[254]=1,s.string2buf=function(g){var _,v,E,y,S,x=g.length,C=0;for(y=0;y<x;y++)(64512&(v=g.charCodeAt(y)))==55296&&y+1<x&&(64512&(E=g.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(E-56320),y++),C+=v<128?1:v<2048?2:v<65536?3:4;for(_=new l.Buf8(C),y=S=0;S<C;y++)(64512&(v=g.charCodeAt(y)))==55296&&y+1<x&&(64512&(E=g.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(E-56320),y++),v<128?_[S++]=v:(v<2048?_[S++]=192|v>>>6:(v<65536?_[S++]=224|v>>>12:(_[S++]=240|v>>>18,_[S++]=128|v>>>12&63),_[S++]=128|v>>>6&63),_[S++]=128|63&v);return _},s.buf2binstring=function(g){return p(g,g.length)},s.binstring2buf=function(g){for(var _=new l.Buf8(g.length),v=0,E=_.length;v<E;v++)_[v]=g.charCodeAt(v);return _},s.buf2string=function(g,_){var v,E,y,S,x=_||g.length,C=new Array(2*x);for(v=E=0;v<x;)if((y=g[v++])<128)C[E++]=y;else if(4<(S=f[y]))C[E++]=65533,v+=S-1;else{for(y&=S===2?31:S===3?15:7;1<S&&v<x;)y=y<<6|63&g[v++],S--;1<S?C[E++]=65533:y<65536?C[E++]=y:(y-=65536,C[E++]=55296|y>>10&1023,C[E++]=56320|1023&y)}return p(C,E)},s.utf8border=function(g,_){var v;for((_=_||g.length)>g.length&&(_=g.length),v=_-1;0<=v&&(192&g[v])==128;)v--;return v<0||v===0?_:v+f[g[v]]>_?v:_}},{"./common":41}],43:[function(n,i,s){i.exports=function(l,c,u,f){for(var h=65535&l|0,p=l>>>16&65535|0,g=0;u!==0;){for(u-=g=2e3<u?2e3:u;p=p+(h=h+c[f++]|0)|0,--g;);h%=65521,p%=65521}return h|p<<16|0}},{}],44:[function(n,i,s){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,i,s){var l=(function(){for(var c,u=[],f=0;f<256;f++){c=f;for(var h=0;h<8;h++)c=1&c?3988292384^c>>>1:c>>>1;u[f]=c}return u})();i.exports=function(c,u,f,h){var p=l,g=h+f;c^=-1;for(var _=h;_<g;_++)c=c>>>8^p[255&(c^u[_])];return-1^c}},{}],46:[function(n,i,s){var l,c=n("../utils/common"),u=n("./trees"),f=n("./adler32"),h=n("./crc32"),p=n("./messages"),g=0,_=4,v=0,E=-2,y=-1,S=4,x=2,C=8,N=9,F=286,R=30,D=19,M=2*F+1,L=15,O=3,I=258,B=I+O+1,k=42,q=113,w=1,$=2,K=3,Z=4;function ae(T,oe){return T.msg=p[oe],oe}function ie(T){return(T<<1)-(4<T?9:0)}function P(T){for(var oe=T.length;0<=--oe;)T[oe]=0}function z(T){var oe=T.state,J=oe.pending;J>T.avail_out&&(J=T.avail_out),J!==0&&(c.arraySet(T.output,oe.pending_buf,oe.pending_out,J,T.next_out),T.next_out+=J,oe.pending_out+=J,T.total_out+=J,T.avail_out-=J,oe.pending-=J,oe.pending===0&&(oe.pending_out=0))}function Y(T,oe){u._tr_flush_block(T,0<=T.block_start?T.block_start:-1,T.strstart-T.block_start,oe),T.block_start=T.strstart,z(T.strm)}function U(T,oe){T.pending_buf[T.pending++]=oe}function ue(T,oe){T.pending_buf[T.pending++]=oe>>>8&255,T.pending_buf[T.pending++]=255&oe}function de(T,oe){var J,V,H=T.max_chain_length,ee=T.strstart,ye=T.prev_length,Ae=T.nice_match,fe=T.strstart>T.w_size-B?T.strstart-(T.w_size-B):0,Ce=T.window,Re=T.w_mask,Oe=T.prev,se=T.strstart+I,Te=Ce[ee+ye-1],Le=Ce[ee+ye];T.prev_length>=T.good_match&&(H>>=2),Ae>T.lookahead&&(Ae=T.lookahead);do if(Ce[(J=oe)+ye]===Le&&Ce[J+ye-1]===Te&&Ce[J]===Ce[ee]&&Ce[++J]===Ce[ee+1]){ee+=2,J++;do;while(Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&Ce[++ee]===Ce[++J]&&ee<se);if(V=I-(se-ee),ee=se-I,ye<V){if(T.match_start=oe,Ae<=(ye=V))break;Te=Ce[ee+ye-1],Le=Ce[ee+ye]}}while((oe=Oe[oe&Re])>fe&&--H!=0);return ye<=T.lookahead?ye:T.lookahead}function Se(T){var oe,J,V,H,ee,ye,Ae,fe,Ce,Re,Oe=T.w_size;do{if(H=T.window_size-T.lookahead-T.strstart,T.strstart>=Oe+(Oe-B)){for(c.arraySet(T.window,T.window,Oe,Oe,0),T.match_start-=Oe,T.strstart-=Oe,T.block_start-=Oe,oe=J=T.hash_size;V=T.head[--oe],T.head[oe]=Oe<=V?V-Oe:0,--J;);for(oe=J=Oe;V=T.prev[--oe],T.prev[oe]=Oe<=V?V-Oe:0,--J;);H+=Oe}if(T.strm.avail_in===0)break;if(ye=T.strm,Ae=T.window,fe=T.strstart+T.lookahead,Ce=H,Re=void 0,Re=ye.avail_in,Ce<Re&&(Re=Ce),J=Re===0?0:(ye.avail_in-=Re,c.arraySet(Ae,ye.input,ye.next_in,Re,fe),ye.state.wrap===1?ye.adler=f(ye.adler,Ae,Re,fe):ye.state.wrap===2&&(ye.adler=h(ye.adler,Ae,Re,fe)),ye.next_in+=Re,ye.total_in+=Re,Re),T.lookahead+=J,T.lookahead+T.insert>=O)for(ee=T.strstart-T.insert,T.ins_h=T.window[ee],T.ins_h=(T.ins_h<<T.hash_shift^T.window[ee+1])&T.hash_mask;
vendor: 33,885 bytes, line 260
260T.insert&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[ee+O-1])&T.hash_mask,T.prev[ee&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=ee,ee++,T.insert--,!(T.lookahead+T.insert<O)););}while(T.lookahead<B&&T.strm.avail_in!==0)}function je(T,oe){for(var J,V;;){if(T.lookahead<B){if(Se(T),T.lookahead<B&&oe===g)return w;if(T.lookahead===0)break}if(J=0,T.lookahead>=O&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+O-1])&T.hash_mask,J=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),J!==0&&T.strstart-J<=T.w_size-B&&(T.match_length=de(T,J)),T.match_length>=O)if(V=u._tr_tally(T,T.strstart-T.match_start,T.match_length-O),T.lookahead-=T.match_length,T.match_length<=T.max_lazy_match&&T.lookahead>=O){for(T.match_length--;T.strstart++,T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+O-1])&T.hash_mask,J=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart,--T.match_length!=0;);T.strstart++}else T.strstart+=T.match_length,T.match_length=0,T.ins_h=T.window[T.strstart],T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+1])&T.hash_mask;else V=u._tr_tally(T,0,T.window[T.strstart]),T.lookahead--,T.strstart++;if(V&&(Y(T,!1),T.strm.avail_out===0))return w}return T.insert=T.strstart<O-1?T.strstart:O-1,oe===_?(Y(T,!0),T.strm.avail_out===0?K:Z):T.last_lit&&(Y(T,!1),T.strm.avail_out===0)?w:$}function re(T,oe){for(var J,V,H;;){if(T.lookahead<B){if(Se(T),T.lookahead<B&&oe===g)return w;if(T.lookahead===0)break}if(J=0,T.lookahead>=O&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+O-1])&T.hash_mask,J=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),T.prev_length=T.match_length,T.prev_match=T.match_start,T.match_length=O-1,J!==0&&T.prev_length<T.max_lazy_match&&T.strstart-J<=T.w_size-B&&(T.match_length=de(T,J),T.match_length<=5&&(T.strategy===1||T.match_length===O&&4096<T.strstart-T.match_start)&&(T.match_length=O-1)),T.prev_length>=O&&T.match_length<=T.prev_length){for(H=T.strstart+T.lookahead-O,V=u._tr_tally(T,T.strstart-1-T.prev_match,T.prev_length-O),T.lookahead-=T.prev_length-1,T.prev_length-=2;++T.strstart<=H&&(T.ins_h=(T.ins_h<<T.hash_shift^T.window[T.strstart+O-1])&T.hash_mask,J=T.prev[T.strstart&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=T.strstart),--T.prev_length!=0;);if(T.match_available=0,T.match_length=O-1,T.strstart++,V&&(Y(T,!1),T.strm.avail_out===0))return w}else if(T.match_available){if((V=u._tr_tally(T,0,T.window[T.strstart-1]))&&Y(T,!1),T.strstart++,T.lookahead--,T.strm.avail_out===0)return w}else T.match_available=1,T.strstart++,T.lookahead--}return T.match_available&&(V=u._tr_tally(T,0,T.window[T.strstart-1]),T.match_available=0),T.insert=T.strstart<O-1?T.strstart:O-1,oe===_?(Y(T,!0),T.strm.avail_out===0?K:Z):T.last_lit&&(Y(T,!1),T.strm.avail_out===0)?w:$}function ne(T,oe,J,V,H){this.good_length=T,this.max_lazy=oe,this.nice_length=J,this.max_chain=V,this.func=H}function ce(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new c.Buf16(2*M),this.dyn_dtree=new c.Buf16(2*(2*R+1)),this.bl_tree=new c.Buf16(2*(2*D+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(L+1),this.heap=new c.Buf16(2*F+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*F+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(T){var oe;return T&&T.state?(T.total_in=T.total_out=0,T.data_type=x,(oe=T.state).pending=0,oe.pending_out=0,oe.wrap<0&&(oe.wrap=-oe.wrap),oe.status=oe.wrap?k:q,T.adler=oe.wrap===2?0:1,oe.last_flush=g,u._tr_init(oe),v):ae(T,E)}function _e(T){var oe=me(T);return oe===v&&(function(J){J.window_size=2*J.w_size,P(J.head),J.max_lazy_match=l[J.level].max_lazy,J.good_match=l[J.level].good_length,J.nice_match=l[J.level].nice_length,J.max_chain_length=l[J.level].max_chain,J.strstart=0,J.block_start=0,J.lookahead=0,J.insert=0,J.match_length=J.prev_length=O-1,J.match_available=0,J.ins_h=0})(T.state),oe}function Ne(T,oe,J,V,H,ee){if(!T)return E;var ye=1;if(oe===y&&(oe=6),V<0?(ye=0,V=-V):15<V&&(ye=2,V-=16),H<1||N<H||J!==C||V<8||15<V||oe<0||9<oe||ee<0||S<ee)return ae(T,E);V===8&&(V=9);var Ae=new ce;return(T.state=Ae).strm=T,Ae.wrap=ye,Ae.gzhead=null,Ae.w_bits=V,Ae.w_size=1<<Ae.w_bits,Ae.w_mask=Ae.w_size-1,Ae.hash_bits=H+7,Ae.hash_size=1<<Ae.hash_bits,Ae.hash_mask=Ae.hash_size-1,Ae.hash_shift=~~((Ae.hash_bits+O-1)/O),Ae.window=new c.Buf8(2*Ae.w_size),Ae.head=new c.Buf16(Ae.hash_size),Ae.prev=new c.Buf16(Ae.w_size),Ae.lit_bufsize=1<<H+6,Ae.pending_buf_size=4*Ae.lit_bufsize,Ae.pending_buf=new c.Buf8(Ae.pending_buf_size),Ae.d_buf=1*Ae.lit_bufsize,Ae.l_buf=3*Ae.lit_bufsize,Ae.level=oe,Ae.strategy=ee,Ae.method=J,_e(T)}l=[new ne(0,0,0,0,function(T,oe){var J=65535;for(J>T.pending_buf_size-5&&(J=T.pending_buf_size-5);;){if(T.lookahead<=1){if(Se(T),T.lookahead===0&&oe===g)return w;if(T.lookahead===0)break}T.strstart+=T.lookahead,T.lookahead=0;var V=T.block_start+J;if((T.strstart===0||T.strstart>=V)&&(T.lookahead=T.strstart-V,T.strstart=V,Y(T,!1),T.strm.avail_out===0)||T.strstart-T.block_start>=T.w_size-B&&(Y(T,!1),T.strm.avail_out===0))return w}return T.insert=0,oe===_?(Y(T,!0),T.strm.avail_out===0?K:Z):(T.strstart>T.block_start&&(Y(T,!1),T.strm.avail_out),w)}),new ne(4,4,8,4,je),new ne(4,5,16,8,je),new ne(4,6,32,32,je),new ne(4,4,16,16,re),new ne(8,16,32,32,re),new ne(8,16,128,128,re),new ne(8,32,128,256,re),new ne(32,128,258,1024,re),new ne(32,258,258,4096,re)],s.deflateInit=function(T,oe){return Ne(T,oe,C,15,8,0)},s.deflateInit2=Ne,s.deflateReset=_e,s.deflateResetKeep=me,s.deflateSetHeader=function(T,oe){return T&&T.state?T.state.wrap!==2?E:(T.state.gzhead=oe,v):E},s.deflate=function(T,oe){var J,V,H,ee;if(!T||!T.state||5<oe||oe<0)return T?ae(T,E):E;if(V=T.state,!T.output||!T.input&&T.avail_in!==0||V.status===666&&oe!==_)return ae(T,T.avail_out===0?-5:E);if(V.strm=T,J=V.last_flush,V.last_flush=oe,V.status===k)if(V.wrap===2)T.adler=0,U(V,31),U(V,139),U(V,8),V.gzhead?(U(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),U(V,255&V.gzhead.time),U(V,V.gzhead.time>>8&255),U(V,V.gzhead.time>>16&255),U(V,V.gzhead.time>>24&255),U(V,V.level===9?2:2<=V.strategy||V.level<2?4:0),U(V,255&V.gzhead.os),V.gzhead.extra&&V.gzhead.extra.length&&(U(V,255&V.gzhead.extra.length),U(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(T.adler=h(T.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(U(V,0),U(V,0),U(V,0),U(V,0),U(V,0),U(V,V.level===9?2:2<=V.strategy||V.level<2?4:0),U(V,3),V.status=q);else{var ye=C+(V.w_bits-8<<4)<<8;ye|=(2<=V.strategy||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6,V.strstart!==0&&(ye|=32),ye+=31-ye%31,V.status=q,ue(V,ye),V.strstart!==0&&(ue(V,T.adler>>>16),ue(V,65535&T.adler)),T.adler=1}if(V.status===69)if(V.gzhead.extra){for(H=V.pending;V.gzindex<(65535&V.gzhead.extra.length)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),z(T),H=V.pending,V.pending!==V.pending_buf_size));)U(V,255&V.gzhead.extra[V.gzindex]),V.gzindex++;V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),V.gzindex===V.gzhead.extra.length&&(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){H=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),z(T),H=V.pending,V.pending===V.pending_buf_size)){ee=1;break}ee=V.gzindex<V.gzhead.name.length?255&V.gzhead.name.charCodeAt(V.gzindex++):0,U(V,ee)}while(ee!==0);V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),ee===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===91)if(V.gzhead.comment){H=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),z(T),H=V.pending,V.pending===V.pending_buf_size)){ee=1;break}ee=V.gzindex<V.gzhead.comment.length?255&V.gzhead.comment.charCodeAt(V.gzindex++):0,U(V,ee)}while(ee!==0);V.gzhead.hcrc&&V.pending>H&&(T.adler=h(T.adler,V.pending_buf,V.pending-H,H)),ee===0&&(V.status=103)}else V.status=103;if(V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&z(T),V.pending+2<=V.pending_buf_size&&(U(V,255&T.adler),U(V,T.adler>>8&255),T.adler=0,V.status=q)):V.status=q),V.pending!==0){if(z(T),T.avail_out===0)return V.last_flush=-1,v}else if(T.avail_in===0&&ie(oe)<=ie(J)&&oe!==_)return ae(T,-5);if(V.status===666&&T.avail_in!==0)return ae(T,-5);if(T.avail_in!==0||V.lookahead!==0||oe!==g&&V.status!==666){var Ae=V.strategy===2?(function(fe,Ce){for(var Re;;){if(fe.lookahead===0&&(Se(fe),fe.lookahead===0)){if(Ce===g)return w;break}if(fe.match_length=0,Re=u._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++,Re&&(Y(fe,!1),fe.strm.avail_out===0))return w}return fe.insert=0,Ce===_?(Y(fe,!0),fe.strm.avail_out===0?K:Z):fe.last_lit&&(Y(fe,!1),fe.strm.avail_out===0)?w:$})(V,oe):V.strategy===3?(function(fe,Ce){for(var Re,Oe,se,Te,Le=fe.window;;){if(fe.lookahead<=I){if(Se(fe),fe.lookahead<=I&&Ce===g)return w;if(fe.lookahead===0)break}if(fe.match_length=0,fe.lookahead>=O&&0<fe.strstart&&(Oe=Le[se=fe.strstart-1])===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]){Te=fe.strstart+I;do;while(Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&Oe===Le[++se]&&se<Te);fe.match_length=I-(Te-se),fe.match_length>fe.lookahead&&(fe.match_length=fe.lookahead)}if(fe.match_length>=O?(Re=u._tr_tally(fe,1,fe.match_length-O),fe.lookahead-=fe.match_length,fe.strstart+=fe.match_length,fe.match_length=0):(Re=u._tr_tally(fe,0,fe.window[fe.strstart]),fe.lookahead--,fe.strstart++),Re&&(Y(fe,!1),fe.strm.avail_out===0))return w}return fe.insert=0,Ce===_?(Y(fe,!0),fe.strm.avail_out===0?K:Z):fe.last_lit&&(Y(fe,!1),fe.strm.avail_out===0)?w:$})(V,oe):l[V.level].func(V,oe);if(Ae!==K&&Ae!==Z||(V.status=666),Ae===w||Ae===K)return T.avail_out===0&&(V.last_flush=-1),v;if(Ae===$&&(oe===1?u._tr_align(V):oe!==5&&(u._tr_stored_block(V,0,0,!1),oe===3&&(P(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),z(T),T.avail_out===0))return V.last_flush=-1,v}return oe!==_?v:V.wrap<=0?1:(V.wrap===2?(U(V,255&T.adler),U(V,T.adler>>8&255),U(V,T.adler>>16&255),U(V,T.adler>>24&255),U(V,255&T.total_in),U(V,T.total_in>>8&255),U(V,T.total_in>>16&255),U(V,T.total_in>>24&255)):(ue(V,T.adler>>>16),ue(V,65535&T.adler)),z(T),0<V.wrap&&(V.wrap=-V.wrap),V.pending!==0?v:1)},s.deflateEnd=function(T){var oe;return T&&T.state?(oe=T.state.status)!==k&&oe!==69&&oe!==73&&oe!==91&&oe!==103&&oe!==q&&oe!==666?ae(T,E):(T.state=null,oe===q?ae(T,-3):v):E},s.deflateSetDictionary=function(T,oe){var J,V,H,ee,ye,Ae,fe,Ce,Re=oe.length;if(!T||!T.state||(ee=(J=T.state).wrap)===2||ee===1&&J.status!==k||J.lookahead)return E;for(ee===1&&(T.adler=f(T.adler,oe,Re,0)),J.wrap=0,Re>=J.w_size&&(ee===0&&(P(J.head),J.strstart=0,J.block_start=0,J.insert=0),Ce=new c.Buf8(J.w_size),c.arraySet(Ce,oe,Re-J.w_size,J.w_size,0),oe=Ce,Re=J.w_size),ye=T.avail_in,Ae=T.next_in,fe=T.input,T.avail_in=Re,T.next_in=0,T.input=oe,Se(J);J.lookahead>=O;){for(V=J.strstart,H=J.lookahead-(O-1);J.ins_h=(J.ins_h<<J.hash_shift^J.window[V+O-1])&J.hash_mask,J.prev[V&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=V,V++,--H;);J.strstart=V,J.lookahead=O-1,Se(J)}return J.strstart+=J.lookahead,J.block_start=J.strstart,J.insert=J.lookahead,J.lookahead=0,J.match_length=J.prev_length=O-1,J.match_available=0,T.next_in=Ae,T.input=fe,T.avail_in=ye,J.wrap=ee,v},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,i,s){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,i,s){i.exports=function(l,c){var u,f,h,p,g,_,v,E,y,S,x,C,N,F,R,D,M,L,O,I,B,k,q,w,$;u=l.state,f=l.next_in,w=l.input,h=f+(l.avail_in-5),p=l.next_out,$=l.output,g=p-(c-l.avail_out),_=p+(l.avail_out-257),v=u.dmax,E=u.wsize,y=u.whave,S=u.wnext,x=u.window,C=u.hold,N=u.bits,F=u.lencode,R=u.distcode,D=(1<<u.lenbits)-1,M=(1<<u.distbits)-1;e:do{N<15&&(C+=w[f++]<<N,N+=8,C+=w[f++]<<N,N+=8),L=F[C&D];t:for(;;){if(C>>>=O=L>>>24,N-=O,(O=L>>>16&255)===0)$[p++]=65535&L;else{if(!(16&O)){if((64&O)==0){L=F[(65535&L)+(C&(1<<O)-1)];continue t}if(32&O){u.mode=12;break e}l.msg="invalid literal/length code",u.mode=30;break e}I=65535&L,(O&=15)&&(N<O&&(C+=w[f++]<<N,N+=8),I+=C&(1<<O)-1,C>>>=O,N-=O),N<15&&(C+=w[f++]<<N,N+=8,C+=w[f++]<<N,N+=8),L=R[C&M];n:for(;;){if(C>>>=O=L>>>24,N-=O,!(16&(O=L>>>16&255))){if((64&O)==0){L=R[(65535&L)+(C&(1<<O)-1)];continue n}l.msg="invalid distance code",u.mode=30;break e}if(B=65535&L,N<(O&=15)&&(C+=w[f++]<<N,(N+=8)<O&&(C+=w[f++]<<N,N+=8)),v<(B+=C&(1<<O)-1)){l.msg="invalid distance too far back",u.mode=30;break e}if(C>>>=O,N-=O,(O=p-g)<B){if(y<(O=B-O)&&u.sane){l.msg="invalid distance too far back",u.mode=30;break e}if(q=x,(k=0)===S){if(k+=E-O,O<I){for(I-=O;$[p++]=x[k++],--O;);k=p-B,q=$}}else if(S<O){if(k+=E+S-O,(O-=S)<I){for(I-=O;$[p++]=x[k++],--O;);if(k=0,S<I){for(I-=O=S;$[p++]=x[k++],--O;);k=p-B,q=$}}}else if(k+=S-O,O<I){for(I-=O;$[p++]=x[k++],--O;);k=p-B,q=$}for(;2<I;)$[p++]=q[k++],$[p++]=q[k++],$[p++]=q[k++],I-=3;I&&($[p++]=q[k++],1<I&&($[p++]=q[k++]))}else{for(k=p-B;$[p++]=$[k++],$[p++]=$[k++],$[p++]=$[k++],2<(I-=3););I&&($[p++]=$[k++],1<I&&($[p++]=$[k++]))}break}}break}}while(f<h&&p<_);f-=I=N>>3,C&=(1<<(N-=I<<3))-1,l.next_in=f,l.next_out=p,l.avail_in=f<h?h-f+5:5-(f-h),l.avail_out=p<_?_-p+257:257-(p-_),u.hold=C,u.bits=N}},{}],49:[function(n,i,s){var l=n("../utils/common"),c=n("./adler32"),u=n("./crc32"),f=n("./inffast"),h=n("./inftrees"),p=1,g=2,_=0,v=-2,E=1,y=852,S=592;function x(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function N(k){var q;return k&&k.state?(q=k.state,k.total_in=k.total_out=q.total=0,k.msg="",q.wrap&&(k.adler=1&q.wrap),q.mode=E,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new l.Buf32(y),q.distcode=q.distdyn=new l.Buf32(S),q.sane=1,q.back=-1,_):v}function F(k){var q;return k&&k.state?((q=k.state).wsize=0,q.whave=0,q.wnext=0,N(k)):v}function R(k,q){var w,$;return k&&k.state?($=k.state,q<0?(w=0,q=-q):(w=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15<q)?v:($.window!==null&&$.wbits!==q&&($.window=null),$.wrap=w,$.wbits=q,F(k))):v}function D(k,q){var w,$;return k?($=new C,(k.state=$).window=null,(w=R(k,q))!==_&&(k.state=null),w):v}var M,L,O=!0;function I(k){if(O){var q;for(M=new l.Buf32(512),L=new l.Buf32(32),q=0;q<144;)k.lens[q++]=8;for(;q<256;)k.lens[q++]=9;for(;q<280;)k.lens[q++]=7;for(;q<288;)k.lens[q++]=8;for(h(p,k.lens,0,288,M,0,k.work,{bits:9}),q=0;q<32;)k.lens[q++]=5;h(g,k.lens,0,32,L,0,k.work,{bits:5}),O=!1}k.lencode=M,k.lenbits=9,k.distcode=L,k.distbits=5}function B(k,q,w,$){var K,Z=k.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new l.Buf8(Z.wsize)),$>=Z.wsize?(l.arraySet(Z.window,q,w-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):($<(K=Z.wsize-Z.wnext)&&(K=$),l.arraySet(Z.window,q,w-$,K,Z.wnext),($-=K)?(l.arraySet(Z.window,q,w-$,$,0),Z.wnext=$,Z.whave=Z.wsize):(Z.wnext+=K,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=K))),0}s.inflateReset=F,s.inflateReset2=R,s.inflateResetKeep=N,s.inflateInit=function(k){return D(k,15)},s.inflateInit2=D,s.inflate=function(k,q){var w,$,K,Z,ae,ie,P,z,Y,U,ue,de,Se,je,re,ne,ce,me,_e,Ne,T,oe,J,V,H=0,ee=new l.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return v;(w=k.state).mode===12&&(w.mode=13),ae=k.next_out,K=k.output,P=k.avail_out,Z=k.next_in,$=k.input,ie=k.avail_in,z=w.hold,Y=w.bits,U=ie,ue=P,oe=_;e:for(;;)switch(w.mode){case E:if(w.wrap===0){w.mode=13;break}for(;Y<16;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(2&w.wrap&&z===35615){ee[w.check=0]=255&z,ee[1]=z>>>8&255,w.check=u(w.check,ee,2,0),Y=z=0,w.mode=2;break}if(w.flags=0,w.head&&(w.head.done=!1),!(1&w.wrap)||(((255&z)<<8)+(z>>8))%31){k.msg="incorrect header check",w.mode=30;break}if((15&z)!=8){k.msg="unknown compression method",w.mode=30;break}if(Y-=4,T=8+(15&(z>>>=4)),w.wbits===0)w.wbits=T;else if(T>w.wbits){k.msg="invalid window size",w.mode=30;break}w.dmax=1<<T,k.adler=w.check=1,w.mode=512&z?10:12,Y=z=0;break;case 2:for(;Y<16;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(w.flags=z,(255&w.flags)!=8){k.msg="unknown compression method",w.mode=30;break}if(57344&w.flags){k.msg="unknown header flags set",w.mode=30;break}w.head&&(w.head.text=z>>8&1),512&w.flags&&(ee[0]=255&z,ee[1]=z>>>8&255,w.check=u(w.check,ee,2,0)),Y=z=0,w.mode=3;case 3:for(;Y<32;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.head&&(w.head.time=z),512&w.flags&&(ee[0]=255&z,ee[1]=z>>>8&255,ee[2]=z>>>16&255,ee[3]=z>>>24&255,w.check=u(w.check,ee,4,0)),Y=z=0,w.mode=4;case 4:for(;Y<16;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.head&&(w.head.xflags=255&z,w.head.os=z>>8),512&w.flags&&(ee[0]=255&z,ee[1]=z>>>8&255,w.check=u(w.check,ee,2,0)),Y=z=0,w.mode=5;case 5:if(1024&w.flags){for(;Y<16;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.length=z,w.head&&(w.head.extra_len=z),512&w.flags&&(ee[0]=255&z,ee[1]=z>>>8&255,w.check=u(w.check,ee,2,0)),Y=z=0}else w.head&&(w.head.extra=null);w.mode=6;case 6:if(1024&w.flags&&(ie<(de=w.length)&&(de=ie),de&&(w.head&&(T=w.head.extra_len-w.length,w.head.extra||(w.head.extra=new Array(w.head.extra_len)),l.arraySet(w.head.extra,$,Z,de,T)),512&w.flags&&(w.check=u(w.check,$,de,Z)),ie-=de,Z+=de,w.length-=de),w.length))break e;w.length=0,w.mode=7;case 7:if(2048&w.flags){if(ie===0)break e;for(de=0;T=$[Z+de++],w.head&&T&&w.length<65536&&(w.head.name+=String.fromCharCode(T)),T&&de<ie;);if(512&w.flags&&(w.check=u(w.check,$,de,Z)),ie-=de,Z+=de,T)break e}else w.head&&(w.head.name=null);w.length=0,w.mode=8;case 8:if(4096&w.flags){if(ie===0)break e;for(de=0;T=$[Z+de++],w.head&&T&&w.length<65536&&(w.head.comment+=String.fromCharCode(T)),T&&de<ie;);if(512&w.flags&&(w.check=u(w.check,$,de,Z)),ie-=de,Z+=de,T)break e}else w.head&&(w.head.comment=null);w.mode=9;case 9:if(512&w.flags){for(;Y<16;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(z!==(65535&w.check)){k.msg="header crc mismatch",w.mode=30;break}Y=z=0}w.head&&(w.head.hcrc=w.flags>>9&1,w.head.done=!0),k.adler=w.check=0,w.mode=12;break;case 10:for(;Y<32;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}k.adler=w.check=x(z),Y=z=0,w.mode=11;case 11:if(w.havedict===0)return k.next_out=ae,k.avail_out=P,k.next_in=Z,k.avail_in=ie,w.hold=z,w.bits=Y,2;k.adler=w.check=1,w.mode=12;case 12:if(q===5||q===6)break e;case 13:if(w.last){z>>>=7&Y,Y-=7&Y,w.mode=27;break}for(;Y<3;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}switch(w.last=1&z,Y-=1,3&(z>>>=1)){case 0:w.mode=14;break;case 1:if(I(w),w.mode=20,q!==6)break;z>>>=2,Y-=2;break e;case 2:w.mode=17;break;case 3:k.msg="invalid block type",w.mode=30}z>>>=2,Y-=2;break;case 14:for(z>>>=7&Y,Y-=7&Y;Y<32;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if((65535&z)!=(z>>>16^65535)){k.msg="invalid stored block lengths",w.mode=30;break}if(w.length=65535&z,Y=z=0,w.mode=15,q===6)break e;case 15:w.mode=16;case 16:if(de=w.length){if(ie<de&&(de=ie),P<de&&(de=P),de===0)break e;l.arraySet(K,$,Z,de,ae),ie-=de,Z+=de,P-=de,ae+=de,w.length-=de;break}w.mode=12;break;case 17:for(;Y<14;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(w.nlen=257+(31&z),z>>>=5,Y-=5,w.ndist=1+(31&z),z>>>=5,Y-=5,w.ncode=4+(15&z),z>>>=4,Y-=4,286<w.nlen||30<w.ndist){k.msg="too many length or distance symbols",w.mode=30;break}w.have=0,w.mode=18;case 18:for(;w.have<w.ncode;){for(;Y<3;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.lens[ye[w.have++]]=7&z,z>>>=3,Y-=3}for(;w.have<19;)w.lens[ye[w.have++]]=0;if(w.lencode=w.lendyn,w.lenbits=7,J={bits:w.lenbits},oe=h(0,w.lens,0,19,w.lencode,0,w.work,J),w.lenbits=J.bits,oe){k.msg="invalid code lengths set",w.mode=30;break}w.have=0,w.mode=19;case 19:for(;w.have<w.nlen+w.ndist;){for(;ne=(H=w.lencode[z&(1<<w.lenbits)-1])>>>16&255,ce=65535&H,!((re=H>>>24)<=Y);){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(ce<16)z>>>=re,Y-=re,w.lens[w.have++]=ce;else{if(ce===16){for(V=re+2;Y<V;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(z>>>=re,Y-=re,w.have===0){k.msg="invalid bit length repeat",w.mode=30;break}T=w.lens[w.have-1],de=3+(3&z),z>>>=2,Y-=2}else if(ce===17){for(V=re+3;Y<V;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}Y-=re,T=0,de=3+(7&(z>>>=re)),z>>>=3,Y-=3}else{for(V=re+7;Y<V;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}Y-=re,T=0,de=11+(127&(z>>>=re)),z>>>=7,Y-=7}if(w.have+de>w.nlen+w.ndist){k.msg="invalid bit length repeat",w.mode=30;break}for(;de--;)w.lens[w.have++]=T}}if(w.mode===30)break;if(w.lens[256]===0){k.msg="invalid code -- missing end-of-block",w.mode=30;break}if(w.lenbits=9,J={bits:w.lenbits},oe=h(p,w.lens,0,w.nlen,w.lencode,0,w.work,J),w.lenbits=J.bits,oe){k.msg="invalid literal/lengths set",w.mode=30;break}if(w.distbits=6,w.distcode=w.distdyn,J={bits:w.distbits},oe=h(g,w.lens,w.nlen,w.ndist,w.distcode,0,w.work,J),w.distbits=J.bits,oe){k.msg="invalid distances set",w.mode=30;break}if(w.mode=20,q===6)break e;case 20:w.mode=21;case 21:if(6<=ie&&258<=P){k.next_out=ae,k.avail_out=P,k.next_in=Z,k.avail_in=ie,w.hold=z,w.bits=Y,f(k,ue),ae=k.next_out,K=k.output,P=k.avail_out,Z=k.next_in,$=k.input,ie=k.avail_in,z=w.hold,Y=w.bits,w.mode===12&&(w.back=-1);break}for(w.back=0;ne=(H=w.lencode[z&(1<<w.lenbits)-1])>>>16&255,ce=65535&H,!((re=H>>>24)<=Y);){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(ne&&(240&ne)==0){for(me=re,_e=ne,Ne=ce;ne=(H=w.lencode[Ne+((z&(1<<me+_e)-1)>>me)])>>>16&255,ce=65535&H,!(me+(re=H>>>24)<=Y);){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}z>>>=me,Y-=me,w.back+=me}if(z>>>=re,Y-=re,w.back+=re,w.length=ce,ne===0){w.mode=26;break}if(32&ne){w.back=-1,w.mode=12;break}if(64&ne){k.msg="invalid literal/length code",w.mode=30;break}w.extra=15&ne,w.mode=22;case 22:if(w.extra){for(V=w.extra;Y<V;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.length+=z&(1<<w.extra)-1,z>>>=w.extra,Y-=w.extra,w.back+=w.extra}w.was=w.length,w.mode=23;case 23:for(;ne=(H=w.distcode[z&(1<<w.distbits)-1])>>>16&255,ce=65535&H,!((re=H>>>24)<=Y);){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if((240&ne)==0){for(me=re,_e=ne,Ne=ce;ne=(H=w.distcode[Ne+((z&(1<<me+_e)-1)>>me)])>>>16&255,ce=65535&H,!(me+(re=H>>>24)<=Y);){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}z>>>=me,Y-=me,w.back+=me}if(z>>>=re,Y-=re,w.back+=re,64&ne){k.msg="invalid distance code",w.mode=30;break}w.offset=ce,w.extra=15&ne,w.mode=24;case 24:if(w.extra){for(V=w.extra;Y<V;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}w.offset+=z&(1<<w.extra)-1,z>>>=w.extra,Y-=w.extra,w.back+=w.extra}if(w.offset>w.dmax){k.msg="invalid distance too far back",w.mode=30;break}w.mode=25;case 25:if(P===0)break e;if(de=ue-P,w.offset>de){if((de=w.offset-de)>w.whave&&w.sane){k.msg="invalid distance too far back",w.mode=30;break}Se=de>w.wnext?(de-=w.wnext,w.wsize-de):w.wnext-de,de>w.length&&(de=w.length),je=w.window}else je=K,Se=ae-w.offset,de=w.length;for(P<de&&(de=P),P-=de,w.length-=de;K[ae++]=je[Se++],--de;);w.length===0&&(w.mode=21);break;case 26:if(P===0)break e;K[ae++]=w.length,P--,w.mode=21;break;case 27:if(w.wrap){for(;Y<32;){if(ie===0)break e;ie--,z|=$[Z++]<<Y,Y+=8}if(ue-=P,k.total_out+=ue,w.total+=ue,ue&&(k.adler=w.check=w.flags?u(w.check,K,ue,ae-ue):c(w.check,K,ue,ae-ue)),ue=P,(w.flags?z:x(z))!==w.check){k.msg="incorrect data check",w.mode=30;break}Y=z=0}w.mode=28;case 28:if(w.wrap&&w.flags){for(;Y<32;){if(ie===0)break e;ie--,z+=$[Z++]<<Y,Y+=8}if(z!==(4294967295&w.total)){k.msg="incorrect length check",w.mode=30;break}Y=z=0}w.mode=29;case 29:oe=1;break e;case 30:oe=-3;break e;case 31:return-4;case 32:default:return v}return k.next_out=ae,k.avail_out=P,k.next_in=Z,k.avail_in=ie,w.hold=z,w.bits=Y,(w.wsize||ue!==k.avail_out&&w.mode<30&&(w.mode<27||q!==4))&&B(k,k.output,k.next_out,ue-k.avail_out)?(w.mode=31,-4):(U-=k.avail_in,ue-=k.avail_out,k.total_in+=U,k.total_out+=ue,w.total+=ue,w.wrap&&ue&&(k.adler=w.check=w.flags?u(w.check,K,ue,k.next_out-ue):c(w.check,K,ue,k.next_out-ue)),k.data_type=w.bits+(w.last?64:0)+(w.mode===12?128:0)+(w.mode===20||w.mode===15?256:0),(U==0&&ue===0||q===4)&&oe===_&&(oe=-5),oe)},s.inflateEnd=function(k){if(!k||!k.state)return v;var q=k.state;return q.window&&(q.window=null),k.state=null,_},s.inflateGetHeader=function(k,q){var w;return k&&k.state?(2&(w=k.state).wrap)==0?v:((w.head=q).done=!1,_):v},s.inflateSetDictionary=function(k,q){var w,$=q.length;return k&&k.state?(w=k.state).wrap!==0&&w.mode!==11?v:w.mode===11&&c(1,q,$,0)!==w.check?-3:B(k,q,$,$)?(w.mode=31,-4):(w.havedict=1,_):v},s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,i,s){var l=n("../utils/common"),c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(p,g,_,v,E,y,S,x){var C,N,F,R,D,M,L,O,I,B=x.bits,k=0,q=0,w=0,$=0,K=0,Z=0,ae=0,ie=0,P=0,z=0,Y=null,U=0,ue=new l.Buf16(16),de=new l.Buf16(16),Se=null,je=0;for(k=0;k<=15;k++)ue[k]=0;for(q=0;q<v;q++)ue[g[_+q]]++;for(K=B,$=15;1<=$&&ue[$]===0;$--);if($<K&&(K=$),$===0)return E[y++]=20971520,E[y++]=20971520,x.bits=1,0;for(w=1;w<$&&ue[w]===0;w++);for(K<w&&(K=w),k=ie=1;k<=15;k++)if(ie<<=1,(ie-=ue[k])<0)return-1;if(0<ie&&(p===0||$!==1))return-1;for(de[1]=0,k=1;k<15;k++)de[k+1]=de[k]+ue[k];for(q=0;q<v;q++)g[_+q]!==0&&(S[de[g[_+q]]++]=q);if(M=p===0?(Y=Se=S,19):p===1?(Y=c,U-=257,Se=u,je-=257,256):(Y=f,Se=h,-1),k=w,D=y,ae=q=z=0,F=-1,R=(P=1<<(Z=K))-1,p===1&&852<P||p===2&&592<P)return 1;for(;;){for(L=k-ae,I=S[q]<M?(O=0,S[q]):S[q]>M?(O=Se[je+S[q]],Y[U+S[q]]):(O=96,0),C=1<<k-ae,w=N=1<<Z;E[D+(z>>ae)+(N-=C)]=L<<24|O<<16|I|0,N!==0;);for(C=1<<k-1;z&C;)C>>=1;if(C!==0?(z&=C-1,z+=C):z=0,q++,--ue[k]==0){if(k===$)break;k=g[_+S[q]]}if(K<k&&(z&R)!==F){for(ae===0&&(ae=K),D+=w,ie=1<<(Z=k-ae);Z+ae<$&&!((ie-=ue[Z+ae])<=0);)Z++,ie<<=1;if(P+=1<<Z,p===1&&852<P||p===2&&592<P)return 1;E[F=z&R]=K<<24|Z<<16|D-y|0}}return z!==0&&(E[D+z]=k-ae<<24|64<<16|0),x.bits=K,0}},{"../utils/common":41}],51:[function(n,i,s){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,i,s){var l=n("../utils/common"),c=0,u=1;function f(H){for(var ee=H.length;0<=--ee;)H[ee]=0}var h=0,p=29,g=256,_=g+1+p,v=30,E=19,y=2*_+1,S=15,x=16,C=7,N=256,F=16,R=17,D=18,M=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(_+2));f(B);var k=new Array(2*v);f(k);var q=new Array(512);f(q);var w=new Array(256);f(w);var $=new Array(p);f($);var K,Z,ae,ie=new Array(v);function P(H,ee,ye,Ae,fe){this.static_tree=H,this.extra_bits=ee,this.extra_base=ye,this.elems=Ae,this.max_length=fe,this.has_stree=H&&H.length}function z(H,ee){this.dyn_tree=H,this.max_code=0,this.stat_desc=ee}function Y(H){return H<256?q[H]:q[256+(H>>>7)]}function U(H,ee){H.pending_buf[H.pending++]=255&ee,H.pending_buf[H.pending++]=ee>>>8&255}function ue(H,ee,ye){H.bi_valid>x-ye?(H.bi_buf|=ee<<H.bi_valid&65535,U(H,H.bi_buf),H.bi_buf=ee>>x-H.bi_valid,H.bi_valid+=ye-x):(H.bi_buf|=ee<<H.bi_valid&65535,H.bi_valid+=ye)}function de(H,ee,ye){ue(H,ye[2*ee],ye[2*ee+1])}function Se(H,ee){for(var ye=0;ye|=1&H,H>>>=1,ye<<=1,0<--ee;);return ye>>>1}function je(H,ee,ye){var Ae,fe,Ce=new Array(S+1),Re=0;for(Ae=1;Ae<=S;Ae++)Ce[Ae]=Re=Re+ye[Ae-1]<<1;for(fe=0;fe<=ee;fe++){var Oe=H[2*fe+1];Oe!==0&&(H[2*fe]=Se(Ce[Oe]++,Oe))}}function re(H){var ee;for(ee=0;ee<_;ee++)H.dyn_ltree[2*ee]=0;for(ee=0;ee<v;ee++)H.dyn_dtree[2*ee]=0;for(ee=0;ee<E;ee++)H.bl_tree[2*ee]=0;H.dyn_ltree[2*N]=1,H.opt_len=H.static_len=0,H.last_lit=H.matches=0}function ne(H){8<H.bi_valid?U(H,H.bi_buf):0<H.bi_valid&&(H.pending_buf[H.pending++]=H.bi_buf),H.bi_buf=0,H.bi_valid=0}function ce(H,ee,ye,Ae){var fe=2*ee,Ce=2*ye;return H[fe]<H[Ce]||H[fe]===H[Ce]&&Ae[ee]<=Ae[ye]}function me(H,ee,ye){for(var Ae=H.heap[ye],fe=ye<<1;fe<=H.heap_len&&(fe<H.heap_len&&ce(ee,H.heap[fe+1],H.heap[fe],H.depth)&&fe++,!ce(ee,Ae,H.heap[fe],H.depth));)H.heap[ye]=H.heap[fe],ye=fe,fe<<=1;H.heap[ye]=Ae}function _e(H,ee,ye){var Ae,fe,Ce,Re,Oe=0;if(H.last_lit!==0)for(;Ae=H.pending_buf[H.d_buf+2*Oe]<<8|H.pending_buf[H.d_buf+2*Oe+1],fe=H.pending_buf[H.l_buf+Oe],Oe++,Ae===0?de(H,fe,ee):(de(H,(Ce=w[fe])+g+1,ee),(Re=M[Ce])!==0&&ue(H,fe-=$[Ce],Re),de(H,Ce=Y(--Ae),ye),(Re=L[Ce])!==0&&ue(H,Ae-=ie[Ce],Re)),Oe<H.last_lit;);de(H,N,ee)}function Ne(H,ee){var ye,Ae,fe,Ce=ee.dyn_tree,Re=ee.stat_desc.static_tree,Oe=ee.stat_desc.has_stree,se=ee.stat_desc.elems,Te=-1;for(H.heap_len=0,H.heap_max=y,ye=0;ye<se;ye++)Ce[2*ye]!==0?(H.heap[++H.heap_len]=Te=ye,H.depth[ye]=0):Ce[2*ye+1]=0;for(;H.heap_len<2;)Ce[2*(fe=H.heap[++H.heap_len]=Te<2?++Te:0)]=1,H.depth[fe]=0,H.opt_len--,Oe&&(H.static_len-=Re[2*fe+1]);for(ee.max_code=Te,ye=H.heap_len>>1;1<=ye;ye--)me(H,Ce,ye);for(fe=se;ye=H.heap[1],H.heap[1]=H.heap[H.heap_len--],me(H,Ce,1),Ae=H.heap[1],H.heap[--H.heap_max]=ye,H.heap[--H.heap_max]=Ae,Ce[2*fe]=Ce[2*ye]+Ce[2*Ae],H.depth[fe]=(H.depth[ye]>=H.depth[Ae]?H.depth[ye]:H.depth[Ae])+1,Ce[2*ye+1]=Ce[2*Ae+1]=fe,H.heap[1]=fe++,me(H,Ce,1),2<=H.heap_len;);H.heap[--H.heap_max]=H.heap[1],(function(Le,Je){var pt,Yt,On,dt,Pt,gn,ft=Je.dyn_tree,hr=Je.max_code,Rn=Je.stat_desc.static_tree,ms=Je.stat_desc.has_stree,hi=Je.stat_desc.extra_bits,pi=Je.stat_desc.extra_base,pr=Je.stat_desc.max_length,wn=0;for(dt=0;dt<=S;dt++)Le.bl_count[dt]=0;for(ft[2*Le.heap[Le.heap_max]+1]=0,pt=Le.heap_max+1;pt<y;pt++)pr<(dt=ft[2*ft[2*(Yt=Le.heap[pt])+1]+1]+1)&&(dt=pr,wn++),ft[2*Yt+1]=dt,hr<Yt||(Le.bl_count[dt]++,Pt=0,pi<=Yt&&(Pt=hi[Yt-pi]),gn=ft[2*Yt],Le.opt_len+=gn*(dt+Pt),ms&&(Le.static_len+=gn*(Rn[2*Yt+1]+Pt)));if(wn!==0){do{for(dt=pr-1;Le.bl_count[dt]===0;)dt--;Le.bl_count[dt]--,Le.bl_count[dt+1]+=2,Le.bl_count[pr]--,wn-=2}while(0<wn);for(dt=pr;dt!==0;dt--)for(Yt=Le.bl_count[dt];Yt!==0;)hr<(On=Le.heap[--pt])||(ft[2*On+1]!==dt&&(Le.opt_len+=(dt-ft[2*On+1])*ft[2*On],ft[2*On+1]=dt),Yt--)}})(H,ee),je(Ce,Te,H.bl_count)}function T(H,ee,ye){var Ae,fe,Ce=-1,Re=ee[1],Oe=0,se=7,Te=4;for(Re===0&&(se=138,Te=3),ee[2*(ye+1)+1]=65535,Ae=0;Ae<=ye;Ae++)fe=Re,Re=ee[2*(Ae+1)+1],++Oe<se&&fe===Re||(Oe<Te?H.bl_tree[2*fe]+=Oe:fe!==0?(fe!==Ce&&H.bl_tree[2*fe]++,H.bl_tree[2*F]++):Oe<=10?H.bl_tree[2*R]++:H.bl_tree[2*D]++,Ce=fe,Te=(Oe=0)===Re?(se=138,3):fe===Re?(se=6,3):(se=7,4))}function oe(H,ee,ye){var Ae,fe,Ce=-1,Re=ee[1],Oe=0,se=7,Te=4;for(Re===0&&(se=138,Te=3),Ae=0;Ae<=ye;Ae++)if(fe=Re,Re=ee[2*(Ae+1)+1],!(++Oe<se&&fe===Re)){if(Oe<Te)for(;de(H,fe,H.bl_tree),--Oe!=0;);else fe!==0?(fe!==Ce&&(de(H,fe,H.bl_tree),Oe--),de(H,F,H.bl_tree),ue(H,Oe-3,2)):Oe<=10?(de(H,R,H.bl_tree),ue(H,Oe-3,3)):(de(H,D,H.bl_tree),ue(H,Oe-11,7));Ce=fe,Te=(Oe=0)===Re?(se=138,3):fe===Re?(se=6,3):(se=7,4)}}f(ie);var J=!1;function V(H,ee,ye,Ae){ue(H,(h<<1)+(Ae?1:0),3),(function(fe,Ce,Re,Oe){ne(fe),U(fe,Re),U(fe,~Re),l.arraySet(fe.pending_buf,fe.window,Ce,Re,fe.pending),fe.pending+=Re})(H,ee,ye)}s._tr_init=function(H){J||((function(){var ee,ye,Ae,fe,Ce,Re=new Array(S+1);for(fe=Ae=0;fe<p-1;fe++)for($[fe]=Ae,ee=0;ee<1<<M[fe];ee++)w[Ae++]=fe;for(w[Ae-1]=fe,fe=Ce=0;fe<16;fe++)for(ie[fe]=Ce,ee=0;ee<1<<L[fe];ee++)q[Ce++]=fe;for(Ce>>=7;fe<v;fe++)for(ie[fe]=Ce<<7,ee=0;ee<1<<L[fe]-7;ee++)q[256+Ce++]=fe;for(ye=0;ye<=S;ye++)Re[ye]=0;for(ee=0;ee<=143;)B[2*ee+1]=8,ee++,Re[8]++;for(;ee<=255;)B[2*ee+1]=9,ee++,Re[9]++;for(;ee<=279;)B[2*ee+1]=7,ee++,Re[7]++;for(;ee<=287;)B[2*ee+1]=8,ee++,Re[8]++;for(je(B,_+1,Re),ee=0;ee<v;ee++)k[2*ee+1]=5,k[2*ee]=Se(ee,5);K=new P(B,M,g+1,_,S),Z=new P(k,L,0,v,S),ae=new P(new Array(0),O,0,E,C)})(),J=!0),H.l_desc=new z(H.dyn_ltree,K),H.d_desc=new z(H.dyn_dtree,Z),H.bl_desc=new z(H.bl_tree,ae),H.bi_buf=0,H.bi_valid=0,re(H)},s._tr_stored_block=V,s._tr_flush_block=function(H,ee,ye,Ae){var fe,Ce,Re=0;0<H.level?(H.strm.data_type===2&&(H.strm.data_type=(function(Oe){var se,Te=4093624447;for(se=0;se<=31;se++,Te>>>=1)if(1&Te&&Oe.dyn_ltree[2*se]!==0)return c;if(Oe.dyn_ltree[18]!==0||Oe.dyn_ltree[20]!==0||Oe.dyn_ltree[26]!==0)return u;for(se=32;se<g;se++)if(Oe.dyn_ltree[2*se]!==0)return u;return c})(H)),Ne(H,H.l_desc),Ne(H,H.d_desc),Re=(function(Oe){var se;for(T(Oe,Oe.dyn_ltree,Oe.l_desc.max_code),T(Oe,Oe.dyn_dtree,Oe.d_desc.max_code),Ne(Oe,Oe.bl_desc),se=E-1;3<=se&&Oe.bl_tree[2*I[se]+1]===0;se--);return Oe.opt_len+=3*(se+1)+5+5+4,se})(H),fe=H.opt_len+3+7>>>
2603,(Ce=H.static_len+3+7>>>3)<=fe&&(fe=Ce)):fe=Ce=ye+5,ye+4<=fe&&ee!==-1?V(H,ee,ye,Ae):H.strategy===4||Ce===fe?(ue(H,2+(Ae?1:0),3),_e(H,B,k)):(ue(H,4+(Ae?1:0),3),(function(Oe,se,Te,Le){var Je;for(ue(Oe,se-257,5),ue(Oe,Te-1,5),ue(Oe,Le-4,4),Je=0;Je<Le;Je++)ue(Oe,Oe.bl_tree[2*I[Je]+1],3);oe(Oe,Oe.dyn_ltree,se-1),oe(Oe,Oe.dyn_dtree,Te-1)})(H,H.l_desc.max_code+1,H.d_desc.max_code+1,Re+1),_e(H,H.dyn_ltree,H.dyn_dtree)),re(H),Ae&&ne(H)},s._tr_tally=function(H,ee,ye){return H.pending_buf[H.d_buf+2*H.last_lit]=ee>>>8&255,H.pending_buf[H.d_buf+2*H.last_lit+1]=255&ee,H.pending_buf[H.l_buf+H.last_lit]=255&ye,H.last_lit++,ee===0?H.dyn_ltree[2*ye]++:(H.matches++,ee--,H.dyn_ltree[2*(w[ye]+g+1)]++,H.dyn_dtree[2*Y(ee)]++),H.last_lit===H.lit_bufsize-1},s._tr_align=function(H){ue(H,2,3),de(H,N,B),(function(ee){ee.bi_valid===16?(U(ee,ee.bi_buf),ee.bi_buf=0,ee.bi_valid=0):8<=ee.bi_valid&&(ee.pending_buf[ee.pending++]=255&ee.bi_buf,ee.bi_buf>>=8,ee.bi_valid-=8)})(H)}},{"../utils/common":41}],53:[function(n,i,s){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,i,s){(function(l){(function(c,u){if(!c.setImmediate){var f,h,p,g,_=1,v={},E=!1,y=c.document,S=Object.getPrototypeOf&&Object.getPrototypeOf(c);S=S&&S.setTimeout?S:c,f={}.toString.call(c.process)==="[object process]"?function(F){process.nextTick(function(){C(F)})}:(function(){if(c.postMessage&&!c.importScripts){var F=!0,R=c.onmessage;return c.onmessage=function(){F=!1},c.postMessage("","*"),c.onmessage=R,F}})()?(g="setImmediate$"+Math.random()+"$",c.addEventListener?c.addEventListener("message",N,!1):c.attachEvent("onmessage",N),function(F){c.postMessage(g+F,"*")}):c.MessageChannel?((p=new MessageChannel).port1.onmessage=function(F){C(F.data)},function(F){p.port2.postMessage(F)}):y&&"onreadystatechange"in y.createElement("script")?(h=y.documentElement,function(F){var R=y.createElement("script");R.onreadystatechange=function(){C(F),R.onreadystatechange=null,h.removeChild(R),R=null},h.appendChild(R)}):function(F){setTimeout(C,0,F)},S.setImmediate=function(F){typeof F!="function"&&(F=new Function(""+F));for(var R=new Array(arguments.length-1),D=0;D<R.length;D++)R[D]=arguments[D+1];var M={callback:F,args:R};return v[_]=M,f(_),_++},S.clearImmediate=x}function x(F){delete v[F]}function C(F){if(E)setTimeout(C,0,F);else{var R=v[F];if(R){E=!0;try{(function(D){var M=D.callback,L=D.args;switch(L.length){case 0:M();break;case 1:M(L[0]);break;case 2:M(L[0],L[1]);break;case 3:M(L[0],L[1],L[2]);break;default:M.apply(u,L)}})(R)}finally{x(F),E=!1}}}}function N(F){F.source===c&&typeof F.data=="string"&&F.data.indexOf(g)===0&&C(+F.data.slice(g.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(zg)),zg.exports}var o7=s7();const kA=Ro(o7),TA={fetch:(...e)=>globalThis.fetch(...e),eventSource:e=>new EventSource(e),storageGet:Gr,storageSet:(e,t)=>void ur(e,t),storageRemove:e=>void dr(e),navigate:e=>{typeof window<"u"&&(window.location.href=e)}};let Nd=TA;function AA(){return Nd}function KF(e){const t=Nd;return Nd={...TA,...e},()=>{Nd=t}}const VF="ContentView.swift",ZF=[{dir:"spotify",label:"Spotify",blurb:"Music app: real MusicKit catalog + ApplicationMusicPlayer, now-playing bar, player sheet."},{dir:"weather",label:"Weather",blurb:"Apple Weather: full-bleed sky gradient, hourly + 10-day forecast, glass metric cards."},{dir:"instagram",label:"Instagram",blurb:"Photo feed: stories, double-tap likes, explore grid, profile — AsyncImage + tab bar."},{dir:"tiktok",label:"TikTok",blurb:"Vertical video feed: drag paging, action rail, double-tap like, feed switching."},{dir:"threads",label:"Threads",blurb:"Text social: threaded replies, working composer, like/repost toggles."},{dir:"airbnb",label:"Airbnb",blurb:"Travel explore: search pill, category filters, listing detail, wishlist."},{dir:"pinterest",label:"Pinterest",blurb:"Ideas board: two-column staggered masonry of artwork pins, save pills, categories."},{dir:"duolingo",label:"Duolingo",blurb:"Gamified lesson path: vector Duo mascot, streaks, a working exercise flow."},{dir:"stocks",label:"Stocks",blurb:"Investing app: scrubbable Swift Charts portfolio, watchlist, live tickers, detail."}
260,{dir:"whatsapp",label:"WhatsApp",blurb:"Chat list + conversation: message bubbles, live composer, read ticks, filters."},{dir:"game",label:"Flappy",blurb:"SpriteKit game loop: per-frame rendering, gestures, collision."},{dir:"orchid",label:"Orchid",blurb:"Multi-file app: capture composer, toolbar menu, @AppStorage, custom Theme."},{dir:"net",label:"Net",blurb:"Networking smoke test: URLSession fetch, async/await, decoding, error states."},{dir:"playground",label:"Playground",blurb:"Scratch app — edit this one when reproducing an engine bug."}],XF=[402,874],WF=[874,402],QF=[820,1180],JF=[466,678],ej=[890,626],Wm="dactyl_embedded";function l7(){return Gr(Wm)==="on"?"on":"off"}function tj(e){e==="on"?ur(Wm,"on"):dr(Wm)}const Qm="dactyl_dynamic";function c7(){return Gr(Qm)==="on"?"on":"off"}function nj(e){e==="on"?ur(Qm,"on"):dr(Qm)}const Jm="dactyl_maxproxy";function rj(){return Gr(Jm)==="on"?"on":"off"}function ij(e){e==="on"?ur(Jm,"on"):dr(Jm)}const ev="dactyl_mockups";function aj(){return Gr(ev)==="off"?"off":"on"}function sj(e){e==="off"?ur(ev,"off"):dr(ev)}const tv="dactyl_meso";function oj(){return Gr(tv)==="on"?"on":"off"}function lj(e){e==="on"?ur(tv,"on"):dr(tv)}const nv="dactyl_webusb";function cj(){return Gr(nv)==="on"?"on":"off"}function uj(e){e==="on"?ur(nv,"on"):dr(nv)}const rv="dactyl_ipad_preview";function dj(){return Gr(rv)==="off"?"off":"on"}function fj(e){e==="off"?ur(rv,"off"):dr(rv)}const iv="dactyl_duo_preview";function hj(){return Gr(iv)==="on"?"on":"off"}function pj(e){e==="on"?ur(iv,"on"):dr(iv)}const av="dactyl_limrun";function gj(){return Gr(av)==="on"?"on":"off"}function mj(e){e==="on"?ur(av,"on"):dr(av)}const u7=new Set(["z-ai/glm-5.2"]);function vj(e){return!e||!u7.has(e)}const CA=["gpt-5.4","gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-6-astra","gpt-5.3-codex-spark"],NA="gpt-6-astra",cc="auto",Xx="https://chatgpt.com/#settings/Usage",vb=["google/gemini-3.5-flash","z-ai/glm-5.2","moonshotai/kimi-k2.7-code","openai/gpt-5.4-mini","openai/gpt-5.4","openai/gpt-5.5","openai/gpt-5.6-sol","openai/gpt-6-astra","anthropic/claude-opus-4.8","anthropic/claude-fable-5"];let wc="anthropic/claude-sonnet-4.6";const bj=e=>{wc=e},Wx={"moonshotai/kimi-k2.7-code":{input:.75,output:3.5},"google/gemini-3.5-flash":{input:1.5,output:9},"z-ai/glm-5.2":{input:.9758,output:3.0668},"openai/gpt-5.4-mini":{input:.75,output:4.5},"openai/gpt-5.4":{input:2.5,output:15},"openai/gpt-5.5":{input:5,output:30},"openai/gpt-5.6-sol":{input:5,output:30},"openai/gpt-6-astra":{input:10,output:50},"anthropic/claude-sonnet-4.6":{input:3,output:15},"anthropic/claude-opus-4.8":{input:5,output:25},"anthropic/claude-fable-5":{input:10,output:50}},OA={"google/gemini-3.5-flash":"Gemini 3.5 Flash","z-ai/glm-5.2":"GLM 5.2 (text-only)","moonshotai/kimi-k2.7-code":"Kimi K2.7 Code","openai/gpt-5.4-mini":"GPT-5.4 Mini","openai/gpt-5.4":"GPT-5.4","openai/gpt-5.5":"GPT-5.5","openai/gpt-5.6-sol":"ChatGPT 5.6 Sol","openai/gpt-6-astra":"ChatGPT 6 Astra","anthropic/claude-opus-4.8":"Claude Opus 4.8","anthropic/claude-fable-5":"Claude Fable 5"};function d7(e){const t=Wx[wc],n=Wx[e];return!t||!n||e===wc?null:Math.round((n.input+n.output)/(t.input+t.output))}function f7(e){const t=OA[e],n=d7(e);return n&&n>1?`${t} (${n}× cost)`:t}function of(e){const t=OA[e]??RA[e];return t||(e.includes("/")?e.slice(e.indexOf("/")+1):e).split(/[-_]/).map(i=>/^[a-z]/.test(i)?i[0].toUpperCase()+i.slice(1):i).join(" ")}function _j(e){return e==="unknown"?"Auto":e==="connected"?`Auto · ${of(NA)}`:`Auto · ${of(wc)}`}function yj(e,t){return e!==cc||t==="unknown"?null:t==="connected"?`Auto is running ${of(NA)} on your connected ChatGPT subscription.`:`Auto is running ${of(wc)} on your Dactyl credits. Connect a ChatGPT subscription to run it there instead.`}const RA={"gpt-5.4":"GPT-5.4","gpt-5.5":"GPT-5.5","gpt-5.6-sol":"GPT-5.6 Sol","gpt-5.6-terra":"GPT-5.6 Terra","gpt-5.6-luna":"GPT-5.6 Luna","gpt-6-astra":"GPT-6 Astra","gpt-5.3-codex-spark":"GPT-5.3 Codex Spark"},Ej=CA.map(e=>({value:e,label:RA[e],route:"subscription"})),xj=vb.map(e=>({value:e,label:f7(e),route:"credits"}));function h7(e){return vb.includes(e)}function p7(e){const t=`openai/${e}`;return vb.includes(t)?t:cc}function wj(e,t){if(e){if(e===cc)return cc;if(h7(e))return e;if(CA.includes(e))return t==="disconnected"?p7(e):e;console.warn(`Unknown stored model slug ${JSON.stringify(e)}; falling back to Auto`)}return cc}let Bg=null;function kf(){return Bg??(Bg=(async()=>{const e=await AA().fetch("/api/builder");if(!e.ok)throw new Error("no build server available");return location.port!=="5173"?"":((await e.json()).url||"").replace(/\/+$/,"")})().catch(e=>{throw Bg=null,e})),Bg}let Pg=null;function Sj(){return Pg??(Pg=(async()=>{const e=await AA().fetch("/api/builder?cap=publish");if(!e.ok)throw new Error("no publish-capable build server");return location.port!=="5173"?"":((await e.json()).url||"").replace(/\/+$/,"")})().catch(e=>{throw Pg=null,e})),Pg}const Ug=new Map;function g7(e){let t=Ug.get(e);return t||(t=hA(()=>import(`${e}/src/sdk/src/index.mjs`),[]).catch(n=>{throw Ug.delete(e),n}),Ug.set(e,t)),t}function kj(){return kf().then(g7)}let Qx=null;function m7(){return Qx??(Qx=import("https://esm.sh/@bokuweb/[email protected]").then(async t=>(await t.init(),t)).catch(()=>null)),Qx}const MA=18e4,v7=20;function Tj(e){if(!(e>0))return"compiling…";const t=`compiling… ${e}s`;return e>=v7?`${t} · cold builds take longer`:t}function b7(e=MA){const t=Math.round(e/1e3);return`the build server didn't respond in ${t>=60&&t%60===0?`${t/60}
260m`:`${t}s`} — it may be stuck. Try building again.`}async function Aj(e,t,n,i){const s=await kf(),l=`?project=${encodeURIComponent(t)}`+(n?`&base=${encodeURIComponent(n)}`:"")+(l7()==="on"?"&embedded=1":"&embedded=0")+((i==null?void 0:i.dynamic)??c7()==="on"?"&dynamic=1":"&dynamic=0"),c=typeof e!="string",u=c?JSON.stringify({files:e}):e,f=c?{"content-type":"application/json"}:{};return y7(`${s}/build${l}`,u,f,i==null?void 0:i.timeoutMs)}async function _7(e){try{const t=JSON.parse((await e.text()).slice(0,500).trim());if(typeof(t==null?void 0:t.error)=="string"&&t.error.trim())return t.error.trim()}catch{}return"build request too large — this project (including any inlined images) exceeds the build server request limit"}async function y7(e,t,n,i=MA){const s=new AbortController,l=setTimeout(()=>s.abort(),i);let c=!1;try{const u=await fetch(e,{method:"POST",headers:n,body:t,signal:s.signal});return c=!0,u.status===413?{ok:!1,error:await _7(u)}:u.ok?await u.json():{ok:!1,transient:u.status>=500,...u.status>=500?{unanswered:"server_error"}:{},error:`build server ${u.status}`}}catch(u){const f=String((u==null?void 0:u.message)||u);return{ok:!1,transient:!0,unanswered:s.signal.aborted?"timeout":c?"malformed":"network",error:s.signal.aborted?b7(i):c?`build server sent a malformed response: ${f}`:`build server unreachable: ${f}`}}finally{clearTimeout(l)}}async function Cj(e,t,n,i){const s=await kf(),l=async u=>{if(!i||!u.body)return new Uint8Array(await u.arrayBuffer());const f=u.body.getReader(),h=[];let p=0;for(;;){const{done:v,value:E}=await f.read();if(v)break;h.push(E),p+=E.length,i(p)}const g=new Uint8Array(p);let _=0;for(const v of h)g.set(v,_),_+=v.length;return g};if(n.bytes&&n.hash&&t&&t!==n.hash)try{const u=await m7();if(u){const f=await fetch(`${s}/patch?base=${n.hash}&target=${t}`);if(f.ok){const h=await l(f),p=u.createDCtx(),g=u.decompressUsingDict(p,h,n.bytes,{defaultHeapSize:96*1024*1024});return u.freeDCtx(p),g}}}catch(u){console.warn("[patch] failed, full fetch",u)}const c=await fetch(s+e);return l(c)}function E7(e){if(e==="DactylAssets.xcassets")return{type:"folder.assetcatalog",phase:"resources"};switch(e.toLowerCase().split(".").pop()??""){case"swift":return{type:"sourcecode.swift",phase:"sources"};case"png":return{type:"image.png",phase:e.startsWith("Assets/")?"none":"resources"};case"jpg":case"jpeg":return{type:"image.jpeg",phase:e.startsWith("Assets/")?"none":"resources"};case"json":return{type:"text.json",phase:"resources"};case"plist":return{type:"text.plist.xml",phase:"resources"};default:return{type:"file",phase:"resources"}}}const Jx=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');function x7(e,t,n){const i="5C00000000000000000000",s=S=>"5C01"+S.toString(16).padStart(20,"0"),l=S=>"5C02"+S.toString(16).padStart(20,"0"),c=[],u=[],f=[],h=[],p=[];n.forEach((S,x)=>{const C=s(x),N=l(x),{type:F,phase:R}=E7(S);c.push(`		${C}  = {isa = PBXFileReference; lastKnownFileType = ${F}; path = "${Jx(S)}"; sourceTree = "<group>"; };`),u.push(`		${N}  = {isa = PBXBuildFile; fileRef = ${C} ; };`),f.push(C),R==="sources"?h.push(N):R==="resources"&&p.push(N)});const g=f.join(", "),_=h.join(", "),v=p.join(", "),E=`com.example.${GP(t)}`,y=`INFOPLIST_KEY_CFBundleDisplayName = "${Jx(t)}"; `;return`
261{
262	archiveVersion = 1;
263	classes = {};
264	objectVersion = 56;
265	objects = {
266${u.join(`
267`)}
268		${i}06  = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "${e}.app"; sourceTree = BUILT_PRODUCTS_DIR; };
269${c.join(`
270`)}
271		${i}0C  = {isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = (); runOnlyForDeploymentPostprocessing = 0; };
272		${i}02 = {isa = PBXGroup; children = (${i}04, ${i}03); sourceTree = "<group>"; };
273		${i}03  = {isa = PBXGroup; children = (${i}06); name = Products; sourceTree = "<group>"; };
274		${i}04  = {isa = PBXGroup; children = (${g}); path = "${e}"; sourceTree = "<group>"; };
275		${i}05  = {isa = PBXNativeTarget; buildConfigurationList = ${i}0F; buildPhases = (${i}0B, ${i}0C, ${i}0D); buildRules = (); dependencies = (); name = "${e}"; productName = "${e}"; productReference = ${i}06; productType = "com.apple.product-type.application"; };
276		${i}01 = {isa = PBXProject; attributes = {BuildIndependentTargetsInParallel = 1; LastSwiftUpdateCheck = 1500; LastUpgradeCheck = 1500; TargetAttributes = {${i}05 = {CreatedOnToolsVersion = 15.0; };};}; buildConfigurationList = ${i}0E; compatibilityVersion = "Xcode 14.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = (en, Base); mainGroup = ${i}02; productRefGroup = ${i}03 ; projectDirPath = ""; projectRoot = ""; targets = (${i}05); };
277		${i}0D  = {isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = (${v}); runOnlyForDeploymentPostprocessing = 0; };
278		${i}0B  = {isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = (${_}); runOnlyForDeploymentPostprocessing = 0; };
279		${i}10  = {isa = XCBuildConfiguration; buildSettings = {CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; ENABLE_TESTABILITY = YES; GCC_OPTIMIZATION_LEVEL = 0; IPHONEOS_DEPLOYMENT_TARGET = 18.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; };
280		${i}11  = {isa = XCBuildConfiguration; buildSettings = {CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; ENABLE_NS_ASSERTIONS = NO; IPHONEOS_DEPLOYMENT_TARGET = 18.0; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-O"; VALIDATE_PRODUCT = YES; }; name = Release; };
281		${i}12  = {isa = XCBuildConfiguration; buildSettings = {CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES;
281 INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; LD_RUNPATH_SEARCH_PATHS = ("$(inherited)", "@executable_path/Frameworks"); MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "${E}"; ${y}PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; };
282		${i}13  = {isa = XCBuildConfiguration; buildSettings = {CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; LD_RUNPATH_SEARCH_PATHS = ("$(inherited)", "@executable_path/Frameworks"); MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "${E}"; ${y}PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; };
283		${i}0E  = {isa = XCConfigurationList; buildConfigurations = (${i}10, ${i}11); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; };
284		${i}0F  = {isa = XCConfigurationList; buildConfigurations = (${i}12, ${i}13); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; };
285	};
286	rootObject = ${i}01;
287}
288`}function w7(e,t,n,i){var p;const s=_A(e),l=vA(e,s),c={...t,"App.swift":n,"Cloud.swift":i},u=new kA,f="DactylAssets.xcassets",h=Object.entries(c).filter(([g,_])=>g.startsWith("Assets/")&&/\.(?:png|jpe?g)$/i.test(g)&&/^data:image\/[^;,]+;base64,/s.test(_));u.file(`${s}/${s}.xcodeproj/project.pbxproj`,x7(s,l,h.length?[...Object.keys(c),f]:Object.keys(c)));for(const[g,_]of Object.entries(c)){const v=/^data:[^;,]*;base64,(.*)$/s.exec(_);v?u.file(`${s}/${s}/${g}`,v[1],{base64:!0}):u.file(`${s}/${s}/${g}`,_)}if(h.length){u.file(`${s}/${s}/${f}/Contents.json`,JSON.stringify({info:{author:"xcode",version:1}}));for(const[g,_]of h){const v=g.slice(g.lastIndexOf("/")+1),E=v.replace(/\.[^.]+$/,""),y=((p=/^data:[^;,]*;base64,(.*)$/s.exec(_))==null?void 0:p[1])??"",S=`${s}/${s}/${f}/${E}.imageset`;u.file(`${S}/${v}`,y,{base64:!0}),u.file(`${S}/Contents.json`,JSON.stringify({images:[{filename:v,idiom:"universal"}],info:{author:"xcode",version:1}}))}}return u}async function Nj(e,t,n,i=`${bA(e)}.xcodeproj.zip`){const s=await kf();t||console.error("[export] project has no appId; omitting Cloud.configure — the exported app has no backend");const l=t?`Cloud.configure(appId: "${t}")`:"",c=`import SwiftUI
289
290@main
291struct ${_A(e)}App: App {
292    init() { ${l} }
293    var body: some Scene {
294        WindowGroup {
295            ContentView()
296        }
297    }
298}
299`,u=await fetch(`${s}/src/Sources/SwiftUI/Cloud.swift`).catch(()=>null),f=u&&u.ok?await u.text():"",p=await w7(e,n,c,f).generateAsync({type:"blob"}),g=document.createElement("a");g.href=URL.createObjectURL(p),g.download=i,g.click()}const S7={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",heic:"image/heic",glb:"model/gltf-binary",gltf:"model/gltf-binary",usdz:"model/vnd.usdz+zip"},k7=new Set(["App.swift","Cloud.swift"]),T7=["DactylAssets.xcassets/"];class Fg extends Error{constructor(t){super(t),this.name="ImportError"}}async function Oj(e){var h;let t;try{t=await kA.loadAsync(e)}catch{throw new Fg("That file isn’t a valid .zip archive.")}let n="",i="",s="";if(t.forEach(p=>{const g=/^(.+?)\/([^/]+)\.xcodeproj\/project\.pbxproj$/.exec(p);g&&(n=g[2],i=`${g[1]}/${g[2]}/`,s=p)}),!n)throw new Fg("This doesn’t look like a Dactyl project export (no .xcodeproj found). Import a zip produced by the Download button.");const l=[];t.forEach((p,g)=>{if(g.dir||!p.startsWith(i))return;const _=p.slice(i.length);!_||k7.has(_)||T7.some(v=>_.startsWith(v))||l.push({rel:_,file:g})});const c={};for(const{rel:p,file:g}of l){const _=S7[p.toLowerCase().split(".").pop()??""];c[p]=_?`data:${_};base64,${await g.async("base64")}`:await g.async("string")}if(typeof c["ContentView.swift"]!="string")throw new Fg("The project is missing ContentView.swift — it can’t be opened in the editor.");const u=s?await((h=t.file(s))==null?void 0:h.async("string").catch(()=>"")):"",f=/INFOPLIST_KEY_CFBundleDisplayName = "((?:[^"\\]|\\.)*)"/.exec(u||"");if(f){const p=vA(f[1].replace(/\\(.)/g,"$1"),"");p&&(n=p)}return{name:n,files:c}}function DA(e){return G.jsx(hb,{open:!0,onOpenChange:t=>!t&&e.onClose(),children:G.jsxs(pb,{"aria-describedby":void 0,showCloseButton:!1,className:$t("w-[460px] max-w-[92vw] sm:max-w-[92vw] max-h-[88vh] gap-0 overflow-auto rounded-2xl bg-card p-0 text-sm text-fg",e.className),children:[G.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 border-b border-line py-3 pl-5 pr-3",children:[G.jsx(gb,{className:"flex min-w-0 items-center gap-2 font-display text-lg font-semibold tracking-display-sm",children:e.title}),G.jsxs(dA,{variant:"ghost",size:"icon-sm",className:"shrink-0",onClick:e.onClose,children:[G.jsx(iw,{}),G.jsx("span",{className:"sr-only",children:"Close"})]})]}),e.children]})})}const $e={hint:"mb-8 text-muted leading-normal",small:"text-xs",label:"mt-4 mb-1.5 block font-sans text-2xs font-[650] uppercase tracking-[0.06em] text-muted",cmdRow:"flex gap-2",cmd:"min-w-0 flex-1 rounded-[9px] border border-line bg-soft px-3 py-2.5 font-mono text-sm text-fg outline-none transition-[border-color,box-shadow] duration-[120ms] focus:border-accent focus:ring-[3px] focus:ring-accent/18",cmdMulti:"resize-y whitespace-pre leading-normal",copy:"flex-none cursor-pointer rounded-[9px] border border-line bg-card px-3.5 py-2.5 font-semibold text-fg enabled:hover:bg-soft disabled:cursor-default disabled:opacity-50",client:"flex items-center gap-2.5 border-t border-line py-2.5",clientName:"flex flex-col gap-0.5",clientMeta:"text-2xs text-muted",revoke:"ml-auto flex-none cursor-pointer rounded-lg border border-line bg-transparent px-3 py-1.5 text-fg hover:bg-soft",empty:"py-1.5 text-muted",actions:"mt-5 flex flex-wrap items-center gap-2",section:"mt-[22px] border-t border-line pt-[18px]",code:"rounded bg-soft px-1 py-px font-mono"};function Rj(e){const[t,n]=Q.useState(null),[i,s]=Q.useState(!0),[l,c]=Q.useState(null),[u,f]=Q.useState([]),[h,p]=Q.useState(""),[g,_]=Q.useState(!1),[v,E]=Q.useState(null),y=location.origin,S=async()=>{const[M,L]=await Promise.all([qP(),KP()]);n(M),f(L),s(!1)};Q.useEffect(()=>{S()},[]);
299const x=t?`claude mcp add --transport http dactyl ${t.url}`:"",C=M=>`export DACTYL_TOKEN=${M}
300mkdir -p ~/.claude/skills/dactyl
301curl -fsS -H "Authorization: Bearer $DACTYL_TOKEN" ${y}/skill.md > ~/.claude/skills/dactyl/SKILL.md`,N=async(M,L)=>{try{await navigator.clipboard.writeText(L),c(M),setTimeout(()=>c(null),1500)}catch{}},F=async M=>{await Xm({title:`Disconnect ${M.clientName||"this agent"}?`,confirmLabel:"Disconnect",destructive:!0})&&(await YP(M.id),await S())},R=async()=>{_(!0);const M=await VP(h||"local sync");_(!1),M!=null&&M.token&&(E(M.token),p(""),await S())},D=async M=>{await Xm({title:`Revoke "${M.name}"?`,body:"Any agent using it will lose access.",confirmLabel:"Revoke",destructive:!0})&&(await ZP(M.id),v&&E(null),await S())};return G.jsx(DA,{title:"Connect a coding agent",onClose:e.onClose,children:G.jsxs("div",{className:"p-5",children:[G.jsx("p",{className:$e.hint,children:"Drive your Dactyl projects from an external coding agent (Claude Code, Cursor…) over MCP — read and edit code, run commands, build, and screenshot the live preview. Keep this tab open so screenshots work."}),G.jsx("label",{className:$e.label,children:"Add to Claude Code (MCP)"}),G.jsxs("div",{className:$e.cmdRow,children:[G.jsx("input",{className:$e.cmd,readOnly:!0,value:x,onFocus:M=>M.currentTarget.select()}),G.jsx("button",{className:$e.copy,onClick:()=>N("mcp",x),disabled:!t,children:l==="mcp"?"Copied":"Copy"})]}),G.jsxs("div",{className:"mt-5",children:[G.jsx("label",{className:$e.label,children:"Connected agents"}),i?G.jsx("div",{className:$e.empty,children:"Loading…"}):!t||t.clients.length===0?G.jsx("div",{className:$e.empty,children:"No agents connected yet."}):t.clients.map(M=>G.jsxs("div",{className:$e.client,children:[G.jsxs("div",{className:$e.clientName,children:[M.clientName||"Unnamed agent",G.jsxs("span",{className:$e.clientMeta,children:["added ",new Date(M.createdAt).toLocaleDateString()]})]}),G.jsx("button",{className:$e.revoke,onClick:()=>F(M),children:"Revoke"})]},M.id))]}),G.jsxs("div",{className:$e.section,children:[G.jsx("label",{className:$e.label,children:"Local sync (git + curl)"}),G.jsxs("p",{className:$t($e.hint,$e.small),children:["Keep source in a local git repo and sync it to Dactyl with a token. Create one, then install the skill — your agent gets a ",G.jsx("code",{className:$e.code,children:"dactyl"})," ","skill that checksums, syncs, and builds."]}),v?G.jsxs(G.Fragment,{children:[G.jsx("p",{className:$t($e.hint,$e.small),children:"Copy this now — it won't be shown again. Run it in your project to install the skill and set the token:"}),G.jsxs("div",{className:$e.cmdRow,children:[G.jsx("textarea",{className:$t($e.cmd,$e.cmdMulti),readOnly:!0,value:C(v),onFocus:M=>M.currentTarget.select(),rows:3}),G.jsx("button",{className:$e.copy,onClick:()=>N("install",C(v)),children:l==="install"?"Copied":"Copy"})]})]}):G.jsxs("div",{className:$e.cmdRow,children:[G.jsx("input",{className:$e.cmd,placeholder:"Token name (e.g. laptop)",value:h,onChange:M=>p(M.target.value)}),G.jsx("button",{className:$e.copy,onClick:R,disabled:g,children:g?"Creating…":"Create token"})]}),u.length>0&&u.map(M=>G.jsxs("div",{className:$e.client,children:[G.jsxs("div",{className:$e.clientName,children:[M.name,G.jsx("span",{className:$e.clientMeta,children:M.lastUsedAt?`last used ${new Date(M.lastUsedAt).toLocaleDateString()}`:`created ${new Date(M.createdAt).toLocaleDateString()}`})]}),G.jsx("button",{className:$e.revoke,onClick:()=>D(M),children:"Revoke"})]},M.id))]})]})})}function yo({size:e=18,className:t}){return G.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",className:$t("shrink-0",t),children:G.jsx("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.1419.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm
3011.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})})}const jg="dactyl_siwc_preview",sv="dactyl_siwc_connected";function Mj(){try{return sessionStorage.getItem(sv)!=="1"?!1:(sessionStorage.removeItem(sv),!0)}catch{return!1}}function IA(){if(typeof window>"u")return!1;try{const e=new URLSearchParams(window.location.search).get("siwc");return e==="1"&&localStorage.setItem(jg,"1"),e==="0"&&localStorage.removeItem(jg),localStorage.getItem(jg)==="1"}catch{return!1}}let ov=!1;const lv=new Set;function A7(e){if(ov!==e){ov=e;for(const t of lv)t()}}function ew(){if(typeof window>"u")return!1;try{if(new URLSearchParams(window.location.search).get("siwc")==="0")return!1}catch{}return ov||IA()}let LA;const C7=new Promise(e=>{LA=e});function Dj(){return C7}async function Ij(){try{const t=await(await fetch("/api/config")).json();A7(!!(t!=null&&t.siwcEnabled))}catch{}finally{LA()}}function bb(){const[e,t]=Q.useState(ew);return Q.useEffect(()=>{const n=()=>t(ew());return lv.add(n),n(),()=>{lv.delete(n)}},[]),e}const cv="inline-flex h-9 flex-none cursor-pointer items-center justify-center gap-2 rounded-full border-0 bg-fg px-4 text-[13px] font-semibold text-bg hover:opacity-90 disabled:cursor-default disabled:opacity-50",N7="inline-flex h-7 flex-none cursor-pointer items-center gap-1.5 rounded-full border border-line bg-card px-2.5 text-xs font-medium text-fg hover:bg-soft",O7="inline-flex w-fit cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-xs text-muted underline underline-offset-2 hover:text-fg";function R7({size:e=12}){return G.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"shrink-0 opacity-70",children:[G.jsx("path",{d:"M15 3h6v6"}),G.jsx("path",{d:"M10 14 21 3"}),G.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})]})}function M7({label:e,variant:t="chip"}){return bb()?G.jsxs("a",{"data-slot":"button",className:$t(t==="solid"?cv:N7,"no-underline"),href:Xx,target:"_blank",rel:"noopener",children:[G.jsx("span",{children:e??"Manage usage"}),G.jsx(R7,{size:t==="solid"?13:11})]}):G.jsxs("a",{className:$t($e.copy,"mt-3 inline-flex w-fit items-center gap-2 text-sm no-underline"),href:Xx,target:"_blank",rel:"noopener",children:[G.jsx(yo,{size:14}),G.jsx("span",{children:e??"Check usage on ChatGPT"}),G.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"opacity-55",children:G.jsx("path",{d:"M7 17 17 7M9 7h8v8"})})]})}function Lj(e){const[t,n]=Q.useState(null),[i,s]=Q.useState(e.initialDeclined?{kind:"declined"}:e.initialError?{kind:"error",message:e.initialError}:{kind:"idle"}),[l,c]=Q.useState(!1),u=Q.useRef(!1);Q.useEffect(()=>((async()=>{IA()&&await e7();try{n(await XP())}catch{}})(),()=>{u.current=!1}),[]);const f=bb(),h=!!(t!=null&&t.redirectFlow)&&f,p=async x=>{if(s({kind:"starting"}),x!=="device"&&h)return JP();const C=await WP();if(!C.ok){s({kind:"error",message:C.error,securityUrl:C.code==="device_disabled"?"https://chatgpt.com/settings/security":void 0});return}s({kind:"awaiting",userCode:C.userCode,verifyUrl:C.verifyUrl}),window.open(C.verifyUrl,"_blank","noopener"),g(C.intervalSec)},g=async x=>{if(u.current)return;u.current=!0;const C=Math.max(2,x)*1e3;for(;u.current;){if(await new Promise(F=>setTimeout(F,C)),!u.current)return;const N=await QP();if(N.status!=="pending"){if(u.current=!1,N.status==="connected"){s({kind:"connected"}),n({connected:!0,accountId:N.accountId??null,expiresAt:null,paywalled:!1,redirectFlow:t==null?void 0:t.redirectFlow});try{sessionStorage.setItem(sv,"1")}catch{}setTimeout(()=>window.location.reload(),600)}else N.status==="expired"?s({kind:"error",message:"The code expired before it was approved. Try again."}):s({kind:"error",message:N.error||"Sign-in failed.",securityUrl:N.securitySettingsUrl});return}}},_=async()=>{await Xm({title:"Disconnect your ChatGPT subscription?",body:"Builds go back to Dactyl credits.",confirmLabel:"Disconnect"})&&(u.current=!1,await t7(),n({connected:!1,accountId:null,expiresAt:null,paywalled:t==null?void 0:t.paywalled,redirectFlow:t==null?void 0:t.redirectFlow}),s({kind:"idle"}))},v=async x=>{try{await navigator.clipboard.writeText(x),c(!0),setTimeout(()=>c(!1),1500)}catch{}},E=t!=null&&t.connected&&i.kind!=="idle"?!0:t==null?void 0:t.connected,y=(t==null?void 0:t.paywalled)===!0,S=y&&!E;return G.jsx(DA,{title:G.jsxs(G.Fragment,{children:[G.jsx(yo,{})," Connect ChatGPT"]}),onClose:e.onClose,children:G.jsx("div",{className:"p-5",children:S?G.jsxs(G.Fragment,{children:[G.jsxs("p",{className:$t($e.hint,"mb-0"),children:[G.jsx("strong",{children:"Bring your own ChatGPT."})," ","Run your builds on the ChatGPT Pro plan you already pay for, with no token bills from us and no agent limit. It comes with ",G.jsx("strong",{children:or.builder.label})," ","($",or.builder.price,"/mo) and up."]}),G.jsx("div",{className:$e.actions,children:G.jsx("button",{className:$t($e.copy,"inline-flex items-center gap-2"),onClick:()=>location.assign("/p/billing"),children:"See plans"})})]}):G.jsxs(G.Fragment,{children:[!y&&f&&E&&G.jsx("p",{className:$e.hint,children:"Your builds run on your ChatGPT plan instead of Dactyl credits, with no agent limit. You can disconnect at any time."}),!y&&!f&&G.jsxs("p",{className:$e.hint,children:["Connect your ChatGPT Pro plan and your builds run on your ChatGPT credits instead of Dactyl's, with no agent limit. You can disconnect at any time. OpenAI has only opened plan sharing to ",G.jsx("strong",{children:"Pro"})," ","so far, so Plus and Business accounts can sign in but can't share a plan yet."]}),!y&&!f&&!E&&G.jsx("p",{className:$t($e.hint,$e.small),children:"Dactyl only gets permission to run builds on your plan. It can't read your ChatGPT conversations, and it never sees your API key."}),E&&i.kind!=="awaiting"&&i.kind!=="error"?G.jsxs(G.Fragment,{children:[G.jsx("div",{className:$t($e.client,"block"),children:G.jsxs("div",{className:$e.clientName,children:[y?"ChatGPT connected, paused":t!=null&&t.needsReconnect?"ChatGPT connection expired":t!=null&&t.ineligible?"ChatGPT connected, sharing unavailable":t!=null&&t.usageLimited?"ChatGPT connected, plan limit reached":(t==null?void 0:t.tokenSharing)===!1?"ChatGPT signed in, plan not shared":"ChatGPT connected",(t==null?void 0:t.accountId)&&G.jsxs("span",{className:$e.clientMeta,children:["account ",t.accountId.slice(0,8),"…"]})]})}),y?G.jsxs(G.Fragment,{children:[G.jsxs("p",{className:$t($e.hint,"mb-0"),children:["Bringing your own ChatGPT isn't part of the Free plan, so your builds run on Dactyl credits and count against the Free agent limit. We've kept your ChatGPT sign-in. Upgrade to ",G.jsx("strong",{children:or.builder.label})," ","($",or.builder.price,"/mo) and it picks up again without reconnecting."]}),G.jsx("div",{className:$e.actions,children:G.jsx("button",{className:$t($e.copy,"inline-flex items-center gap-2"),onClick:()=>location.assign("/p/billing"),children:"See plans"})})]}):t!=null&&t.needsReconnect?G.jsx("p",{className:$e.hint,children:"Your ChatGPT connection has expired. Until you reconnect, builds run on Dactyl credits."}):t!=null&&t.ineligible?G.jsx("p",{className:$e.hint,children:"Your ChatGPT account isn't eligible for plan sharing, so builds are running on Dactyl credits. Pick a credit model in the composer to keep building."}):t!=null&&t.usageLimited?G.jsx("p",{className:$e.hint,children:"Your ChatGPT plan has used up the share it allows other apps to spend, so builds are running on Dactyl credits for now. It resets on ChatGPT's own schedule. Pick a credit model in the composer to keep building."}):(t==null?void 0:t.tokenSharing)===!1?G.jsxs("p",{className:$e.hint,children:["You're signed in with ChatGPT, but Dactyl isn't building on your plan, so builds are running on Dactyl credits. That happens for one of two reasons: you declined the second permission, or your account isn't"," ",G.jsx("strong",{children:"ChatGPT Pro"}),". OpenAI has only opened plan sharing to Pro so far, so Plus and Business accounts can sign in but can't share a plan yet. If you're on Pro, reconnect and accept the second permission."]}):null,G.jsxs("div",{className:$e.actions,children:[((t==null?void 0:t.needsReconnect)||(t==null?void 0:t.tokenSharing)===!1)&&
301!y&&G.jsx("button",{className:$e.copy,onClick:()=>p(),children:"Reconnect"}),G.jsx("button",{className:$t($e.revoke,"ml-0"),onClick:_,children:"Disconnect"}),(t==null?void 0:t.tokenSharing)!==!1&&!(t!=null&&t.ineligible)&&G.jsx(M7,{})]})]}):i.kind==="awaiting"?G.jsxs(G.Fragment,{children:[G.jsx("label",{className:$e.label,children:"1. A ChatGPT tab opened. Enter this code there"}),G.jsxs("div",{className:$e.cmdRow,children:[G.jsx("input",{className:$e.cmd,readOnly:!0,value:i.userCode,onFocus:x=>x.currentTarget.select()}),G.jsx("button",{className:$e.copy,onClick:()=>v(i.userCode),children:l?"Copied":"Copy"})]}),G.jsxs("p",{className:$t($e.hint,$e.small,"mt-2.5"),children:["Didn't open? Go to"," ",G.jsx("a",{href:i.verifyUrl,target:"_blank",rel:"noopener",children:i.verifyUrl})," ","and enter the code. Waiting for approval…"]})]}):i.kind==="declined"?G.jsxs(G.Fragment,{children:[G.jsx("p",{className:$t($e.hint,$e.small,"mb-0"),children:"You declined the permission, so ChatGPT isn't connected. Your builds are still running on Dactyl credits."}),G.jsx("div",{className:$e.actions,children:G.jsxs("button",{className:cv,onClick:()=>p(),children:[G.jsx(yo,{size:16}),"Try again"]})})]}):i.kind==="error"?G.jsxs(G.Fragment,{children:[G.jsx("p",{className:$t($e.hint,$e.small,"text-[color:var(--bad)]"),children:i.message}),i.securityUrl&&G.jsxs("p",{className:$t($e.hint,$e.small),children:["Enable device sign-in at"," ",G.jsx("a",{href:i.securityUrl,target:"_blank",rel:"noopener",children:"ChatGPT → Settings → Security"}),", then retry."]}),G.jsx("div",{className:$e.actions,children:G.jsx("button",{className:$e.copy,onClick:()=>p(),children:"Try again"})})]}):f?G.jsxs(G.Fragment,{children:[G.jsxs("div",{className:"flex flex-col gap-1",children:[G.jsx("div",{className:"text-[15px] font-semibold text-fg",children:"Connect your ChatGPT plan"}),G.jsx("p",{className:$t($e.hint,$e.small,"mb-0"),children:"Continue with ChatGPT to use your plan in Dactyl."})]}),G.jsxs("div",{className:"mt-4 flex flex-col items-start gap-3",children:[G.jsxs("button",{className:cv,onClick:()=>p(),disabled:i.kind==="starting",children:[G.jsx(yo,{size:16}),i.kind==="starting"?"Connecting…":"Continue with ChatGPT"]}),h&&G.jsx("button",{type:"button",className:O7,onClick:()=>p("device"),disabled:i.kind==="starting",children:"Connect through Codex"})]})]}):G.jsx("div",{className:$e.actions,children:G.jsxs("button",{className:$t($e.copy,"inline-flex items-center gap-2"),onClick:()=>p(),disabled:i.kind==="starting",children:[G.jsx(yo,{size:16}),i.kind==="starting"?"Connecting…":"Connect ChatGPT"]})})]})})})}const D7="dactyl_pending",I7=1,lf="attachments",cf="prompt_images",L7=1800*1e3;function zA(){return new Promise(e=>{let t;try{t=indexedDB.open(D7,I7)}catch{e(null);return}t.onupgradeneeded=()=>{t.result.objectStoreNames.contains(lf)||t.result.createObjectStore(lf)},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null),t.onblocked=()=>e(null)})}function uf(e,t,n){return new Promise(i=>{let s;try{s=n(e.transaction(lf,t).objectStore(lf))}catch{i(null);return}s.onsuccess=()=>i(s.result),s.onerror=()=>i(null)})}async function z7(e){const t=await zA();if(t)try{if(e.length){const n={at:Date.now(),images:e};await uf(t,"readwrite",i=>i.put(n,cf))}else await uf(t,"readwrite",n=>n.delete(cf))}finally{t.close()}}async function zj(){const e=await zA();if(!e)return[];try{const t=await uf(e,"readonly",n=>n.get(cf));return await uf(e,"readwrite",n=>n.delete(cf)),!t||!Array.isArray(t.images)?[]:Date.now()-t.at<L7?t.images.filter(n=>
301n&&typeof n.data=="string"&&typeof n.mimeType=="string"):[]}finally{e.close()}}const $g=G.jsx(lO,{size:18,strokeWidth:1.75,"aria-hidden":!0,className:"animate-spin"}),B7=G.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":!0,children:[G.jsx("path",{fill:"#4285F4",d:"M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.48h4.84a4.14 4.14 0 0 1-1.8 2.72v2.26h2.92c1.71-1.57 2.68-3.89 2.68-6.62Z"}),G.jsx("path",{fill:"#34A853",d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.92-2.26c-.8.54-1.84.86-3.04.86-2.34 0-4.32-1.58-5.02-3.7H.96v2.33A9 9 0 0 0 9 18Z"}),G.jsx("path",{fill:"#FBBC05",d:"M3.98 10.72a5.4 5.4 0 0 1 0-3.44V4.95H.96a9 9 0 0 0 0 8.1l3.02-2.33Z"}),G.jsx("path",{fill:"#EA4335",d:"M9 3.58c1.32 0 2.5.45 3.44 1.35l2.58-2.59C13.46.89 11.43 0 9 0A9 9 0 0 0 .96 4.95l3.02 2.33C4.68 5.16 6.66 3.58 9 3.58Z"})]}),P7=G.jsx("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"currentColor","aria-hidden":!0,children:G.jsx("path",{d:"M13.5 13.07c-.24.55-.52 1.06-.86 1.53-.46.64-.84 1.08-1.13 1.33-.45.4-.93.6-1.45.62-.37 0-.82-.11-1.34-.32-.52-.21-1-.32-1.44-.32-.46 0-.95.11-1.48.32-.53.21-.96.33-1.28.34-.5.02-.99-.19-1.47-.63-.31-.27-.71-.73-1.19-1.38-.51-.7-.94-1.5-1.27-2.42C.4 11.45.22 10.5.22 9.58c0-1.05.23-1.96.69-2.72a4.03 4.03 0 0 1 1.43-1.45 3.86 3.86 0 0 1 1.93-.55c.39 0 .91.13 1.56.38.65.25 1.07.38 1.25.38.14 0 .6-.15 1.39-.45.74-.28 1.37-.39 1.88-.35 1.4.11 2.45.66 3.15 1.66-1.25.76-1.87 1.82-1.86 3.19.01 1.06.4 1.95 1.15 2.65.34.32.72.57 1.14.75-.09.26-.19.51-.3.75ZM10.6.96c0 .78-.29 1.51-.85 2.18-.68.8-1.5 1.26-2.39 1.19a2.4 2.4 0 0 1-.02-.3c0-.75.33-1.55.9-2.2.29-.34.66-.62 1.1-.84.44-.22.86-.34 1.25-.36.01.11.01.22.01.33Z"})}),U7=typeof navigator<"u"&&(/iPhone|iPad|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1);function Bj({onClose:e,prompt:t,images:n,example:i,notice:s,via:l}){const[c,u]=Q.useState(null),f=bb(),h=t?"prompt":i?"example":"none";Q.useEffect(()=>{Wd("signin_opened",{via:l??"unknown",intent:h,retry:!!s})},[]);const p=async g=>{c||(t?ur("dactyl_pending_prompt",t):dr("dactyl_pending_prompt"),i?ur("dactyl_pending_example",i):dr("dactyl_pending_example"),u(g),t&&(n!=null&&n.length)&&await z7(n),Wd("signin_started",{provider:g,via:l??"unknown",intent:h},{beacon:!0}),window.location.href=g==="chatgpt"?"/auth/chatgpt/login":`/auth/${g}`)};return G.jsx(hb,{open:!0,onOpenChange:g=>!g&&e(),children:G.jsxs(pb,{"aria-describedby":void 0,showCloseButton:!1,className:"gap-0 rounded-3xl border border-canvas-300 bg-white p-8 text-center ring-0",children:[G.jsx(gb,{className:"font-display text-3xl leading-tight font-semibold tracking-tight text-ink",children:"Sign in to build"}),t||i?G.jsxs("div",{className:"mt-2 text-sm text-text-muted",children:[G.jsx("b",{children:"100 credits included free!"}),G.jsx("p",{children:"(Your current prompt will be saved.)"})]}):G.jsx("p",{className:"mt-2 text-sm text-text-muted text-balance",children:"Sign in to create, save, and publish your own mobile apps"}),s&&G.jsx("p",{className:"mt-4 p-4 text-sm bg-destructive text-canvas-50 rounded-xs font-semibold",children:s}),G.jsxs("div",{className:"mt-8 flex flex-col gap-2.5",children:[!1,(U7?["apple","google","chatgpt"]:["google","apple","chatgpt"]).filter(g=>g!=="chatgpt"||f).map(g=>g==="chatgpt"?G.jsxs("button",{onClick:()=>void p("chatgpt"),disabled:c!==null,style:{borderRadius:980},className:"flex items-center justify-center gap-2.5 border border-canvas-300 bg-white px-4 py-3 text-sm font-medium text-ink transition hover:bg-canvas-200 disabled:opacity-60",children:[c==="chatgpt"?$g:G.jsx(yo,{size:18}),G.jsx("span",{children:"Continue with ChatGPT"})]},"chatgpt"):g==="google"?G.jsxs("button",{onClick:()=>void p("google"),disabled:c!==null,style:{borderRadius:980},className:"flex items-center justify-center gap-2.5 border border-canvas-300 bg-white px-4 py-3 text-sm font-medium text-ink transition hover:bg-canvas-200 disabled:opacity-60",children:[c==="google"?$g:B7,G.jsx("span",{children:"Continue with Google"})]},"google"):G.jsxs("button",{onClick:()=>void p("apple"),disabled:c!==null,style:{borderRadius:980},className:"flex items-center justify-center gap-2.5 bg-ink px-4 py-3 text-sm font-medium text-white transition hover:bg-ink-400 disabled:opacity-60",children:[c==="apple"?$g:P7,G.jsx("span",{children:"Continue with Apple"})]},"apple"))]})]})})}const uv="AW-18372809623",F7="oj7DCMnXyt0cEJen67hE",tw="signup";function Pj(){BA()}function BA(){if(window.gtag)return;const e=document.createElement("script");
301e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${uv}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",uv)}function Uj(){const e=new URL(location.href);e.searchParams.get(tw)==="1"&&(e.searchParams.delete(tw),history.replaceState(null,"",e.pathname+e.search+e.hash),BA(),window.gtag("event","conversion",{send_to:`${uv}/${F7}`}))}export{$t as $,hT as A,Yi as B,q7 as C,H7 as D,nb as E,yc as F,fT as G,Ki as H,Ec as I,Tg as J,Gi as K,d9 as L,Y7 as M,yf as N,bT as O,K7 as P,wB as Q,yU as R,Bj as S,Iv as T,Z7 as U,l9 as V,B9 as W,TT as X,mT as Y,pT as Z,Xz as _,dO as a,SA as a$,yo as a0,Xx as a1,R7 as a2,O7 as a3,hb as a4,pb as a5,gb as a6,ur as a7,bb as a8,XP as a9,rU as aA,kU as aB,nU as aC,TF as aD,r7 as aE,Oj as aF,AU as aG,Fg as aH,AF as aI,xF as aJ,dU as aK,pF as aL,zU as aM,gF as aN,uF as aO,TU as aP,OF as aQ,Xm as aR,EF as aS,iw as aT,AA as aU,dA as aV,lO as aW,G7 as aX,bA as aY,hA as aZ,kA as a_,Lj as aa,GU as ab,l7 as ac,tj as ad,c7 as ae,nj as af,rj as ag,ij as ah,gj as ai,mj as aj,aj as ak,sj as al,oj as am,lj as an,cj as ao,uj as ap,dj as aq,fj as ar,hj as as,pj as at,MU as au,Rj as av,HU as aw,BU as ax,$4 as ay,aE as az,Wd as b,F4 as b$,tU as b0,cF as b1,IF as b2,Sj as b3,vA as b4,_A as b5,fF as b6,hF as b7,j4 as b8,GN as b9,RF as bA,y5 as bB,gU as bC,a5 as bD,u5 as bE,iO as bF,pU as bG,IS as bH,E5 as bI,M7 as bJ,T5 as bK,A5 as bL,S5 as bM,ew as bN,fA as bO,sO as bP,SU as bQ,mA as bR,dF as bS,lF as bT,W7 as bU,X7 as bV,cv as bW,qU as bX,iU as bY,bj as bZ,cU as b_,Om as ba,kj as bb,g7 as bc,kf as bd,QF as be,JF as bf,ej as bg,WF as bh,XF as bi,DA as bj,PP as bk,OU as bl,NU as bm,vF as bn,bF as bo,MP as bp,yj as bq,cc as br,_j as bs,Ej as bt,xj as bu,of as bv,w5 as bw,vj as bx,LS as by,wj as bz,Or as c,jU as c$,Q7 as c0,J4 as c1,hU as c2,VF as c3,LU as c4,Mj as c5,Dj as c6,Nj as c7,Aj as c8,Cj as c9,mU as cA,ZF as cB,KF as cC,LF as cD,PF as cE,DF as cF,zF as cG,FF as cH,BF as cI,jF as cJ,UF as cK,aF as cL,iF as cM,nF as cN,rF as cO,VU as cP,ZU as cQ,XU as cR,DU as cS,IU as cT,$F as cU,HF as cV,GF as cW,qF as cX,YF as cY,tF as cZ,eF as c_,Vx as ca,yF as cb,kF as cc,n7 as cd,wF as ce,SF as cf,_F as cg,mF as ch,dr as ci,zj as cj,fU as ck,CF as cl,uU as cm,RU as cn,oF as co,sF as cp,MF as cq,Tj as cr,eU as cs,CS as ct,Lv as cu,UP as cv,wA as cw,NF as cx,Uj as cy,CU as cz,$7 as d,$U as d0,WU as d1,QU as d2,JU as d3,PU as d4,UU as d5,FU as d6,KU as d7,YU as d8,or as e,lU as f,vU as g,V7 as h,vO as i,G as j,xU as k,EU as l,bU as m,_U as n,wU as o,oU as p,sU as q,Q as r,Ij as s,J7 as t,wO as u,Pj as v,j7 as w,Gr as x,z4 as y,aU as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.